[03:04:00]OFD Sender: No OFD packet to send [03:04:05]OFD Sender: No OFD packet to send [03:04:10]OFD Sender: No OFD packet to send [03:04:15]OFD Sender: No OFD packet to send [03:04:20]OFD Sender: No OFD packet to send [03:04:25]OFD Sender: No OFD packet to send [03:04:30]OFD Sender: No OFD packet to send [03:04:35]OFD Sender: No OFD packet to send [03:04:40]OFD Sender: No OFD packet to send [03:04:45]OFD Sender: No OFD packet to send [03:04:50]OFD Sender: No OFD packet to send [03:04:55]OFD Sender: No OFD packet to send [03:05:00]OFD Sender: No OFD packet to send [03:05:05]OFD Sender: No OFD packet to send [03:05:10]OFD Sender: No OFD packet to send [03:05:15]OFD Sender: No OFD packet to send [03:05:20]OFD Sender: No OFD packet to send [03:05:25]OFD Sender: No OFD packet to send [03:05:30]OFD Sender: No OFD packet to send [03:05:35]OFD Sender: No OFD packet to send [03:05:40]OFD Sender: No OFD packet to send [03:05:45]OFD Sender: No OFD packet to send [03:05:50]OFD Sender: No OFD packet to send [03:05:55]OFD Sender: No OFD packet to send [03:06:00]OFD Sender: No OFD packet to send [03:06:05]OFD Sender: No OFD packet to send [03:06:10]OFD Sender: No OFD packet to send [03:06:15]OFD Sender: No OFD packet to send [03:06:20]OFD Sender: No OFD packet to send [03:06:25]OFD Sender: No OFD packet to send [03:06:30]OFD Sender: No OFD packet to send [03:06:35]OFD Sender: No OFD packet to send [03:06:40]OFD Sender: No OFD packet to send [03:06:45]OFD Sender: No OFD packet to send [03:06:50]OFD Sender: No OFD packet to send [03:06:55]OFD Sender: No OFD packet to send [03:07:00]OFD Sender: No OFD packet to send [03:07:05]OFD Sender: No OFD packet to send [03:07:10]OFD Sender: No OFD packet to send [03:07:15]OFD Sender: No OFD packet to send [03:07:20]OFD Sender: No OFD packet to send [03:07:25]OFD Sender: No OFD packet to send [03:07:30]OFD Sender: No OFD packet to send [03:07:35]OFD Sender: No OFD packet to send [03:07:40]OFD Sender: No OFD packet to send [03:07:45]OFD Sender: No OFD packet to send [03:07:50]OFD Sender: No OFD packet to send [03:07:55]OFD Sender: No OFD packet to send [03:08:00]OFD Sender: No OFD packet to send [03:08:05]OFD Sender: No OFD packet to send [03:08:10]OFD Sender: No OFD packet to send [03:08:15]OFD Sender: No OFD packet to send [03:08:20]OFD Sender: No OFD packet to send [03:08:25]OFD Sender: No OFD packet to send [03:08:30]OFD Sender: No OFD packet to send [03:08:35]OFD Sender: No OFD packet to send [03:08:40]OFD Sender: No OFD packet to send [03:08:45]OFD Sender: No OFD packet to send [03:08:50]OFD Sender: No OFD packet to send [03:08:55]OFD Sender: No OFD packet to send [03:09:00]OFD Sender: No OFD packet to send [03:09:05]OFD Sender: No OFD packet to send [03:09:10]OFD Sender: No OFD packet to send [03:09:15]OFD Sender: No OFD packet to send [03:09:20]OFD Sender: No OFD packet to send [03:09:25]OFD Sender: No OFD packet to send [03:09:30]OFD Sender: No OFD packet to send [03:09:35]OFD Sender: No OFD packet to send [03:09:40]OFD Sender: No OFD packet to send [03:09:45]OFD Sender: No OFD packet to send [03:09:50]OFD Sender: No OFD packet to send [03:09:55]OFD Sender: No OFD packet to send [03:10:00]OFD Sender: No OFD packet to send [03:10:05]OFD Sender: No OFD packet to send [03:10:10]OFD Sender: No OFD packet to send [03:10:15]OFD Sender: No OFD packet to send [03:10:20]OFD Sender: No OFD packet to send [03:10:25]OFD Sender: No OFD packet to send [03:10:30]OFD Sender: No OFD packet to send [03:10:35]OFD Sender: No OFD packet to send [03:10:40]OFD Sender: No OFD packet to send [03:10:45]OFD Sender: No OFD packet to send [03:10:50]OFD Sender: No OFD packet to send [03:10:55]OFD Sender: No OFD packet to send [03:11:00]OFD Sender: No OFD packet to send [03:11:05]OFD Sender: No OFD packet to send [03:11:10]OFD Sender: No OFD packet to send [03:11:15]OFD Sender: No OFD packet to send [03:11:20]OFD Sender: No OFD packet to send [03:11:25]OFD Sender: No OFD packet to send [03:11:30]OFD Sender: No OFD packet to send [03:11:35]OFD Sender: No OFD packet to send [03:11:40]OFD Sender: No OFD packet to send [03:11:45]OFD Sender: No OFD packet to send [03:11:50]OFD Sender: No OFD packet to send [03:11:55]OFD Sender: No OFD packet to send [03:12:00]OFD Sender: No OFD packet to send [03:12:05]OFD Sender: No OFD packet to send [03:12:10]OFD Sender: No OFD packet to send [03:12:15]OFD Sender: No OFD packet to send [03:12:20]OFD Sender: No OFD packet to send [03:12:25]OFD Sender: No OFD packet to send [03:12:30]OFD Sender: No OFD packet to send [03:12:35]OFD Sender: No OFD packet to send [03:12:40]OFD Sender: No OFD packet to send [03:12:45]OFD Sender: No OFD packet to send [03:12:50]OFD Sender: No OFD packet to send [03:12:55]OFD Sender: No OFD packet to send [03:13:00]OFD Sender: No OFD packet to send [03:13:05]OFD Sender: No OFD packet to send [03:13:10]OFD Sender: No OFD packet to send [03:13:15]OFD Sender: No OFD packet to send [03:13:20]OFD Sender: No OFD packet to send [03:13:25]OFD Sender: No OFD packet to send [03:13:30]OFD Sender: No OFD packet to send [03:13:35]OFD Sender: No OFD packet to send [03:13:40]OFD Sender: No OFD packet to send [03:13:45]OFD Sender: No OFD packet to send [03:13:50]OFD Sender: No OFD packet to send [03:13:55]OFD Sender: No OFD packet to send [03:14:00]OFD Sender: No OFD packet to send [03:14:05]OFD Sender: No OFD packet to send [03:14:10]OFD Sender: No OFD packet to send [03:14:15]OFD Sender: No OFD packet to send [03:14:20]OFD Sender: No OFD packet to send [03:14:25]OFD Sender: No OFD packet to send [03:14:30]OFD Sender: No OFD packet to send [03:14:35]OFD Sender: No OFD packet to send [03:14:40]OFD Sender: No OFD packet to send [03:14: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:36]OFD Sender: No OFD packet to send [03:20:41]OFD Sender: No OFD packet to send [03:20:46]OFD Sender: No OFD packet to send [03:20:51]OFD Sender: No OFD packet to send [03:20:56]OFD Sender: No OFD packet to send [03:21:01]OFD Sender: No OFD packet to send [03:21:06]OFD Sender: No OFD packet to send [03:21:11]OFD Sender: No OFD packet to send [03:21:16]OFD Sender: No OFD packet to send [03:21:21]OFD Sender: No OFD packet to send [03:21:26]OFD Sender: No OFD packet to send [03:21:31]OFD Sender: No OFD packet to send [03:21:36]OFD Sender: No OFD packet to send [03:21:41]OFD Sender: No OFD packet to send [03:21:46]OFD Sender: No OFD packet to send [03:21:51]OFD Sender: No OFD packet to send [03:21:56]OFD Sender: No OFD packet to send [03:22:01]OFD Sender: No OFD packet to send [03:22:06]OFD Sender: No OFD packet to send [03:22:11]OFD Sender: No OFD packet to send [03:22:16]OFD Sender: No OFD packet to send [03:22:21]OFD Sender: No OFD packet to send [03:22:26]OFD Sender: No OFD packet to send [03:22:31]OFD Sender: No OFD packet to send [03:22:36]OFD Sender: No OFD packet to send [03:22:41]OFD Sender: No OFD packet to send [03:22:46]OFD Sender: No OFD packet to send [03:22:51]OFD Sender: No OFD packet to send [03:22:56]OFD Sender: No OFD packet to send [03:23:01]OFD Sender: No OFD packet to send [03:23:06]OFD Sender: No OFD packet to send [03:23:11]OFD Sender: No OFD packet to send [03:23:16]OFD Sender: No OFD packet to send [03:23:21]OFD Sender: No OFD packet to send [03:23:26]OFD Sender: No OFD packet to send [03:23:31]OFD Sender: No OFD packet to send [03:23:36]OFD Sender: No OFD packet to send [03:23:41]OFD Sender: No OFD packet to send [03:23:46]OFD Sender: No OFD packet to send [03:23:51]OFD Sender: No OFD packet to send [03:23:56]OFD Sender: No OFD packet to send [03:24:01]OFD Sender: No OFD packet to send [03:24:06]OFD Sender: No OFD packet to send [03:24:11]OFD Sender: No OFD packet to send [03:24:16]OFD Sender: No OFD packet to send [03:24:21]OFD Sender: No OFD packet to send [03:24:26]OFD Sender: No OFD packet to send [03:24:31]OFD Sender: No OFD packet to send [03:24:36]OFD Sender: No OFD packet to send [03:24:41]OFD Sender: No OFD packet to send [03:24:46]OFD Sender: No OFD packet to send [03:24:51]OFD Sender: No OFD packet to send [03:24:56]OFD Sender: No OFD packet to send [03:25:01]OFD Sender: No OFD packet to send [03:25:06]OFD Sender: No OFD packet to send [03:25:11]OFD Sender: No OFD packet to send [03:25:16]OFD Sender: No OFD packet to send [03:25:21]OFD Sender: No OFD packet to send [03:25:26]OFD Sender: No OFD packet to send [03:25:31]OFD Sender: No OFD packet to send [03:25:36]OFD Sender: No OFD packet to send [03:25:41]OFD Sender: No OFD packet to send [03:25:46]OFD Sender: No OFD packet to send [03:25:51]OFD Sender: No OFD packet to send [03:25:56]OFD Sender: No OFD packet to send [03:26:01]OFD Sender: No OFD packet to send [03:26:06]OFD Sender: No OFD packet to send [03:26:11]OFD Sender: No OFD packet to send [03:26:16]OFD Sender: No OFD packet to send [03:26:21]OFD Sender: No OFD packet to send [03:26:26]OFD Sender: No OFD packet to send [03:26:31]OFD Sender: No OFD packet to send [03:26:36]OFD Sender: No OFD packet to send [03:26:41]OFD Sender: No OFD packet to send [03:26:46]OFD Sender: No OFD packet to send [03:26:51]OFD Sender: No OFD packet to send [03:26:56]OFD Sender: No OFD packet to send [03:27:01]OFD Sender: No OFD packet to send [03:27:06]OFD Sender: No OFD packet to send [03:27:11]OFD Sender: No OFD packet to send [03:27:16]OFD Sender: No OFD packet to send [03:27:21]OFD Sender: No OFD packet to send [03:27:26]OFD Sender: No OFD packet to send [03:27:31]OFD Sender: No OFD packet to send [03:27:36]OFD Sender: No OFD packet to send [03:27:41]OFD Sender: No OFD packet to send [03:27:46]OFD Sender: No OFD packet to send [03:27:51]OFD Sender: No OFD packet to send [03:27:56]OFD Sender: No OFD packet to send [03:28:01]OFD Sender: No OFD packet to send [03:28:06]OFD Sender: No OFD packet to send [03:28:11]OFD Sender: No OFD packet to send [03:28:16]OFD Sender: No OFD packet to send [03:28:21]OFD Sender: No OFD packet to send [03:28:26]OFD Sender: No OFD packet to send [03:28:31]OFD Sender: No OFD packet to send [03:28:36]OFD Sender: No OFD packet to send [03:28:41]OFD Sender: No OFD packet to send [03:28:46]OFD Sender: No OFD packet to send [03:28:51]OFD Sender: No OFD packet to send [03:28:56]OFD Sender: No OFD packet to send [03:29:01]OFD Sender: No OFD packet to send [03:29:06]OFD Sender: No OFD packet to send [03:29:11]OFD Sender: No OFD packet to send [03:29:16]OFD Sender: No OFD packet to send [03:29:21]OFD Sender: No OFD packet to send [03:29:26]OFD Sender: No OFD packet to send [03:29:31]OFD Sender: No OFD packet to send [03:29:36]OFD Sender: No OFD packet to send [03:29:41]OFD Sender: No OFD packet to send [03:29:46]OFD Sender: No OFD packet to send [03:29:51]OFD Sender: No OFD packet to send [03:29:56]OFD Sender: No OFD packet to send [03:30:01]OFD Sender: No OFD packet to send [03:30:06]OFD Sender: No OFD packet to send [03:30:11]OFD Sender: No OFD packet to send [03:30:16]OFD Sender: No OFD packet to send [03:30:21]OFD Sender: No OFD packet to send [03:30:26]OFD Sender: No OFD packet to send [03:30:31]OFD Sender: No OFD packet to send [03:30:36]OFD Sender: No OFD packet to send [03:30:41]OFD Sender: No OFD packet to send [03:30:46]OFD Sender: No OFD packet to send [03:30:51]OFD Sender: No OFD packet to send [03:30:56]OFD Sender: No OFD packet to send [03:31:01]OFD Sender: No OFD packet to send [03:31:06]OFD Sender: No OFD packet to send [03:31:11]OFD Sender: No OFD packet to send [03:31:16]OFD Sender: No OFD packet to send [03:31:21]OFD Sender: No OFD packet to send [03:31:26]OFD Sender: No OFD packet to send [03:31:31]OFD Sender: No OFD packet to send [03:31:36]OFD Sender: No OFD packet to send [03:31:41]OFD Sender: No OFD packet to send [03:31:46]OFD Sender: No OFD packet to send [03:31:51]OFD Sender: No OFD packet to send [03:31:56]OFD Sender: No OFD packet to send [03:32:01]OFD Sender: No OFD packet to send [03:32:06]OFD Sender: No OFD packet to send [03:32:11]OFD Sender: No OFD packet to send [03:32:16]OFD Sender: No OFD packet to send [03:32:21]OFD Sender: No OFD packet to send [03:32:26]OFD Sender: No OFD packet to send [03:32:31]OFD Sender: No OFD packet to send [03:32:36]OFD Sender: No OFD packet to send [03:32:41]OFD Sender: No OFD packet to send [03:32:46]OFD Sender: No OFD packet to send [03:32:51]OFD Sender: No OFD packet to send [03:32:56]OFD Sender: No OFD packet to send [03:33:01]OFD Sender: No OFD packet to send [03:33:06]OFD Sender: No OFD packet to send [03:33:11]OFD Sender: No OFD packet to send [03:33:16]OFD Sender: No OFD packet to send [03:33:21]OFD Sender: No OFD packet to send [03:33:26]OFD Sender: No OFD packet to send [03:33:31]OFD Sender: No OFD packet to send [03:33:36]OFD Sender: No OFD packet to send [03:33:41]OFD Sender: No OFD packet to send [03:33:46]OFD Sender: No OFD packet to send [03:33:51]OFD Sender: No OFD packet to send [03:33:56]OFD Sender: No OFD packet to send [03:34:01]OFD Sender: No OFD packet to send [03:34:06]OFD Sender: No OFD packet to send [03:34:11]OFD Sender: No OFD packet to send [03:34:16]OFD Sender: No OFD packet to send [03:34:21]OFD Sender: No OFD packet to send [03:34:26]OFD Sender: No OFD packet to send [03:34:31]OFD Sender: No OFD packet to send [03:34:36]OFD Sender: No OFD packet to send [03:34:41]OFD Sender: No OFD packet to send [03:34:46]OFD Sender: No OFD packet to send [03:34:51]OFD Sender: No OFD packet to send [03:34:56]OFD Sender: No OFD packet to send [03:35:01]OFD Sender: No OFD packet to send [03:35:06]OFD Sender: No OFD packet to send [03:35:11]OFD Sender: No OFD packet to send [03:35:16]OFD Sender: No OFD packet to send [03:35:21]OFD Sender: No OFD packet to send [03:35:26]OFD Sender: No OFD packet to send [03:35:31]OFD Sender: No OFD packet to send [03:35:36]OFD Sender: No OFD packet to send [03:35:41]OFD Sender: No OFD packet to send [03:35:46]OFD Sender: No OFD packet to send [03:35:51]OFD Sender: No OFD packet to send [03:35:56]OFD Sender: No OFD packet to send [03:36:01]OFD Sender: No OFD packet to send [03:36:06]OFD Sender: No OFD packet to send [03:36:11]OFD Sender: No OFD packet to send [03:36:16]OFD Sender: No OFD packet to send [03:36:21]OFD Sender: No OFD packet to send [03:36:26]OFD Sender: No OFD packet to send [03:36:31]OFD Sender: No OFD packet to send [03:36:36]OFD Sender: No OFD packet to send [03:36:41]OFD Sender: No OFD packet to send [03:36:46]OFD Sender: No OFD packet to send [03:36:51]OFD Sender: No OFD packet to send [03:36:56]OFD Sender: No OFD packet to send [03:37:01]OFD Sender: No OFD packet to send [03:37:06]OFD Sender: No OFD packet to send [03:37:11]OFD Sender: No OFD packet to send [03:37:16]OFD Sender: No OFD packet to send [03:37:21]OFD Sender: No OFD packet to send [03:37:26]OFD Sender: No OFD packet to send [03:37:31]OFD Sender: No OFD packet to send [03:37:36]OFD Sender: No OFD packet to send [03:37:41]OFD Sender: No OFD packet to send [03:37:46]OFD Sender: No OFD packet to send [03:37:51]OFD Sender: No OFD packet to send [03:37:56]OFD Sender: No OFD packet to send [03:38:01]OFD Sender: No OFD packet to send [03:38:06]OFD Sender: No OFD packet to send [03:38:11]OFD Sender: No OFD packet to send [03:38:16]OFD Sender: No OFD packet to send [03:38:21]OFD Sender: No OFD packet to send [03:38:26]OFD Sender: No OFD packet to send [03:38:31]OFD Sender: No OFD packet to send [03:38:36]OFD Sender: No OFD packet to send [03:38:41]OFD Sender: No OFD packet to send [03:38:46]OFD Sender: No OFD packet to send [03:38:51]OFD Sender: No OFD packet to send [03:38:56]OFD Sender: No OFD packet to send [03:39:01]OFD Sender: No OFD packet to send [03:39:06]OFD Sender: No OFD packet to send [03:39:11]OFD Sender: No OFD packet to send [03:39:16]OFD Sender: No OFD packet to send [03:39:21]OFD Sender: No OFD packet to send [03:39:26]OFD Sender: No OFD packet to send [03:39:31]OFD Sender: No OFD packet to send [03:39:36]OFD Sender: No OFD packet to send [03:39:41]OFD Sender: No OFD packet to send [03:39:46]OFD Sender: No OFD packet to send [03:39:51]OFD Sender: No OFD packet to send [03:39:56]OFD Sender: No OFD packet to send [03:40:01]OFD Sender: No OFD packet to send [03:40:06]OFD Sender: No OFD packet to send [03:40:11]OFD Sender: No OFD packet to send [03:40:16]OFD Sender: No OFD packet to send [03:40:21]OFD Sender: No OFD packet to send [03:40:26]OFD Sender: No OFD packet to send [03:40:31]OFD Sender: No OFD packet to send [03:40:36]OFD Sender: No OFD packet to send [03:40:41]OFD Sender: No OFD packet to send [03:40:46]OFD Sender: No OFD packet to send [03:40:51]OFD Sender: No OFD packet to send [03:40:56]OFD Sender: No OFD packet to send [03:41:01]OFD Sender: No OFD packet to send [03:41:06]OFD Sender: No OFD packet to send [03:41:11]OFD Sender: No OFD packet to send [03:41:16]OFD Sender: No OFD packet to send [03:41:21]OFD Sender: No OFD packet to send [03:41:26]OFD Sender: No OFD packet to send [03:41:31]OFD Sender: No OFD packet to send [03:41:36]OFD Sender: No OFD packet to send [03:41:41]OFD Sender: No OFD packet to send [03:41:46]OFD Sender: No OFD packet to send [03:41:51]OFD Sender: No OFD packet to send [03:41:57]OFD Sender: No OFD packet to send [03:44:27]OFD Sender: No OFD packet to send [03:44:32]OFD Sender: No OFD packet to send [03:44:37]OFD Sender: No OFD packet to send [03:44:42]OFD Sender: No OFD packet to send [03:44:47]OFD Sender: No OFD packet to send [03:44:52]OFD Sender: No OFD packet to send [03:44:57]OFD Sender: No OFD packet to send [03:45:02]OFD Sender: No OFD packet to send [03:45:07]OFD Sender: No OFD packet to send [03:45:12]OFD Sender: No OFD packet to send [03:45:17]OFD Sender: No OFD packet to send [03:45:22]OFD Sender: No OFD packet to send [03:45:27]OFD Sender: No OFD packet to send [03:45:32]OFD Sender: No OFD packet to send [03:45:37]OFD Sender: No OFD packet to send [03:45:42]OFD Sender: No OFD packet to send [03:45:47]OFD Sender: No OFD packet to send [03:45:52]OFD Sender: No OFD packet to send [03:45:57]OFD Sender: No OFD packet to send [03:46:02]OFD Sender: No OFD packet to send [03:46:07]OFD Sender: No OFD packet to send [03:46:12]OFD Sender: No OFD packet to send [03:46:17]OFD Sender: No OFD packet to send [03:46:22]OFD Sender: No OFD packet to send [03:46:27]OFD Sender: No OFD packet to send [03:46:32]OFD Sender: No OFD packet to send [03:46:36]ConnectInit Can't connect to host [03:46:37]OFD Sender: No OFD packet to send [03:46:42]OFD Sender: No OFD packet to send [03:46:47]OFD Sender: No OFD packet to send [03:46:52]OFD Sender: No OFD packet to send [03:46:57]OFD Sender: No OFD packet to send [03:47:02]OFD Sender: No OFD packet to send [03:47:07]OFD Sender: No OFD packet to send [03:47:12]OFD Sender: No OFD packet to send [03:47:17]OFD Sender: No OFD packet to send [03:47:22]OFD Sender: No OFD packet to send [03:47:27]OFD Sender: No OFD packet to send [03:47:32]OFD Sender: No OFD packet to send [03:47:37]OFD Sender: No OFD packet to send [03:47:42]OFD Sender: No OFD packet to send [03:47:47]OFD Sender: No OFD packet to send [03:47:52]OFD Sender: No OFD packet to send [03:47:57]OFD Sender: No OFD packet to send [03:48:02]OFD Sender: No OFD packet to send [03:48:07]OFD Sender: No OFD packet to send [03:48:12]OFD Sender: No OFD packet to send [03:48:17]OFD Sender: No OFD packet to send [03:48:22]OFD Sender: No OFD packet to send [03:48:27]OFD Sender: No OFD packet to send [03:48:32]OFD Sender: No OFD packet to send [03:48:37]OFD Sender: No OFD packet to send [03:48:42]OFD Sender: No OFD packet to send [03:48:47]OFD Sender: No OFD packet to send [03:48:52]OFD Sender: No OFD packet to send [03:48:57]OFD Sender: No OFD packet to send [03:49:02]OFD Sender: No OFD packet to send [03:49:07]OFD Sender: No OFD packet to send [03:49:12]OFD Sender: No OFD packet to send [03:49:17]OFD Sender: No OFD packet to send [03:49:22]OFD Sender: No OFD packet to send [03:49:27]OFD Sender: No OFD packet to send [03:49:32]OFD Sender: No OFD packet to send [03:49:37]OFD Sender: No OFD packet to send [03:49:42]OFD Sender: No OFD packet to send [03:49:47]OFD Sender: No OFD packet to send [03:49:52]OFD Sender: No OFD packet to send [03:49:57]OFD Sender: No OFD packet to send [03:50:02]OFD Sender: No OFD packet to send [03:50:07]OFD Sender: No OFD packet to send [03:50:12]OFD Sender: No OFD packet to send [03:50:17]OFD Sender: No OFD packet to send [03:50:22]OFD Sender: No OFD packet to send [03:50:27]OFD Sender: No OFD packet to send [03:50:32]OFD Sender: No OFD packet to send [03:50:37]OFD Sender: No OFD packet to send [03:50:42]OFD Sender: No OFD packet to send [03:50:47]OFD Sender: No OFD packet to send [03:50:52]OFD Sender: No OFD packet to send [03:50:57]OFD Sender: No OFD packet to send [03:51:02]OFD Sender: No OFD packet to send [03:51:07]OFD Sender: No OFD packet to send [03:51:12]OFD Sender: No OFD packet to send [03:51:17]OFD Sender: No OFD packet to send [03:51:22]OFD Sender: No OFD packet to send [03:51:27]OFD Sender: No OFD packet to send [03:51:32]OFD Sender: No OFD packet to send [03:51:37]OFD Sender: No OFD packet to send [03:51:42]OFD Sender: No OFD packet to send [03:51:47]OFD Sender: No OFD packet to send [03:51:52]OFD Sender: No OFD packet to send [03:51:57]OFD Sender: No OFD packet to send [03:52:02]OFD Sender: No OFD packet to send [03:52:07]OFD Sender: No OFD packet to send [03:52:12]OFD Sender: No OFD packet to send [03:52:17]OFD Sender: No OFD packet to send [03:52:22]OFD Sender: No OFD packet to send [03:52:27]OFD Sender: No OFD packet to send [03:52:32]OFD Sender: No OFD packet to send [03:52:37]OFD Sender: No OFD packet to send [03:52:42]OFD Sender: No OFD packet to send [03:52:47]OFD Sender: No OFD packet to send [03:52:52]OFD Sender: No OFD packet to send [03:52:57]OFD Sender: No OFD packet to send [03:53:02]OFD Sender: No OFD packet to send [03:53:07]OFD Sender: No OFD packet to send [03:53:12]OFD Sender: No OFD packet to send [03:53:17]OFD Sender: No OFD packet to send [03:53:22]OFD Sender: No OFD packet to send [03:53:27]OFD Sender: No OFD packet to send [03:53:32]OFD Sender: No OFD packet to send [03:53:37]OFD Sender: No OFD packet to send [03:53:42]OFD Sender: No OFD packet to send [03:53:47]OFD Sender: No OFD packet to send [03:53:52]OFD Sender: No OFD packet to send [03:53:57]OFD Sender: No OFD packet to send [03:54:02]OFD Sender: No OFD packet to send [03:54:07]OFD Sender: No OFD packet to send [03:54:12]OFD Sender: No OFD packet to send [03:54:17]OFD Sender: No OFD packet to send [03:54:22]OFD Sender: No OFD packet to send [03:54:27]OFD Sender: No OFD packet to send [03:54:32]OFD Sender: No OFD packet to send [03:54:37]OFD Sender: No OFD packet to send [03:54:42]OFD Sender: No OFD packet to send [03:54:47]OFD Sender: No OFD packet to send [03:54:52]OFD Sender: No OFD packet to send [03:54:57]OFD Sender: No OFD packet to send [03:55:02]OFD Sender: No OFD packet to send [03:55:07]OFD Sender: No OFD packet to send [03:55:12]OFD Sender: No OFD packet to send [03:55:17]OFD Sender: No OFD packet to send [03:55:22]OFD Sender: No OFD packet to send [03:55:27]OFD Sender: No OFD packet to send [03:55:32]OFD Sender: No OFD packet to send [03:55:37]OFD Sender: No OFD packet to send [03:55:42]OFD Sender: No OFD packet to send [03:55:47]OFD Sender: No OFD packet to send [03:55:52]OFD Sender: No OFD packet to send [03:55:57]OFD Sender: No OFD packet to send [03:56:02]OFD Sender: No OFD packet to send [03:56:07]OFD Sender: No OFD packet to send [03:56:12]OFD Sender: No OFD packet to send [03:56:17]OFD Sender: No OFD packet to send [03:56:22]OFD Sender: No OFD packet to send [03:56:27]OFD Sender: No OFD packet to send [03:56:32]OFD Sender: No OFD packet to send [03:56:37]OFD Sender: No OFD packet to send [03:56:42]OFD Sender: No OFD packet to send [03:56:47]OFD Sender: No OFD packet to send [03:56:52]OFD Sender: No OFD packet to send [03:56:57]OFD Sender: No OFD packet to send [03:57:02]OFD Sender: No OFD packet to send [03:57:07]OFD Sender: No OFD packet to send [03:57:12]OFD Sender: No OFD packet to send [03:57:17]OFD Sender: No OFD packet to send [03:57:22]OFD Sender: No OFD packet to send [03:57:27]OFD Sender: No OFD packet to send [03:57:32]OFD Sender: No OFD packet to send [03:57:37]OFD Sender: No OFD packet to send [03:57:42]OFD Sender: No OFD packet to send [03:57:47]OFD Sender: No OFD packet to send [03:57:52]OFD Sender: No OFD packet to send [03:57:57]OFD Sender: No OFD packet to send [03:58:02]OFD Sender: No OFD packet to send [03:58:07]OFD Sender: No OFD packet to send [03:58:12]OFD Sender: No OFD packet to send [03:58:17]OFD Sender: No OFD packet to send [03:58:22]OFD Sender: No OFD packet to send [03:58:27]OFD Sender: No OFD packet to send [03:58:32]OFD Sender: No OFD packet to send [03:58:37]OFD Sender: No OFD packet to send [03:58:42]OFD Sender: No OFD packet to send [03:58:47]OFD Sender: No OFD packet to send [03:58:52]OFD Sender: No OFD packet to send [03:58:57]OFD Sender: No OFD packet to send [03:59:02]OFD Sender: No OFD packet to send [03:59:07]OFD Sender: No OFD packet to send [03:59:12]OFD Sender: No OFD packet to send [03:59:17]OFD Sender: No OFD packet to send [03:59:22]OFD Sender: No OFD packet to send [03:59:27]OFD Sender: No OFD packet to send [03:59:32]OFD Sender: No OFD packet to send [03:59:37]OFD Sender: No OFD packet to send [03:59:42]OFD Sender: No OFD packet to send [03:59:47]OFD Sender: No OFD packet to send [03:59:52]OFD Sender: No OFD packet to send [03:59:57]OFD Sender: No OFD packet to send [04:00:02]OFD Sender: No OFD packet to send [04:00:07]OFD Sender: No OFD packet to send [04:00:12]OFD Sender: No OFD packet to send [04:00:17]OFD Sender: No OFD packet to send [04:00:22]OFD Sender: No OFD packet to send [04:00:27]OFD Sender: No OFD packet to send [04:00:32]OFD Sender: No OFD packet to send [04:00:37]OFD Sender: No OFD packet to send [04:00:42]OFD Sender: No OFD packet to send [04:00:47]OFD Sender: No OFD packet to send [04:00:52]OFD Sender: No OFD packet to send [04:00:57]OFD Sender: No OFD packet to send [04:01:02]OFD Sender: No OFD packet to send [04:01:07]OFD Sender: No OFD packet to send [04:01:12]OFD Sender: No OFD packet to send [04:01:17]OFD Sender: No OFD packet to send [04:01:22]OFD Sender: No OFD packet to send [04:01:27]OFD Sender: No OFD packet to send [04:01:32]OFD Sender: No OFD packet to send [04:01:37]OFD Sender: No OFD packet to send [04:01:42]OFD Sender: No OFD packet to send [04:01:47]OFD Sender: No OFD packet to send [04:01:52]OFD Sender: No OFD packet to send [04:01:57]OFD Sender: No OFD packet to send [04:02:02]OFD Sender: No OFD packet to send [04:02:07]OFD Sender: No OFD packet to send [04:02:12]OFD Sender: No OFD packet to send [04:02:17]OFD Sender: No OFD packet to send [04:02:22]OFD Sender: No OFD packet to send [04:02:27]OFD Sender: No OFD packet to send [04:02:32]OFD Sender: No OFD packet to send [04:02:37]OFD Sender: No OFD packet to send [04:02:42]OFD Sender: No OFD packet to send [04:02:47]OFD Sender: No OFD packet to send [04:02:52]OFD Sender: No OFD packet to send [04:02:57]OFD Sender: No OFD packet to send [04:03:02]OFD Sender: No OFD packet to send [04:03:07]OFD Sender: No OFD packet to send [04:03:12]OFD Sender: No OFD packet to send [04:03:17]OFD Sender: No OFD packet to send [04:03:22]OFD Sender: No OFD packet to send [04:03:28]OFD Sender: No OFD packet to send [04:03:33]OFD Sender: No OFD packet to send [04:03:38]OFD Sender: No OFD packet to send [04:03:43]OFD Sender: No OFD packet to send [04:03:48]OFD Sender: No OFD packet to send [04:03:53]OFD Sender: No OFD packet to send [04:03:58]OFD Sender: No OFD packet to send [04:04:03]OFD Sender: No OFD packet to send [04:04:08]OFD Sender: No OFD packet to send [04:04:13]OFD Sender: No OFD packet to send [04:04:18]OFD Sender: No OFD packet to send [04:04:23]OFD Sender: No OFD packet to send [04:04:28]OFD Sender: No OFD packet to send [04:04:33]OFD Sender: No OFD packet to send [04:04:38]OFD Sender: No OFD packet to send [04:04:43]OFD Sender: No OFD packet to send [04:04:48]OFD Sender: No OFD packet to send [04:04:53]OFD Sender: No OFD packet to send [04:04:58]OFD Sender: No OFD packet to send [04:05:03]OFD Sender: No OFD packet to send [04:05:08]OFD Sender: No OFD packet to send [04:05:13]OFD Sender: No OFD packet to send [04:05:18]OFD Sender: No OFD packet to send [04:05:23]OFD Sender: No OFD packet to send [04:05:28]OFD Sender: No OFD packet to send [04:05:33]OFD Sender: No OFD packet to send [04:05:38]OFD Sender: No OFD packet to send [04:05:43]OFD Sender: No OFD packet to send [04:05:48]OFD Sender: No OFD packet to send [04:05:53]OFD Sender: No OFD packet to send [04:05:58]OFD Sender: No OFD packet to send [04:06:03]OFD Sender: No OFD packet to send [04:06:08]OFD Sender: No OFD packet to send [04:06:13]OFD Sender: No OFD packet to send [04:06:18]OFD Sender: No OFD packet to send [04:06:23]OFD Sender: No OFD packet to send [04:06:28]OFD Sender: No OFD packet to send [04:06:33]OFD Sender: No OFD packet to send [04:06:38]OFD Sender: No OFD packet to send [04:06:43]OFD Sender: No OFD packet to send [04:06:48]OFD Sender: No OFD packet to send [04:06:53]OFD Sender: No OFD packet to send [04:06:58]OFD Sender: No OFD packet to send [04:07:03]OFD Sender: No OFD packet to send [04:07:08]OFD Sender: No OFD packet to send [04:07:13]OFD Sender: No OFD packet to send [04:07:18]OFD Sender: No OFD packet to send [04:07:23]OFD Sender: No OFD packet to send [04:07:28]OFD Sender: No OFD packet to send [04:07:33]OFD Sender: No OFD packet to send [04:07:38]OFD Sender: No OFD packet to send [04:07:43]OFD Sender: No OFD packet to send [04:07:48]OFD Sender: No OFD packet to send [04:07:53]OFD Sender: No OFD packet to send [04:07:58]OFD Sender: No OFD packet to send [04:08:03]OFD Sender: No OFD packet to send [04:08:08]OFD Sender: No OFD packet to send [04:08:13]OFD Sender: No OFD packet to send [04:08:18]OFD Sender: No OFD packet to send [04:08:23]OFD Sender: No OFD packet to send [04:08:28]OFD Sender: No OFD packet to send [04:08:33]OFD Sender: No OFD packet to send [04:08:38]OFD Sender: No OFD packet to send [04:08:43]OFD Sender: No OFD packet to send [04:08:48]OFD Sender: No OFD packet to send [04:08:53]OFD Sender: No OFD packet to send [04:08:58]OFD Sender: No OFD packet to send [04:09:03]OFD Sender: No OFD packet to send [04:09:08]OFD Sender: No OFD packet to send [04:09:13]OFD Sender: No OFD packet to send [04:09:18]OFD Sender: No OFD packet to send [04:09:23]OFD Sender: No OFD packet to send [04:09:28]OFD Sender: No OFD packet to send [04:09:33]OFD Sender: No OFD packet to send [04:09:38]OFD Sender: No OFD packet to send [04:09:43]OFD Sender: No OFD packet to send [04:09:48]OFD Sender: No OFD packet to send [04:09:53]OFD Sender: No OFD packet to send [04:09:58]OFD Sender: No OFD packet to send [04:10:03]OFD Sender: No OFD packet to send [04:10:08]OFD Sender: No OFD packet to send [04:10:13]OFD Sender: No OFD packet to send [04:10:18]OFD Sender: No OFD packet to send [04:10:23]OFD Sender: No OFD packet to send [04:10:28]OFD Sender: No OFD packet to send [04:10:33]OFD Sender: No OFD packet to send [04:10:38]OFD Sender: No OFD packet to send [04:10:43]OFD Sender: No OFD packet to send [04:10:48]OFD Sender: No OFD packet to send [04:10:53]OFD Sender: No OFD packet to send [04:10:58]OFD Sender: No OFD packet to send [04:11:03]OFD Sender: No OFD packet to send [04:11:08]OFD Sender: No OFD packet to send [04:11:13]OFD Sender: No OFD packet to send [04:11:18]OFD Sender: No OFD packet to send [04:11:23]OFD Sender: No OFD packet to send [04:11:28]OFD Sender: No OFD packet to send [04:11:33]OFD Sender: No OFD packet to send [04:11:38]OFD Sender: No OFD packet to send [04:11:43]OFD Sender: No OFD packet to send [04:11:48]OFD Sender: No OFD packet to send [04:11:53]OFD Sender: No OFD packet to send [04:11:58]OFD Sender: No OFD packet to send [04:12:03]OFD Sender: No OFD packet to send [04:12:08]OFD Sender: No OFD packet to send [04:12:13]OFD Sender: No OFD packet to send [04:12:18]OFD Sender: No OFD packet to send [04:12:23]OFD Sender: No OFD packet to send [04:12:28]OFD Sender: No OFD packet to send [04:12:33]OFD Sender: No OFD packet to send [04:12:38]OFD Sender: No OFD packet to send [04:12:43]OFD Sender: No OFD packet to send [04:12:48]OFD Sender: No OFD packet to send [04:12:53]OFD Sender: No OFD packet to send [04:12:58]OFD Sender: No OFD packet to send [04:13:03]OFD Sender: No OFD packet to send [04:13:08]OFD Sender: No OFD packet to send [04:13:13]OFD Sender: No OFD packet to send [04:13:18]OFD Sender: No OFD packet to send [04:13:23]OFD Sender: No OFD packet to send [04:13:28]OFD Sender: No OFD packet to send [04:13:33]OFD Sender: No OFD packet to send [04:13:38]OFD Sender: No OFD packet to send [04:13:43]OFD Sender: No OFD packet to send [04:13:48]OFD Sender: No OFD packet to send [04:13:53]OFD Sender: No OFD packet to send [04:13:58]OFD Sender: No OFD packet to send [04:14:03]OFD Sender: No OFD packet to send [04:14:08]OFD Sender: No OFD packet to send [04:14:13]OFD Sender: No OFD packet to send [04:14:18]OFD Sender: No OFD packet to send [04:14:23]OFD Sender: No OFD packet to send [04:14:28]OFD Sender: No OFD packet to send [04:14:33]OFD Sender: No OFD packet to send [04:14:38]OFD Sender: No OFD packet to send [04:14:43]OFD Sender: No OFD packet to send [04:14:48]OFD Sender: No OFD packet to send [04:14:53]OFD Sender: No OFD packet to send [04:14:58]OFD Sender: No OFD packet to send [04:15:03]OFD Sender: No OFD packet to send [04:15:08]OFD Sender: No OFD packet to send [04:15:13]OFD Sender: No OFD packet to send [04:15:18]OFD Sender: No OFD packet to send [04:15:23]OFD Sender: No OFD packet to send [04:15:28]OFD Sender: No OFD packet to send [04:15:33]OFD Sender: No OFD packet to send [04:15:38]OFD Sender: No OFD packet to send [04:15:43]OFD Sender: No OFD packet to send [04:15:48]OFD Sender: No OFD packet to send [04:15:53]OFD Sender: No OFD packet to send [04:15:58]OFD Sender: No OFD packet to send [04:16:03]OFD Sender: No OFD packet to send [04:16:08]OFD Sender: No OFD packet to send [04:16:13]OFD Sender: No OFD packet to send [04:16:18]OFD Sender: No OFD packet to send [04:16:23]OFD Sender: No OFD packet to send [04:16:28]OFD Sender: No OFD packet to send [04:16:33]OFD Sender: No OFD packet to send [04:16:38]OFD Sender: No OFD packet to send [04:16:43]OFD Sender: No OFD packet to send [04:16:48]OFD Sender: No OFD packet to send [04:16:53]OFD Sender: No OFD packet to send [04:16:58]OFD Sender: No OFD packet to send [04:17:03]OFD Sender: No OFD packet to send [04:17:08]OFD Sender: No OFD packet to send [04:17:13]OFD Sender: No OFD packet to send [04:17:18]OFD Sender: No OFD packet to send [04:17:23]OFD Sender: No OFD packet to send [04:17:28]OFD Sender: No OFD packet to send [04:17:33]OFD Sender: No OFD packet to send [04:17:38]OFD Sender: No OFD packet to send [04:17:43]OFD Sender: No OFD packet to send [04:17:48]OFD Sender: No OFD packet to send [04:17:53]OFD Sender: No OFD packet to send [04:17:58]OFD Sender: No OFD packet to send [04:18:03]OFD Sender: No OFD packet to send [04:18:08]OFD Sender: No OFD packet to send [04:18:13]OFD Sender: No OFD packet to send [04:18:18]OFD Sender: No OFD packet to send [04:18:23]OFD Sender: No OFD packet to send [04:18:28]OFD Sender: No OFD packet to send [04:18:33]OFD Sender: No OFD packet to send [04:18:38]OFD Sender: No OFD packet to send [04:18:43]OFD Sender: No OFD packet to send [04:18:48]OFD Sender: No OFD packet to send [04:18:53]OFD Sender: No OFD packet to send [04:18:58]OFD Sender: No OFD packet to send [04:19:03]OFD Sender: No OFD packet to send [04:19:08]OFD Sender: No OFD packet to send [04:19:13]OFD Sender: No OFD packet to send [04:19:18]OFD Sender: No OFD packet to send [04:19:23]OFD Sender: No OFD packet to send [04:19:28]OFD Sender: No OFD packet to send [04:19:33]OFD Sender: No OFD packet to send [04:19:38]OFD Sender: No OFD packet to send [04:19:43]OFD Sender: No OFD packet to send [04:19:48]OFD Sender: No OFD packet to send [04:19:53]OFD Sender: No OFD packet to send [04:19:58]OFD Sender: No OFD packet to send [04:20:03]OFD Sender: No OFD packet to send [04:20:08]OFD Sender: No OFD packet to send [04:20:13]OFD Sender: No OFD packet to send [04:20:18]OFD Sender: No OFD packet to send [04:20:23]OFD Sender: No OFD packet to send [04:20:28]OFD Sender: No OFD packet to send [04:20:33]OFD Sender: No OFD packet to send [04:20:38]OFD Sender: No OFD packet to send [04:20:43]OFD Sender: No OFD packet to send [04:20:48]OFD Sender: No OFD packet to send [04:20:53]OFD Sender: No OFD packet to send [04:20:58]OFD Sender: No OFD packet to send [04:21:03]OFD Sender: No OFD packet to send [04:21:08]OFD Sender: No OFD packet to send [04:21:13]OFD Sender: No OFD packet to send [04:21:18]OFD Sender: No OFD packet to send [04:21:23]OFD Sender: No OFD packet to send [04:21:28]OFD Sender: No OFD packet to send [04:21:33]OFD Sender: No OFD packet to send [04:21:38]OFD Sender: No OFD packet to send [04:21:43]OFD Sender: No OFD packet to send [04:21:48]OFD Sender: No OFD packet to send [04:21:53]OFD Sender: No OFD packet to send [04:21:58]OFD Sender: No OFD packet to send [04:22:03]OFD Sender: No OFD packet to send [04:22:08]OFD Sender: No OFD packet to send [04:22:13]OFD Sender: No OFD packet to send [04:22:18]OFD Sender: No OFD packet to send [04:22:23]OFD Sender: No OFD packet to send [04:22:28]OFD Sender: No OFD packet to send [04:22:33]OFD Sender: No OFD packet to send [04:22:38]OFD Sender: No OFD packet to send [04:22:43]OFD Sender: No OFD packet to send [04:22:48]OFD Sender: No OFD packet to send [04:22:53]OFD Sender: No OFD packet to send [04:22:58]OFD Sender: No OFD packet to send [04:23:03]OFD Sender: No OFD packet to send [04:23:08]OFD Sender: No OFD packet to send [04:23:13]OFD Sender: No OFD packet to send [04:23:18]OFD Sender: No OFD packet to send [04:23:23]OFD Sender: No OFD packet to send [04:23:28]OFD Sender: No OFD packet to send [04:23:33]OFD Sender: No OFD packet to send [04:23:38]OFD Sender: No OFD packet to send [04:23:43]OFD Sender: No OFD packet to send [04:23:48]OFD Sender: No OFD packet to send [04:23:53]OFD Sender: No OFD packet to send [04:23:58]OFD Sender: No OFD packet to send [04:24:03]OFD Sender: No OFD packet to send [04:24:08]OFD Sender: No OFD packet to send [04:24:13]OFD Sender: No OFD packet to send [04:24:18]OFD Sender: No OFD packet to send [04:24:23]OFD Sender: No OFD packet to send [04:24:28]OFD Sender: No OFD packet to send [04:24:33]OFD Sender: No OFD packet to send [04:24:38]OFD Sender: No OFD packet to send [04:24:44]OFD Sender: No OFD packet to send [04:24:49]OFD Sender: No OFD packet to send [04:24:54]OFD Sender: No OFD packet to send [04:24:59]OFD Sender: No OFD packet to send [04:25:04]OFD Sender: No OFD packet to send [04:25:09]OFD Sender: No OFD packet to send [04:25:14]OFD Sender: No OFD packet to send [04:25:19]OFD Sender: No OFD packet to send [04:25:24]OFD Sender: No OFD packet to send [04:25:29]OFD Sender: No OFD packet to send [04:25:34]OFD Sender: No OFD packet to send [04:25:39]OFD Sender: No OFD packet to send [04:25:44]OFD Sender: No OFD packet to send [04:25:49]OFD Sender: No OFD packet to send [04:25:54]OFD Sender: No OFD packet to send [04:25:59]OFD Sender: No OFD packet to send [04:26:04]OFD Sender: No OFD packet to send [04:26:09]OFD Sender: No OFD packet to send [04:26:14]OFD Sender: No OFD packet to send [04:26:19]OFD Sender: No OFD packet to send [04:26:24]OFD Sender: No OFD packet to send [04:26:29]OFD Sender: No OFD packet to send [04:26:34]OFD Sender: No OFD packet to send [04:26:39]OFD Sender: No OFD packet to send [04:26:44]OFD Sender: No OFD packet to send [04:26:49]OFD Sender: No OFD packet to send [04:26:54]OFD Sender: No OFD packet to send [04:26:59]OFD Sender: No OFD packet to send [04:27:04]OFD Sender: No OFD packet to send [04:27:09]OFD Sender: No OFD packet to send [04:27:14]OFD Sender: No OFD packet to send [04:27:19]OFD Sender: No OFD packet to send [04:27:24]OFD Sender: No OFD packet to send [04:27:29]OFD Sender: No OFD packet to send [04:27:34]OFD Sender: No OFD packet to send [04:27:39]OFD Sender: No OFD packet to send [04:27:44]OFD Sender: No OFD packet to send [04:27:49]OFD Sender: No OFD packet to send [04:27:54]OFD Sender: No OFD packet to send [04:27:59]OFD Sender: No OFD packet to send [04:28:04]OFD Sender: No OFD packet to send [04:28:09]OFD Sender: No OFD packet to send [04:28:14]OFD Sender: No OFD packet to send [04:28:19]OFD Sender: No OFD packet to send [04:28:24]OFD Sender: No OFD packet to send [04:28:29]OFD Sender: No OFD packet to send [04:28:34]OFD Sender: No OFD packet to send [04:28:39]OFD Sender: No OFD packet to send [04:28:44]OFD Sender: No OFD packet to send [04:28:49]OFD Sender: No OFD packet to send [04:28:54]OFD Sender: No OFD packet to send [04:28:59]OFD Sender: No OFD packet to send [04:29:04]OFD Sender: No OFD packet to send [04:29:09]OFD Sender: No OFD packet to send [04:29:14]OFD Sender: No OFD packet to send [04:29:19]OFD Sender: No OFD packet to send [04:29:24]OFD Sender: No OFD packet to send [04:29:29]OFD Sender: No OFD packet to send [04:29:34]OFD Sender: No OFD packet to send [04:29:39]OFD Sender: No OFD packet to send [04:29:44]OFD Sender: No OFD packet to send [04:29:49]OFD Sender: No OFD packet to send [04:29:54]OFD Sender: No OFD packet to send [04:29:59]OFD Sender: No OFD packet to send [04:30:04]OFD Sender: No OFD packet to send [04:30:09]OFD Sender: No OFD packet to send [04:30:14]OFD Sender: No OFD packet to send [04:30:19]OFD Sender: No OFD packet to send [04:30:24]OFD Sender: No OFD packet to send [04:30:29]OFD Sender: No OFD packet to send [04:30:34]OFD Sender: No OFD packet to send [04:30:39]OFD Sender: No OFD packet to send [04:30:44]OFD Sender: No OFD packet to send [04:30:49]OFD Sender: No OFD packet to send [04:30:54]OFD Sender: No OFD packet to send [04:30:59]OFD Sender: No OFD packet to send [04:31:04]OFD Sender: No OFD packet to send [04:31:09]OFD Sender: No OFD packet to send [04:31:14]OFD Sender: No OFD packet to send [04:31:19]OFD Sender: No OFD packet to send [04:31:24]OFD Sender: No OFD packet to send [04:31:29]OFD Sender: No OFD packet to send [04:31:34]OFD Sender: No OFD packet to send [04:31:39]OFD Sender: No OFD packet to send [04:31:44]OFD Sender: No OFD packet to send [04:31:49]OFD Sender: No OFD packet to send [04:31:54]OFD Sender: No OFD packet to send [04:31:59]OFD Sender: No OFD packet to send [04:32:04]OFD Sender: No OFD packet to send [04:32:09]OFD Sender: No OFD packet to send [04:32:14]OFD Sender: No OFD packet to send [04:32:19]OFD Sender: No OFD packet to send [04:32:24]OFD Sender: No OFD packet to send [04:32:29]OFD Sender: No OFD packet to send [04:32:34]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:59]OFD Sender: No OFD packet to send [04:33:04]OFD Sender: No OFD packet to send [04:33:09]OFD Sender: No OFD packet to send [04:33:14]OFD Sender: No OFD packet to send [04:33:19]OFD Sender: No OFD packet to send [04:33:24]OFD Sender: No OFD packet to send [04:33:29]OFD Sender: No OFD packet to send [04:33:34]OFD Sender: No OFD packet to send [04:33:39]OFD Sender: No OFD packet to send [04:33:44]OFD Sender: No OFD packet to send [04:33:49]OFD Sender: No OFD packet to send [04:33:54]OFD Sender: No OFD packet to send [04:33:59]OFD Sender: No OFD packet to send [04:34:04]OFD Sender: No OFD packet to send [04:34:09]OFD Sender: No OFD packet to send [04:34:14]OFD Sender: No OFD packet to send [04:34:19]OFD Sender: No OFD packet to send [04:34:24]OFD Sender: No OFD packet to send [04:34:29]OFD Sender: No OFD packet to send [04:34:34]OFD Sender: No OFD packet to send [04:34:39]OFD Sender: No OFD packet to send [04:34:44]OFD Sender: No OFD packet to send [04:34:49]OFD Sender: No OFD packet to send [04:34:54]OFD Sender: No OFD packet to send [04:34:59]OFD Sender: No OFD packet to send [04:35:04]OFD Sender: No OFD packet to send [04:35:09]OFD Sender: No OFD packet to send [04:35:14]OFD Sender: No OFD packet to send [04:35:19]OFD Sender: No OFD packet to send [04:35:24]OFD Sender: No OFD packet to send [04:35:29]OFD Sender: No OFD packet to send [04:35:34]OFD Sender: No OFD packet to send [04:35:39]OFD Sender: No OFD packet to send [04:35:44]OFD Sender: No OFD packet to send [04:35:49]OFD Sender: No OFD packet to send [04:35:54]OFD Sender: No OFD packet to send [04:35:59]OFD Sender: No OFD packet to send [04:36:04]OFD Sender: No OFD packet to send [04:36:09]OFD Sender: No OFD packet to send [04:36:14]OFD Sender: No OFD packet to send [04:36:19]OFD Sender: No OFD packet to send [04:36:24]OFD Sender: No OFD packet to send [04:36:29]OFD Sender: No OFD packet to send [04:36:34]OFD Sender: No OFD packet to send [04:36:39]OFD Sender: No OFD packet to send [04:36:44]OFD Sender: No OFD packet to send [04:36:49]OFD Sender: No OFD packet to send [04:36:54]OFD Sender: No OFD packet to send [04:36:59]OFD Sender: No OFD packet to send [04:37:04]OFD Sender: No OFD packet to send [04:37:09]OFD Sender: No OFD packet to send [04:37:14]OFD Sender: No OFD packet to send [04:37:19]OFD Sender: No OFD packet to send [04:37:24]OFD Sender: No OFD packet to send [04:37:29]OFD Sender: No OFD packet to send [04:37:34]OFD Sender: No OFD packet to send [04:37:39]OFD Sender: No OFD packet to send [04:37:44]OFD Sender: No OFD packet to send [04:37:49]OFD Sender: No OFD packet to send [04:37:54]OFD Sender: No OFD packet to send [04:37:59]OFD Sender: No OFD packet to send [04:38:04]OFD Sender: No OFD packet to send [04:38:09]OFD Sender: No OFD packet to send [04:38:14]OFD Sender: No OFD packet to send [04:38:19]OFD Sender: No OFD packet to send [04:38:24]OFD Sender: No OFD packet to send [04:38:29]OFD Sender: No OFD packet to send [04:38:34]OFD Sender: No OFD packet to send [04:38:39]OFD Sender: No OFD packet to send [04:38:44]OFD Sender: No OFD packet to send [04:38:49]OFD Sender: No OFD packet to send [04:38:54]OFD Sender: No OFD packet to send [04:38:59]OFD Sender: No OFD packet to send [04:39:04]OFD Sender: No OFD packet to send [04:39:09]OFD Sender: No OFD packet to send [04:39:14]OFD Sender: No OFD packet to send [04:39:19]OFD Sender: No OFD packet to send [04:39:24]OFD Sender: No OFD packet to send [04:39:29]OFD Sender: No OFD packet to send [04:39:34]OFD Sender: No OFD packet to send [04:39:39]OFD Sender: No OFD packet to send [04:39:44]OFD Sender: No OFD packet to send [04:39:49]OFD Sender: No OFD packet to send [04:39:54]OFD Sender: No OFD packet to send [04:39:59]OFD Sender: No OFD packet to send [04:40:04]OFD Sender: No OFD packet to send [04:40:09]OFD Sender: No OFD packet to send [04:40:14]OFD Sender: No OFD packet to send [04:40:19]OFD Sender: No OFD packet to send [04:40:24]OFD Sender: No OFD packet to send [04:40:29]OFD Sender: No OFD packet to send [04:40:34]OFD Sender: No OFD packet to send [04:40:35]accept exits with 9 [04:40:35]New connection [04:40:35]New thread 3066498404 created [04:40:35]Thread 3066641764 joined [04:40:35]Waiting for new connection... [04:40:35] Sock 9.Parse request [04:40:35]Sock 9.Check first char [04:40:35]Sock 9.First char is OK [04:40:35]request: POST /json_proto HTTP/1.0 [04:40:35]Method: POST [04:40:35]URL: /json_proto [04:40:35]Method is POST - this is cgi request [04:40:35]url: /json_proto [04:40:35]query_string will be loaded in cgi processing [04:40:35]execute_cgi json_proto POST (null) [04:40:35]execute_cgi path=json_proto method=POST [04:40:35]POST find Content-Length [04:40:35]Host: 172.17.33.3:8080 [04:40:35]Content-Length: 675 [04:40:35]Content-Type: application/json [04:40:35] [04:40:35]POST finish read [04:40:35]Found Content-Length = 675 [04:40:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346870", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 33.700, "sum" : 2200.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2200.00, "total" : 2200.00, "payments": [ { "type": 0, "sum" : 2200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:40:35]execute_script... [04:40: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)346870", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 33.700, "sum" : 2200.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2200.00, "total" : 2200.00, "payments": [ { "type": 0, "sum" : 2200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:40:35]POST & json_proto [04:40:35]process_json_proto [04:40:35]json parsed OK: [04:40:35]protocol is kg_v1.0 [04:40:35]action value=close_receipt [04:40:35]process_action close_receipt [04:40:35]cmd_close_receipt [04:40:35]MH_GetDate [04:40:35]Write to MH i2c: F0 00 00 67 5A B0 [04:40:35]Write i2c OK [04:40:35]MH_I2C_Read... [04:40:35]Read from MH i2c: F0 [04:40:35]MH_I2C_Read... [04:40:35]Read from MH i2c: F0 09 00 [04:40:35]MH_I2C_Read... [04:40:35]Read from MH i2c: F0 09 00 67 5A 00 49 BB 18 66 23 5B 8F 65 AD [04:40:35]GetLastDocTimeStamp 1712890397 [04:40:35]current date 1712896841 [04:40:35]FM_GetShiftState [04:40:35]SAM_PROTO_GetShiftState [04:40:35]wFMCommunicate request_size=4 [04:40:35]MH_SAM_APDU [04:40:35]CAPDU: 80 13 01 00 [04:40:35]Write to MH i2c: E2 08 00 68 5A 80 13 01 00 00 00 00 00 3F [04:40:35]Write i2c OK [04:40:35]MH_I2C_Read... [04:40:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:40:35]Read from MH i2c: E2 [04:40:35]MH_I2C_Read... [04:40:35]Read from MH i2c: E2 0E 00 [04:40:35]MH_I2C_Read... [04:40:35]Read from MH i2c: E2 0E 00 68 5A 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 50 [04:40:35]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [04:40:35]wFMCommunicate OK [04:40:35]SAM_PROTO_GetShiftState done [04:40:35]FM_GetShiftState done [04:40:35]opened in 1712881416 [04:40:35]opened+sec_in_day 1712967816 [04:40:35]quantity*price = 220061 [04:40:35]sum+1 = 220062 [04:40:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 2200.00 Внесено: 2200.00 СДАЧА: 0.00 НСП 1% : 19.47 НДС 12% : 233.69 Наличными: 2200.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 13 12.04.2024 04:40 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28564 ФПД: 194753781278788 1/tax-web-control/client/api/v1/ticket?date=20240412T044041&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28564&fm=194753781278788&tin=02508201610067®Number=0000138879044617&sum=220000 [04:40:36]StoreToDocumentArchive [04:40:36]shift 113 fd 28564 [04:40:36]save to /storage/0113/doc_00028564 [04:40:36]save last doc name /storage/0113/doc_00028564 to /storage/kkm_last_doc_name [04:40:36]save OK [04:40:36]Clear old archive folders... [04:40:36]ProcessDocumentItem done err = 0, tmpTLVsize=252 [04:40:36]tlvbuf is 01AE9980 [04:40:36]SAM_PROTO_ClearQueue [04:40:36]wFMCommunicate request_size=4 [04:40:36]MH_SAM_APDU [04:40:36]CAPDU: 80 09 00 00 [04:40:36]Write to MH i2c: E2 08 00 75 5A 80 09 00 00 00 00 00 00 41 [04:40:36]Write i2c OK [04:40:36]MH_I2C_Read... [04:40:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:40:36]Read from MH i2c: E2 [04:40:36]MH_I2C_Read... [04:40:36]Read from MH i2c: E2 03 00 [04:40:36]MH_I2C_Read... [04:40:36]Read from MH i2c: E2 03 00 75 5A 00 90 00 43 [04:40:36]RAPDU: 90 00 [04:40:36]wFMCommunicate OK [04:40:36]SAM_PROTO_ClearQueue done [04:40:36]KKMCreateOFDPacket [04:40:36]OFDProtocolAddRootSTLVToBuf [04:40:36]FM_MakeSignedData [04:40:36]FM_MakeSignedData [04:40:36]SAM_PROTO_SignData [04:40:36]wFMCommunicate request_size=4 [04:40:36]MH_SAM_APDU [04:40:36]CAPDU: 80 0D 01 02 [04:40:36]Write to MH i2c: E2 08 00 76 5A 80 0D 01 02 00 00 00 00 49 [04:40:36]Write i2c OK [04:40:36]MH_I2C_Read... [04:40:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:40:36]Read from MH i2c: E2 [04:40:36]MH_I2C_Read... [04:40:36]Read from MH i2c: E2 03 00 [04:40:36]MH_I2C_Read... [04:40:36]Read from MH i2c: E2 03 00 76 5A 00 90 00 44 [04:40:36]RAPDU: 90 00 [04:40:36]wFMCommunicate OK [04:40:36]wFMCommunicate request_size=255 [04:40:36]MH_SAM_APDU [04:40:36]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A4 83 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 9D 5B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 5B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 49 5B 00 00 00 00 07 04 06 00 60 5B 03 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 49 BB 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 94 6F 00 00 35 04 06 00 [04:40:36]Write to MH i2c: E2 02 01 77 5A 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A4 83 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 9D 5B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 5B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 49 5B 00 00 00 00 07 04 06 00 60 5B 03 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 49 BB 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 94 6F 00 00 35 04 06 00 00 00 9C [04:40:36]Write i2c OK [04:40:36]MH_I2C_Read... [04:40:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:40:36]Read from MH i2c: E2 [04:40:36]MH_I2C_Read... [04:40:36]Read from MH i2c: E2 03 00 [04:40:36]MH_I2C_Read... [04:40:36]Read from MH i2c: E2 03 00 77 5A 00 90 00 45 [04:40:36]RAPDU: 90 00 [04:40:36]wFMCommunicate OK [04:40:36]wFMCommunicate request_size=11 [04:40:36]MH_SAM_APDU [04:40:36]CAPDU: 80 0D 02 02 06 B1 20 A5 F3 A8 44 [04:40:36]Write to MH i2c: E2 0E 00 78 5A 80 0D 02 02 06 00 B1 20 A5 F3 A8 44 00 00 AD [04:40:36]Write i2c OK [04:40:36]MH_I2C_Read... [04:40:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:40:36]Read from MH i2c: E2 [04:40:36]MH_I2C_Read... [04:40:36]Read from MH i2c: E2 03 00 [04:40:36]MH_I2C_Read... [04:40:36]Read from MH i2c: E2 03 00 78 5A 00 90 00 46 [04:40:36]RAPDU: 90 00 [04:40:36]wFMCommunicate OK [04:40:36]wFMCommunicate request_size=4 [04:40:36]MH_SAM_APDU [04:40:36]CAPDU: 80 0D 03 02 [04:40:36]Write to MH i2c: E2 08 00 79 5A 80 0D 03 02 00 00 00 00 4E [04:40:36]Write i2c OK [04:40:36]MH_I2C_Read... [04:40:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:40:36]Read from MH i2c: E2 [04:40:36]MH_I2C_Read... [04:40:36]Read from MH i2c: E2 0B 00 [04:40:36]MH_I2C_Read... [04:40:36]Read from MH i2c: E2 0B 00 79 5A 00 FC 89 4B FA 3A 12 27 5B 90 00 E7 [04:40:36]RAPDU: FC 89 4B FA 3A 12 27 5B 90 00 [04:40:36]wFMCommunicate OK [04:40:36]SAM_PROTO_SignData done [04:40:36]FM_MakeSignedData done [04:40:36]CreateOFDProtocolMessage [04:40:36]wFMCommunicate request_size=4 [04:40:36]MH_SAM_APDU [04:40:36]CAPDU: 80 11 00 00 [04:40:36]Write to MH i2c: E2 08 00 7A 5A 80 11 00 00 00 00 00 00 4E [04:40:36]Write i2c OK [04:40:36]MH_I2C_Read... [04:40:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:40:36]Read from MH i2c: E2 [04:40:36]MH_I2C_Read... [04:40:36]Read from MH i2c: E2 17 00 [04:40:36]MH_I2C_Read... [04:40:36]Read from MH i2c: E2 17 00 7A 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 9D [04:40:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [04:40:36]wFMCommunicate OK [04:40:36]CreateOFDProtocolMessage done [04:40:36]OFDSenderStorePacket 28564 [04:40:36]StoreOFDPacket docnum=28564 [04:40:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 7C 18 08 01 FB C4 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A4 83 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 9D 5B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 5B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 49 5B 00 00 00 00 07 04 06 00 60 5B 03 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 49 BB 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 94 6F 00 00 35 04 06 00 B1 20 A5 F3 A8 44 FC 89 4B FA 3A 12 27 5B [04:40:36]CheckFolder [04:40:36]dirname=/storage/ofd_packets [04:40:36]CheckFolder done [04:40:36]ProducePacketName [04:40:36]name=ofd_packets/00028564 [04:40:36]NVStorageSaveData ofd_packets/00028564 [04:40:36]File name is /storage/ofd_packets/00028564 [04:40:36]Write 302 bytes [04:40:36]NVStorageSaveData done [04:40:36]OFDSenderStorePacket done [04:40:36]KKMCreateOFDPacket done [04:40:36]NVStorageSaveData kkm_last_timestamp [04:40:36]File name is /storage/kkm_last_timestamp [04:40:36]Write 4 bytes [04:40:36]NVStorageSaveData done [04:40:36]ExternCall_PrintAddStr [04:40:36]wPrintStart [04:40:36]Write to MH i2c: 01 00 00 7B 5A D5 [04:40:36]Write i2c OK [04:40:36]MH_I2C_Read... [04:40:36]Read from MH i2c: 01 [04:40:36]MH_I2C_Read... [04:40:36]Read from MH i2c: 01 07 00 [04:40:36]MH_I2C_Read... [04:40:36]Read from MH i2c: 01 07 00 7B 5A 00 00 00 00 00 FF 0F EA [04:40:36]RasterBufferAndPrint [04:40:36]line Счет N : (1)346870 [04:40:36]line ИНН: 02508201610067 [04:40:36]line Контрольно-Кассовый Чек [04:40:36]line ПРОДАЖА [04:40:36]line ТРК (МРК, ГНК) : 31 [04:40:36]line Товар: 2710124130 [04:40:36]line SUPER-92-К-5 [04:40:36]line 33.700 * 65.30 [04:40:36]line = 2200.61 [04:40:36]line НДС 12% НСП 1% [04:40:36]line > о реализуемом товаре [04:40:36]line ОКРУГЛЕНИЕ: -0.61 [04:40:36]line ИТОГО: 2200.00 [04:40:36]line Внесено: 2200.00 [04:40:36]line СДАЧА: 0.00 [04:40:36]line НСП 1% : 19.47 [04:40:36]line НДС 12% : 233.69 [04:40:36]line Наличными: 2200.00 [04:40:36]line Безнал.: 0.00 [04:40:36]line Место: АЗС № 108 "Партнер Нефть" [04:40:36]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [04:40:36]line СНО: Общий режим [04:40:36]line Чек 13 12.04.2024 04:40 [04:40:36]line Смена: 113 ФФД: 1.0 [04:40:36]line ЗНМ: 0300000027 [04:40:36]line РНМ: 0000138879044617 [04:40:36]line Версия ККМ: 001 [04:40:36]line ФМ: 0000000000963154 [04:40:36]line ФД: 28564 [04:40:36]line ФПД: 194753781278788 [04:40:36]line 1/tax-web-control/client/api/v1/ticket?date=20240412T044041&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28564&fm=194753781278788&tin=02508201610067®Number=0000138879044617&sum=220000 [04:40:37]OFD Sender: Processing packet 28564 [packets to send 8, broken 7] [04:40:37]ProducePacketName [04:40:37]name=ofd_packets/00028564 [04:40:37]OFD Sender: To server: pG, [04:40:37]CommunicateWithHost lk.salyk.kg:30040 [04:40:37]ConnectInit lk.salyk.kg [04:40:37]written 0, free lines is 4095 [04:40:37]Connected sock=10 [04:40:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 7C 18 08 01 FB C4 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A4 83 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 9D 5B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 5B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 49 5B 00 00 00 00 07 04 06 00 60 5B 03 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 49 BB 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 94 6F 00 00 35 04 06 00 B1 20 A5 F3 A8 44 FC 89 4B FA 3A 12 27 5B [04:40:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 F6 3F 47 00 B4 4A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 94 6F 00 00 F4 03 04 00 F4 65 18 66 B6 04 01 00 00 71 80 98 EB 4E C2 83 61 [04:40:37]CommunicateWithHost err = 0 [04:40:37]CheckOFDResponse [04:40:37]1017 (14) - 77093643461234 [04:40:37]1041 (16) - 0000000000963154 [04:40:37]1040 (4) - 28564 [04:40:37]1012 (4) - 11.04.2024 22:36 [04:40:37]1206 (1) - 0 [04:40:37]OFD Sender: Remove packet 28564 [04:40:37]ProducePacketName [04:40:37]name=ofd_packets/00028564 [04:40:37]NVStorageDeleteData [04:40:37]Write to MH i2c: 01 00 00 A5 5A FF [04:40:37]Write i2c OK [04:40:37]MH_I2C_Read... [04:40:37]Read from MH i2c: 01 [04:40:37]MH_I2C_Read... [04:40:37]Read from MH i2c: 01 07 00 [04:40:37]MH_I2C_Read... [04:40:37]Read from MH i2c: 01 07 00 A5 5A 00 00 00 00 00 C4 0C D6 [04:40:37]RasterBufferAndPrint [04:40:37]line [04:40:37]line [04:40:37]line [04:40:37]line [04:40:37]line [04:40:37]written 0, free lines is 3274 [04:40:37]MH_Cut [04:40:37]Write to MH i2c: D1 01 00 AC 5A 01 D8 [04:40:37]Write i2c OK [04:40:37]MH_I2C_Read... [04:40:37]Read from MH i2c: D1 [04:40:37]MH_I2C_Read... [04:40:37]Read from MH i2c: D1 01 00 [04:40:37]MH_I2C_Read... [04:40:37]Read from MH i2c: D1 01 00 AC 5A 00 D7 [04:40:37]Write to MH i2c: 01 00 00 AD 5A 07 [04:40:37]Write i2c OK [04:40:37]MH_I2C_Read... [04:40:37]OFD Sender: No OFD packet to send [04:40:38]*** Cut start [04:40:38]*** Partial cut [04:40:38]*** CUTSNS_PIN = 1 [04:40:38]*** CUTSNS_PIN = 0 [04:40:38]*** Brake cut motor [04:40:39]Read from MH i2c: 01 [04:40:39]MH_I2C_Read... [04:40:39]*** Stop cut motor [04:40:39]*** Cut end [04:40:39]Read from MH i2c: 01 07 00 [04:40:39]MH_I2C_Read... [04:40:39]Read from MH i2c: 01 07 00 AD 5A 00 00 00 00 00 FF 0F 1C [04:40:39]process_action close_receipt done [04:40:39]requested_data is exist [04:40:39]produce_requested_data [04:40:39]requested_item fm.sn is exist - process it [04:40:39]wFMCommunicate request_size=4 [04:40:39]MH_SAM_APDU [04:40:39]CAPDU: 80 11 00 00 [04:40:39]Write to MH i2c: E2 08 00 AE 5A 80 11 00 00 00 00 00 00 82 [04:40:39]Write i2c OK [04:40:39]MH_I2C_Read... [04:40:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:40:39]Read from MH i2c: E2 [04:40:39]MH_I2C_Read... [04:40:39]Read from MH i2c: E2 17 00 [04:40:39]MH_I2C_Read... [04:40:39]Read from MH i2c: E2 17 00 AE 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D1 [04:40:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [04:40:39]wFMCommunicate OK [04:40:39]requested_item fd.num is exist - process it [04:40:39]SAM_PROTO_GetFieldsCounters [04:40:39]wFMCommunicate request_size=4 [04:40:39]MH_SAM_APDU [04:40:39]CAPDU: 80 13 00 00 [04:40:39]Write to MH i2c: E2 08 00 AF 5A 80 13 00 00 00 00 00 00 85 [04:40:39]Write i2c OK [04:40:39]MH_I2C_Read... [04:40:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:40:39]Read from MH i2c: E2 [04:40:39]MH_I2C_Read... [04:40:39]Read from MH i2c: E2 62 00 [04:40:39]MH_I2C_Read... [04:40:39]Read from MH i2c: E2 62 00 AF 5A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 94 6F 00 00 0E 04 04 00 71 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 5E [04:40:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 94 6F 00 00 0E 04 04 00 71 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 [04:40:39]wFMCommunicate OK [04:40:39]SAM_PROTO_GetFieldsCounters done [04:40:39]requested_item shift.num is exist - process it [04:40:39]requested_item shift.opened is exist - process it [04:40:39]req_shift_opened [04:40:39]FM_GetShiftState [04:40:39]SAM_PROTO_GetShiftState [04:40:39]wFMCommunicate request_size=4 [04:40:39]MH_SAM_APDU [04:40:39]CAPDU: 80 13 01 00 [04:40:39]Write to MH i2c: E2 08 00 B0 5A 80 13 01 00 00 00 00 00 87 [04:40:39]Write i2c OK [04:40:39]MH_I2C_Read... [04:40:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:40:39]Read from MH i2c: E2 [04:40:39]MH_I2C_Read... [04:40:39]Read from MH i2c: E2 0E 00 [04:40:39]MH_I2C_Read... [04:40:39]Read from MH i2c: E2 0E 00 B0 5A 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 98 [04:40:39]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [04:40:39]wFMCommunicate OK [04:40:39]SAM_PROTO_GetShiftState done [04:40:39]FM_GetShiftState done [04:40:39]req_shift_opened done [04:40:39]requested_item shift.open_date is exist - process it [04:40:39]req_shift_open_date [04:40:39]req_shift_open_date done [04:40:39]produce_requested_data done [04:40:39]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28564,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [04:40:39]process_action_free close_receipt [04:40:39]json_value_free [04:40:39]json_value_free done [04:40:39]process_json_proto returns [04:40:39]Send response to host [04:40:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28564,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [04:40:39]free response buf [04:40:39]execute_script done [04:40:39]execute_script returns [04:40:39]free content buf [04:40:39]Sock 9.Close socket [04:40:39]Sock 9.Thread stoped [04:40:42]OFD Sender: No OFD packet to send [04:40:47]OFD Sender: No OFD packet to send [04:40:52]OFD Sender: No OFD packet to send [04:40:57]OFD Sender: No OFD packet to send [04:41:02]OFD Sender: No OFD packet to send [04:41:07]OFD Sender: No OFD packet to send [04:41:12]OFD Sender: No OFD packet to send [04:41:17]OFD Sender: No OFD packet to send [04:41:22]OFD Sender: No OFD packet to send [04:41:27]OFD Sender: No OFD packet to send [04:41:32]OFD Sender: No OFD packet to send [04:41:38]OFD Sender: No OFD packet to send [04:41:43]OFD Sender: No OFD packet to send [04:41:48]OFD Sender: No OFD packet to send [04:41:53]OFD Sender: No OFD packet to send [04:41:58]OFD Sender: No OFD packet to send [04:42:03]OFD Sender: No OFD packet to send [04:42:08]OFD Sender: No OFD packet to send [04:42:13]OFD Sender: No OFD packet to send [04:42:18]OFD Sender: No OFD packet to send [04:42:23]OFD Sender: No OFD packet to send [04:42:28]OFD Sender: No OFD packet to send [04:42:33]OFD Sender: No OFD packet to send [04:42:38]OFD Sender: No OFD packet to send [04:42:43]OFD Sender: No OFD packet to send [04:42:48]OFD Sender: No OFD packet to send [04:42:53]OFD Sender: No OFD packet to send [04:42:58]OFD Sender: No OFD packet to send [04:43:03]OFD Sender: No OFD packet to send [04:43:08]OFD Sender: No OFD packet to send [04:43:13]OFD Sender: No OFD packet to send [04:43:18]OFD Sender: No OFD packet to send [04:43:23]OFD Sender: No OFD packet to send [04:43:28]OFD Sender: No OFD packet to send [04:43:33]OFD Sender: No OFD packet to send [04:43:38]OFD Sender: No OFD packet to send [04:43:43]OFD Sender: No OFD packet to send [04:43:48]OFD Sender: No OFD packet to send [04:43:53]OFD Sender: No OFD packet to send [04:43:58]OFD Sender: No OFD packet to send [04:44:03]OFD Sender: No OFD packet to send [04:44:08]OFD Sender: No OFD packet to send [04:44:13]OFD Sender: No OFD packet to send [04:44:18]OFD Sender: No OFD packet to send [04:44:23]OFD Sender: No OFD packet to send [04:44:28]OFD Sender: No OFD packet to send [04:44:33]OFD Sender: No OFD packet to send [04:44:38]OFD Sender: No OFD packet to send [04:44:43]OFD Sender: No OFD packet to send [04:44:48]OFD Sender: No OFD packet to send [04:44:53]OFD Sender: No OFD packet to send [04:44:58]OFD Sender: No OFD packet to send [04:45:03]OFD Sender: No OFD packet to send [04:45:08]OFD Sender: No OFD packet to send [04:45:13]OFD Sender: No OFD packet to send [04:45:18]OFD Sender: No OFD packet to send [04:45:23]OFD Sender: No OFD packet to send [04:45:28]OFD Sender: No OFD packet to send [04:45:33]OFD Sender: No OFD packet to send [04:45:38]OFD Sender: No OFD packet to send [04:45:43]OFD Sender: No OFD packet to send [04:45:48]OFD Sender: No OFD packet to send [04:45:53]OFD Sender: No OFD packet to send [04:45:58]OFD Sender: No OFD packet to send [04:46:03]OFD Sender: No OFD packet to send [04:46:08]OFD Sender: No OFD packet to send [04:46:13]OFD Sender: No OFD packet to send [04:46:18]OFD Sender: No OFD packet to send [04:46:23]OFD Sender: No OFD packet to send [04:46:28]OFD Sender: No OFD packet to send [04:46:33]OFD Sender: No OFD packet to send [04:46:38]OFD Sender: No OFD packet to send [04:46:43]OFD Sender: No OFD packet to send [04:46:48]OFD Sender: No OFD packet to send [04:46:53]OFD Sender: No OFD packet to send [04:46:58]OFD Sender: No OFD packet to send [04:47:03]OFD Sender: No OFD packet to send [04:47:08]OFD Sender: No OFD packet to send [04:47:13]OFD Sender: No OFD packet to send [04:47:18]OFD Sender: No OFD packet to send [04:47:23]OFD Sender: No OFD packet to send [04:47:28]OFD Sender: No OFD packet to send [04:47:33]OFD Sender: No OFD packet to send [04:47:38]OFD Sender: No OFD packet to send [04:47:43]OFD Sender: No OFD packet to send [04:47:48]OFD Sender: No OFD packet to send [04:47:53]OFD Sender: No OFD packet to send [04:47:58]OFD Sender: No OFD packet to send [04:48:03]OFD Sender: No OFD packet to send [04:48:08]OFD Sender: No OFD packet to send [04:48:13]OFD Sender: No OFD packet to send [04:48:18]OFD Sender: No OFD packet to send [04:48:23]OFD Sender: No OFD packet to send [04:48:28]OFD Sender: No OFD packet to send [04:48:33]OFD Sender: No OFD packet to send [04:48:38]OFD Sender: No OFD packet to send [04:48:43]OFD Sender: No OFD packet to send [04:48:48]OFD Sender: No OFD packet to send [04:48:53]OFD Sender: No OFD packet to send [04:48:58]OFD Sender: No OFD packet to send [04:49:03]OFD Sender: No OFD packet to send [04:49:08]OFD Sender: No OFD packet to send [04:49:13]OFD Sender: No OFD packet to send [04:49:18]OFD Sender: No OFD packet to send [04:49:23]OFD Sender: No OFD packet to send [04:49:28]OFD Sender: No OFD packet to send [04:49:33]OFD Sender: No OFD packet to send [04:49:38]OFD Sender: No OFD packet to send [04:49:43]OFD Sender: No OFD packet to send [04:49:48]OFD Sender: No OFD packet to send [04:49:53]OFD Sender: No OFD packet to send [04:49:58]OFD Sender: No OFD packet to send [04:50:03]OFD Sender: No OFD packet to send [04:50:08]OFD Sender: No OFD packet to send [04:50:11]accept exits with 7 [04:50:11]New connection [04:50:11]New thread 3066641764 created [04:50:11]Thread 3066498404 joined [04:50:11]Waiting for new connection... [04:50:11] Sock 7.Parse request [04:50:11]Sock 7.Check first char [04:50:11]Sock 7.First char is OK [04:50:11]request: POST /json_proto HTTP/1.0 [04:50:11]Method: POST [04:50:11]URL: /json_proto [04:50:11]Method is POST - this is cgi request [04:50:11]url: /json_proto [04:50:11]query_string will be loaded in cgi processing [04:50:11]execute_cgi json_proto POST (null) [04:50:11]execute_cgi path=json_proto method=POST [04:50:11]POST find Content-Length [04:50:11]Host: 172.17.33.3:8080 [04:50:11]Content-Length: 679 [04:50:11]Content-Type: application/json [04:50:11] [04:50:11]POST finish read [04:50:11]Found Content-Length = 679 [04:50:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346871", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 27.630, "sum" : 2000.41, "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" ] } } [04:50:11]execute_script... [04:50: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)346871", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 27.630, "sum" : 2000.41, "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" ] } } [04:50:11]POST & json_proto [04:50:11]process_json_proto [04:50:11]json parsed OK: [04:50:11]protocol is kg_v1.0 [04:50:11]action value=close_receipt [04:50:11]process_action close_receipt [04:50:11]cmd_close_receipt [04:50:11]MH_GetDate [04:50:11]Write to MH i2c: F0 00 00 B1 5A FA [04:50:11]Write i2c OK [04:50:11]MH_I2C_Read... [04:50:11]Read from MH i2c: F0 [04:50:11]MH_I2C_Read... [04:50:11]Read from MH i2c: F0 09 00 [04:50:11]MH_I2C_Read... [04:50:11]Read from MH i2c: F0 09 00 B1 5A 00 8A BD 18 66 23 5B 8F 65 3A [04:50:11]GetLastDocTimeStamp 1712896841 [04:50:11]current date 1712897418 [04:50:11]FM_GetShiftState [04:50:11]SAM_PROTO_GetShiftState [04:50:11]wFMCommunicate request_size=4 [04:50:11]MH_SAM_APDU [04:50:11]CAPDU: 80 13 01 00 [04:50:11]Write to MH i2c: E2 08 00 B2 5A 80 13 01 00 00 00 00 00 89 [04:50:11]Write i2c OK [04:50:11]MH_I2C_Read... [04:50:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:50:11]Read from MH i2c: E2 [04:50:11]MH_I2C_Read... [04:50:11]Read from MH i2c: E2 0E 00 [04:50:11]MH_I2C_Read... [04:50:11]Read from MH i2c: E2 0E 00 B2 5A 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 9A [04:50:11]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [04:50:11]wFMCommunicate OK [04:50:11]SAM_PROTO_GetShiftState done [04:50:11]FM_GetShiftState done [04:50:11]opened in 1712881416 [04:50:11]opened+sec_in_day 1712967816 [04:50:11]quantity*price = 200041 [04:50:11]sum+1 = 200042 [04:50:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 14 12.04.2024 04:50 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28565 ФПД: 699767557258 1/tax-web-control/client/api/v1/ticket?date=20240412T045018&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28565&fm=699767557258&tin=02508201610067®Number=0000138879044617&sum=200000 [04:50:12]StoreToDocumentArchive [04:50:12]shift 113 fd 28565 [04:50:12]save to /storage/0113/doc_00028565 [04:50:12]save last doc name /storage/0113/doc_00028565 to /storage/kkm_last_doc_name [04:50:12]save OK [04:50:12]Clear old archive folders... [04:50:12]ProcessDocumentItem done err = 0, tmpTLVsize=248 [04:50:12]tlvbuf is 01ABC280 [04:50:12]SAM_PROTO_ClearQueue [04:50:12]wFMCommunicate request_size=4 [04:50:12]MH_SAM_APDU [04:50:12]CAPDU: 80 09 00 00 [04:50:12]Write to MH i2c: E2 08 00 BF 5A 80 09 00 00 00 00 00 00 8B [04:50:12]Write i2c OK [04:50:12]MH_I2C_Read... [04:50:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:50:12]Read from MH i2c: E2 [04:50:12]MH_I2C_Read... [04:50:12]Read from MH i2c: E2 03 00 [04:50:12]MH_I2C_Read... [04:50:12]Read from MH i2c: E2 03 00 BF 5A 00 90 00 8D [04:50:12]RAPDU: 90 00 [04:50:12]wFMCommunicate OK [04:50:12]SAM_PROTO_ClearQueue done [04:50:12]KKMCreateOFDPacket [04:50:12]OFDProtocolAddRootSTLVToBuf [04:50:12]FM_MakeSignedData [04:50:12]FM_MakeSignedData [04:50:12]SAM_PROTO_SignData [04:50:12]wFMCommunicate request_size=4 [04:50:12]MH_SAM_APDU [04:50:12]CAPDU: 80 0D 01 02 [04:50:12]Write to MH i2c: E2 08 00 C0 5A 80 0D 01 02 00 00 00 00 93 [04:50:12]Write i2c OK [04:50:12]MH_I2C_Read... [04:50:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:50:13]Read from MH i2c: E2 [04:50:13]MH_I2C_Read... [04:50:13]Read from MH i2c: E2 03 00 [04:50:13]MH_I2C_Read... [04:50:13]Read from MH i2c: E2 03 00 C0 5A 00 90 00 8E [04:50:13]RAPDU: 90 00 [04:50:13]wFMCommunicate OK [04:50:13]wFMCommunicate request_size=255 [04:50:13]MH_SAM_APDU [04:50:13]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EE 6B 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 69 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 0E 00 00 00 F4 03 04 00 8A BD 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 95 6F 00 00 35 04 06 00 00 A2 ED 65 [04:50:13]Write to MH i2c: E2 02 01 C1 5A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EE 6B 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 69 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 0E 00 00 00 F4 03 04 00 8A BD 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 95 6F 00 00 35 04 06 00 00 A2 ED 65 00 00 5C [04:50:13]Write i2c OK [04:50:13]MH_I2C_Read... [04:50:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:50:13]Read from MH i2c: E2 [04:50:13]MH_I2C_Read... [04:50:13]Read from MH i2c: E2 03 00 [04:50:13]MH_I2C_Read... [04:50:13]Read from MH i2c: E2 03 00 C1 5A 00 90 00 8F [04:50:13]RAPDU: 90 00 [04:50:13]wFMCommunicate OK [04:50:13]wFMCommunicate request_size=7 [04:50:13]MH_SAM_APDU [04:50:13]CAPDU: 80 0D 02 02 02 8C 8A [04:50:13]Write to MH i2c: E2 0A 00 C2 5A 80 0D 02 02 02 00 8C 8A 00 00 B0 [04:50:13]Write i2c OK [04:50:13]MH_I2C_Read... [04:50:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:50:13]Read from MH i2c: E2 [04:50:13]MH_I2C_Read... [04:50:13]Read from MH i2c: E2 03 00 [04:50:13]MH_I2C_Read... [04:50:13]Read from MH i2c: E2 03 00 C2 5A 00 90 00 90 [04:50:13]RAPDU: 90 00 [04:50:13]wFMCommunicate OK [04:50:13]wFMCommunicate request_size=4 [04:50:13]MH_SAM_APDU [04:50:13]CAPDU: 80 0D 03 02 [04:50:13]Write to MH i2c: E2 08 00 C3 5A 80 0D 03 02 00 00 00 00 98 [04:50:13]Write i2c OK [04:50:13]MH_I2C_Read... [04:50:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:50:13]Read from MH i2c: E2 [04:50:13]MH_I2C_Read... [04:50:13]Read from MH i2c: E2 0B 00 [04:50:13]MH_I2C_Read... [04:50:13]Read from MH i2c: E2 0B 00 C3 5A 00 6D CA EF EB 5D A3 5A 49 90 00 4D [04:50:13]RAPDU: 6D CA EF EB 5D A3 5A 49 90 00 [04:50:13]wFMCommunicate OK [04:50:13]SAM_PROTO_SignData done [04:50:13]FM_MakeSignedData done [04:50:13]CreateOFDProtocolMessage [04:50:13]wFMCommunicate request_size=4 [04:50:13]MH_SAM_APDU [04:50:13]CAPDU: 80 11 00 00 [04:50:13]Write to MH i2c: E2 08 00 C4 5A 80 11 00 00 00 00 00 00 98 [04:50:13]Write i2c OK [04:50:13]MH_I2C_Read... [04:50:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:50:13]OFD Sender: No OFD packet to send [04:50:13]Read from MH i2c: E2 [04:50:13]MH_I2C_Read... [04:50:13]Read from MH i2c: E2 17 00 [04:50:13]MH_I2C_Read... [04:50:13]Read from MH i2c: E2 17 00 C4 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 E7 [04:50:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [04:50:13]wFMCommunicate OK [04:50:13]CreateOFDProtocolMessage done [04:50:13]OFDSenderStorePacket 28565 [04:50:13]StoreOFDPacket docnum=28565 [04:50:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 37 F7 04 01 DA 8D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EE 6B 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 69 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 0E 00 00 00 F4 03 04 00 8A BD 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 95 6F 00 00 35 04 06 00 00 A2 ED 65 8C 8A 6D CA EF EB 5D A3 5A 49 [04:50:13]CheckFolder [04:50:13]dirname=/storage/ofd_packets [04:50:13]CheckFolder done [04:50:13]ProducePacketName [04:50:13]name=ofd_packets/00028565 [04:50:13]NVStorageSaveData ofd_packets/00028565 [04:50:13]File name is /storage/ofd_packets/00028565 [04:50:13]Write 298 bytes [04:50:13]NVStorageSaveData done [04:50:13]OFDSenderStorePacket done [04:50:13]KKMCreateOFDPacket done [04:50:13]NVStorageSaveData kkm_last_timestamp [04:50:13]File name is /storage/kkm_last_timestamp [04:50:13]Write 4 bytes [04:50:13]NVStorageSaveData done [04:50:13]ExternCall_PrintAddStr [04:50:13]wPrintStart [04:50:13]Write to MH i2c: 01 00 00 C5 5A 1F [04:50:13]Write i2c OK [04:50:13]MH_I2C_Read... [04:50:13]Read from MH i2c: 01 [04:50:13]MH_I2C_Read... [04:50:13]Read from MH i2c: 01 07 00 [04:50:13]MH_I2C_Read... [04:50:13]Read from MH i2c: 01 07 00 C5 5A 00 00 00 00 00 FF 0F 34 [04:50:13]RasterBufferAndPrint [04:50:13]line Счет N : (1)346871 [04:50:13]line ИНН: 02508201610067 [04:50:13]line Контрольно-Кассовый Чек [04:50:13]line ПРОДАЖА [04:50:13]line ТРК (МРК, ГНК) : 11 [04:50:13]line Товар: 2710194210 [04:50:13]line ДТ-К-5 [04:50:13]line 27.630 * 72.40 [04:50:13]line = 2000.41 [04:50:13]line НДС 12% НСП 1% [04:50:13]line > о реализуемом товаре [04:50:13]line ОКРУГЛЕНИЕ: -0.41 [04:50:13]line ИТОГО: 2000.00 [04:50:13]line Внесено: 2000.00 [04:50:13]line СДАЧА: 0.00 [04:50:13]line НСП 1% : 17.70 [04:50:13]line НДС 12% : 212.43 [04:50:13]line Наличными: 2000.00 [04:50:13]line Безнал.: 0.00 [04:50:13]line Место: АЗС № 108 "Партнер Нефть" [04:50:13]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [04:50:13]line СНО: Общий режим [04:50:13]line Чек 14 12.04.2024 04:50 [04:50:13]line Смена: 113 ФФД: 1.0 [04:50:13]line ЗНМ: 0300000027 [04:50:13]line РНМ: 0000138879044617 [04:50:13]line Версия ККМ: 001 [04:50:13]line ФМ: 0000000000963154 [04:50:13]line ФД: 28565 [04:50:13]line ФПД: 699767557258 [04:50:13]line 1/tax-web-control/client/api/v1/ticket?date=20240412T045018&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28565&fm=699767557258&tin=02508201610067®Number=0000138879044617&sum=200000 [04:50:13]OFD Sender: Processing packet 28565 [packets to send 8, broken 7] [04:50:13]ProducePacketName [04:50:13]name=ofd_packets/00028565 [04:50:13]OFD Sender: To server: pG, [04:50:13]CommunicateWithHost lk.salyk.kg:30040 [04:50:13]ConnectInit lk.salyk.kg [04:50:13]written 0, free lines is 4095 [04:50:13]Connected sock=10 [04:50:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 37 F7 04 01 DA 8D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EE 6B 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 69 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 0E 00 00 00 F4 03 04 00 8A BD 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 95 6F 00 00 35 04 06 00 00 A2 ED 65 8C 8A 6D CA EF EB 5D A3 5A 49 [04:50:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 96 E7 47 00 EA 4B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 95 6F 00 00 F4 03 04 00 35 68 18 66 B6 04 01 00 00 72 ED 42 8F F4 B5 6C 70 [04:50:14]CommunicateWithHost err = 0 [04:50:14]CheckOFDResponse [04:50:14]1017 (14) - 77093643461234 [04:50:14]1041 (16) - 0000000000963154 [04:50:14]1040 (4) - 28565 [04:50:14]1012 (4) - 11.04.2024 22:46 [04:50:14]1206 (1) - 0 [04:50:14]OFD Sender: Remove packet 28565 [04:50:14]ProducePacketName [04:50:14]name=ofd_packets/00028565 [04:50:14]NVStorageDeleteData [04:50:14]Write to MH i2c: 01 00 00 EF 5A 49 [04:50:14]Write i2c OK [04:50:14]MH_I2C_Read... [04:50:14]Read from MH i2c: 01 [04:50:14]MH_I2C_Read... [04:50:14]Read from MH i2c: 01 07 00 [04:50:14]MH_I2C_Read... [04:50:14]Read from MH i2c: 01 07 00 EF 5A 00 00 00 00 00 BC 0C 18 [04:50:14]RasterBufferAndPrint [04:50:14]line [04:50:14]line [04:50:14]line [04:50:14]line [04:50:14]line [04:50:14]written 0, free lines is 3265 [04:50:14]MH_Cut [04:50:14]Write to MH i2c: D1 01 00 F6 5A 01 22 [04:50:14]Write i2c OK [04:50:14]MH_I2C_Read... [04:50:14]Read from MH i2c: D1 [04:50:14]MH_I2C_Read... [04:50:14]Read from MH i2c: D1 01 00 [04:50:14]MH_I2C_Read... [04:50:14]Read from MH i2c: D1 01 00 F6 5A 00 21 [04:50:14]Write to MH i2c: 01 00 00 F7 5A 51 [04:50:14]Write i2c OK [04:50:14]MH_I2C_Read... [04:50:14]OFD Sender: No OFD packet to send [04:50:15]*** Cut start [04:50:15]*** Partial cut [04:50:15]*** CUTSNS_PIN = 1 [04:50:15]*** CUTSNS_PIN = 0 [04:50:15]*** Brake cut motor [04:50:15]Read from MH i2c: 01 [04:50:15]MH_I2C_Read... [04:50:15]*** Stop cut motor [04:50:15]*** Cut end [04:50:15]Read from MH i2c: 01 07 00 [04:50:15]MH_I2C_Read... [04:50:15]Read from MH i2c: 01 07 00 F7 5A 00 00 00 00 00 FF 0F 66 [04:50:15]process_action close_receipt done [04:50:15]requested_data is exist [04:50:15]produce_requested_data [04:50:15]requested_item fm.sn is exist - process it [04:50:15]wFMCommunicate request_size=4 [04:50:15]MH_SAM_APDU [04:50:15]CAPDU: 80 11 00 00 [04:50:15]Write to MH i2c: E2 08 00 F8 5A 80 11 00 00 00 00 00 00 CC [04:50:15]Write i2c OK [04:50:15]MH_I2C_Read... [04:50:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:50:15]Read from MH i2c: E2 [04:50:15]MH_I2C_Read... [04:50:15]Read from MH i2c: E2 17 00 [04:50:15]MH_I2C_Read... [04:50:15]Read from MH i2c: E2 17 00 F8 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 1B [04:50:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [04:50:15]wFMCommunicate OK [04:50:15]requested_item fd.num is exist - process it [04:50:15]SAM_PROTO_GetFieldsCounters [04:50:15]wFMCommunicate request_size=4 [04:50:15]MH_SAM_APDU [04:50:15]CAPDU: 80 13 00 00 [04:50:15]Write to MH i2c: E2 08 00 F9 5A 80 13 00 00 00 00 00 00 CF [04:50:15]Write i2c OK [04:50:15]MH_I2C_Read... [04:50:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:50:15]Read from MH i2c: E2 [04:50:15]MH_I2C_Read... [04:50:15]Read from MH i2c: E2 62 00 [04:50:15]MH_I2C_Read... [04:50:15]Read from MH i2c: E2 62 00 F9 5A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 95 6F 00 00 0E 04 04 00 71 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 AC [04:50:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 95 6F 00 00 0E 04 04 00 71 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 [04:50:15]wFMCommunicate OK [04:50:15]SAM_PROTO_GetFieldsCounters done [04:50:15]requested_item shift.num is exist - process it [04:50:15]requested_item shift.opened is exist - process it [04:50:15]req_shift_opened [04:50:15]FM_GetShiftState [04:50:15]SAM_PROTO_GetShiftState [04:50:15]wFMCommunicate request_size=4 [04:50:15]MH_SAM_APDU [04:50:15]CAPDU: 80 13 01 00 [04:50:15]Write to MH i2c: E2 08 00 FA 5A 80 13 01 00 00 00 00 00 D1 [04:50:15]Write i2c OK [04:50:15]MH_I2C_Read... [04:50:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:50:15]Read from MH i2c: E2 [04:50:15]MH_I2C_Read... [04:50:15]Read from MH i2c: E2 0E 00 [04:50:15]MH_I2C_Read... [04:50:15]Read from MH i2c: E2 0E 00 FA 5A 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 E2 [04:50:15]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [04:50:15]wFMCommunicate OK [04:50:15]SAM_PROTO_GetShiftState done [04:50:15]FM_GetShiftState done [04:50:15]req_shift_opened done [04:50:15]requested_item shift.open_date is exist - process it [04:50:15]req_shift_open_date [04:50:15]req_shift_open_date done [04:50:15]produce_requested_data done [04:50:15]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28565,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [04:50:15]process_action_free close_receipt [04:50:15]json_value_free [04:50:15]json_value_free done [04:50:15]process_json_proto returns [04:50:15]Send response to host [04:50:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28565,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [04:50:15]free response buf [04:50:15]execute_script done [04:50:15]execute_script returns [04:50:15]free content buf [04:50:15]Sock 7.Close socket [04:50:15]Sock 7.Thread stoped [04:50:19]OFD Sender: No OFD packet to send [04:50:24]OFD Sender: No OFD packet to send [04:50:29]OFD Sender: No OFD packet to send [04:50:34]OFD Sender: No OFD packet to send [04:50:39]OFD Sender: No OFD packet to send [04:50:44]OFD Sender: No OFD packet to send [04:50:49]OFD Sender: No OFD packet to send [04:50:54]OFD Sender: No OFD packet to send [04:50:59]OFD Sender: No OFD packet to send [04:51:04]OFD Sender: No OFD packet to send [04:51:09]OFD Sender: No OFD packet to send [04:51:14]OFD Sender: No OFD packet to send [04:51:19]OFD Sender: No OFD packet to send [04:51:24]OFD Sender: No OFD packet to send [04:51:29]OFD Sender: No OFD packet to send [04:51:34]OFD Sender: No OFD packet to send [04:51:39]OFD Sender: No OFD packet to send [04:51:44]OFD Sender: No OFD packet to send [04:51:49]OFD Sender: No OFD packet to send [04:51:54]OFD Sender: No OFD packet to send [04:51:59]OFD Sender: No OFD packet to send [04:52:04]OFD Sender: No OFD packet to send [04:52:09]OFD Sender: No OFD packet to send [04:52:14]OFD Sender: No OFD packet to send [04:52:19]OFD Sender: No OFD packet to send [04:52:24]OFD Sender: No OFD packet to send [04:52:29]OFD Sender: No OFD packet to send [04:52:34]OFD Sender: No OFD packet to send [04:52:39]OFD Sender: No OFD packet to send [04:52:44]OFD Sender: No OFD packet to send [04:52:49]OFD Sender: No OFD packet to send [04:52:54]OFD Sender: No OFD packet to send [04:52:59]OFD Sender: No OFD packet to send [04:53:04]OFD Sender: No OFD packet to send [04:53:09]OFD Sender: No OFD packet to send [04:53:14]OFD Sender: No OFD packet to send [04:53:19]OFD Sender: No OFD packet to send [04:53:24]OFD Sender: No OFD packet to send [04:53:29]OFD Sender: No OFD packet to send [04:53:34]OFD Sender: No OFD packet to send [04:53:39]OFD Sender: No OFD packet to send [04:53:44]OFD Sender: No OFD packet to send [04:53:49]OFD Sender: No OFD packet to send [04:53:54]OFD Sender: No OFD packet to send [04:53:59]OFD Sender: No OFD packet to send [04:54:04]OFD Sender: No OFD packet to send [04:54:09]OFD Sender: No OFD packet to send [04:54:14]OFD Sender: No OFD packet to send [04:54:19]OFD Sender: No OFD packet to send [04:54:24]OFD Sender: No OFD packet to send [04:54:29]OFD Sender: No OFD packet to send [04:54:34]OFD Sender: No OFD packet to send [04:54:39]OFD Sender: No OFD packet to send [04:54:44]OFD Sender: No OFD packet to send [04:54:49]OFD Sender: No OFD packet to send [04:54:54]OFD Sender: No OFD packet to send [04:54:59]OFD Sender: No OFD packet to send [04:55:04]OFD Sender: No OFD packet to send [04:55:09]OFD Sender: No OFD packet to send [04:55:14]OFD Sender: No OFD packet to send [04:55:19]OFD Sender: No OFD packet to send [04:55:24]OFD Sender: No OFD packet to send [04:55:29]OFD Sender: No OFD packet to send [04:55:34]OFD Sender: No OFD packet to send [04:55:39]OFD Sender: No OFD packet to send [04:55:44]OFD Sender: No OFD packet to send [04:55:49]OFD Sender: No OFD packet to send [04:55:54]OFD Sender: No OFD packet to send [04:55:59]OFD Sender: No OFD packet to send [04:56:04]OFD Sender: No OFD packet to send [04:56:09]OFD Sender: No OFD packet to send [04:56:14]OFD Sender: No OFD packet to send [04:56:19]OFD Sender: No OFD packet to send [04:56:24]OFD Sender: No OFD packet to send [04:56:29]OFD Sender: No OFD packet to send [04:56:34]OFD Sender: No OFD packet to send [04:56:39]OFD Sender: No OFD packet to send [04:56:44]OFD Sender: No OFD packet to send [04:56:49]OFD Sender: No OFD packet to send [04:56:54]OFD Sender: No OFD packet to send [04:56:59]OFD Sender: No OFD packet to send [04:57:04]OFD Sender: No OFD packet to send [04:57:09]OFD Sender: No OFD packet to send [04:57:14]OFD Sender: No OFD packet to send [04:57:19]OFD Sender: No OFD packet to send [04:57:24]OFD Sender: No OFD packet to send [04:57:29]OFD Sender: No OFD packet to send [04:57:34]OFD Sender: No OFD packet to send [04:57:39]OFD Sender: No OFD packet to send [04:57:44]OFD Sender: No OFD packet to send [04:57:49]OFD Sender: No OFD packet to send [04:57:54]OFD Sender: No OFD packet to send [04:57:59]OFD Sender: No OFD packet to send [04:58:04]OFD Sender: No OFD packet to send [04:58:09]OFD Sender: No OFD packet to send [04:58:14]OFD Sender: No OFD packet to send [04:58:19]OFD Sender: No OFD packet to send [04:58:24]OFD Sender: No OFD packet to send [04:58:29]OFD Sender: No OFD packet to send [04:58:34]OFD Sender: No OFD packet to send [04:58:39]OFD Sender: No OFD packet to send [04:58:44]OFD Sender: No OFD packet to send [04:58:49]OFD Sender: No OFD packet to send [04:58:54]OFD Sender: No OFD packet to send [04:58:59]OFD Sender: No OFD packet to send [04:59:04]OFD Sender: No OFD packet to send [04:59:09]OFD Sender: No OFD packet to send [04:59:14]OFD Sender: No OFD packet to send [04:59:19]OFD Sender: No OFD packet to send [04:59:24]OFD Sender: No OFD packet to send [04:59:29]OFD Sender: No OFD packet to send [04:59:34]OFD Sender: No OFD packet to send [04:59:39]OFD Sender: No OFD packet to send [04:59:44]OFD Sender: No OFD packet to send [04:59:49]OFD Sender: No OFD packet to send [04:59:54]OFD Sender: No OFD packet to send [04:59:59]OFD Sender: No OFD packet to send [05:00:04]OFD Sender: No OFD packet to send [05:00:09]OFD Sender: No OFD packet to send [05:00:15]OFD Sender: No OFD packet to send [05:00:20]OFD Sender: No OFD packet to send [05:00:25]OFD Sender: No OFD packet to send [05:00:30]OFD Sender: No OFD packet to send [05:00:35]OFD Sender: No OFD packet to send [05:00:40]OFD Sender: No OFD packet to send [05:00:45]OFD Sender: No OFD packet to send [05:00:50]OFD Sender: No OFD packet to send [05:00:55]OFD Sender: No OFD packet to send [05:01:00]OFD Sender: No OFD packet to send [05:01:05]OFD Sender: No OFD packet to send [05:01:10]OFD Sender: No OFD packet to send [05:01:15]OFD Sender: No OFD packet to send [05:01:20]OFD Sender: No OFD packet to send [05:01:25]OFD Sender: No OFD packet to send [05:01:30]OFD Sender: No OFD packet to send [05:01:35]OFD Sender: No OFD packet to send [05:01:40]OFD Sender: No OFD packet to send [05:01:45]OFD Sender: No OFD packet to send [05:01:50]OFD Sender: No OFD packet to send [05:01:55]OFD Sender: No OFD packet to send [05:02:00]OFD Sender: No OFD packet to send [05:02:05]OFD Sender: No OFD packet to send [05:02:10]OFD Sender: No OFD packet to send [05:02:15]OFD Sender: No OFD packet to send [05:02:20]OFD Sender: No OFD packet to send [05:02:25]OFD Sender: No OFD packet to send [05:02:30]OFD Sender: No OFD packet to send [05:02:35]OFD Sender: No OFD packet to send [05:02:40]OFD Sender: No OFD packet to send [05:02:45]OFD Sender: No OFD packet to send [05:02:50]OFD Sender: No OFD packet to send [05:02:55]OFD Sender: No OFD packet to send [05:03:00]OFD Sender: No OFD packet to send [05:03:05]OFD Sender: No OFD packet to send [05:03:10]OFD Sender: No OFD packet to send [05:03:15]OFD Sender: No OFD packet to send [05:03:20]OFD Sender: No OFD packet to send [05:03:25]OFD Sender: No OFD packet to send [05:03:30]OFD Sender: No OFD packet to send [05:03:35]OFD Sender: No OFD packet to send [05:03:40]OFD Sender: No OFD packet to send [05:03:45]OFD Sender: No OFD packet to send [05:03:50]OFD Sender: No OFD packet to send [05:03:55]OFD Sender: No OFD packet to send [05:04:00]OFD Sender: No OFD packet to send [05:04:05]OFD Sender: No OFD packet to send [05:04:10]OFD Sender: No OFD packet to send [05:04:15]OFD Sender: No OFD packet to send [05:04:20]OFD Sender: No OFD packet to send [05:04:25]OFD Sender: No OFD packet to send [05:04:30]OFD Sender: No OFD packet to send [05:04:35]OFD Sender: No OFD packet to send [05:04:40]OFD Sender: No OFD packet to send [05:04:45]OFD Sender: No OFD packet to send [05:04:50]OFD Sender: No OFD packet to send [05:04:55]OFD Sender: No OFD packet to send [05:05:00]OFD Sender: No OFD packet to send [05:05:05]OFD Sender: No OFD packet to send [05:05:10]OFD Sender: No OFD packet to send [05:05:15]OFD Sender: No OFD packet to send [05:05:20]OFD Sender: No OFD packet to send [05:05:25]OFD Sender: No OFD packet to send [05:05:30]OFD Sender: No OFD packet to send [05:05:35]OFD Sender: No OFD packet to send [05:05:40]OFD Sender: No OFD packet to send [05:05:45]OFD Sender: No OFD packet to send [05:05:50]OFD Sender: No OFD packet to send [05:05:55]OFD Sender: No OFD packet to send [05:06:00]OFD Sender: No OFD packet to send [05:06:05]OFD Sender: No OFD packet to send [05:06:10]OFD Sender: No OFD packet to send [05:06:15]OFD Sender: No OFD packet to send [05:06:20]OFD Sender: No OFD packet to send [05:06:25]OFD Sender: No OFD packet to send [05:06:30]OFD Sender: No OFD packet to send [05:06:35]OFD Sender: No OFD packet to send [05:06:40]OFD Sender: No OFD packet to send [05:06:45]OFD Sender: No OFD packet to send [05:06:50]OFD Sender: No OFD packet to send [05:06:55]OFD Sender: No OFD packet to send [05:07:00]OFD Sender: No OFD packet to send [05:07:05]OFD Sender: No OFD packet to send [05:07:10]OFD Sender: No OFD packet to send [05:07:15]OFD Sender: No OFD packet to send [05:07:20]OFD Sender: No OFD packet to send [05:07:25]OFD Sender: No OFD packet to send [05:07:30]OFD Sender: No OFD packet to send [05:07:35]OFD Sender: No OFD packet to send [05:07:40]OFD Sender: No OFD packet to send [05:07:45]OFD Sender: No OFD packet to send [05:07:50]OFD Sender: No OFD packet to send [05:07:55]OFD Sender: No OFD packet to send [05:08:00]OFD Sender: No OFD packet to send [05:08:05]OFD Sender: No OFD packet to send [05:08:10]OFD Sender: No OFD packet to send [05:08:15]OFD Sender: No OFD packet to send [05:08:20]OFD Sender: No OFD packet to send [05:08:25]OFD Sender: No OFD packet to send [05:08:30]OFD Sender: No OFD packet to send [05:08:35]OFD Sender: No OFD packet to send [05:08:40]OFD Sender: No OFD packet to send [05:08:45]OFD Sender: No OFD packet to send [05:08:50]OFD Sender: No OFD packet to send [05:08:55]OFD Sender: No OFD packet to send [05:09:00]OFD Sender: No OFD packet to send [05:09:05]OFD Sender: No OFD packet to send [05:09:10]OFD Sender: No OFD packet to send [05:09:15]OFD Sender: No OFD packet to send [05:09:20]OFD Sender: No OFD packet to send [05:09:25]OFD Sender: No OFD packet to send [05:09:30]OFD Sender: No OFD packet to send [05:09:35]OFD Sender: No OFD packet to send [05:09:40]OFD Sender: No OFD packet to send [05:09:45]OFD Sender: No OFD packet to send [05:09:50]OFD Sender: No OFD packet to send [05:09:55]OFD Sender: No OFD packet to send [05:10:00]OFD Sender: No OFD packet to send [05:10:05]OFD Sender: No OFD packet to send [05:10:10]OFD Sender: No OFD packet to send [05:10:15]OFD Sender: No OFD packet to send [05:10:20]OFD Sender: No OFD packet to send [05:10:25]OFD Sender: No OFD packet to send [05:10:30]OFD Sender: No OFD packet to send [05:10:35]OFD Sender: No OFD packet to send [05:10:40]OFD Sender: No OFD packet to send [05:10:45]OFD Sender: No OFD packet to send [05:10:50]OFD Sender: No OFD packet to send [05:10:55]OFD Sender: No OFD packet to send [05:11:00]OFD Sender: No OFD packet to send [05:11:05]OFD Sender: No OFD packet to send [05:11:10]OFD Sender: No OFD packet to send [05:11:15]OFD Sender: No OFD packet to send [05:11:20]OFD Sender: No OFD packet to send [05:11:25]OFD Sender: No OFD packet to send [05:11:30]OFD Sender: No OFD packet to send [05:11:35]OFD Sender: No OFD packet to send [05:11:40]OFD Sender: No OFD packet to send [05:11:45]OFD Sender: No OFD packet to send [05:11:50]OFD Sender: No OFD packet to send [05:11:55]OFD Sender: No OFD packet to send [05:12:00]OFD Sender: No OFD packet to send [05:12:05]OFD Sender: No OFD packet to send [05:12:10]OFD Sender: No OFD packet to send [05:12:15]OFD Sender: No OFD packet to send [05:12:20]OFD Sender: No OFD packet to send [05:12:25]OFD Sender: No OFD packet to send [05:12:30]OFD Sender: No OFD packet to send [05:12:35]OFD Sender: No OFD packet to send [05:12:40]OFD Sender: No OFD packet to send [05:12:45]OFD Sender: No OFD packet to send [05:12:50]OFD Sender: No OFD packet to send [05:12:55]OFD Sender: No OFD packet to send [05:13:00]OFD Sender: No OFD packet to send [05:13:05]OFD Sender: No OFD packet to send [05:13:10]OFD Sender: No OFD packet to send [05:13:15]OFD Sender: No OFD packet to send [05:13:20]OFD Sender: No OFD packet to send [05:13:25]OFD Sender: No OFD packet to send [05:13:30]OFD Sender: No OFD packet to send [05:13:35]OFD Sender: No OFD packet to send [05:13:40]OFD Sender: No OFD packet to send [05:13:45]OFD Sender: No OFD packet to send [05:13:50]OFD Sender: No OFD packet to send [05:13:55]OFD Sender: No OFD packet to send [05:14:00]OFD Sender: No OFD packet to send [05:14:05]OFD Sender: No OFD packet to send [05:14:10]OFD Sender: No OFD packet to send [05:14:15]OFD Sender: No OFD packet to send [05:14:20]OFD Sender: No OFD packet to send [05:14:25]OFD Sender: No OFD packet to send [05:14:30]OFD Sender: No OFD packet to send [05:14:35]OFD Sender: No OFD packet to send [05:14:40]OFD Sender: No OFD packet to send [05:14:45]OFD Sender: No OFD packet to send [05:14:50]OFD Sender: No OFD packet to send [05:14:55]OFD Sender: No OFD packet to send [05:15:00]OFD Sender: No OFD packet to send [05:15:05]OFD Sender: No OFD packet to send [05:15:10]OFD Sender: No OFD packet to send [05:15:15]OFD Sender: No OFD packet to send [05:15:20]OFD Sender: No OFD packet to send [05:15:25]OFD Sender: No OFD packet to send [05:15:30]OFD Sender: No OFD packet to send [05:15:35]OFD Sender: No OFD packet to send [05:15:40]OFD Sender: No OFD packet to send [05:15:45]OFD Sender: No OFD packet to send [05:15:50]OFD Sender: No OFD packet to send [05:15:55]OFD Sender: No OFD packet to send [05:16:00]OFD Sender: No OFD packet to send [05:16:05]OFD Sender: No OFD packet to send [05:16:10]OFD Sender: No OFD packet to send [05:16:15]OFD Sender: No OFD packet to send [05:16:20]OFD Sender: No OFD packet to send [05:16:25]OFD Sender: No OFD packet to send [05:16:30]OFD Sender: No OFD packet to send [05:16:35]OFD Sender: No OFD packet to send [05:16:40]OFD Sender: No OFD packet to send [05:16:45]OFD Sender: No OFD packet to send [05:16:50]OFD Sender: No OFD packet to send [05:16:55]OFD Sender: No OFD packet to send [05:17:00]OFD Sender: No OFD packet to send [05:17:05]OFD Sender: No OFD packet to send [05:17:10]OFD Sender: No OFD packet to send [05:17:15]OFD Sender: No OFD packet to send [05:17:20]OFD Sender: No OFD packet to send [05:17:25]OFD Sender: No OFD packet to send [05:17:30]OFD Sender: No OFD packet to send [05:17:35]OFD Sender: No OFD packet to send [05:17:40]OFD Sender: No OFD packet to send [05:17:45]OFD Sender: No OFD packet to send [05:17:50]OFD Sender: No OFD packet to send [05:17:55]OFD Sender: No OFD packet to send [05:18:00]OFD Sender: No OFD packet to send [05:18:05]OFD Sender: No OFD packet to send [05:18:10]OFD Sender: No OFD packet to send [05:18:15]OFD Sender: No OFD packet to send [05:18:20]OFD Sender: No OFD packet to send [05:18:25]OFD Sender: No OFD packet to send [05:18:30]OFD Sender: No OFD packet to send [05:18:35]OFD Sender: No OFD packet to send [05:18:40]OFD Sender: No OFD packet to send [05:18:45]OFD Sender: No OFD packet to send [05:18:50]OFD Sender: No OFD packet to send [05:18:55]OFD Sender: No OFD packet to send [05:19:00]OFD Sender: No OFD packet to send [05:19:05]OFD Sender: No OFD packet to send [05:19:10]OFD Sender: No OFD packet to send [05:19:15]OFD Sender: No OFD packet to send [05:19:20]OFD Sender: No OFD packet to send [05:19:25]OFD Sender: No OFD packet to send [05:19:30]OFD Sender: No OFD packet to send [05:19:35]OFD Sender: No OFD packet to send [05:19:40]OFD Sender: No OFD packet to send [05:19:45]OFD Sender: No OFD packet to send [05:19:50]OFD Sender: No OFD packet to send [05:19:55]OFD Sender: No OFD packet to send [05:20:00]OFD Sender: No OFD packet to send [05:20:05]OFD Sender: No OFD packet to send [05:20:10]OFD Sender: No OFD packet to send [05:20:15]OFD Sender: No OFD packet to send [05:20:20]OFD Sender: No OFD packet to send [05:20:25]OFD Sender: No OFD packet to send [05:20:30]OFD Sender: No OFD packet to send [05:20:35]OFD Sender: No OFD packet to send [05:20:40]OFD Sender: No OFD packet to send [05:20:45]OFD Sender: No OFD packet to send [05:20:50]OFD Sender: No OFD packet to send [05:20:55]OFD Sender: No OFD packet to send [05:21:00]OFD Sender: No OFD packet to send [05:21:05]OFD Sender: No OFD packet to send [05:21:10]OFD Sender: No OFD packet to send [05:21:15]OFD Sender: No OFD packet to send [05:21:20]OFD Sender: No OFD packet to send [05:21:25]OFD Sender: No OFD packet to send [05:21:31]OFD Sender: No OFD packet to send [05:21:36]OFD Sender: No OFD packet to send [05:21:41]OFD Sender: No OFD packet to send [05:21:46]OFD Sender: No OFD packet to send [05:21:51]OFD Sender: No OFD packet to send [05:21:56]OFD Sender: No OFD packet to send [05:22:01]OFD Sender: No OFD packet to send [05:22:06]OFD Sender: No OFD packet to send [05:22:11]OFD Sender: No OFD packet to send [05:22:16]OFD Sender: No OFD packet to send [05:22:21]OFD Sender: No OFD packet to send [05:22:26]OFD Sender: No OFD packet to send [05:22:31]OFD Sender: No OFD packet to send [05:22:36]OFD Sender: No OFD packet to send [05:22:41]OFD Sender: No OFD packet to send [05:22:46]OFD Sender: No OFD packet to send [05:22:51]OFD Sender: No OFD packet to send [05:22:56]OFD Sender: No OFD packet to send [05:23:01]OFD Sender: No OFD packet to send [05:23:06]OFD Sender: No OFD packet to send [05:23:11]OFD Sender: No OFD packet to send [05:23:16]OFD Sender: No OFD packet to send [05:23:21]OFD Sender: No OFD packet to send [05:23:26]OFD Sender: No OFD packet to send [05:23:31]OFD Sender: No OFD packet to send [05:23:36]OFD Sender: No OFD packet to send [05:23:41]OFD Sender: No OFD packet to send [05:23:46]OFD Sender: No OFD packet to send [05:23:51]OFD Sender: No OFD packet to send [05:23:56]OFD Sender: No OFD packet to send [05:24:01]OFD Sender: No OFD packet to send [05:24:06]OFD Sender: No OFD packet to send [05:24:11]OFD Sender: No OFD packet to send [05:24:16]OFD Sender: No OFD packet to send [05:24:21]OFD Sender: No OFD packet to send [05:24:26]OFD Sender: No OFD packet to send [05:24:31]OFD Sender: No OFD packet to send [05:24:36]OFD Sender: No OFD packet to send [05:24:41]OFD Sender: No OFD packet to send [05:24:46]OFD Sender: No OFD packet to send [05:24:51]OFD Sender: No OFD packet to send [05:24:56]OFD Sender: No OFD packet to send [05:25:01]OFD Sender: No OFD packet to send [05:25:06]accept exits with 9 [05:25:06]New connection [05:25:06]New thread 3066498404 created [05:25:06]Thread 3066641764 joined [05:25:06]Waiting for new connection... [05:25:06] Sock 9.Parse request [05:25:06]Sock 9.Check first char [05:25:06]Sock 9.First char is OK [05:25:06]request: POST /json_proto HTTP/1.0 [05:25:06]Method: POST [05:25:06]URL: /json_proto [05:25:06]Method is POST - this is cgi request [05:25:06]url: /json_proto [05:25:06]query_string will be loaded in cgi processing [05:25:06]execute_cgi json_proto POST (null) [05:25:06]execute_cgi path=json_proto method=POST [05:25:06]POST find Content-Length [05:25:06]Host: 172.17.33.3:8080 [05:25:06]Content-Length: 682 [05:25:06]Content-Type: application/json [05:25:06] [05:25:06]POST finish read [05:25:06]Found Content-Length = 682 [05:25:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346872", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 22.420, "sum" : 737.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 737.00, "payments": [ { "type": 0, "sum" : 737.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:25:06]execute_script... [05:25: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)346872", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 22.420, "sum" : 737.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 737.00, "payments": [ { "type": 0, "sum" : 737.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:25:06]POST & json_proto [05:25:06]process_json_proto [05:25:06]json parsed OK: [05:25:06]protocol is kg_v1.0 [05:25:06]action value=close_receipt [05:25:06]process_action close_receipt [05:25:06]cmd_close_receipt [05:25:06]MH_GetDate [05:25:06]Write to MH i2c: F0 00 00 FB 5A 44 [05:25:06]Write i2c OK [05:25:06]MH_I2C_Read... [05:25:06]Read from MH i2c: F0 [05:25:06]MH_I2C_Read... [05:25:06]Read from MH i2c: F0 09 00 [05:25:06]MH_I2C_Read... [05:25:06]Read from MH i2c: F0 09 00 FB 5A 00 B8 C5 18 66 23 5B 8F 65 BA [05:25:06]GetLastDocTimeStamp 1712897418 [05:25:06]current date 1712899512 [05:25:06]FM_GetShiftState [05:25:06]SAM_PROTO_GetShiftState [05:25:06]wFMCommunicate request_size=4 [05:25:06]MH_SAM_APDU [05:25:06]CAPDU: 80 13 01 00 [05:25:06]Write to MH i2c: E2 08 00 FC 5A 80 13 01 00 00 00 00 00 D3 [05:25:06]Write i2c OK [05:25:06]MH_I2C_Read... [05:25:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:25:06]Read from MH i2c: E2 [05:25:06]MH_I2C_Read... [05:25:06]Read from MH i2c: E2 0E 00 [05:25:06]MH_I2C_Read... [05:25:06]Read from MH i2c: E2 0E 00 FC 5A 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 E4 [05:25:06]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [05:25:06]wFMCommunicate OK [05:25:06]SAM_PROTO_GetShiftState done [05:25:06]FM_GetShiftState done [05:25:06]opened in 1712881416 [05:25:06]opened+sec_in_day 1712967816 [05:25:06]quantity*price = 73761 [05:25:06]sum+1 = 73763 [05:25:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 737.00 Внесено: 1500.00 СДАЧА: 763.00 НСП 1% : 6.53 НДС 12% : 78.33 Наличными: 737.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 15 12.04.2024 05:25 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28566 ФПД: 257697071806486 1/tax-web-control/client/api/v1/ticket?date=20240412T052512&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28566&fm=257697071806486&tin=02508201610067®Number=0000138879044617&sum=73700 [05:25:07]StoreToDocumentArchive [05:25:07]shift 113 fd 28566 [05:25:07]save to /storage/0113/doc_00028566 [05:25:07]save last doc name /storage/0113/doc_00028566 to /storage/kkm_last_doc_name [05:25:07]save OK [05:25:07]Clear old archive folders... [05:25:07]ProcessDocumentItem done err = 0, tmpTLVsize=250 [05:25:07]tlvbuf is 01BFA290 [05:25:07]SAM_PROTO_ClearQueue [05:25:07]wFMCommunicate request_size=4 [05:25:07]MH_SAM_APDU [05:25:07]CAPDU: 80 09 00 00 [05:25:07]Write to MH i2c: E2 08 00 09 5B 80 09 00 00 00 00 00 00 D6 [05:25:07]Write i2c OK [05:25:07]MH_I2C_Read... [05:25:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:25:07]Read from MH i2c: E2 [05:25:07]MH_I2C_Read... [05:25:07]Read from MH i2c: E2 03 00 [05:25:07]MH_I2C_Read... [05:25:07]Read from MH i2c: E2 03 00 09 5B 00 90 00 D8 [05:25:07]RAPDU: 90 00 [05:25:07]wFMCommunicate OK [05:25:07]SAM_PROTO_ClearQueue done [05:25:07]KKMCreateOFDPacket [05:25:07]OFDProtocolAddRootSTLVToBuf [05:25:07]FM_MakeSignedData [05:25:07]FM_MakeSignedData [05:25:07]SAM_PROTO_SignData [05:25:07]wFMCommunicate request_size=4 [05:25:07]MH_SAM_APDU [05:25:07]CAPDU: 80 0D 01 02 [05:25:07]Write to MH i2c: E2 08 00 0A 5B 80 0D 01 02 00 00 00 00 DE [05:25:07]Write i2c OK [05:25:07]MH_I2C_Read... [05:25:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:25:07]Read from MH i2c: E2 [05:25:07]MH_I2C_Read... [05:25:07]Read from MH i2c: E2 03 00 [05:25:07]MH_I2C_Read... [05:25:07]Read from MH i2c: E2 03 00 0A 5B 00 90 00 D9 [05:25:07]RAPDU: 90 00 [05:25:07]wFMCommunicate OK [05:25:07]wFMCommunicate request_size=255 [05:25:07]MH_SAM_APDU [05:25:07]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 94 57 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 22 20 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 1F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 1E 00 00 00 00 07 04 06 00 E4 1F 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 B8 C5 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 96 6F 00 00 35 04 06 00 EA 5F [05:25:07]Write to MH i2c: E2 02 01 0B 5B 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 94 57 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 22 20 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 1F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 1E 00 00 00 00 07 04 06 00 E4 1F 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 B8 C5 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 96 6F 00 00 35 04 06 00 EA 5F 00 00 E0 [05:25:07]Write i2c OK [05:25:07]MH_I2C_Read... [05:25:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:25:07]Read from MH i2c: E2 [05:25:07]MH_I2C_Read... [05:25:07]Read from MH i2c: E2 03 00 [05:25:07]MH_I2C_Read... [05:25:07]Read from MH i2c: E2 03 00 0B 5B 00 90 00 DA [05:25:07]RAPDU: 90 00 [05:25:07]wFMCommunicate OK [05:25:07]wFMCommunicate request_size=9 [05:25:07]MH_SAM_APDU [05:25:07]CAPDU: 80 0D 02 02 04 C6 6C B8 16 [05:25:07]Write to MH i2c: E2 0C 00 0C 5B 80 0D 02 02 04 00 C6 6C B8 16 00 00 E9 [05:25:07]Write i2c OK [05:25:07]MH_I2C_Read... [05:25:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:25:07]Read from MH i2c: E2 [05:25:07]MH_I2C_Read... [05:25:07]Read from MH i2c: E2 03 00 [05:25:07]MH_I2C_Read... [05:25:07]Read from MH i2c: E2 03 00 0C 5B 00 90 00 DB [05:25:07]RAPDU: 90 00 [05:25:07]wFMCommunicate OK [05:25:07]wFMCommunicate request_size=4 [05:25:07]MH_SAM_APDU [05:25:07]CAPDU: 80 0D 03 02 [05:25:07]Write to MH i2c: E2 08 00 0D 5B 80 0D 03 02 00 00 00 00 E3 [05:25:07]Write i2c OK [05:25:07]MH_I2C_Read... [05:25:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:25:07]Read from MH i2c: E2 [05:25:07]MH_I2C_Read... [05:25:07]Read from MH i2c: E2 0B 00 [05:25:07]MH_I2C_Read... [05:25:07]Read from MH i2c: E2 0B 00 0D 5B 00 BB 13 27 55 3C 58 CE AC 90 00 3C [05:25:07]RAPDU: BB 13 27 55 3C 58 CE AC 90 00 [05:25:07]wFMCommunicate OK [05:25:07]SAM_PROTO_SignData done [05:25:07]FM_MakeSignedData done [05:25:07]CreateOFDProtocolMessage [05:25:07]wFMCommunicate request_size=4 [05:25:07]MH_SAM_APDU [05:25:07]CAPDU: 80 11 00 00 [05:25:07]Write to MH i2c: E2 08 00 0E 5B 80 11 00 00 00 00 00 00 E3 [05:25:07]Write i2c OK [05:25:07]MH_I2C_Read... [05:25:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:25:07]Read from MH i2c: E2 [05:25:07]MH_I2C_Read... [05:25:07]Read from MH i2c: E2 17 00 [05:25:07]MH_I2C_Read... [05:25:07]Read from MH i2c: E2 17 00 0E 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 32 [05:25:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [05:25:07]wFMCommunicate OK [05:25:07]CreateOFDProtocolMessage done [05:25:07]OFDSenderStorePacket 28566 [05:25:07]StoreOFDPacket docnum=28566 [05:25:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 52 F3 06 01 E6 C8 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 94 57 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 22 20 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 1F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 1E 00 00 00 00 07 04 06 00 E4 1F 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 B8 C5 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 96 6F 00 00 35 04 06 00 EA 5F C6 6C B8 16 BB 13 27 55 3C 58 CE AC [05:25:07]CheckFolder [05:25:07]dirname=/storage/ofd_packets [05:25:07]CheckFolder done [05:25:07]ProducePacketName [05:25:07]name=ofd_packets/00028566 [05:25:07]NVStorageSaveData ofd_packets/00028566 [05:25:07]File name is /storage/ofd_packets/00028566 [05:25:07]Write 300 bytes [05:25:07]NVStorageSaveData done [05:25:07]OFDSenderStorePacket done [05:25:07]KKMCreateOFDPacket done [05:25:07]NVStorageSaveData kkm_last_timestamp [05:25:07]File name is /storage/kkm_last_timestamp [05:25:07]Write 4 bytes [05:25:07]NVStorageSaveData done [05:25:07]ExternCall_PrintAddStr [05:25:07]wPrintStart [05:25:07]Write to MH i2c: 01 00 00 0F 5B 6A [05:25:07]Write i2c OK [05:25:07]MH_I2C_Read... [05:25:07]Read from MH i2c: 01 [05:25:07]MH_I2C_Read... [05:25:07]Read from MH i2c: 01 07 00 [05:25:07]MH_I2C_Read... [05:25:07]Read from MH i2c: 01 07 00 0F 5B 00 00 00 00 00 FF 0F 7F [05:25:07]RasterBufferAndPrint [05:25:07]line Счет N : (1)346872 [05:25:07]line ИНН: 02508201610067 [05:25:07]line Контрольно-Кассовый Чек [05:25:07]line ПРОДАЖА [05:25:07]line ТРК (МРК, ГНК) : 71 [05:25:07]line Товар: 2711129700 [05:25:07]line ГАЗ-К-5 [05:25:07]line 22.420 * 32.90 [05:25:07]line = 737.62 [05:25:07]line НДС 12% НСП 1% [05:25:07]line > о реализуемом товаре [05:25:07]line ОКРУГЛЕНИЕ: -0.62 [05:25:07]line ИТОГО: 737.00 [05:25:07]line Внесено: 1500.00 [05:25:07]line СДАЧА: 763.00 [05:25:07]line НСП 1% : 6.53 [05:25:07]line НДС 12% : 78.33 [05:25:07]line Наличными: 737.00 [05:25:07]line Безнал.: 0.00 [05:25:07]line Место: АЗС № 108 "Партнер Нефть" [05:25:07]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [05:25:07]line СНО: Общий режим [05:25:07]line Чек 15 12.04.2024 05:25 [05:25:07]line Смена: 113 ФФД: 1.0 [05:25:07]line ЗНМ: 0300000027 [05:25:07]line РНМ: 0000138879044617 [05:25:07]line Версия ККМ: 001 [05:25:07]line ФМ: 0000000000963154 [05:25:07]line ФД: 28566 [05:25:07]line ФПД: 257697071806486 [05:25:07]line 1/tax-web-control/client/api/v1/ticket?date=20240412T052512&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28566&fm=257697071806486&tin=02508201610067®Number=0000138879044617&sum=73700 [05:25:07]OFD Sender: Processing packet 28566 [packets to send 8, broken 7] [05:25:07]ProducePacketName [05:25:07]name=ofd_packets/00028566 [05:25:07]OFD Sender: To server: pG, [05:25:08]CommunicateWithHost lk.salyk.kg:30040 [05:25:08]ConnectInit lk.salyk.kg [05:25:08]written 0, free lines is 4095 [05:25:08]Connected sock=10 [05:25:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 52 F3 06 01 E6 C8 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 94 57 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 22 20 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 1F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 1E 00 00 00 00 07 04 06 00 E4 1F 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 B8 C5 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 96 6F 00 00 35 04 06 00 EA 5F C6 6C B8 16 BB 13 27 55 3C 58 CE AC [05:25:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 74 8E 47 00 20 85 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 96 6F 00 00 F4 03 04 00 63 70 18 66 B6 04 01 00 00 79 CE F4 CD 74 E0 5B F1 [05:25:08]CommunicateWithHost err = 0 [05:25:08]CheckOFDResponse [05:25:08]1017 (14) - 77093643461234 [05:25:08]1041 (16) - 0000000000963154 [05:25:08]1040 (4) - 28566 [05:25:08]1012 (4) - 11.04.2024 23:21 [05:25:08]1206 (1) - 0 [05:25:08]OFD Sender: Remove packet 28566 [05:25:08]ProducePacketName [05:25:08]name=ofd_packets/00028566 [05:25:08]NVStorageDeleteData [05:25:08]Write to MH i2c: 01 00 00 39 5B 94 [05:25:08]Write i2c OK [05:25:08]MH_I2C_Read... [05:25:08]Read from MH i2c: 01 [05:25:08]MH_I2C_Read... [05:25:08]Read from MH i2c: 01 07 00 [05:25:08]MH_I2C_Read... [05:25:08]Read from MH i2c: 01 07 00 39 5B 00 00 00 00 00 BF 0C 66 [05:25:08]RasterBufferAndPrint [05:25:08]line [05:25:08]line [05:25:08]line [05:25:08]line [05:25:08]line [05:25:08]written 0, free lines is 3267 [05:25:08]MH_Cut [05:25:08]Write to MH i2c: D1 01 00 40 5B 01 6D [05:25:08]Write i2c OK [05:25:08]MH_I2C_Read... [05:25:08]Read from MH i2c: D1 [05:25:08]MH_I2C_Read... [05:25:08]Read from MH i2c: D1 01 00 [05:25:08]MH_I2C_Read... [05:25:08]Read from MH i2c: D1 01 00 40 5B 00 6C [05:25:08]Write to MH i2c: 01 00 00 41 5B 9C [05:25:08]Write i2c OK [05:25:08]MH_I2C_Read... [05:25:08]OFD Sender: No OFD packet to send [05:25:09]*** Cut start [05:25:09]*** Partial cut [05:25:09]*** CUTSNS_PIN = 1 [05:25:09]*** CUTSNS_PIN = 0 [05:25:09]*** Brake cut motor [05:25:10]Read from MH i2c: 01 [05:25:10]MH_I2C_Read... [05:25:10]*** Stop cut motor [05:25:10]*** Cut end [05:25:10]Read from MH i2c: 01 07 00 [05:25:10]MH_I2C_Read... [05:25:10]Read from MH i2c: 01 07 00 41 5B 00 00 00 00 00 FF 0F B1 [05:25:10]process_action close_receipt done [05:25:10]requested_data is exist [05:25:10]produce_requested_data [05:25:10]requested_item fm.sn is exist - process it [05:25:10]wFMCommunicate request_size=4 [05:25:10]MH_SAM_APDU [05:25:10]CAPDU: 80 11 00 00 [05:25:10]Write to MH i2c: E2 08 00 42 5B 80 11 00 00 00 00 00 00 17 [05:25:10]Write i2c OK [05:25:10]MH_I2C_Read... [05:25:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:25:10]Read from MH i2c: E2 [05:25:10]MH_I2C_Read... [05:25:10]Read from MH i2c: E2 17 00 [05:25:10]MH_I2C_Read... [05:25:10]Read from MH i2c: E2 17 00 42 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 66 [05:25:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [05:25:10]wFMCommunicate OK [05:25:10]requested_item fd.num is exist - process it [05:25:10]SAM_PROTO_GetFieldsCounters [05:25:10]wFMCommunicate request_size=4 [05:25:10]MH_SAM_APDU [05:25:10]CAPDU: 80 13 00 00 [05:25:10]Write to MH i2c: E2 08 00 43 5B 80 13 00 00 00 00 00 00 1A [05:25:10]Write i2c OK [05:25:10]MH_I2C_Read... [05:25:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:25:10]Read from MH i2c: E2 [05:25:10]MH_I2C_Read... [05:25:10]Read from MH i2c: E2 62 00 [05:25:10]MH_I2C_Read... [05:25:10]Read from MH i2c: E2 62 00 43 5B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 96 6F 00 00 0E 04 04 00 71 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 FB [05:25:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 96 6F 00 00 0E 04 04 00 71 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 [05:25:10]wFMCommunicate OK [05:25:10]SAM_PROTO_GetFieldsCounters done [05:25:10]requested_item shift.num is exist - process it [05:25:10]requested_item shift.opened is exist - process it [05:25:10]req_shift_opened [05:25:10]FM_GetShiftState [05:25:10]SAM_PROTO_GetShiftState [05:25:10]wFMCommunicate request_size=4 [05:25:10]MH_SAM_APDU [05:25:10]CAPDU: 80 13 01 00 [05:25:10]Write to MH i2c: E2 08 00 44 5B 80 13 01 00 00 00 00 00 1C [05:25:10]Write i2c OK [05:25:10]MH_I2C_Read... [05:25:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:25:10]Read from MH i2c: E2 [05:25:10]MH_I2C_Read... [05:25:10]Read from MH i2c: E2 0E 00 [05:25:10]MH_I2C_Read... [05:25:10]Read from MH i2c: E2 0E 00 44 5B 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 2D [05:25:10]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [05:25:10]wFMCommunicate OK [05:25:10]SAM_PROTO_GetShiftState done [05:25:10]FM_GetShiftState done [05:25:10]req_shift_opened done [05:25:10]requested_item shift.open_date is exist - process it [05:25:10]req_shift_open_date [05:25:10]req_shift_open_date done [05:25:10]produce_requested_data done [05:25:10]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28566,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [05:25:10]process_action_free close_receipt [05:25:10]json_value_free [05:25:10]json_value_free done [05:25:10]process_json_proto returns [05:25:10]Send response to host [05:25:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28566,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [05:25:10]free response buf [05:25:10]execute_script done [05:25:10]execute_script returns [05:25:10]free content buf [05:25:10]Sock 9.Close socket [05:25:10]Sock 9.Thread stoped [05:25:13]OFD Sender: No OFD packet to send [05:25:18]OFD Sender: No OFD packet to send [05:25:23]OFD Sender: No OFD packet to send [05:25:28]OFD Sender: No OFD packet to send [05:25:33]OFD Sender: No OFD packet to send [05:25:38]OFD Sender: No OFD packet to send [05:25:43]OFD Sender: No OFD packet to send [05:25:48]OFD Sender: No OFD packet to send [05:25:53]OFD Sender: No OFD packet to send [05:25:58]OFD Sender: No OFD packet to send [05:26:03]OFD Sender: No OFD packet to send [05:26:08]OFD Sender: No OFD packet to send [05:26:13]OFD Sender: No OFD packet to send [05:26:18]OFD Sender: No OFD packet to send [05:26:23]OFD Sender: No OFD packet to send [05:26:28]OFD Sender: No OFD packet to send [05:26:33]OFD Sender: No OFD packet to send [05:26:38]OFD Sender: No OFD packet to send [05:26:43]OFD Sender: No OFD packet to send [05:26:48]OFD Sender: No OFD packet to send [05:26:53]OFD Sender: No OFD packet to send [05:26:58]OFD Sender: No OFD packet to send [05:27:03]OFD Sender: No OFD packet to send [05:27:08]OFD Sender: No OFD packet to send [05:27:13]OFD Sender: No OFD packet to send [05:27:18]OFD Sender: No OFD packet to send [05:27:23]OFD Sender: No OFD packet to send [05:27:29]OFD Sender: No OFD packet to send [05:27:34]OFD Sender: No OFD packet to send [05:27:39]OFD Sender: No OFD packet to send [05:27:44]OFD Sender: No OFD packet to send [05:27:46]accept exits with 7 [05:27:46]New connection [05:27:46]New thread 3066641764 created [05:27:46]Thread 3066498404 joined [05:27:46]Waiting for new connection... [05:27:46] Sock 7.Parse request [05:27:46]Sock 7.Check first char [05:27:46]Sock 7.First char is OK [05:27:46]request: POST /json_proto HTTP/1.0 [05:27:46]Method: POST [05:27:46]URL: /json_proto [05:27:46]Method is POST - this is cgi request [05:27:46]url: /json_proto [05:27:46]query_string will be loaded in cgi processing [05:27:46]execute_cgi json_proto POST (null) [05:27:46]execute_cgi path=json_proto method=POST [05:27:46]POST find Content-Length [05:27:46]Host: 172.17.33.3:8080 [05:27:46]Content-Length: 681 [05:27:46]Content-Type: application/json [05:27:46] [05:27:46]POST finish read [05:27:46]Found Content-Length = 681 [05:27:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346873", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 12.790, "sum" : 420.79, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 763.00, "total" : 420.00, "payments": [ { "type": 0, "sum" : 420.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:27:46]execute_script... [05:27:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346873", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 12.790, "sum" : 420.79, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 763.00, "total" : 420.00, "payments": [ { "type": 0, "sum" : 420.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:27:46]POST & json_proto [05:27:46]process_json_proto [05:27:46]json parsed OK: [05:27:46]protocol is kg_v1.0 [05:27:46]action value=close_receipt [05:27:46]process_action close_receipt [05:27:46]cmd_close_receipt [05:27:46]MH_GetDate [05:27:46]Write to MH i2c: F0 00 00 45 5B 8F [05:27:46]Write i2c OK [05:27:46]MH_I2C_Read... [05:27:46]Read from MH i2c: F0 [05:27:46]MH_I2C_Read... [05:27:46]Read from MH i2c: F0 09 00 [05:27:46]MH_I2C_Read... [05:27:46]Read from MH i2c: F0 09 00 45 5B 00 59 C6 18 66 23 5B 8F 65 A7 [05:27:46]GetLastDocTimeStamp 1712899512 [05:27:46]current date 1712899673 [05:27:46]FM_GetShiftState [05:27:46]SAM_PROTO_GetShiftState [05:27:46]wFMCommunicate request_size=4 [05:27:46]MH_SAM_APDU [05:27:46]CAPDU: 80 13 01 00 [05:27:46]Write to MH i2c: E2 08 00 46 5B 80 13 01 00 00 00 00 00 1E [05:27:46]Write i2c OK [05:27:46]MH_I2C_Read... [05:27:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:27:46]Read from MH i2c: E2 [05:27:46]MH_I2C_Read... [05:27:46]Read from MH i2c: E2 0E 00 [05:27:46]MH_I2C_Read... [05:27:46]Read from MH i2c: E2 0E 00 46 5B 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 2F [05:27:46]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [05:27:46]wFMCommunicate OK [05:27:46]SAM_PROTO_GetShiftState done [05:27:46]FM_GetShiftState done [05:27:46]opened in 1712881416 [05:27:46]opened+sec_in_day 1712967816 [05:27:46]quantity*price = 42079 [05:27:46]sum+1 = 42080 [05:27:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.79 ИТОГО: 420.00 Внесено: 763.00 СДАЧА: 343.00 НСП 1% : 3.72 НДС 12% : 44.69 Наличными: 420.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 16 12.04.2024 05:27 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28567 ФПД: 267606844020820 1/tax-web-control/client/api/v1/ticket?date=20240412T052753&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28567&fm=267606844020820&tin=02508201610067®Number=0000138879044617&sum=42000 [05:27:47]StoreToDocumentArchive [05:27:47]shift 113 fd 28567 [05:27:47]save to /storage/0113/doc_00028567 [05:27:47]save last doc name /storage/0113/doc_00028567 to /storage/kkm_last_doc_name [05:27:47]save OK [05:27:47]Clear old archive folders... [05:27:47]ProcessDocumentItem done err = 0, tmpTLVsize=250 [05:27:47]tlvbuf is 01AB6D10 [05:27:47]SAM_PROTO_ClearQueue [05:27:47]wFMCommunicate request_size=4 [05:27:47]MH_SAM_APDU [05:27:47]CAPDU: 80 09 00 00 [05:27:47]Write to MH i2c: E2 08 00 53 5B 80 09 00 00 00 00 00 00 20 [05:27:47]Write i2c OK [05:27:47]MH_I2C_Read... [05:27:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:27:47]Read from MH i2c: E2 [05:27:47]MH_I2C_Read... [05:27:47]Read from MH i2c: E2 03 00 [05:27:47]MH_I2C_Read... [05:27:47]Read from MH i2c: E2 03 00 53 5B 00 90 00 22 [05:27:47]RAPDU: 90 00 [05:27:47]wFMCommunicate OK [05:27:47]SAM_PROTO_ClearQueue done [05:27:47]KKMCreateOFDPacket [05:27:47]OFDProtocolAddRootSTLVToBuf [05:27:47]FM_MakeSignedData [05:27:47]FM_MakeSignedData [05:27:47]SAM_PROTO_SignData [05:27:47]wFMCommunicate request_size=4 [05:27:47]MH_SAM_APDU [05:27:47]CAPDU: 80 0D 01 02 [05:27:47]Write to MH i2c: E2 08 00 54 5B 80 0D 01 02 00 00 00 00 28 [05:27:47]Write i2c OK [05:27:47]MH_I2C_Read... [05:27:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:27:47]Read from MH i2c: E2 [05:27:47]MH_I2C_Read... [05:27:47]Read from MH i2c: E2 03 00 [05:27:47]MH_I2C_Read... [05:27:47]Read from MH i2c: E2 03 00 54 5B 00 90 00 23 [05:27:47]RAPDU: 90 00 [05:27:47]wFMCommunicate OK [05:27:47]wFMCommunicate request_size=255 [05:27:47]MH_SAM_APDU [05:27:47]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 F6 31 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 5F A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 11 00 00 00 00 07 04 06 00 10 A4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 59 C6 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 97 6F 00 00 35 04 06 00 F3 63 [05:27:47]Write to MH i2c: E2 02 01 55 5B 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 F6 31 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 5F A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 11 00 00 00 00 07 04 06 00 10 A4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 59 C6 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 97 6F 00 00 35 04 06 00 F3 63 00 00 EC [05:27:47]Write i2c OK [05:27:47]MH_I2C_Read... [05:27:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:27:48]Read from MH i2c: E2 [05:27:48]MH_I2C_Read... [05:27:48]Read from MH i2c: E2 03 00 [05:27:48]MH_I2C_Read... [05:27:48]Read from MH i2c: E2 03 00 55 5B 00 90 00 24 [05:27:48]RAPDU: 90 00 [05:27:48]wFMCommunicate OK [05:27:48]wFMCommunicate request_size=9 [05:27:48]MH_SAM_APDU [05:27:48]CAPDU: 80 0D 02 02 04 12 E0 98 54 [05:27:48]Write to MH i2c: E2 0C 00 56 5B 80 0D 02 02 04 00 12 E0 98 54 00 00 11 [05:27:48]Write i2c OK [05:27:48]MH_I2C_Read... [05:27:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:27:48]Read from MH i2c: E2 [05:27:48]MH_I2C_Read... [05:27:48]Read from MH i2c: E2 03 00 [05:27:48]MH_I2C_Read... [05:27:48]Read from MH i2c: E2 03 00 56 5B 00 90 00 25 [05:27:48]RAPDU: 90 00 [05:27:48]wFMCommunicate OK [05:27:48]wFMCommunicate request_size=4 [05:27:48]MH_SAM_APDU [05:27:48]CAPDU: 80 0D 03 02 [05:27:48]Write to MH i2c: E2 08 00 57 5B 80 0D 03 02 00 00 00 00 2D [05:27:48]Write i2c OK [05:27:48]MH_I2C_Read... [05:27:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:27:48]Read from MH i2c: E2 [05:27:48]MH_I2C_Read... [05:27:48]Read from MH i2c: E2 0B 00 [05:27:48]MH_I2C_Read... [05:27:48]Read from MH i2c: E2 0B 00 57 5B 00 56 21 E8 A0 E5 B4 3F 17 90 00 1C [05:27:48]RAPDU: 56 21 E8 A0 E5 B4 3F 17 90 00 [05:27:48]wFMCommunicate OK [05:27:48]SAM_PROTO_SignData done [05:27:48]FM_MakeSignedData done [05:27:48]CreateOFDProtocolMessage [05:27:48]wFMCommunicate request_size=4 [05:27:48]MH_SAM_APDU [05:27:48]CAPDU: 80 11 00 00 [05:27:48]Write to MH i2c: E2 08 00 58 5B 80 11 00 00 00 00 00 00 2D [05:27:48]Write i2c OK [05:27:48]MH_I2C_Read... [05:27:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:27:48]Read from MH i2c: E2 [05:27:48]MH_I2C_Read... [05:27:48]Read from MH i2c: E2 17 00 [05:27:48]MH_I2C_Read... [05:27:48]Read from MH i2c: E2 17 00 58 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 7C [05:27:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [05:27:48]wFMCommunicate OK [05:27:48]CreateOFDProtocolMessage done [05:27:48]OFDSenderStorePacket 28567 [05:27:48]StoreOFDPacket docnum=28567 [05:27:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 3F 38 06 01 85 E6 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 F6 31 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 5F A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 11 00 00 00 00 07 04 06 00 10 A4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 59 C6 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 97 6F 00 00 35 04 06 00 F3 63 12 E0 98 54 56 21 E8 A0 E5 B4 3F 17 [05:27:48]CheckFolder [05:27:48]dirname=/storage/ofd_packets [05:27:48]CheckFolder done [05:27:48]ProducePacketName [05:27:48]name=ofd_packets/00028567 [05:27:48]NVStorageSaveData ofd_packets/00028567 [05:27:48]File name is /storage/ofd_packets/00028567 [05:27:48]Write 300 bytes [05:27:48]NVStorageSaveData done [05:27:48]OFDSenderStorePacket done [05:27:48]KKMCreateOFDPacket done [05:27:48]NVStorageSaveData kkm_last_timestamp [05:27:48]File name is /storage/kkm_last_timestamp [05:27:48]Write 4 bytes [05:27:48]NVStorageSaveData done [05:27:48]ExternCall_PrintAddStr [05:27:48]wPrintStart [05:27:48]Write to MH i2c: 01 00 00 59 5B B4 [05:27:48]Write i2c OK [05:27:48]MH_I2C_Read... [05:27:48]Read from MH i2c: 01 [05:27:48]MH_I2C_Read... [05:27:48]Read from MH i2c: 01 07 00 [05:27:48]MH_I2C_Read... [05:27:48]Read from MH i2c: 01 07 00 59 5B 00 00 00 00 00 FF 0F C9 [05:27:48]RasterBufferAndPrint [05:27:48]line Счет N : (1)346873 [05:27:48]line ИНН: 02508201610067 [05:27:48]line Контрольно-Кассовый Чек [05:27:48]line ПРОДАЖА [05:27:48]line ТРК (МРК, ГНК) : 71 [05:27:48]line Товар: 2711129700 [05:27:48]line ГАЗ-К-5 [05:27:48]line 12.790 * 32.90 [05:27:48]line = 420.79 [05:27:48]line НДС 12% НСП 1% [05:27:48]line > о реализуемом товаре [05:27:48]line ОКРУГЛЕНИЕ: -0.79 [05:27:48]line ИТОГО: 420.00 [05:27:48]line Внесено: 763.00 [05:27:48]line СДАЧА: 343.00 [05:27:48]line НСП 1% : 3.72 [05:27:48]line НДС 12% : 44.69 [05:27:48]line Наличными: 420.00 [05:27:48]line Безнал.: 0.00 [05:27:48]line Место: АЗС № 108 "Партнер Нефть" [05:27:48]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [05:27:48]line СНО: Общий режим [05:27:48]line Чек 16 12.04.2024 05:27 [05:27:48]line Смена: 113 ФФД: 1.0 [05:27:48]line ЗНМ: 0300000027 [05:27:48]line РНМ: 0000138879044617 [05:27:48]line Версия ККМ: 001 [05:27:48]line ФМ: 0000000000963154 [05:27:48]line ФД: 28567 [05:27:48]line ФПД: 267606844020820 [05:27:48]line 1/tax-web-control/client/api/v1/ticket?date=20240412T052753&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28567&fm=267606844020820&tin=02508201610067®Number=0000138879044617&sum=42000 [05:27:48]OFD Sender: Processing packet 28567 [packets to send 8, broken 7] [05:27:48]ProducePacketName [05:27:48]name=ofd_packets/00028567 [05:27:48]OFD Sender: To server: pG, [05:27:48]CommunicateWithHost lk.salyk.kg:30040 [05:27:48]ConnectInit lk.salyk.kg [05:27:48]written 0, free lines is 4095 [05:27:48]Connected sock=10 [05:27:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 3F 38 06 01 85 E6 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 F6 31 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 5F A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 11 00 00 00 00 07 04 06 00 10 A4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 59 C6 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 97 6F 00 00 35 04 06 00 F3 63 12 E0 98 54 56 21 E8 A0 E5 B4 3F 17 [05:27:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 D9 4A 47 00 AD 90 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 97 6F 00 00 F4 03 04 00 04 71 18 66 B6 04 01 00 00 C2 9B 78 CE 50 8A 84 D9 [05:27:48]CommunicateWithHost err = 0 [05:27:48]CheckOFDResponse [05:27:48]1017 (14) - 77093643461234 [05:27:48]1041 (16) - 0000000000963154 [05:27:48]1040 (4) - 28567 [05:27:48]1012 (4) - 11.04.2024 23:23 [05:27:48]1206 (1) - 0 [05:27:48]OFD Sender: Remove packet 28567 [05:27:48]ProducePacketName [05:27:48]name=ofd_packets/00028567 [05:27:48]NVStorageDeleteData [05:27:48]Write to MH i2c: 01 00 00 83 5B DE [05:27:48]Write i2c OK [05:27:48]MH_I2C_Read... [05:27:48]Read from MH i2c: 01 [05:27:48]MH_I2C_Read... [05:27:48]Read from MH i2c: 01 07 00 [05:27:48]MH_I2C_Read... [05:27:48]Read from MH i2c: 01 07 00 83 5B 00 00 00 00 00 C2 0C B3 [05:27:48]RasterBufferAndPrint [05:27:48]line [05:27:48]line [05:27:48]line [05:27:48]line [05:27:48]line [05:27:48]written 0, free lines is 3272 [05:27:48]MH_Cut [05:27:48]Write to MH i2c: D1 01 00 8A 5B 01 B7 [05:27:48]Write i2c OK [05:27:48]MH_I2C_Read... [05:27:48]Read from MH i2c: D1 [05:27:48]MH_I2C_Read... [05:27:48]Read from MH i2c: D1 01 00 [05:27:48]MH_I2C_Read... [05:27:48]Read from MH i2c: D1 01 00 8A 5B 00 B6 [05:27:48]Write to MH i2c: 01 00 00 8B 5B E6 [05:27:48]Write i2c OK [05:27:48]MH_I2C_Read... [05:27:49]OFD Sender: No OFD packet to send [05:27:49]*** Cut start [05:27:49]*** Partial cut [05:27:49]*** CUTSNS_PIN = 1 [05:27:49]*** CUTSNS_PIN = 0 [05:27:50]*** Brake cut motor [05:27:50]Read from MH i2c: 01 [05:27:50]MH_I2C_Read... [05:27:50]*** Stop cut motor [05:27:50]*** Cut end [05:27:50]Read from MH i2c: 01 07 00 [05:27:50]MH_I2C_Read... [05:27:50]Read from MH i2c: 01 07 00 8B 5B 00 00 00 00 00 FF 0F FB [05:27:50]process_action close_receipt done [05:27:50]requested_data is exist [05:27:50]produce_requested_data [05:27:50]requested_item fm.sn is exist - process it [05:27:50]wFMCommunicate request_size=4 [05:27:50]MH_SAM_APDU [05:27:50]CAPDU: 80 11 00 00 [05:27:50]Write to MH i2c: E2 08 00 8C 5B 80 11 00 00 00 00 00 00 61 [05:27:50]Write i2c OK [05:27:50]MH_I2C_Read... [05:27:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:27:50]Read from MH i2c: E2 [05:27:50]MH_I2C_Read... [05:27:50]Read from MH i2c: E2 17 00 [05:27:50]MH_I2C_Read... [05:27:50]Read from MH i2c: E2 17 00 8C 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 B0 [05:27:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [05:27:50]wFMCommunicate OK [05:27:50]requested_item fd.num is exist - process it [05:27:50]SAM_PROTO_GetFieldsCounters [05:27:50]wFMCommunicate request_size=4 [05:27:50]MH_SAM_APDU [05:27:50]CAPDU: 80 13 00 00 [05:27:50]Write to MH i2c: E2 08 00 8D 5B 80 13 00 00 00 00 00 00 64 [05:27:50]Write i2c OK [05:27:50]MH_I2C_Read... [05:27:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:27:50]Read from MH i2c: E2 [05:27:50]MH_I2C_Read... [05:27:50]Read from MH i2c: E2 62 00 [05:27:50]MH_I2C_Read... [05:27:50]Read from MH i2c: E2 62 00 8D 5B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 97 6F 00 00 0E 04 04 00 71 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 49 [05:27:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 97 6F 00 00 0E 04 04 00 71 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 [05:27:50]wFMCommunicate OK [05:27:50]SAM_PROTO_GetFieldsCounters done [05:27:50]requested_item shift.num is exist - process it [05:27:50]requested_item shift.opened is exist - process it [05:27:50]req_shift_opened [05:27:50]FM_GetShiftState [05:27:50]SAM_PROTO_GetShiftState [05:27:50]wFMCommunicate request_size=4 [05:27:50]MH_SAM_APDU [05:27:50]CAPDU: 80 13 01 00 [05:27:50]Write to MH i2c: E2 08 00 8E 5B 80 13 01 00 00 00 00 00 66 [05:27:50]Write i2c OK [05:27:50]MH_I2C_Read... [05:27:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:27:50]Read from MH i2c: E2 [05:27:50]MH_I2C_Read... [05:27:50]Read from MH i2c: E2 0E 00 [05:27:50]MH_I2C_Read... [05:27:50]Read from MH i2c: E2 0E 00 8E 5B 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 77 [05:27:50]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [05:27:50]wFMCommunicate OK [05:27:50]SAM_PROTO_GetShiftState done [05:27:50]FM_GetShiftState done [05:27:50]req_shift_opened done [05:27:50]requested_item shift.open_date is exist - process it [05:27:50]req_shift_open_date [05:27:50]req_shift_open_date done [05:27:50]produce_requested_data done [05:27:50]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28567,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [05:27:50]process_action_free close_receipt [05:27:50]json_value_free [05:27:50]json_value_free done [05:27:50]process_json_proto returns [05:27:50]Send response to host [05:27:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28567,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [05:27:50]free response buf [05:27:50]execute_script done [05:27:50]execute_script returns [05:27:50]free content buf [05:27:50]Sock 7.Close socket [05:27:50]Sock 7.Thread stoped [05:27:54]OFD Sender: No OFD packet to send [05:27:59]OFD Sender: No OFD packet to send [05:28:04]OFD Sender: No OFD packet to send [05:28:09]OFD Sender: No OFD packet to send [05:28:14]OFD Sender: No OFD packet to send [05:28:19]OFD Sender: No OFD packet to send [05:28:24]OFD Sender: No OFD packet to send [05:28:29]OFD Sender: No OFD packet to send [05:28:34]OFD Sender: No OFD packet to send [05:28:39]OFD Sender: No OFD packet to send [05:28:44]OFD Sender: No OFD packet to send [05:28:49]OFD Sender: No OFD packet to send [05:28:54]OFD Sender: No OFD packet to send [05:28:59]OFD Sender: No OFD packet to send [05:29:04]OFD Sender: No OFD packet to send [05:29:09]OFD Sender: No OFD packet to send [05:29:14]OFD Sender: No OFD packet to send [05:29:19]OFD Sender: No OFD packet to send [05:29:24]OFD Sender: No OFD packet to send [05:29:29]OFD Sender: No OFD packet to send [05:29:34]OFD Sender: No OFD packet to send [05:29:39]OFD Sender: No OFD packet to send [05:29:44]OFD Sender: No OFD packet to send [05:29:49]OFD Sender: No OFD packet to send [05:29:54]OFD Sender: No OFD packet to send [05:29:59]OFD Sender: No OFD packet to send [05:30:00]accept exits with 9 [05:30:00]New connection [05:30:00]New thread 3066498404 created [05:30:00]Thread 3066641764 joined [05:30:00]Waiting for new connection... [05:30:00] Sock 9.Parse request [05:30:00]Sock 9.Check first char [05:30:00]Sock 9.First char is OK [05:30:00]request: POST /json_proto HTTP/1.0 [05:30:00]Method: POST [05:30:00]URL: /json_proto [05:30:00]Method is POST - this is cgi request [05:30:00]url: /json_proto [05:30:00]query_string will be loaded in cgi processing [05:30:00]execute_cgi json_proto POST (null) [05:30:00]execute_cgi path=json_proto method=POST [05:30:00]POST find Content-Length [05:30:00]Host: 172.17.33.3:8080 [05:30:00]Content-Length: 678 [05:30:00]Content-Type: application/json [05:30:00] [05:30:00]POST finish read [05:30:00]Found Content-Length = 678 [05:30:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346874", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 13.120, "sum" : 843.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 843.00, "total" : 843.00, "payments": [ { "type": 0, "sum" : 843.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:30:00]execute_script... [05:30: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)346874", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 13.120, "sum" : 843.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 843.00, "total" : 843.00, "payments": [ { "type": 0, "sum" : 843.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:30:00]POST & json_proto [05:30:00]process_json_proto [05:30:00]json parsed OK: [05:30:00]protocol is kg_v1.0 [05:30:00]action value=close_receipt [05:30:00]process_action close_receipt [05:30:00]cmd_close_receipt [05:30:00]MH_GetDate [05:30:00]Write to MH i2c: F0 00 00 8F 5B D9 [05:30:00]Write i2c OK [05:30:00]MH_I2C_Read... [05:30:00]Read from MH i2c: F0 [05:30:00]MH_I2C_Read... [05:30:00]Read from MH i2c: F0 09 00 [05:30:00]MH_I2C_Read... [05:30:00]Read from MH i2c: F0 09 00 8F 5B 00 DE C6 18 66 23 5B 8F 65 76 [05:30:00]GetLastDocTimeStamp 1712899673 [05:30:00]current date 1712899806 [05:30:00]FM_GetShiftState [05:30:00]SAM_PROTO_GetShiftState [05:30:00]wFMCommunicate request_size=4 [05:30:00]MH_SAM_APDU [05:30:00]CAPDU: 80 13 01 00 [05:30:00]Write to MH i2c: E2 08 00 90 5B 80 13 01 00 00 00 00 00 68 [05:30:00]Write i2c OK [05:30:00]MH_I2C_Read... [05:30:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:30:00]Read from MH i2c: E2 [05:30:00]MH_I2C_Read... [05:30:00]Read from MH i2c: E2 0E 00 [05:30:00]MH_I2C_Read... [05:30:00]Read from MH i2c: E2 0E 00 90 5B 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 79 [05:30:00]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [05:30:00]wFMCommunicate OK [05:30:00]SAM_PROTO_GetShiftState done [05:30:00]FM_GetShiftState done [05:30:00]opened in 1712881416 [05:30:00]opened+sec_in_day 1712967816 [05:30:00]quantity*price = 84361 [05:30:00]sum+1 = 84363 [05:30:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 843.00 Внесено: 843.00 СДАЧА: 0.00 НСП 1% : 7.47 НДС 12% : 89.59 Наличными: 843.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 17 12.04.2024 05:30 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28568 ФПД: 128470120727158 1/tax-web-control/client/api/v1/ticket?date=20240412T053006&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28568&fm=128470120727158&tin=02508201610067®Number=0000138879044617&sum=84300 [05:30:01]StoreToDocumentArchive [05:30:01]shift 113 fd 28568 [05:30:01]save to /storage/0113/doc_00028568 [05:30:01]save last doc name /storage/0113/doc_00028568 to /storage/kkm_last_doc_name [05:30:01]save OK [05:30:01]Clear old archive folders... [05:30:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:30:01]tlvbuf is 01B4D980 [05:30:01]SAM_PROTO_ClearQueue [05:30:01]wFMCommunicate request_size=4 [05:30:01]MH_SAM_APDU [05:30:01]CAPDU: 80 09 00 00 [05:30:01]Write to MH i2c: E2 08 00 9D 5B 80 09 00 00 00 00 00 00 6A [05:30:01]Write i2c OK [05:30:01]MH_I2C_Read... [05:30:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:30:01]Read from MH i2c: E2 [05:30:01]MH_I2C_Read... [05:30:01]Read from MH i2c: E2 03 00 [05:30:01]MH_I2C_Read... [05:30:01]Read from MH i2c: E2 03 00 9D 5B 00 90 00 6C [05:30:01]RAPDU: 90 00 [05:30:01]wFMCommunicate OK [05:30:01]SAM_PROTO_ClearQueue done [05:30:01]KKMCreateOFDPacket [05:30:01]OFDProtocolAddRootSTLVToBuf [05:30:01]FM_MakeSignedData [05:30:01]FM_MakeSignedData [05:30:01]SAM_PROTO_SignData [05:30:01]wFMCommunicate request_size=4 [05:30:01]MH_SAM_APDU [05:30:01]CAPDU: 80 0D 01 02 [05:30:01]Write to MH i2c: E2 08 00 9E 5B 80 0D 01 02 00 00 00 00 72 [05:30:01]Write i2c OK [05:30:01]MH_I2C_Read... [05:30:01]Read from MH i2c: E2 [05:30:01]MH_I2C_Read... [05:30:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:30:01]Read from MH i2c: E2 03 00 [05:30:01]MH_I2C_Read... [05:30:01]Read from MH i2c: E2 03 00 9E 5B 00 90 00 6D [05:30:01]RAPDU: 90 00 [05:30:01]wFMCommunicate OK [05:30:01]wFMCommunicate request_size=255 [05:30:01]MH_SAM_APDU [05:30:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 33 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 8A 49 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 49 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EB 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 22 00 00 00 00 07 04 06 00 4C 49 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 DE C6 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 98 6F 00 00 35 04 06 00 74 [05:30:01]Write to MH i2c: E2 02 01 9F 5B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 33 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 8A 49 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 49 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EB 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 22 00 00 00 00 07 04 06 00 4C 49 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 DE C6 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 98 6F 00 00 35 04 06 00 74 00 00 70 [05:30:01]Write i2c OK [05:30:01]MH_I2C_Read... [05:30:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:30:01]Read from MH i2c: E2 [05:30:01]MH_I2C_Read... [05:30:01]Read from MH i2c: E2 03 00 [05:30:01]MH_I2C_Read... [05:30:01]Read from MH i2c: E2 03 00 9F 5B 00 90 00 6E [05:30:01]RAPDU: 90 00 [05:30:01]wFMCommunicate OK [05:30:01]wFMCommunicate request_size=10 [05:30:01]MH_SAM_APDU [05:30:01]CAPDU: 80 0D 02 02 05 D7 C7 E9 02 76 [05:30:01]Write to MH i2c: E2 0D 00 A0 5B 80 0D 02 02 05 00 D7 C7 E9 02 76 00 00 7E [05:30:01]Write i2c OK [05:30:01]MH_I2C_Read... [05:30:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:30:01]Read from MH i2c: E2 [05:30:01]MH_I2C_Read... [05:30:01]Read from MH i2c: E2 03 00 [05:30:01]MH_I2C_Read... [05:30:01]Read from MH i2c: E2 03 00 A0 5B 00 90 00 6F [05:30:01]RAPDU: 90 00 [05:30:01]wFMCommunicate OK [05:30:01]wFMCommunicate request_size=4 [05:30:01]MH_SAM_APDU [05:30:01]CAPDU: 80 0D 03 02 [05:30:01]Write to MH i2c: E2 08 00 A1 5B 80 0D 03 02 00 00 00 00 77 [05:30:01]Write i2c OK [05:30:01]MH_I2C_Read... [05:30:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:30:01]Read from MH i2c: E2 [05:30:01]MH_I2C_Read... [05:30:01]Read from MH i2c: E2 0B 00 [05:30:01]MH_I2C_Read... [05:30:01]Read from MH i2c: E2 0B 00 A1 5B 00 44 6C 48 24 83 E2 FE 03 90 00 FA [05:30:01]RAPDU: 44 6C 48 24 83 E2 FE 03 90 00 [05:30:01]wFMCommunicate OK [05:30:01]SAM_PROTO_SignData done [05:30:01]FM_MakeSignedData done [05:30:01]CreateOFDProtocolMessage [05:30:01]wFMCommunicate request_size=4 [05:30:01]MH_SAM_APDU [05:30:01]CAPDU: 80 11 00 00 [05:30:01]Write to MH i2c: E2 08 00 A2 5B 80 11 00 00 00 00 00 00 77 [05:30:01]Write i2c OK [05:30:01]MH_I2C_Read... [05:30:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:30:01]Read from MH i2c: E2 [05:30:01]MH_I2C_Read... [05:30:01]Read from MH i2c: E2 17 00 [05:30:01]MH_I2C_Read... [05:30:01]Read from MH i2c: E2 17 00 A2 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 C6 [05:30:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [05:30:01]wFMCommunicate OK [05:30:01]CreateOFDProtocolMessage done [05:30:01]OFDSenderStorePacket 28568 [05:30:01]StoreOFDPacket docnum=28568 [05:30:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 F9 AC 07 01 F0 BC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 33 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 8A 49 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 49 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EB 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 22 00 00 00 00 07 04 06 00 4C 49 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 DE C6 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 98 6F 00 00 35 04 06 00 74 D7 C7 E9 02 76 44 6C 48 24 83 E2 FE 03 [05:30:01]CheckFolder [05:30:01]dirname=/storage/ofd_packets [05:30:01]CheckFolder done [05:30:01]ProducePacketName [05:30:01]name=ofd_packets/00028568 [05:30:01]NVStorageSaveData ofd_packets/00028568 [05:30:01]File name is /storage/ofd_packets/00028568 [05:30:01]Write 301 bytes [05:30:01]NVStorageSaveData done [05:30:01]OFDSenderStorePacket done [05:30:01]KKMCreateOFDPacket done [05:30:01]NVStorageSaveData kkm_last_timestamp [05:30:01]File name is /storage/kkm_last_timestamp [05:30:01]Write 4 bytes [05:30:01]NVStorageSaveData done [05:30:01]ExternCall_PrintAddStr [05:30:01]wPrintStart [05:30:01]Write to MH i2c: 01 00 00 A3 5B FE [05:30:01]Write i2c OK [05:30:01]MH_I2C_Read... [05:30:01]Read from MH i2c: 01 [05:30:01]MH_I2C_Read... [05:30:01]Read from MH i2c: 01 07 00 [05:30:01]MH_I2C_Read... [05:30:01]Read from MH i2c: 01 07 00 A3 5B 00 00 00 00 00 FF 0F 13 [05:30:01]RasterBufferAndPrint [05:30:01]line Счет N : (1)346874 [05:30:01]line ИНН: 02508201610067 [05:30:01]line Контрольно-Кассовый Чек [05:30:01]line ПРОДАЖА [05:30:01]line ТРК (МРК, ГНК) : 32 [05:30:01]line Товар: 2710124130 [05:30:01]line Аи-92-К-5 [05:30:01]line 13.120 * 64.30 [05:30:01]line = 843.62 [05:30:01]line НДС 12% НСП 1% [05:30:01]line > о реализуемом товаре [05:30:01]line ОКРУГЛЕНИЕ: -0.62 [05:30:01]line ИТОГО: 843.00 [05:30:01]line Внесено: 843.00 [05:30:01]line СДАЧА: 0.00 [05:30:01]line НСП 1% : 7.47 [05:30:01]line НДС 12% : 89.59 [05:30:01]line Наличными: 843.00 [05:30:01]line Безнал.: 0.00 [05:30:01]line Место: АЗС № 108 "Партнер Нефть" [05:30:01]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [05:30:01]line СНО: Общий режим [05:30:01]line Чек 17 12.04.2024 05:30 [05:30:01]line Смена: 113 ФФД: 1.0 [05:30:01]line ЗНМ: 0300000027 [05:30:01]line РНМ: 0000138879044617 [05:30:01]line Версия ККМ: 001 [05:30:02]line ФМ: 0000000000963154 [05:30:02]line ФД: 28568 [05:30:02]line ФПД: 128470120727158 [05:30:02]line 1/tax-web-control/client/api/v1/ticket?date=20240412T053006&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28568&fm=128470120727158&tin=02508201610067®Number=0000138879044617&sum=84300 [05:30:02]OFD Sender: Processing packet 28568 [packets to send 8, broken 7] [05:30:02]ProducePacketName [05:30:02]name=ofd_packets/00028568 [05:30:02]OFD Sender: To server: pG, [05:30:02]CommunicateWithHost lk.salyk.kg:30040 [05:30:02]ConnectInit lk.salyk.kg [05:30:02]written 0, free lines is 4095 [05:30:02]Connected sock=10 [05:30:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 F9 AC 07 01 F0 BC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 33 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 8A 49 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 49 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EB 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 22 00 00 00 00 07 04 06 00 4C 49 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 DE C6 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 98 6F 00 00 35 04 06 00 74 D7 C7 E9 02 76 44 6C 48 24 83 E2 FE 03 [05:30:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 69 59 47 00 6F D1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 98 6F 00 00 F4 03 04 00 89 71 18 66 B6 04 01 00 00 10 A3 1B ED 68 F6 AA F3 [05:30:02]CommunicateWithHost err = 0 [05:30:02]CheckOFDResponse [05:30:02]1017 (14) - 77093643461234 [05:30:02]1041 (16) - 0000000000963154 [05:30:02]1040 (4) - 28568 [05:30:02]1012 (4) - 11.04.2024 23:26 [05:30:02]1206 (1) - 0 [05:30:02]OFD Sender: Remove packet 28568 [05:30:02]ProducePacketName [05:30:02]name=ofd_packets/00028568 [05:30:02]NVStorageDeleteData [05:30:02]Write to MH i2c: 01 00 00 CD 5B 28 [05:30:02]Write i2c OK [05:30:02]MH_I2C_Read... [05:30:02]Read from MH i2c: 01 [05:30:02]MH_I2C_Read... [05:30:02]Read from MH i2c: 01 07 00 [05:30:02]MH_I2C_Read... [05:30:02]Read from MH i2c: 01 07 00 CD 5B 00 00 00 00 00 CA 0C 05 [05:30:02]RasterBufferAndPrint [05:30:02]line [05:30:02]line [05:30:02]line [05:30:02]line [05:30:02]line [05:30:02]written 0, free lines is 3280 [05:30:02]MH_Cut [05:30:02]Write to MH i2c: D1 01 00 D4 5B 01 01 [05:30:02]Write i2c OK [05:30:02]MH_I2C_Read... [05:30:02]Read from MH i2c: D1 [05:30:02]MH_I2C_Read... [05:30:02]Read from MH i2c: D1 01 00 [05:30:02]MH_I2C_Read... [05:30:02]Read from MH i2c: D1 01 00 D4 5B 00 00 [05:30:02]Write to MH i2c: 01 00 00 D5 5B 30 [05:30:02]Write i2c OK [05:30:02]MH_I2C_Read... [05:30:02]OFD Sender: No OFD packet to send [05:30:03]*** Cut start [05:30:03]*** Partial cut [05:30:03]*** CUTSNS_PIN = 1 [05:30:03]*** CUTSNS_PIN = 0 [05:30:03]*** Brake cut motor [05:30:03]Read from MH i2c: 01 [05:30:03]MH_I2C_Read... [05:30:03]*** Stop cut motor [05:30:03]*** Cut end [05:30:03]Read from MH i2c: 01 07 00 [05:30:03]MH_I2C_Read... [05:30:03]Read from MH i2c: 01 07 00 D5 5B 00 00 00 00 00 FF 0F 45 [05:30:03]process_action close_receipt done [05:30:03]requested_data is exist [05:30:03]produce_requested_data [05:30:03]requested_item fm.sn is exist - process it [05:30:03]wFMCommunicate request_size=4 [05:30:03]MH_SAM_APDU [05:30:03]CAPDU: 80 11 00 00 [05:30:03]Write to MH i2c: E2 08 00 D6 5B 80 11 00 00 00 00 00 00 AB [05:30:03]Write i2c OK [05:30:03]MH_I2C_Read... [05:30:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:30:04]Read from MH i2c: E2 [05:30:04]MH_I2C_Read... [05:30:04]Read from MH i2c: E2 17 00 [05:30:04]MH_I2C_Read... [05:30:04]Read from MH i2c: E2 17 00 D6 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 FA [05:30:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [05:30:04]wFMCommunicate OK [05:30:04]requested_item fd.num is exist - process it [05:30:04]SAM_PROTO_GetFieldsCounters [05:30:04]wFMCommunicate request_size=4 [05:30:04]MH_SAM_APDU [05:30:04]CAPDU: 80 13 00 00 [05:30:04]Write to MH i2c: E2 08 00 D7 5B 80 13 00 00 00 00 00 00 AE [05:30:04]Write i2c OK [05:30:04]MH_I2C_Read... [05:30:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:30:04]Read from MH i2c: E2 [05:30:04]MH_I2C_Read... [05:30:04]Read from MH i2c: E2 62 00 [05:30:04]MH_I2C_Read... [05:30:04]Read from MH i2c: E2 62 00 D7 5B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 98 6F 00 00 0E 04 04 00 71 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 97 [05:30:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 98 6F 00 00 0E 04 04 00 71 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 [05:30:04]wFMCommunicate OK [05:30:04]SAM_PROTO_GetFieldsCounters done [05:30:04]requested_item shift.num is exist - process it [05:30:04]requested_item shift.opened is exist - process it [05:30:04]req_shift_opened [05:30:04]FM_GetShiftState [05:30:04]SAM_PROTO_GetShiftState [05:30:04]wFMCommunicate request_size=4 [05:30:04]MH_SAM_APDU [05:30:04]CAPDU: 80 13 01 00 [05:30:04]Write to MH i2c: E2 08 00 D8 5B 80 13 01 00 00 00 00 00 B0 [05:30:04]Write i2c OK [05:30:04]MH_I2C_Read... [05:30:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:30:04]Read from MH i2c: E2 [05:30:04]MH_I2C_Read... [05:30:04]Read from MH i2c: E2 0E 00 [05:30:04]MH_I2C_Read... [05:30:04]Read from MH i2c: E2 0E 00 D8 5B 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 C1 [05:30:04]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [05:30:04]wFMCommunicate OK [05:30:04]SAM_PROTO_GetShiftState done [05:30:04]FM_GetShiftState done [05:30:04]req_shift_opened done [05:30:04]requested_item shift.open_date is exist - process it [05:30:04]req_shift_open_date [05:30:04]req_shift_open_date done [05:30:04]produce_requested_data done [05:30:04]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28568,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [05:30:04]process_action_free close_receipt [05:30:04]json_value_free [05:30:04]json_value_free done [05:30:04]process_json_proto returns [05:30:04]Send response to host [05:30:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28568,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [05:30:04]free response buf [05:30:04]execute_script done [05:30:04]execute_script returns [05:30:04]free content buf [05:30:04]Sock 9.Close socket [05:30:04]Sock 9.Thread stoped [05:30:07]OFD Sender: No OFD packet to send [05:30:12]OFD Sender: No OFD packet to send [05:30:17]OFD Sender: No OFD packet to send [05:30:22]OFD Sender: No OFD packet to send [05:30:27]OFD Sender: No OFD packet to send [05:30:32]OFD Sender: No OFD packet to send [05:30:37]OFD Sender: No OFD packet to send [05:30:42]OFD Sender: No OFD packet to send [05:30:47]OFD Sender: No OFD packet to send [05:30:52]OFD Sender: No OFD packet to send [05:30:57]OFD Sender: No OFD packet to send [05:31:02]OFD Sender: No OFD packet to send [05:31:07]OFD Sender: No OFD packet to send [05:31:12]OFD Sender: No OFD packet to send [05:31:17]OFD Sender: No OFD packet to send [05:31:22]OFD Sender: No OFD packet to send [05:31:27]OFD Sender: No OFD packet to send [05:31:32]OFD Sender: No OFD packet to send [05:31:37]OFD Sender: No OFD packet to send [05:31:42]OFD Sender: No OFD packet to send [05:31:47]OFD Sender: No OFD packet to send [05:31:52]OFD Sender: No OFD packet to send [05:31:57]OFD Sender: No OFD packet to send [05:32:02]OFD Sender: No OFD packet to send [05:32:07]OFD Sender: No OFD packet to send [05:32:12]OFD Sender: No OFD packet to send [05:32:17]OFD Sender: No OFD packet to send [05:32:22]OFD Sender: No OFD packet to send [05:32:27]OFD Sender: No OFD packet to send [05:32:32]OFD Sender: No OFD packet to send [05:32:37]OFD Sender: No OFD packet to send [05:32:42]OFD Sender: No OFD packet to send [05:32:47]OFD Sender: No OFD packet to send [05:32:52]OFD Sender: No OFD packet to send [05:32:57]OFD Sender: No OFD packet to send [05:33:02]OFD Sender: No OFD packet to send [05:33:07]OFD Sender: No OFD packet to send [05:33:12]OFD Sender: No OFD packet to send [05:33:17]OFD Sender: No OFD packet to send [05:33:22]OFD Sender: No OFD packet to send [05:33:27]OFD Sender: No OFD packet to send [05:33:32]OFD Sender: No OFD packet to send [05:33:37]OFD Sender: No OFD packet to send [05:33:42]OFD Sender: No OFD packet to send [05:33:47]OFD Sender: No OFD packet to send [05:33:52]OFD Sender: No OFD packet to send [05:33:57]OFD Sender: No OFD packet to send [05:34:02]OFD Sender: No OFD packet to send [05:34:08]OFD Sender: No OFD packet to send [05:34:13]OFD Sender: No OFD packet to send [05:34:18]OFD Sender: No OFD packet to send [05:34:23]OFD Sender: No OFD packet to send [05:34:28]OFD Sender: No OFD packet to send [05:34:33]OFD Sender: No OFD packet to send [05:34:38]OFD Sender: No OFD packet to send [05:34:43]OFD Sender: No OFD packet to send [05:34:48]OFD Sender: No OFD packet to send [05:34:53]OFD Sender: No OFD packet to send [05:34:58]OFD Sender: No OFD packet to send [05:35:03]OFD Sender: No OFD packet to send [05:35:08]OFD Sender: No OFD packet to send [05:35:13]OFD Sender: No OFD packet to send [05:35:18]OFD Sender: No OFD packet to send [05:35:23]OFD Sender: No OFD packet to send [05:35:28]OFD Sender: No OFD packet to send [05:35:33]OFD Sender: No OFD packet to send [05:35:38]OFD Sender: No OFD packet to send [05:35:43]OFD Sender: No OFD packet to send [05:35:48]OFD Sender: No OFD packet to send [05:35:53]OFD Sender: No OFD packet to send [05:35:58]OFD Sender: No OFD packet to send [05:36:03]OFD Sender: No OFD packet to send [05:36:08]OFD Sender: No OFD packet to send [05:36:13]OFD Sender: No OFD packet to send [05:36:18]OFD Sender: No OFD packet to send [05:36:23]OFD Sender: No OFD packet to send [05:36:28]OFD Sender: No OFD packet to send [05:36:33]OFD Sender: No OFD packet to send [05:36:38]OFD Sender: No OFD packet to send [05:36:43]OFD Sender: No OFD packet to send [05:36:48]OFD Sender: No OFD packet to send [05:36:53]OFD Sender: No OFD packet to send [05:36:58]OFD Sender: No OFD packet to send [05:37:03]OFD Sender: No OFD packet to send [05:37:08]OFD Sender: No OFD packet to send [05:37:13]OFD Sender: No OFD packet to send [05:37:18]OFD Sender: No OFD packet to send [05:37:23]OFD Sender: No OFD packet to send [05:37:28]OFD Sender: No OFD packet to send [05:37:33]OFD Sender: No OFD packet to send [05:37:38]OFD Sender: No OFD packet to send [05:37:43]OFD Sender: No OFD packet to send [05:37:48]OFD Sender: No OFD packet to send [05:37:53]OFD Sender: No OFD packet to send [05:37:58]OFD Sender: No OFD packet to send [05:38:03]OFD Sender: No OFD packet to send [05:38:08]OFD Sender: No OFD packet to send [05:38:13]OFD Sender: No OFD packet to send [05:38:18]OFD Sender: No OFD packet to send [05:38:23]OFD Sender: No OFD packet to send [05:38:28]OFD Sender: No OFD packet to send [05:38:33]OFD Sender: No OFD packet to send [05:38:38]OFD Sender: No OFD packet to send [05:38:43]OFD Sender: No OFD packet to send [05:38:48]OFD Sender: No OFD packet to send [05:38:53]OFD Sender: No OFD packet to send [05:38:58]OFD Sender: No OFD packet to send [05:39:03]OFD Sender: No OFD packet to send [05:39:08]OFD Sender: No OFD packet to send [05:39:13]OFD Sender: No OFD packet to send [05:39:18]OFD Sender: No OFD packet to send [05:39:23]OFD Sender: No OFD packet to send [05:39:28]OFD Sender: No OFD packet to send [05:39:33]OFD Sender: No OFD packet to send [05:39:38]OFD Sender: No OFD packet to send [05:39:43]OFD Sender: No OFD packet to send [05:39:48]OFD Sender: No OFD packet to send [05:39:53]OFD Sender: No OFD packet to send [05:39:58]OFD Sender: No OFD packet to send [05:40:03]OFD Sender: No OFD packet to send [05:40:08]OFD Sender: No OFD packet to send [05:40:13]OFD Sender: No OFD packet to send [05:40:18]OFD Sender: No OFD packet to send [05:40:23]OFD Sender: No OFD packet to send [05:40:28]OFD Sender: No OFD packet to send [05:40:33]OFD Sender: No OFD packet to send [05:40:38]OFD Sender: No OFD packet to send [05:40:43]OFD Sender: No OFD packet to send [05:40:48]OFD Sender: No OFD packet to send [05:40:53]OFD Sender: No OFD packet to send [05:40:58]OFD Sender: No OFD packet to send [05:41:03]OFD Sender: No OFD packet to send [05:41:08]OFD Sender: No OFD packet to send [05:41:13]OFD Sender: No OFD packet to send [05:41:18]OFD Sender: No OFD packet to send [05:41:23]OFD Sender: No OFD packet to send [05:41:28]OFD Sender: No OFD packet to send [05:41:33]OFD Sender: No OFD packet to send [05:41:38]OFD Sender: No OFD packet to send [05:41:43]OFD Sender: No OFD packet to send [05:41:48]OFD Sender: No OFD packet to send [05:41:53]OFD Sender: No OFD packet to send [05:41:58]OFD Sender: No OFD packet to send [05:42:03]OFD Sender: No OFD packet to send [05:42:08]OFD Sender: No OFD packet to send [05:42:13]OFD Sender: No OFD packet to send [05:42:18]OFD Sender: No OFD packet to send [05:42:23]OFD Sender: No OFD packet to send [05:42:28]OFD Sender: No OFD packet to send [05:42:33]OFD Sender: No OFD packet to send [05:42:38]OFD Sender: No OFD packet to send [05:42:43]OFD Sender: No OFD packet to send [05:42:48]OFD Sender: No OFD packet to send [05:42:53]OFD Sender: No OFD packet to send [05:42:58]OFD Sender: No OFD packet to send [05:43:03]OFD Sender: No OFD packet to send [05:43:08]OFD Sender: No OFD packet to send [05:43:13]OFD Sender: No OFD packet to send [05:43:18]OFD Sender: No OFD packet to send [05:43:23]OFD Sender: No OFD packet to send [05:43:28]OFD Sender: No OFD packet to send [05:43:33]OFD Sender: No OFD packet to send [05:43:38]OFD Sender: No OFD packet to send [05:43:43]OFD Sender: No OFD packet to send [05:43:48]OFD Sender: No OFD packet to send [05:43:53]OFD Sender: No OFD packet to send [05:43:58]OFD Sender: No OFD packet to send [05:44:03]OFD Sender: No OFD packet to send [05:44:08]OFD Sender: No OFD packet to send [05:44:13]OFD Sender: No OFD packet to send [05:44:18]OFD Sender: No OFD packet to send [05:44:23]OFD Sender: No OFD packet to send [05:44:28]OFD Sender: No OFD packet to send [05:44:33]OFD Sender: No OFD packet to send [05:44:38]OFD Sender: No OFD packet to send [05:44:43]OFD Sender: No OFD packet to send [05:44:48]OFD Sender: No OFD packet to send [05:44:53]OFD Sender: No OFD packet to send [05:44:58]OFD Sender: No OFD packet to send [05:45:03]OFD Sender: No OFD packet to send [05:45:08]OFD Sender: No OFD packet to send [05:45:13]OFD Sender: No OFD packet to send [05:45:18]OFD Sender: No OFD packet to send [05:45:23]OFD Sender: No OFD packet to send [05:45:28]OFD Sender: No OFD packet to send [05:45:33]OFD Sender: No OFD packet to send [05:45:38]OFD Sender: No OFD packet to send [05:45:43]OFD Sender: No OFD packet to send [05:45:48]OFD Sender: No OFD packet to send [05:45:53]OFD Sender: No OFD packet to send [05:45:58]OFD Sender: No OFD packet to send [05:46:03]OFD Sender: No OFD packet to send [05:46:08]OFD Sender: No OFD packet to send [05:46:13]OFD Sender: No OFD packet to send [05:46:18]OFD Sender: No OFD packet to send [05:46:23]OFD Sender: No OFD packet to send [05:46:28]OFD Sender: No OFD packet to send [05:46:33]OFD Sender: No OFD packet to send [05:46:38]OFD Sender: No OFD packet to send [05:46:43]OFD Sender: No OFD packet to send [05:46:48]OFD Sender: No OFD packet to send [05:46:53]OFD Sender: No OFD packet to send [05:46:58]OFD Sender: No OFD packet to send [05:47:03]OFD Sender: No OFD packet to send [05:47:08]OFD Sender: No OFD packet to send [05:47:13]OFD Sender: No OFD packet to send [05:47:18]OFD Sender: No OFD packet to send [05:47:23]OFD Sender: No OFD packet to send [05:47:28]OFD Sender: No OFD packet to send [05:47:33]OFD Sender: No OFD packet to send [05:47:38]OFD Sender: No OFD packet to send [05:47:43]OFD Sender: No OFD packet to send [05:47:48]OFD Sender: No OFD packet to send [05:47:53]OFD Sender: No OFD packet to send [05:47:58]OFD Sender: No OFD packet to send [05:48:03]OFD Sender: No OFD packet to send [05:48:08]OFD Sender: No OFD packet to send [05:48:13]OFD Sender: No OFD packet to send [05:48:18]OFD Sender: No OFD packet to send [05:48:23]OFD Sender: No OFD packet to send [05:48:28]OFD Sender: No OFD packet to send [05:48:33]OFD Sender: No OFD packet to send [05:48:38]OFD Sender: No OFD packet to send [05:48:43]OFD Sender: No OFD packet to send [05:48:48]OFD Sender: No OFD packet to send [05:48:53]OFD Sender: No OFD packet to send [05:48:58]OFD Sender: No OFD packet to send [05:49:03]OFD Sender: No OFD packet to send [05:49:08]OFD Sender: No OFD packet to send [05:49:13]OFD Sender: No OFD packet to send [05:49:18]OFD Sender: No OFD packet to send [05:49:23]OFD Sender: No OFD packet to send [05:49:28]OFD Sender: No OFD packet to send [05:49:33]OFD Sender: No OFD packet to send [05:49:38]OFD Sender: No OFD packet to send [05:49:43]OFD Sender: No OFD packet to send [05:49:48]OFD Sender: No OFD packet to send [05:49:53]OFD Sender: No OFD packet to send [05:49:58]OFD Sender: No OFD packet to send [05:50:03]OFD Sender: No OFD packet to send [05:50:08]OFD Sender: No OFD packet to send [05:50:13]OFD Sender: No OFD packet to send [05:50:18]OFD Sender: No OFD packet to send [05:50:23]OFD Sender: No OFD packet to send [05:50:28]OFD Sender: No OFD packet to send [05:50:33]OFD Sender: No OFD packet to send [05:50:38]OFD Sender: No OFD packet to send [05:50:43]OFD Sender: No OFD packet to send [05:50:48]OFD Sender: No OFD packet to send [05:50:53]OFD Sender: No OFD packet to send [05:50:58]OFD Sender: No OFD packet to send [05:51:03]OFD Sender: No OFD packet to send [05:51:08]OFD Sender: No OFD packet to send [05:51:13]OFD Sender: No OFD packet to send [05:51:18]OFD Sender: No OFD packet to send [05:51:23]OFD Sender: No OFD packet to send [05:51:28]OFD Sender: No OFD packet to send [05:51:33]OFD Sender: No OFD packet to send [05:51:38]OFD Sender: No OFD packet to send [05:51:43]OFD Sender: No OFD packet to send [05:51:48]OFD Sender: No OFD packet to send [05:51:53]OFD Sender: No OFD packet to send [05:51:58]OFD Sender: No OFD packet to send [05:52:03]OFD Sender: No OFD packet to send [05:52:08]OFD Sender: No OFD packet to send [05:52:13]OFD Sender: No OFD packet to send [05:52:18]OFD Sender: No OFD packet to send [05:52:23]OFD Sender: No OFD packet to send [05:52:28]OFD Sender: No OFD packet to send [05:52:33]OFD Sender: No OFD packet to send [05:52:38]OFD Sender: No OFD packet to send [05:52:43]OFD Sender: No OFD packet to send [05:52:48]OFD Sender: No OFD packet to send [05:52:53]OFD Sender: No OFD packet to send [05:52:58]OFD Sender: No OFD packet to send [05:53:03]OFD Sender: No OFD packet to send [05:53:08]OFD Sender: No OFD packet to send [05:53:13]OFD Sender: No OFD packet to send [05:53:18]OFD Sender: No OFD packet to send [05:53:23]OFD Sender: No OFD packet to send [05:53:28]OFD Sender: No OFD packet to send [05:53:33]OFD Sender: No OFD packet to send [05:53:38]OFD Sender: No OFD packet to send [05:53:43]OFD Sender: No OFD packet to send [05:53:48]OFD Sender: No OFD packet to send [05:53:53]OFD Sender: No OFD packet to send [05:53:58]OFD Sender: No OFD packet to send [05:54:03]OFD Sender: No OFD packet to send [05:54:08]OFD Sender: No OFD packet to send [05:54:13]OFD Sender: No OFD packet to send [05:54:18]OFD Sender: No OFD packet to send [05:54:23]OFD Sender: No OFD packet to send [05:54:28]OFD Sender: No OFD packet to send [05:54:33]OFD Sender: No OFD packet to send [05:54:38]OFD Sender: No OFD packet to send [05:54:43]OFD Sender: No OFD packet to send [05:54:48]OFD Sender: No OFD packet to send [05:54:53]OFD Sender: No OFD packet to send [05:54:58]OFD Sender: No OFD packet to send [05:55:03]OFD Sender: No OFD packet to send [05:55:08]OFD Sender: No OFD packet to send [05:55:13]OFD Sender: No OFD packet to send [05:55:18]OFD Sender: No OFD packet to send [05:55:23]OFD Sender: No OFD packet to send [05:55:28]OFD Sender: No OFD packet to send [05:55:33]OFD Sender: No OFD packet to send [05:55: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:09]OFD Sender: No OFD packet to send [05:58:14]OFD Sender: No OFD packet to send [05:58:19]OFD Sender: No OFD packet to send [05:58:24]OFD Sender: No OFD packet to send [05:58:29]OFD Sender: No OFD packet to send [05:58:34]OFD Sender: No OFD packet to send [05:58:39]OFD Sender: No OFD packet to send [05:58:44]OFD Sender: No OFD packet to send [05:58:49]OFD Sender: No OFD packet to send [05:58:54]OFD Sender: No OFD packet to send [05:58:59]OFD Sender: No OFD packet to send [05:59:04]OFD Sender: No OFD packet to send [05:59:09]OFD Sender: No OFD packet to send [05:59:14]OFD Sender: No OFD packet to send [05:59:19]OFD Sender: No OFD packet to send [05:59:24]OFD Sender: No OFD packet to send [05:59:29]OFD Sender: No OFD packet to send [05:59:34]OFD Sender: No OFD packet to send [05:59:39]OFD Sender: No OFD packet to send [05:59:44]OFD Sender: No OFD packet to send [05:59:49]OFD Sender: No OFD packet to send [05:59:54]OFD Sender: No OFD packet to send [05:59:59]OFD Sender: No OFD packet to send [06:00:04]OFD Sender: No OFD packet to send [06:00:09]OFD Sender: No OFD packet to send [06:00:14]OFD Sender: No OFD packet to send [06:00:19]OFD Sender: No OFD packet to send [06:00:24]OFD Sender: No OFD packet to send [06:00:29]OFD Sender: No OFD packet to send [06:00:34]OFD Sender: No OFD packet to send [06:00:39]OFD Sender: No OFD packet to send [06:00:44]OFD Sender: No OFD packet to send [06:00:49]OFD Sender: No OFD packet to send [06:00:54]OFD Sender: No OFD packet to send [06:00:59]OFD Sender: No OFD packet to send [06:01:04]OFD Sender: No OFD packet to send [06:01:09]OFD Sender: No OFD packet to send [06:01:14]OFD Sender: No OFD packet to send [06:01:19]OFD Sender: No OFD packet to send [06:01:24]OFD Sender: No OFD packet to send [06:01:29]OFD Sender: No OFD packet to send [06:01:34]OFD Sender: No OFD packet to send [06:01:39]OFD Sender: No OFD packet to send [06:01:44]OFD Sender: No OFD packet to send [06:01:49]OFD Sender: No OFD packet to send [06:01:54]OFD Sender: No OFD packet to send [06:01:59]OFD Sender: No OFD packet to send [06:02:04]OFD Sender: No OFD packet to send [06:02:09]OFD Sender: No OFD packet to send [06:02:14]OFD Sender: No OFD packet to send [06:02:19]OFD Sender: No OFD packet to send [06:02:24]OFD Sender: No OFD packet to send [06:02:29]OFD Sender: No OFD packet to send [06:02:34]OFD Sender: No OFD packet to send [06:02:39]OFD Sender: No OFD packet to send [06:02:44]OFD Sender: No OFD packet to send [06:02:49]OFD Sender: No OFD packet to send [06:02:54]OFD Sender: No OFD packet to send [06:02:59]OFD Sender: No OFD packet to send [06:03:04]OFD Sender: No OFD packet to send [06:03:09]OFD Sender: No OFD packet to send [06:03:14]OFD Sender: No OFD packet to send [06:03:19]OFD Sender: No OFD packet to send [06:03:24]OFD Sender: No OFD packet to send [06:03:29]OFD Sender: No OFD packet to send [06:03:34]OFD Sender: No OFD packet to send [06:03:39]OFD Sender: No OFD packet to send [06:03:44]OFD Sender: No OFD packet to send [06:03:49]OFD Sender: No OFD packet to send [06:03:54]OFD Sender: No OFD packet to send [06:03:59]OFD Sender: No OFD packet to send [06:04:04]OFD Sender: No OFD packet to send [06:04:09]OFD Sender: No OFD packet to send [06:04:14]OFD Sender: No OFD packet to send [06:04:19]OFD Sender: No OFD packet to send [06:04:24]OFD Sender: No OFD packet to send [06:04:29]OFD Sender: No OFD packet to send [06:04:34]OFD Sender: No OFD packet to send [06:04:39]OFD Sender: No OFD packet to send [06:04:44]OFD Sender: No OFD packet to send [06:04:49]OFD Sender: No OFD packet to send [06:04:54]OFD Sender: No OFD packet to send [06:04:59]OFD Sender: No OFD packet to send [06:05:04]OFD Sender: No OFD packet to send [06:05:09]OFD Sender: No OFD packet to send [06:05:14]OFD Sender: No OFD packet to send [06:05:19]OFD Sender: No OFD packet to send [06:05:24]OFD Sender: No OFD packet to send [06:05:29]OFD Sender: No OFD packet to send [06:05:34]OFD Sender: No OFD packet to send [06:05:39]OFD Sender: No OFD packet to send [06:05:44]OFD Sender: No OFD packet to send [06:05:49]OFD Sender: No OFD packet to send [06:05:54]OFD Sender: No OFD packet to send [06:05:59]OFD Sender: No OFD packet to send [06:06:04]OFD Sender: No OFD packet to send [06:06:09]OFD Sender: No OFD packet to send [06:06:14]OFD Sender: No OFD packet to send [06:06:19]OFD Sender: No OFD packet to send [06:06:24]OFD Sender: No OFD packet to send [06:06:29]OFD Sender: No OFD packet to send [06:06:34]OFD Sender: No OFD packet to send [06:06:39]OFD Sender: No OFD packet to send [06:06:44]OFD Sender: No OFD packet to send [06:06:49]OFD Sender: No OFD packet to send [06:06:54]OFD Sender: No OFD packet to send [06:06:59]OFD Sender: No OFD packet to send [06:07:04]OFD Sender: No OFD packet to send [06:07:09]OFD Sender: No OFD packet to send [06:07:14]OFD Sender: No OFD packet to send [06:07:19]OFD Sender: No OFD packet to send [06:07:24]OFD Sender: No OFD packet to send [06:07:29]OFD Sender: No OFD packet to send [06:07:34]OFD Sender: No OFD packet to send [06:07:39]OFD Sender: No OFD packet to send [06:07:44]OFD Sender: No OFD packet to send [06:07:49]OFD Sender: No OFD packet to send [06:07:54]OFD Sender: No OFD packet to send [06:07:59]OFD Sender: No OFD packet to send [06:08:04]OFD Sender: No OFD packet to send [06:08:09]OFD Sender: No OFD packet to send [06:08:14]OFD Sender: No OFD packet to send [06:08:19]OFD Sender: No OFD packet to send [06:08:24]OFD Sender: No OFD packet to send [06:08:29]OFD Sender: No OFD packet to send [06:08:34]OFD Sender: No OFD packet to send [06:08:39]OFD Sender: No OFD packet to send [06:08:44]OFD Sender: No OFD packet to send [06:08:49]OFD Sender: No OFD packet to send [06:08:54]OFD Sender: No OFD packet to send [06:08:59]OFD Sender: No OFD packet to send [06:09:04]OFD Sender: No OFD packet to send [06:09:09]OFD Sender: No OFD packet to send [06:09:14]OFD Sender: No OFD packet to send [06:09:19]OFD Sender: No OFD packet to send [06:09:24]OFD Sender: No OFD packet to send [06:09:29]OFD Sender: No OFD packet to send [06:09:34]OFD Sender: No OFD packet to send [06:09:39]OFD Sender: No OFD packet to send [06:09:44]OFD Sender: No OFD packet to send [06:09:49]OFD Sender: No OFD packet to send [06:09:54]OFD Sender: No OFD packet to send [06:09:59]OFD Sender: No OFD packet to send [06:10:04]OFD Sender: No OFD packet to send [06:10:09]OFD Sender: No OFD packet to send [06:10:14]OFD Sender: No OFD packet to send [06:10:19]OFD Sender: No OFD packet to send [06:10:24]OFD Sender: No OFD packet to send [06:10:29]OFD Sender: No OFD packet to send [06:10:34]OFD Sender: No OFD packet to send [06:10:39]OFD Sender: No OFD packet to send [06:10:44]OFD Sender: No OFD packet to send [06:10:49]OFD Sender: No OFD packet to send [06:10:54]OFD Sender: No OFD packet to send [06:10:59]OFD Sender: No OFD packet to send [06:11:04]OFD Sender: No OFD packet to send [06:11:09]OFD Sender: No OFD packet to send [06:11:14]OFD Sender: No OFD packet to send [06:11:19]OFD Sender: No OFD packet to send [06:11:24]OFD Sender: No OFD packet to send [06:11:29]OFD Sender: No OFD packet to send [06:11:34]OFD Sender: No OFD packet to send [06:11:39]OFD Sender: No OFD packet to send [06:11:44]OFD Sender: No OFD packet to send [06:11:49]OFD Sender: No OFD packet to send [06:11:54]OFD Sender: No OFD packet to send [06:11:59]OFD Sender: No OFD packet to send [06:12:04]OFD Sender: No OFD packet to send [06:12:09]OFD Sender: No OFD packet to send [06:12:14]OFD Sender: No OFD packet to send [06:12:19]OFD Sender: No OFD packet to send [06:12:24]OFD Sender: No OFD packet to send [06:12:29]OFD Sender: No OFD packet to send [06:12:34]OFD Sender: No OFD packet to send [06:12:39]OFD Sender: No OFD packet to send [06:12:44]OFD Sender: No OFD packet to send [06:12:49]OFD Sender: No OFD packet to send [06:12:54]OFD Sender: No OFD packet to send [06:12:59]OFD Sender: No OFD packet to send [06:13:04]OFD Sender: No OFD packet to send [06:13:09]OFD Sender: No OFD packet to send [06:13:14]OFD Sender: No OFD packet to send [06:13:19]OFD Sender: No OFD packet to send [06:13:24]OFD Sender: No OFD packet to send [06:13:29]OFD Sender: No OFD packet to send [06:13:34]OFD Sender: No OFD packet to send [06:13:39]OFD Sender: No OFD packet to send [06:13:44]OFD Sender: No OFD packet to send [06:13:49]OFD Sender: No OFD packet to send [06:13:54]OFD Sender: No OFD packet to send [06:13:59]OFD Sender: No OFD packet to send [06:14:04]OFD Sender: No OFD packet to send [06:14:09]OFD Sender: No OFD packet to send [06:14:14]OFD Sender: No OFD packet to send [06:14:19]OFD Sender: No OFD packet to send [06:14:24]OFD Sender: No OFD packet to send [06:14:29]OFD Sender: No OFD packet to send [06:14:34]OFD Sender: No OFD packet to send [06:14:39]OFD Sender: No OFD packet to send [06:14:44]OFD Sender: No OFD packet to send [06:14:49]OFD Sender: No OFD packet to send [06:14:54]OFD Sender: No OFD packet to send [06:14:59]OFD Sender: No OFD packet to send [06:15:04]OFD Sender: No OFD packet to send [06:15:09]OFD Sender: No OFD packet to send [06:15:14]OFD Sender: No OFD packet to send [06:15:19]OFD Sender: No OFD packet to send [06:15:24]OFD Sender: No OFD packet to send [06:15:29]OFD Sender: No OFD packet to send [06:15:34]OFD Sender: No OFD packet to send [06:15:39]OFD Sender: No OFD packet to send [06:15:44]OFD Sender: No OFD packet to send [06:15:49]OFD Sender: No OFD packet to send [06:15:54]OFD Sender: No OFD packet to send [06:15:59]OFD Sender: No OFD packet to send [06:16:04]OFD Sender: No OFD packet to send [06:16:09]OFD Sender: No OFD packet to send [06:16:14]OFD Sender: No OFD packet to send [06:16:19]OFD Sender: No OFD packet to send [06:16:24]OFD Sender: No OFD packet to send [06:16:29]OFD Sender: No OFD packet to send [06:16:34]OFD Sender: No OFD packet to send [06:16:39]OFD Sender: No OFD packet to send [06:16:44]OFD Sender: No OFD packet to send [06:16:49]OFD Sender: No OFD packet to send [06:16: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:30]OFD Sender: No OFD packet to send [06:19:35]OFD Sender: No OFD packet to send [06:19:40]OFD Sender: No OFD packet to send [06:19:45]OFD Sender: No OFD packet to send [06:19:50]OFD Sender: No OFD packet to send [06:19:55]OFD Sender: No OFD packet to send [06:20:00]OFD Sender: No OFD packet to send [06:20:05]OFD Sender: No OFD packet to send [06:20:10]OFD Sender: No OFD packet to send [06:20:15]OFD Sender: No OFD packet to send [06:20:20]OFD Sender: No OFD packet to send [06:20:25]OFD Sender: No OFD packet to send [06:20:30]OFD Sender: No OFD packet to send [06:20:35]OFD Sender: No OFD packet to send [06:20:40]OFD Sender: No OFD packet to send [06:20:45]OFD Sender: No OFD packet to send [06:20:50]OFD Sender: No OFD packet to send [06:20:55]OFD Sender: No OFD packet to send [06:21:00]OFD Sender: No OFD packet to send [06:21:05]OFD Sender: No OFD packet to send [06:21:10]OFD Sender: No OFD packet to send [06:21:15]OFD Sender: No OFD packet to send [06:21:20]OFD Sender: No OFD packet to send [06:21:25]OFD Sender: No OFD packet to send [06:21:30]OFD Sender: No OFD packet to send [06:21:35]OFD Sender: No OFD packet to send [06:21:40]OFD Sender: No OFD packet to send [06:21:45]OFD Sender: No OFD packet to send [06:21:50]OFD Sender: No OFD packet to send [06:21:55]OFD Sender: No OFD packet to send [06:22:00]OFD Sender: No OFD packet to send [06:22:05]OFD Sender: No OFD packet to send [06:22:10]OFD Sender: No OFD packet to send [06:22:15]OFD Sender: No OFD packet to send [06:22:20]OFD Sender: No OFD packet to send [06:22:25]OFD Sender: No OFD packet to send [06:22:30]OFD Sender: No OFD packet to send [06:22:35]OFD Sender: No OFD packet to send [06:22:40]OFD Sender: No OFD packet to send [06:22:45]OFD Sender: No OFD packet to send [06:22:50]OFD Sender: No OFD packet to send [06:22:55]OFD Sender: No OFD packet to send [06:23:00]OFD Sender: No OFD packet to send [06:23:05]OFD Sender: No OFD packet to send [06:23:10]OFD Sender: No OFD packet to send [06:23:15]OFD Sender: No OFD packet to send [06:23:20]OFD Sender: No OFD packet to send [06:23:25]OFD Sender: No OFD packet to send [06:23:30]OFD Sender: No OFD packet to send [06:23:35]OFD Sender: No OFD packet to send [06:23:40]OFD Sender: No OFD packet to send [06:23:45]OFD Sender: No OFD packet to send [06:23:50]OFD Sender: No OFD packet to send [06:23:55]OFD Sender: No OFD packet to send [06:24:00]OFD Sender: No OFD packet to send [06:24:05]OFD Sender: No OFD packet to send [06:24:10]OFD Sender: No OFD packet to send [06:24:15]OFD Sender: No OFD packet to send [06:24:20]OFD Sender: No OFD packet to send [06:24:25]OFD Sender: No OFD packet to send [06:24:30]OFD Sender: No OFD packet to send [06:24:35]OFD Sender: No OFD packet to send [06:24:40]OFD Sender: No OFD packet to send [06:24:45]OFD Sender: No OFD packet to send [06:24:50]OFD Sender: No OFD packet to send [06:24:55]OFD Sender: No OFD packet to send [06:25:00]OFD Sender: No OFD packet to send [06:25:05]OFD Sender: No OFD packet to send [06:25:10]OFD Sender: No OFD packet to send [06:25:15]OFD Sender: No OFD packet to send [06:25:20]OFD Sender: No OFD packet to send [06:25:25]OFD Sender: No OFD packet to send [06:25:30]OFD Sender: No OFD packet to send [06:25:35]OFD Sender: No OFD packet to send [06:25:40]OFD Sender: No OFD packet to send [06:25:45]OFD Sender: No OFD packet to send [06:25:50]OFD Sender: No OFD packet to send [06:25:55]OFD Sender: No OFD packet to send [06:26:00]OFD Sender: No OFD packet to send [06:26:05]OFD Sender: No OFD packet to send [06:26:10]OFD Sender: No OFD packet to send [06:26:15]OFD Sender: No OFD packet to send [06:26:20]OFD Sender: No OFD packet to send [06:26:25]OFD Sender: No OFD packet to send [06:26:30]OFD Sender: No OFD packet to send [06:26:35]OFD Sender: No OFD packet to send [06:26:40]OFD Sender: No OFD packet to send [06:26:45]OFD Sender: No OFD packet to send [06:26:50]OFD Sender: No OFD packet to send [06:26:55]OFD Sender: No OFD packet to send [06:27:00]OFD Sender: No OFD packet to send [06:27:05]OFD Sender: No OFD packet to send [06:27:10]OFD Sender: No OFD packet to send [06:27:15]OFD Sender: No OFD packet to send [06:27:20]OFD Sender: No OFD packet to send [06:27:25]OFD Sender: No OFD packet to send [06:27:30]OFD Sender: No OFD packet to send [06:27:35]OFD Sender: No OFD packet to send [06:27:40]OFD Sender: No OFD packet to send [06:27:45]OFD Sender: No OFD packet to send [06:27:50]OFD Sender: No OFD packet to send [06:27:55]OFD Sender: No OFD packet to send [06:28:00]OFD Sender: No OFD packet to send [06:28:05]OFD Sender: No OFD packet to send [06:28:10]OFD Sender: No OFD packet to send [06:28:15]OFD Sender: No OFD packet to send [06:28:20]OFD Sender: No OFD packet to send [06:28:25]OFD Sender: No OFD packet to send [06:28:30]OFD Sender: No OFD packet to send [06:28:35]OFD Sender: No OFD packet to send [06:28:40]OFD Sender: No OFD packet to send [06:28:45]OFD Sender: No OFD packet to send [06:28:50]OFD Sender: No OFD packet to send [06:28:55]OFD Sender: No OFD packet to send [06:29:00]OFD Sender: No OFD packet to send [06:29:05]OFD Sender: No OFD packet to send [06:29:10]OFD Sender: No OFD packet to send [06:29:15]OFD Sender: No OFD packet to send [06:29:20]OFD Sender: No OFD packet to send [06:29:25]OFD Sender: No OFD packet to send [06:29:30]OFD Sender: No OFD packet to send [06:29:35]OFD Sender: No OFD packet to send [06:29:40]OFD Sender: No OFD packet to send [06:29:45]OFD Sender: No OFD packet to send [06:29:50]OFD Sender: No OFD packet to send [06:29:55]OFD Sender: No OFD packet to send [06:30:00]OFD Sender: No OFD packet to send [06:30:05]OFD Sender: No OFD packet to send [06:30:10]OFD Sender: No OFD packet to send [06:30:15]OFD Sender: No OFD packet to send [06:30:20]OFD Sender: No OFD packet to send [06:30:25]OFD Sender: No OFD packet to send [06:30:30]OFD Sender: No OFD packet to send [06:30:35]OFD Sender: No OFD packet to send [06:30:40]OFD Sender: No OFD packet to send [06:30:45]OFD Sender: No OFD packet to send [06:30:50]OFD Sender: No OFD packet to send [06:30:55]OFD Sender: No OFD packet to send [06:31:00]OFD Sender: No OFD packet to send [06:31:05]OFD Sender: No OFD packet to send [06:31:10]OFD Sender: No OFD packet to send [06:31:15]OFD Sender: No OFD packet to send [06:31:20]OFD Sender: No OFD packet to send [06:31:25]OFD Sender: No OFD packet to send [06:31:30]OFD Sender: No OFD packet to send [06:31:35]OFD Sender: No OFD packet to send [06:31:40]OFD Sender: No OFD packet to send [06:31:45]OFD Sender: No OFD packet to send [06:31:50]OFD Sender: No OFD packet to send [06:31:55]OFD Sender: No OFD packet to send [06:32:00]OFD Sender: No OFD packet to send [06:32:05]OFD Sender: No OFD packet to send [06:32:10]OFD Sender: No OFD packet to send [06:32:15]OFD Sender: No OFD packet to send [06:32:20]OFD Sender: No OFD packet to send [06:32:25]OFD Sender: No OFD packet to send [06:32:30]OFD Sender: No OFD packet to send [06:32:35]OFD Sender: No OFD packet to send [06:32:40]OFD Sender: No OFD packet to send [06:32:45]OFD Sender: No OFD packet to send [06:32:50]OFD Sender: No OFD packet to send [06:32:55]OFD Sender: No OFD packet to send [06:33:00]OFD Sender: No OFD packet to send [06:33:05]OFD Sender: No OFD packet to send [06:33:10]OFD Sender: No OFD packet to send [06:33:15]OFD Sender: No OFD packet to send [06:33:20]OFD Sender: No OFD packet to send [06:33:25]OFD Sender: No OFD packet to send [06:33:30]OFD Sender: No OFD packet to send [06:33:35]OFD Sender: No OFD packet to send [06:33:40]OFD Sender: No OFD packet to send [06:33:45]OFD Sender: No OFD packet to send [06:33:50]OFD Sender: No OFD packet to send [06:33:55]OFD Sender: No OFD packet to send [06:34:00]OFD Sender: No OFD packet to send [06:34:05]accept exits with 7 [06:34:05]New connection [06:34:05]New thread 3066641764 created [06:34:05]Thread 3066498404 joined [06:34:05]Waiting for new connection... [06:34:05] Sock 7.Parse request [06:34:05]Sock 7.Check first char [06:34:05]Sock 7.First char is OK [06:34:05]request: POST /json_proto HTTP/1.0 [06:34:05]Method: POST [06:34:05]URL: /json_proto [06:34:05]Method is POST - this is cgi request [06:34:05]url: /json_proto [06:34:05]query_string will be loaded in cgi processing [06:34:05]execute_cgi json_proto POST (null) [06:34:05]execute_cgi path=json_proto method=POST [06:34:05]POST find Content-Length [06:34:05]Host: 172.17.33.3:8080 [06:34:05]Content-Length: 770 [06:34:05]Content-Type: application/json [06:34:05] [06:34:05]POST finish read [06:34:05]Found Content-Length = 770 [06:34:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346875", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 15.560, "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: cash2u", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:34:05]execute_script... [06:34: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)346875", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 15.560, "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: cash2u", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:34:05]POST & json_proto [06:34:05]process_json_proto [06:34:05]json parsed OK: [06:34:05]protocol is kg_v1.0 [06:34:05]action value=close_receipt [06:34:05]process_action close_receipt [06:34:05]cmd_close_receipt [06:34:05]MH_GetDate [06:34:05]Write to MH i2c: F0 00 00 D9 5B 23 [06:34:05]Write i2c OK [06:34:05]MH_I2C_Read... [06:34:05]Read from MH i2c: F0 [06:34:05]MH_I2C_Read... [06:34:05]Read from MH i2c: F0 09 00 [06:34:05]MH_I2C_Read... [06:34:05]Read from MH i2c: F0 09 00 D9 5B 00 E4 D5 18 66 23 5B 8F 65 D5 [06:34:05]GetLastDocTimeStamp 1712899806 [06:34:05]current date 1712903652 [06:34:05]FM_GetShiftState [06:34:05]SAM_PROTO_GetShiftState [06:34:05]wFMCommunicate request_size=4 [06:34:05]MH_SAM_APDU [06:34:05]CAPDU: 80 13 01 00 [06:34:05]Write to MH i2c: E2 08 00 DA 5B 80 13 01 00 00 00 00 00 B2 [06:34:05]Write i2c OK [06:34:05]MH_I2C_Read... [06:34:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:34:05]Read from MH i2c: E2 [06:34:05]MH_I2C_Read... [06:34:05]Read from MH i2c: E2 0E 00 [06:34:05]MH_I2C_Read... [06:34:05]Read from MH i2c: E2 0E 00 DA 5B 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 C3 [06:34:05]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [06:34:05]wFMCommunicate OK [06:34:05]SAM_PROTO_GetShiftState done [06:34:05]FM_GetShiftState done [06:34:05]opened in 1712881416 [06:34:05]opened+sec_in_day 1712967816 [06:34:05]quantity*price = 100050 [06:34:05]sum+1 = 100052 [06:34:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 18 12.04.2024 06:34 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: cash2u ФМ: 0000000000963154 ФД: 28569 ФПД: 147266153083098 1/tax-web-control/client/api/v1/ticket?date=20240412T063412&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28569&fm=147266153083098&tin=02508201610067®Number=0000138879044617&sum=100051 [06:34:06]StoreToDocumentArchive [06:34:06]shift 113 fd 28569 [06:34:06]save to /storage/0113/doc_00028569 [06:34:06]save last doc name /storage/0113/doc_00028569 to /storage/kkm_last_doc_name [06:34:06]save OK [06:34:06]Clear old archive folders... [06:34:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:34:06]tlvbuf is 01AD1900 [06:34:06]SAM_PROTO_ClearQueue [06:34:06]wFMCommunicate request_size=4 [06:34:06]MH_SAM_APDU [06:34:06]CAPDU: 80 09 00 00 [06:34:06]Write to MH i2c: E2 08 00 E7 5B 80 09 00 00 00 00 00 00 B4 [06:34:06]Write i2c OK [06:34:06]MH_I2C_Read... [06:34:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:34:06]Read from MH i2c: E2 [06:34:06]MH_I2C_Read... [06:34:06]Read from MH i2c: E2 03 00 [06:34:06]MH_I2C_Read... [06:34:06]Read from MH i2c: E2 03 00 E7 5B 00 90 00 B6 [06:34:06]RAPDU: 90 00 [06:34:06]wFMCommunicate OK [06:34:06]SAM_PROTO_ClearQueue done [06:34:06]KKMCreateOFDPacket [06:34:06]OFDProtocolAddRootSTLVToBuf [06:34:06]FM_MakeSignedData [06:34:06]FM_MakeSignedData [06:34:06]SAM_PROTO_SignData [06:34:06]wFMCommunicate request_size=4 [06:34:06]MH_SAM_APDU [06:34:06]CAPDU: 80 0D 01 02 [06:34:06]Write to MH i2c: E2 08 00 E8 5B 80 0D 01 02 00 00 00 00 BC [06:34:06]Write i2c OK [06:34:06]MH_I2C_Read... [06:34:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:34:06]Read from MH i2c: E2 [06:34:06]MH_I2C_Read... [06:34:06]Read from MH i2c: E2 03 00 [06:34:06]MH_I2C_Read... [06:34:06]Read from MH i2c: E2 03 00 E8 5B 00 90 00 B7 [06:34:06]RAPDU: 90 00 [06:34:06]wFMCommunicate OK [06:34:06]wFMCommunicate request_size=255 [06:34:06]MH_SAM_APDU [06:34:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 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 12 00 00 00 F4 03 04 00 E4 D5 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 99 6F 00 00 35 04 06 00 85 [06:34:06]Write to MH i2c: E2 02 01 E9 5B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 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 12 00 00 00 F4 03 04 00 E4 D5 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 99 6F 00 00 35 04 06 00 85 00 00 95 [06:34:06]Write i2c OK [06:34:06]MH_I2C_Read... [06:34:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:34:06]Read from MH i2c: E2 [06:34:06]MH_I2C_Read... [06:34:06]Read from MH i2c: E2 03 00 [06:34:06]MH_I2C_Read... [06:34:06]Read from MH i2c: E2 03 00 E9 5B 00 90 00 B8 [06:34:06]RAPDU: 90 00 [06:34:06]wFMCommunicate OK [06:34:06]wFMCommunicate request_size=10 [06:34:06]MH_SAM_APDU [06:34:06]CAPDU: 80 0D 02 02 05 F0 12 BD F0 DA [06:34:06]Write to MH i2c: E2 0D 00 EA 5B 80 0D 02 02 05 00 F0 12 BD F0 DA 00 00 52 [06:34:06]Write i2c OK [06:34:06]MH_I2C_Read... [06:34:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:34:06]Read from MH i2c: E2 [06:34:06]MH_I2C_Read... [06:34:06]Read from MH i2c: E2 03 00 [06:34:06]MH_I2C_Read... [06:34:06]Read from MH i2c: E2 03 00 EA 5B 00 90 00 B9 [06:34:06]RAPDU: 90 00 [06:34:06]wFMCommunicate OK [06:34:06]wFMCommunicate request_size=4 [06:34:06]MH_SAM_APDU [06:34:06]CAPDU: 80 0D 03 02 [06:34:06]Write to MH i2c: E2 08 00 EB 5B 80 0D 03 02 00 00 00 00 C1 [06:34:06]Write i2c OK [06:34:06]MH_I2C_Read... [06:34:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:34:07]Read from MH i2c: E2 [06:34:07]MH_I2C_Read... [06:34:07]Read from MH i2c: E2 0B 00 [06:34:07]MH_I2C_Read... [06:34:07]Read from MH i2c: E2 0B 00 EB 5B 00 AA 2F 5D E3 FD 3B D4 37 90 00 1E [06:34:07]RAPDU: AA 2F 5D E3 FD 3B D4 37 90 00 [06:34:07]wFMCommunicate OK [06:34:07]SAM_PROTO_SignData done [06:34:07]FM_MakeSignedData done [06:34:07]CreateOFDProtocolMessage [06:34:07]wFMCommunicate request_size=4 [06:34:07]MH_SAM_APDU [06:34:07]CAPDU: 80 11 00 00 [06:34:07]Write to MH i2c: E2 08 00 EC 5B 80 11 00 00 00 00 00 00 C1 [06:34:07]Write i2c OK [06:34:07]MH_I2C_Read... [06:34:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:34:07]Read from MH i2c: E2 [06:34:07]MH_I2C_Read... [06:34:07]Read from MH i2c: E2 17 00 [06:34:07]MH_I2C_Read... [06:34:07]Read from MH i2c: E2 17 00 EC 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 10 [06:34:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [06:34:07]wFMCommunicate OK [06:34:07]CreateOFDProtocolMessage done [06:34:07]OFDSenderStorePacket 28569 [06:34:07]StoreOFDPacket docnum=28569 [06:34:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 F5 EB 07 01 56 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 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 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 12 00 00 00 F4 03 04 00 E4 D5 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 99 6F 00 00 35 04 06 00 85 F0 12 BD F0 DA AA 2F 5D E3 FD 3B D4 37 [06:34:07]CheckFolder [06:34:07]dirname=/storage/ofd_packets [06:34:07]CheckFolder done [06:34:07]ProducePacketName [06:34:07]name=ofd_packets/00028569 [06:34:07]NVStorageSaveData ofd_packets/00028569 [06:34:07]File name is /storage/ofd_packets/00028569 [06:34:07]Write 301 bytes [06:34:07]NVStorageSaveData done [06:34:07]OFDSenderStorePacket done [06:34:07]KKMCreateOFDPacket done [06:34:07]NVStorageSaveData kkm_last_timestamp [06:34:07]File name is /storage/kkm_last_timestamp [06:34:07]Write 4 bytes [06:34:07]NVStorageSaveData done [06:34:07]ExternCall_PrintAddStr [06:34:07]wPrintStart [06:34:07]Write to MH i2c: 01 00 00 ED 5B 48 [06:34:07]Write i2c OK [06:34:07]MH_I2C_Read... [06:34:07]Read from MH i2c: 01 [06:34:07]MH_I2C_Read... [06:34:07]Read from MH i2c: 01 07 00 [06:34:07]MH_I2C_Read... [06:34:07]Read from MH i2c: 01 07 00 ED 5B 00 00 00 00 00 FF 0F 5D [06:34:07]RasterBufferAndPrint [06:34:07]line Счет N : (1)346875 [06:34:07]line ИНН: 02508201610067 [06:34:07]line Контрольно-Кассовый Чек [06:34:07]line ПРОДАЖА [06:34:07]line ТРК (МРК, ГНК) : 32 [06:34:07]line Товар: 2710124130 [06:34:07]line Аи-92-К-5 [06:34:07]line 15.560 * 64.30 [06:34:07]line = 1000.51 [06:34:07]line НДС 12% НСП 1% [06:34:07]line > о реализуемом товаре [06:34:07]line ИТОГО: 1000.51 [06:34:07]line НСП 1% : 8.85 [06:34:07]line НДС 12% : 106.25 [06:34:07]line Наличными: 0.00 [06:34:07]line Безнал.: 1000.51 [06:34:07]line Место: АЗС № 108 "Партнер Нефть" [06:34:07]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [06:34:07]line СНО: Общий режим [06:34:07]line Чек 18 12.04.2024 06:34 [06:34:07]line Смена: 113 ФФД: 1.0 [06:34:07]line ЗНМ: 0300000027 [06:34:07]line РНМ: 0000138879044617 [06:34:07]line Версия ККМ: 001 [06:34:07]line Платежная система: cash2u [06:34:07]line ФМ: 0000000000963154 [06:34:07]line ФД: 28569 [06:34:07]line ФПД: 147266153083098 [06:34:07]line 1/tax-web-control/client/api/v1/ticket?date=20240412T063412&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28569&fm=147266153083098&tin=02508201610067®Number=0000138879044617&sum=100051 [06:34:07]OFD Sender: Processing packet 28569 [packets to send 8, broken 7] [06:34:07]ProducePacketName [06:34:07]name=ofd_packets/00028569 [06:34:07]OFD Sender: To server: pG, [06:34:07]CommunicateWithHost lk.salyk.kg:30040 [06:34:07]ConnectInit lk.salyk.kg [06:34:07]written 0, free lines is 4095 [06:34:07]Connected sock=10 [06:34:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 F5 EB 07 01 56 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 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 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 12 00 00 00 F4 03 04 00 E4 D5 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 99 6F 00 00 35 04 06 00 85 F0 12 BD F0 DA AA 2F 5D E3 FD 3B D4 37 [06:34:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 5C 56 47 00 11 CD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 99 6F 00 00 F4 03 04 00 8F 80 18 66 B6 04 01 00 00 89 F9 7F 5E 05 5F 7E FC [06:34:07]CommunicateWithHost err = 0 [06:34:07]CheckOFDResponse [06:34:07]1017 (14) - 77093643461234 [06:34:07]1041 (16) - 0000000000963154 [06:34:07]1040 (4) - 28569 [06:34:07]1012 (4) - 12.04.2024 00:30 [06:34:07]1206 (1) - 0 [06:34:07]OFD Sender: Remove packet 28569 [06:34:07]ProducePacketName [06:34:07]name=ofd_packets/00028569 [06:34:07]NVStorageDeleteData [06:34:07]Write to MH i2c: 01 00 00 15 5C 71 [06:34:07]Write i2c OK [06:34:07]MH_I2C_Read... [06:34:07]Read from MH i2c: 01 [06:34:07]MH_I2C_Read... [06:34:07]Read from MH i2c: 01 07 00 [06:34:07]MH_I2C_Read... [06:34:07]Read from MH i2c: 01 07 00 15 5C 00 00 00 00 00 F5 0C 79 [06:34:07]RasterBufferAndPrint [06:34:07]line [06:34:07]line [06:34:07]line [06:34:07]line [06:34:07]line [06:34:07]written 0, free lines is 3321 [06:34:07]MH_Cut [06:34:07]Write to MH i2c: D1 01 00 1C 5C 01 4A [06:34:07]Write i2c OK [06:34:07]MH_I2C_Read... [06:34:07]Read from MH i2c: D1 [06:34:07]MH_I2C_Read... [06:34:07]Read from MH i2c: D1 01 00 [06:34:07]MH_I2C_Read... [06:34:07]Read from MH i2c: D1 01 00 1C 5C 00 49 [06:34:07]Write to MH i2c: 01 00 00 1D 5C 79 [06:34:07]Write i2c OK [06:34:07]MH_I2C_Read... [06:34:08]OFD Sender: No OFD packet to send [06:34:08]*** Cut start [06:34:08]*** Partial cut [06:34:08]*** CUTSNS_PIN = 1 [06:34:08]*** CUTSNS_PIN = 0 [06:34:08]*** Brake cut motor [06:34:09]Read from MH i2c: 01 [06:34:09]MH_I2C_Read... [06:34:09]*** Stop cut motor [06:34:09]*** Cut end [06:34:09]Read from MH i2c: 01 07 00 [06:34:09]MH_I2C_Read... [06:34:09]Read from MH i2c: 01 07 00 1D 5C 00 00 00 00 00 FF 0F 8E [06:34:09]process_action close_receipt done [06:34:09]requested_data is exist [06:34:09]produce_requested_data [06:34:09]requested_item fm.sn is exist - process it [06:34:09]wFMCommunicate request_size=4 [06:34:09]MH_SAM_APDU [06:34:09]CAPDU: 80 11 00 00 [06:34:09]Write to MH i2c: E2 08 00 1E 5C 80 11 00 00 00 00 00 00 F4 [06:34:09]Write i2c OK [06:34:09]MH_I2C_Read... [06:34:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:34:09]Read from MH i2c: E2 [06:34:09]MH_I2C_Read... [06:34:09]Read from MH i2c: E2 17 00 [06:34:09]MH_I2C_Read... [06:34:09]Read from MH i2c: E2 17 00 1E 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 43 [06:34:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [06:34:09]wFMCommunicate OK [06:34:09]requested_item fd.num is exist - process it [06:34:09]SAM_PROTO_GetFieldsCounters [06:34:09]wFMCommunicate request_size=4 [06:34:09]MH_SAM_APDU [06:34:09]CAPDU: 80 13 00 00 [06:34:09]Write to MH i2c: E2 08 00 1F 5C 80 13 00 00 00 00 00 00 F7 [06:34:09]Write i2c OK [06:34:09]MH_I2C_Read... [06:34:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:34:09]Read from MH i2c: E2 [06:34:09]MH_I2C_Read... [06:34:09]Read from MH i2c: E2 62 00 [06:34:09]MH_I2C_Read... [06:34:09]Read from MH i2c: E2 62 00 1F 5C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 99 6F 00 00 0E 04 04 00 71 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 E4 [06:34:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 99 6F 00 00 0E 04 04 00 71 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 [06:34:09]wFMCommunicate OK [06:34:09]SAM_PROTO_GetFieldsCounters done [06:34:09]requested_item shift.num is exist - process it [06:34:09]requested_item shift.opened is exist - process it [06:34:09]req_shift_opened [06:34:09]FM_GetShiftState [06:34:09]SAM_PROTO_GetShiftState [06:34:09]wFMCommunicate request_size=4 [06:34:09]MH_SAM_APDU [06:34:09]CAPDU: 80 13 01 00 [06:34:09]Write to MH i2c: E2 08 00 20 5C 80 13 01 00 00 00 00 00 F9 [06:34:09]Write i2c OK [06:34:09]MH_I2C_Read... [06:34:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:34:09]Read from MH i2c: E2 [06:34:09]MH_I2C_Read... [06:34:09]Read from MH i2c: E2 0E 00 [06:34:09]MH_I2C_Read... [06:34:09]Read from MH i2c: E2 0E 00 20 5C 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 0A [06:34:09]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [06:34:09]wFMCommunicate OK [06:34:09]SAM_PROTO_GetShiftState done [06:34:09]FM_GetShiftState done [06:34:09]req_shift_opened done [06:34:09]requested_item shift.open_date is exist - process it [06:34:09]req_shift_open_date [06:34:09]req_shift_open_date done [06:34:09]produce_requested_data done [06:34:09]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28569,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [06:34:09]process_action_free close_receipt [06:34:09]json_value_free [06:34:09]json_value_free done [06:34:09]process_json_proto returns [06:34:09]Send response to host [06:34:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28569,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [06:34:09]free response buf [06:34:09]execute_script done [06:34:09]execute_script returns [06:34:09]free content buf [06:34:09]Sock 7.Close socket [06:34:09]Sock 7.Thread stoped [06:34:13]OFD Sender: No OFD packet to send [06:34:18]OFD Sender: No OFD packet to send [06:34:23]OFD Sender: No OFD packet to send [06:34:28]OFD Sender: No OFD packet to send [06:34:33]OFD Sender: No OFD packet to send [06:34:38]OFD Sender: No OFD packet to send [06:34:43]OFD Sender: No OFD packet to send [06:34:48]OFD Sender: No OFD packet to send [06:34:53]OFD Sender: No OFD packet to send [06:34:58]OFD Sender: No OFD packet to send [06:35:03]OFD Sender: No OFD packet to send [06:35:08]OFD Sender: No OFD packet to send [06:35:13]OFD Sender: No OFD packet to send [06:35:18]OFD Sender: No OFD packet to send [06:35:23]OFD Sender: No OFD packet to send [06:35:28]OFD Sender: No OFD packet to send [06:35:33]OFD Sender: No OFD packet to send [06:35:38]OFD Sender: No OFD packet to send [06:35:43]OFD Sender: No OFD packet to send [06:35:48]OFD Sender: No OFD packet to send [06:35:53]OFD Sender: No OFD packet to send [06:35:58]OFD Sender: No OFD packet to send [06:36:03]OFD Sender: No OFD packet to send [06:36:08]OFD Sender: No OFD packet to send [06:36:13]OFD Sender: No OFD packet to send [06:36:18]OFD Sender: No OFD packet to send [06:36:23]OFD Sender: No OFD packet to send [06:36:28]OFD Sender: No OFD packet to send [06:36:33]OFD Sender: No OFD packet to send [06:36:38]OFD Sender: No OFD packet to send [06:36:43]OFD Sender: No OFD packet to send [06:36:48]OFD Sender: No OFD packet to send [06:36:53]OFD Sender: No OFD packet to send [06:36:58]OFD Sender: No OFD packet to send [06:37:03]OFD Sender: No OFD packet to send [06:37:08]OFD Sender: No OFD packet to send [06:37:13]OFD Sender: No OFD packet to send [06:37:18]OFD Sender: No OFD packet to send [06:37:23]OFD Sender: No OFD packet to send [06:37:28]OFD Sender: No OFD packet to send [06:37:33]OFD Sender: No OFD packet to send [06:37:38]OFD Sender: No OFD packet to send [06:37:43]OFD Sender: No OFD packet to send [06:37:48]OFD Sender: No OFD packet to send [06:37:53]OFD Sender: No OFD packet to send [06:37:58]OFD Sender: No OFD packet to send [06:38:03]OFD Sender: No OFD packet to send [06:38:08]OFD Sender: No OFD packet to send [06:38:13]OFD Sender: No OFD packet to send [06:38:18]OFD Sender: No OFD packet to send [06:38:23]OFD Sender: No OFD packet to send [06:38:28]OFD Sender: No OFD packet to send [06:38:33]OFD Sender: No OFD packet to send [06:38:38]OFD Sender: No OFD packet to send [06:38:43]OFD Sender: No OFD packet to send [06:38:48]OFD Sender: No OFD packet to send [06:38:53]OFD Sender: No OFD packet to send [06:38:58]OFD Sender: No OFD packet to send [06:39:03]OFD Sender: No OFD packet to send [06:39:05]accept exits with 9 [06:39:05]New connection [06:39:05]New thread 3066498404 created [06:39:05]Thread 3066641764 joined [06:39:05]Waiting for new connection... [06:39:05] Sock 9.Parse request [06:39:05]Sock 9.Check first char [06:39:05]Sock 9.First char is OK [06:39:05]request: POST /json_proto HTTP/1.0 [06:39:05]Method: POST [06:39:05]URL: /json_proto [06:39:05]Method is POST - this is cgi request [06:39:05]url: /json_proto [06:39:05]query_string will be loaded in cgi processing [06:39:05]execute_cgi json_proto POST (null) [06:39:05]execute_cgi path=json_proto method=POST [06:39:05]POST find Content-Length [06:39:05]Host: 172.17.33.3:8080 [06:39:05]Content-Length: 674 [06:39:05]Content-Type: application/json [06:39:05] [06:39:05]POST finish read [06:39:05]Found Content-Length = 674 [06:39:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346876", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 5.530, "sum" : 400.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:39:05]execute_script... [06:39: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)346876", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 5.530, "sum" : 400.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:39:05]POST & json_proto [06:39:05]process_json_proto [06:39:05]json parsed OK: [06:39:05]protocol is kg_v1.0 [06:39:05]action value=close_receipt [06:39:05]process_action close_receipt [06:39:05]cmd_close_receipt [06:39:05]MH_GetDate [06:39:05]Write to MH i2c: F0 00 00 21 5C 6C [06:39:05]Write i2c OK [06:39:05]MH_I2C_Read... [06:39:05]Read from MH i2c: F0 [06:39:05]MH_I2C_Read... [06:39:05]Read from MH i2c: F0 09 00 [06:39:05]MH_I2C_Read... [06:39:05]Read from MH i2c: F0 09 00 21 5C 00 0F D7 18 66 23 5B 8F 65 4B [06:39:05]GetLastDocTimeStamp 1712903652 [06:39:05]current date 1712903951 [06:39:05]FM_GetShiftState [06:39:05]SAM_PROTO_GetShiftState [06:39:05]wFMCommunicate request_size=4 [06:39:05]MH_SAM_APDU [06:39:05]CAPDU: 80 13 01 00 [06:39:05]Write to MH i2c: E2 08 00 22 5C 80 13 01 00 00 00 00 00 FB [06:39:05]Write i2c OK [06:39:05]MH_I2C_Read... [06:39:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:39:05]Read from MH i2c: E2 [06:39:05]MH_I2C_Read... [06:39:05]Read from MH i2c: E2 0E 00 [06:39:05]MH_I2C_Read... [06:39:05]Read from MH i2c: E2 0E 00 22 5C 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 0C [06:39:05]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [06:39:05]wFMCommunicate OK [06:39:05]SAM_PROTO_GetShiftState done [06:39:05]FM_GetShiftState done [06:39:05]opened in 1712881416 [06:39:05]opened+sec_in_day 1712967816 [06:39:05]quantity*price = 40037 [06:39:05]sum+1 = 40038 [06:39:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 19 12.04.2024 06:39 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28570 ФПД: 180799867763447 1/tax-web-control/client/api/v1/ticket?date=20240412T063911&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28570&fm=180799867763447&tin=02508201610067®Number=0000138879044617&sum=40000 [06:39:06]StoreToDocumentArchive [06:39:06]shift 113 fd 28570 [06:39:06]save to /storage/0113/doc_00028570 [06:39:06]save last doc name /storage/0113/doc_00028570 to /storage/kkm_last_doc_name [06:39:06]save OK [06:39:06]Clear old archive folders... [06:39:06]ProcessDocumentItem done err = 0, tmpTLVsize=248 [06:39:06]tlvbuf is 01BC2D80 [06:39:06]SAM_PROTO_ClearQueue [06:39:06]wFMCommunicate request_size=4 [06:39:06]MH_SAM_APDU [06:39:06]CAPDU: 80 09 00 00 [06:39:06]Write to MH i2c: E2 08 00 2F 5C 80 09 00 00 00 00 00 00 FD [06:39:06]Write i2c OK [06:39:06]MH_I2C_Read... [06:39:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:39:06]Read from MH i2c: E2 [06:39:06]MH_I2C_Read... [06:39:06]Read from MH i2c: E2 03 00 [06:39:06]MH_I2C_Read... [06:39:06]Read from MH i2c: E2 03 00 2F 5C 00 90 00 FF [06:39:06]RAPDU: 90 00 [06:39:06]wFMCommunicate OK [06:39:06]SAM_PROTO_ClearQueue done [06:39:06]KKMCreateOFDPacket [06:39:06]OFDProtocolAddRootSTLVToBuf [06:39:06]FM_MakeSignedData [06:39:06]FM_MakeSignedData [06:39:06]SAM_PROTO_SignData [06:39:06]wFMCommunicate request_size=4 [06:39:06]MH_SAM_APDU [06:39:06]CAPDU: 80 0D 01 02 [06:39:06]Write to MH i2c: E2 08 00 30 5C 80 0D 01 02 00 00 00 00 05 [06:39:06]Write i2c OK [06:39:06]MH_I2C_Read... [06:39:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:39:06]Read from MH i2c: E2 [06:39:06]MH_I2C_Read... [06:39:06]Read from MH i2c: E2 03 00 [06:39:06]MH_I2C_Read... [06:39:06]Read from MH i2c: E2 03 00 30 5C 00 90 00 00 [06:39:06]RAPDU: 90 00 [06:39:06]wFMCommunicate OK [06:39:06]wFMCommunicate request_size=255 [06:39:06]MH_SAM_APDU [06:39: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 35 FF 03 08 00 03 9A 15 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 65 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 0F D7 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9A 6F 00 00 35 04 06 00 A4 6F BF E4 [06:39:06]Write to MH i2c: E2 02 01 31 5C 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 35 FF 03 08 00 03 9A 15 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 65 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 0F D7 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9A 6F 00 00 35 04 06 00 A4 6F BF E4 00 00 01 [06:39:06]Write i2c OK [06:39:06]MH_I2C_Read... [06:39:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:39:06]Read from MH i2c: E2 [06:39:06]MH_I2C_Read... [06:39:06]Read from MH i2c: E2 03 00 [06:39:06]MH_I2C_Read... [06:39:06]Read from MH i2c: E2 03 00 31 5C 00 90 00 01 [06:39:06]RAPDU: 90 00 [06:39:06]wFMCommunicate OK [06:39:06]wFMCommunicate request_size=7 [06:39:06]MH_SAM_APDU [06:39:06]CAPDU: 80 0D 02 02 02 BA F7 [06:39:06]Write to MH i2c: E2 0A 00 32 5C 80 0D 02 02 02 00 BA F7 00 00 BD [06:39:06]Write i2c OK [06:39:06]MH_I2C_Read... [06:39:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:39:06]Read from MH i2c: E2 [06:39:06]MH_I2C_Read... [06:39:06]Read from MH i2c: E2 03 00 [06:39:06]MH_I2C_Read... [06:39:06]Read from MH i2c: E2 03 00 32 5C 00 90 00 02 [06:39:06]RAPDU: 90 00 [06:39:06]wFMCommunicate OK [06:39:06]wFMCommunicate request_size=4 [06:39:06]MH_SAM_APDU [06:39:06]CAPDU: 80 0D 03 02 [06:39:06]Write to MH i2c: E2 08 00 33 5C 80 0D 03 02 00 00 00 00 0A [06:39:06]Write i2c OK [06:39:06]MH_I2C_Read... [06:39:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:39:06]Read from MH i2c: E2 [06:39:06]MH_I2C_Read... [06:39:06]Read from MH i2c: E2 0B 00 [06:39:06]MH_I2C_Read... [06:39:06]Read from MH i2c: E2 0B 00 33 5C 00 50 EF 86 9D B0 D3 20 24 90 00 34 [06:39:06]RAPDU: 50 EF 86 9D B0 D3 20 24 90 00 [06:39:06]wFMCommunicate OK [06:39:06]SAM_PROTO_SignData done [06:39:06]FM_MakeSignedData done [06:39:06]CreateOFDProtocolMessage [06:39:06]wFMCommunicate request_size=4 [06:39:06]MH_SAM_APDU [06:39:06]CAPDU: 80 11 00 00 [06:39:06]Write to MH i2c: E2 08 00 34 5C 80 11 00 00 00 00 00 00 0A [06:39:06]Write i2c OK [06:39:06]MH_I2C_Read... [06:39:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:39:06]Read from MH i2c: E2 [06:39:06]MH_I2C_Read... [06:39:06]Read from MH i2c: E2 17 00 [06:39:06]MH_I2C_Read... [06:39:06]Read from MH i2c: E2 17 00 34 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 59 [06:39:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [06:39:06]wFMCommunicate OK [06:39:06]CreateOFDProtocolMessage done [06:39:06]OFDSenderStorePacket 28570 [06:39:06]StoreOFDPacket docnum=28570 [06:39:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 8D ED 04 01 82 2E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9A 15 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 65 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 0F D7 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9A 6F 00 00 35 04 06 00 A4 6F BF E4 BA F7 50 EF 86 9D B0 D3 20 24 [06:39:06]CheckFolder [06:39:06]dirname=/storage/ofd_packets [06:39:06]CheckFolder done [06:39:06]ProducePacketName [06:39:06]name=ofd_packets/00028570 [06:39:06]NVStorageSaveData ofd_packets/00028570 [06:39:06]File name is /storage/ofd_packets/00028570 [06:39:06]Write 298 bytes [06:39:06]NVStorageSaveData done [06:39:06]OFDSenderStorePacket done [06:39:06]KKMCreateOFDPacket done [06:39:06]NVStorageSaveData kkm_last_timestamp [06:39:06]File name is /storage/kkm_last_timestamp [06:39:06]Write 4 bytes [06:39:06]NVStorageSaveData done [06:39:06]ExternCall_PrintAddStr [06:39:06]wPrintStart [06:39:06]Write to MH i2c: 01 00 00 35 5C 91 [06:39:06]Write i2c OK [06:39:06]MH_I2C_Read... [06:39:06]Read from MH i2c: 01 [06:39:06]MH_I2C_Read... [06:39:06]Read from MH i2c: 01 07 00 [06:39:06]MH_I2C_Read... [06:39:06]Read from MH i2c: 01 07 00 35 5C 00 00 00 00 00 FF 0F A6 [06:39:06]RasterBufferAndPrint [06:39:06]line Счет N : (1)346876 [06:39:06]line ИНН: 02508201610067 [06:39:06]line Контрольно-Кассовый Чек [06:39:06]line ПРОДАЖА [06:39:06]line ТРК (МРК, ГНК) : 21 [06:39:06]line Товар: 2710194210 [06:39:06]line ДТ-К-5 [06:39:06]line 5.530 * 72.40 [06:39:06]line = 400.37 [06:39:06]line НДС 12% НСП 1% [06:39:06]line > о реализуемом товаре [06:39:06]line ОКРУГЛЕНИЕ: -0.37 [06:39:06]line ИТОГО: 400.00 [06:39:06]line Внесено: 400.00 [06:39:06]line СДАЧА: 0.00 [06:39:06]line НСП 1% : 3.54 [06:39:06]line НДС 12% : 42.52 [06:39:06]line Наличными: 400.00 [06:39:06]line Безнал.: 0.00 [06:39:06]line Место: АЗС № 108 "Партнер Нефть" [06:39:06]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [06:39:06]line СНО: Общий режим [06:39:06]line Чек 19 12.04.2024 06:39 [06:39:06]line Смена: 113 ФФД: 1.0 [06:39:06]line ЗНМ: 0300000027 [06:39:06]line РНМ: 0000138879044617 [06:39:06]line Версия ККМ: 001 [06:39:06]line ФМ: 0000000000963154 [06:39:06]line ФД: 28570 [06:39:06]line ФПД: 180799867763447 [06:39:07]line 1/tax-web-control/client/api/v1/ticket?date=20240412T063911&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28570&fm=180799867763447&tin=02508201610067®Number=0000138879044617&sum=40000 [06:39:07]OFD Sender: Processing packet 28570 [packets to send 8, broken 7] [06:39:07]ProducePacketName [06:39:07]name=ofd_packets/00028570 [06:39:07]OFD Sender: To server: pG, [06:39:07]CommunicateWithHost lk.salyk.kg:30040 [06:39:07]ConnectInit lk.salyk.kg [06:39:07]written 0, free lines is 4095 [06:39:07]Connected sock=7 [06:39:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 8D ED 04 01 82 2E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9A 15 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 65 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 0F D7 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9A 6F 00 00 35 04 06 00 A4 6F BF E4 BA F7 50 EF 86 9D B0 D3 20 24 [06:39:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 48 DD 47 00 AF 8B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9A 6F 00 00 F4 03 04 00 BA 81 18 66 B6 04 01 00 00 75 62 70 6A 47 D3 6B A3 [06:39:07]CommunicateWithHost err = 0 [06:39:07]CheckOFDResponse [06:39:07]1017 (14) - 77093643461234 [06:39:07]1041 (16) - 0000000000963154 [06:39:07]1040 (4) - 28570 [06:39:07]1012 (4) - 12.04.2024 00:35 [06:39:07]1206 (1) - 0 [06:39:07]OFD Sender: Remove packet 28570 [06:39:07]ProducePacketName [06:39:07]name=ofd_packets/00028570 [06:39:07]NVStorageDeleteData [06:39:07]Write to MH i2c: 01 00 00 5F 5C BB [06:39:07]Write i2c OK [06:39:07]MH_I2C_Read... [06:39:07]Read from MH i2c: 01 [06:39:07]MH_I2C_Read... [06:39:07]Read from MH i2c: 01 07 00 [06:39:07]MH_I2C_Read... [06:39:07]Read from MH i2c: 01 07 00 5F 5C 00 00 00 00 00 C1 0C 8F [06:39:07]RasterBufferAndPrint [06:39:07]line [06:39:07]line [06:39:07]line [06:39:07]line [06:39:07]line [06:39:07]written 0, free lines is 3271 [06:39:07]MH_Cut [06:39:07]Write to MH i2c: D1 01 00 66 5C 01 94 [06:39:07]Write i2c OK [06:39:07]MH_I2C_Read... [06:39:07]Read from MH i2c: D1 [06:39:07]MH_I2C_Read... [06:39:07]Read from MH i2c: D1 01 00 [06:39:07]MH_I2C_Read... [06:39:07]Read from MH i2c: D1 01 00 66 5C 00 93 [06:39:07]Write to MH i2c: 01 00 00 67 5C C3 [06:39:07]Write i2c OK [06:39:07]MH_I2C_Read... [06:39:07]OFD Sender: No OFD packet to send [06:39:08]*** Cut start [06:39:08]*** Partial cut [06:39:08]*** CUTSNS_PIN = 1 [06:39:08]*** CUTSNS_PIN = 0 [06:39:08]*** Brake cut motor [06:39:08]Read from MH i2c: 01 [06:39:08]MH_I2C_Read... [06:39:08]*** Stop cut motor [06:39:08]*** Cut end [06:39:08]Read from MH i2c: 01 07 00 [06:39:08]MH_I2C_Read... [06:39:08]Read from MH i2c: 01 07 00 67 5C 00 00 00 00 00 FF 0F D8 [06:39:08]process_action close_receipt done [06:39:08]requested_data is exist [06:39:08]produce_requested_data [06:39:08]requested_item fm.sn is exist - process it [06:39:08]wFMCommunicate request_size=4 [06:39:08]MH_SAM_APDU [06:39:08]CAPDU: 80 11 00 00 [06:39:08]Write to MH i2c: E2 08 00 68 5C 80 11 00 00 00 00 00 00 3E [06:39:08]Write i2c OK [06:39:08]MH_I2C_Read... [06:39:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:39:09]Read from MH i2c: E2 [06:39:09]MH_I2C_Read... [06:39:09]Read from MH i2c: E2 17 00 [06:39:09]MH_I2C_Read... [06:39:09]Read from MH i2c: E2 17 00 68 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 8D [06:39:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [06:39:09]wFMCommunicate OK [06:39:09]requested_item fd.num is exist - process it [06:39:09]SAM_PROTO_GetFieldsCounters [06:39:09]wFMCommunicate request_size=4 [06:39:09]MH_SAM_APDU [06:39:09]CAPDU: 80 13 00 00 [06:39:09]Write to MH i2c: E2 08 00 69 5C 80 13 00 00 00 00 00 00 41 [06:39:09]Write i2c OK [06:39:09]MH_I2C_Read... [06:39:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:39:09]Read from MH i2c: E2 [06:39:09]MH_I2C_Read... [06:39:09]Read from MH i2c: E2 62 00 [06:39:09]MH_I2C_Read... [06:39:09]Read from MH i2c: E2 62 00 69 5C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 9A 6F 00 00 0E 04 04 00 71 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 32 [06:39:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 9A 6F 00 00 0E 04 04 00 71 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 [06:39:09]wFMCommunicate OK [06:39:09]SAM_PROTO_GetFieldsCounters done [06:39:09]requested_item shift.num is exist - process it [06:39:09]requested_item shift.opened is exist - process it [06:39:09]req_shift_opened [06:39:09]FM_GetShiftState [06:39:09]SAM_PROTO_GetShiftState [06:39:09]wFMCommunicate request_size=4 [06:39:09]MH_SAM_APDU [06:39:09]CAPDU: 80 13 01 00 [06:39:09]Write to MH i2c: E2 08 00 6A 5C 80 13 01 00 00 00 00 00 43 [06:39:09]Write i2c OK [06:39:09]MH_I2C_Read... [06:39:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:39:09]Read from MH i2c: E2 [06:39:09]MH_I2C_Read... [06:39:09]Read from MH i2c: E2 0E 00 [06:39:09]MH_I2C_Read... [06:39:09]Read from MH i2c: E2 0E 00 6A 5C 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 54 [06:39:09]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [06:39:09]wFMCommunicate OK [06:39:09]SAM_PROTO_GetShiftState done [06:39:09]FM_GetShiftState done [06:39:09]req_shift_opened done [06:39:09]requested_item shift.open_date is exist - process it [06:39:09]req_shift_open_date [06:39:09]req_shift_open_date done [06:39:09]produce_requested_data done [06:39:09]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28570,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [06:39:09]process_action_free close_receipt [06:39:09]json_value_free [06:39:09]json_value_free done [06:39:09]process_json_proto returns [06:39:09]Send response to host [06:39:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28570,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [06:39:09]free response buf [06:39:09]execute_script done [06:39:09]execute_script returns [06:39:09]free content buf [06:39:09]Sock 9.Close socket [06:39:09]Sock 9.Thread stoped [06:39:12]OFD Sender: No OFD packet to send [06:39:17]OFD Sender: No OFD packet to send [06:39:22]OFD Sender: No OFD packet to send [06:39:27]OFD Sender: No OFD packet to send [06:39:32]OFD Sender: No OFD packet to send [06:39:37]OFD Sender: No OFD packet to send [06:39:42]OFD Sender: No OFD packet to send [06:39:47]OFD Sender: No OFD packet to send [06:39:52]OFD Sender: No OFD packet to send [06:39:57]OFD Sender: No OFD packet to send [06:40:02]OFD Sender: No OFD packet to send [06:40:07]OFD Sender: No OFD packet to send [06:40:12]OFD Sender: No OFD packet to send [06:40:17]OFD Sender: No OFD packet to send [06:40:22]OFD Sender: No OFD packet to send [06:40:27]OFD Sender: No OFD packet to send [06:40:32]OFD Sender: No OFD packet to send [06:40:37]OFD Sender: No OFD packet to send [06:40:42]OFD Sender: No OFD packet to send [06:40:47]OFD Sender: No OFD packet to send [06:40:52]OFD Sender: No OFD packet to send [06:40:57]OFD Sender: No OFD packet to send [06:41:02]OFD Sender: No OFD packet to send [06:41:07]OFD Sender: No OFD packet to send [06:41:12]OFD Sender: No OFD packet to send [06:41:17]OFD Sender: No OFD packet to send [06:41:22]OFD Sender: No OFD packet to send [06:41:27]OFD Sender: No OFD packet to send [06:41:32]OFD Sender: No OFD packet to send [06:41:37]OFD Sender: No OFD packet to send [06:41:42]OFD Sender: No OFD packet to send [06:41:47]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:43]OFD Sender: No OFD packet to send [06:48:48]OFD Sender: No OFD packet to send [06:48:53]OFD Sender: No OFD packet to send [06:48:58]OFD Sender: No OFD packet to send [06:49:03]OFD Sender: No OFD packet to send [06:49:08]OFD Sender: No OFD packet to send [06:49:13]OFD Sender: No OFD packet to send [06:49:18]OFD Sender: No OFD packet to send [06:49:23]OFD Sender: No OFD packet to send [06:49:28]OFD Sender: No OFD packet to send [06:49:33]OFD Sender: No OFD packet to send [06:49:38]OFD Sender: No OFD packet to send [06:49:43]OFD Sender: No OFD packet to send [06:49:48]OFD Sender: No OFD packet to send [06:49:53]OFD Sender: No OFD packet to send [06:49:58]OFD Sender: No OFD packet to send [06:50:03]OFD Sender: No OFD packet to send [06:50:08]OFD Sender: No OFD packet to send [06:50:13]OFD Sender: No OFD packet to send [06:50:18]OFD Sender: No OFD packet to send [06:50:23]OFD Sender: No OFD packet to send [06:50:28]OFD Sender: No OFD packet to send [06:50:33]OFD Sender: No OFD packet to send [06:50:38]OFD Sender: No OFD packet to send [06:50:43]OFD Sender: No OFD packet to send [06:50:48]OFD Sender: No OFD packet to send [06:50:53]OFD Sender: No OFD packet to send [06:50:58]OFD Sender: No OFD packet to send [06:51:03]OFD Sender: No OFD packet to send [06:51:08]OFD Sender: No OFD packet to send [06:51:13]OFD Sender: No OFD packet to send [06:51:18]OFD Sender: No OFD packet to send [06:51:23]OFD Sender: No OFD packet to send [06:51:27]accept exits with 10 [06:51:27]New connection [06:51:27]New thread 3066641764 created [06:51:27]Thread 3066498404 joined [06:51:27]Waiting for new connection... [06:51:27] Sock 10.Parse request [06:51:27]Sock 10.Check first char [06:51:27]Sock 10.First char is OK [06:51:27]request: POST /json_proto HTTP/1.0 [06:51:27]Method: POST [06:51:27]URL: /json_proto [06:51:27]Method is POST - this is cgi request [06:51:27]url: /json_proto [06:51:27]query_string will be loaded in cgi processing [06:51:27]execute_cgi json_proto POST (null) [06:51:27]execute_cgi path=json_proto method=POST [06:51:27]POST find Content-Length [06:51:27]Host: 172.17.33.3:8080 [06:51:27]Content-Length: 1212 [06:51:27]Content-Type: application/json [06:51:27] [06:51:27]POST finish read [06:51:27]Found Content-Length = 1212 [06:51:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)346877\u000A12.04.2024 06:33\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 14.000 x 64.30\u000A\u0418\u0422\u041E\u0413: 900.20\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A74589\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:51:27]execute_script... [06:51:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)346877\u000A12.04.2024 06:33\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 14.000 x 64.30\u000A\u0418\u0422\u041E\u0413: 900.20\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A74589\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:51:27]POST & json_proto [06:51:27]process_json_proto [06:51:27]json parsed OK: [06:51:27]protocol is kg_v1.0 [06:51:27]action value=print_text [06:51:27]process_action print_text [06:51:27]cmd_print_text [06:51:27]ExternCall_PrintAddStr [06:51:27]wPrintStart [06:51:27]Write to MH i2c: 01 00 00 6B 5C C7 [06:51:27]Write i2c OK [06:51:27]MH_I2C_Read... [06:51:27]Read from MH i2c: 01 [06:51:27]MH_I2C_Read... [06:51:27]Read from MH i2c: 01 07 00 [06:51:27]MH_I2C_Read... [06:51:27]Read from MH i2c: 01 07 00 6B 5C 00 00 00 00 00 FF 0F DC [06:51:27]RasterBufferAndPrint [06:51:27]line *****ТОВАРНЫЙ ЧЕК***** [06:51:27]line АЗС 108 [06:51:27]line Партнер нефть [06:51:27]line 02508201610067 [06:51:27]line Кассир : Джумагулова Н. [06:51:27]line Счет N : (1)346877 [06:51:27]line 12.04.2024 06:33 [06:51:27]line ПРОДАЖА [06:51:27]line ТРК (МРК, ГНК): 42 [06:51:27]line Вид ГСМ : 2710124130 [06:51:27]line Аи-92-К-5 [06:51:27]line 14.000 x 64.30 [06:51:27]line ИТОГ: 900.20 [06:51:27]line Тип оплаты: Талоны: Топливная Карта [06:51:27]line 74589 [06:51:27]line ______________________ [06:51:27]line (подпись) [06:51:27]written 0, free lines is 4095 [06:51:27]Write to MH i2c: 01 00 00 80 5C DC [06:51:27]Write i2c OK [06:51:27]MH_I2C_Read... [06:51:27]Read from MH i2c: 01 [06:51:27]MH_I2C_Read... [06:51:27]Read from MH i2c: 01 07 00 [06:51:27]MH_I2C_Read... [06:51:27]Read from MH i2c: 01 07 00 80 5C 00 00 00 00 00 F5 0D E5 [06:51:27]RasterBufferAndPrint [06:51:27]line [06:51:27]line [06:51:27]line [06:51:27]line [06:51:27]line [06:51:27]written 0, free lines is 3575 [06:51:27]MH_Cut [06:51:27]Write to MH i2c: D1 01 00 87 5C 01 B5 [06:51:27]Write i2c OK [06:51:27]MH_I2C_Read... [06:51:27]Read from MH i2c: D1 [06:51:27]MH_I2C_Read... [06:51:27]Read from MH i2c: D1 01 00 [06:51:27]MH_I2C_Read... [06:51:27]Read from MH i2c: D1 01 00 87 5C 00 B4 [06:51:27]Write to MH i2c: 01 00 00 88 5C E4 [06:51:27]Write i2c OK [06:51:27]MH_I2C_Read... [06:51:27]*** Cut start [06:51:27]*** Partial cut [06:51:27]*** CUTSNS_PIN = 1 [06:51:27]*** CUTSNS_PIN = 0 [06:51:28]*** Brake cut motor [06:51:28]OFD Sender: No OFD packet to send [06:51:28]Read from MH i2c: 01 [06:51:28]MH_I2C_Read... [06:51:28]Read from MH i2c: 01 07 00 [06:51:28]MH_I2C_Read... [06:51:28]*** Stop cut motor [06:51:28]*** Cut end [06:51:28]Read from MH i2c: 01 07 00 88 5C 00 00 00 00 00 FF 0F F9 [06:51:28]process_action print_text done [06:51:28]requested_data is exist [06:51:28]produce_requested_data [06:51:28]requested_item fm.sn is exist - process it [06:51:28]wFMCommunicate request_size=4 [06:51:28]MH_SAM_APDU [06:51:28]CAPDU: 80 11 00 00 [06:51:28]Write to MH i2c: E2 08 00 89 5C 80 11 00 00 00 00 00 00 5F [06:51:28]Write i2c OK [06:51:28]MH_I2C_Read... [06:51:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:51:28]Read from MH i2c: E2 [06:51:28]MH_I2C_Read... [06:51:28]Read from MH i2c: E2 17 00 [06:51:28]MH_I2C_Read... [06:51:28]Read from MH i2c: E2 17 00 89 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 AE [06:51:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [06:51:28]wFMCommunicate OK [06:51:28]requested_item fd.num is exist - process it [06:51:28]SAM_PROTO_GetFieldsCounters [06:51:28]wFMCommunicate request_size=4 [06:51:28]MH_SAM_APDU [06:51:28]CAPDU: 80 13 00 00 [06:51:28]Write to MH i2c: E2 08 00 8A 5C 80 13 00 00 00 00 00 00 62 [06:51:28]Write i2c OK [06:51:28]MH_I2C_Read... [06:51:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:51:28]Read from MH i2c: E2 [06:51:28]MH_I2C_Read... [06:51:28]Read from MH i2c: E2 62 00 [06:51:28]MH_I2C_Read... [06:51:28]Read from MH i2c: E2 62 00 8A 5C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 9A 6F 00 00 0E 04 04 00 71 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 53 [06:51:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 9A 6F 00 00 0E 04 04 00 71 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 [06:51:28]wFMCommunicate OK [06:51:28]SAM_PROTO_GetFieldsCounters done [06:51:28]requested_item shift.num is exist - process it [06:51:28]requested_item shift.opened is exist - process it [06:51:28]req_shift_opened [06:51:28]FM_GetShiftState [06:51:28]SAM_PROTO_GetShiftState [06:51:28]wFMCommunicate request_size=4 [06:51:28]MH_SAM_APDU [06:51:28]CAPDU: 80 13 01 00 [06:51:28]Write to MH i2c: E2 08 00 8B 5C 80 13 01 00 00 00 00 00 64 [06:51:28]Write i2c OK [06:51:28]MH_I2C_Read... [06:51:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:51:28]Read from MH i2c: E2 [06:51:28]MH_I2C_Read... [06:51:28]Read from MH i2c: E2 0E 00 [06:51:28]MH_I2C_Read... [06:51:28]Read from MH i2c: E2 0E 00 8B 5C 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 75 [06:51:28]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [06:51:28]wFMCommunicate OK [06:51:28]SAM_PROTO_GetShiftState done [06:51:28]FM_GetShiftState done [06:51:28]req_shift_opened done [06:51:28]requested_item shift.open_date is exist - process it [06:51:28]req_shift_open_date [06:51:28]req_shift_open_date done [06:51:28]produce_requested_data done [06:51:28]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28570,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [06:51:28]process_action_free print_text [06:51:28]json_value_free [06:51:28]json_value_free done [06:51:28]process_json_proto returns [06:51:28]Send response to host [06:51:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28570,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [06:51:28]free response buf [06:51:28]execute_script done [06:51:28]execute_script returns [06:51:28]free content buf [06:51:28]Sock 10.Close socket [06:51:28]Sock 10.Thread stoped [06:51:33]OFD Sender: No OFD packet to send [06:51:38]OFD Sender: No OFD packet to send [06:51:43]OFD Sender: No OFD packet to send [06:51:48]OFD Sender: No OFD packet to send [06:51:53]OFD Sender: No OFD packet to send [06:51:58]OFD Sender: No OFD packet to send [06:52:03]OFD Sender: No OFD packet to send [06:52:08]OFD Sender: No OFD packet to send [06:52:13]OFD Sender: No OFD packet to send [06:52:18]OFD Sender: No OFD packet to send [06:52:23]OFD Sender: No OFD packet to send [06:52:28]OFD Sender: No OFD packet to send [06:52:33]OFD Sender: No OFD packet to send [06:52:38]OFD Sender: No OFD packet to send [06:52:43]OFD Sender: No OFD packet to send [06:52:48]OFD Sender: No OFD packet to send [06:52:53]OFD Sender: No OFD packet to send [06:52:58]OFD Sender: No OFD packet to send [06:53:03]OFD Sender: No OFD packet to send [06:53:08]OFD Sender: No OFD packet to send [06:53:13]OFD Sender: No OFD packet to send [06:53:18]OFD Sender: No OFD packet to send [06:53:23]OFD Sender: No OFD packet to send [06:53:28]OFD Sender: No OFD packet to send [06:53:33]OFD Sender: No OFD packet to send [06:53:38]OFD Sender: No OFD packet to send [06:53:43]OFD Sender: No OFD packet to send [06:53:48]OFD Sender: No OFD packet to send [06:53:53]OFD Sender: No OFD packet to send [06:53:58]OFD Sender: No OFD packet to send [06:54:03]OFD Sender: No OFD packet to send [06:54:08]OFD Sender: No OFD packet to send [06:54:13]OFD Sender: No OFD packet to send [06:54:18]OFD Sender: No OFD packet to send [06:54:23]OFD Sender: No OFD packet to send [06:54:28]OFD Sender: No OFD packet to send [06:54:33]OFD Sender: No OFD packet to send [06:54:38]OFD Sender: No OFD packet to send [06:54:43]OFD Sender: No OFD packet to send [06:54:48]OFD Sender: No OFD packet to send [06:54:53]OFD Sender: No OFD packet to send [06:54:58]OFD Sender: No OFD packet to send [06:55:03]OFD Sender: No OFD packet to send [06:55:08]OFD Sender: No OFD packet to send [06:55:13]OFD Sender: No OFD packet to send [06:55:18]OFD Sender: No OFD packet to send [06:55:23]OFD Sender: No OFD packet to send [06:55:28]OFD Sender: No OFD packet to send [06:55:33]OFD Sender: No OFD packet to send [06:55:38]OFD Sender: No OFD packet to send [06:55:43]OFD Sender: No OFD packet to send [06:55:48]OFD Sender: No OFD packet to send [06:55:53]OFD Sender: No OFD packet to send [06:55:58]OFD Sender: No OFD packet to send [06:56:03]OFD Sender: No OFD packet to send [06:56:08]OFD Sender: No OFD packet to send [06:56:13]OFD Sender: No OFD packet to send [06:56:18]OFD Sender: No OFD packet to send [06:56:23]OFD Sender: No OFD packet to send [06:56:28]OFD Sender: No OFD packet to send [06:56:33]OFD Sender: No OFD packet to send [06:56:38]OFD Sender: No OFD packet to send [06:56:43]OFD Sender: No OFD packet to send [06:56:48]OFD Sender: No OFD packet to send [06:56:53]OFD Sender: No OFD packet to send [06:56:58]OFD Sender: No OFD packet to send [06:57:03]OFD Sender: No OFD packet to send [06:57:08]OFD Sender: No OFD packet to send [06:57:13]OFD Sender: No OFD packet to send [06:57:18]OFD Sender: No OFD packet to send [06:57:23]OFD Sender: No OFD packet to send [06:57:28]OFD Sender: No OFD packet to send [06:57:33]OFD Sender: No OFD packet to send [06:57:38]OFD Sender: No OFD packet to send [06:57:43]OFD Sender: No OFD packet to send [06:57:48]OFD Sender: No OFD packet to send [06:57:53]accept exits with 7 [06:57:53]New connection [06:57:53]New thread 3066498404 created [06:57:53]Thread 3066641764 joined [06:57:53]Waiting for new connection... [06:57:53] Sock 7.Parse request [06:57:53]Sock 7.Check first char [06:57:53]Sock 7.First char is OK [06:57:53]request: POST /json_proto HTTP/1.0 [06:57:53]Method: POST [06:57:53]URL: /json_proto [06:57:53]Method is POST - this is cgi request [06:57:53]url: /json_proto [06:57:53]query_string will be loaded in cgi processing [06:57:53]execute_cgi json_proto POST (null) [06:57:53]execute_cgi path=json_proto method=POST [06:57:53]POST find Content-Length [06:57:53]Host: 172.17.33.3:8080 [06:57:53]Content-Length: 679 [06:57:53]Content-Type: application/json [06:57:53] [06:57:53]POST finish read [06:57:53]Found Content-Length = 679 [06:57:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346878", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 15.200, "sum" : 1100.48, "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" ] } } [06:57:53]execute_script... [06:57: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)346878", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 15.200, "sum" : 1100.48, "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" ] } } [06:57:53]POST & json_proto [06:57:53]process_json_proto [06:57:53]json parsed OK: [06:57:53]protocol is kg_v1.0 [06:57:53]action value=close_receipt [06:57:53]process_action close_receipt [06:57:53]cmd_close_receipt [06:57:53]MH_GetDate [06:57:53]Write to MH i2c: F0 00 00 8C 5C D7 [06:57:53]Write i2c OK [06:57:53]MH_I2C_Read... [06:57:53]Read from MH i2c: F0 [06:57:53]MH_I2C_Read... [06:57:53]Read from MH i2c: F0 09 00 [06:57:53]MH_I2C_Read... [06:57:53]Read from MH i2c: F0 09 00 8C 5C 00 78 DB 18 66 23 5B 8F 65 23 [06:57:53]GetLastDocTimeStamp 1712903951 [06:57:53]current date 1712905080 [06:57:53]FM_GetShiftState [06:57:53]SAM_PROTO_GetShiftState [06:57:53]wFMCommunicate request_size=4 [06:57:53]MH_SAM_APDU [06:57:53]CAPDU: 80 13 01 00 [06:57:53]Write to MH i2c: E2 08 00 8D 5C 80 13 01 00 00 00 00 00 66 [06:57:53]Write i2c OK [06:57:53]MH_I2C_Read... [06:57:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:57:53]Read from MH i2c: E2 [06:57:53]MH_I2C_Read... [06:57:53]Read from MH i2c: E2 0E 00 [06:57:53]MH_I2C_Read... [06:57:53]Read from MH i2c: E2 0E 00 8D 5C 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 77 [06:57:53]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [06:57:53]wFMCommunicate OK [06:57:53]SAM_PROTO_GetShiftState done [06:57:53]FM_GetShiftState done [06:57:53]opened in 1712881416 [06:57:53]opened+sec_in_day 1712967816 [06:57:53]quantity*price = 110048 [06:57:53]sum+1 = 110049 [06:57:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.48 ИТОГО: 1100.00 Внесено: 1100.00 СДАЧА: 0.00 НСП 1% : 9.74 НДС 12% : 116.86 Наличными: 1100.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 20 12.04.2024 06:58 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28571 ФПД: 169080702677795 1/tax-web-control/client/api/v1/ticket?date=20240412T065800&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28571&fm=169080702677795&tin=02508201610067®Number=0000138879044617&sum=110000 [06:57:54]StoreToDocumentArchive [06:57:54]shift 113 fd 28571 [06:57:54]save to /storage/0113/doc_00028571 [06:57:54]save last doc name /storage/0113/doc_00028571 to /storage/kkm_last_doc_name [06:57:54]save OK [06:57:54]Clear old archive folders... [06:57:54]ProcessDocumentItem done err = 0, tmpTLVsize=248 [06:57:54]tlvbuf is 01AD7A60 [06:57:54]SAM_PROTO_ClearQueue [06:57:54]wFMCommunicate request_size=4 [06:57:54]MH_SAM_APDU [06:57:54]CAPDU: 80 09 00 00 [06:57:54]Write to MH i2c: E2 08 00 9A 5C 80 09 00 00 00 00 00 00 68 [06:57:54]Write i2c OK [06:57:54]MH_I2C_Read... [06:57:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:57:54]Read from MH i2c: E2 [06:57:54]MH_I2C_Read... [06:57:54]Read from MH i2c: E2 03 00 [06:57:54]MH_I2C_Read... [06:57:54]Read from MH i2c: E2 03 00 9A 5C 00 90 00 6A [06:57:54]RAPDU: 90 00 [06:57:54]wFMCommunicate OK [06:57:54]SAM_PROTO_ClearQueue done [06:57:54]KKMCreateOFDPacket [06:57:54]OFDProtocolAddRootSTLVToBuf [06:57:54]FM_MakeSignedData [06:57:54]FM_MakeSignedData [06:57:54]SAM_PROTO_SignData [06:57:54]wFMCommunicate request_size=4 [06:57:54]MH_SAM_APDU [06:57:54]CAPDU: 80 0D 01 02 [06:57:54]Write to MH i2c: E2 08 00 9B 5C 80 0D 01 02 00 00 00 00 70 [06:57:54]Write i2c OK [06:57:54]MH_I2C_Read... [06:57:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:57:54]Read from MH i2c: E2 [06:57:54]MH_I2C_Read... [06:57:54]Read from MH i2c: E2 03 00 [06:57:54]MH_I2C_Read... [06:57:54]Read from MH i2c: E2 03 00 9B 5C 00 90 00 6B [06:57:54]RAPDU: 90 00 [06:57:54]wFMCommunicate OK [06:57:54]wFMCommunicate request_size=255 [06:57:54]MH_SAM_APDU [06:57:54]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 E0 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 78 DB 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9B 6F 00 00 35 04 06 00 99 C7 2B 38 [06:57:54]Write to MH i2c: E2 02 01 9C 5C 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 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 E0 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 78 DB 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9B 6F 00 00 35 04 06 00 99 C7 2B 38 00 00 FA [06:57:54]Write i2c OK [06:57:54]MH_I2C_Read... [06:57:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:57:54]Read from MH i2c: E2 [06:57:54]MH_I2C_Read... [06:57:54]Read from MH i2c: E2 03 00 [06:57:54]MH_I2C_Read... [06:57:54]Read from MH i2c: E2 03 00 9C 5C 00 90 00 6C [06:57:54]RAPDU: 90 00 [06:57:54]wFMCommunicate OK [06:57:54]wFMCommunicate request_size=7 [06:57:54]MH_SAM_APDU [06:57:54]CAPDU: 80 0D 02 02 02 B3 23 [06:57:54]Write to MH i2c: E2 0A 00 9D 5C 80 0D 02 02 02 00 B3 23 00 00 4D [06:57:54]Write i2c OK [06:57:54]MH_I2C_Read... [06:57:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:57:54]Read from MH i2c: E2 [06:57:54]MH_I2C_Read... [06:57:54]Read from MH i2c: E2 03 00 [06:57:54]MH_I2C_Read... [06:57:54]Read from MH i2c: E2 03 00 9D 5C 00 90 00 6D [06:57:54]RAPDU: 90 00 [06:57:54]wFMCommunicate OK [06:57:54]wFMCommunicate request_size=4 [06:57:54]MH_SAM_APDU [06:57:54]CAPDU: 80 0D 03 02 [06:57:54]Write to MH i2c: E2 08 00 9E 5C 80 0D 03 02 00 00 00 00 75 [06:57:54]Write i2c OK [06:57:54]MH_I2C_Read... [06:57:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:57:54]Read from MH i2c: E2 [06:57:54]MH_I2C_Read... [06:57:54]Read from MH i2c: E2 0B 00 [06:57:54]MH_I2C_Read... [06:57:54]Read from MH i2c: E2 0B 00 9E 5C 00 1D 63 2D B4 B3 A6 6D B3 90 00 50 [06:57:54]RAPDU: 1D 63 2D B4 B3 A6 6D B3 90 00 [06:57:54]wFMCommunicate OK [06:57:54]SAM_PROTO_SignData done [06:57:54]FM_MakeSignedData done [06:57:54]CreateOFDProtocolMessage [06:57:54]wFMCommunicate request_size=4 [06:57:54]MH_SAM_APDU [06:57:54]CAPDU: 80 11 00 00 [06:57:54]Write to MH i2c: E2 08 00 9F 5C 80 11 00 00 00 00 00 00 75 [06:57:54]Write i2c OK [06:57:54]MH_I2C_Read... [06:57:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:57:54]Read from MH i2c: E2 [06:57:54]MH_I2C_Read... [06:57:54]Read from MH i2c: E2 17 00 [06:57:54]MH_I2C_Read... [06:57:54]Read from MH i2c: E2 17 00 9F 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 C4 [06:57:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [06:57:54]wFMCommunicate OK [06:57:54]CreateOFDProtocolMessage done [06:57:54]OFDSenderStorePacket 28571 [06:57:54]StoreOFDPacket docnum=28571 [06:57:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 50 56 04 01 E0 80 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 E0 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 78 DB 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9B 6F 00 00 35 04 06 00 99 C7 2B 38 B3 23 1D 63 2D B4 B3 A6 6D B3 [06:57:54]CheckFolder [06:57:54]dirname=/storage/ofd_packets [06:57:54]CheckFolder done [06:57:54]ProducePacketName [06:57:54]name=ofd_packets/00028571 [06:57:54]NVStorageSaveData ofd_packets/00028571 [06:57:54]File name is /storage/ofd_packets/00028571 [06:57:54]Write 298 bytes [06:57:54]NVStorageSaveData done [06:57:54]OFDSenderStorePacket done [06:57:54]KKMCreateOFDPacket done [06:57:54]NVStorageSaveData kkm_last_timestamp [06:57:54]File name is /storage/kkm_last_timestamp [06:57:54]Write 4 bytes [06:57:54]NVStorageSaveData done [06:57:54]ExternCall_PrintAddStr [06:57:54]wPrintStart [06:57:54]Write to MH i2c: 01 00 00 A0 5C FC [06:57:54]Write i2c OK [06:57:54]MH_I2C_Read... [06:57:54]Read from MH i2c: 01 [06:57:54]MH_I2C_Read... [06:57:54]Read from MH i2c: 01 07 00 [06:57:54]MH_I2C_Read... [06:57:54]Read from MH i2c: 01 07 00 A0 5C 00 00 00 00 00 FF 0F 11 [06:57:54]RasterBufferAndPrint [06:57:54]line Счет N : (1)346878 [06:57:54]line ИНН: 02508201610067 [06:57:54]line Контрольно-Кассовый Чек [06:57:54]line ПРОДАЖА [06:57:54]line ТРК (МРК, ГНК) : 11 [06:57:54]line Товар: 2710194210 [06:57:54]line ДТ-К-5 [06:57:54]line 15.200 * 72.40 [06:57:54]line = 1100.48 [06:57:54]line НДС 12% НСП 1% [06:57:54]line > о реализуемом товаре [06:57:54]line ОКРУГЛЕНИЕ: -0.48 [06:57:54]line ИТОГО: 1100.00 [06:57:54]line Внесено: 1100.00 [06:57:54]line СДАЧА: 0.00 [06:57:54]line НСП 1% : 9.74 [06:57:54]line НДС 12% : 116.86 [06:57:54]line Наличными: 1100.00 [06:57:54]line Безнал.: 0.00 [06:57:54]line Место: АЗС № 108 "Партнер Нефть" [06:57:54]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [06:57:54]line СНО: Общий режим [06:57:54]line Чек 20 12.04.2024 06:58 [06:57:54]line Смена: 113 ФФД: 1.0 [06:57:54]line ЗНМ: 0300000027 [06:57:54]line РНМ: 0000138879044617 [06:57:54]line Версия ККМ: 001 [06:57:54]line ФМ: 0000000000963154 [06:57:54]line ФД: 28571 [06:57:54]line ФПД: 169080702677795 [06:57:55]line 1/tax-web-control/client/api/v1/ticket?date=20240412T065800&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28571&fm=169080702677795&tin=02508201610067®Number=0000138879044617&sum=110000 [06:57:55]OFD Sender: Processing packet 28571 [packets to send 8, broken 7] [06:57:55]ProducePacketName [06:57:55]name=ofd_packets/00028571 [06:57:55]OFD Sender: To server: pG, [06:57:55]CommunicateWithHost lk.salyk.kg:30040 [06:57:55]ConnectInit lk.salyk.kg [06:57:55]written 0, free lines is 4095 [06:57:55]Connected sock=10 [06:57:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 50 56 04 01 E0 80 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 E0 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 78 DB 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9B 6F 00 00 35 04 06 00 99 C7 2B 38 B3 23 1D 63 2D B4 B3 A6 6D B3 [06:57:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 A3 F0 47 00 C7 F0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9B 6F 00 00 F4 03 04 00 23 86 18 66 B6 04 01 00 00 48 38 61 00 0C 9F 83 13 [06:57:55]CommunicateWithHost err = 0 [06:57:55]CheckOFDResponse [06:57:55]1017 (14) - 77093643461234 [06:57:55]1041 (16) - 0000000000963154 [06:57:55]1040 (4) - 28571 [06:57:55]1012 (4) - 12.04.2024 00:53 [06:57:55]1206 (1) - 0 [06:57:55]OFD Sender: Remove packet 28571 [06:57:55]ProducePacketName [06:57:55]name=ofd_packets/00028571 [06:57:55]NVStorageDeleteData [06:57:55]Write to MH i2c: 01 00 00 CA 5C 26 [06:57:55]Write i2c OK [06:57:55]MH_I2C_Read... [06:57:55]Read from MH i2c: 01 [06:57:55]MH_I2C_Read... [06:57:55]Read from MH i2c: 01 07 00 [06:57:55]MH_I2C_Read... [06:57:55]Read from MH i2c: 01 07 00 CA 5C 00 00 00 00 00 C2 0C FB [06:57:55]RasterBufferAndPrint [06:57:55]line [06:57:55]line [06:57:55]line [06:57:55]line [06:57:55]line [06:57:55]written 0, free lines is 3271 [06:57:55]MH_Cut [06:57:55]Write to MH i2c: D1 01 00 D1 5C 01 FF [06:57:55]Write i2c OK [06:57:55]MH_I2C_Read... [06:57:55]Read from MH i2c: D1 [06:57:55]MH_I2C_Read... [06:57:55]Read from MH i2c: D1 01 00 [06:57:55]MH_I2C_Read... [06:57:55]Read from MH i2c: D1 01 00 D1 5C 00 FE [06:57:55]Write to MH i2c: 01 00 00 D2 5C 2E [06:57:55]Write i2c OK [06:57:55]MH_I2C_Read... [06:57:56]OFD Sender: No OFD packet to send [06:57:56]*** Cut start [06:57:56]*** Partial cut [06:57:56]*** CUTSNS_PIN = 1 [06:57:56]*** CUTSNS_PIN = 0 [06:57:56]*** Brake cut motor [06:57:57]Read from MH i2c: 01 [06:57:57]MH_I2C_Read... [06:57:57]*** Stop cut motor [06:57:57]*** Cut end [06:57:57]Read from MH i2c: 01 07 00 [06:57:57]MH_I2C_Read... [06:57:57]Read from MH i2c: 01 07 00 D2 5C 00 00 00 00 00 FF 0F 43 [06:57:57]process_action close_receipt done [06:57:57]requested_data is exist [06:57:57]produce_requested_data [06:57:57]requested_item fm.sn is exist - process it [06:57:57]wFMCommunicate request_size=4 [06:57:57]MH_SAM_APDU [06:57:57]CAPDU: 80 11 00 00 [06:57:57]Write to MH i2c: E2 08 00 D3 5C 80 11 00 00 00 00 00 00 A9 [06:57:57]Write i2c OK [06:57:57]MH_I2C_Read... [06:57:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:57:57]Read from MH i2c: E2 [06:57:57]MH_I2C_Read... [06:57:57]Read from MH i2c: E2 17 00 [06:57:57]MH_I2C_Read... [06:57:57]Read from MH i2c: E2 17 00 D3 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 F8 [06:57:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [06:57:57]wFMCommunicate OK [06:57:57]requested_item fd.num is exist - process it [06:57:57]SAM_PROTO_GetFieldsCounters [06:57:57]wFMCommunicate request_size=4 [06:57:57]MH_SAM_APDU [06:57:57]CAPDU: 80 13 00 00 [06:57:57]Write to MH i2c: E2 08 00 D4 5C 80 13 00 00 00 00 00 00 AC [06:57:57]Write i2c OK [06:57:57]MH_I2C_Read... [06:57:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:57:57]Read from MH i2c: E2 [06:57:57]MH_I2C_Read... [06:57:57]Read from MH i2c: E2 62 00 [06:57:57]MH_I2C_Read... [06:57:57]Read from MH i2c: E2 62 00 D4 5C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 9B 6F 00 00 0E 04 04 00 71 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 A1 [06:57:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 9B 6F 00 00 0E 04 04 00 71 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 [06:57:57]wFMCommunicate OK [06:57:57]SAM_PROTO_GetFieldsCounters done [06:57:57]requested_item shift.num is exist - process it [06:57:57]requested_item shift.opened is exist - process it [06:57:57]req_shift_opened [06:57:57]FM_GetShiftState [06:57:57]SAM_PROTO_GetShiftState [06:57:57]wFMCommunicate request_size=4 [06:57:57]MH_SAM_APDU [06:57:57]CAPDU: 80 13 01 00 [06:57:57]Write to MH i2c: E2 08 00 D5 5C 80 13 01 00 00 00 00 00 AE [06:57:57]Write i2c OK [06:57:57]MH_I2C_Read... [06:57:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:57:57]Read from MH i2c: E2 [06:57:57]MH_I2C_Read... [06:57:57]Read from MH i2c: E2 0E 00 [06:57:57]MH_I2C_Read... [06:57:57]Read from MH i2c: E2 0E 00 D5 5C 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 BF [06:57:57]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [06:57:57]wFMCommunicate OK [06:57:57]SAM_PROTO_GetShiftState done [06:57:57]FM_GetShiftState done [06:57:57]req_shift_opened done [06:57:57]requested_item shift.open_date is exist - process it [06:57:57]req_shift_open_date [06:57:57]req_shift_open_date done [06:57:57]produce_requested_data done [06:57:57]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28571,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [06:57:57]process_action_free close_receipt [06:57:57]json_value_free [06:57:57]json_value_free done [06:57:57]process_json_proto returns [06:57:57]Send response to host [06:57:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28571,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [06:57:57]free response buf [06:57:57]execute_script done [06:57:57]execute_script returns [06:57:57]free content buf [06:57:57]Sock 7.Close socket [06:57:57]Sock 7.Thread stoped [06:58:01]OFD Sender: No OFD packet to send [06:58:06]OFD Sender: No OFD packet to send [06:58:11]OFD Sender: No OFD packet to send [06:58:16]OFD Sender: No OFD packet to send [06:58:21]OFD Sender: No OFD packet to send [06:58:26]OFD Sender: No OFD packet to send [06:58:31]OFD Sender: No OFD packet to send [06:58:36]OFD Sender: No OFD packet to send [06:58:41]OFD Sender: No OFD packet to send [06:58:46]OFD Sender: No OFD packet to send [06:58:51]OFD Sender: No OFD packet to send [06:58:56]OFD Sender: No OFD packet to send [06:59:01]OFD Sender: No OFD packet to send [06:59:06]OFD Sender: No OFD packet to send [06:59:11]OFD Sender: No OFD packet to send [06:59:16]OFD Sender: No OFD packet to send [06:59:21]OFD Sender: No OFD packet to send [06:59:26]OFD Sender: No OFD packet to send [06:59:31]OFD Sender: No OFD packet to send [06:59:36]OFD Sender: No OFD packet to send [06:59:41]OFD Sender: No OFD packet to send [06:59:46]OFD Sender: No OFD packet to send [06:59:51]OFD Sender: No OFD packet to send [06:59:56]OFD Sender: No OFD packet to send [07:00:01]OFD Sender: No OFD packet to send [07:00:06]OFD Sender: No OFD packet to send [07:00:11]OFD Sender: No OFD packet to send [07:00:16]OFD Sender: No OFD packet to send [07:00:21]OFD Sender: No OFD packet to send [07:00:26]OFD Sender: No OFD packet to send [07:00:31]OFD Sender: No OFD packet to send [07:00:36]OFD Sender: No OFD packet to send [07:00:41]OFD Sender: No OFD packet to send [07:00:46]OFD Sender: No OFD packet to send [07:00:51]OFD Sender: No OFD packet to send [07:00:56]OFD Sender: No OFD packet to send [07:01:01]OFD Sender: No OFD packet to send [07:01:06]OFD Sender: No OFD packet to send [07:01:11]OFD Sender: No OFD packet to send [07:01:11]accept exits with 9 [07:01:11]New connection [07:01:11]New thread 3066641764 created [07:01:11]Thread 3066498404 joined [07:01:11]Waiting for new connection... [07:01:11] Sock 9.Parse request [07:01:11]Sock 9.Check first char [07:01:11]Sock 9.First char is OK [07:01:11]request: POST /json_proto HTTP/1.0 [07:01:11]Method: POST [07:01:11]URL: /json_proto [07:01:11]Method is POST - this is cgi request [07:01:11]url: /json_proto [07:01:11]query_string will be loaded in cgi processing [07:01:11]execute_cgi json_proto POST (null) [07:01:11]execute_cgi path=json_proto method=POST [07:01:11]POST find Content-Length [07:01:11]Host: 172.17.33.3:8080 [07:01:11]Content-Length: 677 [07:01:11]Content-Type: application/json [07:01:11] [07:01:11]POST finish read [07:01:11]Found Content-Length = 677 [07:01:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346879", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 7.780, "sum" : 500.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:01:11]execute_script... [07:01:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346879", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 7.780, "sum" : 500.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:01:11]POST & json_proto [07:01:11]process_json_proto [07:01:11]json parsed OK: [07:01:11]protocol is kg_v1.0 [07:01:11]action value=close_receipt [07:01:11]process_action close_receipt [07:01:11]cmd_close_receipt [07:01:11]MH_GetDate [07:01:11]Write to MH i2c: F0 00 00 D6 5C 21 [07:01:11]Write i2c OK [07:01:11]MH_I2C_Read... [07:01:11]Read from MH i2c: F0 [07:01:11]MH_I2C_Read... [07:01:11]Read from MH i2c: F0 09 00 [07:01:11]MH_I2C_Read... [07:01:11]Read from MH i2c: F0 09 00 D6 5C 00 3E DC 18 66 23 5B 8F 65 34 [07:01:11]GetLastDocTimeStamp 1712905080 [07:01:11]current date 1712905278 [07:01:11]FM_GetShiftState [07:01:11]SAM_PROTO_GetShiftState [07:01:11]wFMCommunicate request_size=4 [07:01:11]MH_SAM_APDU [07:01:11]CAPDU: 80 13 01 00 [07:01:11]Write to MH i2c: E2 08 00 D7 5C 80 13 01 00 00 00 00 00 B0 [07:01:11]Write i2c OK [07:01:11]MH_I2C_Read... [07:01:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:01:11]Read from MH i2c: E2 [07:01:11]MH_I2C_Read... [07:01:11]Read from MH i2c: E2 0E 00 [07:01:11]MH_I2C_Read... [07:01:11]Read from MH i2c: E2 0E 00 D7 5C 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 C1 [07:01:11]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [07:01:11]wFMCommunicate OK [07:01:11]SAM_PROTO_GetShiftState done [07:01:11]FM_GetShiftState done [07:01:11]opened in 1712881416 [07:01:11]opened+sec_in_day 1712967816 [07:01:11]quantity*price = 50025 [07:01:11]sum+1 = 50026 [07:01:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 21 12.04.2024 07:01 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28572 ФПД: 39702455255088 1/tax-web-control/client/api/v1/ticket?date=20240412T070118&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28572&fm=39702455255088&tin=02508201610067®Number=0000138879044617&sum=50000 [07:01:13]StoreToDocumentArchive [07:01:13]shift 113 fd 28572 [07:01:13]save to /storage/0113/doc_00028572 [07:01:13]save last doc name /storage/0113/doc_00028572 to /storage/kkm_last_doc_name [07:01:13]save OK [07:01:13]Clear old archive folders... [07:01:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:01:13]tlvbuf is 01BB17B0 [07:01:13]SAM_PROTO_ClearQueue [07:01:13]wFMCommunicate request_size=4 [07:01:13]MH_SAM_APDU [07:01:13]CAPDU: 80 09 00 00 [07:01:13]Write to MH i2c: E2 08 00 E4 5C 80 09 00 00 00 00 00 00 B2 [07:01:13]Write i2c OK [07:01:13]MH_I2C_Read... [07:01:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:01:13]Read from MH i2c: E2 [07:01:13]MH_I2C_Read... [07:01:13]Read from MH i2c: E2 03 00 [07:01:13]MH_I2C_Read... [07:01:13]Read from MH i2c: E2 03 00 E4 5C 00 90 00 B4 [07:01:13]RAPDU: 90 00 [07:01:13]wFMCommunicate OK [07:01:13]SAM_PROTO_ClearQueue done [07:01:13]KKMCreateOFDPacket [07:01:13]OFDProtocolAddRootSTLVToBuf [07:01:13]FM_MakeSignedData [07:01:13]FM_MakeSignedData [07:01:13]SAM_PROTO_SignData [07:01:13]wFMCommunicate request_size=4 [07:01:13]MH_SAM_APDU [07:01:13]CAPDU: 80 0D 01 02 [07:01:13]Write to MH i2c: E2 08 00 E5 5C 80 0D 01 02 00 00 00 00 BA [07:01:13]Write i2c OK [07:01:13]MH_I2C_Read... [07:01:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:01:13]Read from MH i2c: E2 [07:01:13]MH_I2C_Read... [07:01:13]Read from MH i2c: E2 03 00 [07:01:13]MH_I2C_Read... [07:01:13]Read from MH i2c: E2 03 00 E5 5C 00 90 00 B5 [07:01:13]RAPDU: 90 00 [07:01:13]wFMCommunicate OK [07:01:13]wFMCommunicate request_size=255 [07:01:13]MH_SAM_APDU [07:01:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 3E DC 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9C 6F 00 00 35 04 06 00 24 [07:01:13]Write to MH i2c: E2 02 01 E6 5C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 3E DC 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9C 6F 00 00 35 04 06 00 24 00 00 C9 [07:01:13]Write i2c OK [07:01:13]MH_I2C_Read... [07:01:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:01:13]Read from MH i2c: E2 [07:01:13]MH_I2C_Read... [07:01:13]Read from MH i2c: E2 03 00 [07:01:13]MH_I2C_Read... [07:01:13]Read from MH i2c: E2 03 00 E6 5C 00 90 00 B6 [07:01:13]RAPDU: 90 00 [07:01:13]wFMCommunicate OK [07:01:13]wFMCommunicate request_size=10 [07:01:13]MH_SAM_APDU [07:01:13]CAPDU: 80 0D 02 02 05 1B F2 BE 00 30 [07:01:13]Write to MH i2c: E2 0D 00 E7 5C 80 0D 02 02 05 00 1B F2 BE 00 30 00 00 C2 [07:01:13]Write i2c OK [07:01:13]MH_I2C_Read... [07:01:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:01:13]Read from MH i2c: E2 [07:01:13]MH_I2C_Read... [07:01:13]Read from MH i2c: E2 03 00 [07:01:13]MH_I2C_Read... [07:01:13]Read from MH i2c: E2 03 00 E7 5C 00 90 00 B7 [07:01:13]RAPDU: 90 00 [07:01:13]wFMCommunicate OK [07:01:13]wFMCommunicate request_size=4 [07:01:13]MH_SAM_APDU [07:01:13]CAPDU: 80 0D 03 02 [07:01:13]Write to MH i2c: E2 08 00 E8 5C 80 0D 03 02 00 00 00 00 BF [07:01:13]Write i2c OK [07:01:13]MH_I2C_Read... [07:01:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:01:13]Read from MH i2c: E2 [07:01:13]MH_I2C_Read... [07:01:13]Read from MH i2c: E2 0B 00 [07:01:13]MH_I2C_Read... [07:01:13]Read from MH i2c: E2 0B 00 E8 5C 00 93 19 7B 19 80 BB 25 5F 90 00 BF [07:01:13]RAPDU: 93 19 7B 19 80 BB 25 5F 90 00 [07:01:13]wFMCommunicate OK [07:01:13]SAM_PROTO_SignData done [07:01:13]FM_MakeSignedData done [07:01:13]CreateOFDProtocolMessage [07:01:13]wFMCommunicate request_size=4 [07:01:13]MH_SAM_APDU [07:01:13]CAPDU: 80 11 00 00 [07:01:13]Write to MH i2c: E2 08 00 E9 5C 80 11 00 00 00 00 00 00 BF [07:01:13]Write i2c OK [07:01:13]MH_I2C_Read... [07:01:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:01:13]Read from MH i2c: E2 [07:01:13]MH_I2C_Read... [07:01:13]Read from MH i2c: E2 17 00 [07:01:13]MH_I2C_Read... [07:01:13]Read from MH i2c: E2 17 00 E9 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 0E [07:01:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:01:13]wFMCommunicate OK [07:01:13]CreateOFDProtocolMessage done [07:01:13]OFDSenderStorePacket 28572 [07:01:13]StoreOFDPacket docnum=28572 [07:01:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 7D 78 07 01 0F 1C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 3E DC 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9C 6F 00 00 35 04 06 00 24 1B F2 BE 00 30 93 19 7B 19 80 BB 25 5F [07:01:13]CheckFolder [07:01:13]dirname=/storage/ofd_packets [07:01:13]CheckFolder done [07:01:13]ProducePacketName [07:01:13]name=ofd_packets/00028572 [07:01:13]NVStorageSaveData ofd_packets/00028572 [07:01:13]File name is /storage/ofd_packets/00028572 [07:01:13]Write 301 bytes [07:01:13]NVStorageSaveData done [07:01:13]OFDSenderStorePacket done [07:01:13]KKMCreateOFDPacket done [07:01:13]NVStorageSaveData kkm_last_timestamp [07:01:13]File name is /storage/kkm_last_timestamp [07:01:13]Write 4 bytes [07:01:13]NVStorageSaveData done [07:01:13]ExternCall_PrintAddStr [07:01:13]wPrintStart [07:01:13]Write to MH i2c: 01 00 00 EA 5C 46 [07:01:13]Write i2c OK [07:01:13]MH_I2C_Read... [07:01:13]Read from MH i2c: 01 [07:01:13]MH_I2C_Read... [07:01:13]Read from MH i2c: 01 07 00 [07:01:13]MH_I2C_Read... [07:01:13]Read from MH i2c: 01 07 00 EA 5C 00 00 00 00 00 FF 0F 5B [07:01:13]RasterBufferAndPrint [07:01:13]line Счет N : (1)346879 [07:01:13]line ИНН: 02508201610067 [07:01:13]line Контрольно-Кассовый Чек [07:01:13]line ПРОДАЖА [07:01:13]line ТРК (МРК, ГНК) : 13 [07:01:13]line Товар: 2710124130 [07:01:13]line Аи-92-К-5 [07:01:13]line 7.780 * 64.30 [07:01:13]line = 500.25 [07:01:13]line НДС 12% НСП 1% [07:01:13]line > о реализуемом товаре [07:01:13]line ОКРУГЛЕНИЕ: -0.25 [07:01:13]line ИТОГО: 500.00 [07:01:13]line Внесено: 500.00 [07:01:13]line СДАЧА: 0.00 [07:01:13]line НСП 1% : 4.43 [07:01:13]line НДС 12% : 53.12 [07:01:13]line Наличными: 500.00 [07:01:13]line Безнал.: 0.00 [07:01:13]line Место: АЗС № 108 "Партнер Нефть" [07:01:13]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [07:01:13]line СНО: Общий режим [07:01:13]line Чек 21 12.04.2024 07:01 [07:01:13]line Смена: 113 ФФД: 1.0 [07:01:13]line ЗНМ: 0300000027 [07:01:13]line РНМ: 0000138879044617 [07:01:13]line Версия ККМ: 001 [07:01:13]line ФМ: 0000000000963154 [07:01:13]line ФД: 28572 [07:01:13]line ФПД: 39702455255088 [07:01:13]line 1/tax-web-control/client/api/v1/ticket?date=20240412T070118&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28572&fm=39702455255088&tin=02508201610067®Number=0000138879044617&sum=50000 [07:01:13]OFD Sender: Processing packet 28572 [packets to send 8, broken 7] [07:01:13]ProducePacketName [07:01:13]name=ofd_packets/00028572 [07:01:13]OFD Sender: To server: pG, [07:01:13]CommunicateWithHost lk.salyk.kg:30040 [07:01:13]ConnectInit lk.salyk.kg [07:01:13]written 0, free lines is 4095 [07:01:14]Connected sock=10 [07:01:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 7D 78 07 01 0F 1C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 3E DC 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9C 6F 00 00 35 04 06 00 24 1B F2 BE 00 30 93 19 7B 19 80 BB 25 5F [07:01:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 AB BA 47 00 DF 7B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9C 6F 00 00 F4 03 04 00 E9 86 18 66 B6 04 01 00 00 24 D6 16 B4 B3 9C 1B 74 [07:01:14]CommunicateWithHost err = 0 [07:01:14]CheckOFDResponse [07:01:14]1017 (14) - 77093643461234 [07:01:14]1041 (16) - 0000000000963154 [07:01:14]1040 (4) - 28572 [07:01:14]1012 (4) - 12.04.2024 00:57 [07:01:14]1206 (1) - 0 [07:01:14]OFD Sender: Remove packet 28572 [07:01:14]ProducePacketName [07:01:14]name=ofd_packets/00028572 [07:01:14]NVStorageDeleteData [07:01:14]Write to MH i2c: 01 00 00 14 5D 71 [07:01:14]Write i2c OK [07:01:14]MH_I2C_Read... [07:01:14]Read from MH i2c: 01 [07:01:14]MH_I2C_Read... [07:01:14]Read from MH i2c: 01 07 00 [07:01:14]MH_I2C_Read... [07:01:14]Read from MH i2c: 01 07 00 14 5D 00 00 00 00 00 B9 0C 3D [07:01:14]RasterBufferAndPrint [07:01:14]line [07:01:14]line [07:01:14]line [07:01:14]line [07:01:14]line [07:01:14]written 0, free lines is 3263 [07:01:14]MH_Cut [07:01:14]Write to MH i2c: D1 01 00 1B 5D 01 4A [07:01:14]Write i2c OK [07:01:14]MH_I2C_Read... [07:01:14]Read from MH i2c: D1 [07:01:14]MH_I2C_Read... [07:01:14]Read from MH i2c: D1 01 00 [07:01:14]MH_I2C_Read... [07:01:14]Read from MH i2c: D1 01 00 1B 5D 00 49 [07:01:14]Write to MH i2c: 01 00 00 1C 5D 79 [07:01:14]Write i2c OK [07:01:14]MH_I2C_Read... [07:01:14]OFD Sender: No OFD packet to send [07:01:15]*** Cut start [07:01:15]*** Partial cut [07:01:15]*** CUTSNS_PIN = 1 [07:01:15]*** CUTSNS_PIN = 0 [07:01:15]*** Brake cut motor [07:01:15]Read from MH i2c: 01 [07:01:15]MH_I2C_Read... [07:01:15]*** Stop cut motor [07:01:15]*** Cut end [07:01:15]Read from MH i2c: 01 07 00 [07:01:15]MH_I2C_Read... [07:01:15]Read from MH i2c: 01 07 00 1C 5D 00 00 00 00 00 FF 0F 8E [07:01:15]process_action close_receipt done [07:01:15]requested_data is exist [07:01:15]produce_requested_data [07:01:15]requested_item fm.sn is exist - process it [07:01:15]wFMCommunicate request_size=4 [07:01:15]MH_SAM_APDU [07:01:15]CAPDU: 80 11 00 00 [07:01:15]Write to MH i2c: E2 08 00 1D 5D 80 11 00 00 00 00 00 00 F4 [07:01:15]Write i2c OK [07:01:15]MH_I2C_Read... [07:01:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:01:15]Read from MH i2c: E2 [07:01:15]MH_I2C_Read... [07:01:15]Read from MH i2c: E2 17 00 [07:01:15]MH_I2C_Read... [07:01:15]Read from MH i2c: E2 17 00 1D 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 43 [07:01:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:01:15]wFMCommunicate OK [07:01:15]requested_item fd.num is exist - process it [07:01:15]SAM_PROTO_GetFieldsCounters [07:01:15]wFMCommunicate request_size=4 [07:01:15]MH_SAM_APDU [07:01:15]CAPDU: 80 13 00 00 [07:01:15]Write to MH i2c: E2 08 00 1E 5D 80 13 00 00 00 00 00 00 F7 [07:01:15]Write i2c OK [07:01:15]MH_I2C_Read... [07:01:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:01:16]Read from MH i2c: E2 [07:01:16]MH_I2C_Read... [07:01:16]Read from MH i2c: E2 62 00 [07:01:16]MH_I2C_Read... [07:01:16]Read from MH i2c: E2 62 00 1E 5D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 9C 6F 00 00 0E 04 04 00 71 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 F0 [07:01:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 9C 6F 00 00 0E 04 04 00 71 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:01:16]wFMCommunicate OK [07:01:16]SAM_PROTO_GetFieldsCounters done [07:01:16]requested_item shift.num is exist - process it [07:01:16]requested_item shift.opened is exist - process it [07:01:16]req_shift_opened [07:01:16]FM_GetShiftState [07:01:16]SAM_PROTO_GetShiftState [07:01:16]wFMCommunicate request_size=4 [07:01:16]MH_SAM_APDU [07:01:16]CAPDU: 80 13 01 00 [07:01:16]Write to MH i2c: E2 08 00 1F 5D 80 13 01 00 00 00 00 00 F9 [07:01:16]Write i2c OK [07:01:16]MH_I2C_Read... [07:01:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:01:16]Read from MH i2c: E2 [07:01:16]MH_I2C_Read... [07:01:16]Read from MH i2c: E2 0E 00 [07:01:16]MH_I2C_Read... [07:01:16]Read from MH i2c: E2 0E 00 1F 5D 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 0A [07:01:16]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [07:01:16]wFMCommunicate OK [07:01:16]SAM_PROTO_GetShiftState done [07:01:16]FM_GetShiftState done [07:01:16]req_shift_opened done [07:01:16]requested_item shift.open_date is exist - process it [07:01:16]req_shift_open_date [07:01:16]req_shift_open_date done [07:01:16]produce_requested_data done [07:01:16]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28572,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [07:01:16]process_action_free close_receipt [07:01:16]json_value_free [07:01:16]json_value_free done [07:01:16]process_json_proto returns [07:01:16]Send response to host [07:01:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28572,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [07:01:16]free response buf [07:01:16]execute_script done [07:01:16]execute_script returns [07:01:16]free content buf [07:01:16]Sock 9.Close socket [07:01:16]Sock 9.Thread stoped [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:15]accept exits with 7 [07:05:15]New connection [07:05:15]New thread 3066498404 created [07:05:15]Thread 3066641764 joined [07:05:15]Waiting for new connection... [07:05:15] Sock 7.Parse request [07:05:15]Sock 7.Check first char [07:05:15]Sock 7.First char is OK [07:05:15]request: POST /json_proto HTTP/1.0 [07:05:15]Method: POST [07:05:15]URL: /json_proto [07:05:15]Method is POST - this is cgi request [07:05:15]url: /json_proto [07:05:15]query_string will be loaded in cgi processing [07:05:15]execute_cgi json_proto POST (null) [07:05:15]execute_cgi path=json_proto method=POST [07:05:15]POST find Content-Length [07:05:15]Host: 172.17.33.3:8080 [07:05:15]Content-Length: 682 [07:05:15]Content-Type: application/json [07:05:15] [07:05:15]POST finish read [07:05:15]Found Content-Length = 682 [07:05:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346880", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 32.250, "sum" : 2073.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2300.00, "total" : 2073.00, "payments": [ { "type": 0, "sum" : 2073.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:05:15]execute_script... [07:05: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)346880", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 32.250, "sum" : 2073.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2300.00, "total" : 2073.00, "payments": [ { "type": 0, "sum" : 2073.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:05:15]POST & json_proto [07:05:15]process_json_proto [07:05:15]json parsed OK: [07:05:15]protocol is kg_v1.0 [07:05:15]action value=close_receipt [07:05:15]process_action close_receipt [07:05:15]cmd_close_receipt [07:05:15]MH_GetDate [07:05:15]Write to MH i2c: F0 00 00 20 5D 6C [07:05:15]Write i2c OK [07:05:15]MH_I2C_Read... [07:05:15]Read from MH i2c: F0 [07:05:15]MH_I2C_Read... [07:05:15]Read from MH i2c: F0 09 00 [07:05:15]MH_I2C_Read... [07:05:15]Read from MH i2c: F0 09 00 20 5D 00 32 DD 18 66 23 5B 8F 65 74 [07:05:15]GetLastDocTimeStamp 1712905278 [07:05:15]current date 1712905522 [07:05:15]FM_GetShiftState [07:05:15]SAM_PROTO_GetShiftState [07:05:15]wFMCommunicate request_size=4 [07:05:15]MH_SAM_APDU [07:05:15]CAPDU: 80 13 01 00 [07:05:15]Write to MH i2c: E2 08 00 21 5D 80 13 01 00 00 00 00 00 FB [07:05:15]Write i2c OK [07:05:15]MH_I2C_Read... [07:05:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:05:15]Read from MH i2c: E2 [07:05:15]MH_I2C_Read... [07:05:15]Read from MH i2c: E2 0E 00 [07:05:15]MH_I2C_Read... [07:05:15]Read from MH i2c: E2 0E 00 21 5D 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 0C [07:05:15]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [07:05:15]wFMCommunicate OK [07:05:15]SAM_PROTO_GetShiftState done [07:05:15]FM_GetShiftState done [07:05:15]opened in 1712881416 [07:05:15]opened+sec_in_day 1712967816 [07:05:15]quantity*price = 207367 [07:05:15]sum+1 = 207369 [07:05:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.68 ИТОГО: 2073.00 Внесено: 2300.00 СДАЧА: 227.00 НСП 1% : 18.35 НДС 12% : 220.21 Наличными: 2073.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 22 12.04.2024 07:05 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28573 ФПД: 40177595556778 1/tax-web-control/client/api/v1/ticket?date=20240412T070522&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28573&fm=40177595556778&tin=02508201610067®Number=0000138879044617&sum=207300 [07:05:17]StoreToDocumentArchive [07:05:17]shift 113 fd 28573 [07:05:17]save to /storage/0113/doc_00028573 [07:05:17]save last doc name /storage/0113/doc_00028573 to /storage/kkm_last_doc_name [07:05:17]save OK [07:05:17]Clear old archive folders... [07:05:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:05:17]tlvbuf is 01AD7AF0 [07:05:17]SAM_PROTO_ClearQueue [07:05:17]wFMCommunicate request_size=4 [07:05:17]MH_SAM_APDU [07:05:17]CAPDU: 80 09 00 00 [07:05:17]Write to MH i2c: E2 08 00 2E 5D 80 09 00 00 00 00 00 00 FD [07:05:17]Write i2c OK [07:05:17]MH_I2C_Read... [07:05:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:05:17]Read from MH i2c: E2 [07:05:17]MH_I2C_Read... [07:05:17]Read from MH i2c: E2 03 00 [07:05:17]MH_I2C_Read... [07:05:17]Read from MH i2c: E2 03 00 2E 5D 00 90 00 FF [07:05:17]RAPDU: 90 00 [07:05:17]wFMCommunicate OK [07:05:17]SAM_PROTO_ClearQueue done [07:05:17]KKMCreateOFDPacket [07:05:17]OFDProtocolAddRootSTLVToBuf [07:05:17]FM_MakeSignedData [07:05:17]FM_MakeSignedData [07:05:17]SAM_PROTO_SignData [07:05:17]wFMCommunicate request_size=4 [07:05:17]MH_SAM_APDU [07:05:17]CAPDU: 80 0D 01 02 [07:05:17]Write to MH i2c: E2 08 00 2F 5D 80 0D 01 02 00 00 00 00 05 [07:05:17]Write i2c OK [07:05:17]MH_I2C_Read... [07:05:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:05:17]Read from MH i2c: E2 [07:05:17]MH_I2C_Read... [07:05:17]Read from MH i2c: E2 03 00 [07:05:17]MH_I2C_Read... [07:05:17]Read from MH i2c: E2 03 00 2F 5D 00 90 00 00 [07:05:17]RAPDU: 90 00 [07:05:17]wFMCommunicate OK [07:05:17]wFMCommunicate request_size=255 [07:05:17]MH_SAM_APDU [07:05:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FA 7D 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 08 2A 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 29 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 05 56 00 00 00 00 07 04 06 00 C4 29 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 32 DD 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9D 6F 00 00 35 04 06 00 24 [07:05:17]Write to MH i2c: E2 02 01 30 5D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FA 7D 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 08 2A 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 29 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 05 56 00 00 00 00 07 04 06 00 C4 29 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 32 DD 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9D 6F 00 00 35 04 06 00 24 00 00 C0 [07:05:17]Write i2c OK [07:05:17]MH_I2C_Read... [07:05:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:05:17]Read from MH i2c: E2 [07:05:17]MH_I2C_Read... [07:05:17]Read from MH i2c: E2 03 00 [07:05:17]MH_I2C_Read... [07:05:17]Read from MH i2c: E2 03 00 30 5D 00 90 00 01 [07:05:17]RAPDU: 90 00 [07:05:17]wFMCommunicate OK [07:05:17]wFMCommunicate request_size=10 [07:05:17]MH_SAM_APDU [07:05:17]CAPDU: 80 0D 02 02 05 8A 93 4F A3 AA [07:05:17]Write to MH i2c: E2 0D 00 31 5D 80 0D 02 02 05 00 8A 93 4F A3 AA 00 00 CB [07:05:17]Write i2c OK [07:05:17]MH_I2C_Read... [07:05:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:05:17]Read from MH i2c: E2 [07:05:17]MH_I2C_Read... [07:05:17]Read from MH i2c: E2 03 00 [07:05:17]MH_I2C_Read... [07:05:17]Read from MH i2c: E2 03 00 31 5D 00 90 00 02 [07:05:17]RAPDU: 90 00 [07:05:17]wFMCommunicate OK [07:05:17]wFMCommunicate request_size=4 [07:05:17]MH_SAM_APDU [07:05:17]CAPDU: 80 0D 03 02 [07:05:17]Write to MH i2c: E2 08 00 32 5D 80 0D 03 02 00 00 00 00 0A [07:05:17]Write i2c OK [07:05:17]MH_I2C_Read... [07:05:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:05:17]Read from MH i2c: E2 [07:05:17]MH_I2C_Read... [07:05:17]Read from MH i2c: E2 0B 00 [07:05:17]MH_I2C_Read... [07:05:17]Read from MH i2c: E2 0B 00 32 5D 00 17 14 A9 6E 7F 11 C8 FC 90 00 A1 [07:05:17]RAPDU: 17 14 A9 6E 7F 11 C8 FC 90 00 [07:05:17]wFMCommunicate OK [07:05:17]SAM_PROTO_SignData done [07:05:17]FM_MakeSignedData done [07:05:17]CreateOFDProtocolMessage [07:05:17]wFMCommunicate request_size=4 [07:05:17]MH_SAM_APDU [07:05:17]CAPDU: 80 11 00 00 [07:05:17]Write to MH i2c: E2 08 00 33 5D 80 11 00 00 00 00 00 00 0A [07:05:17]Write i2c OK [07:05:17]MH_I2C_Read... [07:05:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:05:17]Read from MH i2c: E2 [07:05:17]MH_I2C_Read... [07:05:17]Read from MH i2c: E2 17 00 [07:05:17]MH_I2C_Read... [07:05:17]Read from MH i2c: E2 17 00 33 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 59 [07:05:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:05:17]wFMCommunicate OK [07:05:17]CreateOFDProtocolMessage done [07:05:17]OFDSenderStorePacket 28573 [07:05:17]StoreOFDPacket docnum=28573 [07:05:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 20 AE 07 01 F3 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 35 FF 03 08 00 03 FA 7D 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 08 2A 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 29 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 05 56 00 00 00 00 07 04 06 00 C4 29 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 32 DD 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9D 6F 00 00 35 04 06 00 24 8A 93 4F A3 AA 17 14 A9 6E 7F 11 C8 FC [07:05:17]CheckFolder [07:05:17]dirname=/storage/ofd_packets [07:05:17]CheckFolder done [07:05:17]ProducePacketName [07:05:17]name=ofd_packets/00028573 [07:05:17]NVStorageSaveData ofd_packets/00028573 [07:05:17]File name is /storage/ofd_packets/00028573 [07:05:17]Write 301 bytes [07:05:17]NVStorageSaveData done [07:05:17]OFDSenderStorePacket done [07:05:17]KKMCreateOFDPacket done [07:05:17]NVStorageSaveData kkm_last_timestamp [07:05:17]File name is /storage/kkm_last_timestamp [07:05:17]Write 4 bytes [07:05:17]NVStorageSaveData done [07:05:17]ExternCall_PrintAddStr [07:05:17]wPrintStart [07:05:17]Write to MH i2c: 01 00 00 34 5D 91 [07:05:17]Write i2c OK [07:05:17]MH_I2C_Read... [07:05:17]Read from MH i2c: 01 [07:05:17]MH_I2C_Read... [07:05:17]Read from MH i2c: 01 07 00 [07:05:17]MH_I2C_Read... [07:05:17]Read from MH i2c: 01 07 00 34 5D 00 00 00 00 00 FF 0F A6 [07:05:17]RasterBufferAndPrint [07:05:17]line Счет N : (1)346880 [07:05:17]line ИНН: 02508201610067 [07:05:17]line Контрольно-Кассовый Чек [07:05:17]line ПРОДАЖА [07:05:17]line ТРК (МРК, ГНК) : 23 [07:05:17]line Товар: 2710124130 [07:05:17]line Аи-92-К-5 [07:05:17]line 32.250 * 64.30 [07:05:17]line = 2073.68 [07:05:17]line НДС 12% НСП 1% [07:05:17]line > о реализуемом товаре [07:05:17]line ОКРУГЛЕНИЕ: -0.68 [07:05:17]line ИТОГО: 2073.00 [07:05:17]line Внесено: 2300.00 [07:05:17]line СДАЧА: 227.00 [07:05:17]line НСП 1% : 18.35 [07:05:17]line НДС 12% : 220.21 [07:05:17]line Наличными: 2073.00 [07:05:17]line Безнал.: 0.00 [07:05:17]line Место: АЗС № 108 "Партнер Нефть" [07:05:17]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [07:05:17]line СНО: Общий режим [07:05:17]line Чек 22 12.04.2024 07:05 [07:05:17]line Смена: 113 ФФД: 1.0 [07:05:17]line ЗНМ: 0300000027 [07:05:17]line РНМ: 0000138879044617 [07:05:17]line Версия ККМ: 001 [07:05:17]line ФМ: 0000000000963154 [07:05:17]line ФД: 28573 [07:05:17]line ФПД: 40177595556778 [07:05:17]line 1/tax-web-control/client/api/v1/ticket?date=20240412T070522&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28573&fm=40177595556778&tin=02508201610067®Number=0000138879044617&sum=207300 [07:05:17]OFD Sender: Processing packet 28573 [packets to send 8, broken 7] [07:05:17]ProducePacketName [07:05:17]name=ofd_packets/00028573 [07:05:17]OFD Sender: To server: pG, [07:05:17]CommunicateWithHost lk.salyk.kg:30040 [07:05:17]ConnectInit lk.salyk.kg [07:05:17]written 0, free lines is 4095 [07:05:18]Connected sock=11 [07:05:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 20 AE 07 01 F3 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 35 FF 03 08 00 03 FA 7D 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 08 2A 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 29 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 05 56 00 00 00 00 07 04 06 00 C4 29 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 32 DD 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9D 6F 00 00 35 04 06 00 24 8A 93 4F A3 AA 17 14 A9 6E 7F 11 C8 FC [07:05:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 26 DC 47 00 17 ED A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9D 6F 00 00 F4 03 04 00 DD 87 18 66 B6 04 01 00 00 DE 19 35 E0 9B 32 18 13 [07:05:18]CommunicateWithHost err = 0 [07:05:18]CheckOFDResponse [07:05:18]1017 (14) - 77093643461234 [07:05:18]1041 (16) - 0000000000963154 [07:05:18]1040 (4) - 28573 [07:05:18]1012 (4) - 12.04.2024 01:01 [07:05:18]1206 (1) - 0 [07:05:18]OFD Sender: Remove packet 28573 [07:05:18]ProducePacketName [07:05:18]name=ofd_packets/00028573 [07:05:18]NVStorageDeleteData [07:05:18]Write to MH i2c: 01 00 00 5E 5D BB [07:05:18]Write i2c OK [07:05:18]MH_I2C_Read... [07:05:18]Read from MH i2c: 01 [07:05:18]MH_I2C_Read... [07:05:18]Read from MH i2c: 01 07 00 [07:05:18]MH_I2C_Read... [07:05:18]Read from MH i2c: 01 07 00 5E 5D 00 00 00 00 00 C6 0C 94 [07:05:18]RasterBufferAndPrint [07:05:18]line [07:05:18]line [07:05:18]line [07:05:18]line [07:05:18]line [07:05:18]written 0, free lines is 3274 [07:05:18]MH_Cut [07:05:18]Write to MH i2c: D1 01 00 65 5D 01 94 [07:05:18]Write i2c OK [07:05:18]MH_I2C_Read... [07:05:18]Read from MH i2c: D1 [07:05:18]MH_I2C_Read... [07:05:18]Read from MH i2c: D1 01 00 [07:05:18]MH_I2C_Read... [07:05:18]Read from MH i2c: D1 01 00 65 5D 00 93 [07:05:18]Write to MH i2c: 01 00 00 66 5D C3 [07:05:18]Write i2c OK [07:05:18]MH_I2C_Read... [07:05:18]OFD Sender: No OFD packet to send [07:05:19]*** Cut start [07:05:19]*** Partial cut [07:05:19]*** CUTSNS_PIN = 1 [07:05:19]*** CUTSNS_PIN = 0 [07:05:19]*** Brake cut motor [07:05:19]Read from MH i2c: 01 [07:05:19]MH_I2C_Read... [07:05:19]*** Stop cut motor [07:05:19]*** Cut end [07:05:19]Read from MH i2c: 01 07 00 [07:05:19]MH_I2C_Read... [07:05:19]Read from MH i2c: 01 07 00 66 5D 00 00 00 00 00 FF 0F D8 [07:05:19]process_action close_receipt done [07:05:19]requested_data is exist [07:05:19]produce_requested_data [07:05:19]requested_item fm.sn is exist - process it [07:05:19]wFMCommunicate request_size=4 [07:05:19]MH_SAM_APDU [07:05:19]CAPDU: 80 11 00 00 [07:05:19]Write to MH i2c: E2 08 00 67 5D 80 11 00 00 00 00 00 00 3E [07:05:19]Write i2c OK [07:05:19]MH_I2C_Read... [07:05:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:05:19]Read from MH i2c: E2 [07:05:19]MH_I2C_Read... [07:05:19]Read from MH i2c: E2 17 00 [07:05:19]MH_I2C_Read... [07:05:19]Read from MH i2c: E2 17 00 67 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 8D [07:05:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:05:19]wFMCommunicate OK [07:05:19]requested_item fd.num is exist - process it [07:05:19]SAM_PROTO_GetFieldsCounters [07:05:19]wFMCommunicate request_size=4 [07:05:19]MH_SAM_APDU [07:05:19]CAPDU: 80 13 00 00 [07:05:19]Write to MH i2c: E2 08 00 68 5D 80 13 00 00 00 00 00 00 41 [07:05:19]Write i2c OK [07:05:19]MH_I2C_Read... [07:05:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:05:20]Read from MH i2c: E2 [07:05:20]MH_I2C_Read... [07:05:20]Read from MH i2c: E2 62 00 [07:05:20]MH_I2C_Read... [07:05:20]Read from MH i2c: E2 62 00 68 5D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 9D 6F 00 00 0E 04 04 00 71 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 3E [07:05:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 9D 6F 00 00 0E 04 04 00 71 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 [07:05:20]wFMCommunicate OK [07:05:20]SAM_PROTO_GetFieldsCounters done [07:05:20]requested_item shift.num is exist - process it [07:05:20]requested_item shift.opened is exist - process it [07:05:20]req_shift_opened [07:05:20]FM_GetShiftState [07:05:20]SAM_PROTO_GetShiftState [07:05:20]wFMCommunicate request_size=4 [07:05:20]MH_SAM_APDU [07:05:20]CAPDU: 80 13 01 00 [07:05:20]Write to MH i2c: E2 08 00 69 5D 80 13 01 00 00 00 00 00 43 [07:05:20]Write i2c OK [07:05:20]MH_I2C_Read... [07:05:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:05:20]Read from MH i2c: E2 [07:05:20]MH_I2C_Read... [07:05:20]Read from MH i2c: E2 0E 00 [07:05:20]MH_I2C_Read... [07:05:20]Read from MH i2c: E2 0E 00 69 5D 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 54 [07:05:20]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [07:05:20]wFMCommunicate OK [07:05:20]SAM_PROTO_GetShiftState done [07:05:20]FM_GetShiftState done [07:05:20]req_shift_opened done [07:05:20]requested_item shift.open_date is exist - process it [07:05:20]req_shift_open_date [07:05:20]req_shift_open_date done [07:05:20]produce_requested_data done [07:05:20]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28573,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [07:05:20]process_action_free close_receipt [07:05:20]json_value_free [07:05:20]json_value_free done [07:05:20]process_json_proto returns [07:05:20]Send response to host [07:05:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28573,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [07:05:20]free response buf [07:05:20]execute_script done [07:05:20]execute_script returns [07:05:20]free content buf [07:05:20]Sock 7.Close socket [07:05:20]Sock 7.Thread stoped [07:05:23]OFD Sender: No OFD packet to send [07:05:28]OFD Sender: No OFD packet to send [07:05:33]OFD Sender: No OFD packet to send [07:05:38]OFD Sender: No OFD packet to send [07:05:43]OFD Sender: No OFD packet to send [07:05:48]OFD Sender: No OFD packet to send [07:05:53]OFD Sender: No OFD packet to send [07:05:58]OFD Sender: No OFD packet to send [07:06:03]OFD Sender: No OFD packet to send [07:06:08]OFD Sender: No OFD packet to send [07:06:13]OFD Sender: No OFD packet to send [07:06:18]OFD Sender: No OFD packet to send [07:06:23]OFD Sender: No OFD packet to send [07:06:28]OFD Sender: No OFD packet to send [07:06:33]OFD Sender: No OFD packet to send [07:06:38]OFD Sender: No OFD packet to send [07:06:43]OFD Sender: No OFD packet to send [07:06:48]OFD Sender: No OFD packet to send [07:06:53]OFD Sender: No OFD packet to send [07:06:58]OFD Sender: No OFD packet to send [07:07:03]OFD Sender: No OFD packet to send [07:07:08]OFD Sender: No OFD packet to send [07:07:13]OFD Sender: No OFD packet to send [07:07:18]OFD Sender: No OFD packet to send [07:07:23]OFD Sender: No OFD packet to send [07:07:28]OFD Sender: No OFD packet to send [07:07:33]OFD Sender: No OFD packet to send [07:07:38]OFD Sender: No OFD packet to send [07:07:43]OFD Sender: No OFD packet to send [07:07:48]OFD Sender: No OFD packet to send [07:07:53]OFD Sender: No OFD packet to send [07:07:58]OFD Sender: No OFD packet to send [07:08:03]OFD Sender: No OFD packet to send [07:08:08]OFD Sender: No OFD packet to send [07:08:13]OFD Sender: No OFD packet to send [07:08:18]OFD Sender: No OFD packet to send [07:08:23]OFD Sender: No OFD packet to send [07:08:28]OFD Sender: No OFD packet to send [07:08:33]OFD Sender: No OFD packet to send [07:08:38]OFD Sender: No OFD packet to send [07:08:43]OFD Sender: No OFD packet to send [07:08:48]OFD Sender: No OFD packet to send [07:08:53]OFD Sender: No OFD packet to send [07:08:58]OFD Sender: No OFD packet to send [07:09:03]OFD Sender: No OFD packet to send [07:09:08]OFD Sender: No OFD packet to send [07:09:13]OFD Sender: No OFD packet to send [07:09:18]OFD Sender: No OFD packet to send [07:09:23]OFD Sender: No OFD packet to send [07:09:28]OFD Sender: No OFD packet to send [07:09:33]OFD Sender: No OFD packet to send [07:09:38]OFD Sender: No OFD packet to send [07:09:43]OFD Sender: No OFD packet to send [07:09:48]OFD Sender: No OFD packet to send [07:09:53]OFD Sender: No OFD packet to send [07:09:58]OFD Sender: No OFD packet to send [07:10:03]OFD Sender: No OFD packet to send [07:10:08]OFD Sender: No OFD packet to send [07:10:13]OFD Sender: No OFD packet to send [07:10:18]OFD Sender: No OFD packet to send [07:10:23]OFD Sender: No OFD packet to send [07:10:28]OFD Sender: No OFD packet to send [07:10:33]OFD Sender: No OFD packet to send [07:10:38]OFD Sender: No OFD packet to send [07:10:43]OFD Sender: No OFD packet to send [07:10:48]OFD Sender: No OFD packet to send [07:10:53]OFD Sender: No OFD packet to send [07:10:58]OFD Sender: No OFD packet to send [07:11:03]OFD Sender: No OFD packet to send [07:11:08]OFD Sender: No OFD packet to send [07:11:13]OFD Sender: No OFD packet to send [07:11:18]OFD Sender: No OFD packet to send [07:11:23]OFD Sender: No OFD packet to send [07:11:28]OFD Sender: No OFD packet to send [07:11:33]OFD Sender: No OFD packet to send [07:11:38]OFD Sender: No OFD packet to send [07:11:43]OFD Sender: No OFD packet to send [07:11:48]OFD Sender: No OFD packet to send [07:11:50]accept exits with 9 [07:11:50]New connection [07:11:50]New thread 3066641764 created [07:11:50]Thread 3066498404 joined [07:11:50]Waiting for new connection... [07:11:50] Sock 9.Parse request [07:11:50]Sock 9.Check first char [07:11:50]Sock 9.First char is OK [07:11:50]request: POST /json_proto HTTP/1.0 [07:11:50]Method: POST [07:11:50]URL: /json_proto [07:11:50]Method is POST - this is cgi request [07:11:50]url: /json_proto [07:11:50]query_string will be loaded in cgi processing [07:11:50]execute_cgi json_proto POST (null) [07:11:50]execute_cgi path=json_proto method=POST [07:11:50]POST find Content-Length [07:11:50]Host: 172.17.33.3:8080 [07:11:50]Content-Length: 682 [07:11:50]Content-Type: application/json [07:11:50] [07:11:50]POST finish read [07:11:50]Found Content-Length = 682 [07:11:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346881", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 15.560, "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:11:50]execute_script... [07:11:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346881", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 15.560, "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:11:50]POST & json_proto [07:11:50]process_json_proto [07:11:50]json parsed OK: [07:11:50]protocol is kg_v1.0 [07:11:50]action value=close_receipt [07:11:50]process_action close_receipt [07:11:50]cmd_close_receipt [07:11:50]MH_GetDate [07:11:50]Write to MH i2c: F0 00 00 6A 5D B6 [07:11:50]Write i2c OK [07:11:50]MH_I2C_Read... [07:11:50]Read from MH i2c: F0 [07:11:50]MH_I2C_Read... [07:11:50]Read from MH i2c: F0 09 00 [07:11:50]MH_I2C_Read... [07:11:50]Read from MH i2c: F0 09 00 6A 5D 00 BD DE 18 66 23 5B 8F 65 4A [07:11:50]GetLastDocTimeStamp 1712905522 [07:11:50]current date 1712905917 [07:11:50]FM_GetShiftState [07:11:50]SAM_PROTO_GetShiftState [07:11:50]wFMCommunicate request_size=4 [07:11:50]MH_SAM_APDU [07:11:50]CAPDU: 80 13 01 00 [07:11:50]Write to MH i2c: E2 08 00 6B 5D 80 13 01 00 00 00 00 00 45 [07:11:50]Write i2c OK [07:11:50]MH_I2C_Read... [07:11:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:11:50]Read from MH i2c: E2 [07:11:50]MH_I2C_Read... [07:11:50]Read from MH i2c: E2 0E 00 [07:11:50]MH_I2C_Read... [07:11:50]Read from MH i2c: E2 0E 00 6B 5D 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 56 [07:11:50]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [07:11:50]wFMCommunicate OK [07:11:50]SAM_PROTO_GetShiftState done [07:11:50]FM_GetShiftState done [07:11:50]opened in 1712881416 [07:11:50]opened+sec_in_day 1712967816 [07:11:50]quantity*price = 100050 [07:11:50]sum+1 = 100052 [07:11:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 23 12.04.2024 07:11 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28574 ФПД: 250971669336558 1/tax-web-control/client/api/v1/ticket?date=20240412T071157&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28574&fm=250971669336558&tin=02508201610067®Number=0000138879044617&sum=100000 [07:11:51]StoreToDocumentArchive [07:11:51]shift 113 fd 28574 [07:11:51]save to /storage/0113/doc_00028574 [07:11:51]save last doc name /storage/0113/doc_00028574 to /storage/kkm_last_doc_name [07:11:51]save OK [07:11:51]Clear old archive folders... [07:11:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:11:51]tlvbuf is 01A97F30 [07:11:51]SAM_PROTO_ClearQueue [07:11:51]wFMCommunicate request_size=4 [07:11:51]MH_SAM_APDU [07:11:51]CAPDU: 80 09 00 00 [07:11:51]Write to MH i2c: E2 08 00 78 5D 80 09 00 00 00 00 00 00 47 [07:11:51]Write i2c OK [07:11:51]MH_I2C_Read... [07:11:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:11:51]Read from MH i2c: E2 [07:11:51]MH_I2C_Read... [07:11:51]Read from MH i2c: E2 03 00 [07:11:51]MH_I2C_Read... [07:11:51]Read from MH i2c: E2 03 00 78 5D 00 90 00 49 [07:11:51]RAPDU: 90 00 [07:11:51]wFMCommunicate OK [07:11:51]SAM_PROTO_ClearQueue done [07:11:51]KKMCreateOFDPacket [07:11:51]OFDProtocolAddRootSTLVToBuf [07:11:51]FM_MakeSignedData [07:11:51]FM_MakeSignedData [07:11:51]SAM_PROTO_SignData [07:11:51]wFMCommunicate request_size=4 [07:11:51]MH_SAM_APDU [07:11:51]CAPDU: 80 0D 01 02 [07:11:51]Write to MH i2c: E2 08 00 79 5D 80 0D 01 02 00 00 00 00 4F [07:11:51]Write i2c OK [07:11:51]MH_I2C_Read... [07:11:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:11:51]Read from MH i2c: E2 [07:11:51]MH_I2C_Read... [07:11:51]Read from MH i2c: E2 03 00 [07:11:51]MH_I2C_Read... [07:11:51]Read from MH i2c: E2 03 00 79 5D 00 90 00 4A [07:11:51]RAPDU: 90 00 [07:11:51]wFMCommunicate OK [07:11:51]wFMCommunicate request_size=255 [07:11:51]MH_SAM_APDU [07:11:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 17 00 00 00 F4 03 04 00 BD DE 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9E 6F 00 00 35 04 06 00 E4 [07:11:51]Write to MH i2c: E2 02 01 7A 5D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 17 00 00 00 F4 03 04 00 BD DE 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9E 6F 00 00 35 04 06 00 E4 00 00 0D [07:11:51]Write i2c OK [07:11:51]MH_I2C_Read... [07:11:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:11:51]Read from MH i2c: E2 [07:11:51]MH_I2C_Read... [07:11:51]Read from MH i2c: E2 03 00 [07:11:51]MH_I2C_Read... [07:11:51]Read from MH i2c: E2 03 00 7A 5D 00 90 00 4B [07:11:51]RAPDU: 90 00 [07:11:51]wFMCommunicate OK [07:11:51]wFMCommunicate request_size=10 [07:11:51]MH_SAM_APDU [07:11:51]CAPDU: 80 0D 02 02 05 41 E5 33 11 EE [07:11:51]Write to MH i2c: E2 0D 00 7B 5D 80 0D 02 02 05 00 41 E5 33 11 EE 00 00 B4 [07:11:51]Write i2c OK [07:11:51]MH_I2C_Read... [07:11:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:11:51]Read from MH i2c: E2 [07:11:51]MH_I2C_Read... [07:11:51]Read from MH i2c: E2 03 00 [07:11:51]MH_I2C_Read... [07:11:51]Read from MH i2c: E2 03 00 7B 5D 00 90 00 4C [07:11:51]RAPDU: 90 00 [07:11:51]wFMCommunicate OK [07:11:51]wFMCommunicate request_size=4 [07:11:51]MH_SAM_APDU [07:11:51]CAPDU: 80 0D 03 02 [07:11:51]Write to MH i2c: E2 08 00 7C 5D 80 0D 03 02 00 00 00 00 54 [07:11:51]Write i2c OK [07:11:51]MH_I2C_Read... [07:11:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:11:51]Read from MH i2c: E2 [07:11:51]MH_I2C_Read... [07:11:51]Read from MH i2c: E2 0B 00 [07:11:51]MH_I2C_Read... [07:11:51]Read from MH i2c: E2 0B 00 7C 5D 00 F5 7B 44 E2 96 AE D9 A7 90 00 AF [07:11:51]RAPDU: F5 7B 44 E2 96 AE D9 A7 90 00 [07:11:51]wFMCommunicate OK [07:11:51]SAM_PROTO_SignData done [07:11:51]FM_MakeSignedData done [07:11:51]CreateOFDProtocolMessage [07:11:51]wFMCommunicate request_size=4 [07:11:51]MH_SAM_APDU [07:11:51]CAPDU: 80 11 00 00 [07:11:51]Write to MH i2c: E2 08 00 7D 5D 80 11 00 00 00 00 00 00 54 [07:11:51]Write i2c OK [07:11:51]MH_I2C_Read... [07:11:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:11:51]Read from MH i2c: E2 [07:11:51]MH_I2C_Read... [07:11:51]Read from MH i2c: E2 17 00 [07:11:51]MH_I2C_Read... [07:11:51]Read from MH i2c: E2 17 00 7D 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 A3 [07:11:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:11:51]wFMCommunicate OK [07:11:51]CreateOFDProtocolMessage done [07:11:51]OFDSenderStorePacket 28574 [07:11:51]StoreOFDPacket docnum=28574 [07:11:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 D6 EA 07 01 5E 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 17 00 00 00 F4 03 04 00 BD DE 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9E 6F 00 00 35 04 06 00 E4 41 E5 33 11 EE F5 7B 44 E2 96 AE D9 A7 [07:11:51]CheckFolder [07:11:51]dirname=/storage/ofd_packets [07:11:51]CheckFolder done [07:11:51]ProducePacketName [07:11:51]name=ofd_packets/00028574 [07:11:51]NVStorageSaveData ofd_packets/00028574 [07:11:51]File name is /storage/ofd_packets/00028574 [07:11:51]Write 301 bytes [07:11:51]NVStorageSaveData done [07:11:51]OFDSenderStorePacket done [07:11:51]KKMCreateOFDPacket done [07:11:51]NVStorageSaveData kkm_last_timestamp [07:11:51]File name is /storage/kkm_last_timestamp [07:11:51]Write 4 bytes [07:11:51]NVStorageSaveData done [07:11:51]ExternCall_PrintAddStr [07:11:51]wPrintStart [07:11:51]Write to MH i2c: 01 00 00 7E 5D DB [07:11:51]Write i2c OK [07:11:51]MH_I2C_Read... [07:11:51]Read from MH i2c: 01 [07:11:51]MH_I2C_Read... [07:11:51]Read from MH i2c: 01 07 00 [07:11:51]MH_I2C_Read... [07:11:51]Read from MH i2c: 01 07 00 7E 5D 00 00 00 00 00 FF 0F F0 [07:11:51]RasterBufferAndPrint [07:11:51]line Счет N : (1)346881 [07:11:51]line ИНН: 02508201610067 [07:11:51]line Контрольно-Кассовый Чек [07:11:51]line ПРОДАЖА [07:11:51]line ТРК (МРК, ГНК) : 32 [07:11:51]line Товар: 2710124130 [07:11:51]line Аи-92-К-5 [07:11:51]line 15.560 * 64.30 [07:11:51]line = 1000.51 [07:11:51]line НДС 12% НСП 1% [07:11:51]line > о реализуемом товаре [07:11:51]line ОКРУГЛЕНИЕ: -0.51 [07:11:51]line ИТОГО: 1000.00 [07:11:51]line Внесено: 1000.00 [07:11:51]line СДАЧА: 0.00 [07:11:51]line НСП 1% : 8.85 [07:11:51]line НДС 12% : 106.25 [07:11:51]line Наличными: 1000.00 [07:11:51]line Безнал.: 0.00 [07:11:51]line Место: АЗС № 108 "Партнер Нефть" [07:11:51]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [07:11:51]line СНО: Общий режим [07:11:51]line Чек 23 12.04.2024 07:11 [07:11:51]line Смена: 113 ФФД: 1.0 [07:11:51]line ЗНМ: 0300000027 [07:11:51]line РНМ: 0000138879044617 [07:11:51]line Версия ККМ: 001 [07:11:51]line ФМ: 0000000000963154 [07:11:51]line ФД: 28574 [07:11:51]line ФПД: 250971669336558 [07:11:52]line 1/tax-web-control/client/api/v1/ticket?date=20240412T071157&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28574&fm=250971669336558&tin=02508201610067®Number=0000138879044617&sum=100000 [07:11:52]OFD Sender: Processing packet 28574 [packets to send 8, broken 7] [07:11:52]ProducePacketName [07:11:52]name=ofd_packets/00028574 [07:11:52]OFD Sender: To server: pG, [07:11:52]CommunicateWithHost lk.salyk.kg:30040 [07:11:52]ConnectInit lk.salyk.kg [07:11:52]written 0, free lines is 4095 [07:11:52]Connected sock=10 [07:11:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 D6 EA 07 01 5E 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 17 00 00 00 F4 03 04 00 BD DE 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9E 6F 00 00 35 04 06 00 E4 41 E5 33 11 EE F5 7B 44 E2 96 AE D9 A7 [07:11:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 CB 7A 47 00 B7 5A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9E 6F 00 00 F4 03 04 00 68 89 18 66 B6 04 01 00 00 EA BC 97 BA B2 C4 A7 EA [07:11:52]CommunicateWithHost err = 0 [07:11:52]CheckOFDResponse [07:11:52]1017 (14) - 77093643461234 [07:11:52]1041 (16) - 0000000000963154 [07:11:52]1040 (4) - 28574 [07:11:52]1012 (4) - 12.04.2024 01:07 [07:11:52]1206 (1) - 0 [07:11:52]OFD Sender: Remove packet 28574 [07:11:52]ProducePacketName [07:11:52]name=ofd_packets/00028574 [07:11:52]NVStorageDeleteData [07:11:52]Write to MH i2c: 01 00 00 A8 5D 05 [07:11:52]Write i2c OK [07:11:52]MH_I2C_Read... [07:11:52]Read from MH i2c: 01 [07:11:52]MH_I2C_Read... [07:11:52]Read from MH i2c: 01 07 00 [07:11:52]MH_I2C_Read... [07:11:52]Read from MH i2c: 01 07 00 A8 5D 00 00 00 00 00 C1 0C D9 [07:11:52]RasterBufferAndPrint [07:11:52]line [07:11:52]line [07:11:52]line [07:11:52]line [07:11:52]line [07:11:52]written 0, free lines is 3269 [07:11:52]MH_Cut [07:11:52]Write to MH i2c: D1 01 00 AF 5D 01 DE [07:11:52]Write i2c OK [07:11:52]MH_I2C_Read... [07:11:52]Read from MH i2c: D1 [07:11:52]MH_I2C_Read... [07:11:52]Read from MH i2c: D1 01 00 [07:11:52]MH_I2C_Read... [07:11:52]Read from MH i2c: D1 01 00 AF 5D 00 DD [07:11:52]Write to MH i2c: 01 00 00 B0 5D 0D [07:11:52]Write i2c OK [07:11:52]MH_I2C_Read... [07:11:53]OFD Sender: No OFD packet to send [07:11:53]*** Cut start [07:11:53]*** Partial cut [07:11:53]*** CUTSNS_PIN = 1 [07:11:53]*** CUTSNS_PIN = 0 [07:11:53]*** Brake cut motor [07:11:54]Read from MH i2c: 01 [07:11:54]MH_I2C_Read... [07:11:54]*** Stop cut motor [07:11:54]*** Cut end [07:11:54]Read from MH i2c: 01 07 00 [07:11:54]MH_I2C_Read... [07:11:54]Read from MH i2c: 01 07 00 B0 5D 00 00 00 00 00 FF 0F 22 [07:11:54]process_action close_receipt done [07:11:54]requested_data is exist [07:11:54]produce_requested_data [07:11:54]requested_item fm.sn is exist - process it [07:11:54]wFMCommunicate request_size=4 [07:11:54]MH_SAM_APDU [07:11:54]CAPDU: 80 11 00 00 [07:11:54]Write to MH i2c: E2 08 00 B1 5D 80 11 00 00 00 00 00 00 88 [07:11:54]Write i2c OK [07:11:54]MH_I2C_Read... [07:11:54]Read from MH i2c: E2 [07:11:54]MH_I2C_Read... [07:11:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:11:54]Read from MH i2c: E2 17 00 [07:11:54]MH_I2C_Read... [07:11:54]Read from MH i2c: E2 17 00 B1 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D7 [07:11:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:11:54]wFMCommunicate OK [07:11:54]requested_item fd.num is exist - process it [07:11:54]SAM_PROTO_GetFieldsCounters [07:11:54]wFMCommunicate request_size=4 [07:11:54]MH_SAM_APDU [07:11:54]CAPDU: 80 13 00 00 [07:11:54]Write to MH i2c: E2 08 00 B2 5D 80 13 00 00 00 00 00 00 8B [07:11:54]Write i2c OK [07:11:54]MH_I2C_Read... [07:11:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:11:54]Read from MH i2c: E2 [07:11:54]MH_I2C_Read... [07:11:54]Read from MH i2c: E2 62 00 [07:11:54]MH_I2C_Read... [07:11:54]Read from MH i2c: E2 62 00 B2 5D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 9E 6F 00 00 0E 04 04 00 71 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 8C [07:11:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 9E 6F 00 00 0E 04 04 00 71 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 [07:11:54]wFMCommunicate OK [07:11:54]SAM_PROTO_GetFieldsCounters done [07:11:54]requested_item shift.num is exist - process it [07:11:54]requested_item shift.opened is exist - process it [07:11:54]req_shift_opened [07:11:54]FM_GetShiftState [07:11:54]SAM_PROTO_GetShiftState [07:11:54]wFMCommunicate request_size=4 [07:11:54]MH_SAM_APDU [07:11:54]CAPDU: 80 13 01 00 [07:11:54]Write to MH i2c: E2 08 00 B3 5D 80 13 01 00 00 00 00 00 8D [07:11:54]Write i2c OK [07:11:54]MH_I2C_Read... [07:11:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:11:54]Read from MH i2c: E2 [07:11:54]MH_I2C_Read... [07:11:54]Read from MH i2c: E2 0E 00 [07:11:54]MH_I2C_Read... [07:11:54]Read from MH i2c: E2 0E 00 B3 5D 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 9E [07:11:54]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [07:11:54]wFMCommunicate OK [07:11:54]SAM_PROTO_GetShiftState done [07:11:54]FM_GetShiftState done [07:11:54]req_shift_opened done [07:11:54]requested_item shift.open_date is exist - process it [07:11:54]req_shift_open_date [07:11:54]req_shift_open_date done [07:11:54]produce_requested_data done [07:11:54]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28574,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [07:11:54]process_action_free close_receipt [07:11:54]json_value_free [07:11:54]json_value_free done [07:11:54]process_json_proto returns [07:11:54]Send response to host [07:11:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28574,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [07:11:54]free response buf [07:11:54]execute_script done [07:11:54]execute_script returns [07:11:54]free content buf [07:11:54]Sock 9.Close socket [07:11:54]Sock 9.Thread stoped [07:11:58]OFD Sender: No OFD packet to send [07:12:03]OFD Sender: No OFD packet to send [07:12:08]OFD Sender: No OFD packet to send [07:12:13]OFD Sender: No OFD packet to send [07:12:18]OFD Sender: No OFD packet to send [07:12:23]OFD Sender: No OFD packet to send [07:12:28]OFD Sender: No OFD packet to send [07:12:33]OFD Sender: No OFD packet to send [07:12:38]OFD Sender: No OFD packet to send [07:12:43]OFD Sender: No OFD packet to send [07:12:48]OFD Sender: No OFD packet to send [07:12:53]OFD Sender: No OFD packet to send [07:12:58]OFD Sender: No OFD packet to send [07:13:03]OFD Sender: No OFD packet to send [07:13:08]OFD Sender: No OFD packet to send [07:13:13]OFD Sender: No OFD packet to send [07:13:18]OFD Sender: No OFD packet to send [07:13:23]OFD Sender: No OFD packet to send [07:13:28]OFD Sender: No OFD packet to send [07:13:33]OFD Sender: No OFD packet to send [07:13:38]OFD Sender: No OFD packet to send [07:13:43]OFD Sender: No OFD packet to send [07:13:48]OFD Sender: No OFD packet to send [07:13:53]OFD Sender: No OFD packet to send [07:13:58]OFD Sender: No OFD packet to send [07:14:03]OFD Sender: No OFD packet to send [07:14:08]OFD Sender: No OFD packet to send [07:14:13]OFD Sender: No OFD packet to send [07:14:18]OFD Sender: No OFD packet to send [07:14:23]OFD Sender: No OFD packet to send [07:14:28]OFD Sender: No OFD packet to send [07:14:33]OFD Sender: No OFD packet to send [07:14:38]OFD Sender: No OFD packet to send [07:14:43]OFD Sender: No OFD packet to send [07:14:48]OFD Sender: No OFD packet to send [07:14:53]OFD Sender: No OFD packet to send [07:14:58]OFD Sender: No OFD packet to send [07:15:03]OFD Sender: No OFD packet to send [07:15:08]OFD Sender: No OFD packet to send [07:15:13]OFD Sender: No OFD packet to send [07:15:18]OFD Sender: No OFD packet to send [07:15:23]OFD Sender: No OFD packet to send [07:15:28]OFD Sender: No OFD packet to send [07:15:33]OFD Sender: No OFD packet to send [07:15:38]OFD Sender: No OFD packet to send [07:15:43]OFD Sender: No OFD packet to send [07:15:48]OFD Sender: No OFD packet to send [07:15:53]OFD Sender: No OFD packet to send [07:15:58]OFD Sender: No OFD packet to send [07:16:03]OFD Sender: No OFD packet to send [07:16:08]OFD Sender: No OFD packet to send [07:16:13]OFD Sender: No OFD packet to send [07:16:18]OFD Sender: No OFD packet to send [07:16:21]accept exits with 7 [07:16:21]New connection [07:16:21]New thread 3066498404 created [07:16:21]Thread 3066641764 joined [07:16:21]Waiting for new connection... [07:16:21] Sock 7.Parse request [07:16:21]Sock 7.Check first char [07:16:21]Sock 7.First char is OK [07:16:21]request: POST /json_proto HTTP/1.0 [07:16:21]Method: POST [07:16:21]URL: /json_proto [07:16:21]Method is POST - this is cgi request [07:16:21]url: /json_proto [07:16:21]query_string will be loaded in cgi processing [07:16:21]execute_cgi json_proto POST (null) [07:16:21]execute_cgi path=json_proto method=POST [07:16:21]POST find Content-Length [07:16:21]Host: 172.17.33.3:8080 [07:16:21]Content-Length: 1212 [07:16:21]Content-Type: application/json [07:16:21] [07:16:21]POST finish read [07:16:21]Found Content-Length = 1212 [07:16:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)346882\u000A12.04.2024 06:58\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 14.000 x 64.30\u000A\u0418\u0422\u041E\u0413: 900.20\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A74586\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:16:21]execute_script... [07:16:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)346882\u000A12.04.2024 06:58\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 14.000 x 64.30\u000A\u0418\u0422\u041E\u0413: 900.20\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A74586\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:16:21]POST & json_proto [07:16:21]process_json_proto [07:16:21]json parsed OK: [07:16:21]protocol is kg_v1.0 [07:16:21]action value=print_text [07:16:21]process_action print_text [07:16:21]cmd_print_text [07:16:21]ExternCall_PrintAddStr [07:16:21]wPrintStart [07:16:21]Write to MH i2c: 01 00 00 B4 5D 11 [07:16:21]Write i2c OK [07:16:21]MH_I2C_Read... [07:16:21]Read from MH i2c: 01 [07:16:21]MH_I2C_Read... [07:16:21]Read from MH i2c: 01 07 00 [07:16:21]MH_I2C_Read... [07:16:21]Read from MH i2c: 01 07 00 B4 5D 00 00 00 00 00 FF 0F 26 [07:16:21]RasterBufferAndPrint [07:16:21]line *****ТОВАРНЫЙ ЧЕК***** [07:16:21]line АЗС 108 [07:16:21]line Партнер нефть [07:16:21]line 02508201610067 [07:16:21]line Кассир : Джумагулова Н. [07:16:21]line Счет N : (1)346882 [07:16:21]line 12.04.2024 06:58 [07:16:21]line ПРОДАЖА [07:16:21]line ТРК (МРК, ГНК): 42 [07:16:21]line Вид ГСМ : 2710124130 [07:16:21]line Аи-92-К-5 [07:16:21]line 14.000 x 64.30 [07:16:21]line ИТОГ: 900.20 [07:16:21]line Тип оплаты: Талоны: Топливная Карта [07:16:21]line 74586 [07:16:21]line ______________________ [07:16:21]line (подпись) [07:16:21]written 0, free lines is 4095 [07:16:22]Write to MH i2c: 01 00 00 C9 5D 26 [07:16:22]Write i2c OK [07:16:22]MH_I2C_Read... [07:16:22]Read from MH i2c: 01 [07:16:22]MH_I2C_Read... [07:16:22]Read from MH i2c: 01 07 00 [07:16:22]MH_I2C_Read... [07:16:22]Read from MH i2c: 01 07 00 C9 5D 00 00 00 00 00 F6 0D 30 [07:16:22]RasterBufferAndPrint [07:16:22]line [07:16:22]line [07:16:22]line [07:16:22]line [07:16:22]line [07:16:22]written 0, free lines is 3576 [07:16:22]MH_Cut [07:16:22]Write to MH i2c: D1 01 00 D0 5D 01 FF [07:16:22]Write i2c OK [07:16:22]MH_I2C_Read... [07:16:22]Read from MH i2c: D1 [07:16:22]MH_I2C_Read... [07:16:22]Read from MH i2c: D1 01 00 [07:16:22]MH_I2C_Read... [07:16:22]Read from MH i2c: D1 01 00 D0 5D 00 FE [07:16:22]Write to MH i2c: 01 00 00 D1 5D 2E [07:16:22]Write i2c OK [07:16:22]MH_I2C_Read... [07:16:22]*** Cut start [07:16:22]*** Partial cut [07:16:22]*** CUTSNS_PIN = 1 [07:16:22]*** CUTSNS_PIN = 0 [07:16:23]*** Brake cut motor [07:16:23]OFD Sender: No OFD packet to send [07:16:23]Read from MH i2c: 01 [07:16:23]MH_I2C_Read... [07:16:23]*** Stop cut motor [07:16:23]*** Cut end [07:16:23]Read from MH i2c: 01 07 00 [07:16:23]MH_I2C_Read... [07:16:23]Read from MH i2c: 01 07 00 D1 5D 00 00 00 00 00 FF 0F 43 [07:16:23]process_action print_text done [07:16:23]requested_data is exist [07:16:23]produce_requested_data [07:16:23]requested_item fm.sn is exist - process it [07:16:23]wFMCommunicate request_size=4 [07:16:23]MH_SAM_APDU [07:16:23]CAPDU: 80 11 00 00 [07:16:23]Write to MH i2c: E2 08 00 D2 5D 80 11 00 00 00 00 00 00 A9 [07:16:23]Write i2c OK [07:16:23]MH_I2C_Read... [07:16:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:16:23]Read from MH i2c: E2 [07:16:23]MH_I2C_Read... [07:16:23]Read from MH i2c: E2 17 00 [07:16:23]MH_I2C_Read... [07:16:23]Read from MH i2c: E2 17 00 D2 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 F8 [07:16:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:16:23]wFMCommunicate OK [07:16:23]requested_item fd.num is exist - process it [07:16:23]SAM_PROTO_GetFieldsCounters [07:16:23]wFMCommunicate request_size=4 [07:16:23]MH_SAM_APDU [07:16:23]CAPDU: 80 13 00 00 [07:16:23]Write to MH i2c: E2 08 00 D3 5D 80 13 00 00 00 00 00 00 AC [07:16:23]Write i2c OK [07:16:23]MH_I2C_Read... [07:16:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:16:23]Read from MH i2c: E2 [07:16:23]MH_I2C_Read... [07:16:23]Read from MH i2c: E2 62 00 [07:16:23]MH_I2C_Read... [07:16:23]Read from MH i2c: E2 62 00 D3 5D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 9E 6F 00 00 0E 04 04 00 71 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 AD [07:16:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 9E 6F 00 00 0E 04 04 00 71 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 [07:16:23]wFMCommunicate OK [07:16:23]SAM_PROTO_GetFieldsCounters done [07:16:23]requested_item shift.num is exist - process it [07:16:23]requested_item shift.opened is exist - process it [07:16:23]req_shift_opened [07:16:23]FM_GetShiftState [07:16:23]SAM_PROTO_GetShiftState [07:16:23]wFMCommunicate request_size=4 [07:16:23]MH_SAM_APDU [07:16:23]CAPDU: 80 13 01 00 [07:16:23]Write to MH i2c: E2 08 00 D4 5D 80 13 01 00 00 00 00 00 AE [07:16:23]Write i2c OK [07:16:23]MH_I2C_Read... [07:16:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:16:23]Read from MH i2c: E2 [07:16:23]MH_I2C_Read... [07:16:23]Read from MH i2c: E2 0E 00 [07:16:23]MH_I2C_Read... [07:16:23]Read from MH i2c: E2 0E 00 D4 5D 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 BF [07:16:23]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [07:16:23]wFMCommunicate OK [07:16:23]SAM_PROTO_GetShiftState done [07:16:23]FM_GetShiftState done [07:16:23]req_shift_opened done [07:16:23]requested_item shift.open_date is exist - process it [07:16:23]req_shift_open_date [07:16:23]req_shift_open_date done [07:16:23]produce_requested_data done [07:16:23]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28574,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [07:16:23]process_action_free print_text [07:16:23]json_value_free [07:16:23]json_value_free done [07:16:23]process_json_proto returns [07:16:23]Send response to host [07:16:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28574,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [07:16:23]free response buf [07:16:23]execute_script done [07:16:23]execute_script returns [07:16:23]free content buf [07:16:23]Sock 7.Close socket [07:16:23]Sock 7.Thread stoped [07:16:28]OFD Sender: No OFD packet to send [07:16:33]OFD Sender: No OFD packet to send [07:16:38]OFD Sender: No OFD packet to send [07:16:43]OFD Sender: No OFD packet to send [07:16:48]OFD Sender: No OFD packet to send [07:16:53]OFD Sender: No OFD packet to send [07:16:58]OFD Sender: No OFD packet to send [07:17:03]OFD Sender: No OFD packet to send [07:17:08]OFD Sender: No OFD packet to send [07:17:13]OFD Sender: No OFD packet to send [07:17:18]OFD Sender: No OFD packet to send [07:17:23]OFD Sender: No OFD packet to send [07:17:28]OFD Sender: No OFD packet to send [07:17:33]OFD Sender: No OFD packet to send [07:17:38]OFD Sender: No OFD packet to send [07:17:43]OFD Sender: No OFD packet to send [07:17:48]OFD Sender: No OFD packet to send [07:17:53]OFD Sender: No OFD packet to send [07:17:58]OFD Sender: No OFD packet to send [07:18:03]OFD Sender: No OFD packet to send [07:18:08]OFD Sender: No OFD packet to send [07:18:13]OFD Sender: No OFD packet to send [07:18:18]OFD Sender: No OFD packet to send [07:18:23]OFD Sender: No OFD packet to send [07:18:28]OFD Sender: No OFD packet to send [07:18:33]OFD Sender: No OFD packet to send [07:18:38]OFD Sender: No OFD packet to send [07:18:43]OFD Sender: No OFD packet to send [07:18:48]OFD Sender: No OFD packet to send [07:18:53]OFD Sender: No OFD packet to send [07:18:58]OFD Sender: No OFD packet to send [07:19:03]OFD Sender: No OFD packet to send [07:19:08]OFD Sender: No OFD packet to send [07:19:13]OFD Sender: No OFD packet to send [07:19:18]OFD Sender: No OFD packet to send [07:19:23]OFD Sender: No OFD packet to send [07:19:28]OFD Sender: No OFD packet to send [07:19:33]OFD Sender: No OFD packet to send [07:19:38]OFD Sender: No OFD packet to send [07:19:43]OFD Sender: No OFD packet to send [07:19:48]OFD Sender: No OFD packet to send [07:19:53]OFD Sender: No OFD packet to send [07:19:58]OFD Sender: No OFD packet to send [07:20:03]OFD Sender: No OFD packet to send [07:20:08]OFD Sender: No OFD packet to send [07:20:13]OFD Sender: No OFD packet to send [07:20:18]OFD Sender: No OFD packet to send [07:20:23]OFD Sender: No OFD packet to send [07:20:28]OFD Sender: No OFD packet to send [07:20:33]OFD Sender: No OFD packet to send [07:20:38]OFD Sender: No OFD packet to send [07:20:43]OFD Sender: No OFD packet to send [07:20:48]OFD Sender: No OFD packet to send [07:20:53]OFD Sender: No OFD packet to send [07:20:58]OFD Sender: No OFD packet to send [07:21:03]OFD Sender: No OFD packet to send [07:21:08]OFD Sender: No OFD packet to send [07:21:13]OFD Sender: No OFD packet to send [07:21:18]OFD Sender: No OFD packet to send [07:21:23]OFD Sender: No OFD packet to send [07:21:28]OFD Sender: No OFD packet to send [07:21:33]OFD Sender: No OFD packet to send [07:21:38]OFD Sender: No OFD packet to send [07:21:43]OFD Sender: No OFD packet to send [07:21:48]OFD Sender: No OFD packet to send [07:21:53]OFD Sender: No OFD packet to send [07:21:58]OFD Sender: No OFD packet to send [07:22:03]OFD Sender: No OFD packet to send [07:22:08]OFD Sender: No OFD packet to send [07:22:13]OFD Sender: No OFD packet to send [07:22:18]OFD Sender: No OFD packet to send [07:22:23]OFD Sender: No OFD packet to send [07:22:28]OFD Sender: No OFD packet to send [07:22:33]OFD Sender: No OFD packet to send [07:22:38]OFD Sender: No OFD packet to send [07:22:43]OFD Sender: No OFD packet to send [07:22:48]OFD Sender: No OFD packet to send [07:22:53]OFD Sender: No OFD packet to send [07:22:58]OFD Sender: No OFD packet to send [07:23:03]OFD Sender: No OFD packet to send [07:23:08]OFD Sender: No OFD packet to send [07:23:13]OFD Sender: No OFD packet to send [07:23:18]OFD Sender: No OFD packet to send [07:23:23]OFD Sender: No OFD packet to send [07:23:28]OFD Sender: No OFD packet to send [07:23:33]OFD Sender: No OFD packet to send [07:23:38]OFD Sender: No OFD packet to send [07:23:43]OFD Sender: No OFD packet to send [07:23:48]OFD Sender: No OFD packet to send [07:23:53]OFD Sender: No OFD packet to send [07:23:58]OFD Sender: No OFD packet to send [07:24:03]OFD Sender: No OFD packet to send [07:24:08]OFD Sender: No OFD packet to send [07:24:13]OFD Sender: No OFD packet to send [07:24:18]OFD Sender: No OFD packet to send [07:24:23]OFD Sender: No OFD packet to send [07:24:28]OFD Sender: No OFD packet to send [07:24:33]OFD Sender: No OFD packet to send [07:24:38]OFD Sender: No OFD packet to send [07:24:43]OFD Sender: No OFD packet to send [07:24:48]OFD Sender: No OFD packet to send [07:24:53]OFD Sender: No OFD packet to send [07:24:58]OFD Sender: No OFD packet to send [07:25:03]OFD Sender: No OFD packet to send [07:25:08]OFD Sender: No OFD packet to send [07:25:13]OFD Sender: No OFD packet to send [07:25:18]OFD Sender: No OFD packet to send [07:25:23]OFD Sender: No OFD packet to send [07:25:28]OFD Sender: No OFD packet to send [07:25:33]OFD Sender: No OFD packet to send [07:25:38]OFD Sender: No OFD packet to send [07:25:43]OFD Sender: No OFD packet to send [07:25:48]OFD Sender: No OFD packet to send [07:25:53]OFD Sender: No OFD packet to send [07:25:58]OFD Sender: No OFD packet to send [07:26:03]OFD Sender: No OFD packet to send [07:26:08]OFD Sender: No OFD packet to send [07:26:13]accept exits with 9 [07:26:13]New connection [07:26:13]New thread 3066641764 created [07:26:13]Thread 3066498404 joined [07:26:13]Waiting for new connection... [07:26:13] Sock 9.Parse request [07:26:13]Sock 9.Check first char [07:26:13]Sock 9.First char is OK [07:26:13]request: POST /json_proto HTTP/1.0 [07:26:13]Method: POST [07:26:13]URL: /json_proto [07:26:13]Method is POST - this is cgi request [07:26:13]url: /json_proto [07:26:13]query_string will be loaded in cgi processing [07:26:13]execute_cgi json_proto POST (null) [07:26:13]execute_cgi path=json_proto method=POST [07:26:13]POST find Content-Length [07:26:13]Host: 172.17.33.3:8080 [07:26:13]Content-Length: 675 [07:26:13]Content-Type: application/json [07:26:13] [07:26:13]POST finish read [07:26:13]Found Content-Length = 675 [07:26:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346883", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 29.950, "sum" : 1955.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 1955.00, "payments": [ { "type": 0, "sum" : 1955.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:26:13]execute_script... [07:26: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)346883", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 29.950, "sum" : 1955.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 1955.00, "payments": [ { "type": 0, "sum" : 1955.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:26:13]POST & json_proto [07:26:13]process_json_proto [07:26:13]json parsed OK: [07:26:13]protocol is kg_v1.0 [07:26:13]action value=close_receipt [07:26:13]process_action close_receipt [07:26:13]cmd_close_receipt [07:26:13]MH_GetDate [07:26:13]Write to MH i2c: F0 00 00 D5 5D 21 [07:26:13]Write i2c OK [07:26:13]MH_I2C_Read... [07:26:13]Read from MH i2c: F0 [07:26:13]MH_I2C_Read... [07:26:13]Read from MH i2c: F0 09 00 [07:26:13]MH_I2C_Read... [07:26:13]Read from MH i2c: F0 09 00 D5 5D 00 1C E2 18 66 23 5B 8F 65 18 [07:26:13]GetLastDocTimeStamp 1712905917 [07:26:13]current date 1712906780 [07:26:13]FM_GetShiftState [07:26:13]SAM_PROTO_GetShiftState [07:26:13]wFMCommunicate request_size=4 [07:26:13]MH_SAM_APDU [07:26:13]CAPDU: 80 13 01 00 [07:26:13]Write to MH i2c: E2 08 00 D6 5D 80 13 01 00 00 00 00 00 B0 [07:26:13]Write i2c OK [07:26:13]MH_I2C_Read... [07:26:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:26:13]Read from MH i2c: E2 [07:26:13]MH_I2C_Read... [07:26:13]Read from MH i2c: E2 0E 00 [07:26:13]MH_I2C_Read... [07:26:13]Read from MH i2c: E2 0E 00 D6 5D 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 C1 [07:26:13]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [07:26:13]wFMCommunicate OK [07:26:13]SAM_PROTO_GetShiftState done [07:26:13]FM_GetShiftState done [07:26:13]opened in 1712881416 [07:26:13]opened+sec_in_day 1712967816 [07:26:13]quantity*price = 195573 [07:26:13]sum+1 = 195575 [07:26:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.74 ИТОГО: 1955.00 Внесено: 2500.00 СДАЧА: 545.00 НСП 1% : 17.31 НДС 12% : 207.69 Наличными: 1955.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 24 12.04.2024 07:26 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28575 ФПД: 71120781342121 1/tax-web-control/client/api/v1/ticket?date=20240412T072620&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28575&fm=71120781342121&tin=02508201610067®Number=0000138879044617&sum=195500 [07:26:14]StoreToDocumentArchive [07:26:14]shift 113 fd 28575 [07:26:14]save to /storage/0113/doc_00028575 [07:26:14]save last doc name /storage/0113/doc_00028575 to /storage/kkm_last_doc_name [07:26:14]save OK [07:26:14]Clear old archive folders... [07:26:14]ProcessDocumentItem done err = 0, tmpTLVsize=252 [07:26:14]tlvbuf is 01AD7910 [07:26:14]SAM_PROTO_ClearQueue [07:26:14]wFMCommunicate request_size=4 [07:26:14]MH_SAM_APDU [07:26:14]CAPDU: 80 09 00 00 [07:26:14]Write to MH i2c: E2 08 00 E3 5D 80 09 00 00 00 00 00 00 B2 [07:26:14]Write i2c OK [07:26:14]MH_I2C_Read... [07:26:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:26:14]Read from MH i2c: E2 [07:26:14]MH_I2C_Read... [07:26:14]Read from MH i2c: E2 03 00 [07:26:14]MH_I2C_Read... [07:26:14]Read from MH i2c: E2 03 00 E3 5D 00 90 00 B4 [07:26:14]RAPDU: 90 00 [07:26:14]wFMCommunicate OK [07:26:14]SAM_PROTO_ClearQueue done [07:26:14]KKMCreateOFDPacket [07:26:14]OFDProtocolAddRootSTLVToBuf [07:26:14]FM_MakeSignedData [07:26:14]FM_MakeSignedData [07:26:14]SAM_PROTO_SignData [07:26:14]wFMCommunicate request_size=4 [07:26:14]MH_SAM_APDU [07:26:14]CAPDU: 80 0D 01 02 [07:26:14]Write to MH i2c: E2 08 00 E4 5D 80 0D 01 02 00 00 00 00 BA [07:26:14]Write i2c OK [07:26:14]MH_I2C_Read... [07:26:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:26:14]Read from MH i2c: E2 [07:26:14]MH_I2C_Read... [07:26:14]Read from MH i2c: E2 03 00 [07:26:14]MH_I2C_Read... [07:26:14]Read from MH i2c: E2 03 00 E4 5D 00 90 00 B5 [07:26:14]RAPDU: 90 00 [07:26:14]wFMCommunicate OK [07:26:14]wFMCommunicate request_size=255 [07:26:14]MH_SAM_APDU [07:26:14]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FE 74 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 F6 FB 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC FB 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 51 00 00 00 00 07 04 06 00 AC FB 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 1C E2 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9F 6F 00 00 35 04 06 00 [07:26:14]Write to MH i2c: E2 02 01 E5 5D 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FE 74 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 F6 FB 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC FB 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 51 00 00 00 00 07 04 06 00 AC FB 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 1C E2 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9F 6F 00 00 35 04 06 00 00 00 2B [07:26:14]Write i2c OK [07:26:14]MH_I2C_Read... [07:26:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:26:15]Read from MH i2c: E2 [07:26:15]MH_I2C_Read... [07:26:15]Read from MH i2c: E2 03 00 [07:26:15]MH_I2C_Read... [07:26:15]Read from MH i2c: E2 03 00 E5 5D 00 90 00 B6 [07:26:15]RAPDU: 90 00 [07:26:15]wFMCommunicate OK [07:26:15]wFMCommunicate request_size=11 [07:26:15]MH_SAM_APDU [07:26:15]CAPDU: 80 0D 02 02 06 40 AF 18 E8 75 A9 [07:26:15]Write to MH i2c: E2 0E 00 E6 5D 80 0D 02 02 06 00 40 AF 18 E8 75 A9 00 00 D6 [07:26:15]Write i2c OK [07:26:15]MH_I2C_Read... [07:26:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:26:15]Read from MH i2c: E2 [07:26:15]MH_I2C_Read... [07:26:15]Read from MH i2c: E2 03 00 [07:26:15]MH_I2C_Read... [07:26:15]Read from MH i2c: E2 03 00 E6 5D 00 90 00 B7 [07:26:15]RAPDU: 90 00 [07:26:15]wFMCommunicate OK [07:26:15]wFMCommunicate request_size=4 [07:26:15]MH_SAM_APDU [07:26:15]CAPDU: 80 0D 03 02 [07:26:15]Write to MH i2c: E2 08 00 E7 5D 80 0D 03 02 00 00 00 00 BF [07:26:15]Write i2c OK [07:26:15]MH_I2C_Read... [07:26:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:26:15]Read from MH i2c: E2 [07:26:15]MH_I2C_Read... [07:26:15]Read from MH i2c: E2 0B 00 [07:26:15]MH_I2C_Read... [07:26:15]Read from MH i2c: E2 0B 00 E7 5D 00 A1 30 EF F4 EB F5 31 C0 90 00 45 [07:26:15]RAPDU: A1 30 EF F4 EB F5 31 C0 90 00 [07:26:15]wFMCommunicate OK [07:26:15]SAM_PROTO_SignData done [07:26:15]FM_MakeSignedData done [07:26:15]CreateOFDProtocolMessage [07:26:15]wFMCommunicate request_size=4 [07:26:15]MH_SAM_APDU [07:26:15]CAPDU: 80 11 00 00 [07:26:15]Write to MH i2c: E2 08 00 E8 5D 80 11 00 00 00 00 00 00 BF [07:26:15]Write i2c OK [07:26:15]MH_I2C_Read... [07:26:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:26:15]Read from MH i2c: E2 [07:26:15]MH_I2C_Read... [07:26:15]Read from MH i2c: E2 17 00 [07:26:15]MH_I2C_Read... [07:26:15]Read from MH i2c: E2 17 00 E8 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 0E [07:26:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:26:15]wFMCommunicate OK [07:26:15]CreateOFDProtocolMessage done [07:26:15]OFDSenderStorePacket 28575 [07:26:15]StoreOFDPacket docnum=28575 [07:26:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 52 9C 08 01 3D 64 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FE 74 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 F6 FB 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC FB 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 51 00 00 00 00 07 04 06 00 AC FB 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 1C E2 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9F 6F 00 00 35 04 06 00 40 AF 18 E8 75 A9 A1 30 EF F4 EB F5 31 C0 [07:26:15]CheckFolder [07:26:15]dirname=/storage/ofd_packets [07:26:15]CheckFolder done [07:26:15]ProducePacketName [07:26:15]name=ofd_packets/00028575 [07:26:15]NVStorageSaveData ofd_packets/00028575 [07:26:15]File name is /storage/ofd_packets/00028575 [07:26:15]Write 302 bytes [07:26:15]NVStorageSaveData done [07:26:15]OFDSenderStorePacket done [07:26:15]KKMCreateOFDPacket done [07:26:15]NVStorageSaveData kkm_last_timestamp [07:26:15]File name is /storage/kkm_last_timestamp [07:26:15]Write 4 bytes [07:26:15]NVStorageSaveData done [07:26:15]ExternCall_PrintAddStr [07:26:15]wPrintStart [07:26:15]Write to MH i2c: 01 00 00 E9 5D 46 [07:26:15]Write i2c OK [07:26:15]MH_I2C_Read... [07:26:15]Read from MH i2c: 01 [07:26:15]MH_I2C_Read... [07:26:15]Read from MH i2c: 01 07 00 [07:26:15]MH_I2C_Read... [07:26:15]Read from MH i2c: 01 07 00 E9 5D 00 00 00 00 00 FF 0F 5B [07:26:15]RasterBufferAndPrint [07:26:15]line Счет N : (1)346883 [07:26:15]line ИНН: 02508201610067 [07:26:15]line Контрольно-Кассовый Чек [07:26:15]line ПРОДАЖА [07:26:15]line ТРК (МРК, ГНК) : 31 [07:26:15]line Товар: 2710124130 [07:26:15]line SUPER-92-К-5 [07:26:15]line 29.950 * 65.30 [07:26:15]line = 1955.74 [07:26:15]line НДС 12% НСП 1% [07:26:15]line > о реализуемом товаре [07:26:15]line ОКРУГЛЕНИЕ: -0.74 [07:26:15]line ИТОГО: 1955.00 [07:26:15]line Внесено: 2500.00 [07:26:15]line СДАЧА: 545.00 [07:26:15]line НСП 1% : 17.31 [07:26:15]line НДС 12% : 207.69 [07:26:15]line Наличными: 1955.00 [07:26:15]line Безнал.: 0.00 [07:26:15]line Место: АЗС № 108 "Партнер Нефть" [07:26:15]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [07:26:15]line СНО: Общий режим [07:26:15]line Чек 24 12.04.2024 07:26 [07:26:15]line Смена: 113 ФФД: 1.0 [07:26:15]line ЗНМ: 0300000027 [07:26:15]line РНМ: 0000138879044617 [07:26:15]line Версия ККМ: 001 [07:26:15]line ФМ: 0000000000963154 [07:26:15]line ФД: 28575 [07:26:15]line ФПД: 71120781342121 [07:26:15]line 1/tax-web-control/client/api/v1/ticket?date=20240412T072620&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28575&fm=71120781342121&tin=02508201610067®Number=0000138879044617&sum=195500 [07:26:15]OFD Sender: Processing packet 28575 [packets to send 8, broken 7] [07:26:15]ProducePacketName [07:26:15]name=ofd_packets/00028575 [07:26:15]OFD Sender: To server: pG, [07:26:15]CommunicateWithHost lk.salyk.kg:30040 [07:26:15]ConnectInit lk.salyk.kg [07:26:15]written 0, free lines is 4095 [07:26:15]Connected sock=10 [07:26:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 52 9C 08 01 3D 64 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FE 74 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 F6 FB 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC FB 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 51 00 00 00 00 07 04 06 00 AC FB 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 1C E2 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9F 6F 00 00 35 04 06 00 40 AF 18 E8 75 A9 A1 30 EF F4 EB F5 31 C0 [07:26:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 85 F1 47 00 33 A2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9F 6F 00 00 F4 03 04 00 C7 8C 18 66 B6 04 01 00 00 00 C6 56 F9 E0 E0 BA A6 [07:26:15]CommunicateWithHost err = 0 [07:26:15]CheckOFDResponse [07:26:15]1017 (14) - 77093643461234 [07:26:15]1041 (16) - 0000000000963154 [07:26:15]1040 (4) - 28575 [07:26:15]1012 (4) - 12.04.2024 01:22 [07:26:15]1206 (1) - 0 [07:26:15]OFD Sender: Remove packet 28575 [07:26:15]ProducePacketName [07:26:15]name=ofd_packets/00028575 [07:26:15]NVStorageDeleteData [07:26:15]Write to MH i2c: 01 00 00 13 5E 71 [07:26:15]Write i2c OK [07:26:15]MH_I2C_Read... [07:26:15]Read from MH i2c: 01 [07:26:15]MH_I2C_Read... [07:26:15]Read from MH i2c: 01 07 00 [07:26:15]MH_I2C_Read... [07:26:15]Read from MH i2c: 01 07 00 13 5E 00 00 00 00 00 BD 0C 41 [07:26:15]RasterBufferAndPrint [07:26:15]line [07:26:15]line [07:26:15]line [07:26:15]line [07:26:15]line [07:26:15]written 0, free lines is 3265 [07:26:15]MH_Cut [07:26:15]Write to MH i2c: D1 01 00 1A 5E 01 4A [07:26:15]Write i2c OK [07:26:15]MH_I2C_Read... [07:26:15]Read from MH i2c: D1 [07:26:15]MH_I2C_Read... [07:26:15]Read from MH i2c: D1 01 00 [07:26:15]MH_I2C_Read... [07:26:15]Read from MH i2c: D1 01 00 1A 5E 00 49 [07:26:15]Write to MH i2c: 01 00 00 1B 5E 79 [07:26:15]Write i2c OK [07:26:15]MH_I2C_Read... [07:26:16]OFD Sender: No OFD packet to send [07:26:16]*** Cut start [07:26:16]*** Partial cut [07:26:16]*** CUTSNS_PIN = 1 [07:26:16]*** CUTSNS_PIN = 0 [07:26:17]*** Brake cut motor [07:26:17]Read from MH i2c: 01 [07:26:17]MH_I2C_Read... [07:26:17]*** Stop cut motor [07:26:17]*** Cut end [07:26:17]Read from MH i2c: 01 07 00 [07:26:17]MH_I2C_Read... [07:26:17]Read from MH i2c: 01 07 00 1B 5E 00 00 00 00 00 FF 0F 8E [07:26:17]process_action close_receipt done [07:26:17]requested_data is exist [07:26:17]produce_requested_data [07:26:17]requested_item fm.sn is exist - process it [07:26:17]wFMCommunicate request_size=4 [07:26:17]MH_SAM_APDU [07:26:17]CAPDU: 80 11 00 00 [07:26:17]Write to MH i2c: E2 08 00 1C 5E 80 11 00 00 00 00 00 00 F4 [07:26:17]Write i2c OK [07:26:17]MH_I2C_Read... [07:26:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:26:17]Read from MH i2c: E2 [07:26:17]MH_I2C_Read... [07:26:17]Read from MH i2c: E2 17 00 [07:26:17]MH_I2C_Read... [07:26:17]Read from MH i2c: E2 17 00 1C 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 43 [07:26:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:26:17]wFMCommunicate OK [07:26:17]requested_item fd.num is exist - process it [07:26:17]SAM_PROTO_GetFieldsCounters [07:26:17]wFMCommunicate request_size=4 [07:26:17]MH_SAM_APDU [07:26:17]CAPDU: 80 13 00 00 [07:26:17]Write to MH i2c: E2 08 00 1D 5E 80 13 00 00 00 00 00 00 F7 [07:26:17]Write i2c OK [07:26:17]MH_I2C_Read... [07:26:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:26:17]Read from MH i2c: E2 [07:26:17]MH_I2C_Read... [07:26:17]Read from MH i2c: E2 62 00 [07:26:17]MH_I2C_Read... [07:26:17]Read from MH i2c: E2 62 00 1D 5E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 9F 6F 00 00 0E 04 04 00 71 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 FC [07:26:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 9F 6F 00 00 0E 04 04 00 71 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 [07:26:17]wFMCommunicate OK [07:26:17]SAM_PROTO_GetFieldsCounters done [07:26:17]requested_item shift.num is exist - process it [07:26:17]requested_item shift.opened is exist - process it [07:26:17]req_shift_opened [07:26:17]FM_GetShiftState [07:26:17]SAM_PROTO_GetShiftState [07:26:17]wFMCommunicate request_size=4 [07:26:17]MH_SAM_APDU [07:26:17]CAPDU: 80 13 01 00 [07:26:17]Write to MH i2c: E2 08 00 1E 5E 80 13 01 00 00 00 00 00 F9 [07:26:17]Write i2c OK [07:26:17]MH_I2C_Read... [07:26:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:26:17]Read from MH i2c: E2 [07:26:17]MH_I2C_Read... [07:26:17]Read from MH i2c: E2 0E 00 [07:26:17]MH_I2C_Read... [07:26:17]Read from MH i2c: E2 0E 00 1E 5E 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 0A [07:26:17]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [07:26:17]wFMCommunicate OK [07:26:17]SAM_PROTO_GetShiftState done [07:26:17]FM_GetShiftState done [07:26:17]req_shift_opened done [07:26:17]requested_item shift.open_date is exist - process it [07:26:17]req_shift_open_date [07:26:17]req_shift_open_date done [07:26:17]produce_requested_data done [07:26:17]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28575,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [07:26:17]process_action_free close_receipt [07:26:17]json_value_free [07:26:17]json_value_free done [07:26:17]process_json_proto returns [07:26:17]Send response to host [07:26:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28575,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [07:26:17]free response buf [07:26:17]execute_script done [07:26:17]execute_script returns [07:26:17]free content buf [07:26:17]Sock 9.Close socket [07:26:17]Sock 9.Thread stoped [07:26:21]OFD Sender: No OFD packet to send [07:26:26]OFD Sender: No OFD packet to send [07:26:31]OFD Sender: No OFD packet to send [07:26:36]OFD Sender: No OFD packet to send [07:26:41]OFD Sender: No OFD packet to send [07:26:46]OFD Sender: No OFD packet to send [07:26:51]OFD Sender: No OFD packet to send [07:26:56]OFD Sender: No OFD packet to send [07:27:01]OFD Sender: No OFD packet to send [07:27:06]OFD Sender: No OFD packet to send [07:27:11]OFD Sender: No OFD packet to send [07:27:16]OFD Sender: No OFD packet to send [07:27:21]OFD Sender: No OFD packet to send [07:27:26]OFD Sender: No OFD packet to send [07:27:31]OFD Sender: No OFD packet to send [07:27:36]OFD Sender: No OFD packet to send [07:27:41]OFD Sender: No OFD packet to send [07:27:46]OFD Sender: No OFD packet to send [07:27:49]accept exits with 7 [07:27:49]New connection [07:27:49]New thread 3066498404 created [07:27:49]Thread 3066641764 joined [07:27:49]Waiting for new connection... [07:27:49] Sock 7.Parse request [07:27:49]Sock 7.Check first char [07:27:49]Sock 7.First char is OK [07:27:49]request: POST /json_proto HTTP/1.0 [07:27:49]Method: POST [07:27:49]URL: /json_proto [07:27:49]Method is POST - this is cgi request [07:27:49]url: /json_proto [07:27:49]query_string will be loaded in cgi processing [07:27:49]execute_cgi json_proto POST (null) [07:27:49]execute_cgi path=json_proto method=POST [07:27:49]POST find Content-Length [07:27:49]Host: 172.17.33.3:8080 [07:27:49]Content-Length: 677 [07:27:49]Content-Type: application/json [07:27:49] [07:27:49]POST finish read [07:27:49]Found Content-Length = 677 [07:27:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346885", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 6.230, "sum" : 400.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:27:49]execute_script... [07:27:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346885", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 6.230, "sum" : 400.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:27:49]POST & json_proto [07:27:49]process_json_proto [07:27:49]json parsed OK: [07:27:49]protocol is kg_v1.0 [07:27:49]action value=close_receipt [07:27:49]process_action close_receipt [07:27:49]cmd_close_receipt [07:27:49]MH_GetDate [07:27:49]Write to MH i2c: F0 00 00 1F 5E 6C [07:27:49]Write i2c OK [07:27:49]MH_I2C_Read... [07:27:49]Read from MH i2c: F0 [07:27:49]MH_I2C_Read... [07:27:49]Read from MH i2c: F0 09 00 [07:27:49]MH_I2C_Read... [07:27:49]Read from MH i2c: F0 09 00 1F 5E 00 7C E2 18 66 23 5B 8F 65 C3 [07:27:49]GetLastDocTimeStamp 1712906780 [07:27:49]current date 1712906876 [07:27:49]FM_GetShiftState [07:27:49]SAM_PROTO_GetShiftState [07:27:49]wFMCommunicate request_size=4 [07:27:49]MH_SAM_APDU [07:27:49]CAPDU: 80 13 01 00 [07:27:49]Write to MH i2c: E2 08 00 20 5E 80 13 01 00 00 00 00 00 FB [07:27:49]Write i2c OK [07:27:49]MH_I2C_Read... [07:27:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:27:49]Read from MH i2c: E2 [07:27:49]MH_I2C_Read... [07:27:49]Read from MH i2c: E2 0E 00 [07:27:49]MH_I2C_Read... [07:27:49]Read from MH i2c: E2 0E 00 20 5E 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 0C [07:27:49]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [07:27:49]wFMCommunicate OK [07:27:49]SAM_PROTO_GetShiftState done [07:27:49]FM_GetShiftState done [07:27:49]opened in 1712881416 [07:27:49]opened+sec_in_day 1712967816 [07:27:49]quantity*price = 40058 [07:27:49]sum+1 = 40060 [07:27:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.54 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 25 12.04.2024 07:27 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28576 ФПД: 141254462169899 1/tax-web-control/client/api/v1/ticket?date=20240412T072756&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28576&fm=141254462169899&tin=02508201610067®Number=0000138879044617&sum=40000 [07:27:50]StoreToDocumentArchive [07:27:50]shift 113 fd 28576 [07:27:50]save to /storage/0113/doc_00028576 [07:27:50]save last doc name /storage/0113/doc_00028576 to /storage/kkm_last_doc_name [07:27:50]save OK [07:27:50]Clear old archive folders... [07:27:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:27:50]tlvbuf is 01AE5460 [07:27:50]SAM_PROTO_ClearQueue [07:27:50]wFMCommunicate request_size=4 [07:27:50]MH_SAM_APDU [07:27:50]CAPDU: 80 09 00 00 [07:27:50]Write to MH i2c: E2 08 00 2D 5E 80 09 00 00 00 00 00 00 FD [07:27:50]Write i2c OK [07:27:50]MH_I2C_Read... [07:27:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:27:50]Read from MH i2c: E2 [07:27:50]MH_I2C_Read... [07:27:50]Read from MH i2c: E2 03 00 [07:27:50]MH_I2C_Read... [07:27:50]Read from MH i2c: E2 03 00 2D 5E 00 90 00 FF [07:27:50]RAPDU: 90 00 [07:27:50]wFMCommunicate OK [07:27:50]SAM_PROTO_ClearQueue done [07:27:50]KKMCreateOFDPacket [07:27:50]OFDProtocolAddRootSTLVToBuf [07:27:50]FM_MakeSignedData [07:27:50]FM_MakeSignedData [07:27:50]SAM_PROTO_SignData [07:27:50]wFMCommunicate request_size=4 [07:27:50]MH_SAM_APDU [07:27:50]CAPDU: 80 0D 01 02 [07:27:50]Write to MH i2c: E2 08 00 2E 5E 80 0D 01 02 00 00 00 00 05 [07:27:50]Write i2c OK [07:27:50]MH_I2C_Read... [07:27:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:27:50]Read from MH i2c: E2 [07:27:50]MH_I2C_Read... [07:27:50]Read from MH i2c: E2 03 00 [07:27:50]MH_I2C_Read... [07:27:50]Read from MH i2c: E2 03 00 2E 5E 00 90 00 00 [07:27:50]RAPDU: 90 00 [07:27:50]wFMCommunicate OK [07:27:50]wFMCommunicate request_size=255 [07:27:50]MH_SAM_APDU [07:27:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 56 18 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 7B 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 9E 10 00 00 00 00 07 04 06 00 40 9C 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 7C E2 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A0 6F 00 00 35 04 06 00 80 [07:27:50]Write to MH i2c: E2 02 01 2F 5E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 56 18 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 7B 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 9E 10 00 00 00 00 07 04 06 00 40 9C 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 7C E2 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A0 6F 00 00 35 04 06 00 80 00 00 A6 [07:27:50]Write i2c OK [07:27:50]MH_I2C_Read... [07:27:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:27:50]Read from MH i2c: E2 [07:27:50]MH_I2C_Read... [07:27:50]Read from MH i2c: E2 03 00 [07:27:50]MH_I2C_Read... [07:27:50]Read from MH i2c: E2 03 00 2F 5E 00 90 00 01 [07:27:50]RAPDU: 90 00 [07:27:50]wFMCommunicate OK [07:27:50]wFMCommunicate request_size=10 [07:27:50]MH_SAM_APDU [07:27:50]CAPDU: 80 0D 02 02 05 78 5E 0A 63 2B [07:27:50]Write to MH i2c: E2 0D 00 30 5E 80 0D 02 02 05 00 78 5E 0A 63 2B 00 00 80 [07:27:50]Write i2c OK [07:27:50]MH_I2C_Read... [07:27:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:27:50]Read from MH i2c: E2 [07:27:50]MH_I2C_Read... [07:27:50]Read from MH i2c: E2 03 00 [07:27:50]MH_I2C_Read... [07:27:50]Read from MH i2c: E2 03 00 30 5E 00 90 00 02 [07:27:50]RAPDU: 90 00 [07:27:50]wFMCommunicate OK [07:27:50]wFMCommunicate request_size=4 [07:27:50]MH_SAM_APDU [07:27:50]CAPDU: 80 0D 03 02 [07:27:50]Write to MH i2c: E2 08 00 31 5E 80 0D 03 02 00 00 00 00 0A [07:27:50]Write i2c OK [07:27:50]MH_I2C_Read... [07:27:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:27:50]Read from MH i2c: E2 [07:27:50]MH_I2C_Read... [07:27:50]Read from MH i2c: E2 0B 00 [07:27:50]MH_I2C_Read... [07:27:50]Read from MH i2c: E2 0B 00 31 5E 00 E0 7E FF 97 08 D0 84 5C 90 00 B7 [07:27:50]RAPDU: E0 7E FF 97 08 D0 84 5C 90 00 [07:27:50]wFMCommunicate OK [07:27:50]SAM_PROTO_SignData done [07:27:50]FM_MakeSignedData done [07:27:50]CreateOFDProtocolMessage [07:27:50]wFMCommunicate request_size=4 [07:27:50]MH_SAM_APDU [07:27:50]CAPDU: 80 11 00 00 [07:27:50]Write to MH i2c: E2 08 00 32 5E 80 11 00 00 00 00 00 00 0A [07:27:50]Write i2c OK [07:27:50]MH_I2C_Read... [07:27:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:27:50]Read from MH i2c: E2 [07:27:50]MH_I2C_Read... [07:27:50]Read from MH i2c: E2 17 00 [07:27:50]MH_I2C_Read... [07:27:50]Read from MH i2c: E2 17 00 32 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 59 [07:27:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:27:50]wFMCommunicate OK [07:27:50]CreateOFDProtocolMessage done [07:27:50]OFDSenderStorePacket 28576 [07:27:50]StoreOFDPacket docnum=28576 [07:27:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 FB 92 07 01 09 D9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 56 18 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 7B 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 9E 10 00 00 00 00 07 04 06 00 40 9C 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 7C E2 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A0 6F 00 00 35 04 06 00 80 78 5E 0A 63 2B E0 7E FF 97 08 D0 84 5C [07:27:50]CheckFolder [07:27:50]dirname=/storage/ofd_packets [07:27:50]CheckFolder done [07:27:50]ProducePacketName [07:27:50]name=ofd_packets/00028576 [07:27:50]NVStorageSaveData ofd_packets/00028576 [07:27:50]File name is /storage/ofd_packets/00028576 [07:27:50]Write 301 bytes [07:27:50]NVStorageSaveData done [07:27:50]OFDSenderStorePacket done [07:27:50]KKMCreateOFDPacket done [07:27:50]NVStorageSaveData kkm_last_timestamp [07:27:50]File name is /storage/kkm_last_timestamp [07:27:50]Write 4 bytes [07:27:50]NVStorageSaveData done [07:27:50]ExternCall_PrintAddStr [07:27:50]wPrintStart [07:27:50]Write to MH i2c: 01 00 00 33 5E 91 [07:27:50]Write i2c OK [07:27:50]MH_I2C_Read... [07:27:50]Read from MH i2c: 01 [07:27:50]MH_I2C_Read... [07:27:50]Read from MH i2c: 01 07 00 [07:27:50]MH_I2C_Read... [07:27:50]Read from MH i2c: 01 07 00 33 5E 00 00 00 00 00 FF 0F A6 [07:27:50]RasterBufferAndPrint [07:27:50]line Счет N : (1)346885 [07:27:50]line ИНН: 02508201610067 [07:27:50]line Контрольно-Кассовый Чек [07:27:50]line ПРОДАЖА [07:27:50]line ТРК (МРК, ГНК) : 13 [07:27:50]line Товар: 2710124130 [07:27:50]line Аи-92-К-5 [07:27:50]line 6.230 * 64.30 [07:27:50]line = 400.59 [07:27:50]line НДС 12% НСП 1% [07:27:50]line > о реализуемом товаре [07:27:50]line ОКРУГЛЕНИЕ: -0.59 [07:27:50]line ИТОГО: 400.00 [07:27:50]line Внесено: 400.00 [07:27:50]line СДАЧА: 0.00 [07:27:50]line НСП 1% : 3.54 [07:27:50]line НДС 12% : 42.54 [07:27:50]line Наличными: 400.00 [07:27:50]line Безнал.: 0.00 [07:27:50]line Место: АЗС № 108 "Партнер Нефть" [07:27:50]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [07:27:50]line СНО: Общий режим [07:27:50]line Чек 25 12.04.2024 07:27 [07:27:50]line Смена: 113 ФФД: 1.0 [07:27:50]line ЗНМ: 0300000027 [07:27:50]line РНМ: 0000138879044617 [07:27:50]line Версия ККМ: 001 [07:27:51]line ФМ: 0000000000963154 [07:27:51]line ФД: 28576 [07:27:51]line ФПД: 141254462169899 [07:27:51]line 1/tax-web-control/client/api/v1/ticket?date=20240412T072756&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28576&fm=141254462169899&tin=02508201610067®Number=0000138879044617&sum=40000 [07:27:51]OFD Sender: Processing packet 28576 [packets to send 8, broken 7] [07:27:51]ProducePacketName [07:27:51]name=ofd_packets/00028576 [07:27:51]OFD Sender: To server: pG, [07:27:51]CommunicateWithHost lk.salyk.kg:30040 [07:27:51]ConnectInit lk.salyk.kg [07:27:51]written 0, free lines is 4095 [07:27:51]Connected sock=10 [07:27:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 FB 92 07 01 09 D9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 56 18 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 7B 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 9E 10 00 00 00 00 07 04 06 00 40 9C 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 7C E2 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A0 6F 00 00 35 04 06 00 80 78 5E 0A 63 2B E0 7E FF 97 08 D0 84 5C [07:27:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 6C 44 47 00 EF 26 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A0 6F 00 00 F4 03 04 00 26 8D 18 66 B6 04 01 00 00 74 CE 2B B9 D0 EE 89 2C [07:27:51]CommunicateWithHost err = 0 [07:27:51]CheckOFDResponse [07:27:51]1017 (14) - 77093643461234 [07:27:51]1041 (16) - 0000000000963154 [07:27:51]1040 (4) - 28576 [07:27:51]1012 (4) - 12.04.2024 01:23 [07:27:51]1206 (1) - 0 [07:27:51]OFD Sender: Remove packet 28576 [07:27:51]ProducePacketName [07:27:51]name=ofd_packets/00028576 [07:27:51]NVStorageDeleteData [07:27:51]Write to MH i2c: 01 00 00 5D 5E BB [07:27:51]Write i2c OK [07:27:51]MH_I2C_Read... [07:27:51]Read from MH i2c: 01 [07:27:51]MH_I2C_Read... [07:27:51]Read from MH i2c: 01 07 00 [07:27:51]MH_I2C_Read... [07:27:51]Read from MH i2c: 01 07 00 5D 5E 00 00 00 00 00 C2 0C 90 [07:27:51]RasterBufferAndPrint [07:27:51]line [07:27:51]line [07:27:51]line [07:27:51]line [07:27:51]line [07:27:51]written 0, free lines is 3272 [07:27:51]MH_Cut [07:27:51]Write to MH i2c: D1 01 00 64 5E 01 94 [07:27:51]Write i2c OK [07:27:51]MH_I2C_Read... [07:27:51]Read from MH i2c: D1 [07:27:51]MH_I2C_Read... [07:27:51]Read from MH i2c: D1 01 00 [07:27:51]MH_I2C_Read... [07:27:51]Read from MH i2c: D1 01 00 64 5E 00 93 [07:27:51]Write to MH i2c: 01 00 00 65 5E C3 [07:27:51]Write i2c OK [07:27:51]MH_I2C_Read... [07:27:51]OFD Sender: No OFD packet to send [07:27:52]*** Cut start [07:27:52]*** Partial cut [07:27:52]*** CUTSNS_PIN = 1 [07:27:52]*** CUTSNS_PIN = 0 [07:27:52]*** Brake cut motor [07:27:53]Read from MH i2c: 01 [07:27:53]MH_I2C_Read... [07:27:53]*** Stop cut motor [07:27:53]*** Cut end [07:27:53]Read from MH i2c: 01 07 00 [07:27:53]MH_I2C_Read... [07:27:53]Read from MH i2c: 01 07 00 65 5E 00 00 00 00 00 FF 0F D8 [07:27:53]process_action close_receipt done [07:27:53]requested_data is exist [07:27:53]produce_requested_data [07:27:53]requested_item fm.sn is exist - process it [07:27:53]wFMCommunicate request_size=4 [07:27:53]MH_SAM_APDU [07:27:53]CAPDU: 80 11 00 00 [07:27:53]Write to MH i2c: E2 08 00 66 5E 80 11 00 00 00 00 00 00 3E [07:27:53]Write i2c OK [07:27:53]MH_I2C_Read... [07:27:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:27:53]Read from MH i2c: E2 [07:27:53]MH_I2C_Read... [07:27:53]Read from MH i2c: E2 17 00 [07:27:53]MH_I2C_Read... [07:27:53]Read from MH i2c: E2 17 00 66 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 8D [07:27:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:27:53]wFMCommunicate OK [07:27:53]requested_item fd.num is exist - process it [07:27:53]SAM_PROTO_GetFieldsCounters [07:27:53]wFMCommunicate request_size=4 [07:27:53]MH_SAM_APDU [07:27:53]CAPDU: 80 13 00 00 [07:27:53]Write to MH i2c: E2 08 00 67 5E 80 13 00 00 00 00 00 00 41 [07:27:53]Write i2c OK [07:27:53]MH_I2C_Read... [07:27:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:27:53]Read from MH i2c: E2 [07:27:53]MH_I2C_Read... [07:27:53]Read from MH i2c: E2 62 00 [07:27:53]MH_I2C_Read... [07:27:53]Read from MH i2c: E2 62 00 67 5E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A0 6F 00 00 0E 04 04 00 71 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 4A [07:27:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A0 6F 00 00 0E 04 04 00 71 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 [07:27:53]wFMCommunicate OK [07:27:53]SAM_PROTO_GetFieldsCounters done [07:27:53]requested_item shift.num is exist - process it [07:27:53]requested_item shift.opened is exist - process it [07:27:53]req_shift_opened [07:27:53]FM_GetShiftState [07:27:53]SAM_PROTO_GetShiftState [07:27:53]wFMCommunicate request_size=4 [07:27:53]MH_SAM_APDU [07:27:53]CAPDU: 80 13 01 00 [07:27:53]Write to MH i2c: E2 08 00 68 5E 80 13 01 00 00 00 00 00 43 [07:27:53]Write i2c OK [07:27:53]MH_I2C_Read... [07:27:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:27:53]Read from MH i2c: E2 [07:27:53]MH_I2C_Read... [07:27:53]Read from MH i2c: E2 0E 00 [07:27:53]MH_I2C_Read... [07:27:53]Read from MH i2c: E2 0E 00 68 5E 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 54 [07:27:53]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [07:27:53]wFMCommunicate OK [07:27:53]SAM_PROTO_GetShiftState done [07:27:53]FM_GetShiftState done [07:27:53]req_shift_opened done [07:27:53]requested_item shift.open_date is exist - process it [07:27:53]req_shift_open_date [07:27:53]req_shift_open_date done [07:27:53]produce_requested_data done [07:27:53]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28576,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [07:27:53]process_action_free close_receipt [07:27:53]json_value_free [07:27:53]json_value_free done [07:27:53]process_json_proto returns [07:27:53]Send response to host [07:27:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28576,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [07:27:53]free response buf [07:27:53]execute_script done [07:27:53]execute_script returns [07:27:53]free content buf [07:27:53]Sock 7.Close socket [07:27:53]Sock 7.Thread stoped [07:27:57]OFD Sender: No OFD packet to send [07:28:02]OFD Sender: No OFD packet to send [07:28:07]OFD Sender: No OFD packet to send [07:28:12]OFD Sender: No OFD packet to send [07:28:17]OFD Sender: No OFD packet to send [07:28:22]OFD Sender: No OFD packet to send [07:28:27]OFD Sender: No OFD packet to send [07:28:32]OFD Sender: No OFD packet to send [07:28:37]OFD Sender: No OFD packet to send [07:28:42]OFD Sender: No OFD packet to send [07:28:47]OFD Sender: No OFD packet to send [07:28:52]OFD Sender: No OFD packet to send [07:28:57]OFD Sender: No OFD packet to send [07:29:02]OFD Sender: No OFD packet to send [07:29:04]accept exits with 9 [07:29:04]New connection [07:29:04]New thread 3066641764 created [07:29:04]Thread 3066498404 joined [07:29:04]Waiting for new connection... [07:29:04] Sock 9.Parse request [07:29:04]Sock 9.Check first char [07:29:04]Sock 9.First char is OK [07:29:04]request: POST /json_proto HTTP/1.0 [07:29:04]Method: POST [07:29:04]URL: /json_proto [07:29:04]Method is POST - this is cgi request [07:29:04]url: /json_proto [07:29:04]query_string will be loaded in cgi processing [07:29:04]execute_cgi json_proto POST (null) [07:29:04]execute_cgi path=json_proto method=POST [07:29:04]POST find Content-Length [07:29:04]Host: 172.17.33.3:8080 [07:29:04]Content-Length: 793 [07:29:04]Content-Type: application/json [07:29:04] [07:29:04]POST finish read [07:29:04]Found Content-Length = 793 [07:29:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346884", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 69.990, "sum" : 4500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 4500.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:29:04]execute_script... [07:29: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)346884", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 69.990, "sum" : 4500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 4500.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:29:04]POST & json_proto [07:29:04]process_json_proto [07:29:04]json parsed OK: [07:29:04]protocol is kg_v1.0 [07:29:04]action value=close_receipt [07:29:04]process_action close_receipt [07:29:04]cmd_close_receipt [07:29:04]MH_GetDate [07:29:04]Write to MH i2c: F0 00 00 69 5E B6 [07:29:04]Write i2c OK [07:29:04]MH_I2C_Read... [07:29:04]Read from MH i2c: F0 [07:29:04]MH_I2C_Read... [07:29:04]Read from MH i2c: F0 09 00 [07:29:04]MH_I2C_Read... [07:29:04]Read from MH i2c: F0 09 00 69 5E 00 C7 E2 18 66 23 5B 8F 65 58 [07:29:04]GetLastDocTimeStamp 1712906876 [07:29:04]current date 1712906951 [07:29:04]FM_GetShiftState [07:29:04]SAM_PROTO_GetShiftState [07:29:04]wFMCommunicate request_size=4 [07:29:04]MH_SAM_APDU [07:29:04]CAPDU: 80 13 01 00 [07:29:04]Write to MH i2c: E2 08 00 6A 5E 80 13 01 00 00 00 00 00 45 [07:29:04]Write i2c OK [07:29:04]MH_I2C_Read... [07:29:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:29:04]Read from MH i2c: E2 [07:29:04]MH_I2C_Read... [07:29:04]Read from MH i2c: E2 0E 00 [07:29:04]MH_I2C_Read... [07:29:04]Read from MH i2c: E2 0E 00 6A 5E 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 56 [07:29:04]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [07:29:04]wFMCommunicate OK [07:29:04]SAM_PROTO_GetShiftState done [07:29:04]FM_GetShiftState done [07:29:04]opened in 1712881416 [07:29:04]opened+sec_in_day 1712967816 [07:29:04]quantity*price = 450035 [07:29:04]sum+1 = 450037 [07:29:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 4500.36 НСП 1% : 39.83 НДС 12% : 477.91 Наличными: 0.00 Безнал.: 4500.36 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 26 12.04.2024 07:29 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000963154 ФД: 28577 ФПД: 27963005647903 1/tax-web-control/client/api/v1/ticket?date=20240412T072911&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28577&fm=27963005647903&tin=02508201610067®Number=0000138879044617&sum=450036 [07:29:06]StoreToDocumentArchive [07:29:06]shift 113 fd 28577 [07:29:06]save to /storage/0113/doc_00028577 [07:29:06]save last doc name /storage/0113/doc_00028577 to /storage/kkm_last_doc_name [07:29:06]save OK [07:29:06]Clear old archive folders... [07:29:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:29:06]tlvbuf is 01AB6C80 [07:29:06]SAM_PROTO_ClearQueue [07:29:06]wFMCommunicate request_size=4 [07:29:06]MH_SAM_APDU [07:29:06]CAPDU: 80 09 00 00 [07:29:06]Write to MH i2c: E2 08 00 77 5E 80 09 00 00 00 00 00 00 47 [07:29:06]Write i2c OK [07:29:06]MH_I2C_Read... [07:29:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:29:06]Read from MH i2c: E2 [07:29:06]MH_I2C_Read... [07:29:06]Read from MH i2c: E2 03 00 [07:29:06]MH_I2C_Read... [07:29:06]Read from MH i2c: E2 03 00 77 5E 00 90 00 49 [07:29:06]RAPDU: 90 00 [07:29:06]wFMCommunicate OK [07:29:06]SAM_PROTO_ClearQueue done [07:29:06]KKMCreateOFDPacket [07:29:06]OFDProtocolAddRootSTLVToBuf [07:29:06]FM_MakeSignedData [07:29:06]FM_MakeSignedData [07:29:06]SAM_PROTO_SignData [07:29:06]wFMCommunicate request_size=4 [07:29:06]MH_SAM_APDU [07:29:06]CAPDU: 80 0D 01 02 [07:29:06]Write to MH i2c: E2 08 00 78 5E 80 0D 01 02 00 00 00 00 4F [07:29:06]Write i2c OK [07:29:06]MH_I2C_Read... [07:29:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:29:06]Read from MH i2c: E2 [07:29:06]MH_I2C_Read... [07:29:06]Read from MH i2c: E2 03 00 [07:29:06]MH_I2C_Read... [07:29:06]Read from MH i2c: E2 03 00 78 5E 00 90 00 4A [07:29:06]RAPDU: 90 00 [07:29:06]wFMCommunicate OK [07:29:06]wFMCommunicate request_size=255 [07:29:06]MH_SAM_APDU [07:29:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 11 01 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 F4 DD 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF BA 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 DD 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 C7 E2 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A1 6F 00 00 35 04 06 00 19 [07:29:06]Write to MH i2c: E2 02 01 79 5E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 11 01 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 F4 DD 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF BA 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 DD 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 C7 E2 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A1 6F 00 00 35 04 06 00 19 00 00 8C [07:29:06]Write i2c OK [07:29:06]MH_I2C_Read... [07:29:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:29:06]Read from MH i2c: E2 [07:29:06]MH_I2C_Read... [07:29:06]Read from MH i2c: E2 03 00 [07:29:06]MH_I2C_Read... [07:29:06]Read from MH i2c: E2 03 00 79 5E 00 90 00 4B [07:29:06]RAPDU: 90 00 [07:29:06]wFMCommunicate OK [07:29:06]wFMCommunicate request_size=10 [07:29:06]MH_SAM_APDU [07:29:06]CAPDU: 80 0D 02 02 05 6E A5 04 BC 1F [07:29:06]Write to MH i2c: E2 0D 00 7A 5E 80 0D 02 02 05 00 6E A5 04 BC 1F 00 00 4E [07:29:06]Write i2c OK [07:29:06]MH_I2C_Read... [07:29:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:29:06]Read from MH i2c: E2 [07:29:06]MH_I2C_Read... [07:29:06]Read from MH i2c: E2 03 00 [07:29:06]MH_I2C_Read... [07:29:06]Read from MH i2c: E2 03 00 7A 5E 00 90 00 4C [07:29:06]RAPDU: 90 00 [07:29:06]wFMCommunicate OK [07:29:06]wFMCommunicate request_size=4 [07:29:06]MH_SAM_APDU [07:29:06]CAPDU: 80 0D 03 02 [07:29:06]Write to MH i2c: E2 08 00 7B 5E 80 0D 03 02 00 00 00 00 54 [07:29:06]Write i2c OK [07:29:06]MH_I2C_Read... [07:29:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:29:06]Read from MH i2c: E2 [07:29:06]MH_I2C_Read... [07:29:06]Read from MH i2c: E2 0B 00 [07:29:06]MH_I2C_Read... [07:29:06]Read from MH i2c: E2 0B 00 7B 5E 00 AD 27 E8 8E 55 6D 76 38 90 00 0F [07:29:06]RAPDU: AD 27 E8 8E 55 6D 76 38 90 00 [07:29:06]wFMCommunicate OK [07:29:06]SAM_PROTO_SignData done [07:29:06]FM_MakeSignedData done [07:29:06]CreateOFDProtocolMessage [07:29:06]wFMCommunicate request_size=4 [07:29:06]MH_SAM_APDU [07:29:06]CAPDU: 80 11 00 00 [07:29:06]Write to MH i2c: E2 08 00 7C 5E 80 11 00 00 00 00 00 00 54 [07:29:06]Write i2c OK [07:29:06]MH_I2C_Read... [07:29:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:29:06]Read from MH i2c: E2 [07:29:06]MH_I2C_Read... [07:29:06]Read from MH i2c: E2 17 00 [07:29:06]MH_I2C_Read... [07:29:06]Read from MH i2c: E2 17 00 7C 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 A3 [07:29:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:29:06]wFMCommunicate OK [07:29:06]CreateOFDProtocolMessage done [07:29:06]OFDSenderStorePacket 28577 [07:29:06]StoreOFDPacket docnum=28577 [07:29:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 AF 6A 07 01 EE 4F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 11 01 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 F4 DD 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF BA 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 DD 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 C7 E2 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A1 6F 00 00 35 04 06 00 19 6E A5 04 BC 1F AD 27 E8 8E 55 6D 76 38 [07:29:06]CheckFolder [07:29:06]dirname=/storage/ofd_packets [07:29:06]CheckFolder done [07:29:06]ProducePacketName [07:29:06]name=ofd_packets/00028577 [07:29:06]NVStorageSaveData ofd_packets/00028577 [07:29:06]File name is /storage/ofd_packets/00028577 [07:29:06]Write 301 bytes [07:29:06]NVStorageSaveData done [07:29:06]OFDSenderStorePacket done [07:29:06]KKMCreateOFDPacket done [07:29:06]NVStorageSaveData kkm_last_timestamp [07:29:06]File name is /storage/kkm_last_timestamp [07:29:06]Write 4 bytes [07:29:06]NVStorageSaveData done [07:29:06]ExternCall_PrintAddStr [07:29:06]wPrintStart [07:29:06]Write to MH i2c: 01 00 00 7D 5E DB [07:29:06]Write i2c OK [07:29:06]MH_I2C_Read... [07:29:06]Read from MH i2c: 01 [07:29:06]MH_I2C_Read... [07:29:06]Read from MH i2c: 01 07 00 [07:29:06]MH_I2C_Read... [07:29:06]Read from MH i2c: 01 07 00 7D 5E 00 00 00 00 00 FF 0F F0 [07:29:06]RasterBufferAndPrint [07:29:06]line Счет N : (1)346884 [07:29:06]line ИНН: 02508201610067 [07:29:06]line Контрольно-Кассовый Чек [07:29:06]line ПРОДАЖА [07:29:06]line ТРК (МРК, ГНК) : 23 [07:29:06]line Товар: 2710124130 [07:29:06]line Аи-92-К-5 [07:29:06]line 69.990 * 64.30 [07:29:06]line = 4500.36 [07:29:06]line НДС 12% НСП 1% [07:29:06]line > о реализуемом товаре [07:29:06]line ИТОГО: 4500.36 [07:29:06]line НСП 1% : 39.83 [07:29:06]line НДС 12% : 477.91 [07:29:06]line Наличными: 0.00 [07:29:06]line Безнал.: 4500.36 [07:29:06]line Место: АЗС № 108 "Партнер Нефть" [07:29:06]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [07:29:06]line СНО: Общий режим [07:29:06]line Чек 26 12.04.2024 07:29 [07:29:06]line Смена: 113 ФФД: 1.0 [07:29:06]line ЗНМ: 0300000027 [07:29:06]line РНМ: 0000138879044617 [07:29:06]line Версия ККМ: 001 [07:29:06]line Платежная система: KICB Банк [07:29:06]line ФМ: 0000000000963154 [07:29:06]line ФД: 28577 [07:29:06]line ФПД: 27963005647903 [07:29:06]line 1/tax-web-control/client/api/v1/ticket?date=20240412T072911&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28577&fm=27963005647903&tin=02508201610067®Number=0000138879044617&sum=450036 [07:29:06]OFD Sender: Processing packet 28577 [packets to send 8, broken 7] [07:29:06]ProducePacketName [07:29:06]name=ofd_packets/00028577 [07:29:06]OFD Sender: To server: pG, [07:29:06]CommunicateWithHost lk.salyk.kg:30040 [07:29:06]ConnectInit lk.salyk.kg [07:29:06]written 0, free lines is 4095 [07:29:06]Connected sock=10 [07:29:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 AF 6A 07 01 EE 4F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 11 01 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 F4 DD 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF BA 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 DD 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 C7 E2 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A1 6F 00 00 35 04 06 00 19 6E A5 04 BC 1F AD 27 E8 8E 55 6D 76 38 [07:29:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 13 C4 47 00 F6 9B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A1 6F 00 00 F4 03 04 00 72 8D 18 66 B6 04 01 00 00 15 34 A4 62 D4 72 0E 83 [07:29:07]CommunicateWithHost err = 0 [07:29:07]CheckOFDResponse [07:29:07]1017 (14) - 77093643461234 [07:29:07]1041 (16) - 0000000000963154 [07:29:07]1040 (4) - 28577 [07:29:07]1012 (4) - 12.04.2024 01:25 [07:29:07]1206 (1) - 0 [07:29:07]OFD Sender: Remove packet 28577 [07:29:07]ProducePacketName [07:29:07]name=ofd_packets/00028577 [07:29:07]NVStorageDeleteData [07:29:07]Write to MH i2c: 01 00 00 A6 5E 04 [07:29:07]Write i2c OK [07:29:07]MH_I2C_Read... [07:29:07]Read from MH i2c: 01 [07:29:07]MH_I2C_Read... [07:29:07]Read from MH i2c: 01 07 00 [07:29:07]MH_I2C_Read... [07:29:07]Read from MH i2c: 01 07 00 A6 5E 00 00 00 00 00 D7 0C EE [07:29:07]RasterBufferAndPrint [07:29:07]line [07:29:07]line [07:29:07]line [07:29:07]line [07:29:07]line [07:29:07]written 0, free lines is 3293 [07:29:07]MH_Cut [07:29:07]Write to MH i2c: D1 01 00 AD 5E 01 DD [07:29:07]Write i2c OK [07:29:07]MH_I2C_Read... [07:29:07]Read from MH i2c: D1 [07:29:07]MH_I2C_Read... [07:29:07]Read from MH i2c: D1 01 00 [07:29:07]MH_I2C_Read... [07:29:07]Read from MH i2c: D1 01 00 AD 5E 00 DC [07:29:07]Write to MH i2c: 01 00 00 AE 5E 0C [07:29:07]Write i2c OK [07:29:07]MH_I2C_Read... [07:29:07]OFD Sender: No OFD packet to send [07:29:08]*** Cut start [07:29:08]*** Partial cut [07:29:08]*** CUTSNS_PIN = 1 [07:29:08]*** CUTSNS_PIN = 0 [07:29:08]*** Brake cut motor [07:29:08]Read from MH i2c: 01 [07:29:08]MH_I2C_Read... [07:29:08]*** Stop cut motor [07:29:08]*** Cut end [07:29:08]Read from MH i2c: 01 07 00 [07:29:08]MH_I2C_Read... [07:29:08]Read from MH i2c: 01 07 00 AE 5E 00 00 00 00 00 FF 0F 21 [07:29:08]process_action close_receipt done [07:29:08]requested_data is exist [07:29:08]produce_requested_data [07:29:08]requested_item fm.sn is exist - process it [07:29:08]wFMCommunicate request_size=4 [07:29:08]MH_SAM_APDU [07:29:08]CAPDU: 80 11 00 00 [07:29:08]Write to MH i2c: E2 08 00 AF 5E 80 11 00 00 00 00 00 00 87 [07:29:08]Write i2c OK [07:29:08]MH_I2C_Read... [07:29:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:29:08]Read from MH i2c: E2 [07:29:08]MH_I2C_Read... [07:29:08]Read from MH i2c: E2 17 00 [07:29:08]MH_I2C_Read... [07:29:08]Read from MH i2c: E2 17 00 AF 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D6 [07:29:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:29:08]wFMCommunicate OK [07:29:08]requested_item fd.num is exist - process it [07:29:08]SAM_PROTO_GetFieldsCounters [07:29:08]wFMCommunicate request_size=4 [07:29:08]MH_SAM_APDU [07:29:08]CAPDU: 80 13 00 00 [07:29:08]Write to MH i2c: E2 08 00 B0 5E 80 13 00 00 00 00 00 00 8A [07:29:08]Write i2c OK [07:29:08]MH_I2C_Read... [07:29:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:29:08]Read from MH i2c: E2 [07:29:08]MH_I2C_Read... [07:29:08]Read from MH i2c: E2 62 00 [07:29:08]MH_I2C_Read... [07:29:08]Read from MH i2c: E2 62 00 B0 5E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A1 6F 00 00 0E 04 04 00 71 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 97 [07:29:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A1 6F 00 00 0E 04 04 00 71 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 [07:29:08]wFMCommunicate OK [07:29:08]SAM_PROTO_GetFieldsCounters done [07:29:08]requested_item shift.num is exist - process it [07:29:08]requested_item shift.opened is exist - process it [07:29:08]req_shift_opened [07:29:08]FM_GetShiftState [07:29:08]SAM_PROTO_GetShiftState [07:29:08]wFMCommunicate request_size=4 [07:29:08]MH_SAM_APDU [07:29:08]CAPDU: 80 13 01 00 [07:29:08]Write to MH i2c: E2 08 00 B1 5E 80 13 01 00 00 00 00 00 8C [07:29:08]Write i2c OK [07:29:08]MH_I2C_Read... [07:29:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:29:08]Read from MH i2c: E2 [07:29:08]MH_I2C_Read... [07:29:08]Read from MH i2c: E2 0E 00 [07:29:08]MH_I2C_Read... [07:29:08]Read from MH i2c: E2 0E 00 B1 5E 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 9D [07:29:08]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [07:29:08]wFMCommunicate OK [07:29:08]SAM_PROTO_GetShiftState done [07:29:08]FM_GetShiftState done [07:29:08]req_shift_opened done [07:29:08]requested_item shift.open_date is exist - process it [07:29:08]req_shift_open_date [07:29:08]req_shift_open_date done [07:29:08]produce_requested_data done [07:29:08]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28577,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [07:29:08]process_action_free close_receipt [07:29:08]json_value_free [07:29:08]json_value_free done [07:29:08]process_json_proto returns [07:29:08]Send response to host [07:29:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28577,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [07:29:08]free response buf [07:29:08]execute_script done [07:29:08]execute_script returns [07:29:08]free content buf [07:29:08]Sock 9.Close socket [07:29:08]Sock 9.Thread stoped [07:29:12]OFD Sender: No OFD packet to send [07:29:17]OFD Sender: No OFD packet to send [07:29:22]OFD Sender: No OFD packet to send [07:29:27]OFD Sender: No OFD packet to send [07:29:32]OFD Sender: No OFD packet to send [07:29:37]OFD Sender: No OFD packet to send [07:29:42]OFD Sender: No OFD packet to send [07:29:47]OFD Sender: No OFD packet to send [07:29:52]OFD Sender: No OFD packet to send [07:29:57]OFD Sender: No OFD packet to send [07:30:02]OFD Sender: No OFD packet to send [07:30:07]OFD Sender: No OFD packet to send [07:30:12]OFD Sender: No OFD packet to send [07:30:17]OFD Sender: No OFD packet to send [07:30:22]OFD Sender: No OFD packet to send [07:30:27]OFD Sender: No OFD packet to send [07:30:32]OFD Sender: No OFD packet to send [07:30:37]OFD Sender: No OFD packet to send [07:30:42]OFD Sender: No OFD packet to send [07:30:47]OFD Sender: No OFD packet to send [07:30:52]OFD Sender: No OFD packet to send [07:30:57]OFD Sender: No OFD packet to send [07:31:02]OFD Sender: No OFD packet to send [07:31:07]OFD Sender: No OFD packet to send [07:31:11]accept exits with 7 [07:31:11]New connection [07:31:11]New thread 3066498404 created [07:31:11]Thread 3066641764 joined [07:31:11]Waiting for new connection... [07:31:11] Sock 7.Parse request [07:31:11]Sock 7.Check first char [07:31:11]Sock 7.First char is OK [07:31:11]request: POST /json_proto HTTP/1.0 [07:31:11]Method: POST [07:31:11]URL: /json_proto [07:31:11]Method is POST - this is cgi request [07:31:11]url: /json_proto [07:31:11]query_string will be loaded in cgi processing [07:31:11]execute_cgi json_proto POST (null) [07:31:11]execute_cgi path=json_proto method=POST [07:31:11]POST find Content-Length [07:31:11]Host: 172.17.33.3:8080 [07:31:11]Content-Length: 670 [07:31:11]Content-Type: application/json [07:31:11] [07:31:11]POST finish read [07:31:11]Found Content-Length = 670 [07:31:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346886", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 9.190, "sum" : 600.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:31:11]execute_script... [07:31: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)346886", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 9.190, "sum" : 600.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:31:11]POST & json_proto [07:31:11]process_json_proto [07:31:11]json parsed OK: [07:31:11]protocol is kg_v1.0 [07:31:11]action value=close_receipt [07:31:11]process_action close_receipt [07:31:11]cmd_close_receipt [07:31:11]MH_GetDate [07:31:11]Write to MH i2c: F0 00 00 B2 5E FF [07:31:11]Write i2c OK [07:31:11]MH_I2C_Read... [07:31:11]Read from MH i2c: F0 [07:31:11]MH_I2C_Read... [07:31:11]Read from MH i2c: F0 09 00 [07:31:11]MH_I2C_Read... [07:31:11]Read from MH i2c: F0 09 00 B2 5E 00 46 E3 18 66 23 5B 8F 65 21 [07:31:11]GetLastDocTimeStamp 1712906951 [07:31:11]current date 1712907078 [07:31:11]FM_GetShiftState [07:31:11]SAM_PROTO_GetShiftState [07:31:11]wFMCommunicate request_size=4 [07:31:11]MH_SAM_APDU [07:31:11]CAPDU: 80 13 01 00 [07:31:11]Write to MH i2c: E2 08 00 B3 5E 80 13 01 00 00 00 00 00 8E [07:31:11]Write i2c OK [07:31:11]MH_I2C_Read... [07:31:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:31:11]Read from MH i2c: E2 [07:31:11]MH_I2C_Read... [07:31:11]Read from MH i2c: E2 0E 00 [07:31:11]MH_I2C_Read... [07:31:11]Read from MH i2c: E2 0E 00 B3 5E 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 9F [07:31:11]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [07:31:11]wFMCommunicate OK [07:31:11]SAM_PROTO_GetShiftState done [07:31:11]FM_GetShiftState done [07:31:11]opened in 1712881416 [07:31:11]opened+sec_in_day 1712967816 [07:31:11]quantity*price = 60010 [07:31:11]sum+1 = 60012 [07:31:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 27 12.04.2024 07:31 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28578 ФПД: 201780405786281 1/tax-web-control/client/api/v1/ticket?date=20240412T073118&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28578&fm=201780405786281&tin=02508201610067®Number=0000138879044617&sum=60000 [07:31:12]StoreToDocumentArchive [07:31:12]shift 113 fd 28578 [07:31:12]save to /storage/0113/doc_00028578 [07:31:12]save last doc name /storage/0113/doc_00028578 to /storage/kkm_last_doc_name [07:31:12]save OK [07:31:12]Clear old archive folders... [07:31:12]ProcessDocumentItem done err = 0, tmpTLVsize=252 [07:31:12]tlvbuf is 01BB1AA0 [07:31:12]SAM_PROTO_ClearQueue [07:31:12]wFMCommunicate request_size=4 [07:31:12]MH_SAM_APDU [07:31:12]CAPDU: 80 09 00 00 [07:31:12]Write to MH i2c: E2 08 00 C0 5E 80 09 00 00 00 00 00 00 90 [07:31:12]Write i2c OK [07:31:12]MH_I2C_Read... [07:31:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:31:12]Read from MH i2c: E2 [07:31:12]MH_I2C_Read... [07:31:12]Read from MH i2c: E2 03 00 [07:31:12]MH_I2C_Read... [07:31:12]Read from MH i2c: E2 03 00 C0 5E 00 90 00 92 [07:31:12]RAPDU: 90 00 [07:31:12]wFMCommunicate OK [07:31:12]SAM_PROTO_ClearQueue done [07:31:12]KKMCreateOFDPacket [07:31:12]OFDProtocolAddRootSTLVToBuf [07:31:12]FM_MakeSignedData [07:31:12]FM_MakeSignedData [07:31:12]SAM_PROTO_SignData [07:31:12]wFMCommunicate request_size=4 [07:31:12]MH_SAM_APDU [07:31:12]CAPDU: 80 0D 01 02 [07:31:12]Write to MH i2c: E2 08 00 C1 5E 80 0D 01 02 00 00 00 00 98 [07:31:12]Write i2c OK [07:31:12]MH_I2C_Read... [07:31:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:31:12]Read from MH i2c: E2 [07:31:12]MH_I2C_Read... [07:31:12]Read from MH i2c: E2 03 00 [07:31:12]MH_I2C_Read... [07:31:12]Read from MH i2c: E2 03 00 C1 5E 00 90 00 93 [07:31:12]RAPDU: 90 00 [07:31:12]wFMCommunicate OK [07:31:12]wFMCommunicate request_size=255 [07:31:12]MH_SAM_APDU [07:31:12]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 6B 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 1B 00 00 00 F4 03 04 00 46 E3 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A2 6F 00 00 35 04 06 00 [07:31:12]Write to MH i2c: E2 02 01 C2 5E 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 6B 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 1B 00 00 00 F4 03 04 00 46 E3 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A2 6F 00 00 35 04 06 00 00 00 4C [07:31:12]Write i2c OK [07:31:12]MH_I2C_Read... [07:31:12]OFD Sender: No OFD packet to send [07:31:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:31:13]Read from MH i2c: E2 [07:31:13]MH_I2C_Read... [07:31:13]Read from MH i2c: E2 03 00 [07:31:13]MH_I2C_Read... [07:31:13]Read from MH i2c: E2 03 00 C2 5E 00 90 00 94 [07:31:13]RAPDU: 90 00 [07:31:13]wFMCommunicate OK [07:31:13]wFMCommunicate request_size=11 [07:31:13]MH_SAM_APDU [07:31:13]CAPDU: 80 0D 02 02 06 B7 84 A9 68 D6 A9 [07:31:13]Write to MH i2c: E2 0E 00 C3 5E 80 0D 02 02 06 00 B7 84 A9 68 D6 A9 00 00 72 [07:31:13]Write i2c OK [07:31:13]MH_I2C_Read... [07:31:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:31:13]Read from MH i2c: E2 [07:31:13]MH_I2C_Read... [07:31:13]Read from MH i2c: E2 03 00 [07:31:13]MH_I2C_Read... [07:31:13]Read from MH i2c: E2 03 00 C3 5E 00 90 00 95 [07:31:13]RAPDU: 90 00 [07:31:13]wFMCommunicate OK [07:31:13]wFMCommunicate request_size=4 [07:31:13]MH_SAM_APDU [07:31:13]CAPDU: 80 0D 03 02 [07:31:13]Write to MH i2c: E2 08 00 C4 5E 80 0D 03 02 00 00 00 00 9D [07:31:13]Write i2c OK [07:31:13]MH_I2C_Read... [07:31:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:31:13]Read from MH i2c: E2 [07:31:13]MH_I2C_Read... [07:31:13]Read from MH i2c: E2 0B 00 [07:31:13]MH_I2C_Read... [07:31:13]Read from MH i2c: E2 0B 00 C4 5E 00 48 05 68 D0 BB 8C AD FA 90 00 11 [07:31:13]RAPDU: 48 05 68 D0 BB 8C AD FA 90 00 [07:31:13]wFMCommunicate OK [07:31:13]SAM_PROTO_SignData done [07:31:13]FM_MakeSignedData done [07:31:13]CreateOFDProtocolMessage [07:31:13]wFMCommunicate request_size=4 [07:31:13]MH_SAM_APDU [07:31:13]CAPDU: 80 11 00 00 [07:31:13]Write to MH i2c: E2 08 00 C5 5E 80 11 00 00 00 00 00 00 9D [07:31:13]Write i2c OK [07:31:13]MH_I2C_Read... [07:31:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:31:13]Read from MH i2c: E2 [07:31:13]MH_I2C_Read... [07:31:13]Read from MH i2c: E2 17 00 [07:31:13]MH_I2C_Read... [07:31:13]Read from MH i2c: E2 17 00 C5 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 EC [07:31:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:31:13]wFMCommunicate OK [07:31:13]CreateOFDProtocolMessage done [07:31:13]OFDSenderStorePacket 28578 [07:31:13]StoreOFDPacket docnum=28578 [07:31:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 BA 03 08 01 1C 06 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 6B 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 1B 00 00 00 F4 03 04 00 46 E3 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A2 6F 00 00 35 04 06 00 B7 84 A9 68 D6 A9 48 05 68 D0 BB 8C AD FA [07:31:13]CheckFolder [07:31:13]dirname=/storage/ofd_packets [07:31:13]CheckFolder done [07:31:13]ProducePacketName [07:31:13]name=ofd_packets/00028578 [07:31:13]NVStorageSaveData ofd_packets/00028578 [07:31:13]File name is /storage/ofd_packets/00028578 [07:31:13]Write 302 bytes [07:31:13]NVStorageSaveData done [07:31:13]OFDSenderStorePacket done [07:31:13]KKMCreateOFDPacket done [07:31:13]NVStorageSaveData kkm_last_timestamp [07:31:13]File name is /storage/kkm_last_timestamp [07:31:13]Write 4 bytes [07:31:13]NVStorageSaveData done [07:31:13]ExternCall_PrintAddStr [07:31:13]wPrintStart [07:31:13]Write to MH i2c: 01 00 00 C6 5E 24 [07:31:13]Write i2c OK [07:31:13]MH_I2C_Read... [07:31:13]Read from MH i2c: 01 [07:31:13]MH_I2C_Read... [07:31:13]Read from MH i2c: 01 07 00 [07:31:13]MH_I2C_Read... [07:31:13]Read from MH i2c: 01 07 00 C6 5E 00 00 00 00 00 FF 0F 39 [07:31:13]RasterBufferAndPrint [07:31:13]line Счет N : (1)346886 [07:31:13]line ИНН: 02508201610067 [07:31:13]line Контрольно-Кассовый Чек [07:31:13]line ПРОДАЖА [07:31:13]line ТРК (МРК, ГНК) : 31 [07:31:13]line Товар: 2710124130 [07:31:13]line SUPER-92-К-5 [07:31:13]line 9.190 * 65.30 [07:31:13]line = 600.11 [07:31:13]line НДС 12% НСП 1% [07:31:13]line > о реализуемом товаре [07:31:13]line ОКРУГЛЕНИЕ: -0.11 [07:31:13]line ИТОГО: 600.00 [07:31:13]line Внесено: 600.00 [07:31:13]line СДАЧА: 0.00 [07:31:13]line НСП 1% : 5.31 [07:31:13]line НДС 12% : 63.73 [07:31:13]line Наличными: 600.00 [07:31:13]line Безнал.: 0.00 [07:31:13]line Место: АЗС № 108 "Партнер Нефть" [07:31:13]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [07:31:13]line СНО: Общий режим [07:31:13]line Чек 27 12.04.2024 07:31 [07:31:13]line Смена: 113 ФФД: 1.0 [07:31:13]line ЗНМ: 0300000027 [07:31:13]line РНМ: 0000138879044617 [07:31:13]line Версия ККМ: 001 [07:31:13]line ФМ: 0000000000963154 [07:31:13]line ФД: 28578 [07:31:13]line ФПД: 201780405786281 [07:31:13]line 1/tax-web-control/client/api/v1/ticket?date=20240412T073118&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28578&fm=201780405786281&tin=02508201610067®Number=0000138879044617&sum=60000 [07:31:13]OFD Sender: Processing packet 28578 [packets to send 8, broken 7] [07:31:13]ProducePacketName [07:31:13]name=ofd_packets/00028578 [07:31:13]OFD Sender: To server: pG, [07:31:13]CommunicateWithHost lk.salyk.kg:30040 [07:31:13]ConnectInit lk.salyk.kg [07:31:13]written 0, free lines is 4095 [07:31:13]Connected sock=10 [07:31:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 BA 03 08 01 1C 06 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 6B 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 1B 00 00 00 F4 03 04 00 46 E3 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A2 6F 00 00 35 04 06 00 B7 84 A9 68 D6 A9 48 05 68 D0 BB 8C AD FA [07:31:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 30 2E 47 00 F0 C4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A2 6F 00 00 F4 03 04 00 F1 8D 18 66 B6 04 01 00 00 B1 DD 37 35 9A 8A 6F 3B [07:31:13]CommunicateWithHost err = 0 [07:31:13]CheckOFDResponse [07:31:13]1017 (14) - 77093643461234 [07:31:13]1041 (16) - 0000000000963154 [07:31:13]1040 (4) - 28578 [07:31:13]1012 (4) - 12.04.2024 01:27 [07:31:13]1206 (1) - 0 [07:31:13]OFD Sender: Remove packet 28578 [07:31:13]ProducePacketName [07:31:13]name=ofd_packets/00028578 [07:31:13]NVStorageDeleteData [07:31:13]Write to MH i2c: 01 00 00 F0 5E 4E [07:31:13]Write i2c OK [07:31:13]MH_I2C_Read... [07:31:13]Read from MH i2c: 01 [07:31:13]MH_I2C_Read... [07:31:13]Read from MH i2c: 01 07 00 [07:31:13]MH_I2C_Read... [07:31:13]Read from MH i2c: 01 07 00 F0 5E 00 00 00 00 00 B8 0C 19 [07:31:13]RasterBufferAndPrint [07:31:13]line [07:31:13]line [07:31:13]line [07:31:13]line [07:31:13]line [07:31:13]written 0, free lines is 3261 [07:31:13]MH_Cut [07:31:13]Write to MH i2c: D1 01 00 F7 5E 01 27 [07:31:13]Write i2c OK [07:31:13]MH_I2C_Read... [07:31:13]Read from MH i2c: D1 [07:31:13]MH_I2C_Read... [07:31:13]Read from MH i2c: D1 01 00 [07:31:13]MH_I2C_Read... [07:31:13]Read from MH i2c: D1 01 00 F7 5E 00 26 [07:31:13]Write to MH i2c: 01 00 00 F8 5E 56 [07:31:13]Write i2c OK [07:31:13]MH_I2C_Read... [07:31:14]OFD Sender: No OFD packet to send [07:31:14]*** Cut start [07:31:14]*** Partial cut [07:31:14]*** CUTSNS_PIN = 1 [07:31:14]*** CUTSNS_PIN = 0 [07:31:15]*** Brake cut motor [07:31:15]Read from MH i2c: 01 [07:31:15]MH_I2C_Read... [07:31:15]*** Stop cut motor [07:31:15]*** Cut end [07:31:15]Read from MH i2c: 01 07 00 [07:31:15]MH_I2C_Read... [07:31:15]Read from MH i2c: 01 07 00 F8 5E 00 00 00 00 00 FF 0F 6B [07:31:15]process_action close_receipt done [07:31:15]requested_data is exist [07:31:15]produce_requested_data [07:31:15]requested_item fm.sn is exist - process it [07:31:15]wFMCommunicate request_size=4 [07:31:15]MH_SAM_APDU [07:31:15]CAPDU: 80 11 00 00 [07:31:15]Write to MH i2c: E2 08 00 F9 5E 80 11 00 00 00 00 00 00 D1 [07:31:15]Write i2c OK [07:31:15]MH_I2C_Read... [07:31:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:31:15]Read from MH i2c: E2 [07:31:15]MH_I2C_Read... [07:31:15]Read from MH i2c: E2 17 00 [07:31:15]MH_I2C_Read... [07:31:15]Read from MH i2c: E2 17 00 F9 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 20 [07:31:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:31:15]wFMCommunicate OK [07:31:15]requested_item fd.num is exist - process it [07:31:15]SAM_PROTO_GetFieldsCounters [07:31:15]wFMCommunicate request_size=4 [07:31:15]MH_SAM_APDU [07:31:15]CAPDU: 80 13 00 00 [07:31:15]Write to MH i2c: E2 08 00 FA 5E 80 13 00 00 00 00 00 00 D4 [07:31:15]Write i2c OK [07:31:15]MH_I2C_Read... [07:31:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:31:15]Read from MH i2c: E2 [07:31:15]MH_I2C_Read... [07:31:15]Read from MH i2c: E2 62 00 [07:31:15]MH_I2C_Read... [07:31:15]Read from MH i2c: E2 62 00 FA 5E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A2 6F 00 00 0E 04 04 00 71 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 E5 [07:31:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A2 6F 00 00 0E 04 04 00 71 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 [07:31:15]wFMCommunicate OK [07:31:15]SAM_PROTO_GetFieldsCounters done [07:31:15]requested_item shift.num is exist - process it [07:31:15]requested_item shift.opened is exist - process it [07:31:15]req_shift_opened [07:31:15]FM_GetShiftState [07:31:15]SAM_PROTO_GetShiftState [07:31:15]wFMCommunicate request_size=4 [07:31:15]MH_SAM_APDU [07:31:15]CAPDU: 80 13 01 00 [07:31:15]Write to MH i2c: E2 08 00 FB 5E 80 13 01 00 00 00 00 00 D6 [07:31:15]Write i2c OK [07:31:15]MH_I2C_Read... [07:31:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:31:15]Read from MH i2c: E2 [07:31:15]MH_I2C_Read... [07:31:15]Read from MH i2c: E2 0E 00 [07:31:15]MH_I2C_Read... [07:31:15]Read from MH i2c: E2 0E 00 FB 5E 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 E7 [07:31:15]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [07:31:15]wFMCommunicate OK [07:31:15]SAM_PROTO_GetShiftState done [07:31:15]FM_GetShiftState done [07:31:15]req_shift_opened done [07:31:15]requested_item shift.open_date is exist - process it [07:31:15]req_shift_open_date [07:31:15]req_shift_open_date done [07:31:15]produce_requested_data done [07:31:15]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28578,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [07:31:15]process_action_free close_receipt [07:31:15]json_value_free [07:31:15]json_value_free done [07:31:15]process_json_proto returns [07:31:15]Send response to host [07:31:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28578,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [07:31:15]free response buf [07:31:15]execute_script done [07:31:15]execute_script returns [07:31:15]free content buf [07:31:15]Sock 7.Close socket [07:31:15]Sock 7.Thread stoped [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:19]OFD Sender: No OFD packet to send [07:33:24]OFD Sender: No OFD packet to send [07:33:29]OFD Sender: No OFD packet to send [07:33:34]OFD Sender: No OFD packet to send [07:33:39]OFD Sender: No OFD packet to send [07:33:44]OFD Sender: No OFD packet to send [07:33:49]OFD Sender: No OFD packet to send [07:33:54]OFD Sender: No OFD packet to send [07:33:59]OFD Sender: No OFD packet to send [07:34:04]OFD Sender: No OFD packet to send [07:34:09]OFD Sender: No OFD packet to send [07:34:14]OFD Sender: No OFD packet to send [07:34:19]OFD Sender: No OFD packet to send [07:34:24]OFD Sender: No OFD packet to send [07:34:29]OFD Sender: No OFD packet to send [07:34:34]OFD Sender: No OFD packet to send [07:34:39]OFD Sender: No OFD packet to send [07:34:44]OFD Sender: No OFD packet to send [07:34:49]OFD Sender: No OFD packet to send [07:34:54]OFD Sender: No OFD packet to send [07:34:59]OFD Sender: No OFD packet to send [07:35:04]OFD Sender: No OFD packet to send [07:35:09]OFD Sender: No OFD packet to send [07:35:14]OFD Sender: No OFD packet to send [07:35:19]OFD Sender: No OFD packet to send [07:35:24]OFD Sender: No OFD packet to send [07:35:29]OFD Sender: No OFD packet to send [07:35:34]OFD Sender: No OFD packet to send [07:35:39]OFD Sender: No OFD packet to send [07:35:44]OFD Sender: No OFD packet to send [07:35:49]OFD Sender: No OFD packet to send [07:35:54]OFD Sender: No OFD packet to send [07:35:59]OFD Sender: No OFD packet to send [07:36:04]OFD Sender: No OFD packet to send [07:36:09]OFD Sender: No OFD packet to send [07:36:14]OFD Sender: No OFD packet to send [07:36:19]OFD Sender: No OFD packet to send [07:36:24]OFD Sender: No OFD packet to send [07:36:29]OFD Sender: No OFD packet to send [07:36:34]OFD Sender: No OFD packet to send [07:36:39]OFD Sender: No OFD packet to send [07:36:44]OFD Sender: No OFD packet to send [07:36:49]OFD Sender: No OFD packet to send [07:36:54]OFD Sender: No OFD packet to send [07:36:59]OFD Sender: No OFD packet to send [07:37:04]OFD Sender: No OFD packet to send [07:37:06]accept exits with 9 [07:37:06]New connection [07:37:06]New thread 3066641764 created [07:37:06]Thread 3066498404 joined [07:37:06]Waiting for new connection... [07:37:06] Sock 9.Parse request [07:37:06]Sock 9.Check first char [07:37:06]Sock 9.First char is OK [07:37:06]request: POST /json_proto HTTP/1.0 [07:37:06]Method: POST [07:37:06]URL: /json_proto [07:37:06]Method is POST - this is cgi request [07:37:06]url: /json_proto [07:37:06]query_string will be loaded in cgi processing [07:37:06]execute_cgi json_proto POST (null) [07:37:06]execute_cgi path=json_proto method=POST [07:37:06]POST find Content-Length [07:37:06]Host: 172.17.33.3:8080 [07:37:06]Content-Length: 679 [07:37:06]Content-Type: application/json [07:37:06] [07:37:06]POST finish read [07:37:06]Found Content-Length = 679 [07:37:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346887", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 13.820, "sum" : 1000.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:37:06]execute_script... [07:37: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)346887", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 13.820, "sum" : 1000.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:37:06]POST & json_proto [07:37:06]process_json_proto [07:37:06]json parsed OK: [07:37:06]protocol is kg_v1.0 [07:37:06]action value=close_receipt [07:37:06]process_action close_receipt [07:37:06]cmd_close_receipt [07:37:06]MH_GetDate [07:37:06]Write to MH i2c: F0 00 00 FC 5E 49 [07:37:06]Write i2c OK [07:37:06]MH_I2C_Read... [07:37:06]Read from MH i2c: F0 [07:37:06]MH_I2C_Read... [07:37:06]Read from MH i2c: F0 09 00 [07:37:06]MH_I2C_Read... [07:37:06]Read from MH i2c: F0 09 00 FC 5E 00 A9 E4 18 66 23 5B 8F 65 CF [07:37:06]GetLastDocTimeStamp 1712907078 [07:37:06]current date 1712907433 [07:37:06]FM_GetShiftState [07:37:06]SAM_PROTO_GetShiftState [07:37:06]wFMCommunicate request_size=4 [07:37:06]MH_SAM_APDU [07:37:06]CAPDU: 80 13 01 00 [07:37:06]Write to MH i2c: E2 08 00 FD 5E 80 13 01 00 00 00 00 00 D8 [07:37:06]Write i2c OK [07:37:06]MH_I2C_Read... [07:37:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:37:06]Read from MH i2c: E2 [07:37:06]MH_I2C_Read... [07:37:06]Read from MH i2c: E2 0E 00 [07:37:06]MH_I2C_Read... [07:37:06]Read from MH i2c: E2 0E 00 FD 5E 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 E9 [07:37:06]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [07:37:06]wFMCommunicate OK [07:37:06]SAM_PROTO_GetShiftState done [07:37:06]FM_GetShiftState done [07:37:06]opened in 1712881416 [07:37:06]opened+sec_in_day 1712967816 [07:37:06]quantity*price = 100056 [07:37:06]sum+1 = 100058 [07:37:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 28 12.04.2024 07:37 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28579 ФПД: 89395129206357 1/tax-web-control/client/api/v1/ticket?date=20240412T073713&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28579&fm=89395129206357&tin=02508201610067®Number=0000138879044617&sum=100000 [07:37:07]StoreToDocumentArchive [07:37:07]shift 113 fd 28579 [07:37:07]save to /storage/0113/doc_00028579 [07:37:07]save last doc name /storage/0113/doc_00028579 to /storage/kkm_last_doc_name [07:37:07]save OK [07:37:07]Clear old archive folders... [07:37:07]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:37:07]tlvbuf is 01A9D3D0 [07:37:07]SAM_PROTO_ClearQueue [07:37:07]wFMCommunicate request_size=4 [07:37:07]MH_SAM_APDU [07:37:07]CAPDU: 80 09 00 00 [07:37:07]Write to MH i2c: E2 08 00 0A 5F 80 09 00 00 00 00 00 00 DB [07:37:07]Write i2c OK [07:37:07]MH_I2C_Read... [07:37:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:37:07]Read from MH i2c: E2 [07:37:07]MH_I2C_Read... [07:37:07]Read from MH i2c: E2 03 00 [07:37:07]MH_I2C_Read... [07:37:07]Read from MH i2c: E2 03 00 0A 5F 00 90 00 DD [07:37:07]RAPDU: 90 00 [07:37:07]wFMCommunicate OK [07:37:07]SAM_PROTO_ClearQueue done [07:37:07]KKMCreateOFDPacket [07:37:07]OFDProtocolAddRootSTLVToBuf [07:37:07]FM_MakeSignedData [07:37:07]FM_MakeSignedData [07:37:07]SAM_PROTO_SignData [07:37:07]wFMCommunicate request_size=4 [07:37:07]MH_SAM_APDU [07:37:07]CAPDU: 80 0D 01 02 [07:37:07]Write to MH i2c: E2 08 00 0B 5F 80 0D 01 02 00 00 00 00 E3 [07:37:07]Write i2c OK [07:37:07]MH_I2C_Read... [07:37:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:37:07]Read from MH i2c: E2 [07:37:07]MH_I2C_Read... [07:37:07]Read from MH i2c: E2 03 00 [07:37:07]MH_I2C_Read... [07:37:07]Read from MH i2c: E2 03 00 0B 5F 00 90 00 DE [07:37:07]RAPDU: 90 00 [07:37:07]wFMCommunicate OK [07:37:07]wFMCommunicate request_size=255 [07:37:07]MH_SAM_APDU [07:37: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 35 FF 03 08 00 03 FC 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D9 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 1C 00 00 00 F4 03 04 00 A9 E4 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A3 6F 00 00 35 04 06 00 51 4D EC EB [07:37:07]Write to MH i2c: E2 02 01 0C 5F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FC 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D9 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 1C 00 00 00 F4 03 04 00 A9 E4 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A3 6F 00 00 35 04 06 00 51 4D EC EB 00 00 E1 [07:37:07]Write i2c OK [07:37:07]MH_I2C_Read... [07:37:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:37:07]Read from MH i2c: E2 [07:37:07]MH_I2C_Read... [07:37:07]Read from MH i2c: E2 03 00 [07:37:07]MH_I2C_Read... [07:37:07]Read from MH i2c: E2 03 00 0C 5F 00 90 00 DF [07:37:07]RAPDU: 90 00 [07:37:07]wFMCommunicate OK [07:37:07]wFMCommunicate request_size=7 [07:37:07]MH_SAM_APDU [07:37:07]CAPDU: 80 0D 02 02 02 C6 55 [07:37:07]Write to MH i2c: E2 0A 00 0D 5F 80 0D 02 02 02 00 C6 55 00 00 05 [07:37:07]Write i2c OK [07:37:07]MH_I2C_Read... [07:37:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:37:07]Read from MH i2c: E2 [07:37:07]MH_I2C_Read... [07:37:07]Read from MH i2c: E2 03 00 [07:37:07]MH_I2C_Read... [07:37:07]Read from MH i2c: E2 03 00 0D 5F 00 90 00 E0 [07:37:07]RAPDU: 90 00 [07:37:07]wFMCommunicate OK [07:37:07]wFMCommunicate request_size=4 [07:37:07]MH_SAM_APDU [07:37:07]CAPDU: 80 0D 03 02 [07:37:07]Write to MH i2c: E2 08 00 0E 5F 80 0D 03 02 00 00 00 00 E8 [07:37:07]Write i2c OK [07:37:07]MH_I2C_Read... [07:37:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:37:07]Read from MH i2c: E2 [07:37:07]MH_I2C_Read... [07:37:07]Read from MH i2c: E2 0B 00 [07:37:07]MH_I2C_Read... [07:37:07]Read from MH i2c: E2 0B 00 0E 5F 00 33 0C 99 BB 96 05 F3 39 90 00 43 [07:37:07]RAPDU: 33 0C 99 BB 96 05 F3 39 90 00 [07:37:07]wFMCommunicate OK [07:37:07]SAM_PROTO_SignData done [07:37:07]FM_MakeSignedData done [07:37:07]CreateOFDProtocolMessage [07:37:07]wFMCommunicate request_size=4 [07:37:07]MH_SAM_APDU [07:37:07]CAPDU: 80 11 00 00 [07:37:07]Write to MH i2c: E2 08 00 0F 5F 80 11 00 00 00 00 00 00 E8 [07:37:07]Write i2c OK [07:37:07]MH_I2C_Read... [07:37:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:37:07]Read from MH i2c: E2 [07:37:07]MH_I2C_Read... [07:37:07]Read from MH i2c: E2 17 00 [07:37:07]MH_I2C_Read... [07:37:07]Read from MH i2c: E2 17 00 0F 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 37 [07:37:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:37:07]wFMCommunicate OK [07:37:07]CreateOFDProtocolMessage done [07:37:07]OFDSenderStorePacket 28579 [07:37:07]StoreOFDPacket docnum=28579 [07:37:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 85 8C 04 01 08 B8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FC 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D9 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 1C 00 00 00 F4 03 04 00 A9 E4 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A3 6F 00 00 35 04 06 00 51 4D EC EB C6 55 33 0C 99 BB 96 05 F3 39 [07:37:07]CheckFolder [07:37:07]dirname=/storage/ofd_packets [07:37:07]CheckFolder done [07:37:07]ProducePacketName [07:37:07]name=ofd_packets/00028579 [07:37:07]NVStorageSaveData ofd_packets/00028579 [07:37:07]File name is /storage/ofd_packets/00028579 [07:37:07]Write 298 bytes [07:37:07]NVStorageSaveData done [07:37:07]OFDSenderStorePacket done [07:37:07]KKMCreateOFDPacket done [07:37:07]NVStorageSaveData kkm_last_timestamp [07:37:07]File name is /storage/kkm_last_timestamp [07:37:07]Write 4 bytes [07:37:07]NVStorageSaveData done [07:37:07]ExternCall_PrintAddStr [07:37:07]wPrintStart [07:37:07]Write to MH i2c: 01 00 00 10 5F 6F [07:37:07]Write i2c OK [07:37:07]MH_I2C_Read... [07:37:07]Read from MH i2c: 01 [07:37:07]MH_I2C_Read... [07:37:07]Read from MH i2c: 01 07 00 [07:37:07]MH_I2C_Read... [07:37:07]Read from MH i2c: 01 07 00 10 5F 00 00 00 00 00 FF 0F 84 [07:37:07]RasterBufferAndPrint [07:37:07]line Счет N : (1)346887 [07:37:07]line ИНН: 02508201610067 [07:37:07]line Контрольно-Кассовый Чек [07:37:07]line ПРОДАЖА [07:37:07]line ТРК (МРК, ГНК) : 21 [07:37:07]line Товар: 2710194210 [07:37:07]line ДТ-К-5 [07:37:07]line 13.820 * 72.40 [07:37:07]line = 1000.57 [07:37:07]line НДС 12% НСП 1% [07:37:07]line > о реализуемом товаре [07:37:07]line ОКРУГЛЕНИЕ: -0.57 [07:37:07]line ИТОГО: 1000.00 [07:37:07]line Внесено: 1000.00 [07:37:07]line СДАЧА: 0.00 [07:37:07]line НСП 1% : 8.85 [07:37:07]line НДС 12% : 106.25 [07:37:07]line Наличными: 1000.00 [07:37:07]line Безнал.: 0.00 [07:37:07]line Место: АЗС № 108 "Партнер Нефть" [07:37:07]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [07:37:07]line СНО: Общий режим [07:37:07]line Чек 28 12.04.2024 07:37 [07:37:07]line Смена: 113 ФФД: 1.0 [07:37:07]line ЗНМ: 0300000027 [07:37:07]line РНМ: 0000138879044617 [07:37:07]line Версия ККМ: 001 [07:37:07]line ФМ: 0000000000963154 [07:37:07]line ФД: 28579 [07:37:07]line ФПД: 89395129206357 [07:37:08]line 1/tax-web-control/client/api/v1/ticket?date=20240412T073713&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28579&fm=89395129206357&tin=02508201610067®Number=0000138879044617&sum=100000 [07:37:08]OFD Sender: Processing packet 28579 [packets to send 8, broken 7] [07:37:08]ProducePacketName [07:37:08]name=ofd_packets/00028579 [07:37:08]OFD Sender: To server: pG, [07:37:08]CommunicateWithHost lk.salyk.kg:30040 [07:37:08]ConnectInit lk.salyk.kg [07:37:08]written 0, free lines is 4095 [07:37:08]Connected sock=10 [07:37:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 85 8C 04 01 08 B8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FC 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D9 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 1C 00 00 00 F4 03 04 00 A9 E4 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A3 6F 00 00 35 04 06 00 51 4D EC EB C6 55 33 0C 99 BB 96 05 F3 39 [07:37:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 8D 1E 47 00 7C 34 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A3 6F 00 00 F4 03 04 00 53 8F 18 66 B6 04 01 00 00 A0 5D 33 90 AA 50 E6 F8 [07:37:08]CommunicateWithHost err = 0 [07:37:08]CheckOFDResponse [07:37:08]1017 (14) - 77093643461234 [07:37:08]1041 (16) - 0000000000963154 [07:37:08]1040 (4) - 28579 [07:37:08]1012 (4) - 12.04.2024 01:33 [07:37:08]1206 (1) - 0 [07:37:08]OFD Sender: Remove packet 28579 [07:37:08]ProducePacketName [07:37:08]name=ofd_packets/00028579 [07:37:08]NVStorageDeleteData [07:37:08]Write to MH i2c: 01 00 00 3A 5F 99 [07:37:08]Write i2c OK [07:37:08]MH_I2C_Read... [07:37:08]Read from MH i2c: 01 [07:37:08]MH_I2C_Read... [07:37:08]Read from MH i2c: 01 07 00 [07:37:08]MH_I2C_Read... [07:37:08]Read from MH i2c: 01 07 00 3A 5F 00 00 00 00 00 BB 0C 67 [07:37:08]RasterBufferAndPrint [07:37:08]line [07:37:08]line [07:37:08]line [07:37:08]line [07:37:08]line [07:37:08]written 0, free lines is 3266 [07:37:08]MH_Cut [07:37:08]Write to MH i2c: D1 01 00 41 5F 01 72 [07:37:08]Write i2c OK [07:37:08]MH_I2C_Read... [07:37:08]Read from MH i2c: D1 [07:37:08]MH_I2C_Read... [07:37:08]Read from MH i2c: D1 01 00 [07:37:08]MH_I2C_Read... [07:37:08]Read from MH i2c: D1 01 00 41 5F 00 71 [07:37:08]Write to MH i2c: 01 00 00 42 5F A1 [07:37:08]Write i2c OK [07:37:08]MH_I2C_Read... [07:37:08]OFD Sender: No OFD packet to send [07:37:09]*** Cut start [07:37:09]*** Partial cut [07:37:09]*** CUTSNS_PIN = 1 [07:37:09]*** CUTSNS_PIN = 0 [07:37:09]*** Brake cut motor [07:37:10]Read from MH i2c: 01 [07:37:10]MH_I2C_Read... [07:37:10]*** Stop cut motor [07:37:10]*** Cut end [07:37:10]Read from MH i2c: 01 07 00 [07:37:10]MH_I2C_Read... [07:37:10]Read from MH i2c: 01 07 00 42 5F 00 00 00 00 00 FF 0F B6 [07:37:10]process_action close_receipt done [07:37:10]requested_data is exist [07:37:10]produce_requested_data [07:37:10]requested_item fm.sn is exist - process it [07:37:10]wFMCommunicate request_size=4 [07:37:10]MH_SAM_APDU [07:37:10]CAPDU: 80 11 00 00 [07:37:10]Write to MH i2c: E2 08 00 43 5F 80 11 00 00 00 00 00 00 1C [07:37:10]Write i2c OK [07:37:10]MH_I2C_Read... [07:37:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:37:10]Read from MH i2c: E2 [07:37:10]MH_I2C_Read... [07:37:10]Read from MH i2c: E2 17 00 [07:37:10]MH_I2C_Read... [07:37:10]Read from MH i2c: E2 17 00 43 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 6B [07:37:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:37:10]wFMCommunicate OK [07:37:10]requested_item fd.num is exist - process it [07:37:10]SAM_PROTO_GetFieldsCounters [07:37:10]wFMCommunicate request_size=4 [07:37:10]MH_SAM_APDU [07:37:10]CAPDU: 80 13 00 00 [07:37:10]Write to MH i2c: E2 08 00 44 5F 80 13 00 00 00 00 00 00 1F [07:37:10]Write i2c OK [07:37:10]MH_I2C_Read... [07:37:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:37:10]Read from MH i2c: E2 [07:37:10]MH_I2C_Read... [07:37:10]Read from MH i2c: E2 62 00 [07:37:10]MH_I2C_Read... [07:37:10]Read from MH i2c: E2 62 00 44 5F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A3 6F 00 00 0E 04 04 00 71 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 34 [07:37:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A3 6F 00 00 0E 04 04 00 71 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 [07:37:10]wFMCommunicate OK [07:37:10]SAM_PROTO_GetFieldsCounters done [07:37:10]requested_item shift.num is exist - process it [07:37:10]requested_item shift.opened is exist - process it [07:37:10]req_shift_opened [07:37:10]FM_GetShiftState [07:37:10]SAM_PROTO_GetShiftState [07:37:10]wFMCommunicate request_size=4 [07:37:10]MH_SAM_APDU [07:37:10]CAPDU: 80 13 01 00 [07:37:10]Write to MH i2c: E2 08 00 45 5F 80 13 01 00 00 00 00 00 21 [07:37:10]Write i2c OK [07:37:10]MH_I2C_Read... [07:37:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:37:10]Read from MH i2c: E2 [07:37:10]MH_I2C_Read... [07:37:10]Read from MH i2c: E2 0E 00 [07:37:10]MH_I2C_Read... [07:37:10]Read from MH i2c: E2 0E 00 45 5F 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 32 [07:37:10]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [07:37:10]wFMCommunicate OK [07:37:10]SAM_PROTO_GetShiftState done [07:37:10]FM_GetShiftState done [07:37:10]req_shift_opened done [07:37:10]requested_item shift.open_date is exist - process it [07:37:10]req_shift_open_date [07:37:10]req_shift_open_date done [07:37:10]produce_requested_data done [07:37:10]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28579,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [07:37:10]process_action_free close_receipt [07:37:10]json_value_free [07:37:10]json_value_free done [07:37:10]process_json_proto returns [07:37:10]Send response to host [07:37:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28579,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [07:37:10]free response buf [07:37:10]execute_script done [07:37:10]execute_script returns [07:37:10]free content buf [07:37:10]Sock 9.Close socket [07:37:10]Sock 9.Thread stoped [07:37:13]OFD Sender: No OFD packet to send [07:37:18]OFD Sender: No OFD packet to send [07:37:23]OFD Sender: No OFD packet to send [07:37:28]OFD Sender: No OFD packet to send [07:37:33]OFD Sender: No OFD packet to send [07:37:38]OFD Sender: No OFD packet to send [07:37:43]OFD Sender: No OFD packet to send [07:37:48]OFD Sender: No OFD packet to send [07:37:53]OFD Sender: No OFD packet to send [07:37:58]OFD Sender: No OFD packet to send [07:38:03]OFD Sender: No OFD packet to send [07:38:08]OFD Sender: No OFD packet to send [07:38:13]OFD Sender: No OFD packet to send [07:38:18]OFD Sender: No OFD packet to send [07:38:23]OFD Sender: No OFD packet to send [07:38:28]OFD Sender: No OFD packet to send [07:38:33]OFD Sender: No OFD packet to send [07:38:38]OFD Sender: No OFD packet to send [07:38:43]OFD Sender: No OFD packet to send [07:38:48]OFD Sender: No OFD packet to send [07:38:53]OFD Sender: No OFD packet to send [07:38:59]OFD Sender: No OFD packet to send [07:39:04]OFD Sender: No OFD packet to send [07:39:09]OFD Sender: No OFD packet to send [07:39:14]OFD Sender: No OFD packet to send [07:39:19]OFD Sender: No OFD packet to send [07:39:24]OFD Sender: No OFD packet to send [07:39:29]OFD Sender: No OFD packet to send [07:39:34]OFD Sender: No OFD packet to send [07:39:39]OFD Sender: No OFD packet to send [07:39:44]OFD Sender: No OFD packet to send [07:39:49]OFD Sender: No OFD packet to send [07:39:54]OFD Sender: No OFD packet to send [07:39:59]OFD Sender: No OFD packet to send [07:40:04]OFD Sender: No OFD packet to send [07:40:09]OFD Sender: No OFD packet to send [07:40:14]OFD Sender: No OFD packet to send [07:40:19]OFD Sender: No OFD packet to send [07:40:24]OFD Sender: No OFD packet to send [07:40:29]OFD Sender: No OFD packet to send [07:40:34]OFD Sender: No OFD packet to send [07:40:39]OFD Sender: No OFD packet to send [07:40:44]OFD Sender: No OFD packet to send [07:40:49]OFD Sender: No OFD packet to send [07:40:54]OFD Sender: No OFD packet to send [07:40:59]OFD Sender: No OFD packet to send [07:41:04]OFD Sender: No OFD packet to send [07:41:09]OFD Sender: No OFD packet to send [07:41:14]OFD Sender: No OFD packet to send [07:41:19]OFD Sender: No OFD packet to send [07:41:24]OFD Sender: No OFD packet to send [07:41:29]OFD Sender: No OFD packet to send [07:41:34]OFD Sender: No OFD packet to send [07:41:39]OFD Sender: No OFD packet to send [07:41:44]OFD Sender: No OFD packet to send [07:41:49]OFD Sender: No OFD packet to send [07:41:54]OFD Sender: No OFD packet to send [07:41:59]OFD Sender: No OFD packet to send [07:42:04]OFD Sender: No OFD packet to send [07:42:09]OFD Sender: No OFD packet to send [07:42:14]OFD Sender: No OFD packet to send [07:42:19]OFD Sender: No OFD packet to send [07:42:24]OFD Sender: No OFD packet to send [07:42:29]OFD Sender: No OFD packet to send [07:42:34]OFD Sender: No OFD packet to send [07:42:39]OFD Sender: No OFD packet to send [07:42:44]OFD Sender: No OFD packet to send [07:42:49]OFD Sender: No OFD packet to send [07:42:54]OFD Sender: No OFD packet to send [07:42:59]OFD Sender: No OFD packet to send [07:43:04]OFD Sender: No OFD packet to send [07:43:09]OFD Sender: No OFD packet to send [07:43:14]OFD Sender: No OFD packet to send [07:43:19]OFD Sender: No OFD packet to send [07:43:24]OFD Sender: No OFD packet to send [07:43:29]OFD Sender: No OFD packet to send [07:43:34]OFD Sender: No OFD packet to send [07:43:39]OFD Sender: No OFD packet to send [07:43:44]OFD Sender: No OFD packet to send [07:43:49]OFD Sender: No OFD packet to send [07:43:54]OFD Sender: No OFD packet to send [07:43:59]OFD Sender: No OFD packet to send [07:44:04]OFD Sender: No OFD packet to send [07:44:09]OFD Sender: No OFD packet to send [07:44:14]OFD Sender: No OFD packet to send [07:44:19]OFD Sender: No OFD packet to send [07:44:24]OFD Sender: No OFD packet to send [07:44:29]OFD Sender: No OFD packet to send [07:44:34]OFD Sender: No OFD packet to send [07:44:39]OFD Sender: No OFD packet to send [07:44:44]OFD Sender: No OFD packet to send [07:44:49]OFD Sender: No OFD packet to send [07:44:54]OFD Sender: No OFD packet to send [07:44:59]OFD Sender: No OFD packet to send [07:45:04]OFD Sender: No OFD packet to send [07:45:09]OFD Sender: No OFD packet to send [07:45:14]OFD Sender: No OFD packet to send [07:45:19]OFD Sender: No OFD packet to send [07:45:24]OFD Sender: No OFD packet to send [07:45:29]OFD Sender: No OFD packet to send [07:45:34]OFD Sender: No OFD packet to send [07:45:39]OFD Sender: No OFD packet to send [07:45:44]OFD Sender: No OFD packet to send [07:45:49]OFD Sender: No OFD packet to send [07:45:54]OFD Sender: No OFD packet to send [07:45:59]OFD Sender: No OFD packet to send [07:46:04]OFD Sender: No OFD packet to send [07:46:09]OFD Sender: No OFD packet to send [07:46:12]accept exits with 7 [07:46:12]New connection [07:46:12]New thread 3066498404 created [07:46:12]Thread 3066641764 joined [07:46:12]Waiting for new connection... [07:46:12] Sock 7.Parse request [07:46:12]Sock 7.Check first char [07:46:12]Sock 7.First char is OK [07:46:12]request: POST /json_proto HTTP/1.0 [07:46:12]Method: POST [07:46:12]URL: /json_proto [07:46:12]Method is POST - this is cgi request [07:46:12]url: /json_proto [07:46:12]query_string will be loaded in cgi processing [07:46:12]execute_cgi json_proto POST (null) [07:46:12]execute_cgi path=json_proto method=POST [07:46:12]POST find Content-Length [07:46:12]Host: 172.17.33.3:8080 [07:46:12]Content-Length: 840 [07:46:12]Content-Type: application/json [07:46:12] [07:46:12]POST finish read [07:46:12]Found Content-Length = 840 [07:46:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346888", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 7.780, "sum" : 500.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:46:12]execute_script... [07:46: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)346888", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 7.780, "sum" : 500.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:46:12]POST & json_proto [07:46:12]process_json_proto [07:46:12]json parsed OK: [07:46:12]protocol is kg_v1.0 [07:46:12]action value=close_receipt [07:46:12]process_action close_receipt [07:46:12]cmd_close_receipt [07:46:12]MH_GetDate [07:46:12]Write to MH i2c: F0 00 00 46 5F 94 [07:46:12]Write i2c OK [07:46:12]MH_I2C_Read... [07:46:12]Read from MH i2c: F0 [07:46:12]MH_I2C_Read... [07:46:12]Read from MH i2c: F0 09 00 [07:46:12]MH_I2C_Read... [07:46:12]Read from MH i2c: F0 09 00 46 5F 00 CB E6 18 66 23 5B 8F 65 3E [07:46:12]GetLastDocTimeStamp 1712907433 [07:46:12]current date 1712907979 [07:46:12]FM_GetShiftState [07:46:12]SAM_PROTO_GetShiftState [07:46:12]wFMCommunicate request_size=4 [07:46:12]MH_SAM_APDU [07:46:12]CAPDU: 80 13 01 00 [07:46:12]Write to MH i2c: E2 08 00 47 5F 80 13 01 00 00 00 00 00 23 [07:46:12]Write i2c OK [07:46:12]MH_I2C_Read... [07:46:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:46:12]Read from MH i2c: E2 [07:46:12]MH_I2C_Read... [07:46:12]Read from MH i2c: E2 0E 00 [07:46:12]MH_I2C_Read... [07:46:12]Read from MH i2c: E2 0E 00 47 5F 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 34 [07:46:12]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [07:46:12]wFMCommunicate OK [07:46:12]SAM_PROTO_GetShiftState done [07:46:12]FM_GetShiftState done [07:46:12]opened in 1712881416 [07:46:12]opened+sec_in_day 1712967816 [07:46:12]quantity*price = 50025 [07:46:12]sum+1 = 50026 [07:46:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.25 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 0.00 Безнал.: 500.25 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 29 12.04.2024 07:46 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 28580 ФПД: 34518010764021 1/tax-web-control/client/api/v1/ticket?date=20240412T074619&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28580&fm=34518010764021&tin=02508201610067®Number=0000138879044617&sum=50025 [07:46:13]StoreToDocumentArchive [07:46:13]shift 113 fd 28580 [07:46:13]save to /storage/0113/doc_00028580 [07:46:13]save last doc name /storage/0113/doc_00028580 to /storage/kkm_last_doc_name [07:46:13]save OK [07:46:13]Clear old archive folders... [07:46:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:46:13]tlvbuf is 01BB17B0 [07:46:13]SAM_PROTO_ClearQueue [07:46:13]wFMCommunicate request_size=4 [07:46:13]MH_SAM_APDU [07:46:13]CAPDU: 80 09 00 00 [07:46:13]Write to MH i2c: E2 08 00 54 5F 80 09 00 00 00 00 00 00 25 [07:46:13]Write i2c OK [07:46:13]MH_I2C_Read... [07:46:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:46:13]Read from MH i2c: E2 [07:46:13]MH_I2C_Read... [07:46:13]Read from MH i2c: E2 03 00 [07:46:13]MH_I2C_Read... [07:46:13]Read from MH i2c: E2 03 00 54 5F 00 90 00 27 [07:46:13]RAPDU: 90 00 [07:46:13]wFMCommunicate OK [07:46:13]SAM_PROTO_ClearQueue done [07:46:13]KKMCreateOFDPacket [07:46:13]OFDProtocolAddRootSTLVToBuf [07:46:13]FM_MakeSignedData [07:46:13]FM_MakeSignedData [07:46:13]SAM_PROTO_SignData [07:46:13]wFMCommunicate request_size=4 [07:46:13]MH_SAM_APDU [07:46:13]CAPDU: 80 0D 01 02 [07:46:13]Write to MH i2c: E2 08 00 55 5F 80 0D 01 02 00 00 00 00 2D [07:46:13]Write i2c OK [07:46:13]MH_I2C_Read... [07:46:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:46:13]Read from MH i2c: E2 [07:46:13]MH_I2C_Read... [07:46:13]Read from MH i2c: E2 03 00 [07:46:13]MH_I2C_Read... [07:46:13]Read from MH i2c: E2 03 00 55 5F 00 90 00 28 [07:46:13]RAPDU: 90 00 [07:46:13]wFMCommunicate OK [07:46:13]wFMCommunicate request_size=255 [07:46:13]MH_SAM_APDU [07:46:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 69 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 CB E6 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A4 6F 00 00 35 04 06 00 1F [07:46:13]Write to MH i2c: E2 02 01 56 5F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 69 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 CB E6 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A4 6F 00 00 35 04 06 00 1F 00 00 10 [07:46:13]Write i2c OK [07:46:13]MH_I2C_Read... [07:46:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:46:13]Read from MH i2c: E2 [07:46:13]MH_I2C_Read... [07:46:13]Read from MH i2c: E2 03 00 [07:46:13]MH_I2C_Read... [07:46:13]Read from MH i2c: E2 03 00 56 5F 00 90 00 29 [07:46:13]RAPDU: 90 00 [07:46:13]wFMCommunicate OK [07:46:13]wFMCommunicate request_size=10 [07:46:13]MH_SAM_APDU [07:46:13]CAPDU: 80 0D 02 02 05 64 D9 C5 1A F5 [07:46:13]Write to MH i2c: E2 0D 00 57 5F 80 0D 02 02 05 00 64 D9 C5 1A F5 00 00 4B [07:46:13]Write i2c OK [07:46:13]MH_I2C_Read... [07:46:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:46:13]Read from MH i2c: E2 [07:46:13]MH_I2C_Read... [07:46:13]Read from MH i2c: E2 03 00 [07:46:13]MH_I2C_Read... [07:46:13]Read from MH i2c: E2 03 00 57 5F 00 90 00 2A [07:46:13]RAPDU: 90 00 [07:46:13]wFMCommunicate OK [07:46:13]wFMCommunicate request_size=4 [07:46:13]MH_SAM_APDU [07:46:13]CAPDU: 80 0D 03 02 [07:46:13]Write to MH i2c: E2 08 00 58 5F 80 0D 03 02 00 00 00 00 32 [07:46:13]Write i2c OK [07:46:13]MH_I2C_Read... [07:46:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:46:13]Read from MH i2c: E2 [07:46:13]MH_I2C_Read... [07:46:13]Read from MH i2c: E2 0B 00 [07:46:13]MH_I2C_Read... [07:46:13]Read from MH i2c: E2 0B 00 58 5F 00 3E FF FB D2 DC AD 4B 2B 90 00 3C [07:46:13]RAPDU: 3E FF FB D2 DC AD 4B 2B 90 00 [07:46:13]wFMCommunicate OK [07:46:13]SAM_PROTO_SignData done [07:46:13]FM_MakeSignedData done [07:46:13]CreateOFDProtocolMessage [07:46:13]wFMCommunicate request_size=4 [07:46:13]MH_SAM_APDU [07:46:13]CAPDU: 80 11 00 00 [07:46:13]Write to MH i2c: E2 08 00 59 5F 80 11 00 00 00 00 00 00 32 [07:46:13]Write i2c OK [07:46:13]MH_I2C_Read... [07:46:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:46:13]Read from MH i2c: E2 [07:46:13]MH_I2C_Read... [07:46:13]Read from MH i2c: E2 17 00 [07:46:13]MH_I2C_Read... [07:46:13]Read from MH i2c: E2 17 00 59 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 81 [07:46:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:46:13]wFMCommunicate OK [07:46:13]CreateOFDProtocolMessage done [07:46:13]OFDSenderStorePacket 28580 [07:46:13]StoreOFDPacket docnum=28580 [07:46:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 A8 07 07 01 37 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 69 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 CB E6 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A4 6F 00 00 35 04 06 00 1F 64 D9 C5 1A F5 3E FF FB D2 DC AD 4B 2B [07:46:13]CheckFolder [07:46:13]dirname=/storage/ofd_packets [07:46:13]CheckFolder done [07:46:13]ProducePacketName [07:46:13]name=ofd_packets/00028580 [07:46:13]NVStorageSaveData ofd_packets/00028580 [07:46:13]File name is /storage/ofd_packets/00028580 [07:46:13]Write 301 bytes [07:46:13]NVStorageSaveData done [07:46:13]OFDSenderStorePacket done [07:46:13]KKMCreateOFDPacket done [07:46:13]NVStorageSaveData kkm_last_timestamp [07:46:13]File name is /storage/kkm_last_timestamp [07:46:13]Write 4 bytes [07:46:13]NVStorageSaveData done [07:46:13]ExternCall_PrintAddStr [07:46:13]wPrintStart [07:46:13]Write to MH i2c: 01 00 00 5A 5F B9 [07:46:13]Write i2c OK [07:46:13]MH_I2C_Read... [07:46:13]Read from MH i2c: 01 [07:46:13]MH_I2C_Read... [07:46:13]Read from MH i2c: 01 07 00 [07:46:13]MH_I2C_Read... [07:46:13]Read from MH i2c: 01 07 00 5A 5F 00 00 00 00 00 FF 0F CE [07:46:13]RasterBufferAndPrint [07:46:13]line Счет N : (1)346888 [07:46:13]line ИНН: 02508201610067 [07:46:13]line Контрольно-Кассовый Чек [07:46:13]line ПРОДАЖА [07:46:13]line ТРК (МРК, ГНК) : 32 [07:46:13]line Товар: 2710124130 [07:46:13]line Аи-92-К-5 [07:46:13]line 7.780 * 64.30 [07:46:13]line = 500.25 [07:46:13]line НДС 12% НСП 1% [07:46:13]line > о реализуемом товаре [07:46:13]line ИТОГО: 500.25 [07:46:13]line НСП 1% : 4.43 [07:46:13]line НДС 12% : 53.12 [07:46:13]line Наличными: 0.00 [07:46:13]line Безнал.: 500.25 [07:46:13]line Место: АЗС № 108 "Партнер Нефть" [07:46:13]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [07:46:13]line СНО: Общий режим [07:46:13]line Чек 29 12.04.2024 07:46 [07:46:13]line Смена: 113 ФФД: 1.0 [07:46:13]line ЗНМ: 0300000027 [07:46:13]line РНМ: 0000138879044617 [07:46:13]line Версия ККМ: 001 [07:46:13]line Платежная система: АКБ Кыргызстан [07:46:13]line ФМ: 0000000000963154 [07:46:13]line ФД: 28580 [07:46:13]line ФПД: 34518010764021 [07:46:13]line 1/tax-web-control/client/api/v1/ticket?date=20240412T074619&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28580&fm=34518010764021&tin=02508201610067®Number=0000138879044617&sum=50025 [07:46:14]OFD Sender: Processing packet 28580 [packets to send 8, broken 7] [07:46:14]ProducePacketName [07:46:14]name=ofd_packets/00028580 [07:46:14]OFD Sender: To server: pG, [07:46:14]CommunicateWithHost lk.salyk.kg:30040 [07:46:14]ConnectInit lk.salyk.kg [07:46:14]written 0, free lines is 4095 [07:46:14]Connected sock=10 [07:46:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 A8 07 07 01 37 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 69 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 CB E6 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A4 6F 00 00 35 04 06 00 1F 64 D9 C5 1A F5 3E FF FB D2 DC AD 4B 2B [07:46:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 88 AA 47 00 B0 CE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A4 6F 00 00 F4 03 04 00 75 91 18 66 B6 04 01 00 00 CF 30 E3 F2 77 4B C9 8A [07:46:14]CommunicateWithHost err = 0 [07:46:14]CheckOFDResponse [07:46:14]1017 (14) - 77093643461234 [07:46:14]1041 (16) - 0000000000963154 [07:46:14]1040 (4) - 28580 [07:46:14]1012 (4) - 12.04.2024 01:42 [07:46:14]1206 (1) - 0 [07:46:14]OFD Sender: Remove packet 28580 [07:46:14]ProducePacketName [07:46:14]name=ofd_packets/00028580 [07:46:14]NVStorageDeleteData [07:46:14]Write to MH i2c: 01 00 00 83 5F E2 [07:46:14]Write i2c OK [07:46:14]MH_I2C_Read... [07:46:14]Read from MH i2c: 01 [07:46:14]MH_I2C_Read... [07:46:14]Read from MH i2c: 01 07 00 [07:46:14]MH_I2C_Read... [07:46:14]Read from MH i2c: 01 07 00 83 5F 00 00 00 00 00 D0 0C C5 [07:46:14]RasterBufferAndPrint [07:46:14]line [07:46:14]line [07:46:14]line [07:46:14]line [07:46:14]line [07:46:14]written 0, free lines is 3285 [07:46:14]MH_Cut [07:46:14]Write to MH i2c: D1 01 00 8A 5F 01 BB [07:46:14]Write i2c OK [07:46:14]MH_I2C_Read... [07:46:14]Read from MH i2c: D1 [07:46:14]MH_I2C_Read... [07:46:14]Read from MH i2c: D1 01 00 [07:46:14]MH_I2C_Read... [07:46:14]Read from MH i2c: D1 01 00 8A 5F 00 BA [07:46:14]Write to MH i2c: 01 00 00 8B 5F EA [07:46:14]Write i2c OK [07:46:14]MH_I2C_Read... [07:46:14]OFD Sender: No OFD packet to send [07:46:15]*** Cut start [07:46:15]*** Partial cut [07:46:15]*** CUTSNS_PIN = 1 [07:46:15]*** CUTSNS_PIN = 0 [07:46:15]*** Brake cut motor [07:46:15]Read from MH i2c: 01 [07:46:15]*** Stop cut motor [07:46:15]*** Cut end [07:46:15]MH_I2C_Read... [07:46:15]Read from MH i2c: 01 07 00 [07:46:15]MH_I2C_Read... [07:46:15]Read from MH i2c: 01 07 00 8B 5F 00 00 00 00 00 FF 0F FF [07:46:15]process_action close_receipt done [07:46:15]requested_data is exist [07:46:15]produce_requested_data [07:46:15]requested_item fm.sn is exist - process it [07:46:15]wFMCommunicate request_size=4 [07:46:15]MH_SAM_APDU [07:46:15]CAPDU: 80 11 00 00 [07:46:15]Write to MH i2c: E2 08 00 8C 5F 80 11 00 00 00 00 00 00 65 [07:46:15]Write i2c OK [07:46:15]MH_I2C_Read... [07:46:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:46:16]Read from MH i2c: E2 [07:46:16]MH_I2C_Read... [07:46:16]Read from MH i2c: E2 17 00 [07:46:16]MH_I2C_Read... [07:46:16]Read from MH i2c: E2 17 00 8C 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 B4 [07:46:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:46:16]wFMCommunicate OK [07:46:16]requested_item fd.num is exist - process it [07:46:16]SAM_PROTO_GetFieldsCounters [07:46:16]wFMCommunicate request_size=4 [07:46:16]MH_SAM_APDU [07:46:16]CAPDU: 80 13 00 00 [07:46:16]Write to MH i2c: E2 08 00 8D 5F 80 13 00 00 00 00 00 00 68 [07:46:16]Write i2c OK [07:46:16]MH_I2C_Read... [07:46:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:46:16]Read from MH i2c: E2 [07:46:16]MH_I2C_Read... [07:46:16]Read from MH i2c: E2 62 00 [07:46:16]MH_I2C_Read... [07:46:16]Read from MH i2c: E2 62 00 8D 5F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A4 6F 00 00 0E 04 04 00 71 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 81 [07:46:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A4 6F 00 00 0E 04 04 00 71 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 [07:46:16]wFMCommunicate OK [07:46:16]SAM_PROTO_GetFieldsCounters done [07:46:16]requested_item shift.num is exist - process it [07:46:16]requested_item shift.opened is exist - process it [07:46:16]req_shift_opened [07:46:16]FM_GetShiftState [07:46:16]SAM_PROTO_GetShiftState [07:46:16]wFMCommunicate request_size=4 [07:46:16]MH_SAM_APDU [07:46:16]CAPDU: 80 13 01 00 [07:46:16]Write to MH i2c: E2 08 00 8E 5F 80 13 01 00 00 00 00 00 6A [07:46:16]Write i2c OK [07:46:16]MH_I2C_Read... [07:46:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:46:16]Read from MH i2c: E2 [07:46:16]MH_I2C_Read... [07:46:16]Read from MH i2c: E2 0E 00 [07:46:16]MH_I2C_Read... [07:46:16]Read from MH i2c: E2 0E 00 8E 5F 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 7B [07:46:16]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [07:46:16]wFMCommunicate OK [07:46:16]SAM_PROTO_GetShiftState done [07:46:16]FM_GetShiftState done [07:46:16]req_shift_opened done [07:46:16]requested_item shift.open_date is exist - process it [07:46:16]req_shift_open_date [07:46:16]req_shift_open_date done [07:46:16]produce_requested_data done [07:46:16]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28580,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [07:46:16]process_action_free close_receipt [07:46:16]json_value_free [07:46:16]json_value_free done [07:46:16]process_json_proto returns [07:46:16]Send response to host [07:46:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28580,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [07:46:16]free response buf [07:46:16]execute_script done [07:46:16]execute_script returns [07:46:16]free content buf [07:46:16]Sock 7.Close socket [07:46:16]Sock 7.Thread stoped [07:46:19]OFD Sender: No OFD packet to send [07:46:24]OFD Sender: No OFD packet to send [07:46:29]OFD Sender: No OFD packet to send [07:46:34]OFD Sender: No OFD packet to send [07:46:39]OFD Sender: No OFD packet to send [07:46:41]accept exits with 9 [07:46:41]New connection [07:46:41]New thread 3066641764 created [07:46:41]Thread 3066498404 joined [07:46:41]Waiting for new connection... [07:46:41] Sock 9.Parse request [07:46:41]Sock 9.Check first char [07:46:41]Sock 9.First char is OK [07:46:41]request: POST /json_proto HTTP/1.0 [07:46:41]Method: POST [07:46:41]URL: /json_proto [07:46:41]Method is POST - this is cgi request [07:46:41]url: /json_proto [07:46:41]query_string will be loaded in cgi processing [07:46:41]execute_cgi json_proto POST (null) [07:46:41]execute_cgi path=json_proto method=POST [07:46:41]POST find Content-Length [07:46:41]Host: 172.17.33.3:8080 [07:46:41]Content-Length: 678 [07:46:41]Content-Type: application/json [07:46:41] [07:46:41]POST finish read [07:46:41]Found Content-Length = 678 [07:46:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346889", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 13.410, "sum" : 862.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 862.00, "total" : 862.00, "payments": [ { "type": 0, "sum" : 862.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:46:41]execute_script... [07:46: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)346889", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 13.410, "sum" : 862.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 862.00, "total" : 862.00, "payments": [ { "type": 0, "sum" : 862.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:46:41]POST & json_proto [07:46:41]process_json_proto [07:46:41]json parsed OK: [07:46:41]protocol is kg_v1.0 [07:46:41]action value=close_receipt [07:46:41]process_action close_receipt [07:46:41]cmd_close_receipt [07:46:41]MH_GetDate [07:46:41]Write to MH i2c: F0 00 00 8F 5F DD [07:46:41]Write i2c OK [07:46:41]MH_I2C_Read... [07:46:41]Read from MH i2c: F0 [07:46:41]MH_I2C_Read... [07:46:41]Read from MH i2c: F0 09 00 [07:46:41]MH_I2C_Read... [07:46:41]Read from MH i2c: F0 09 00 8F 5F 00 E8 E6 18 66 23 5B 8F 65 A4 [07:46:41]GetLastDocTimeStamp 1712907979 [07:46:41]current date 1712908008 [07:46:41]FM_GetShiftState [07:46:41]SAM_PROTO_GetShiftState [07:46:41]wFMCommunicate request_size=4 [07:46:41]MH_SAM_APDU [07:46:41]CAPDU: 80 13 01 00 [07:46:41]Write to MH i2c: E2 08 00 90 5F 80 13 01 00 00 00 00 00 6C [07:46:41]Write i2c OK [07:46:41]MH_I2C_Read... [07:46:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:46:41]Read from MH i2c: E2 [07:46:41]MH_I2C_Read... [07:46:41]Read from MH i2c: E2 0E 00 [07:46:41]MH_I2C_Read... [07:46:41]Read from MH i2c: E2 0E 00 90 5F 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 7D [07:46:41]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [07:46:41]wFMCommunicate OK [07:46:41]SAM_PROTO_GetShiftState done [07:46:41]FM_GetShiftState done [07:46:41]opened in 1712881416 [07:46:41]opened+sec_in_day 1712967816 [07:46:41]quantity*price = 86226 [07:46:41]sum+1 = 86227 [07:46:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 862.00 Внесено: 862.00 СДАЧА: 0.00 НСП 1% : 7.63 НДС 12% : 91.57 Наличными: 862.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 30 12.04.2024 07:46 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28581 ФПД: 143814923368357 1/tax-web-control/client/api/v1/ticket?date=20240412T074648&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28581&fm=143814923368357&tin=02508201610067®Number=0000138879044617&sum=86200 [07:46:42]StoreToDocumentArchive [07:46:42]shift 113 fd 28581 [07:46:42]save to /storage/0113/doc_00028581 [07:46:42]save last doc name /storage/0113/doc_00028581 to /storage/kkm_last_doc_name [07:46:42]save OK [07:46:42]Clear old archive folders... [07:46:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:46:42]tlvbuf is 01AD4730 [07:46:42]SAM_PROTO_ClearQueue [07:46:42]wFMCommunicate request_size=4 [07:46:42]MH_SAM_APDU [07:46:42]CAPDU: 80 09 00 00 [07:46:42]Write to MH i2c: E2 08 00 9D 5F 80 09 00 00 00 00 00 00 6E [07:46:42]Write i2c OK [07:46:42]MH_I2C_Read... [07:46:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:46:42]Read from MH i2c: E2 [07:46:42]MH_I2C_Read... [07:46:42]Read from MH i2c: E2 03 00 [07:46:42]MH_I2C_Read... [07:46:42]Read from MH i2c: E2 03 00 9D 5F 00 90 00 70 [07:46:42]RAPDU: 90 00 [07:46:42]wFMCommunicate OK [07:46:42]SAM_PROTO_ClearQueue done [07:46:42]KKMCreateOFDPacket [07:46:42]OFDProtocolAddRootSTLVToBuf [07:46:42]FM_MakeSignedData [07:46:42]FM_MakeSignedData [07:46:42]SAM_PROTO_SignData [07:46:42]wFMCommunicate request_size=4 [07:46:42]MH_SAM_APDU [07:46:42]CAPDU: 80 0D 01 02 [07:46:42]Write to MH i2c: E2 08 00 9E 5F 80 0D 01 02 00 00 00 00 76 [07:46:42]Write i2c OK [07:46:42]MH_I2C_Read... [07:46:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:46:42]Read from MH i2c: E2 [07:46:42]MH_I2C_Read... [07:46:42]Read from MH i2c: E2 03 00 [07:46:42]MH_I2C_Read... [07:46:42]Read from MH i2c: E2 03 00 9E 5F 00 90 00 71 [07:46:42]RAPDU: 90 00 [07:46:42]wFMCommunicate OK [07:46:42]wFMCommunicate request_size=255 [07:46:42]MH_SAM_APDU [07:46:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 62 34 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D2 50 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 50 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FB 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 23 00 00 00 00 07 04 06 00 B8 50 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 E8 E6 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A5 6F 00 00 35 04 06 00 82 [07:46:42]Write to MH i2c: E2 02 01 9F 5F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 62 34 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D2 50 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 50 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FB 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 23 00 00 00 00 07 04 06 00 B8 50 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 E8 E6 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A5 6F 00 00 35 04 06 00 82 00 00 F5 [07:46:42]Write i2c OK [07:46:42]MH_I2C_Read... [07:46:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:46:42]Read from MH i2c: E2 [07:46:42]MH_I2C_Read... [07:46:42]Read from MH i2c: E2 03 00 [07:46:42]MH_I2C_Read... [07:46:42]Read from MH i2c: E2 03 00 9F 5F 00 90 00 72 [07:46:42]RAPDU: 90 00 [07:46:42]wFMCommunicate OK [07:46:42]wFMCommunicate request_size=10 [07:46:42]MH_SAM_APDU [07:46:42]CAPDU: 80 0D 02 02 05 CC 85 6B B7 A5 [07:46:42]Write to MH i2c: E2 0D 00 A0 5F 80 0D 02 02 05 00 CC 85 6B B7 A5 00 00 9B [07:46:42]Write i2c OK [07:46:42]MH_I2C_Read... [07:46:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:46:42]Read from MH i2c: E2 [07:46:42]MH_I2C_Read... [07:46:42]Read from MH i2c: E2 03 00 [07:46:42]MH_I2C_Read... [07:46:42]Read from MH i2c: E2 03 00 A0 5F 00 90 00 73 [07:46:42]RAPDU: 90 00 [07:46:42]wFMCommunicate OK [07:46:42]wFMCommunicate request_size=4 [07:46:42]MH_SAM_APDU [07:46:42]CAPDU: 80 0D 03 02 [07:46:42]Write to MH i2c: E2 08 00 A1 5F 80 0D 03 02 00 00 00 00 7B [07:46:42]Write i2c OK [07:46:42]MH_I2C_Read... [07:46:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:46:42]Read from MH i2c: E2 [07:46:42]MH_I2C_Read... [07:46:42]Read from MH i2c: E2 0B 00 [07:46:42]MH_I2C_Read... [07:46:42]Read from MH i2c: E2 0B 00 A1 5F 00 E2 29 E5 E5 24 D3 2C 63 90 00 D7 [07:46:42]RAPDU: E2 29 E5 E5 24 D3 2C 63 90 00 [07:46:42]wFMCommunicate OK [07:46:42]SAM_PROTO_SignData done [07:46:42]FM_MakeSignedData done [07:46:42]CreateOFDProtocolMessage [07:46:42]wFMCommunicate request_size=4 [07:46:42]MH_SAM_APDU [07:46:42]CAPDU: 80 11 00 00 [07:46:42]Write to MH i2c: E2 08 00 A2 5F 80 11 00 00 00 00 00 00 7B [07:46:42]Write i2c OK [07:46:42]MH_I2C_Read... [07:46:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:46:42]Read from MH i2c: E2 [07:46:42]MH_I2C_Read... [07:46:42]Read from MH i2c: E2 17 00 [07:46:42]MH_I2C_Read... [07:46:42]Read from MH i2c: E2 17 00 A2 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 CA [07:46:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:46:42]wFMCommunicate OK [07:46:42]CreateOFDProtocolMessage done [07:46:42]OFDSenderStorePacket 28581 [07:46:42]StoreOFDPacket docnum=28581 [07:46:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 D3 52 07 01 8F 6F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 62 34 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D2 50 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 50 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FB 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 23 00 00 00 00 07 04 06 00 B8 50 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 E8 E6 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A5 6F 00 00 35 04 06 00 82 CC 85 6B B7 A5 E2 29 E5 E5 24 D3 2C 63 [07:46:42]CheckFolder [07:46:42]dirname=/storage/ofd_packets [07:46:42]CheckFolder done [07:46:42]ProducePacketName [07:46:42]name=ofd_packets/00028581 [07:46:42]NVStorageSaveData ofd_packets/00028581 [07:46:42]File name is /storage/ofd_packets/00028581 [07:46:42]Write 301 bytes [07:46:42]NVStorageSaveData done [07:46:42]OFDSenderStorePacket done [07:46:42]KKMCreateOFDPacket done [07:46:42]NVStorageSaveData kkm_last_timestamp [07:46:42]File name is /storage/kkm_last_timestamp [07:46:42]Write 4 bytes [07:46:42]NVStorageSaveData done [07:46:42]ExternCall_PrintAddStr [07:46:42]wPrintStart [07:46:42]Write to MH i2c: 01 00 00 A3 5F 02 [07:46:42]Write i2c OK [07:46:42]MH_I2C_Read... [07:46:42]Read from MH i2c: 01 [07:46:42]MH_I2C_Read... [07:46:42]Read from MH i2c: 01 07 00 [07:46:42]MH_I2C_Read... [07:46:42]Read from MH i2c: 01 07 00 A3 5F 00 00 00 00 00 FF 0F 17 [07:46:42]RasterBufferAndPrint [07:46:42]line Счет N : (1)346889 [07:46:42]line ИНН: 02508201610067 [07:46:42]line Контрольно-Кассовый Чек [07:46:42]line ПРОДАЖА [07:46:42]line ТРК (МРК, ГНК) : 42 [07:46:42]line Товар: 2710124130 [07:46:42]line Аи-92-К-5 [07:46:42]line 13.410 * 64.30 [07:46:42]line = 862.26 [07:46:42]line НДС 12% НСП 1% [07:46:42]line > о реализуемом товаре [07:46:42]line ОКРУГЛЕНИЕ: -0.26 [07:46:42]line ИТОГО: 862.00 [07:46:42]line Внесено: 862.00 [07:46:42]line СДАЧА: 0.00 [07:46:42]line НСП 1% : 7.63 [07:46:42]line НДС 12% : 91.57 [07:46:42]line Наличными: 862.00 [07:46:42]line Безнал.: 0.00 [07:46:42]line Место: АЗС № 108 "Партнер Нефть" [07:46:42]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [07:46:42]line СНО: Общий режим [07:46:42]line Чек 30 12.04.2024 07:46 [07:46:42]line Смена: 113 ФФД: 1.0 [07:46:42]line ЗНМ: 0300000027 [07:46:42]line РНМ: 0000138879044617 [07:46:42]line Версия ККМ: 001 [07:46:43]line ФМ: 0000000000963154 [07:46:43]line ФД: 28581 [07:46:43]line ФПД: 143814923368357 [07:46:43]line 1/tax-web-control/client/api/v1/ticket?date=20240412T074648&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28581&fm=143814923368357&tin=02508201610067®Number=0000138879044617&sum=86200 [07:46:43]OFD Sender: Processing packet 28581 [packets to send 8, broken 7] [07:46:43]ProducePacketName [07:46:43]name=ofd_packets/00028581 [07:46:43]OFD Sender: To server: pG, [07:46:43]CommunicateWithHost lk.salyk.kg:30040 [07:46:43]ConnectInit lk.salyk.kg [07:46:43]written 0, free lines is 4095 [07:46:43]Connected sock=10 [07:46:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 D3 52 07 01 8F 6F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 62 34 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D2 50 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 50 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FB 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 23 00 00 00 00 07 04 06 00 B8 50 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 E8 E6 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A5 6F 00 00 35 04 06 00 82 CC 85 6B B7 A5 E2 29 E5 E5 24 D3 2C 63 [07:46:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 5E 3B 47 00 00 15 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A5 6F 00 00 F4 03 04 00 93 91 18 66 B6 04 01 00 00 D7 FF 58 8D 2A 7A F6 62 [07:46:43]CommunicateWithHost err = 0 [07:46:43]CheckOFDResponse [07:46:43]1017 (14) - 77093643461234 [07:46:43]1041 (16) - 0000000000963154 [07:46:43]1040 (4) - 28581 [07:46:43]1012 (4) - 12.04.2024 01:42 [07:46:43]1206 (1) - 0 [07:46:43]OFD Sender: Remove packet 28581 [07:46:43]ProducePacketName [07:46:43]name=ofd_packets/00028581 [07:46:43]NVStorageDeleteData [07:46:43]Write to MH i2c: 01 00 00 CD 5F 2C [07:46:43]Write i2c OK [07:46:43]MH_I2C_Read... [07:46:43]Read from MH i2c: 01 [07:46:43]MH_I2C_Read... [07:46:43]Read from MH i2c: 01 07 00 [07:46:43]MH_I2C_Read... [07:46:43]Read from MH i2c: 01 07 00 CD 5F 00 00 00 00 00 C1 0C 00 [07:46:43]RasterBufferAndPrint [07:46:43]line [07:46:43]line [07:46:43]line [07:46:43]line [07:46:43]line [07:46:43]written 0, free lines is 3269 [07:46:43]MH_Cut [07:46:43]Write to MH i2c: D1 01 00 D4 5F 01 05 [07:46:43]Write i2c OK [07:46:43]MH_I2C_Read... [07:46:43]Read from MH i2c: D1 [07:46:43]MH_I2C_Read... [07:46:43]Read from MH i2c: D1 01 00 [07:46:43]MH_I2C_Read... [07:46:43]Read from MH i2c: D1 01 00 D4 5F 00 04 [07:46:43]Write to MH i2c: 01 00 00 D5 5F 34 [07:46:43]Write i2c OK [07:46:43]MH_I2C_Read... [07:46:44]OFD Sender: No OFD packet to send [07:46:44]*** Cut start [07:46:44]*** Partial cut [07:46:44]*** CUTSNS_PIN = 1 [07:46:44]*** CUTSNS_PIN = 0 [07:46:44]*** Brake cut motor [07:46:45]Read from MH i2c: 01 [07:46:45]MH_I2C_Read... [07:46:45]*** Stop cut motor [07:46:45]*** Cut end [07:46:45]Read from MH i2c: 01 07 00 [07:46:45]MH_I2C_Read... [07:46:45]Read from MH i2c: 01 07 00 D5 5F 00 00 00 00 00 FF 0F 49 [07:46:45]process_action close_receipt done [07:46:45]requested_data is exist [07:46:45]produce_requested_data [07:46:45]requested_item fm.sn is exist - process it [07:46:45]wFMCommunicate request_size=4 [07:46:45]MH_SAM_APDU [07:46:45]CAPDU: 80 11 00 00 [07:46:45]Write to MH i2c: E2 08 00 D6 5F 80 11 00 00 00 00 00 00 AF [07:46:45]Write i2c OK [07:46:45]MH_I2C_Read... [07:46:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:46:45]Read from MH i2c: E2 [07:46:45]MH_I2C_Read... [07:46:45]Read from MH i2c: E2 17 00 [07:46:45]MH_I2C_Read... [07:46:45]Read from MH i2c: E2 17 00 D6 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 FE [07:46:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:46:45]wFMCommunicate OK [07:46:45]requested_item fd.num is exist - process it [07:46:45]SAM_PROTO_GetFieldsCounters [07:46:45]wFMCommunicate request_size=4 [07:46:45]MH_SAM_APDU [07:46:45]CAPDU: 80 13 00 00 [07:46:45]Write to MH i2c: E2 08 00 D7 5F 80 13 00 00 00 00 00 00 B2 [07:46:45]Write i2c OK [07:46:45]MH_I2C_Read... [07:46:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:46:45]Read from MH i2c: E2 [07:46:45]MH_I2C_Read... [07:46:45]Read from MH i2c: E2 62 00 [07:46:45]MH_I2C_Read... [07:46:45]Read from MH i2c: E2 62 00 D7 5F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A5 6F 00 00 0E 04 04 00 71 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 CF [07:46:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A5 6F 00 00 0E 04 04 00 71 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 [07:46:45]wFMCommunicate OK [07:46:45]SAM_PROTO_GetFieldsCounters done [07:46:45]requested_item shift.num is exist - process it [07:46:45]requested_item shift.opened is exist - process it [07:46:45]req_shift_opened [07:46:45]FM_GetShiftState [07:46:45]SAM_PROTO_GetShiftState [07:46:45]wFMCommunicate request_size=4 [07:46:45]MH_SAM_APDU [07:46:45]CAPDU: 80 13 01 00 [07:46:45]Write to MH i2c: E2 08 00 D8 5F 80 13 01 00 00 00 00 00 B4 [07:46:45]Write i2c OK [07:46:45]MH_I2C_Read... [07:46:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:46:45]Read from MH i2c: E2 [07:46:45]MH_I2C_Read... [07:46:45]Read from MH i2c: E2 0E 00 [07:46:45]MH_I2C_Read... [07:46:45]Read from MH i2c: E2 0E 00 D8 5F 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 C5 [07:46:45]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [07:46:45]wFMCommunicate OK [07:46:45]SAM_PROTO_GetShiftState done [07:46:45]FM_GetShiftState done [07:46:45]req_shift_opened done [07:46:45]requested_item shift.open_date is exist - process it [07:46:45]req_shift_open_date [07:46:45]req_shift_open_date done [07:46:45]produce_requested_data done [07:46:45]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28581,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [07:46:45]process_action_free close_receipt [07:46:45]json_value_free [07:46:45]json_value_free done [07:46:45]process_json_proto returns [07:46:45]Send response to host [07:46:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28581,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [07:46:45]free response buf [07:46:45]execute_script done [07:46:45]execute_script returns [07:46:45]free content buf [07:46:45]Sock 9.Close socket [07:46:45]Sock 9.Thread stoped [07:46:49]OFD Sender: No OFD packet to send [07:46:54]OFD Sender: No OFD packet to send [07:46:59]OFD Sender: No OFD packet to send [07:47:04]OFD Sender: No OFD packet to send [07:47:09]OFD Sender: No OFD packet to send [07:47:14]OFD Sender: No OFD packet to send [07:47:19]OFD Sender: No OFD packet to send [07:47:24]OFD Sender: No OFD packet to send [07:47:29]OFD Sender: No OFD packet to send [07:47:31]accept exits with 7 [07:47:31]New connection [07:47:31]New thread 3066498404 created [07:47:31]Thread 3066641764 joined [07:47:31]Waiting for new connection... [07:47:31] Sock 7.Parse request [07:47:31]Sock 7.Check first char [07:47:31]Sock 7.First char is OK [07:47:31]request: POST /json_proto HTTP/1.0 [07:47:31]Method: POST [07:47:31]URL: /json_proto [07:47:31]Method is POST - this is cgi request [07:47:31]url: /json_proto [07:47:31]query_string will be loaded in cgi processing [07:47:31]execute_cgi json_proto POST (null) [07:47:31]execute_cgi path=json_proto method=POST [07:47:31]POST find Content-Length [07:47:31]Host: 172.17.33.3:8080 [07:47:31]Content-Length: 643 [07:47:31]Content-Type: application/json [07:47:31] [07:47:31]POST finish read [07:47:31]Found Content-Length = 643 [07:47:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346890", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 10.000, "sum" : 329.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 329.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:47:31]execute_script... [07:47:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346890", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 10.000, "sum" : 329.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 329.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:47:31]POST & json_proto [07:47:31]process_json_proto [07:47:31]json parsed OK: [07:47:31]protocol is kg_v1.0 [07:47:31]action value=close_receipt [07:47:31]process_action close_receipt [07:47:31]cmd_close_receipt [07:47:31]MH_GetDate [07:47:31]Write to MH i2c: F0 00 00 D9 5F 27 [07:47:31]Write i2c OK [07:47:31]MH_I2C_Read... [07:47:31]Read from MH i2c: F0 [07:47:31]MH_I2C_Read... [07:47:31]Read from MH i2c: F0 09 00 [07:47:31]MH_I2C_Read... [07:47:31]Read from MH i2c: F0 09 00 D9 5F 00 1A E7 18 66 23 5B 8F 65 21 [07:47:31]GetLastDocTimeStamp 1712908008 [07:47:31]current date 1712908058 [07:47:31]FM_GetShiftState [07:47:31]SAM_PROTO_GetShiftState [07:47:31]wFMCommunicate request_size=4 [07:47:31]MH_SAM_APDU [07:47:31]CAPDU: 80 13 01 00 [07:47:31]Write to MH i2c: E2 08 00 DA 5F 80 13 01 00 00 00 00 00 B6 [07:47:31]Write i2c OK [07:47:31]MH_I2C_Read... [07:47:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:47:31]Read from MH i2c: E2 [07:47:31]MH_I2C_Read... [07:47:31]Read from MH i2c: E2 0E 00 [07:47:31]MH_I2C_Read... [07:47:31]Read from MH i2c: E2 0E 00 DA 5F 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 C7 [07:47:31]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [07:47:31]wFMCommunicate OK [07:47:31]SAM_PROTO_GetShiftState done [07:47:31]FM_GetShiftState done [07:47:31]opened in 1712881416 [07:47:31]opened+sec_in_day 1712967816 [07:47:31]quantity*price = 32900 [07:47:31]sum+1 = 32901 [07:47:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 329.00 НСП 1% : 2.91 НДС 12% : 34.94 Наличными: 329.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 31 12.04.2024 07:47 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28582 ФПД: 122385348401861 1/tax-web-control/client/api/v1/ticket?date=20240412T074738&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28582&fm=122385348401861&tin=02508201610067®Number=0000138879044617&sum=32900 [07:47:32]StoreToDocumentArchive [07:47:32]shift 113 fd 28582 [07:47:32]save to /storage/0113/doc_00028582 [07:47:32]save last doc name /storage/0113/doc_00028582 to /storage/kkm_last_doc_name [07:47:32]save OK [07:47:32]Clear old archive folders... [07:47:32]ProcessDocumentItem done err = 0, tmpTLVsize=250 [07:47:32]tlvbuf is 01AFAAB0 [07:47:32]SAM_PROTO_ClearQueue [07:47:32]wFMCommunicate request_size=4 [07:47:32]MH_SAM_APDU [07:47:32]CAPDU: 80 09 00 00 [07:47:32]Write to MH i2c: E2 08 00 E7 5F 80 09 00 00 00 00 00 00 B8 [07:47:32]Write i2c OK [07:47:32]MH_I2C_Read... [07:47:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:47:32]Read from MH i2c: E2 [07:47:32]MH_I2C_Read... [07:47:32]Read from MH i2c: E2 03 00 [07:47:32]MH_I2C_Read... [07:47:32]Read from MH i2c: E2 03 00 E7 5F 00 90 00 BA [07:47:32]RAPDU: 90 00 [07:47:32]wFMCommunicate OK [07:47:32]SAM_PROTO_ClearQueue done [07:47:32]KKMCreateOFDPacket [07:47:32]OFDProtocolAddRootSTLVToBuf [07:47:32]FM_MakeSignedData [07:47:32]FM_MakeSignedData [07:47:32]SAM_PROTO_SignData [07:47:32]wFMCommunicate request_size=4 [07:47:32]MH_SAM_APDU [07:47:32]CAPDU: 80 0D 01 02 [07:47:32]Write to MH i2c: E2 08 00 E8 5F 80 0D 01 02 00 00 00 00 C0 [07:47:32]Write i2c OK [07:47:32]MH_I2C_Read... [07:47:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:47:32]Read from MH i2c: E2 [07:47:32]MH_I2C_Read... [07:47:32]Read from MH i2c: E2 03 00 [07:47:32]MH_I2C_Read... [07:47:32]Read from MH i2c: E2 03 00 E8 5F 00 90 00 BB [07:47:32]RAPDU: 90 00 [07:47:32]wFMCommunicate OK [07:47:32]wFMCommunicate request_size=255 [07:47:32]MH_SAM_APDU [07:47:32]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 84 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 0D 00 00 00 00 07 04 06 00 84 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 1A E7 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A6 6F 00 00 35 04 06 00 6F 4F [07:47:32]Write to MH i2c: E2 02 01 E9 5F 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 84 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 0D 00 00 00 00 07 04 06 00 84 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 1A E7 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A6 6F 00 00 35 04 06 00 6F 4F 00 00 79 [07:47:32]Write i2c OK [07:47:32]MH_I2C_Read... [07:47:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:47:32]Read from MH i2c: E2 [07:47:32]MH_I2C_Read... [07:47:32]Read from MH i2c: E2 03 00 [07:47:32]MH_I2C_Read... [07:47:32]Read from MH i2c: E2 03 00 E9 5F 00 90 00 BC [07:47:32]RAPDU: 90 00 [07:47:32]wFMCommunicate OK [07:47:32]wFMCommunicate request_size=9 [07:47:32]MH_SAM_APDU [07:47:32]CAPDU: 80 0D 02 02 04 0F 37 9A C5 [07:47:32]Write to MH i2c: E2 0C 00 EA 5F 80 0D 02 02 04 00 0F 37 9A C5 00 00 70 [07:47:32]Write i2c OK [07:47:32]MH_I2C_Read... [07:47:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:47:32]Read from MH i2c: E2 [07:47:32]MH_I2C_Read... [07:47:32]Read from MH i2c: E2 03 00 [07:47:32]MH_I2C_Read... [07:47:32]Read from MH i2c: E2 03 00 EA 5F 00 90 00 BD [07:47:32]RAPDU: 90 00 [07:47:32]wFMCommunicate OK [07:47:32]wFMCommunicate request_size=4 [07:47:32]MH_SAM_APDU [07:47:32]CAPDU: 80 0D 03 02 [07:47:32]Write to MH i2c: E2 08 00 EB 5F 80 0D 03 02 00 00 00 00 C5 [07:47:32]Write i2c OK [07:47:32]MH_I2C_Read... [07:47:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:47:32]Read from MH i2c: E2 [07:47:32]MH_I2C_Read... [07:47:32]Read from MH i2c: E2 0B 00 [07:47:32]MH_I2C_Read... [07:47:32]Read from MH i2c: E2 0B 00 EB 5F 00 BE CD 79 0D A6 8B 23 2B 90 00 56 [07:47:32]RAPDU: BE CD 79 0D A6 8B 23 2B 90 00 [07:47:32]wFMCommunicate OK [07:47:32]SAM_PROTO_SignData done [07:47:32]FM_MakeSignedData done [07:47:32]CreateOFDProtocolMessage [07:47:32]wFMCommunicate request_size=4 [07:47:32]MH_SAM_APDU [07:47:32]CAPDU: 80 11 00 00 [07:47:32]Write to MH i2c: E2 08 00 EC 5F 80 11 00 00 00 00 00 00 C5 [07:47:32]Write i2c OK [07:47:32]MH_I2C_Read... [07:47:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:47:32]Read from MH i2c: E2 [07:47:32]MH_I2C_Read... [07:47:32]Read from MH i2c: E2 17 00 [07:47:32]MH_I2C_Read... [07:47:32]Read from MH i2c: E2 17 00 EC 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 14 [07:47:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:47:32]wFMCommunicate OK [07:47:32]CreateOFDProtocolMessage done [07:47:32]OFDSenderStorePacket 28582 [07:47:32]StoreOFDPacket docnum=28582 [07:47:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 31 17 06 01 83 14 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 84 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 0D 00 00 00 00 07 04 06 00 84 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 1A E7 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A6 6F 00 00 35 04 06 00 6F 4F 0F 37 9A C5 BE CD 79 0D A6 8B 23 2B [07:47:32]CheckFolder [07:47:32]dirname=/storage/ofd_packets [07:47:32]CheckFolder done [07:47:32]ProducePacketName [07:47:32]name=ofd_packets/00028582 [07:47:32]NVStorageSaveData ofd_packets/00028582 [07:47:32]File name is /storage/ofd_packets/00028582 [07:47:32]Write 300 bytes [07:47:32]NVStorageSaveData done [07:47:32]OFDSenderStorePacket done [07:47:32]KKMCreateOFDPacket done [07:47:32]NVStorageSaveData kkm_last_timestamp [07:47:32]File name is /storage/kkm_last_timestamp [07:47:32]Write 4 bytes [07:47:32]NVStorageSaveData done [07:47:32]ExternCall_PrintAddStr [07:47:32]wPrintStart [07:47:32]Write to MH i2c: 01 00 00 ED 5F 4C [07:47:32]Write i2c OK [07:47:32]MH_I2C_Read... [07:47:32]Read from MH i2c: 01 [07:47:32]MH_I2C_Read... [07:47:32]Read from MH i2c: 01 07 00 [07:47:32]MH_I2C_Read... [07:47:32]Read from MH i2c: 01 07 00 ED 5F 00 00 00 00 00 FF 0F 61 [07:47:32]RasterBufferAndPrint [07:47:32]line Счет N : (1)346890 [07:47:32]line ИНН: 02508201610067 [07:47:32]line Контрольно-Кассовый Чек [07:47:32]line ПРОДАЖА [07:47:32]line ТРК (МРК, ГНК) : 71 [07:47:32]line Товар: 2711129700 [07:47:32]line ГАЗ-К-5 [07:47:32]line 10.000 * 32.90 [07:47:32]line = 329.00 [07:47:32]line НДС 12% НСП 1% [07:47:32]line > о реализуемом товаре [07:47:32]line ИТОГО: 329.00 [07:47:32]line НСП 1% : 2.91 [07:47:32]line НДС 12% : 34.94 [07:47:32]line Наличными: 329.00 [07:47:32]line Безнал.: 0.00 [07:47:32]line Место: АЗС № 108 "Партнер Нефть" [07:47:32]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [07:47:32]line СНО: Общий режим [07:47:32]line Чек 31 12.04.2024 07:47 [07:47:32]line Смена: 113 ФФД: 1.0 [07:47:32]line ЗНМ: 0300000027 [07:47:32]line РНМ: 0000138879044617 [07:47:32]line Версия ККМ: 001 [07:47:32]line ФМ: 0000000000963154 [07:47:32]line ФД: 28582 [07:47:32]line ФПД: 122385348401861 [07:47:32]line 1/tax-web-control/client/api/v1/ticket?date=20240412T074738&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28582&fm=122385348401861&tin=02508201610067®Number=0000138879044617&sum=32900 [07:47:33]written 0, free lines is 4095 [07:47:33]OFD Sender: Processing packet 28582 [packets to send 8, broken 7] [07:47:33]ProducePacketName [07:47:33]name=ofd_packets/00028582 [07:47:33]OFD Sender: To server: pG, [07:47:33]CommunicateWithHost lk.salyk.kg:30040 [07:47:33]ConnectInit lk.salyk.kg [07:47:33]Connected sock=10 [07:47:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 31 17 06 01 83 14 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 84 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 0D 00 00 00 00 07 04 06 00 84 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 1A E7 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A6 6F 00 00 35 04 06 00 6F 4F 0F 37 9A C5 BE CD 79 0D A6 8B 23 2B [07:47:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 47 3A 47 00 FA 15 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A6 6F 00 00 F4 03 04 00 C4 91 18 66 B6 04 01 00 00 D5 41 99 39 BF 53 C8 0C [07:47:33]CommunicateWithHost err = 0 [07:47:33]CheckOFDResponse [07:47:33]1017 (14) - 77093643461234 [07:47:33]1041 (16) - 0000000000963154 [07:47:33]1040 (4) - 28582 [07:47:33]1012 (4) - 12.04.2024 01:43 [07:47:33]1206 (1) - 0 [07:47:33]OFD Sender: Remove packet 28582 [07:47:33]ProducePacketName [07:47:33]name=ofd_packets/00028582 [07:47:33]NVStorageDeleteData [07:47:33]Write to MH i2c: 01 00 00 14 60 74 [07:47:33]Write i2c OK [07:47:33]MH_I2C_Read... [07:47:33]Read from MH i2c: 01 [07:47:33]MH_I2C_Read... [07:47:33]Read from MH i2c: 01 07 00 [07:47:33]MH_I2C_Read... [07:47:33]Read from MH i2c: 01 07 00 14 60 00 00 00 00 00 F0 0C 77 [07:47:33]RasterBufferAndPrint [07:47:33]line [07:47:33]line [07:47:33]line [07:47:33]line [07:47:33]line [07:47:33]written 0, free lines is 3318 [07:47:33]MH_Cut [07:47:33]Write to MH i2c: D1 01 00 1B 60 01 4D [07:47:33]Write i2c OK [07:47:33]MH_I2C_Read... [07:47:33]Read from MH i2c: D1 [07:47:33]MH_I2C_Read... [07:47:33]Read from MH i2c: D1 01 00 [07:47:33]MH_I2C_Read... [07:47:33]Read from MH i2c: D1 01 00 1B 60 00 4C [07:47:33]Write to MH i2c: 01 00 00 1C 60 7C [07:47:33]Write i2c OK [07:47:33]MH_I2C_Read... [07:47:33]OFD Sender: No OFD packet to send [07:47:34]*** Cut start [07:47:34]*** Partial cut [07:47:34]*** CUTSNS_PIN = 1 [07:47:34]*** CUTSNS_PIN = 0 [07:47:34]*** Brake cut motor [07:47:34]Read from MH i2c: 01 [07:47:34]MH_I2C_Read... [07:47:34]*** Stop cut motor [07:47:34]*** Cut end [07:47:34]Read from MH i2c: 01 07 00 [07:47:34]MH_I2C_Read... [07:47:34]Read from MH i2c: 01 07 00 1C 60 00 00 00 00 00 FF 0F 91 [07:47:34]process_action close_receipt done [07:47:34]requested_data is exist [07:47:34]produce_requested_data [07:47:34]requested_item fm.sn is exist - process it [07:47:34]wFMCommunicate request_size=4 [07:47:34]MH_SAM_APDU [07:47:34]CAPDU: 80 11 00 00 [07:47:34]Write to MH i2c: E2 08 00 1D 60 80 11 00 00 00 00 00 00 F7 [07:47:34]Write i2c OK [07:47:34]MH_I2C_Read... [07:47:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:47:34]Read from MH i2c: E2 [07:47:34]MH_I2C_Read... [07:47:34]Read from MH i2c: E2 17 00 [07:47:34]MH_I2C_Read... [07:47:34]Read from MH i2c: E2 17 00 1D 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 46 [07:47:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:47:34]wFMCommunicate OK [07:47:34]requested_item fd.num is exist - process it [07:47:34]SAM_PROTO_GetFieldsCounters [07:47:34]wFMCommunicate request_size=4 [07:47:34]MH_SAM_APDU [07:47:34]CAPDU: 80 13 00 00 [07:47:34]Write to MH i2c: E2 08 00 1E 60 80 13 00 00 00 00 00 00 FA [07:47:34]Write i2c OK [07:47:34]MH_I2C_Read... [07:47:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:47:35]Read from MH i2c: E2 [07:47:35]MH_I2C_Read... [07:47:35]Read from MH i2c: E2 62 00 [07:47:35]MH_I2C_Read... [07:47:35]Read from MH i2c: E2 62 00 1E 60 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A6 6F 00 00 0E 04 04 00 71 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 1B [07:47:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A6 6F 00 00 0E 04 04 00 71 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 [07:47:35]wFMCommunicate OK [07:47:35]SAM_PROTO_GetFieldsCounters done [07:47:35]requested_item shift.num is exist - process it [07:47:35]requested_item shift.opened is exist - process it [07:47:35]req_shift_opened [07:47:35]FM_GetShiftState [07:47:35]SAM_PROTO_GetShiftState [07:47:35]wFMCommunicate request_size=4 [07:47:35]MH_SAM_APDU [07:47:35]CAPDU: 80 13 01 00 [07:47:35]Write to MH i2c: E2 08 00 1F 60 80 13 01 00 00 00 00 00 FC [07:47:35]Write i2c OK [07:47:35]MH_I2C_Read... [07:47:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:47:35]Read from MH i2c: E2 [07:47:35]MH_I2C_Read... [07:47:35]Read from MH i2c: E2 0E 00 [07:47:35]MH_I2C_Read... [07:47:35]Read from MH i2c: E2 0E 00 1F 60 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 0D [07:47:35]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [07:47:35]wFMCommunicate OK [07:47:35]SAM_PROTO_GetShiftState done [07:47:35]FM_GetShiftState done [07:47:35]req_shift_opened done [07:47:35]requested_item shift.open_date is exist - process it [07:47:35]req_shift_open_date [07:47:35]req_shift_open_date done [07:47:35]produce_requested_data done [07:47:35]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28582,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [07:47:35]process_action_free close_receipt [07:47:35]json_value_free [07:47:35]json_value_free done [07:47:35]process_json_proto returns [07:47:35]Send response to host [07:47:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28582,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [07:47:35]free response buf [07:47:35]execute_script done [07:47:35]execute_script returns [07:47:35]free content buf [07:47:35]Sock 7.Close socket [07:47:35]Sock 7.Thread stoped [07:47:38]OFD Sender: No OFD packet to send [07:47:43]OFD Sender: No OFD packet to send [07:47:48]OFD Sender: No OFD packet to send [07:47:53]OFD Sender: No OFD packet to send [07:47:58]OFD Sender: No OFD packet to send [07:48:03]OFD Sender: No OFD packet to send [07:48:08]OFD Sender: No OFD packet to send [07:48:13]OFD Sender: No OFD packet to send [07:48:18]OFD Sender: No OFD packet to send [07:48:23]OFD Sender: No OFD packet to send [07:48:28]OFD Sender: No OFD packet to send [07:48:33]OFD Sender: No OFD packet to send [07:48:38]OFD Sender: No OFD packet to send [07:48:43]OFD Sender: No OFD packet to send [07:48:48]OFD Sender: No OFD packet to send [07:48:53]OFD Sender: No OFD packet to send [07:48:58]OFD Sender: No OFD packet to send [07:49:03]OFD Sender: No OFD packet to send [07:49:08]OFD Sender: No OFD packet to send [07:49:13]OFD Sender: No OFD packet to send [07:49:18]OFD Sender: No OFD packet to send [07:49:23]OFD Sender: No OFD packet to send [07:49:28]OFD Sender: No OFD packet to send [07:49:33]OFD Sender: No OFD packet to send [07:49:38]OFD Sender: No OFD packet to send [07:49:43]OFD Sender: No OFD packet to send [07:49:48]OFD Sender: No OFD packet to send [07:49:53]OFD Sender: No OFD packet to send [07:49:58]OFD Sender: No OFD packet to send [07:50:03]OFD Sender: No OFD packet to send [07:50:08]OFD Sender: No OFD packet to send [07:50:13]OFD Sender: No OFD packet to send [07:50:18]OFD Sender: No OFD packet to send [07:50:23]OFD Sender: No OFD packet to send [07:50:28]OFD Sender: No OFD packet to send [07:50:33]OFD Sender: No OFD packet to send [07:50:38]OFD Sender: No OFD packet to send [07:50:43]OFD Sender: No OFD packet to send [07:50:48]OFD Sender: No OFD packet to send [07:50:53]OFD Sender: No OFD packet to send [07:50:59]OFD Sender: No OFD packet to send [07:51:04]OFD Sender: No OFD packet to send [07:51:09]OFD Sender: No OFD packet to send [07:51:14]OFD Sender: No OFD packet to send [07:51:19]OFD Sender: No OFD packet to send [07:51:24]OFD Sender: No OFD packet to send [07:51:29]OFD Sender: No OFD packet to send [07:51:34]OFD Sender: No OFD packet to send [07:51:39]OFD Sender: No OFD packet to send [07:51:44]OFD Sender: No OFD packet to send [07:51:49]OFD Sender: No OFD packet to send [07:51:54]OFD Sender: No OFD packet to send [07:51:59]OFD Sender: No OFD packet to send [07:52:04]OFD Sender: No OFD packet to send [07:52:09]OFD Sender: No OFD packet to send [07:52:14]OFD Sender: No OFD packet to send [07:52:19]OFD Sender: No OFD packet to send [07:52:24]OFD Sender: No OFD packet to send [07:52:29]OFD Sender: No OFD packet to send [07:52:34]OFD Sender: No OFD packet to send [07:52:39]OFD Sender: No OFD packet to send [07:52:44]OFD Sender: No OFD packet to send [07:52:49]OFD Sender: No OFD packet to send [07:52:54]OFD Sender: No OFD packet to send [07:52:59]OFD Sender: No OFD packet to send [07:53:04]OFD Sender: No OFD packet to send [07:53:09]OFD Sender: No OFD packet to send [07:53:14]OFD Sender: No OFD packet to send [07:53:19]OFD Sender: No OFD packet to send [07:53:24]OFD Sender: No OFD packet to send [07:53:29]OFD Sender: No OFD packet to send [07:53:34]OFD Sender: No OFD packet to send [07:53:39]OFD Sender: No OFD packet to send [07:53:44]OFD Sender: No OFD packet to send [07:53:49]OFD Sender: No OFD packet to send [07:53:54]OFD Sender: No OFD packet to send [07:53:59]OFD Sender: No OFD packet to send [07:54:04]OFD Sender: No OFD packet to send [07:54:09]OFD Sender: No OFD packet to send [07:54:14]OFD Sender: No OFD packet to send [07:54:19]OFD Sender: No OFD packet to send [07:54:24]OFD Sender: No OFD packet to send [07:54:29]OFD Sender: No OFD packet to send [07:54:34]OFD Sender: No OFD packet to send [07:54:39]OFD Sender: No OFD packet to send [07:54:44]OFD Sender: No OFD packet to send [07:54:49]OFD Sender: No OFD packet to send [07:54:54]OFD Sender: No OFD packet to send [07:54:59]OFD Sender: No OFD packet to send [07:55:04]OFD Sender: No OFD packet to send [07:55:09]OFD Sender: No OFD packet to send [07:55:14]OFD Sender: No OFD packet to send [07:55:19]OFD Sender: No OFD packet to send [07:55:24]OFD Sender: No OFD packet to send [07:55:26]accept exits with 9 [07:55:26]New connection [07:55:26]New thread 3066641764 created [07:55:26]Thread 3066498404 joined [07:55:26]Waiting for new connection... [07:55:26] Sock 9.Parse request [07:55:26]Sock 9.Check first char [07:55:26]Sock 9.First char is OK [07:55:26]request: POST /json_proto HTTP/1.0 [07:55:26]Method: POST [07:55:26]URL: /json_proto [07:55:26]Method is POST - this is cgi request [07:55:26]url: /json_proto [07:55:26]query_string will be loaded in cgi processing [07:55:26]execute_cgi json_proto POST (null) [07:55:26]execute_cgi path=json_proto method=POST [07:55:26]POST find Content-Length [07:55:26]Host: 172.17.33.3:8080 [07:55:26]Content-Length: 682 [07:55:26]Content-Type: application/json [07:55:26] [07:55:26]POST finish read [07:55:26]Found Content-Length = 682 [07:55:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346891", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.50, "quantity" : 41.380, "sum" : 3000.05, "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" ] } } [07:55:26]execute_script... [07:55: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)346891", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.50, "quantity" : 41.380, "sum" : 3000.05, "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" ] } } [07:55:26]POST & json_proto [07:55:26]process_json_proto [07:55:26]json parsed OK: [07:55:26]protocol is kg_v1.0 [07:55:26]action value=close_receipt [07:55:26]process_action close_receipt [07:55:26]cmd_close_receipt [07:55:26]MH_GetDate [07:55:26]Write to MH i2c: F0 00 00 20 60 6F [07:55:26]Write i2c OK [07:55:26]MH_I2C_Read... [07:55:26]Read from MH i2c: F0 [07:55:26]MH_I2C_Read... [07:55:26]Read from MH i2c: F0 09 00 [07:55:26]MH_I2C_Read... [07:55:26]Read from MH i2c: F0 09 00 20 60 00 F5 E8 18 66 23 5B 8F 65 45 [07:55:26]GetLastDocTimeStamp 1712908058 [07:55:26]current date 1712908533 [07:55:26]FM_GetShiftState [07:55:26]SAM_PROTO_GetShiftState [07:55:26]wFMCommunicate request_size=4 [07:55:26]MH_SAM_APDU [07:55:26]CAPDU: 80 13 01 00 [07:55:26]Write to MH i2c: E2 08 00 21 60 80 13 01 00 00 00 00 00 FE [07:55:26]Write i2c OK [07:55:26]MH_I2C_Read... [07:55:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:55:26]Read from MH i2c: E2 [07:55:26]MH_I2C_Read... [07:55:26]Read from MH i2c: E2 0E 00 [07:55:26]MH_I2C_Read... [07:55:26]Read from MH i2c: E2 0E 00 21 60 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 0F [07:55:26]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [07:55:26]wFMCommunicate OK [07:55:26]SAM_PROTO_GetShiftState done [07:55:26]FM_GetShiftState done [07:55:26]opened in 1712881416 [07:55:26]opened+sec_in_day 1712967816 [07:55:26]quantity*price = 300005 [07:55:26]sum+1 = 300006 [07:55:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.59 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 32 12.04.2024 07:55 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28583 ФПД: 153472770116304 1/tax-web-control/client/api/v1/ticket?date=20240412T075533&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28583&fm=153472770116304&tin=02508201610067®Number=0000138879044617&sum=300000 [07:55:27]StoreToDocumentArchive [07:55:27]shift 113 fd 28583 [07:55:27]save to /storage/0113/doc_00028583 [07:55:27]save last doc name /storage/0113/doc_00028583 to /storage/kkm_last_doc_name [07:55:27]save OK [07:55:27]Clear old archive folders... [07:55:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:55:27]tlvbuf is 01AD7EB0 [07:55:27]SAM_PROTO_ClearQueue [07:55:27]wFMCommunicate request_size=4 [07:55:27]MH_SAM_APDU [07:55:27]CAPDU: 80 09 00 00 [07:55:27]Write to MH i2c: E2 08 00 2E 60 80 09 00 00 00 00 00 00 00 [07:55:27]Write i2c OK [07:55:27]MH_I2C_Read... [07:55:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:55:27]Read from MH i2c: E2 [07:55:27]MH_I2C_Read... [07:55:27]Read from MH i2c: E2 03 00 [07:55:27]MH_I2C_Read... [07:55:27]Read from MH i2c: E2 03 00 2E 60 00 90 00 02 [07:55:27]RAPDU: 90 00 [07:55:27]wFMCommunicate OK [07:55:27]SAM_PROTO_ClearQueue done [07:55:27]KKMCreateOFDPacket [07:55:27]OFDProtocolAddRootSTLVToBuf [07:55:27]FM_MakeSignedData [07:55:27]FM_MakeSignedData [07:55:27]SAM_PROTO_SignData [07:55:27]wFMCommunicate request_size=4 [07:55:27]MH_SAM_APDU [07:55:27]CAPDU: 80 0D 01 02 [07:55:27]Write to MH i2c: E2 08 00 2F 60 80 0D 01 02 00 00 00 00 08 [07:55:27]Write i2c OK [07:55:27]MH_I2C_Read... [07:55:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:55:27]Read from MH i2c: E2 [07:55:27]MH_I2C_Read... [07:55:27]Read from MH i2c: E2 03 00 [07:55:27]MH_I2C_Read... [07:55:27]Read from MH i2c: E2 03 00 2F 60 00 90 00 03 [07:55:27]RAPDU: 90 00 [07:55:27]wFMCommunicate OK [07:55:27]wFMCommunicate request_size=255 [07:55:27]MH_SAM_APDU [07:55: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A4 A1 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 E5 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 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 20 00 00 00 F4 03 04 00 F5 E8 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A7 6F 00 00 35 04 06 00 8B [07:55:27]Write to MH i2c: E2 02 01 30 60 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A4 A1 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 E5 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 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 20 00 00 00 F4 03 04 00 F5 E8 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A7 6F 00 00 35 04 06 00 8B 00 00 35 [07:55:27]Write i2c OK [07:55:27]MH_I2C_Read... [07:55:27]Read from MH i2c: E2 [07:55:27]MH_I2C_Read... [07:55:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:55:27]Read from MH i2c: E2 03 00 [07:55:27]MH_I2C_Read... [07:55:27]Read from MH i2c: E2 03 00 30 60 00 90 00 04 [07:55:27]RAPDU: 90 00 [07:55:27]wFMCommunicate OK [07:55:27]wFMCommunicate request_size=10 [07:55:27]MH_SAM_APDU [07:55:27]CAPDU: 80 0D 02 02 05 95 29 F2 0A D0 [07:55:27]Write to MH i2c: E2 0D 00 31 60 80 0D 02 02 05 00 95 29 F2 0A D0 00 00 9F [07:55:27]Write i2c OK [07:55:27]MH_I2C_Read... [07:55:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:55:27]Read from MH i2c: E2 [07:55:27]MH_I2C_Read... [07:55:27]Read from MH i2c: E2 03 00 [07:55:27]MH_I2C_Read... [07:55:27]Read from MH i2c: E2 03 00 31 60 00 90 00 05 [07:55:27]RAPDU: 90 00 [07:55:27]wFMCommunicate OK [07:55:27]wFMCommunicate request_size=4 [07:55:27]MH_SAM_APDU [07:55:27]CAPDU: 80 0D 03 02 [07:55:27]Write to MH i2c: E2 08 00 32 60 80 0D 03 02 00 00 00 00 0D [07:55:27]Write i2c OK [07:55:27]MH_I2C_Read... [07:55:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:55:27]Read from MH i2c: E2 [07:55:27]MH_I2C_Read... [07:55:27]Read from MH i2c: E2 0B 00 [07:55:27]MH_I2C_Read... [07:55:27]Read from MH i2c: E2 0B 00 32 60 00 74 F2 03 43 5D 14 F1 B8 90 00 D4 [07:55:27]RAPDU: 74 F2 03 43 5D 14 F1 B8 90 00 [07:55:27]wFMCommunicate OK [07:55:27]SAM_PROTO_SignData done [07:55:27]FM_MakeSignedData done [07:55:27]CreateOFDProtocolMessage [07:55:27]wFMCommunicate request_size=4 [07:55:27]MH_SAM_APDU [07:55:27]CAPDU: 80 11 00 00 [07:55:27]Write to MH i2c: E2 08 00 33 60 80 11 00 00 00 00 00 00 0D [07:55:27]Write i2c OK [07:55:27]MH_I2C_Read... [07:55:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:55:27]Read from MH i2c: E2 [07:55:27]MH_I2C_Read... [07:55:27]Read from MH i2c: E2 17 00 [07:55:27]MH_I2C_Read... [07:55:27]Read from MH i2c: E2 17 00 33 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 5C [07:55:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:55:27]wFMCommunicate OK [07:55:27]CreateOFDProtocolMessage done [07:55:27]OFDSenderStorePacket 28583 [07:55:27]StoreOFDPacket docnum=28583 [07:55:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 0A 11 07 01 6F 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A4 A1 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 E5 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 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 20 00 00 00 F4 03 04 00 F5 E8 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A7 6F 00 00 35 04 06 00 8B 95 29 F2 0A D0 74 F2 03 43 5D 14 F1 B8 [07:55:27]CheckFolder [07:55:27]dirname=/storage/ofd_packets [07:55:27]CheckFolder done [07:55:27]ProducePacketName [07:55:27]name=ofd_packets/00028583 [07:55:27]NVStorageSaveData ofd_packets/00028583 [07:55:27]File name is /storage/ofd_packets/00028583 [07:55:27]Write 301 bytes [07:55:27]NVStorageSaveData done [07:55:27]OFDSenderStorePacket done [07:55:27]KKMCreateOFDPacket done [07:55:27]NVStorageSaveData kkm_last_timestamp [07:55:27]File name is /storage/kkm_last_timestamp [07:55:27]Write 4 bytes [07:55:27]NVStorageSaveData done [07:55:27]ExternCall_PrintAddStr [07:55:27]wPrintStart [07:55:27]Write to MH i2c: 01 00 00 34 60 94 [07:55:27]Write i2c OK [07:55:27]MH_I2C_Read... [07:55:27]Read from MH i2c: 01 [07:55:27]MH_I2C_Read... [07:55:27]Read from MH i2c: 01 07 00 [07:55:27]MH_I2C_Read... [07:55:27]Read from MH i2c: 01 07 00 34 60 00 00 00 00 00 FF 0F A9 [07:55:27]RasterBufferAndPrint [07:55:27]line Счет N : (1)346891 [07:55:27]line ИНН: 02508201610067 [07:55:27]line Контрольно-Кассовый Чек [07:55:27]line ПРОДАЖА [07:55:27]line ТРК (МРК, ГНК) : 33 [07:55:27]line Товар: 2710124500 [07:55:27]line Аи-95-К-5 [07:55:27]line 41.380 * 72.50 [07:55:27]line = 3000.05 [07:55:27]line НДС 12% НСП 1% [07:55:27]line > о реализуемом товаре [07:55:27]line ОКРУГЛЕНИЕ: -0.05 [07:55:27]line ИТОГО: 3000.00 [07:55:27]line Внесено: 3000.00 [07:55:27]line СДАЧА: 0.00 [07:55:27]line НСП 1% : 26.55 [07:55:27]line НДС 12% : 318.59 [07:55:27]line Наличными: 3000.00 [07:55:27]line Безнал.: 0.00 [07:55:27]line Место: АЗС № 108 "Партнер Нефть" [07:55:27]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [07:55:27]line СНО: Общий режим [07:55:27]line Чек 32 12.04.2024 07:55 [07:55:27]line Смена: 113 ФФД: 1.0 [07:55:27]line ЗНМ: 0300000027 [07:55:27]line РНМ: 0000138879044617 [07:55:27]line Версия ККМ: 001 [07:55:27]line ФМ: 0000000000963154 [07:55:27]line ФД: 28583 [07:55:27]line ФПД: 153472770116304 [07:55:28]line 1/tax-web-control/client/api/v1/ticket?date=20240412T075533&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28583&fm=153472770116304&tin=02508201610067®Number=0000138879044617&sum=300000 [07:55:28]OFD Sender: Processing packet 28583 [packets to send 8, broken 7] [07:55:28]ProducePacketName [07:55:28]name=ofd_packets/00028583 [07:55:28]OFD Sender: To server: pG, [07:55:28]CommunicateWithHost lk.salyk.kg:30040 [07:55:28]ConnectInit lk.salyk.kg [07:55:28]written 0, free lines is 4095 [07:55:28]Connected sock=10 [07:55:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 0A 11 07 01 6F 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A4 A1 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 E5 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 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 20 00 00 00 F4 03 04 00 F5 E8 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A7 6F 00 00 35 04 06 00 8B 95 29 F2 0A D0 74 F2 03 43 5D 14 F1 B8 [07:55:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 F9 A0 47 00 6A F3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A7 6F 00 00 F4 03 04 00 9F 93 18 66 B6 04 01 00 00 63 49 6A EA D2 12 E1 57 [07:55:28]CommunicateWithHost err = 0 [07:55:28]CheckOFDResponse [07:55:28]1017 (14) - 77093643461234 [07:55:28]1041 (16) - 0000000000963154 [07:55:28]1040 (4) - 28583 [07:55:28]1012 (4) - 12.04.2024 01:51 [07:55:28]1206 (1) - 0 [07:55:28]OFD Sender: Remove packet 28583 [07:55:28]ProducePacketName [07:55:28]name=ofd_packets/00028583 [07:55:28]NVStorageDeleteData [07:55:28]Write to MH i2c: 01 00 00 5E 60 BE [07:55:28]Write i2c OK [07:55:28]MH_I2C_Read... [07:55:28]Read from MH i2c: 01 [07:55:28]MH_I2C_Read... [07:55:28]Read from MH i2c: 01 07 00 [07:55:28]MH_I2C_Read... [07:55:28]Read from MH i2c: 01 07 00 5E 60 00 00 00 00 00 BC 0C 8D [07:55:28]RasterBufferAndPrint [07:55:28]line [07:55:28]line [07:55:28]line [07:55:28]line [07:55:28]line [07:55:28]written 0, free lines is 3265 [07:55:28]MH_Cut [07:55:28]Write to MH i2c: D1 01 00 65 60 01 97 [07:55:28]Write i2c OK [07:55:28]MH_I2C_Read... [07:55:28]Read from MH i2c: D1 [07:55:28]MH_I2C_Read... [07:55:28]Read from MH i2c: D1 01 00 [07:55:28]MH_I2C_Read... [07:55:28]Read from MH i2c: D1 01 00 65 60 00 96 [07:55:28]Write to MH i2c: 01 00 00 66 60 C6 [07:55:28]Write i2c OK [07:55:28]MH_I2C_Read... [07:55:28]OFD Sender: No OFD packet to send [07:55:29]*** Cut start [07:55:29]*** Partial cut [07:55:29]*** CUTSNS_PIN = 1 [07:55:29]*** CUTSNS_PIN = 0 [07:55:29]*** Brake cut motor [07:55:29]Read from MH i2c: 01 [07:55:29]MH_I2C_Read... [07:55:29]*** Stop cut motor [07:55:29]*** Cut end [07:55:29]Read from MH i2c: 01 07 00 [07:55:29]MH_I2C_Read... [07:55:29]Read from MH i2c: 01 07 00 66 60 00 00 00 00 00 FF 0F DB [07:55:29]process_action close_receipt done [07:55:29]requested_data is exist [07:55:29]produce_requested_data [07:55:29]requested_item fm.sn is exist - process it [07:55:29]wFMCommunicate request_size=4 [07:55:29]MH_SAM_APDU [07:55:29]CAPDU: 80 11 00 00 [07:55:29]Write to MH i2c: E2 08 00 67 60 80 11 00 00 00 00 00 00 41 [07:55:29]Write i2c OK [07:55:29]MH_I2C_Read... [07:55:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:55:30]Read from MH i2c: E2 [07:55:30]MH_I2C_Read... [07:55:30]Read from MH i2c: E2 17 00 [07:55:30]MH_I2C_Read... [07:55:30]Read from MH i2c: E2 17 00 67 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 90 [07:55:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:55:30]wFMCommunicate OK [07:55:30]requested_item fd.num is exist - process it [07:55:30]SAM_PROTO_GetFieldsCounters [07:55:30]wFMCommunicate request_size=4 [07:55:30]MH_SAM_APDU [07:55:30]CAPDU: 80 13 00 00 [07:55:30]Write to MH i2c: E2 08 00 68 60 80 13 00 00 00 00 00 00 44 [07:55:30]Write i2c OK [07:55:30]MH_I2C_Read... [07:55:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:55:30]Read from MH i2c: E2 [07:55:30]MH_I2C_Read... [07:55:30]Read from MH i2c: E2 62 00 [07:55:30]MH_I2C_Read... [07:55:30]Read from MH i2c: E2 62 00 68 60 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A7 6F 00 00 0E 04 04 00 71 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 69 [07:55:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A7 6F 00 00 0E 04 04 00 71 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 [07:55:30]wFMCommunicate OK [07:55:30]SAM_PROTO_GetFieldsCounters done [07:55:30]requested_item shift.num is exist - process it [07:55:30]requested_item shift.opened is exist - process it [07:55:30]req_shift_opened [07:55:30]FM_GetShiftState [07:55:30]SAM_PROTO_GetShiftState [07:55:30]wFMCommunicate request_size=4 [07:55:30]MH_SAM_APDU [07:55:30]CAPDU: 80 13 01 00 [07:55:30]Write to MH i2c: E2 08 00 69 60 80 13 01 00 00 00 00 00 46 [07:55:30]Write i2c OK [07:55:30]MH_I2C_Read... [07:55:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:55:30]Read from MH i2c: E2 [07:55:30]MH_I2C_Read... [07:55:30]Read from MH i2c: E2 0E 00 [07:55:30]MH_I2C_Read... [07:55:30]Read from MH i2c: E2 0E 00 69 60 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 57 [07:55:30]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [07:55:30]wFMCommunicate OK [07:55:30]SAM_PROTO_GetShiftState done [07:55:30]FM_GetShiftState done [07:55:30]req_shift_opened done [07:55:30]requested_item shift.open_date is exist - process it [07:55:30]req_shift_open_date [07:55:30]req_shift_open_date done [07:55:30]produce_requested_data done [07:55:30]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28583,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [07:55:30]process_action_free close_receipt [07:55:30]json_value_free [07:55:30]json_value_free done [07:55:30]process_json_proto returns [07:55:30]Send response to host [07:55:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28583,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [07:55:30]free response buf [07:55:30]execute_script done [07:55:30]execute_script returns [07:55:30]free content buf [07:55:30]Sock 9.Close socket [07:55:30]Sock 9.Thread stoped [07:55:33]OFD Sender: No OFD packet to send [07:55:38]OFD Sender: No OFD packet to send [07:55:43]OFD Sender: No OFD packet to send [07:55:48]OFD Sender: No OFD packet to send [07:55:53]OFD Sender: No OFD packet to send [07:55:58]OFD Sender: No OFD packet to send [07: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:31]accept exits with 7 [07:56:31]New connection [07:56:31]New thread 3066498404 created [07:56:31]Thread 3066641764 joined [07:56:31]Waiting for new connection... [07:56:31] Sock 7.Parse request [07:56:31]Sock 7.Check first char [07:56:31]Sock 7.First char is OK [07:56:31]request: POST /json_proto HTTP/1.0 [07:56:31]Method: POST [07:56:31]URL: /json_proto [07:56:31]Method is POST - this is cgi request [07:56:31]url: /json_proto [07:56:31]query_string will be loaded in cgi processing [07:56:31]execute_cgi json_proto POST (null) [07:56:31]execute_cgi path=json_proto method=POST [07:56:31]POST find Content-Length [07:56:31]Host: 172.17.33.3:8080 [07:56:31]Content-Length: 678 [07:56:31]Content-Type: application/json [07:56:31] [07:56:31]POST finish read [07:56:31]Found Content-Length = 678 [07:56:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346894", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.50, "quantity" : 2.850, "sum" : 206.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 206.00, "payments": [ { "type": 0, "sum" : 206.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:56:31]execute_script... [07:56: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)346894", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.50, "quantity" : 2.850, "sum" : 206.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 206.00, "payments": [ { "type": 0, "sum" : 206.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:56:31]POST & json_proto [07:56:31]process_json_proto [07:56:31]json parsed OK: [07:56:31]protocol is kg_v1.0 [07:56:31]action value=close_receipt [07:56:31]process_action close_receipt [07:56:31]cmd_close_receipt [07:56:31]MH_GetDate [07:56:31]Write to MH i2c: F0 00 00 6A 60 B9 [07:56:31]Write i2c OK [07:56:31]MH_I2C_Read... [07:56:31]Read from MH i2c: F0 [07:56:31]MH_I2C_Read... [07:56:31]Read from MH i2c: F0 09 00 [07:56:31]MH_I2C_Read... [07:56:31]Read from MH i2c: F0 09 00 6A 60 00 37 E9 18 66 23 5B 8F 65 D2 [07:56:31]GetLastDocTimeStamp 1712908533 [07:56:31]current date 1712908599 [07:56:31]FM_GetShiftState [07:56:31]SAM_PROTO_GetShiftState [07:56:31]wFMCommunicate request_size=4 [07:56:31]MH_SAM_APDU [07:56:31]CAPDU: 80 13 01 00 [07:56:31]Write to MH i2c: E2 08 00 6B 60 80 13 01 00 00 00 00 00 48 [07:56:31]Write i2c OK [07:56:31]MH_I2C_Read... [07:56:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:56:32]Read from MH i2c: E2 [07:56:32]MH_I2C_Read... [07:56:32]Read from MH i2c: E2 0E 00 [07:56:32]MH_I2C_Read... [07:56:32]Read from MH i2c: E2 0E 00 6B 60 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 59 [07:56:32]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [07:56:32]wFMCommunicate OK [07:56:32]SAM_PROTO_GetShiftState done [07:56:32]FM_GetShiftState done [07:56:32]opened in 1712881416 [07:56:32]opened+sec_in_day 1712967816 [07:56:32]quantity*price = 20662 [07:56:32]sum+1 = 20664 [07:56:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 206.00 Внесено: 1000.00 СДАЧА: 794.00 НСП 1% : 1.83 НДС 12% : 21.94 Наличными: 206.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 33 12.04.2024 07:56 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28584 ФПД: 245756634843429 1/tax-web-control/client/api/v1/ticket?date=20240412T075639&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28584&fm=245756634843429&tin=02508201610067®Number=0000138879044617&sum=20600 [07:56:33]StoreToDocumentArchive [07:56:33]shift 113 fd 28584 [07:56:33]save to /storage/0113/doc_00028584 [07:56:33]save last doc name /storage/0113/doc_00028584 to /storage/kkm_last_doc_name [07:56:33]save OK [07:56:33]Clear old archive folders... [07:56:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:56:33]tlvbuf is 01AD7A90 [07:56:33]SAM_PROTO_ClearQueue [07:56:33]wFMCommunicate request_size=4 [07:56:33]MH_SAM_APDU [07:56:33]CAPDU: 80 09 00 00 [07:56:33]Write to MH i2c: E2 08 00 78 60 80 09 00 00 00 00 00 00 4A [07:56:33]Write i2c OK [07:56:33]MH_I2C_Read... [07:56:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:56:33]Read from MH i2c: E2 [07:56:33]MH_I2C_Read... [07:56:33]Read from MH i2c: E2 03 00 [07:56:33]MH_I2C_Read... [07:56:33]Read from MH i2c: E2 03 00 78 60 00 90 00 4C [07:56:33]RAPDU: 90 00 [07:56:33]wFMCommunicate OK [07:56:33]SAM_PROTO_ClearQueue done [07:56:33]KKMCreateOFDPacket [07:56:33]OFDProtocolAddRootSTLVToBuf [07:56:33]FM_MakeSignedData [07:56:33]FM_MakeSignedData [07:56:33]SAM_PROTO_SignData [07:56:33]wFMCommunicate request_size=4 [07:56:33]MH_SAM_APDU [07:56:33]CAPDU: 80 0D 01 02 [07:56:33]Write to MH i2c: E2 08 00 79 60 80 0D 01 02 00 00 00 00 52 [07:56:33]Write i2c OK [07:56:33]MH_I2C_Read... [07:56:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:56:33]Read from MH i2c: E2 [07:56:33]MH_I2C_Read... [07:56:33]Read from MH i2c: E2 03 00 [07:56:33]MH_I2C_Read... [07:56:33]Read from MH i2c: E2 03 00 79 60 00 90 00 4D [07:56:33]RAPDU: 90 00 [07:56:33]wFMCommunicate OK [07:56:33]wFMCommunicate request_size=255 [07:56:33]MH_SAM_APDU [07:56: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 35 FF 03 08 00 03 22 0B 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 B7 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 08 00 00 00 00 07 04 06 00 78 50 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 37 E9 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A8 6F 00 00 35 04 06 00 DF [07:56:33]Write to MH i2c: E2 02 01 7A 60 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 22 0B 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 B7 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 08 00 00 00 00 07 04 06 00 78 50 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 37 E9 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A8 6F 00 00 35 04 06 00 DF 00 00 26 [07:56:33]Write i2c OK [07:56:33]MH_I2C_Read... [07:56:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:56:33]Read from MH i2c: E2 [07:56:33]MH_I2C_Read... [07:56:33]Read from MH i2c: E2 03 00 [07:56:33]MH_I2C_Read... [07:56:33]Read from MH i2c: E2 03 00 7A 60 00 90 00 4E [07:56:33]RAPDU: 90 00 [07:56:33]wFMCommunicate OK [07:56:33]wFMCommunicate request_size=10 [07:56:33]MH_SAM_APDU [07:56:33]CAPDU: 80 0D 02 02 05 83 AC EB C9 25 [07:56:33]Write to MH i2c: E2 0D 00 7B 60 80 0D 02 02 05 00 83 AC EB C9 25 00 00 67 [07:56:33]Write i2c OK [07:56:33]MH_I2C_Read... [07:56:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:56:33]Read from MH i2c: E2 [07:56:33]MH_I2C_Read... [07:56:33]Read from MH i2c: E2 03 00 [07:56:33]MH_I2C_Read... [07:56:33]Read from MH i2c: E2 03 00 7B 60 00 90 00 4F [07:56:33]RAPDU: 90 00 [07:56:33]wFMCommunicate OK [07:56:33]wFMCommunicate request_size=4 [07:56:33]MH_SAM_APDU [07:56:33]CAPDU: 80 0D 03 02 [07:56:33]Write to MH i2c: E2 08 00 7C 60 80 0D 03 02 00 00 00 00 57 [07:56:33]Write i2c OK [07:56:33]MH_I2C_Read... [07:56:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:56:33]Read from MH i2c: E2 [07:56:33]MH_I2C_Read... [07:56:33]Read from MH i2c: E2 0B 00 [07:56:33]MH_I2C_Read... [07:56:33]Read from MH i2c: E2 0B 00 7C 60 00 3B CD E2 B8 D8 3D BC C2 90 00 8D [07:56:33]RAPDU: 3B CD E2 B8 D8 3D BC C2 90 00 [07:56:33]wFMCommunicate OK [07:56:33]SAM_PROTO_SignData done [07:56:33]FM_MakeSignedData done [07:56:33]CreateOFDProtocolMessage [07:56:33]wFMCommunicate request_size=4 [07:56:33]MH_SAM_APDU [07:56:33]CAPDU: 80 11 00 00 [07:56:33]Write to MH i2c: E2 08 00 7D 60 80 11 00 00 00 00 00 00 57 [07:56:33]Write i2c OK [07:56:33]MH_I2C_Read... [07:56:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:56:33]Read from MH i2c: E2 [07:56:33]MH_I2C_Read... [07:56:33]Read from MH i2c: E2 17 00 [07:56:33]MH_I2C_Read... [07:56:33]Read from MH i2c: E2 17 00 7D 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 A6 [07:56:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:56:33]wFMCommunicate OK [07:56:33]CreateOFDProtocolMessage done [07:56:33]OFDSenderStorePacket 28584 [07:56:33]StoreOFDPacket docnum=28584 [07:56:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 D7 B1 07 01 B6 FB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 22 0B 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 B7 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 08 00 00 00 00 07 04 06 00 78 50 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 37 E9 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A8 6F 00 00 35 04 06 00 DF 83 AC EB C9 25 3B CD E2 B8 D8 3D BC C2 [07:56:33]CheckFolder [07:56:33]dirname=/storage/ofd_packets [07:56:33]CheckFolder done [07:56:33]ProducePacketName [07:56:33]name=ofd_packets/00028584 [07:56:33]NVStorageSaveData ofd_packets/00028584 [07:56:33]File name is /storage/ofd_packets/00028584 [07:56:33]Write 301 bytes [07:56:33]NVStorageSaveData done [07:56:33]OFDSenderStorePacket done [07:56:33]KKMCreateOFDPacket done [07:56:33]NVStorageSaveData kkm_last_timestamp [07:56:33]File name is /storage/kkm_last_timestamp [07:56:33]Write 4 bytes [07:56:33]NVStorageSaveData done [07:56:33]ExternCall_PrintAddStr [07:56:33]wPrintStart [07:56:33]Write to MH i2c: 01 00 00 7E 60 DE [07:56:33]Write i2c OK [07:56:33]MH_I2C_Read... [07:56:33]Read from MH i2c: 01 [07:56:33]MH_I2C_Read... [07:56:33]Read from MH i2c: 01 07 00 [07:56:33]MH_I2C_Read... [07:56:33]Read from MH i2c: 01 07 00 7E 60 00 00 00 00 00 FF 0F F3 [07:56:33]RasterBufferAndPrint [07:56:33]line Счет N : (1)346894 [07:56:33]line ИНН: 02508201610067 [07:56:33]line Контрольно-Кассовый Чек [07:56:33]line ПРОДАЖА [07:56:33]line ТРК (МРК, ГНК) : 33 [07:56:33]line Товар: 2710124500 [07:56:33]line Аи-95-К-5 [07:56:33]line 2.850 * 72.50 [07:56:33]line = 206.63 [07:56:33]line НДС 12% НСП 1% [07:56:33]line > о реализуемом товаре [07:56:33]line ОКРУГЛЕНИЕ: -0.63 [07:56:33]line ИТОГО: 206.00 [07:56:33]line Внесено: 1000.00 [07:56:33]line СДАЧА: 794.00 [07:56:33]line НСП 1% : 1.83 [07:56:33]line НДС 12% : 21.94 [07:56:33]line Наличными: 206.00 [07:56:33]line Безнал.: 0.00 [07:56:33]line Место: АЗС № 108 "Партнер Нефть" [07:56:33]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [07:56:33]line СНО: Общий режим [07:56:33]line Чек 33 12.04.2024 07:56 [07:56:33]line Смена: 113 ФФД: 1.0 [07:56:33]line ЗНМ: 0300000027 [07:56:33]line РНМ: 0000138879044617 [07:56:33]line Версия ККМ: 001 [07:56:33]line ФМ: 0000000000963154 [07:56:33]line ФД: 28584 [07:56:33]line ФПД: 245756634843429 [07:56:33]line 1/tax-web-control/client/api/v1/ticket?date=20240412T075639&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28584&fm=245756634843429&tin=02508201610067®Number=0000138879044617&sum=20600 [07:56:33]OFD Sender: Processing packet 28584 [packets to send 8, broken 7] [07:56:33]ProducePacketName [07:56:33]name=ofd_packets/00028584 [07:56:33]OFD Sender: To server: pG, [07:56:33]CommunicateWithHost lk.salyk.kg:30040 [07:56:34]ConnectInit lk.salyk.kg [07:56:34]written 0, free lines is 4095 [07:56:34]Connected sock=10 [07:56:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 D7 B1 07 01 B6 FB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 22 0B 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 B7 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 08 00 00 00 00 07 04 06 00 78 50 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 37 E9 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A8 6F 00 00 35 04 06 00 DF 83 AC EB C9 25 3B CD E2 B8 D8 3D BC C2 [07:56:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 20 9D 47 00 DA 8B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A8 6F 00 00 F4 03 04 00 E1 93 18 66 B6 04 01 00 00 72 9A 69 50 F3 49 84 34 [07:56:34]CommunicateWithHost err = 0 [07:56:34]CheckOFDResponse [07:56:34]1017 (14) - 77093643461234 [07:56:34]1041 (16) - 0000000000963154 [07:56:34]1040 (4) - 28584 [07:56:34]1012 (4) - 12.04.2024 01:52 [07:56:34]1206 (1) - 0 [07:56:34]OFD Sender: Remove packet 28584 [07:56:34]ProducePacketName [07:56:34]name=ofd_packets/00028584 [07:56:34]NVStorageDeleteData [07:56:34]Write to MH i2c: 01 00 00 A8 60 08 [07:56:34]Write i2c OK [07:56:34]MH_I2C_Read... [07:56:34]Read from MH i2c: 01 [07:56:34]MH_I2C_Read... [07:56:34]Read from MH i2c: 01 07 00 [07:56:34]MH_I2C_Read... [07:56:34]Read from MH i2c: 01 07 00 A8 60 00 00 00 00 00 CE 0C E9 [07:56:34]RasterBufferAndPrint [07:56:34]line [07:56:34]line [07:56:34]line [07:56:34]line [07:56:34]line [07:56:34]written 0, free lines is 3284 [07:56:34]MH_Cut [07:56:34]Write to MH i2c: D1 01 00 AF 60 01 E1 [07:56:34]Write i2c OK [07:56:34]MH_I2C_Read... [07:56:34]Read from MH i2c: D1 [07:56:34]MH_I2C_Read... [07:56:34]Read from MH i2c: D1 01 00 [07:56:34]MH_I2C_Read... [07:56:34]Read from MH i2c: D1 01 00 AF 60 00 E0 [07:56:34]Write to MH i2c: 01 00 00 B0 60 10 [07:56:34]Write i2c OK [07:56:34]MH_I2C_Read... [07:56:34]OFD Sender: No OFD packet to send [07:56:35]*** Cut start [07:56:35]*** Partial cut [07:56:35]*** CUTSNS_PIN = 1 [07:56:35]*** CUTSNS_PIN = 0 [07:56:35]*** Brake cut motor [07:56:35]Read from MH i2c: 01 [07:56:35]MH_I2C_Read... [07:56:35]*** Stop cut motor [07:56:35]*** Cut end [07:56:35]Read from MH i2c: 01 07 00 [07:56:35]MH_I2C_Read... [07:56:35]Read from MH i2c: 01 07 00 B0 60 00 00 00 00 00 FF 0F 25 [07:56:35]process_action close_receipt done [07:56:35]requested_data is exist [07:56:35]produce_requested_data [07:56:35]requested_item fm.sn is exist - process it [07:56:35]wFMCommunicate request_size=4 [07:56:35]MH_SAM_APDU [07:56:35]CAPDU: 80 11 00 00 [07:56:35]Write to MH i2c: E2 08 00 B1 60 80 11 00 00 00 00 00 00 8B [07:56:35]Write i2c OK [07:56:35]MH_I2C_Read... [07:56:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:56:35]Read from MH i2c: E2 [07:56:35]MH_I2C_Read... [07:56:35]Read from MH i2c: E2 17 00 [07:56:35]MH_I2C_Read... [07:56:35]Read from MH i2c: E2 17 00 B1 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 DA [07:56:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:56:35]wFMCommunicate OK [07:56:35]requested_item fd.num is exist - process it [07:56:35]SAM_PROTO_GetFieldsCounters [07:56:35]wFMCommunicate request_size=4 [07:56:35]MH_SAM_APDU [07:56:35]CAPDU: 80 13 00 00 [07:56:35]Write to MH i2c: E2 08 00 B2 60 80 13 00 00 00 00 00 00 8E [07:56:35]Write i2c OK [07:56:35]MH_I2C_Read... [07:56:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:56:36]Read from MH i2c: E2 [07:56:36]MH_I2C_Read... [07:56:36]Read from MH i2c: E2 62 00 [07:56:36]MH_I2C_Read... [07:56:36]Read from MH i2c: E2 62 00 B2 60 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A8 6F 00 00 0E 04 04 00 71 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 B7 [07:56:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A8 6F 00 00 0E 04 04 00 71 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 [07:56:36]wFMCommunicate OK [07:56:36]SAM_PROTO_GetFieldsCounters done [07:56:36]requested_item shift.num is exist - process it [07:56:36]requested_item shift.opened is exist - process it [07:56:36]req_shift_opened [07:56:36]FM_GetShiftState [07:56:36]SAM_PROTO_GetShiftState [07:56:36]wFMCommunicate request_size=4 [07:56:36]MH_SAM_APDU [07:56:36]CAPDU: 80 13 01 00 [07:56:36]Write to MH i2c: E2 08 00 B3 60 80 13 01 00 00 00 00 00 90 [07:56:36]Write i2c OK [07:56:36]MH_I2C_Read... [07:56:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:56:36]Read from MH i2c: E2 [07:56:36]MH_I2C_Read... [07:56:36]Read from MH i2c: E2 0E 00 [07:56:36]MH_I2C_Read... [07:56:36]Read from MH i2c: E2 0E 00 B3 60 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 A1 [07:56:36]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [07:56:36]wFMCommunicate OK [07:56:36]SAM_PROTO_GetShiftState done [07:56:36]FM_GetShiftState done [07:56:36]req_shift_opened done [07:56:36]requested_item shift.open_date is exist - process it [07:56:36]req_shift_open_date [07:56:36]req_shift_open_date done [07:56:36]produce_requested_data done [07:56:36]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28584,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [07:56:36]process_action_free close_receipt [07:56:36]json_value_free [07:56:36]json_value_free done [07:56:36]process_json_proto returns [07:56:36]Send response to host [07:56:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28584,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [07:56:36]free response buf [07:56:36]execute_script done [07:56:36]execute_script returns [07:56:36]free content buf [07:56:36]Sock 7.Close socket [07:56:36]Sock 7.Thread stoped [07:56:36]accept exits with 9 [07:56:36]New connection [07:56:36]New thread 3066641764 created [07:56:36]Thread 3066498404 joined [07:56:36]Waiting for new connection... [07:56:36] Sock 9.Parse request [07:56:36]Sock 9.Check first char [07:56:36]Sock 9.First char is OK [07:56:36]request: POST /json_proto HTTP/1.0 [07:56:36]Method: POST [07:56:36]URL: /json_proto [07:56:36]Method is POST - this is cgi request [07:56:36]url: /json_proto [07:56:36]query_string will be loaded in cgi processing [07:56:36]execute_cgi json_proto POST (null) [07:56:36]execute_cgi path=json_proto method=POST [07:56:36]POST find Content-Length [07:56:36]Host: 172.17.33.3:8080 [07:56:36]Content-Length: 840 [07:56:36]Content-Type: application/json [07:56:36] [07:56:36]POST finish read [07:56:36]Found Content-Length = 840 [07:56:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346893", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 20.780, "sum" : 1504.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1504.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:56:36]execute_script... [07:56: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)346893", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 20.780, "sum" : 1504.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1504.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:56:36]POST & json_proto [07:56:36]process_json_proto [07:56:36]json parsed OK: [07:56:36]protocol is kg_v1.0 [07:56:36]action value=close_receipt [07:56:36]process_action close_receipt [07:56:36]cmd_close_receipt [07:56:36]MH_GetDate [07:56:36]Write to MH i2c: F0 00 00 B4 60 03 [07:56:36]Write i2c OK [07:56:36]MH_I2C_Read... [07:56:36]Read from MH i2c: F0 [07:56:36]MH_I2C_Read... [07:56:36]Read from MH i2c: F0 09 00 [07:56:36]MH_I2C_Read... [07:56:36]Read from MH i2c: F0 09 00 B4 60 00 3C E9 18 66 23 5B 8F 65 21 [07:56:36]GetLastDocTimeStamp 1712908599 [07:56:36]current date 1712908604 [07:56:36]FM_GetShiftState [07:56:36]SAM_PROTO_GetShiftState [07:56:36]wFMCommunicate request_size=4 [07:56:36]MH_SAM_APDU [07:56:36]CAPDU: 80 13 01 00 [07:56:36]Write to MH i2c: E2 08 00 B5 60 80 13 01 00 00 00 00 00 92 [07:56:36]Write i2c OK [07:56:36]MH_I2C_Read... [07:56:37]Read from MH i2c: E2 [07:56:37]MH_I2C_Read... [07:56:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:56:37]Read from MH i2c: E2 0E 00 [07:56:37]MH_I2C_Read... [07:56:37]Read from MH i2c: E2 0E 00 B5 60 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 A3 [07:56:37]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [07:56:37]wFMCommunicate OK [07:56:37]SAM_PROTO_GetShiftState done [07:56:37]FM_GetShiftState done [07:56:37]opened in 1712881416 [07:56:37]opened+sec_in_day 1712967816 [07:56:37]quantity*price = 150447 [07:56:37]sum+1 = 150448 [07:56:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1504.47 НСП 1% : 13.31 НДС 12% : 159.77 Наличными: 0.00 Безнал.: 1504.47 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 34 12.04.2024 07:56 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 28585 ФПД: 82718338962372 1/tax-web-control/client/api/v1/ticket?date=20240412T075644&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28585&fm=82718338962372&tin=02508201610067®Number=0000138879044617&sum=150447 [07:56:38]StoreToDocumentArchive [07:56:38]shift 113 fd 28585 [07:56:38]save to /storage/0113/doc_00028585 [07:56:38]save last doc name /storage/0113/doc_00028585 to /storage/kkm_last_doc_name [07:56:38]save OK [07:56:38]Clear old archive folders... [07:56:38]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:56:38]tlvbuf is 01AD4750 [07:56:38]SAM_PROTO_ClearQueue [07:56:38]wFMCommunicate request_size=4 [07:56:38]MH_SAM_APDU [07:56:38]CAPDU: 80 09 00 00 [07:56:38]Write to MH i2c: E2 08 00 C2 60 80 09 00 00 00 00 00 00 94 [07:56:38]Write i2c OK [07:56:38]MH_I2C_Read... [07:56:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:56:38]Read from MH i2c: E2 [07:56:38]MH_I2C_Read... [07:56:38]Read from MH i2c: E2 03 00 [07:56:38]MH_I2C_Read... [07:56:38]Read from MH i2c: E2 03 00 C2 60 00 90 00 96 [07:56:38]RAPDU: 90 00 [07:56:38]wFMCommunicate OK [07:56:38]SAM_PROTO_ClearQueue done [07:56:38]KKMCreateOFDPacket [07:56:38]OFDProtocolAddRootSTLVToBuf [07:56:38]FM_MakeSignedData [07:56:38]FM_MakeSignedData [07:56:38]SAM_PROTO_SignData [07:56:38]wFMCommunicate request_size=4 [07:56:38]MH_SAM_APDU [07:56:38]CAPDU: 80 0D 01 02 [07:56:38]Write to MH i2c: E2 08 00 C3 60 80 0D 01 02 00 00 00 00 9C [07:56:38]Write i2c OK [07:56:38]MH_I2C_Read... [07:56:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:56:38]Read from MH i2c: E2 [07:56:38]MH_I2C_Read... [07:56:38]Read from MH i2c: E2 03 00 [07:56:38]MH_I2C_Read... [07:56:38]Read from MH i2c: E2 03 00 C3 60 00 90 00 97 [07:56:38]RAPDU: 90 00 [07:56:38]wFMCommunicate OK [07:56:38]wFMCommunicate request_size=255 [07:56:38]MH_SAM_APDU [07:56:38]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2C 51 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 AF 4B 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AF 4B 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AF 4B 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 3C E9 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A9 6F 00 00 35 04 06 00 4B 3B 5D 35 [07:56:38]Write to MH i2c: E2 02 01 C4 60 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2C 51 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 AF 4B 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AF 4B 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AF 4B 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 3C E9 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A9 6F 00 00 35 04 06 00 4B 3B 5D 35 00 00 30 [07:56:38]Write i2c OK [07:56:38]MH_I2C_Read... [07:56:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:56:38]Read from MH i2c: E2 [07:56:38]MH_I2C_Read... [07:56:38]Read from MH i2c: E2 03 00 [07:56:38]MH_I2C_Read... [07:56:38]Read from MH i2c: E2 03 00 C4 60 00 90 00 98 [07:56:38]RAPDU: 90 00 [07:56:38]wFMCommunicate OK [07:56:38]wFMCommunicate request_size=7 [07:56:38]MH_SAM_APDU [07:56:38]CAPDU: 80 0D 02 02 02 D3 C4 [07:56:38]Write to MH i2c: E2 0A 00 C5 60 80 0D 02 02 02 00 D3 C4 00 00 3A [07:56:39]Write i2c OK [07:56:39]MH_I2C_Read... [07:56:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:56:39]Read from MH i2c: E2 [07:56:39]MH_I2C_Read... [07:56:39]Read from MH i2c: E2 03 00 [07:56:39]MH_I2C_Read... [07:56:39]Read from MH i2c: E2 03 00 C5 60 00 90 00 99 [07:56:39]RAPDU: 90 00 [07:56:39]wFMCommunicate OK [07:56:39]wFMCommunicate request_size=4 [07:56:39]MH_SAM_APDU [07:56:39]CAPDU: 80 0D 03 02 [07:56:39]Write to MH i2c: E2 08 00 C6 60 80 0D 03 02 00 00 00 00 A1 [07:56:39]Write i2c OK [07:56:39]MH_I2C_Read... [07:56:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:56:39]Read from MH i2c: E2 [07:56:39]MH_I2C_Read... [07:56:39]Read from MH i2c: E2 0B 00 [07:56:39]MH_I2C_Read... [07:56:39]Read from MH i2c: E2 0B 00 C6 60 00 B1 C9 D3 14 B3 C6 42 2D 90 00 EB [07:56:39]RAPDU: B1 C9 D3 14 B3 C6 42 2D 90 00 [07:56:39]wFMCommunicate OK [07:56:39]SAM_PROTO_SignData done [07:56:39]FM_MakeSignedData done [07:56:39]CreateOFDProtocolMessage [07:56:39]wFMCommunicate request_size=4 [07:56:39]MH_SAM_APDU [07:56:39]CAPDU: 80 11 00 00 [07:56:39]Write to MH i2c: E2 08 00 C7 60 80 11 00 00 00 00 00 00 A1 [07:56:39]Write i2c OK [07:56:39]MH_I2C_Read... [07:56:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:56:39]Read from MH i2c: E2 [07:56:39]MH_I2C_Read... [07:56:39]Read from MH i2c: E2 17 00 [07:56:39]MH_I2C_Read... [07:56:39]Read from MH i2c: E2 17 00 C7 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 F0 [07:56:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:56:39]wFMCommunicate OK [07:56:39]CreateOFDProtocolMessage done [07:56:39]OFDSenderStorePacket 28585 [07:56:39]StoreOFDPacket docnum=28585 [07:56:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 29 6E 04 01 AC 5F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2C 51 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 AF 4B 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AF 4B 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AF 4B 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 3C E9 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A9 6F 00 00 35 04 06 00 4B 3B 5D 35 D3 C4 B1 C9 D3 14 B3 C6 42 2D [07:56:39]CheckFolder [07:56:39]dirname=/storage/ofd_packets [07:56:39]CheckFolder done [07:56:39]ProducePacketName [07:56:39]name=ofd_packets/00028585 [07:56:39]NVStorageSaveData ofd_packets/00028585 [07:56:39]File name is /storage/ofd_packets/00028585 [07:56:39]Write 298 bytes [07:56:39]NVStorageSaveData done [07:56:39]OFDSenderStorePacket done [07:56:39]KKMCreateOFDPacket done [07:56:39]NVStorageSaveData kkm_last_timestamp [07:56:39]File name is /storage/kkm_last_timestamp [07:56:39]Write 4 bytes [07:56:39]NVStorageSaveData done [07:56:39]ExternCall_PrintAddStr [07:56:39]wPrintStart [07:56:39]Write to MH i2c: 01 00 00 C8 60 28 [07:56:39]Write i2c OK [07:56:39]MH_I2C_Read... [07:56:39]Read from MH i2c: 01 [07:56:39]MH_I2C_Read... [07:56:39]Read from MH i2c: 01 07 00 [07:56:39]MH_I2C_Read... [07:56:39]Read from MH i2c: 01 07 00 C8 60 00 00 00 00 00 FF 0F 3D [07:56:39]RasterBufferAndPrint [07:56:39]line Счет N : (1)346893 [07:56:39]line ИНН: 02508201610067 [07:56:39]line Контрольно-Кассовый Чек [07:56:39]line ПРОДАЖА [07:56:39]line ТРК (МРК, ГНК) : 21 [07:56:39]line Товар: 2710194210 [07:56:39]line ДТ-К-5 [07:56:39]line 20.780 * 72.40 [07:56:39]line = 1504.47 [07:56:39]line НДС 12% НСП 1% [07:56:39]line > о реализуемом товаре [07:56:39]line ИТОГО: 1504.47 [07:56:39]line НСП 1% : 13.31 [07:56:39]line НДС 12% : 159.77 [07:56:39]line Наличными: 0.00 [07:56:39]line Безнал.: 1504.47 [07:56:39]line Место: АЗС № 108 "Партнер Нефть" [07:56:39]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [07:56:39]line СНО: Общий режим [07:56:39]line Чек 34 12.04.2024 07:56 [07:56:39]line Смена: 113 ФФД: 1.0 [07:56:39]line ЗНМ: 0300000027 [07:56:39]line РНМ: 0000138879044617 [07:56:39]line Версия ККМ: 001 [07:56:39]line Платежная система: АКБ Кыргызстан [07:56:39]line ФМ: 0000000000963154 [07:56:39]line ФД: 28585 [07:56:39]line ФПД: 82718338962372 [07:56:39]line 1/tax-web-control/client/api/v1/ticket?date=20240412T075644&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28585&fm=82718338962372&tin=02508201610067®Number=0000138879044617&sum=150447 [07:56:39]written 0, free lines is 4095 [07:56:39]OFD Sender: Processing packet 28585 [packets to send 8, broken 7] [07:56:39]ProducePacketName [07:56:39]name=ofd_packets/00028585 [07:56:39]OFD Sender: To server: pG, [07:56:39]CommunicateWithHost lk.salyk.kg:30040 [07:56:39]ConnectInit lk.salyk.kg [07:56:39]Connected sock=10 [07:56:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 29 6E 04 01 AC 5F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2C 51 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 AF 4B 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AF 4B 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AF 4B 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 3C E9 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A9 6F 00 00 35 04 06 00 4B 3B 5D 35 D3 C4 B1 C9 D3 14 B3 C6 42 2D [07:56:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 89 51 47 00 AF D7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A9 6F 00 00 F4 03 04 00 E7 93 18 66 B6 04 01 00 00 6A 80 BA 39 45 DF D8 35 [07:56:39]CommunicateWithHost err = 0 [07:56:39]CheckOFDResponse [07:56:39]1017 (14) - 77093643461234 [07:56:39]1041 (16) - 0000000000963154 [07:56:39]1040 (4) - 28585 [07:56:39]1012 (4) - 12.04.2024 01:52 [07:56:39]1206 (1) - 0 [07:56:39]OFD Sender: Remove packet 28585 [07:56:39]ProducePacketName [07:56:39]name=ofd_packets/00028585 [07:56:39]NVStorageDeleteData [07:56:39]Write to MH i2c: 01 00 00 F1 60 51 [07:56:39]Write i2c OK [07:56:39]MH_I2C_Read... [07:56:39]Read from MH i2c: 01 [07:56:39]MH_I2C_Read... [07:56:39]Read from MH i2c: 01 07 00 [07:56:39]MH_I2C_Read... [07:56:39]Read from MH i2c: 01 07 00 F1 60 00 00 00 00 00 E7 0C 4B [07:56:39]RasterBufferAndPrint [07:56:39]line [07:56:39]line [07:56:39]line [07:56:39]line [07:56:39]line [07:56:39]written 0, free lines is 3316 [07:56:39]MH_Cut [07:56:39]Write to MH i2c: D1 01 00 F8 60 01 2A [07:56:39]Write i2c OK [07:56:39]MH_I2C_Read... [07:56:39]Read from MH i2c: D1 [07:56:39]MH_I2C_Read... [07:56:39]Read from MH i2c: D1 01 00 [07:56:39]MH_I2C_Read... [07:56:39]Read from MH i2c: D1 01 00 F8 60 00 29 [07:56:39]Write to MH i2c: 01 00 00 F9 60 59 [07:56:39]Write i2c OK [07:56:39]MH_I2C_Read... [07:56:40]OFD Sender: No OFD packet to send [07:56:40]*** Cut start [07:56:40]*** Partial cut [07:56:40]*** CUTSNS_PIN = 1 [07:56:40]*** CUTSNS_PIN = 0 [07:56:40]*** Brake cut motor [07:56:41]Read from MH i2c: 01 [07:56:41]*** Stop cut motor [07:56:41]MH_I2C_Read... [07:56:41]*** Cut end [07:56:41]Read from MH i2c: 01 07 00 [07:56:41]MH_I2C_Read... [07:56:41]Read from MH i2c: 01 07 00 F9 60 00 00 00 00 00 FF 0F 6E [07:56:41]process_action close_receipt done [07:56:41]requested_data is exist [07:56:41]produce_requested_data [07:56:41]requested_item fm.sn is exist - process it [07:56:41]wFMCommunicate request_size=4 [07:56:41]MH_SAM_APDU [07:56:41]CAPDU: 80 11 00 00 [07:56:41]Write to MH i2c: E2 08 00 FA 60 80 11 00 00 00 00 00 00 D4 [07:56:41]Write i2c OK [07:56:41]MH_I2C_Read... [07:56:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:56:41]Read from MH i2c: E2 [07:56:41]MH_I2C_Read... [07:56:41]Read from MH i2c: E2 17 00 [07:56:41]MH_I2C_Read... [07:56:41]Read from MH i2c: E2 17 00 FA 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 23 [07:56:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:56:41]wFMCommunicate OK [07:56:41]requested_item fd.num is exist - process it [07:56:41]SAM_PROTO_GetFieldsCounters [07:56:41]wFMCommunicate request_size=4 [07:56:41]MH_SAM_APDU [07:56:41]CAPDU: 80 13 00 00 [07:56:41]Write to MH i2c: E2 08 00 FB 60 80 13 00 00 00 00 00 00 D7 [07:56:41]Write i2c OK [07:56:41]MH_I2C_Read... [07:56:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:56:41]Read from MH i2c: E2 [07:56:41]MH_I2C_Read... [07:56:41]Read from MH i2c: E2 62 00 [07:56:41]MH_I2C_Read... [07:56:41]Read from MH i2c: E2 62 00 FB 60 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A9 6F 00 00 0E 04 04 00 71 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 04 [07:56:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A9 6F 00 00 0E 04 04 00 71 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 [07:56:41]wFMCommunicate OK [07:56:41]SAM_PROTO_GetFieldsCounters done [07:56:41]requested_item shift.num is exist - process it [07:56:41]requested_item shift.opened is exist - process it [07:56:41]req_shift_opened [07:56:41]FM_GetShiftState [07:56:41]SAM_PROTO_GetShiftState [07:56:41]wFMCommunicate request_size=4 [07:56:41]MH_SAM_APDU [07:56:41]CAPDU: 80 13 01 00 [07:56:41]Write to MH i2c: E2 08 00 FC 60 80 13 01 00 00 00 00 00 D9 [07:56:41]Write i2c OK [07:56:41]MH_I2C_Read... [07:56:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:56:41]Read from MH i2c: E2 [07:56:41]MH_I2C_Read... [07:56:41]Read from MH i2c: E2 0E 00 [07:56:41]MH_I2C_Read... [07:56:41]Read from MH i2c: E2 0E 00 FC 60 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 EA [07:56:41]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [07:56:41]wFMCommunicate OK [07:56:41]SAM_PROTO_GetShiftState done [07:56:41]FM_GetShiftState done [07:56:41]req_shift_opened done [07:56:41]requested_item shift.open_date is exist - process it [07:56:41]req_shift_open_date [07:56:41]req_shift_open_date done [07:56:41]produce_requested_data done [07:56:41]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28585,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [07:56:41]process_action_free close_receipt [07:56:41]json_value_free [07:56:41]json_value_free done [07:56:41]process_json_proto returns [07:56:41]Send response to host [07:56:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28585,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [07:56:41]free response buf [07:56:41]execute_script done [07:56:41]execute_script returns [07:56:41]free content buf [07:56:41]Sock 9.Close socket [07:56:41]Sock 9.Thread stoped [07:56:45]OFD Sender: No OFD packet to send [07:56:50]OFD Sender: No OFD packet to send [07:56:55]OFD Sender: No OFD packet to send [07:57:00]OFD Sender: No OFD packet to send [07:57:05]OFD Sender: No OFD packet to send [07:57:10]OFD Sender: No OFD packet to send [07:57:15]OFD Sender: No OFD packet to send [07:57:20]OFD Sender: No OFD packet to send [07:57:25]OFD Sender: No OFD packet to send [07:57:30]OFD Sender: No OFD packet to send [07:57:35]OFD Sender: No OFD packet to send [07:57:40]OFD Sender: No OFD packet to send [07:57:45]OFD Sender: No OFD packet to send [07:57:50]OFD Sender: No OFD packet to send [07:57:55]OFD Sender: No OFD packet to send [07:58:00]OFD Sender: No OFD packet to send [07:58:05]OFD Sender: No OFD packet to send [07:58:10]OFD Sender: No OFD packet to send [07:58:15]OFD Sender: No OFD packet to send [07:58:20]OFD Sender: No OFD packet to send [07:58:25]OFD Sender: No OFD packet to send [07:58:30]OFD Sender: No OFD packet to send [07:58:35]OFD Sender: No OFD packet to send [07:58:40]OFD Sender: No OFD packet to send [07:58:45]OFD Sender: No OFD packet to send [07:58:50]OFD Sender: No OFD packet to send [07:58:55]OFD Sender: No OFD packet to send [07:59:00]OFD Sender: No OFD packet to send [07:59:05]OFD Sender: No OFD packet to send [07:59:10]OFD Sender: No OFD packet to send [07:59:15]OFD Sender: No OFD packet to send [07:59:20]OFD Sender: No OFD packet to send [07:59:25]OFD Sender: No OFD packet to send [07:59:30]OFD Sender: No OFD packet to send [07:59:35]OFD Sender: No OFD packet to send [07:59:40]OFD Sender: No OFD packet to send [07:59:45]OFD Sender: No OFD packet to send [07:59:50]OFD Sender: No OFD packet to send [07:59:55]OFD Sender: No OFD packet to send [07:59:59]accept exits with 7 [07:59:59]New connection [07:59:59]New thread 3066498404 created [07:59:59]Thread 3066641764 joined [07:59:59]Waiting for new connection... [07:59:59] Sock 7.Parse request [07:59:59]Sock 7.Check first char [07:59:59]Sock 7.First char is OK [07:59:59]request: POST /json_proto HTTP/1.0 [07:59:59]Method: POST [07:59:59]URL: /json_proto [07:59:59]Method is POST - this is cgi request [07:59:59]url: /json_proto [07:59:59]query_string will be loaded in cgi processing [07:59:59]execute_cgi json_proto POST (null) [07:59:59]execute_cgi path=json_proto method=POST [07:59:59]POST find Content-Length [07:59:59]Host: 172.17.33.3:8080 [07:59:59]Content-Length: 1213 [07:59:59]Content-Type: application/json [07:59:59] [07:59:59]POST finish read [07:59:59]Found Content-Length = 1213 [07:59:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)346895\u000A12.04.2024 07:41\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 13\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 50.000 x 64.30\u000A\u0418\u0422\u041E\u0413: 3215.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53402\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:59:59]execute_script... [07:59:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)346895\u000A12.04.2024 07:41\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 13\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 50.000 x 64.30\u000A\u0418\u0422\u041E\u0413: 3215.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53402\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:59:59]POST & json_proto [07:59:59]process_json_proto [07:59:59]json parsed OK: [07:59:59]protocol is kg_v1.0 [07:59:59]action value=print_text [07:59:59]process_action print_text [07:59:59]cmd_print_text [07:59:59]ExternCall_PrintAddStr [07:59:59]wPrintStart [07:59:59]Write to MH i2c: 01 00 00 FD 60 5D [07:59:59]Write i2c OK [07:59:59]MH_I2C_Read... [07:59:59]Read from MH i2c: 01 [07:59:59]MH_I2C_Read... [07:59:59]Read from MH i2c: 01 07 00 [07:59:59]MH_I2C_Read... [07:59:59]Read from MH i2c: 01 07 00 FD 60 00 00 00 00 00 FF 0F 72 [07:59:59]RasterBufferAndPrint [07:59:59]line *****ТОВАРНЫЙ ЧЕК***** [07:59:59]line АЗС 108 [07:59:59]line Партнер нефть [07:59:59]line 02508201610067 [07:59:59]line Кассир : Джумагулова Н. [07:59:59]line Счет N : (1)346895 [07:59:59]line 12.04.2024 07:41 [07:59:59]line ПРОДАЖА [07:59:59]line ТРК (МРК, ГНК): 13 [07:59:59]line Вид ГСМ : 2710124130 [07:59:59]line Аи-92-К-5 [07:59:59]line 50.000 x 64.30 [07:59:59]line ИТОГ: 3215.00 [07:59:59]line Тип оплаты: Талоны: Топливная Карта [07:59:59]line 53402 [07:59:59]line ______________________ [07:59:59]line (подпись) [07:59:59]written 0, free lines is 4095 [07:59:59]Write to MH i2c: 01 00 00 12 61 73 [07:59:59]Write i2c OK [07:59:59]MH_I2C_Read... [07:59:59]Read from MH i2c: 01 [07:59:59]MH_I2C_Read... [07:59:59]Read from MH i2c: 01 07 00 [07:59:59]MH_I2C_Read... [07:59:59]Read from MH i2c: 01 07 00 12 61 00 00 00 00 00 F6 0D 7D [07:59:59]RasterBufferAndPrint [07:59:59]line [07:59:59]line [07:59:59]line [07:59:59]line [07:59:59]line [07:59:59]written 0, free lines is 3576 [07:59:59]MH_Cut [07:59:59]Write to MH i2c: D1 01 00 19 61 01 4C [07:59:59]Write i2c OK [07:59:59]MH_I2C_Read... [07:59:59]Read from MH i2c: D1 [07:59:59]MH_I2C_Read... [07:59:59]Read from MH i2c: D1 01 00 [07:59:59]MH_I2C_Read... [07:59:59]Read from MH i2c: D1 01 00 19 61 00 4B [07:59:59]Write to MH i2c: 01 00 00 1A 61 7B [07:59:59]Write i2c OK [07:59:59]MH_I2C_Read... [08:00:00]*** Cut start [08:00:00]*** Partial cut [08:00:00]*** CUTSNS_PIN = 1 [08:00:00]OFD Sender: No OFD packet to send [08:00:00]*** CUTSNS_PIN = 0 [08:00:00]*** Brake cut motor [08:00:00]Read from MH i2c: 01 [08:00:00]MH_I2C_Read... [08:00:00]*** Stop cut motor [08:00:00]*** Cut end [08:00:00]Read from MH i2c: 01 07 00 [08:00:00]MH_I2C_Read... [08:00:00]Read from MH i2c: 01 07 00 1A 61 00 00 00 00 00 FF 0F 90 [08:00:00]process_action print_text done [08:00:00]requested_data is exist [08:00:00]produce_requested_data [08:00:00]requested_item fm.sn is exist - process it [08:00:00]wFMCommunicate request_size=4 [08:00:00]MH_SAM_APDU [08:00:00]CAPDU: 80 11 00 00 [08:00:00]Write to MH i2c: E2 08 00 1B 61 80 11 00 00 00 00 00 00 F6 [08:00:00]Write i2c OK [08:00:00]MH_I2C_Read... [08:00:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:00:00]Read from MH i2c: E2 [08:00:00]MH_I2C_Read... [08:00:00]Read from MH i2c: E2 17 00 [08:00:00]MH_I2C_Read... [08:00:00]Read from MH i2c: E2 17 00 1B 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 45 [08:00:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:00:00]wFMCommunicate OK [08:00:00]requested_item fd.num is exist - process it [08:00:00]SAM_PROTO_GetFieldsCounters [08:00:00]wFMCommunicate request_size=4 [08:00:00]MH_SAM_APDU [08:00:00]CAPDU: 80 13 00 00 [08:00:00]Write to MH i2c: E2 08 00 1C 61 80 13 00 00 00 00 00 00 F9 [08:00:00]Write i2c OK [08:00:00]MH_I2C_Read... [08:00:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:00:00]Read from MH i2c: E2 [08:00:00]MH_I2C_Read... [08:00:00]Read from MH i2c: E2 62 00 [08:00:00]MH_I2C_Read... [08:00:00]Read from MH i2c: E2 62 00 1C 61 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A9 6F 00 00 0E 04 04 00 71 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 26 [08:00:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A9 6F 00 00 0E 04 04 00 71 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:00:00]wFMCommunicate OK [08:00:00]SAM_PROTO_GetFieldsCounters done [08:00:00]requested_item shift.num is exist - process it [08:00:00]requested_item shift.opened is exist - process it [08:00:00]req_shift_opened [08:00:00]FM_GetShiftState [08:00:00]SAM_PROTO_GetShiftState [08:00:00]wFMCommunicate request_size=4 [08:00:00]MH_SAM_APDU [08:00:00]CAPDU: 80 13 01 00 [08:00:00]Write to MH i2c: E2 08 00 1D 61 80 13 01 00 00 00 00 00 FB [08:00:00]Write i2c OK [08:00:00]MH_I2C_Read... [08:00:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:00:01]Read from MH i2c: E2 [08:00:01]MH_I2C_Read... [08:00:01]Read from MH i2c: E2 0E 00 [08:00:01]MH_I2C_Read... [08:00:01]Read from MH i2c: E2 0E 00 1D 61 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 0C [08:00:01]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [08:00:01]wFMCommunicate OK [08:00:01]SAM_PROTO_GetShiftState done [08:00:01]FM_GetShiftState done [08:00:01]req_shift_opened done [08:00:01]requested_item shift.open_date is exist - process it [08:00:01]req_shift_open_date [08:00:01]req_shift_open_date done [08:00:01]produce_requested_data done [08:00:01]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28585,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [08:00:01]process_action_free print_text [08:00:01]json_value_free [08:00:01]json_value_free done [08:00:01]process_json_proto returns [08:00:01]Send response to host [08:00:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28585,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [08:00:01]free response buf [08:00:01]execute_script done [08:00:01]execute_script returns [08:00:01]free content buf [08:00:01]Sock 7.Close socket [08:00:01]Sock 7.Thread stoped [08:00:05]OFD Sender: No OFD packet to send [08:00:10]OFD Sender: No OFD packet to send [08:00:15]OFD Sender: No OFD packet to send [08:00:20]OFD Sender: No OFD packet to send [08:00:25]OFD Sender: No OFD packet to send [08:00:30]OFD Sender: No OFD packet to send [08:00:35]OFD Sender: No OFD packet to send [08:00:40]OFD Sender: No OFD packet to send [08:00:45]OFD Sender: No OFD packet to send [08:00:50]OFD Sender: No OFD packet to send [08:00:55]OFD Sender: No OFD packet to send [08:01:00]OFD Sender: No OFD packet to send [08:01:05]OFD Sender: No OFD packet to send [08:01:10]OFD Sender: No OFD packet to send [08:01:15]OFD Sender: No OFD packet to send [08:01:20]OFD Sender: No OFD packet to send [08:01:25]OFD Sender: No OFD packet to send [08:01:30]OFD Sender: No OFD packet to send [08:01:35]OFD Sender: No OFD packet to send [08:01:40]OFD Sender: No OFD packet to send [08:01:45]OFD Sender: No OFD packet to send [08:01:50]OFD Sender: No OFD packet to send [08:01:55]OFD Sender: No OFD packet to send [08:02:00]OFD Sender: No OFD packet to send [08:02:05]OFD Sender: No OFD packet to send [08:02:10]OFD Sender: No OFD packet to send [08:02:15]OFD Sender: No OFD packet to send [08:02:17]accept exits with 9 [08:02:17]New connection [08:02:17]New thread 3066641764 created [08:02:17]Thread 3066498404 joined [08:02:17]Waiting for new connection... [08:02:17] Sock 9.Parse request [08:02:17]Sock 9.Check first char [08:02:17]Sock 9.First char is OK [08:02:17]request: POST /json_proto HTTP/1.0 [08:02:17]Method: POST [08:02:17]URL: /json_proto [08:02:17]Method is POST - this is cgi request [08:02:17]url: /json_proto [08:02:17]query_string will be loaded in cgi processing [08:02:17]execute_cgi json_proto POST (null) [08:02:17]execute_cgi path=json_proto method=POST [08:02:17]POST find Content-Length [08:02:17]Host: 172.17.33.3:8080 [08:02:17]Content-Length: 836 [08:02:17]Content-Type: application/json [08:02:17] [08:02:17]POST finish read [08:02:17]Found Content-Length = 836 [08:02:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346896", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 22.980, "sum" : 1500.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1500.59 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:02:17]execute_script... [08:02: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)346896", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 22.980, "sum" : 1500.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1500.59 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:02:17]POST & json_proto [08:02:17]process_json_proto [08:02:17]json parsed OK: [08:02:17]protocol is kg_v1.0 [08:02:17]action value=close_receipt [08:02:17]process_action close_receipt [08:02:17]cmd_close_receipt [08:02:17]MH_GetDate [08:02:17]Write to MH i2c: F0 00 00 1E 61 6E [08:02:17]Write i2c OK [08:02:17]MH_I2C_Read... [08:02:17]Read from MH i2c: F0 [08:02:17]MH_I2C_Read... [08:02:17]Read from MH i2c: F0 09 00 [08:02:17]MH_I2C_Read... [08:02:17]Read from MH i2c: F0 09 00 1E 61 00 90 EA 18 66 23 5B 8F 65 E1 [08:02:17]GetLastDocTimeStamp 1712908604 [08:02:17]current date 1712908944 [08:02:17]FM_GetShiftState [08:02:17]SAM_PROTO_GetShiftState [08:02:17]wFMCommunicate request_size=4 [08:02:17]MH_SAM_APDU [08:02:17]CAPDU: 80 13 01 00 [08:02:17]Write to MH i2c: E2 08 00 1F 61 80 13 01 00 00 00 00 00 FD [08:02:17]Write i2c OK [08:02:17]MH_I2C_Read... [08:02:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:02:17]Read from MH i2c: E2 [08:02:17]MH_I2C_Read... [08:02:17]Read from MH i2c: E2 0E 00 [08:02:17]MH_I2C_Read... [08:02:17]Read from MH i2c: E2 0E 00 1F 61 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 0E [08:02:17]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [08:02:17]wFMCommunicate OK [08:02:17]SAM_PROTO_GetShiftState done [08:02:17]FM_GetShiftState done [08:02:17]opened in 1712881416 [08:02:17]opened+sec_in_day 1712967816 [08:02:17]quantity*price = 150059 [08:02:17]sum+1 = 150060 [08:02:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.59 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 0.00 Безнал.: 1500.59 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 35 12.04.2024 08:02 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 28586 ФПД: 29376610927314 1/tax-web-control/client/api/v1/ticket?date=20240412T080224&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28586&fm=29376610927314&tin=02508201610067®Number=0000138879044617&sum=150059 [08:02:18]StoreToDocumentArchive [08:02:18]shift 113 fd 28586 [08:02:18]save to /storage/0113/doc_00028586 [08:02:18]save last doc name /storage/0113/doc_00028586 to /storage/kkm_last_doc_name [08:02:18]save OK [08:02:18]Clear old archive folders... [08:02:18]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:02:18]tlvbuf is 01AAC350 [08:02:18]SAM_PROTO_ClearQueue [08:02:18]wFMCommunicate request_size=4 [08:02:18]MH_SAM_APDU [08:02:18]CAPDU: 80 09 00 00 [08:02:18]Write to MH i2c: E2 08 00 2C 61 80 09 00 00 00 00 00 00 FF [08:02:18]Write i2c OK [08:02:18]MH_I2C_Read... [08:02:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:02:18]Read from MH i2c: E2 [08:02:18]MH_I2C_Read... [08:02:18]Read from MH i2c: E2 03 00 [08:02:18]MH_I2C_Read... [08:02:18]Read from MH i2c: E2 03 00 2C 61 00 90 00 01 [08:02:18]RAPDU: 90 00 [08:02:18]wFMCommunicate OK [08:02:18]SAM_PROTO_ClearQueue done [08:02:18]KKMCreateOFDPacket [08:02:18]OFDProtocolAddRootSTLVToBuf [08:02:18]FM_MakeSignedData [08:02:18]FM_MakeSignedData [08:02:18]SAM_PROTO_SignData [08:02:18]wFMCommunicate request_size=4 [08:02:18]MH_SAM_APDU [08:02:18]CAPDU: 80 0D 01 02 [08:02:18]Write to MH i2c: E2 08 00 2D 61 80 0D 01 02 00 00 00 00 07 [08:02:19]Write i2c OK [08:02:19]MH_I2C_Read... [08:02:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:02:19]Read from MH i2c: E2 [08:02:19]MH_I2C_Read... [08:02:19]Read from MH i2c: E2 03 00 [08:02:19]MH_I2C_Read... [08:02:19]Read from MH i2c: E2 03 00 2D 61 00 90 00 02 [08:02:19]RAPDU: 90 00 [08:02:19]wFMCommunicate OK [08:02:19]wFMCommunicate request_size=255 [08:02:19]MH_SAM_APDU [08:02:19]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 59 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 2B 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2B 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2B 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 90 EA 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AA 6F 00 00 35 04 06 00 [08:02:19]Write to MH i2c: E2 02 01 2E 61 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 59 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 2B 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2B 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2B 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 90 EA 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AA 6F 00 00 35 04 06 00 00 00 4C [08:02:19]Write i2c OK [08:02:19]MH_I2C_Read... [08:02:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:02:19]Read from MH i2c: E2 [08:02:19]MH_I2C_Read... [08:02:19]Read from MH i2c: E2 03 00 [08:02:19]MH_I2C_Read... [08:02:19]Read from MH i2c: E2 03 00 2E 61 00 90 00 03 [08:02:19]RAPDU: 90 00 [08:02:19]wFMCommunicate OK [08:02:19]wFMCommunicate request_size=11 [08:02:19]MH_SAM_APDU [08:02:19]CAPDU: 80 0D 02 02 06 1A B7 C6 75 82 D2 [08:02:19]Write to MH i2c: E2 0E 00 2F 61 80 0D 02 02 06 00 1A B7 C6 75 82 D2 00 00 76 [08:02:19]Write i2c OK [08:02:19]MH_I2C_Read... [08:02:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:02:19]Read from MH i2c: E2 [08:02:19]MH_I2C_Read... [08:02:19]Read from MH i2c: E2 03 00 [08:02:19]MH_I2C_Read... [08:02:19]Read from MH i2c: E2 03 00 2F 61 00 90 00 04 [08:02:19]RAPDU: 90 00 [08:02:19]wFMCommunicate OK [08:02:19]wFMCommunicate request_size=4 [08:02:19]MH_SAM_APDU [08:02:19]CAPDU: 80 0D 03 02 [08:02:19]Write to MH i2c: E2 08 00 30 61 80 0D 03 02 00 00 00 00 0C [08:02:19]Write i2c OK [08:02:19]MH_I2C_Read... [08:02:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:02:19]Read from MH i2c: E2 [08:02:19]MH_I2C_Read... [08:02:19]Read from MH i2c: E2 0B 00 [08:02:19]MH_I2C_Read... [08:02:19]Read from MH i2c: E2 0B 00 30 61 00 78 77 FA D4 17 33 0E 33 90 00 55 [08:02:19]RAPDU: 78 77 FA D4 17 33 0E 33 90 00 [08:02:19]wFMCommunicate OK [08:02:19]SAM_PROTO_SignData done [08:02:19]FM_MakeSignedData done [08:02:19]CreateOFDProtocolMessage [08:02:19]wFMCommunicate request_size=4 [08:02:19]MH_SAM_APDU [08:02:19]CAPDU: 80 11 00 00 [08:02:19]Write to MH i2c: E2 08 00 31 61 80 11 00 00 00 00 00 00 0C [08:02:19]Write i2c OK [08:02:19]MH_I2C_Read... [08:02:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:02:19]Read from MH i2c: E2 [08:02:19]MH_I2C_Read... [08:02:19]Read from MH i2c: E2 17 00 [08:02:19]MH_I2C_Read... [08:02:19]Read from MH i2c: E2 17 00 31 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 5B [08:02:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:02:19]wFMCommunicate OK [08:02:19]CreateOFDProtocolMessage done [08:02:19]OFDSenderStorePacket 28586 [08:02:19]StoreOFDPacket docnum=28586 [08:02:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 4A 12 08 01 EF 1A 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 59 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 2B 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2B 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2B 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 90 EA 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AA 6F 00 00 35 04 06 00 1A B7 C6 75 82 D2 78 77 FA D4 17 33 0E 33 [08:02:19]CheckFolder [08:02:19]dirname=/storage/ofd_packets [08:02:19]CheckFolder done [08:02:19]ProducePacketName [08:02:19]name=ofd_packets/00028586 [08:02:19]NVStorageSaveData ofd_packets/00028586 [08:02:19]File name is /storage/ofd_packets/00028586 [08:02:19]Write 302 bytes [08:02:19]NVStorageSaveData done [08:02:19]OFDSenderStorePacket done [08:02:19]KKMCreateOFDPacket done [08:02:19]NVStorageSaveData kkm_last_timestamp [08:02:19]File name is /storage/kkm_last_timestamp [08:02:19]Write 4 bytes [08:02:19]NVStorageSaveData done [08:02:19]ExternCall_PrintAddStr [08:02:19]wPrintStart [08:02:19]Write to MH i2c: 01 00 00 32 61 93 [08:02:19]Write i2c OK [08:02:19]MH_I2C_Read... [08:02:19]Read from MH i2c: 01 [08:02:19]MH_I2C_Read... [08:02:19]Read from MH i2c: 01 07 00 [08:02:19]MH_I2C_Read... [08:02:19]Read from MH i2c: 01 07 00 32 61 00 00 00 00 00 FF 0F A8 [08:02:19]RasterBufferAndPrint [08:02:19]line Счет N : (1)346896 [08:02:19]line ИНН: 02508201610067 [08:02:19]line Контрольно-Кассовый Чек [08:02:19]line ПРОДАЖА [08:02:19]line ТРК (МРК, ГНК) : 22 [08:02:19]line Товар: 2710124130 [08:02:19]line SUPER-92-К-5 [08:02:19]line 22.980 * 65.30 [08:02:19]line = 1500.59 [08:02:19]line НДС 12% НСП 1% [08:02:19]line > о реализуемом товаре [08:02:19]line ИТОГО: 1500.59 [08:02:19]line НСП 1% : 13.28 [08:02:19]line НДС 12% : 159.35 [08:02:19]line Наличными: 0.00 [08:02:19]line Безнал.: 1500.59 [08:02:19]line Место: АЗС № 108 "Партнер Нефть" [08:02:19]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [08:02:19]line СНО: Общий режим [08:02:19]line Чек 35 12.04.2024 08:02 [08:02:19]line Смена: 113 ФФД: 1.0 [08:02:19]line ЗНМ: 0300000027 [08:02:19]line РНМ: 0000138879044617 [08:02:19]line Версия ККМ: 001 [08:02:19]line Платежная система: АКБ Кыргызстан [08:02:19]line ФМ: 0000000000963154 [08:02:19]line ФД: 28586 [08:02:19]line ФПД: 29376610927314 [08:02:19]line 1/tax-web-control/client/api/v1/ticket?date=20240412T080224&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28586&fm=29376610927314&tin=02508201610067®Number=0000138879044617&sum=150059 [08:02:19]OFD Sender: Processing packet 28586 [packets to send 8, broken 7] [08:02:19]ProducePacketName [08:02:19]name=ofd_packets/00028586 [08:02:19]OFD Sender: To server: pG, [08:02:19]CommunicateWithHost lk.salyk.kg:30040 [08:02:19]ConnectInit lk.salyk.kg [08:02:19]written 0, free lines is 4095 [08:02:19]Connected sock=10 [08:02:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 4A 12 08 01 EF 1A 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 59 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 2B 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2B 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2B 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 90 EA 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AA 6F 00 00 35 04 06 00 1A B7 C6 75 82 D2 78 77 FA D4 17 33 0E 33 [08:02:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 80 83 47 00 E1 E2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AA 6F 00 00 F4 03 04 00 3B 95 18 66 B6 04 01 00 00 59 02 A7 17 44 D6 2A 26 [08:02:20]CommunicateWithHost err = 0 [08:02:20]CheckOFDResponse [08:02:20]1017 (14) - 77093643461234 [08:02:20]1041 (16) - 0000000000963154 [08:02:20]1040 (4) - 28586 [08:02:20]1012 (4) - 12.04.2024 01:58 [08:02:20]1206 (1) - 0 [08:02:20]OFD Sender: Remove packet 28586 [08:02:20]ProducePacketName [08:02:20]name=ofd_packets/00028586 [08:02:20]NVStorageDeleteData [08:02:20]Write to MH i2c: 01 00 00 5B 61 BC [08:02:20]Write i2c OK [08:02:20]MH_I2C_Read... [08:02:20]Read from MH i2c: 01 [08:02:20]MH_I2C_Read... [08:02:20]Read from MH i2c: 01 07 00 [08:02:20]MH_I2C_Read... [08:02:20]Read from MH i2c: 01 07 00 5B 61 00 00 00 00 00 E9 0C B8 [08:02:20]RasterBufferAndPrint [08:02:20]line [08:02:20]line [08:02:20]line [08:02:20]line [08:02:20]line [08:02:20]written 0, free lines is 3312 [08:02:20]MH_Cut [08:02:20]Write to MH i2c: D1 01 00 62 61 01 95 [08:02:20]Write i2c OK [08:02:20]MH_I2C_Read... [08:02:20]Read from MH i2c: D1 [08:02:20]MH_I2C_Read... [08:02:20]Read from MH i2c: D1 01 00 [08:02:20]MH_I2C_Read... [08:02:20]Read from MH i2c: D1 01 00 62 61 00 94 [08:02:20]Write to MH i2c: 01 00 00 63 61 C4 [08:02:20]Write i2c OK [08:02:20]MH_I2C_Read... [08:02:20]OFD Sender: No OFD packet to send [08:02:21]*** Cut start [08:02:21]*** Partial cut [08:02:21]*** CUTSNS_PIN = 1 [08:02:21]*** CUTSNS_PIN = 0 [08:02:21]*** Brake cut motor [08:02:21]Read from MH i2c: 01 [08:02:21]MH_I2C_Read... [08:02:21]*** Stop cut motor [08:02:21]*** Cut end [08:02:21]Read from MH i2c: 01 07 00 [08:02:21]MH_I2C_Read... [08:02:21]Read from MH i2c: 01 07 00 63 61 00 00 00 00 00 FF 0F D9 [08:02:21]process_action close_receipt done [08:02:21]requested_data is exist [08:02:21]produce_requested_data [08:02:21]requested_item fm.sn is exist - process it [08:02:21]wFMCommunicate request_size=4 [08:02:21]MH_SAM_APDU [08:02:21]CAPDU: 80 11 00 00 [08:02:21]Write to MH i2c: E2 08 00 64 61 80 11 00 00 00 00 00 00 3F [08:02:21]Write i2c OK [08:02:21]MH_I2C_Read... [08:02:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:02:21]Read from MH i2c: E2 [08:02:21]MH_I2C_Read... [08:02:21]Read from MH i2c: E2 17 00 [08:02:21]MH_I2C_Read... [08:02:21]Read from MH i2c: E2 17 00 64 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 8E [08:02:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:02:21]wFMCommunicate OK [08:02:21]requested_item fd.num is exist - process it [08:02:21]SAM_PROTO_GetFieldsCounters [08:02:21]wFMCommunicate request_size=4 [08:02:21]MH_SAM_APDU [08:02:21]CAPDU: 80 13 00 00 [08:02:21]Write to MH i2c: E2 08 00 65 61 80 13 00 00 00 00 00 00 42 [08:02:21]Write i2c OK [08:02:21]MH_I2C_Read... [08:02:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:02:21]Read from MH i2c: E2 [08:02:21]MH_I2C_Read... [08:02:21]Read from MH i2c: E2 62 00 [08:02:21]MH_I2C_Read... [08:02:21]Read from MH i2c: E2 62 00 65 61 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 AA 6F 00 00 0E 04 04 00 71 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 73 [08:02:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 AA 6F 00 00 0E 04 04 00 71 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:02:21]wFMCommunicate OK [08:02:21]SAM_PROTO_GetFieldsCounters done [08:02:21]requested_item shift.num is exist - process it [08:02:21]requested_item shift.opened is exist - process it [08:02:21]req_shift_opened [08:02:21]FM_GetShiftState [08:02:21]SAM_PROTO_GetShiftState [08:02:21]wFMCommunicate request_size=4 [08:02:21]MH_SAM_APDU [08:02:21]CAPDU: 80 13 01 00 [08:02:21]Write to MH i2c: E2 08 00 66 61 80 13 01 00 00 00 00 00 44 [08:02:21]Write i2c OK [08:02:21]MH_I2C_Read... [08:02:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:02:21]Read from MH i2c: E2 [08:02:21]MH_I2C_Read... [08:02:21]Read from MH i2c: E2 0E 00 [08:02:21]MH_I2C_Read... [08:02:21]Read from MH i2c: E2 0E 00 66 61 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 55 [08:02:21]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [08:02:21]wFMCommunicate OK [08:02:21]SAM_PROTO_GetShiftState done [08:02:21]FM_GetShiftState done [08:02:21]req_shift_opened done [08:02:21]requested_item shift.open_date is exist - process it [08:02:21]req_shift_open_date [08:02:21]req_shift_open_date done [08:02:21]produce_requested_data done [08:02:21]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28586,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [08:02:21]process_action_free close_receipt [08:02:21]json_value_free [08:02:21]json_value_free done [08:02:21]process_json_proto returns [08:02:21]Send response to host [08:02:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28586,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [08:02:21]free response buf [08:02:21]execute_script done [08:02:21]execute_script returns [08:02:21]free content buf [08:02:21]Sock 9.Close socket [08:02:21]Sock 9.Thread stoped [08:02:25]OFD Sender: No OFD packet to send [08:02:30]OFD Sender: No OFD packet to send [08:02:35]OFD Sender: No OFD packet to send [08:02:40]OFD Sender: No OFD packet to send [08:02:45]OFD Sender: No OFD packet to send [08:02:50]OFD Sender: No OFD packet to send [08:02:55]OFD Sender: No OFD packet to send [08:03:00]OFD Sender: No OFD packet to send [08:03:05]OFD Sender: No OFD packet to send [08:03:10]OFD Sender: No OFD packet to send [08:03:11]accept exits with 7 [08:03:11]New connection [08:03:11]New thread 3066498404 created [08:03:11]Thread 3066641764 joined [08:03:11]Waiting for new connection... [08:03:11] Sock 7.Parse request [08:03:11]Sock 7.Check first char [08:03:11]Sock 7.First char is OK [08:03:11]request: POST /json_proto HTTP/1.0 [08:03:11]Method: POST [08:03:11]URL: /json_proto [08:03:11]Method is POST - this is cgi request [08:03:11]url: /json_proto [08:03:11]query_string will be loaded in cgi processing [08:03:11]execute_cgi json_proto POST (null) [08:03:11]execute_cgi path=json_proto method=POST [08:03:11]POST find Content-Length [08:03:11]Host: 172.17.33.3:8080 [08:03:11]Content-Length: 685 [08:03:11]Content-Type: application/json [08:03:11] [08:03:11]POST finish read [08:03:11]Found Content-Length = 685 [08:03:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346897", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 34.150, "sum" : 1123.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1123.00, "payments": [ { "type": 0, "sum" : 1123.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:03:11]execute_script... [08:03: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)346897", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 34.150, "sum" : 1123.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1123.00, "payments": [ { "type": 0, "sum" : 1123.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:03:11]POST & json_proto [08:03:11]process_json_proto [08:03:11]json parsed OK: [08:03:11]protocol is kg_v1.0 [08:03:11]action value=close_receipt [08:03:11]process_action close_receipt [08:03:11]cmd_close_receipt [08:03:11]MH_GetDate [08:03:11]Write to MH i2c: F0 00 00 67 61 B7 [08:03:11]Write i2c OK [08:03:11]MH_I2C_Read... [08:03:11]Read from MH i2c: F0 [08:03:11]MH_I2C_Read... [08:03:11]Read from MH i2c: F0 09 00 [08:03:11]MH_I2C_Read... [08:03:11]Read from MH i2c: F0 09 00 67 61 00 C7 EA 18 66 23 5B 8F 65 61 [08:03:11]GetLastDocTimeStamp 1712908944 [08:03:11]current date 1712908999 [08:03:11]FM_GetShiftState [08:03:11]SAM_PROTO_GetShiftState [08:03:11]wFMCommunicate request_size=4 [08:03:11]MH_SAM_APDU [08:03:11]CAPDU: 80 13 01 00 [08:03:11]Write to MH i2c: E2 08 00 68 61 80 13 01 00 00 00 00 00 46 [08:03:11]Write i2c OK [08:03:11]MH_I2C_Read... [08:03:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:03:12]Read from MH i2c: E2 [08:03:12]MH_I2C_Read... [08:03:12]Read from MH i2c: E2 0E 00 [08:03:12]MH_I2C_Read... [08:03:12]Read from MH i2c: E2 0E 00 68 61 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 57 [08:03:12]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [08:03:12]wFMCommunicate OK [08:03:12]SAM_PROTO_GetShiftState done [08:03:12]FM_GetShiftState done [08:03:12]opened in 1712881416 [08:03:12]opened+sec_in_day 1712967816 [08:03:12]quantity*price = 112353 [08:03:12]sum+1 = 112355 [08:03:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 1123.00 Внесено: 1400.00 СДАЧА: 277.00 НСП 1% : 9.94 НДС 12% : 119.31 Наличными: 1123.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 36 12.04.2024 08:03 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28587 ФПД: 246934240225728 1/tax-web-control/client/api/v1/ticket?date=20240412T080319&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28587&fm=246934240225728&tin=02508201610067®Number=0000138879044617&sum=112300 [08:03:13]StoreToDocumentArchive [08:03:13]shift 113 fd 28587 [08:03:13]save to /storage/0113/doc_00028587 [08:03:13]save last doc name /storage/0113/doc_00028587 to /storage/kkm_last_doc_name [08:03:13]save OK [08:03:13]Clear old archive folders... [08:03:13]ProcessDocumentItem done err = 0, tmpTLVsize=250 [08:03:13]tlvbuf is 01ADCBA0 [08:03:13]SAM_PROTO_ClearQueue [08:03:13]wFMCommunicate request_size=4 [08:03:13]MH_SAM_APDU [08:03:13]CAPDU: 80 09 00 00 [08:03:13]Write to MH i2c: E2 08 00 75 61 80 09 00 00 00 00 00 00 48 [08:03:13]Write i2c OK [08:03:13]MH_I2C_Read... [08:03:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:03:13]Read from MH i2c: E2 [08:03:13]MH_I2C_Read... [08:03:13]Read from MH i2c: E2 03 00 [08:03:13]MH_I2C_Read... [08:03:13]Read from MH i2c: E2 03 00 75 61 00 90 00 4A [08:03:13]RAPDU: 90 00 [08:03:13]wFMCommunicate OK [08:03:13]SAM_PROTO_ClearQueue done [08:03:13]KKMCreateOFDPacket [08:03:13]OFDProtocolAddRootSTLVToBuf [08:03:13]FM_MakeSignedData [08:03:13]FM_MakeSignedData [08:03:13]SAM_PROTO_SignData [08:03:13]wFMCommunicate request_size=4 [08:03:13]MH_SAM_APDU [08:03:13]CAPDU: 80 0D 01 02 [08:03:13]Write to MH i2c: E2 08 00 76 61 80 0D 01 02 00 00 00 00 50 [08:03:13]Write i2c OK [08:03:13]MH_I2C_Read... [08:03:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:03:13]Read from MH i2c: E2 [08:03:13]MH_I2C_Read... [08:03:13]Read from MH i2c: E2 03 00 [08:03:13]MH_I2C_Read... [08:03:13]Read from MH i2c: E2 03 00 76 61 00 90 00 4B [08:03:13]RAPDU: 90 00 [08:03:13]wFMCommunicate OK [08:03:13]wFMCommunicate request_size=255 [08:03:13]MH_SAM_APDU [08:03:13]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 66 85 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 E2 B6 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC B6 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E2 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 2E 00 00 00 00 07 04 06 00 AC B6 01 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 C7 EA 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AB 6F 00 00 35 04 06 00 E0 95 [08:03:13]Write to MH i2c: E2 02 01 77 61 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 66 85 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 E2 B6 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC B6 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E2 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 2E 00 00 00 00 07 04 06 00 AC B6 01 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 C7 EA 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AB 6F 00 00 35 04 06 00 E0 95 00 00 58 [08:03:13]Write i2c OK [08:03:13]MH_I2C_Read... [08:03:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:03:13]Read from MH i2c: E2 [08:03:13]MH_I2C_Read... [08:03:13]Read from MH i2c: E2 03 00 [08:03:13]MH_I2C_Read... [08:03:13]Read from MH i2c: E2 03 00 77 61 00 90 00 4C [08:03:13]RAPDU: 90 00 [08:03:13]wFMCommunicate OK [08:03:13]wFMCommunicate request_size=9 [08:03:13]MH_SAM_APDU [08:03:13]CAPDU: 80 0D 02 02 04 DB AB E9 C0 [08:03:13]Write to MH i2c: E2 0C 00 78 61 80 0D 02 02 04 00 DB AB E9 C0 00 00 8A [08:03:13]Write i2c OK [08:03:13]MH_I2C_Read... [08:03:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:03:13]Read from MH i2c: E2 [08:03:13]MH_I2C_Read... [08:03:13]Read from MH i2c: E2 03 00 [08:03:13]MH_I2C_Read... [08:03:13]Read from MH i2c: E2 03 00 78 61 00 90 00 4D [08:03:13]RAPDU: 90 00 [08:03:13]wFMCommunicate OK [08:03:13]wFMCommunicate request_size=4 [08:03:13]MH_SAM_APDU [08:03:13]CAPDU: 80 0D 03 02 [08:03:13]Write to MH i2c: E2 08 00 79 61 80 0D 03 02 00 00 00 00 55 [08:03:13]Write i2c OK [08:03:13]MH_I2C_Read... [08:03:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:03:13]Read from MH i2c: E2 [08:03:13]MH_I2C_Read... [08:03:13]Read from MH i2c: E2 0B 00 [08:03:13]MH_I2C_Read... [08:03:13]Read from MH i2c: E2 0B 00 79 61 00 53 53 DB 50 B9 78 27 DF 90 00 5E [08:03:13]RAPDU: 53 53 DB 50 B9 78 27 DF 90 00 [08:03:13]wFMCommunicate OK [08:03:13]SAM_PROTO_SignData done [08:03:13]FM_MakeSignedData done [08:03:13]CreateOFDProtocolMessage [08:03:13]wFMCommunicate request_size=4 [08:03:13]MH_SAM_APDU [08:03:13]CAPDU: 80 11 00 00 [08:03:13]Write to MH i2c: E2 08 00 7A 61 80 11 00 00 00 00 00 00 55 [08:03:13]Write i2c OK [08:03:13]MH_I2C_Read... [08:03:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:03:13]Read from MH i2c: E2 [08:03:13]MH_I2C_Read... [08:03:13]Read from MH i2c: E2 17 00 [08:03:13]MH_I2C_Read... [08:03:13]Read from MH i2c: E2 17 00 7A 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 A4 [08:03:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:03:13]wFMCommunicate OK [08:03:13]CreateOFDProtocolMessage done [08:03:13]OFDSenderStorePacket 28587 [08:03:13]StoreOFDPacket docnum=28587 [08:03:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 36 A2 06 01 95 8B 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 66 85 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 E2 B6 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC B6 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E2 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 2E 00 00 00 00 07 04 06 00 AC B6 01 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 C7 EA 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AB 6F 00 00 35 04 06 00 E0 95 DB AB E9 C0 53 53 DB 50 B9 78 27 DF [08:03:13]CheckFolder [08:03:13]dirname=/storage/ofd_packets [08:03:13]CheckFolder done [08:03:13]ProducePacketName [08:03:13]name=ofd_packets/00028587 [08:03:13]NVStorageSaveData ofd_packets/00028587 [08:03:13]File name is /storage/ofd_packets/00028587 [08:03:13]Write 300 bytes [08:03:13]NVStorageSaveData done [08:03:13]OFDSenderStorePacket done [08:03:13]KKMCreateOFDPacket done [08:03:13]NVStorageSaveData kkm_last_timestamp [08:03:13]File name is /storage/kkm_last_timestamp [08:03:13]Write 4 bytes [08:03:13]NVStorageSaveData done [08:03:13]ExternCall_PrintAddStr [08:03:13]wPrintStart [08:03:13]Write to MH i2c: 01 00 00 7B 61 DC [08:03:13]Write i2c OK [08:03:13]MH_I2C_Read... [08:03:13]Read from MH i2c: 01 [08:03:13]MH_I2C_Read... [08:03:13]Read from MH i2c: 01 07 00 [08:03:13]MH_I2C_Read... [08:03:13]Read from MH i2c: 01 07 00 7B 61 00 00 00 00 00 FF 0F F1 [08:03:13]RasterBufferAndPrint [08:03:13]line Счет N : (1)346897 [08:03:13]line ИНН: 02508201610067 [08:03:13]line Контрольно-Кассовый Чек [08:03:13]line ПРОДАЖА [08:03:13]line ТРК (МРК, ГНК) : 71 [08:03:13]line Товар: 2711129700 [08:03:13]line ГАЗ-К-5 [08:03:13]line 34.150 * 32.90 [08:03:13]line = 1123.54 [08:03:13]line НДС 12% НСП 1% [08:03:13]line > о реализуемом товаре [08:03:13]line ОКРУГЛЕНИЕ: -0.54 [08:03:13]line ИТОГО: 1123.00 [08:03:13]line Внесено: 1400.00 [08:03:13]line СДАЧА: 277.00 [08:03:13]line НСП 1% : 9.94 [08:03:13]line НДС 12% : 119.31 [08:03:13]line Наличными: 1123.00 [08:03:13]line Безнал.: 0.00 [08:03:13]line Место: АЗС № 108 "Партнер Нефть" [08:03:13]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [08:03:13]line СНО: Общий режим [08:03:13]line Чек 36 12.04.2024 08:03 [08:03:13]line Смена: 113 ФФД: 1.0 [08:03:13]line ЗНМ: 0300000027 [08:03:13]line РНМ: 0000138879044617 [08:03:13]line Версия ККМ: 001 [08:03:13]line ФМ: 0000000000963154 [08:03:13]line ФД: 28587 [08:03:13]line ФПД: 246934240225728 [08:03:13]line 1/tax-web-control/client/api/v1/ticket?date=20240412T080319&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28587&fm=246934240225728&tin=02508201610067®Number=0000138879044617&sum=112300 [08:03:13]OFD Sender: Processing packet 28587 [packets to send 8, broken 7] [08:03:13]ProducePacketName [08:03:13]name=ofd_packets/00028587 [08:03:13]OFD Sender: To server: pG, [08:03:13]CommunicateWithHost lk.salyk.kg:30040 [08:03:13]ConnectInit lk.salyk.kg [08:03:13]written 0, free lines is 4095 [08:03:14]Connected sock=10 [08:03:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 36 A2 06 01 95 8B 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 66 85 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 E2 B6 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC B6 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E2 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 2E 00 00 00 00 07 04 06 00 AC B6 01 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 C7 EA 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AB 6F 00 00 35 04 06 00 E0 95 DB AB E9 C0 53 53 DB 50 B9 78 27 DF [08:03:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 C6 41 47 00 AA 4C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AB 6F 00 00 F4 03 04 00 71 95 18 66 B6 04 01 00 00 AA 8D 4F 4B DC 28 DE 4E [08:03:14]CommunicateWithHost err = 0 [08:03:14]CheckOFDResponse [08:03:14]1017 (14) - 77093643461234 [08:03:14]1041 (16) - 0000000000963154 [08:03:14]1040 (4) - 28587 [08:03:14]1012 (4) - 12.04.2024 01:59 [08:03:14]1206 (1) - 0 [08:03:14]OFD Sender: Remove packet 28587 [08:03:14]ProducePacketName [08:03:14]name=ofd_packets/00028587 [08:03:14]NVStorageDeleteData [08:03:14]Write to MH i2c: 01 00 00 A5 61 06 [08:03:14]Write i2c OK [08:03:14]MH_I2C_Read... [08:03:14]Read from MH i2c: 01 [08:03:14]MH_I2C_Read... [08:03:14]Read from MH i2c: 01 07 00 [08:03:14]MH_I2C_Read... [08:03:14]Read from MH i2c: 01 07 00 A5 61 00 00 00 00 00 C8 0C E1 [08:03:14]RasterBufferAndPrint [08:03:14]line [08:03:14]line [08:03:14]line [08:03:14]line [08:03:14]line [08:03:14]written 0, free lines is 3277 [08:03:14]MH_Cut [08:03:14]Write to MH i2c: D1 01 00 AC 61 01 DF [08:03:14]Write i2c OK [08:03:14]MH_I2C_Read... [08:03:14]Read from MH i2c: D1 [08:03:14]MH_I2C_Read... [08:03:14]Read from MH i2c: D1 01 00 [08:03:14]MH_I2C_Read... [08:03:14]Read from MH i2c: D1 01 00 AC 61 00 DE [08:03:14]Write to MH i2c: 01 00 00 AD 61 0E [08:03:14]Write i2c OK [08:03:14]MH_I2C_Read... [08:03:14]OFD Sender: No OFD packet to send [08:03:15]*** Cut start [08:03:15]*** Partial cut [08:03:15]*** CUTSNS_PIN = 1 [08:03:15]*** CUTSNS_PIN = 0 [08:03:15]*** Brake cut motor [08:03:15]Read from MH i2c: 01 [08:03:15]MH_I2C_Read... [08:03:15]*** Stop cut motor [08:03:15]*** Cut end [08:03:15]Read from MH i2c: 01 07 00 [08:03:15]MH_I2C_Read... [08:03:15]Read from MH i2c: 01 07 00 AD 61 00 00 00 00 00 FF 0F 23 [08:03:15]process_action close_receipt done [08:03:15]requested_data is exist [08:03:15]produce_requested_data [08:03:15]requested_item fm.sn is exist - process it [08:03:15]wFMCommunicate request_size=4 [08:03:15]MH_SAM_APDU [08:03:15]CAPDU: 80 11 00 00 [08:03:15]Write to MH i2c: E2 08 00 AE 61 80 11 00 00 00 00 00 00 89 [08:03:15]Write i2c OK [08:03:15]MH_I2C_Read... [08:03:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:03:15]Read from MH i2c: E2 [08:03:15]MH_I2C_Read... [08:03:15]Read from MH i2c: E2 17 00 [08:03:15]MH_I2C_Read... [08:03:15]Read from MH i2c: E2 17 00 AE 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D8 [08:03:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:03:15]wFMCommunicate OK [08:03:15]requested_item fd.num is exist - process it [08:03:15]SAM_PROTO_GetFieldsCounters [08:03:15]wFMCommunicate request_size=4 [08:03:15]MH_SAM_APDU [08:03:15]CAPDU: 80 13 00 00 [08:03:15]Write to MH i2c: E2 08 00 AF 61 80 13 00 00 00 00 00 00 8C [08:03:15]Write i2c OK [08:03:15]MH_I2C_Read... [08:03:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:03:16]Read from MH i2c: E2 [08:03:16]MH_I2C_Read... [08:03:16]Read from MH i2c: E2 62 00 [08:03:16]MH_I2C_Read... [08:03:16]Read from MH i2c: E2 62 00 AF 61 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 AB 6F 00 00 0E 04 04 00 71 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 C1 [08:03:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 AB 6F 00 00 0E 04 04 00 71 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:03:16]wFMCommunicate OK [08:03:16]SAM_PROTO_GetFieldsCounters done [08:03:16]requested_item shift.num is exist - process it [08:03:16]requested_item shift.opened is exist - process it [08:03:16]req_shift_opened [08:03:16]FM_GetShiftState [08:03:16]SAM_PROTO_GetShiftState [08:03:16]wFMCommunicate request_size=4 [08:03:16]MH_SAM_APDU [08:03:16]CAPDU: 80 13 01 00 [08:03:16]Write to MH i2c: E2 08 00 B0 61 80 13 01 00 00 00 00 00 8E [08:03:16]Write i2c OK [08:03:16]MH_I2C_Read... [08:03:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:03:16]Read from MH i2c: E2 [08:03:16]MH_I2C_Read... [08:03:16]Read from MH i2c: E2 0E 00 [08:03:16]MH_I2C_Read... [08:03:16]Read from MH i2c: E2 0E 00 B0 61 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 9F [08:03:16]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [08:03:16]wFMCommunicate OK [08:03:16]SAM_PROTO_GetShiftState done [08:03:16]FM_GetShiftState done [08:03:16]req_shift_opened done [08:03:16]requested_item shift.open_date is exist - process it [08:03:16]req_shift_open_date [08:03:16]req_shift_open_date done [08:03:16]produce_requested_data done [08:03:16]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28587,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [08:03:16]process_action_free close_receipt [08:03:16]json_value_free [08:03:16]json_value_free done [08:03:16]process_json_proto returns [08:03:16]Send response to host [08:03:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28587,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [08:03:16]free response buf [08:03:16]execute_script done [08:03:16]execute_script returns [08:03:16]free content buf [08:03:16]Sock 7.Close socket [08:03:16]Sock 7.Thread stoped [08:03:16]accept exits with 9 [08:03:16]New connection [08:03:16]New thread 3066641764 created [08:03:16]Thread 3066498404 joined [08:03:16]Waiting for new connection... [08:03:16] Sock 9.Parse request [08:03:16]Sock 9.Check first char [08:03:16]Sock 9.First char is OK [08:03:16]request: POST /json_proto HTTP/1.0 [08:03:16]Method: POST [08:03:16]URL: /json_proto [08:03:16]Method is POST - this is cgi request [08:03:16]url: /json_proto [08:03:16]query_string will be loaded in cgi processing [08:03:16]execute_cgi json_proto POST (null) [08:03:16]execute_cgi path=json_proto method=POST [08:03:16]POST find Content-Length [08:03:16]Host: 172.17.33.3:8080 [08:03:16]Content-Length: 1212 [08:03:16]Content-Type: application/json [08:03:16] [08:03:16]POST finish read [08:03:16]Found Content-Length = 1212 [08:03:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)346898\u000A12.04.2024 07:45\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 64.30\u000A\u0418\u0422\u041E\u0413: 643.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A74634\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:03:16]execute_script... [08:03:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)346898\u000A12.04.2024 07:45\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 64.30\u000A\u0418\u0422\u041E\u0413: 643.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A74634\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:03:16]POST & json_proto [08:03:16]process_json_proto [08:03:16]json parsed OK: [08:03:16]protocol is kg_v1.0 [08:03:16]action value=print_text [08:03:16]process_action print_text [08:03:16]cmd_print_text [08:03:16]ExternCall_PrintAddStr [08:03:16]wPrintStart [08:03:16]Write to MH i2c: 01 00 00 B1 61 12 [08:03:16]Write i2c OK [08:03:16]MH_I2C_Read... [08:03:16]Read from MH i2c: 01 [08:03:16]MH_I2C_Read... [08:03:16]Read from MH i2c: 01 07 00 [08:03:16]MH_I2C_Read... [08:03:16]Read from MH i2c: 01 07 00 B1 61 00 00 00 00 00 FF 0F 27 [08:03:16]RasterBufferAndPrint [08:03:16]line *****ТОВАРНЫЙ ЧЕК***** [08:03:16]line АЗС 108 [08:03:16]line Партнер нефть [08:03:16]line 02508201610067 [08:03:16]line Кассир : Джумагулова Н. [08:03:16]line Счет N : (1)346898 [08:03:16]line 12.04.2024 07:45 [08:03:16]line ПРОДАЖА [08:03:16]line ТРК (МРК, ГНК): 42 [08:03:16]line Вид ГСМ : 2710124130 [08:03:16]line Аи-92-К-5 [08:03:16]line 10.000 x 64.30 [08:03:16]line ИТОГ: 643.00 [08:03:16]line Тип оплаты: Талоны: Топливная Карта [08:03:16]line 74634 [08:03:16]line ______________________ [08:03:16]line (подпись) [08:03:16]written 0, free lines is 4095 [08:03:16]Write to MH i2c: 01 00 00 C6 61 27 [08:03:16]Write i2c OK [08:03:16]MH_I2C_Read... [08:03:16]Read from MH i2c: 01 [08:03:16]MH_I2C_Read... [08:03:16]Read from MH i2c: 01 07 00 [08:03:16]MH_I2C_Read... [08:03:16]Read from MH i2c: 01 07 00 C6 61 00 00 00 00 00 F7 0D 32 [08:03:16]RasterBufferAndPrint [08:03:16]line [08:03:16]line [08:03:16]line [08:03:16]line [08:03:16]line [08:03:16]written 0, free lines is 3578 [08:03:16]MH_Cut [08:03:16]Write to MH i2c: D1 01 00 CD 61 01 00 [08:03:16]Write i2c OK [08:03:16]MH_I2C_Read... [08:03:16]Read from MH i2c: D1 [08:03:16]MH_I2C_Read... [08:03:16]Read from MH i2c: D1 01 00 [08:03:16]MH_I2C_Read... [08:03:16]Read from MH i2c: D1 01 00 CD 61 00 FF [08:03:16]Write to MH i2c: 01 00 00 CE 61 2F [08:03:16]Write i2c OK [08:03:16]MH_I2C_Read... [08:03:17]*** Cut start [08:03:17]*** Partial cut [08:03:17]*** CUTSNS_PIN = 1 [08:03:17]*** CUTSNS_PIN = 0 [08:03:17]*** Brake cut motor [08:03:17]Read from MH i2c: 01 [08:03:17]MH_I2C_Read... [08:03:17]*** Stop cut motor [08:03:17]*** Cut end [08:03:17]Read from MH i2c: 01 07 00 [08:03:17]MH_I2C_Read... [08:03:17]Read from MH i2c: 01 07 00 CE 61 00 00 00 00 00 FF 0F 44 [08:03:17]process_action print_text done [08:03:17]requested_data is exist [08:03:17]produce_requested_data [08:03:17]requested_item fm.sn is exist - process it [08:03:17]wFMCommunicate request_size=4 [08:03:17]MH_SAM_APDU [08:03:17]CAPDU: 80 11 00 00 [08:03:17]Write to MH i2c: E2 08 00 CF 61 80 11 00 00 00 00 00 00 AA [08:03:17]Write i2c OK [08:03:17]MH_I2C_Read... [08:03:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:03:17]Read from MH i2c: E2 [08:03:17]MH_I2C_Read... [08:03:17]Read from MH i2c: E2 17 00 [08:03:17]MH_I2C_Read... [08:03:17]Read from MH i2c: E2 17 00 CF 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 F9 [08:03:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:03:17]wFMCommunicate OK [08:03:17]requested_item fd.num is exist - process it [08:03:17]SAM_PROTO_GetFieldsCounters [08:03:17]wFMCommunicate request_size=4 [08:03:17]MH_SAM_APDU [08:03:17]CAPDU: 80 13 00 00 [08:03:17]Write to MH i2c: E2 08 00 D0 61 80 13 00 00 00 00 00 00 AD [08:03:17]Write i2c OK [08:03:17]MH_I2C_Read... [08:03:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:03:17]Read from MH i2c: E2 [08:03:17]MH_I2C_Read... [08:03:17]Read from MH i2c: E2 62 00 [08:03:17]MH_I2C_Read... [08:03:17]Read from MH i2c: E2 62 00 D0 61 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 AB 6F 00 00 0E 04 04 00 71 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 E2 [08:03:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 AB 6F 00 00 0E 04 04 00 71 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:03:17]wFMCommunicate OK [08:03:17]SAM_PROTO_GetFieldsCounters done [08:03:17]requested_item shift.num is exist - process it [08:03:17]requested_item shift.opened is exist - process it [08:03:17]req_shift_opened [08:03:17]FM_GetShiftState [08:03:17]SAM_PROTO_GetShiftState [08:03:17]wFMCommunicate request_size=4 [08:03:17]MH_SAM_APDU [08:03:17]CAPDU: 80 13 01 00 [08:03:17]Write to MH i2c: E2 08 00 D1 61 80 13 01 00 00 00 00 00 AF [08:03:17]Write i2c OK [08:03:17]MH_I2C_Read... [08:03:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:03:18]Read from MH i2c: E2 [08:03:18]MH_I2C_Read... [08:03:18]Read from MH i2c: E2 0E 00 [08:03:18]MH_I2C_Read... [08:03:18]Read from MH i2c: E2 0E 00 D1 61 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 C0 [08:03:18]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [08:03:18]wFMCommunicate OK [08:03:18]SAM_PROTO_GetShiftState done [08:03:18]FM_GetShiftState done [08:03:18]req_shift_opened done [08:03:18]requested_item shift.open_date is exist - process it [08:03:18]req_shift_open_date [08:03:18]req_shift_open_date done [08:03:18]produce_requested_data done [08:03:18]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28587,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [08:03:18]process_action_free print_text [08:03:18]json_value_free [08:03:18]json_value_free done [08:03:18]process_json_proto returns [08:03:18]Send response to host [08:03:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28587,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [08:03:18]free response buf [08:03:18]execute_script done [08:03:18]execute_script returns [08:03:18]free content buf [08:03:18]Sock 9.Close socket [08:03:18]Sock 9.Thread stoped [08:03:19]OFD Sender: No OFD packet to send [08:03:24]OFD Sender: No OFD packet to send [08:03:29]OFD Sender: No OFD packet to send [08:03:34]OFD Sender: No OFD packet to send [08:03:39]OFD Sender: No OFD packet to send [08:03:44]OFD Sender: No OFD packet to send [08:03:49]OFD Sender: No OFD packet to send [08:03:54]OFD Sender: No OFD packet to send [08:03:59]OFD Sender: No OFD packet to send [08:04:04]OFD Sender: No OFD packet to send [08:04:09]OFD Sender: No OFD packet to send [08:04:14]OFD Sender: No OFD packet to send [08:04:19]OFD Sender: No OFD packet to send [08:04:24]OFD Sender: No OFD packet to send [08:04:29]OFD Sender: No OFD packet to send [08:04:34]OFD Sender: No OFD packet to send [08:04:39]OFD Sender: No OFD packet to send [08:04:44]OFD Sender: No OFD packet to send [08:04:49]OFD Sender: No OFD packet to send [08:04:54]OFD Sender: No OFD packet to send [08:04:59]OFD Sender: No OFD packet to send [08:05:04]OFD Sender: No OFD packet to send [08:05:09]OFD Sender: No OFD packet to send [08:05:14]OFD Sender: No OFD packet to send [08:05:19]OFD Sender: No OFD packet to send [08:05:24]OFD Sender: No OFD packet to send [08:05:29]OFD Sender: No OFD packet to send [08:05:34]OFD Sender: No OFD packet to send [08:05:39]OFD Sender: No OFD packet to send [08:05:44]OFD Sender: No OFD packet to send [08:05:49]OFD Sender: No OFD packet to send [08:05:54]OFD Sender: No OFD packet to send [08:05:59]OFD Sender: No OFD packet to send [08:06:04]OFD Sender: No OFD packet to send [08:06:09]OFD Sender: No OFD packet to send [08:06:14]OFD Sender: No OFD packet to send [08:06:19]OFD Sender: No OFD packet to send [08:06:24]OFD Sender: No OFD packet to send [08:06:29]OFD Sender: No OFD packet to send [08:06:34]OFD Sender: No OFD packet to send [08:06:39]OFD Sender: No OFD packet to send [08:06:40]accept exits with 7 [08:06:40]New connection [08:06:40]New thread 3066498404 created [08:06:40]Thread 3066641764 joined [08:06:40]Waiting for new connection... [08:06:40] Sock 7.Parse request [08:06:40]Sock 7.Check first char [08:06:40]Sock 7.First char is OK [08:06:40]request: POST /json_proto HTTP/1.0 [08:06:40]Method: POST [08:06:40]URL: /json_proto [08:06:40]Method is POST - this is cgi request [08:06:40]url: /json_proto [08:06:40]query_string will be loaded in cgi processing [08:06:40]execute_cgi json_proto POST (null) [08:06:40]execute_cgi path=json_proto method=POST [08:06:40]POST find Content-Length [08:06:40]Host: 172.17.33.3:8080 [08:06:40]Content-Length: 836 [08:06:40]Content-Type: application/json [08:06:40] [08:06:40]POST finish read [08:06:40]Found Content-Length = 836 [08:06:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346900", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 15.320, "sum" : 1000.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" : 1000.40 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:06:40]execute_script... [08:06: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)346900", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 15.320, "sum" : 1000.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" : 1000.40 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:06:40]POST & json_proto [08:06:40]process_json_proto [08:06:40]json parsed OK: [08:06:40]protocol is kg_v1.0 [08:06:40]action value=close_receipt [08:06:40]process_action close_receipt [08:06:40]cmd_close_receipt [08:06:40]MH_GetDate [08:06:40]Write to MH i2c: F0 00 00 D2 61 22 [08:06:40]Write i2c OK [08:06:40]MH_I2C_Read... [08:06:40]Read from MH i2c: F0 [08:06:40]MH_I2C_Read... [08:06:40]Read from MH i2c: F0 09 00 [08:06:40]MH_I2C_Read... [08:06:40]Read from MH i2c: F0 09 00 D2 61 00 97 EB 18 66 23 5B 8F 65 9D [08:06:40]GetLastDocTimeStamp 1712908999 [08:06:40]current date 1712909207 [08:06:40]FM_GetShiftState [08:06:40]SAM_PROTO_GetShiftState [08:06:40]wFMCommunicate request_size=4 [08:06:40]MH_SAM_APDU [08:06:40]CAPDU: 80 13 01 00 [08:06:40]Write to MH i2c: E2 08 00 D3 61 80 13 01 00 00 00 00 00 B1 [08:06:40]Write i2c OK [08:06:40]MH_I2C_Read... [08:06:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:06:40]Read from MH i2c: E2 [08:06:40]MH_I2C_Read... [08:06:40]Read from MH i2c: E2 0E 00 [08:06:40]MH_I2C_Read... [08:06:40]Read from MH i2c: E2 0E 00 D3 61 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 C2 [08:06:40]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [08:06:40]wFMCommunicate OK [08:06:40]SAM_PROTO_GetShiftState done [08:06:40]FM_GetShiftState done [08:06:40]opened in 1712881416 [08:06:40]opened+sec_in_day 1712967816 [08:06:40]quantity*price = 100039 [08:06:40]sum+1 = 100041 [08:06:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.40 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 0.00 Безнал.: 1000.40 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 37 12.04.2024 08:06 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 28588 ФПД: 226904210153693 1/tax-web-control/client/api/v1/ticket?date=20240412T080647&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28588&fm=226904210153693&tin=02508201610067®Number=0000138879044617&sum=100040 [08:06:41]StoreToDocumentArchive [08:06:41]shift 113 fd 28588 [08:06:41]save to /storage/0113/doc_00028588 [08:06:41]save last doc name /storage/0113/doc_00028588 to /storage/kkm_last_doc_name [08:06:41]save OK [08:06:41]Clear old archive folders... [08:06:41]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:06:41]tlvbuf is 01B2FDE0 [08:06:41]SAM_PROTO_ClearQueue [08:06:41]wFMCommunicate request_size=4 [08:06:41]MH_SAM_APDU [08:06:41]CAPDU: 80 09 00 00 [08:06:41]Write to MH i2c: E2 08 00 E0 61 80 09 00 00 00 00 00 00 B3 [08:06:41]Write i2c OK [08:06:41]MH_I2C_Read... [08:06:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:06:41]Read from MH i2c: E2 [08:06:41]MH_I2C_Read... [08:06:41]Read from MH i2c: E2 03 00 [08:06:41]MH_I2C_Read... [08:06:41]Read from MH i2c: E2 03 00 E0 61 00 90 00 B5 [08:06:41]RAPDU: 90 00 [08:06:41]wFMCommunicate OK [08:06:41]SAM_PROTO_ClearQueue done [08:06:41]KKMCreateOFDPacket [08:06:41]OFDProtocolAddRootSTLVToBuf [08:06:41]FM_MakeSignedData [08:06:41]FM_MakeSignedData [08:06:41]SAM_PROTO_SignData [08:06:41]wFMCommunicate request_size=4 [08:06:41]MH_SAM_APDU [08:06:41]CAPDU: 80 0D 01 02 [08:06:41]Write to MH i2c: E2 08 00 E1 61 80 0D 01 02 00 00 00 00 BB [08:06:41]Write i2c OK [08:06:41]MH_I2C_Read... [08:06:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:06:41]Read from MH i2c: E2 [08:06:41]MH_I2C_Read... [08:06:41]Read from MH i2c: E2 03 00 [08:06:41]MH_I2C_Read... [08:06:41]Read from MH i2c: E2 03 00 E1 61 00 90 00 B6 [08:06:41]RAPDU: 90 00 [08:06:41]wFMCommunicate OK [08:06:41]wFMCommunicate request_size=255 [08:06:41]MH_SAM_APDU [08:06:41]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 3B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 97 EB 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AC 6F 00 00 35 04 06 00 [08:06:41]Write to MH i2c: E2 02 01 E2 61 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 3B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 97 EB 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AC 6F 00 00 35 04 06 00 00 00 F9 [08:06:41]Write i2c OK [08:06:41]MH_I2C_Read... [08:06:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:06:41]Read from MH i2c: E2 [08:06:41]MH_I2C_Read... [08:06:41]Read from MH i2c: E2 03 00 [08:06:41]MH_I2C_Read... [08:06:41]Read from MH i2c: E2 03 00 E2 61 00 90 00 B7 [08:06:41]RAPDU: 90 00 [08:06:41]wFMCommunicate OK [08:06:41]wFMCommunicate request_size=11 [08:06:41]MH_SAM_APDU [08:06:41]CAPDU: 80 0D 02 02 06 CE 5E 40 D8 20 DD [08:06:41]Write to MH i2c: E2 0E 00 E3 61 80 0D 02 02 06 00 CE 5E 40 D8 20 DD 00 00 0B [08:06:41]Write i2c OK [08:06:41]MH_I2C_Read... [08:06:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:06:41]Read from MH i2c: E2 [08:06:41]MH_I2C_Read... [08:06:41]Read from MH i2c: E2 03 00 [08:06:41]MH_I2C_Read... [08:06:41]Read from MH i2c: E2 03 00 E3 61 00 90 00 B8 [08:06:41]RAPDU: 90 00 [08:06:41]wFMCommunicate OK [08:06:41]wFMCommunicate request_size=4 [08:06:41]MH_SAM_APDU [08:06:41]CAPDU: 80 0D 03 02 [08:06:41]Write to MH i2c: E2 08 00 E4 61 80 0D 03 02 00 00 00 00 C0 [08:06:41]Write i2c OK [08:06:41]MH_I2C_Read... [08:06:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:06:41]Read from MH i2c: E2 [08:06:41]MH_I2C_Read... [08:06:41]Read from MH i2c: E2 0B 00 [08:06:41]MH_I2C_Read... [08:06:41]Read from MH i2c: E2 0B 00 E4 61 00 C2 A3 89 37 87 5A 34 17 90 00 12 [08:06:41]RAPDU: C2 A3 89 37 87 5A 34 17 90 00 [08:06:41]wFMCommunicate OK [08:06:41]SAM_PROTO_SignData done [08:06:41]FM_MakeSignedData done [08:06:41]CreateOFDProtocolMessage [08:06:41]wFMCommunicate request_size=4 [08:06:41]MH_SAM_APDU [08:06:41]CAPDU: 80 11 00 00 [08:06:41]Write to MH i2c: E2 08 00 E5 61 80 11 00 00 00 00 00 00 C0 [08:06:41]Write i2c OK [08:06:41]MH_I2C_Read... [08:06:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:06:41]Read from MH i2c: E2 [08:06:41]MH_I2C_Read... [08:06:41]Read from MH i2c: E2 17 00 [08:06:41]MH_I2C_Read... [08:06:41]Read from MH i2c: E2 17 00 E5 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 0F [08:06:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:06:41]wFMCommunicate OK [08:06:41]CreateOFDProtocolMessage done [08:06:41]OFDSenderStorePacket 28588 [08:06:41]StoreOFDPacket docnum=28588 [08:06:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 E0 F5 08 01 40 58 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 3B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 97 EB 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AC 6F 00 00 35 04 06 00 CE 5E 40 D8 20 DD C2 A3 89 37 87 5A 34 17 [08:06:41]CheckFolder [08:06:41]dirname=/storage/ofd_packets [08:06:41]CheckFolder done [08:06:41]ProducePacketName [08:06:41]name=ofd_packets/00028588 [08:06:41]NVStorageSaveData ofd_packets/00028588 [08:06:41]File name is /storage/ofd_packets/00028588 [08:06:41]Write 302 bytes [08:06:41]NVStorageSaveData done [08:06:41]OFDSenderStorePacket done [08:06:41]KKMCreateOFDPacket done [08:06:41]NVStorageSaveData kkm_last_timestamp [08:06:41]File name is /storage/kkm_last_timestamp [08:06:41]Write 4 bytes [08:06:41]NVStorageSaveData done [08:06:41]ExternCall_PrintAddStr [08:06:41]wPrintStart [08:06:41]Write to MH i2c: 01 00 00 E6 61 47 [08:06:41]Write i2c OK [08:06:41]MH_I2C_Read... [08:06:41]Read from MH i2c: 01 [08:06:41]MH_I2C_Read... [08:06:41]Read from MH i2c: 01 07 00 [08:06:41]MH_I2C_Read... [08:06:41]Read from MH i2c: 01 07 00 E6 61 00 00 00 00 00 FF 0F 5C [08:06:41]RasterBufferAndPrint [08:06:41]line Счет N : (1)346900 [08:06:41]line ИНН: 02508201610067 [08:06:41]line Контрольно-Кассовый Чек [08:06:41]line ПРОДАЖА [08:06:41]line ТРК (МРК, ГНК) : 31 [08:06:41]line Товар: 2710124130 [08:06:41]line SUPER-92-К-5 [08:06:41]line 15.320 * 65.30 [08:06:41]line = 1000.40 [08:06:41]line НДС 12% НСП 1% [08:06:41]line > о реализуемом товаре [08:06:41]line ИТОГО: 1000.40 [08:06:41]line НСП 1% : 8.85 [08:06:41]line НДС 12% : 106.24 [08:06:41]line Наличными: 0.00 [08:06:41]line Безнал.: 1000.40 [08:06:41]line Место: АЗС № 108 "Партнер Нефть" [08:06:41]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [08:06:41]line СНО: Общий режим [08:06:41]line Чек 37 12.04.2024 08:06 [08:06:41]line Смена: 113 ФФД: 1.0 [08:06:41]line ЗНМ: 0300000027 [08:06:41]line РНМ: 0000138879044617 [08:06:41]line Версия ККМ: 001 [08:06:41]line Платежная система: АКБ Кыргызстан [08:06:41]line ФМ: 0000000000963154 [08:06:41]line ФД: 28588 [08:06:41]line ФПД: 226904210153693 [08:06:41]line 1/tax-web-control/client/api/v1/ticket?date=20240412T080647&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28588&fm=226904210153693&tin=02508201610067®Number=0000138879044617&sum=100040 [08:06:42]OFD Sender: Processing packet 28588 [packets to send 8, broken 7] [08:06:42]ProducePacketName [08:06:42]name=ofd_packets/00028588 [08:06:42]OFD Sender: To server: pG, [08:06:42]CommunicateWithHost lk.salyk.kg:30040 [08:06:42]ConnectInit lk.salyk.kg [08:06:42]written 0, free lines is 4095 [08:06:42]Connected sock=10 [08:06:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 E0 F5 08 01 40 58 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 3B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 97 EB 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AC 6F 00 00 35 04 06 00 CE 5E 40 D8 20 DD C2 A3 89 37 87 5A 34 17 [08:06:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 FD DC 47 00 02 8D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AC 6F 00 00 F4 03 04 00 41 96 18 66 B6 04 01 00 00 CB 50 08 81 BE E7 E5 D7 [08:06:42]CommunicateWithHost err = 0 [08:06:42]CheckOFDResponse [08:06:42]1017 (14) - 77093643461234 [08:06:42]1041 (16) - 0000000000963154 [08:06:42]1040 (4) - 28588 [08:06:42]1012 (4) - 12.04.2024 02:02 [08:06:42]1206 (1) - 0 [08:06:42]OFD Sender: Remove packet 28588 [08:06:42]ProducePacketName [08:06:42]name=ofd_packets/00028588 [08:06:42]NVStorageDeleteData [08:06:42]Write to MH i2c: 01 00 00 0F 62 71 [08:06:42]Write i2c OK [08:06:42]MH_I2C_Read... [08:06:42]Read from MH i2c: 01 [08:06:42]MH_I2C_Read... [08:06:42]Read from MH i2c: 01 07 00 [08:06:42]MH_I2C_Read... [08:06:42]Read from MH i2c: 01 07 00 0F 62 00 00 00 00 00 EE 0C 72 [08:06:42]RasterBufferAndPrint [08:06:42]line [08:06:42]line [08:06:42]line [08:06:42]line [08:06:42]line [08:06:42]written 0, free lines is 3317 [08:06:42]MH_Cut [08:06:42]Write to MH i2c: D1 01 00 16 62 01 4A [08:06:42]Write i2c OK [08:06:42]MH_I2C_Read... [08:06:42]Read from MH i2c: D1 [08:06:42]MH_I2C_Read... [08:06:42]Read from MH i2c: D1 01 00 [08:06:42]MH_I2C_Read... [08:06:42]Read from MH i2c: D1 01 00 16 62 00 49 [08:06:42]Write to MH i2c: 01 00 00 17 62 79 [08:06:42]Write i2c OK [08:06:42]MH_I2C_Read... [08:06:42]OFD Sender: No OFD packet to send [08:06:43]*** Cut start [08:06:43]*** Partial cut [08:06:43]*** CUTSNS_PIN = 1 [08:06:43]*** CUTSNS_PIN = 0 [08:06:43]*** Brake cut motor [08:06:43]Read from MH i2c: 01 [08:06:43]MH_I2C_Read... [08:06:43]*** Stop cut motor [08:06:43]*** Cut end [08:06:43]Read from MH i2c: 01 07 00 [08:06:43]MH_I2C_Read... [08:06:43]Read from MH i2c: 01 07 00 17 62 00 00 00 00 00 FF 0F 8E [08:06:43]process_action close_receipt done [08:06:43]requested_data is exist [08:06:43]produce_requested_data [08:06:43]requested_item fm.sn is exist - process it [08:06:43]wFMCommunicate request_size=4 [08:06:43]MH_SAM_APDU [08:06:43]CAPDU: 80 11 00 00 [08:06:43]Write to MH i2c: E2 08 00 18 62 80 11 00 00 00 00 00 00 F4 [08:06:43]Write i2c OK [08:06:43]MH_I2C_Read... [08:06:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:06:44]Read from MH i2c: E2 [08:06:44]MH_I2C_Read... [08:06:44]Read from MH i2c: E2 17 00 [08:06:44]MH_I2C_Read... [08:06:44]Read from MH i2c: E2 17 00 18 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 43 [08:06:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:06:44]wFMCommunicate OK [08:06:44]requested_item fd.num is exist - process it [08:06:44]SAM_PROTO_GetFieldsCounters [08:06:44]wFMCommunicate request_size=4 [08:06:44]MH_SAM_APDU [08:06:44]CAPDU: 80 13 00 00 [08:06:44]Write to MH i2c: E2 08 00 19 62 80 13 00 00 00 00 00 00 F7 [08:06:44]Write i2c OK [08:06:44]MH_I2C_Read... [08:06:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:06:44]Read from MH i2c: E2 [08:06:44]MH_I2C_Read... [08:06:44]Read from MH i2c: E2 62 00 [08:06:44]MH_I2C_Read... [08:06:44]Read from MH i2c: E2 62 00 19 62 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 AC 6F 00 00 0E 04 04 00 71 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 30 [08:06:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 AC 6F 00 00 0E 04 04 00 71 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:06:44]wFMCommunicate OK [08:06:44]SAM_PROTO_GetFieldsCounters done [08:06:44]requested_item shift.num is exist - process it [08:06:44]requested_item shift.opened is exist - process it [08:06:44]req_shift_opened [08:06:44]FM_GetShiftState [08:06:44]SAM_PROTO_GetShiftState [08:06:44]wFMCommunicate request_size=4 [08:06:44]MH_SAM_APDU [08:06:44]CAPDU: 80 13 01 00 [08:06:44]Write to MH i2c: E2 08 00 1A 62 80 13 01 00 00 00 00 00 F9 [08:06:44]Write i2c OK [08:06:44]MH_I2C_Read... [08:06:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:06:44]Read from MH i2c: E2 [08:06:44]MH_I2C_Read... [08:06:44]Read from MH i2c: E2 0E 00 [08:06:44]MH_I2C_Read... [08:06:44]Read from MH i2c: E2 0E 00 1A 62 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 0A [08:06:44]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [08:06:44]wFMCommunicate OK [08:06:44]SAM_PROTO_GetShiftState done [08:06:44]FM_GetShiftState done [08:06:44]req_shift_opened done [08:06:44]requested_item shift.open_date is exist - process it [08:06:44]req_shift_open_date [08:06:44]req_shift_open_date done [08:06:44]produce_requested_data done [08:06:44]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28588,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [08:06:44]process_action_free close_receipt [08:06:44]json_value_free [08:06:44]json_value_free done [08:06:44]process_json_proto returns [08:06:44]Send response to host [08:06:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28588,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [08:06:44]free response buf [08:06:44]execute_script done [08:06:44]execute_script returns [08:06:44]free content buf [08:06:44]Sock 7.Close socket [08:06:44]Sock 7.Thread stoped [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]accept exits with 9 [08:07:17]New connection [08:07:17]New thread 3066641764 created [08:07:17]Thread 3066498404 joined [08:07:17]Waiting for new connection... [08:07:17] Sock 9.Parse request [08:07:17]Sock 9.Check first char [08:07:17]Sock 9.First char is OK [08:07:17]request: POST /json_proto HTTP/1.0 [08:07:17]Method: POST [08:07:17]URL: /json_proto [08:07:17]Method is POST - this is cgi request [08:07:17]url: /json_proto [08:07:17]query_string will be loaded in cgi processing [08:07:17]execute_cgi json_proto POST (null) [08:07:17]execute_cgi path=json_proto method=POST [08:07:17]POST find Content-Length [08:07:17]Host: 172.17.33.3:8080 [08:07:17]Content-Length: 679 [08:07:17]Content-Type: application/json [08:07:17] [08:07:17]POST finish read [08:07:17]Found Content-Length = 679 [08:07:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346899", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 38.680, "sum" : 2800.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2800.00, "total" : 2800.00, "payments": [ { "type": 0, "sum" : 2800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:07:17]execute_script... [08:07: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)346899", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 38.680, "sum" : 2800.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2800.00, "total" : 2800.00, "payments": [ { "type": 0, "sum" : 2800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:07:17]POST & json_proto [08:07:17]process_json_proto [08:07:17]json parsed OK: [08:07:17]protocol is kg_v1.0 [08:07:17]action value=close_receipt [08:07:17]process_action close_receipt [08:07:17]cmd_close_receipt [08:07:17]MH_GetDate [08:07:17]Write to MH i2c: F0 00 00 1B 62 6C [08:07:17]Write i2c OK [08:07:17]MH_I2C_Read... [08:07:17]Read from MH i2c: F0 [08:07:17]MH_I2C_Read... [08:07:17]Read from MH i2c: F0 09 00 [08:07:17]MH_I2C_Read... [08:07:17]Read from MH i2c: F0 09 00 1B 62 00 BC EB 18 66 23 5B 8F 65 0C [08:07:17]GetLastDocTimeStamp 1712909207 [08:07:17]current date 1712909244 [08:07:17]FM_GetShiftState [08:07:17]SAM_PROTO_GetShiftState [08:07:17]wFMCommunicate request_size=4 [08:07:17]MH_SAM_APDU [08:07:17]CAPDU: 80 13 01 00 [08:07:17]Write to MH i2c: E2 08 00 1C 62 80 13 01 00 00 00 00 00 FB [08:07:17]Write i2c OK [08:07:17]MH_I2C_Read... [08:07:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:07:17]Read from MH i2c: E2 [08:07:17]MH_I2C_Read... [08:07:17]Read from MH i2c: E2 0E 00 [08:07:17]MH_I2C_Read... [08:07:17]Read from MH i2c: E2 0E 00 1C 62 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 0C [08:07:17]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [08:07:17]wFMCommunicate OK [08:07:17]SAM_PROTO_GetShiftState done [08:07:17]FM_GetShiftState done [08:07:17]opened in 1712881416 [08:07:17]opened+sec_in_day 1712967816 [08:07:17]quantity*price = 280043 [08:07:17]sum+1 = 280044 [08:07:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2800.00 Внесено: 2800.00 СДАЧА: 0.00 НСП 1% : 24.78 НДС 12% : 297.39 Наличными: 2800.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 38 12.04.2024 08:07 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28589 ФПД: 278245003944055 1/tax-web-control/client/api/v1/ticket?date=20240412T080724&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28589&fm=278245003944055&tin=02508201610067®Number=0000138879044617&sum=280000 [08:07:18]StoreToDocumentArchive [08:07:18]shift 113 fd 28589 [08:07:18]save to /storage/0113/doc_00028589 [08:07:18]save last doc name /storage/0113/doc_00028589 to /storage/kkm_last_doc_name [08:07:18]save OK [08:07:18]Clear old archive folders... [08:07:18]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:07:18]tlvbuf is 01B5A5E0 [08:07:18]SAM_PROTO_ClearQueue [08:07:18]wFMCommunicate request_size=4 [08:07:18]MH_SAM_APDU [08:07:18]CAPDU: 80 09 00 00 [08:07:18]Write to MH i2c: E2 08 00 29 62 80 09 00 00 00 00 00 00 FD [08:07:18]Write i2c OK [08:07:18]MH_I2C_Read... [08:07:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:07:18]Read from MH i2c: E2 [08:07:18]MH_I2C_Read... [08:07:18]Read from MH i2c: E2 03 00 [08:07:18]MH_I2C_Read... [08:07:18]Read from MH i2c: E2 03 00 29 62 00 90 00 FF [08:07:18]RAPDU: 90 00 [08:07:18]wFMCommunicate OK [08:07:18]SAM_PROTO_ClearQueue done [08:07:18]KKMCreateOFDPacket [08:07:18]OFDProtocolAddRootSTLVToBuf [08:07:18]FM_MakeSignedData [08:07:18]FM_MakeSignedData [08:07:18]SAM_PROTO_SignData [08:07:18]wFMCommunicate request_size=4 [08:07:18]MH_SAM_APDU [08:07:18]CAPDU: 80 0D 01 02 [08:07:18]Write to MH i2c: E2 08 00 2A 62 80 0D 01 02 00 00 00 00 05 [08:07:18]Write i2c OK [08:07:18]MH_I2C_Read... [08:07:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:07:18]Read from MH i2c: E2 [08:07:18]MH_I2C_Read... [08:07:18]Read from MH i2c: E2 03 00 [08:07:18]MH_I2C_Read... [08:07:18]Read from MH i2c: E2 03 00 2A 62 00 90 00 00 [08:07:18]RAPDU: 90 00 [08:07:18]wFMCommunicate OK [08:07:18]wFMCommunicate request_size=255 [08:07:18]MH_SAM_APDU [08:07: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 35 FF 03 08 00 03 18 97 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 EB 45 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 45 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AE 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2B 74 00 00 00 00 07 04 06 00 C0 45 04 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 BC EB 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AD 6F 00 00 35 04 06 00 FD 0F F6 9E [08:07:18]Write to MH i2c: E2 02 01 2B 62 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 35 FF 03 08 00 03 18 97 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 EB 45 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 45 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AE 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2B 74 00 00 00 00 07 04 06 00 C0 45 04 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 BC EB 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AD 6F 00 00 35 04 06 00 FD 0F F6 9E 00 00 A6 [08:07:18]Write i2c OK [08:07:18]MH_I2C_Read... [08:07:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:07:18]Read from MH i2c: E2 [08:07:18]MH_I2C_Read... [08:07:18]Read from MH i2c: E2 03 00 [08:07:18]MH_I2C_Read... [08:07:18]Read from MH i2c: E2 03 00 2B 62 00 90 00 01 [08:07:18]RAPDU: 90 00 [08:07:18]wFMCommunicate OK [08:07:18]wFMCommunicate request_size=7 [08:07:18]MH_SAM_APDU [08:07:18]CAPDU: 80 0D 02 02 02 E0 77 [08:07:18]Write to MH i2c: E2 0A 00 2C 62 80 0D 02 02 02 00 E0 77 00 00 63 [08:07:18]Write i2c OK [08:07:18]MH_I2C_Read... [08:07:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:07:18]Read from MH i2c: E2 [08:07:18]MH_I2C_Read... [08:07:18]Read from MH i2c: E2 03 00 [08:07:18]MH_I2C_Read... [08:07:18]Read from MH i2c: E2 03 00 2C 62 00 90 00 02 [08:07:18]RAPDU: 90 00 [08:07:18]wFMCommunicate OK [08:07:18]wFMCommunicate request_size=4 [08:07:18]MH_SAM_APDU [08:07:19]CAPDU: 80 0D 03 02 [08:07:19]Write to MH i2c: E2 08 00 2D 62 80 0D 03 02 00 00 00 00 0A [08:07:19]Write i2c OK [08:07:19]MH_I2C_Read... [08:07:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:07:19]Read from MH i2c: E2 [08:07:19]MH_I2C_Read... [08:07:19]Read from MH i2c: E2 0B 00 [08:07:19]MH_I2C_Read... [08:07:19]Read from MH i2c: E2 0B 00 2D 62 00 83 93 F5 FC C4 69 27 2D 90 00 93 [08:07:19]RAPDU: 83 93 F5 FC C4 69 27 2D 90 00 [08:07:19]wFMCommunicate OK [08:07:19]SAM_PROTO_SignData done [08:07:19]FM_MakeSignedData done [08:07:19]CreateOFDProtocolMessage [08:07:19]wFMCommunicate request_size=4 [08:07:19]MH_SAM_APDU [08:07:19]CAPDU: 80 11 00 00 [08:07:19]Write to MH i2c: E2 08 00 2E 62 80 11 00 00 00 00 00 00 0A [08:07:19]Write i2c OK [08:07:19]MH_I2C_Read... [08:07:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:07:19]Read from MH i2c: E2 [08:07:19]MH_I2C_Read... [08:07:19]Read from MH i2c: E2 17 00 [08:07:19]MH_I2C_Read... [08:07:19]Read from MH i2c: E2 17 00 2E 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 59 [08:07:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:07:19]wFMCommunicate OK [08:07:19]CreateOFDProtocolMessage done [08:07:19]OFDSenderStorePacket 28589 [08:07:19]StoreOFDPacket docnum=28589 [08:07:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 86 04 04 01 B8 83 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 18 97 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 EB 45 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 45 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AE 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2B 74 00 00 00 00 07 04 06 00 C0 45 04 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 BC EB 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AD 6F 00 00 35 04 06 00 FD 0F F6 9E E0 77 83 93 F5 FC C4 69 27 2D [08:07:19]CheckFolder [08:07:19]dirname=/storage/ofd_packets [08:07:19]CheckFolder done [08:07:19]ProducePacketName [08:07:19]name=ofd_packets/00028589 [08:07:19]NVStorageSaveData ofd_packets/00028589 [08:07:19]File name is /storage/ofd_packets/00028589 [08:07:19]Write 298 bytes [08:07:19]NVStorageSaveData done [08:07:19]OFDSenderStorePacket done [08:07:19]KKMCreateOFDPacket done [08:07:19]NVStorageSaveData kkm_last_timestamp [08:07:19]File name is /storage/kkm_last_timestamp [08:07:19]Write 4 bytes [08:07:19]NVStorageSaveData done [08:07:19]ExternCall_PrintAddStr [08:07:19]wPrintStart [08:07:19]Write to MH i2c: 01 00 00 2F 62 91 [08:07:19]Write i2c OK [08:07:19]MH_I2C_Read... [08:07:19]Read from MH i2c: 01 [08:07:19]MH_I2C_Read... [08:07:19]Read from MH i2c: 01 07 00 [08:07:19]MH_I2C_Read... [08:07:19]Read from MH i2c: 01 07 00 2F 62 00 00 00 00 00 FF 0F A6 [08:07:19]RasterBufferAndPrint [08:07:19]line Счет N : (1)346899 [08:07:19]line ИНН: 02508201610067 [08:07:19]line Контрольно-Кассовый Чек [08:07:19]line ПРОДАЖА [08:07:19]line ТРК (МРК, ГНК) : 11 [08:07:19]line Товар: 2710194210 [08:07:19]line ДТ-К-5 [08:07:19]line 38.680 * 72.40 [08:07:19]line = 2800.43 [08:07:19]line НДС 12% НСП 1% [08:07:19]line > о реализуемом товаре [08:07:19]line ОКРУГЛЕНИЕ: -0.43 [08:07:19]line ИТОГО: 2800.00 [08:07:19]line Внесено: 2800.00 [08:07:19]line СДАЧА: 0.00 [08:07:19]line НСП 1% : 24.78 [08:07:19]line НДС 12% : 297.39 [08:07:19]line Наличными: 2800.00 [08:07:19]line Безнал.: 0.00 [08:07:19]line Место: АЗС № 108 "Партнер Нефть" [08:07:19]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [08:07:19]line СНО: Общий режим [08:07:19]line Чек 38 12.04.2024 08:07 [08:07:19]line Смена: 113 ФФД: 1.0 [08:07:19]line ЗНМ: 0300000027 [08:07:19]line РНМ: 0000138879044617 [08:07:19]line Версия ККМ: 001 [08:07:19]line ФМ: 0000000000963154 [08:07:19]line ФД: 28589 [08:07:19]line ФПД: 278245003944055 [08:07:19]line 1/tax-web-control/client/api/v1/ticket?date=20240412T080724&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28589&fm=278245003944055&tin=02508201610067®Number=0000138879044617&sum=280000 [08:07:19]OFD Sender: Processing packet 28589 [packets to send 8, broken 7] [08:07:19]ProducePacketName [08:07:19]name=ofd_packets/00028589 [08:07:19]OFD Sender: To server: pG, [08:07:19]CommunicateWithHost lk.salyk.kg:30040 [08:07:19]ConnectInit lk.salyk.kg [08:07:19]written 0, free lines is 4095 [08:07:19]Connected sock=11 [08:07:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 86 04 04 01 B8 83 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 18 97 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 EB 45 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 45 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AE 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2B 74 00 00 00 00 07 04 06 00 C0 45 04 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 BC EB 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AD 6F 00 00 35 04 06 00 FD 0F F6 9E E0 77 83 93 F5 FC C4 69 27 2D [08:07:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 A4 52 47 00 23 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 30 39 36 33 31 35 34 10 04 04 00 AD 6F 00 00 F4 03 04 00 67 96 18 66 B6 04 01 00 00 05 44 1D D1 AC 7B D3 4B [08:07:19]CommunicateWithHost err = 0 [08:07:19]CheckOFDResponse [08:07:19]1017 (14) - 77093643461234 [08:07:19]1041 (16) - 0000000000963154 [08:07:19]1040 (4) - 28589 [08:07:19]1012 (4) - 12.04.2024 02:03 [08:07:19]1206 (1) - 0 [08:07:19]OFD Sender: Remove packet 28589 [08:07:19]ProducePacketName [08:07:19]name=ofd_packets/00028589 [08:07:19]NVStorageDeleteData [08:07:19]Write to MH i2c: 01 00 00 59 62 BB [08:07:19]Write i2c OK [08:07:19]MH_I2C_Read... [08:07:19]Read from MH i2c: 01 [08:07:19]MH_I2C_Read... [08:07:19]Read from MH i2c: 01 07 00 [08:07:19]MH_I2C_Read... [08:07:19]Read from MH i2c: 01 07 00 59 62 00 00 00 00 00 CF 0C 9D [08:07:19]RasterBufferAndPrint [08:07:19]line [08:07:19]line [08:07:19]line [08:07:19]line [08:07:19]line [08:07:19]written 0, free lines is 3283 [08:07:19]MH_Cut [08:07:19]Write to MH i2c: D1 01 00 60 62 01 94 [08:07:19]Write i2c OK [08:07:19]MH_I2C_Read... [08:07:19]Read from MH i2c: D1 [08:07:19]MH_I2C_Read... [08:07:19]Read from MH i2c: D1 01 00 [08:07:19]MH_I2C_Read... [08:07:19]Read from MH i2c: D1 01 00 60 62 00 93 [08:07:19]Write to MH i2c: 01 00 00 61 62 C3 [08:07:19]Write i2c OK [08:07:19]MH_I2C_Read... [08:07:20]OFD Sender: No OFD packet to send [08:07:20]*** Cut start [08:07:20]*** Partial cut [08:07:20]*** CUTSNS_PIN = 1 [08:07:20]*** CUTSNS_PIN = 0 [08:07:21]*** Brake cut motor [08:07:21]Read from MH i2c: 01 [08:07:21]MH_I2C_Read... [08:07:21]*** Stop cut motor [08:07:21]*** Cut end [08:07:21]Read from MH i2c: 01 07 00 [08:07:21]MH_I2C_Read... [08:07:21]Read from MH i2c: 01 07 00 61 62 00 00 00 00 00 FF 0F D8 [08:07:21]process_action close_receipt done [08:07:21]requested_data is exist [08:07:21]produce_requested_data [08:07:21]requested_item fm.sn is exist - process it [08:07:21]wFMCommunicate request_size=4 [08:07:21]MH_SAM_APDU [08:07:21]CAPDU: 80 11 00 00 [08:07:21]Write to MH i2c: E2 08 00 62 62 80 11 00 00 00 00 00 00 3E [08:07:21]Write i2c OK [08:07:21]MH_I2C_Read... [08:07:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:07:21]Read from MH i2c: E2 [08:07:21]MH_I2C_Read... [08:07:21]Read from MH i2c: E2 17 00 [08:07:21]MH_I2C_Read... [08:07:21]Read from MH i2c: E2 17 00 62 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 8D [08:07:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:07:21]wFMCommunicate OK [08:07:21]requested_item fd.num is exist - process it [08:07:21]SAM_PROTO_GetFieldsCounters [08:07:21]wFMCommunicate request_size=4 [08:07:21]MH_SAM_APDU [08:07:21]CAPDU: 80 13 00 00 [08:07:21]Write to MH i2c: E2 08 00 63 62 80 13 00 00 00 00 00 00 41 [08:07:21]Write i2c OK [08:07:21]MH_I2C_Read... [08:07:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:07:21]Read from MH i2c: E2 [08:07:21]MH_I2C_Read... [08:07:21]Read from MH i2c: E2 62 00 [08:07:21]MH_I2C_Read... [08:07:21]Read from MH i2c: E2 62 00 63 62 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 AD 6F 00 00 0E 04 04 00 71 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 7E [08:07:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 AD 6F 00 00 0E 04 04 00 71 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:07:21]wFMCommunicate OK [08:07:21]SAM_PROTO_GetFieldsCounters done [08:07:21]requested_item shift.num is exist - process it [08:07:21]requested_item shift.opened is exist - process it [08:07:21]req_shift_opened [08:07:21]FM_GetShiftState [08:07:21]SAM_PROTO_GetShiftState [08:07:21]wFMCommunicate request_size=4 [08:07:21]MH_SAM_APDU [08:07:21]CAPDU: 80 13 01 00 [08:07:21]Write to MH i2c: E2 08 00 64 62 80 13 01 00 00 00 00 00 43 [08:07:21]Write i2c OK [08:07:21]MH_I2C_Read... [08:07:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:07:21]Read from MH i2c: E2 [08:07:21]MH_I2C_Read... [08:07:21]Read from MH i2c: E2 0E 00 [08:07:21]MH_I2C_Read... [08:07:21]Read from MH i2c: E2 0E 00 64 62 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 54 [08:07:21]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [08:07:21]wFMCommunicate OK [08:07:21]SAM_PROTO_GetShiftState done [08:07:21]FM_GetShiftState done [08:07:21]req_shift_opened done [08:07:21]requested_item shift.open_date is exist - process it [08:07:21]req_shift_open_date [08:07:21]req_shift_open_date done [08:07:21]produce_requested_data done [08:07:21]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28589,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [08:07:21]process_action_free close_receipt [08:07:21]json_value_free [08:07:21]json_value_free done [08:07:21]process_json_proto returns [08:07:21]Send response to host [08:07:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28589,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [08:07:21]free response buf [08:07:21]execute_script done [08:07:21]execute_script returns [08:07:21]free content buf [08:07:21]Sock 9.Close socket [08:07:21]Sock 9.Thread stoped [08:07:25]OFD Sender: No OFD packet to send [08:07:30]OFD Sender: No OFD packet to send [08:07:35]OFD Sender: No OFD packet to send [08:07:40]OFD Sender: No OFD packet to send [08:07:45]OFD Sender: No OFD packet to send [08:07:50]OFD Sender: No OFD packet to send [08:07:55]OFD Sender: No OFD packet to send [08:08:00]OFD Sender: No OFD packet to send [08:08:05]OFD Sender: No OFD packet to send [08:08:10]OFD Sender: No OFD packet to send [08:08:15]OFD Sender: No OFD packet to send [08:08:20]OFD Sender: No OFD packet to send [08:08:25]OFD Sender: No OFD packet to send [08:08:30]OFD Sender: No OFD packet to send [08:08:35]OFD Sender: No OFD packet to send [08:08:40]OFD Sender: No OFD packet to send [08:08:45]OFD Sender: No OFD packet to send [08:08:50]OFD Sender: No OFD packet to send [08:08:55]OFD Sender: No OFD packet to send [08:09:00]OFD Sender: No OFD packet to send [08:09:05]OFD Sender: No OFD packet to send [08:09:10]OFD Sender: No OFD packet to send [08:09:15]OFD Sender: No OFD packet to send [08:09:20]OFD Sender: No OFD packet to send [08:09:25]OFD Sender: No OFD packet to send [08:09:30]OFD Sender: No OFD packet to send [08:09:35]OFD Sender: No OFD packet to send [08:09:40]OFD Sender: No OFD packet to send [08:09:45]OFD Sender: No OFD packet to send [08:09:50]OFD Sender: No OFD packet to send [08:09:55]accept exits with 7 [08:09:55]New connection [08:09:55]New thread 3066498404 created [08:09:55]Thread 3066641764 joined [08:09:55]Waiting for new connection... [08:09:55] Sock 7.Parse request [08:09:55]Sock 7.Check first char [08:09:55]Sock 7.First char is OK [08:09:55]request: POST /json_proto HTTP/1.0 [08:09:55]Method: POST [08:09:55]URL: /json_proto [08:09:55]Method is POST - this is cgi request [08:09:55]url: /json_proto [08:09:55]query_string will be loaded in cgi processing [08:09:55]execute_cgi json_proto POST (null) [08:09:55]execute_cgi path=json_proto method=POST [08:09:55]POST find Content-Length [08:09:55]Host: 172.17.33.3:8080 [08:09:55]Content-Length: 843 [08:09:55]Content-Type: application/json [08:09:55] [08:09:55]POST finish read [08:09:55]Found Content-Length = 843 [08:09:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346901", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 15.560, "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" ] } } [08:09:55]execute_script... [08:09:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346901", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 15.560, "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" ] } } [08:09:55]POST & json_proto [08:09:55]process_json_proto [08:09:55]json parsed OK: [08:09:55]protocol is kg_v1.0 [08:09:55]action value=close_receipt [08:09:55]process_action close_receipt [08:09:55]cmd_close_receipt [08:09:55]MH_GetDate [08:09:55]Write to MH i2c: F0 00 00 65 62 B6 [08:09:55]Write i2c OK [08:09:55]MH_I2C_Read... [08:09:55]Read from MH i2c: F0 [08:09:55]MH_I2C_Read... [08:09:55]Read from MH i2c: F0 09 00 [08:09:55]MH_I2C_Read... [08:09:55]Read from MH i2c: F0 09 00 65 62 00 5A EC 18 66 23 5B 8F 65 F5 [08:09:55]GetLastDocTimeStamp 1712909244 [08:09:55]current date 1712909402 [08:09:55]FM_GetShiftState [08:09:55]SAM_PROTO_GetShiftState [08:09:55]wFMCommunicate request_size=4 [08:09:55]MH_SAM_APDU [08:09:55]CAPDU: 80 13 01 00 [08:09:55]Write to MH i2c: E2 08 00 66 62 80 13 01 00 00 00 00 00 45 [08:09:55]Write i2c OK [08:09:55]MH_I2C_Read... [08:09:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:09:55]OFD Sender: No OFD packet to send [08:09:55]Read from MH i2c: E2 [08:09:55]MH_I2C_Read... [08:09:55]Read from MH i2c: E2 0E 00 [08:09:55]MH_I2C_Read... [08:09:55]Read from MH i2c: E2 0E 00 66 62 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 56 [08:09:55]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [08:09:55]wFMCommunicate OK [08:09:55]SAM_PROTO_GetShiftState done [08:09:55]FM_GetShiftState done [08:09:55]opened in 1712881416 [08:09:55]opened+sec_in_day 1712967816 [08:09:55]quantity*price = 100050 [08:09:55]sum+1 = 100052 [08:09:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 39 12.04.2024 08:10 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 28590 ФПД: 3632408408693 1/tax-web-control/client/api/v1/ticket?date=20240412T081002&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28590&fm=3632408408693&tin=02508201610067®Number=0000138879044617&sum=100051 [08:09:56]StoreToDocumentArchive [08:09:56]shift 113 fd 28590 [08:09:56]save to /storage/0113/doc_00028590 [08:09:56]save last doc name /storage/0113/doc_00028590 to /storage/kkm_last_doc_name [08:09:56]save OK [08:09:56]Clear old archive folders... [08:09:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:09:56]tlvbuf is 01AFA730 [08:09:56]SAM_PROTO_ClearQueue [08:09:56]wFMCommunicate request_size=4 [08:09:56]MH_SAM_APDU [08:09:56]CAPDU: 80 09 00 00 [08:09:56]Write to MH i2c: E2 08 00 73 62 80 09 00 00 00 00 00 00 47 [08:09:56]Write i2c OK [08:09:56]MH_I2C_Read... [08:09:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:09:56]Read from MH i2c: E2 [08:09:56]MH_I2C_Read... [08:09:56]Read from MH i2c: E2 03 00 [08:09:56]MH_I2C_Read... [08:09:56]Read from MH i2c: E2 03 00 73 62 00 90 00 49 [08:09:56]RAPDU: 90 00 [08:09:56]wFMCommunicate OK [08:09:56]SAM_PROTO_ClearQueue done [08:09:56]KKMCreateOFDPacket [08:09:56]OFDProtocolAddRootSTLVToBuf [08:09:56]FM_MakeSignedData [08:09:56]FM_MakeSignedData [08:09:56]SAM_PROTO_SignData [08:09:56]wFMCommunicate request_size=4 [08:09:56]MH_SAM_APDU [08:09:56]CAPDU: 80 0D 01 02 [08:09:56]Write to MH i2c: E2 08 00 74 62 80 0D 01 02 00 00 00 00 4F [08:09:56]Write i2c OK [08:09:56]MH_I2C_Read... [08:09:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:09:56]Read from MH i2c: E2 [08:09:56]MH_I2C_Read... [08:09:56]Read from MH i2c: E2 03 00 [08:09:56]MH_I2C_Read... [08:09:56]Read from MH i2c: E2 03 00 74 62 00 90 00 4A [08:09:56]RAPDU: 90 00 [08:09:56]wFMCommunicate OK [08:09:56]wFMCommunicate request_size=255 [08:09:56]MH_SAM_APDU [08:09:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 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 27 00 00 00 F4 03 04 00 5A EC 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AE 6F 00 00 35 04 06 00 03 [08:09:56]Write to MH i2c: E2 02 01 75 62 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 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 27 00 00 00 F4 03 04 00 5A EC 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AE 6F 00 00 35 04 06 00 03 00 00 5D [08:09:56]Write i2c OK [08:09:56]MH_I2C_Read... [08:09:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:09:56]Read from MH i2c: E2 [08:09:56]MH_I2C_Read... [08:09:56]Read from MH i2c: E2 03 00 [08:09:56]MH_I2C_Read... [08:09:56]Read from MH i2c: E2 03 00 75 62 00 90 00 4B [08:09:56]RAPDU: 90 00 [08:09:56]wFMCommunicate OK [08:09:56]wFMCommunicate request_size=10 [08:09:56]MH_SAM_APDU [08:09:56]CAPDU: 80 0D 02 02 05 4D BC 69 B2 75 [08:09:56]Write to MH i2c: E2 0D 00 76 62 80 0D 02 02 05 00 4D BC 69 B2 75 00 00 F5 [08:09:56]Write i2c OK [08:09:56]MH_I2C_Read... [08:09:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:09:56]Read from MH i2c: E2 [08:09:56]MH_I2C_Read... [08:09:56]Read from MH i2c: E2 03 00 [08:09:56]MH_I2C_Read... [08:09:56]Read from MH i2c: E2 03 00 76 62 00 90 00 4C [08:09:56]RAPDU: 90 00 [08:09:56]wFMCommunicate OK [08:09:56]wFMCommunicate request_size=4 [08:09:56]MH_SAM_APDU [08:09:56]CAPDU: 80 0D 03 02 [08:09:56]Write to MH i2c: E2 08 00 77 62 80 0D 03 02 00 00 00 00 54 [08:09:56]Write i2c OK [08:09:56]MH_I2C_Read... [08:09:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:09:56]Read from MH i2c: E2 [08:09:56]MH_I2C_Read... [08:09:56]Read from MH i2c: E2 0B 00 [08:09:56]MH_I2C_Read... [08:09:56]Read from MH i2c: E2 0B 00 77 62 00 9D E4 A3 23 10 4E 11 97 90 00 A2 [08:09:56]RAPDU: 9D E4 A3 23 10 4E 11 97 90 00 [08:09:56]wFMCommunicate OK [08:09:56]SAM_PROTO_SignData done [08:09:56]FM_MakeSignedData done [08:09:56]CreateOFDProtocolMessage [08:09:56]wFMCommunicate request_size=4 [08:09:56]MH_SAM_APDU [08:09:56]CAPDU: 80 11 00 00 [08:09:56]Write to MH i2c: E2 08 00 78 62 80 11 00 00 00 00 00 00 54 [08:09:56]Write i2c OK [08:09:56]MH_I2C_Read... [08:09:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:09:57]Read from MH i2c: E2 [08:09:57]MH_I2C_Read... [08:09:57]Read from MH i2c: E2 17 00 [08:09:57]MH_I2C_Read... [08:09:57]Read from MH i2c: E2 17 00 78 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 A3 [08:09:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:09:57]wFMCommunicate OK [08:09:57]CreateOFDProtocolMessage done [08:09:57]OFDSenderStorePacket 28590 [08:09:57]StoreOFDPacket docnum=28590 [08:09:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 6C 69 07 01 DE 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 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 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 27 00 00 00 F4 03 04 00 5A EC 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AE 6F 00 00 35 04 06 00 03 4D BC 69 B2 75 9D E4 A3 23 10 4E 11 97 [08:09:57]CheckFolder [08:09:57]dirname=/storage/ofd_packets [08:09:57]CheckFolder done [08:09:57]ProducePacketName [08:09:57]name=ofd_packets/00028590 [08:09:57]NVStorageSaveData ofd_packets/00028590 [08:09:57]File name is /storage/ofd_packets/00028590 [08:09:57]Write 301 bytes [08:09:57]NVStorageSaveData done [08:09:57]OFDSenderStorePacket done [08:09:57]KKMCreateOFDPacket done [08:09:57]NVStorageSaveData kkm_last_timestamp [08:09:57]File name is /storage/kkm_last_timestamp [08:09:57]Write 4 bytes [08:09:57]NVStorageSaveData done [08:09:57]ExternCall_PrintAddStr [08:09:57]wPrintStart [08:09:57]Write to MH i2c: 01 00 00 79 62 DB [08:09:57]Write i2c OK [08:09:57]MH_I2C_Read... [08:09:57]Read from MH i2c: 01 [08:09:57]MH_I2C_Read... [08:09:57]Read from MH i2c: 01 07 00 [08:09:57]MH_I2C_Read... [08:09:57]Read from MH i2c: 01 07 00 79 62 00 00 00 00 00 FF 0F F0 [08:09:57]RasterBufferAndPrint [08:09:57]line Счет N : (1)346901 [08:09:57]line ИНН: 02508201610067 [08:09:57]line Контрольно-Кассовый Чек [08:09:57]line ПРОДАЖА [08:09:57]line ТРК (МРК, ГНК) : 32 [08:09:57]line Товар: 2710124130 [08:09:57]line Аи-92-К-5 [08:09:57]line 15.560 * 64.30 [08:09:57]line = 1000.51 [08:09:57]line НДС 12% НСП 1% [08:09:57]line > о реализуемом товаре [08:09:57]line ИТОГО: 1000.51 [08:09:57]line НСП 1% : 8.85 [08:09:57]line НДС 12% : 106.25 [08:09:57]line Наличными: 0.00 [08:09:57]line Безнал.: 1000.51 [08:09:57]line Место: АЗС № 108 "Партнер Нефть" [08:09:57]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [08:09:57]line СНО: Общий режим [08:09:57]line Чек 39 12.04.2024 08:10 [08:09:57]line Смена: 113 ФФД: 1.0 [08:09:57]line ЗНМ: 0300000027 [08:09:57]line РНМ: 0000138879044617 [08:09:57]line Версия ККМ: 001 [08:09:57]line Платежная система: АКБ Кыргызстан [08:09:57]line ФМ: 0000000000963154 [08:09:57]line ФД: 28590 [08:09:57]line ФПД: 3632408408693 [08:09:57]line 1/tax-web-control/client/api/v1/ticket?date=20240412T081002&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28590&fm=3632408408693&tin=02508201610067®Number=0000138879044617&sum=100051 [08:09:57]OFD Sender: Processing packet 28590 [packets to send 8, broken 7] [08:09:57]ProducePacketName [08:09:57]name=ofd_packets/00028590 [08:09:57]OFD Sender: To server: pG, [08:09:57]CommunicateWithHost lk.salyk.kg:30040 [08:09:57]ConnectInit lk.salyk.kg [08:09:57]written 0, free lines is 4095 [08:09:57]Connected sock=10 [08:09:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 6C 69 07 01 DE 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 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 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 27 00 00 00 F4 03 04 00 5A EC 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AE 6F 00 00 35 04 06 00 03 4D BC 69 B2 75 9D E4 A3 23 10 4E 11 97 [08:09:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 7F 25 47 00 71 25 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AE 6F 00 00 F4 03 04 00 05 97 18 66 B6 04 01 00 00 CE 04 02 F5 F8 49 72 AA [08:09:57]CommunicateWithHost err = 0 [08:09:57]CheckOFDResponse [08:09:57]1017 (14) - 77093643461234 [08:09:57]1041 (16) - 0000000000963154 [08:09:57]1040 (4) - 28590 [08:09:57]1012 (4) - 12.04.2024 02:05 [08:09:57]1206 (1) - 0 [08:09:57]OFD Sender: Remove packet 28590 [08:09:57]ProducePacketName [08:09:57]name=ofd_packets/00028590 [08:09:57]NVStorageDeleteData [08:09:57]Write to MH i2c: 01 00 00 A2 62 04 [08:09:57]Write i2c OK [08:09:57]MH_I2C_Read... [08:09:57]Read from MH i2c: 01 [08:09:57]MH_I2C_Read... [08:09:57]Read from MH i2c: 01 07 00 [08:09:57]MH_I2C_Read... [08:09:57]Read from MH i2c: 01 07 00 A2 62 00 00 00 00 00 DB 0C F2 [08:09:57]RasterBufferAndPrint [08:09:57]line [08:09:57]line [08:09:57]line [08:09:57]line [08:09:57]line [08:09:57]written 0, free lines is 3297 [08:09:57]MH_Cut [08:09:57]Write to MH i2c: D1 01 00 A9 62 01 DD [08:09:57]Write i2c OK [08:09:57]MH_I2C_Read... [08:09:57]Read from MH i2c: D1 [08:09:57]MH_I2C_Read... [08:09:57]Read from MH i2c: D1 01 00 [08:09:57]MH_I2C_Read... [08:09:57]Read from MH i2c: D1 01 00 A9 62 00 DC [08:09:57]Write to MH i2c: 01 00 00 AA 62 0C [08:09:57]Write i2c OK [08:09:57]MH_I2C_Read... [08:09:58]OFD Sender: No OFD packet to send [08:09:58]*** Cut start [08:09:58]*** Partial cut [08:09:58]*** CUTSNS_PIN = 1 [08:09:58]*** CUTSNS_PIN = 0 [08:09:58]*** Brake cut motor [08:09:59]Read from MH i2c: 01 [08:09:59]MH_I2C_Read... [08:09:59]*** Stop cut motor [08:09:59]*** Cut end [08:09:59]Read from MH i2c: 01 07 00 [08:09:59]MH_I2C_Read... [08:09:59]Read from MH i2c: 01 07 00 AA 62 00 00 00 00 00 FF 0F 21 [08:09:59]process_action close_receipt done [08:09:59]requested_data is exist [08:09:59]produce_requested_data [08:09:59]requested_item fm.sn is exist - process it [08:09:59]wFMCommunicate request_size=4 [08:09:59]MH_SAM_APDU [08:09:59]CAPDU: 80 11 00 00 [08:09:59]Write to MH i2c: E2 08 00 AB 62 80 11 00 00 00 00 00 00 87 [08:09:59]Write i2c OK [08:09:59]MH_I2C_Read... [08:09:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:09:59]Read from MH i2c: E2 [08:09:59]MH_I2C_Read... [08:09:59]Read from MH i2c: E2 17 00 [08:09:59]MH_I2C_Read... [08:09:59]Read from MH i2c: E2 17 00 AB 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D6 [08:09:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:09:59]wFMCommunicate OK [08:09:59]requested_item fd.num is exist - process it [08:09:59]SAM_PROTO_GetFieldsCounters [08:09:59]wFMCommunicate request_size=4 [08:09:59]MH_SAM_APDU [08:09:59]CAPDU: 80 13 00 00 [08:09:59]Write to MH i2c: E2 08 00 AC 62 80 13 00 00 00 00 00 00 8A [08:09:59]Write i2c OK [08:09:59]MH_I2C_Read... [08:09:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:09:59]Read from MH i2c: E2 [08:09:59]MH_I2C_Read... [08:09:59]Read from MH i2c: E2 62 00 [08:09:59]MH_I2C_Read... [08:09:59]Read from MH i2c: E2 62 00 AC 62 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 AE 6F 00 00 0E 04 04 00 71 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 CB [08:09:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 AE 6F 00 00 0E 04 04 00 71 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:09:59]wFMCommunicate OK [08:09:59]SAM_PROTO_GetFieldsCounters done [08:09:59]requested_item shift.num is exist - process it [08:09:59]requested_item shift.opened is exist - process it [08:09:59]req_shift_opened [08:09:59]FM_GetShiftState [08:09:59]SAM_PROTO_GetShiftState [08:09:59]wFMCommunicate request_size=4 [08:09:59]MH_SAM_APDU [08:09:59]CAPDU: 80 13 01 00 [08:09:59]Write to MH i2c: E2 08 00 AD 62 80 13 01 00 00 00 00 00 8C [08:09:59]Write i2c OK [08:09:59]MH_I2C_Read... [08:09:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:09:59]Read from MH i2c: E2 [08:09:59]MH_I2C_Read... [08:09:59]Read from MH i2c: E2 0E 00 [08:09:59]MH_I2C_Read... [08:09:59]Read from MH i2c: E2 0E 00 AD 62 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 9D [08:09:59]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [08:09:59]wFMCommunicate OK [08:09:59]SAM_PROTO_GetShiftState done [08:09:59]FM_GetShiftState done [08:09:59]req_shift_opened done [08:09:59]requested_item shift.open_date is exist - process it [08:09:59]req_shift_open_date [08:09:59]req_shift_open_date done [08:09:59]produce_requested_data done [08:09:59]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28590,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [08:09:59]process_action_free close_receipt [08:09:59]json_value_free [08:09:59]json_value_free done [08:09:59]process_json_proto returns [08:09:59]Send response to host [08:09:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28590,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [08:09:59]free response buf [08:09:59]execute_script done [08:09:59]execute_script returns [08:09:59]free content buf [08:09:59]Sock 7.Close socket [08:09:59]Sock 7.Thread stoped [08:10:03]OFD Sender: No OFD packet to send [08:10:08]OFD Sender: No OFD packet to send [08:10:13]OFD Sender: No OFD packet to send [08:10:18]OFD Sender: No OFD packet to send [08:10:23]OFD Sender: No OFD packet to send [08:10:28]OFD Sender: No OFD packet to send [08:10:33]OFD Sender: No OFD packet to send [08:10:38]OFD Sender: No OFD packet to send [08:10:43]OFD Sender: No OFD packet to send [08:10:48]OFD Sender: No OFD packet to send [08:10:53]OFD Sender: No OFD packet to send [08:10:58]OFD Sender: No OFD packet to send [08:11:03]OFD Sender: No OFD packet to send [08:11:08]OFD Sender: No OFD packet to send [08:11:13]OFD Sender: No OFD packet to send [08:11:18]OFD Sender: No OFD packet to send [08:11:23]OFD Sender: No OFD packet to send [08:11:28]OFD Sender: No OFD packet to send [08:11:33]OFD Sender: No OFD packet to send [08:11:38]OFD Sender: No OFD packet to send [08:11:43]OFD Sender: No OFD packet to send [08:11:48]OFD Sender: No OFD packet to send [08:11:53]OFD Sender: No OFD packet to send [08:11:58]OFD Sender: No OFD packet to send [08:12:03]OFD Sender: No OFD packet to send [08:12:08]OFD Sender: No OFD packet to send [08:12:13]OFD Sender: No OFD packet to send [08:12:18]OFD Sender: No OFD packet to send [08:12:23]OFD Sender: No OFD packet to send [08:12:28]OFD Sender: No OFD packet to send [08:12:33]OFD Sender: No OFD packet to send [08:12:38]OFD Sender: No OFD packet to send [08:12:43]OFD Sender: No OFD packet to send [08:12:48]OFD Sender: No OFD packet to send [08:12:53]OFD Sender: No OFD packet to send [08:12:58]OFD Sender: No OFD packet to send [08:13:03]OFD Sender: No OFD packet to send [08:13:08]OFD Sender: No OFD packet to send [08:13:13]OFD Sender: No OFD packet to send [08:13:18]OFD Sender: No OFD packet to send [08:13:23]OFD Sender: No OFD packet to send [08:13:28]OFD Sender: No OFD packet to send [08:13:33]OFD Sender: No OFD packet to send [08:13:36]accept exits with 9 [08:13:36]New connection [08:13:36]New thread 3066641764 created [08:13:36]Thread 3066498404 joined [08:13:36]Waiting for new connection... [08:13:36] Sock 9.Parse request [08:13:36]Sock 9.Check first char [08:13:36]Sock 9.First char is OK [08:13:36]request: POST /json_proto HTTP/1.0 [08:13:36]Method: POST [08:13:36]URL: /json_proto [08:13:36]Method is POST - this is cgi request [08:13:36]url: /json_proto [08:13:36]query_string will be loaded in cgi processing [08:13:36]execute_cgi json_proto POST (null) [08:13:36]execute_cgi path=json_proto method=POST [08:13:36]POST find Content-Length [08:13:36]Host: 172.17.33.3:8080 [08:13:36]Content-Length: 685 [08:13:36]Content-Type: application/json [08:13:36] [08:13:36]POST finish read [08:13:36]Found Content-Length = 685 [08:13:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346902", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 44.470, "sum" : 1463.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1463.00, "payments": [ { "type": 0, "sum" : 1463.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:13:36]execute_script... [08:13: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)346902", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 44.470, "sum" : 1463.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1463.00, "payments": [ { "type": 0, "sum" : 1463.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:13:36]POST & json_proto [08:13:36]process_json_proto [08:13:36]json parsed OK: [08:13:36]protocol is kg_v1.0 [08:13:36]action value=close_receipt [08:13:36]process_action close_receipt [08:13:36]cmd_close_receipt [08:13:36]MH_GetDate [08:13:36]Write to MH i2c: F0 00 00 AE 62 FF [08:13:36]Write i2c OK [08:13:36]MH_I2C_Read... [08:13:36]Read from MH i2c: F0 [08:13:36]MH_I2C_Read... [08:13:36]Read from MH i2c: F0 09 00 [08:13:36]MH_I2C_Read... [08:13:36]Read from MH i2c: F0 09 00 AE 62 00 37 ED 18 66 23 5B 8F 65 1C [08:13:36]GetLastDocTimeStamp 1712909402 [08:13:36]current date 1712909623 [08:13:36]FM_GetShiftState [08:13:36]SAM_PROTO_GetShiftState [08:13:36]wFMCommunicate request_size=4 [08:13:36]MH_SAM_APDU [08:13:36]CAPDU: 80 13 01 00 [08:13:36]Write to MH i2c: E2 08 00 AF 62 80 13 01 00 00 00 00 00 8E [08:13:36]Write i2c OK [08:13:36]MH_I2C_Read... [08:13:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:13:36]Read from MH i2c: E2 [08:13:36]MH_I2C_Read... [08:13:36]Read from MH i2c: E2 0E 00 [08:13:36]MH_I2C_Read... [08:13:36]Read from MH i2c: E2 0E 00 AF 62 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 9F [08:13:36]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [08:13:36]wFMCommunicate OK [08:13:36]SAM_PROTO_GetShiftState done [08:13:36]FM_GetShiftState done [08:13:36]opened in 1712881416 [08:13:36]opened+sec_in_day 1712967816 [08:13:36]quantity*price = 146306 [08:13:36]sum+1 = 146307 [08:13:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 1463.00 Внесено: 2000.00 СДАЧА: 537.00 НСП 1% : 12.95 НДС 12% : 155.37 Наличными: 1463.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 40 12.04.2024 08:13 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28591 ФПД: 16069183302529 1/tax-web-control/client/api/v1/ticket?date=20240412T081343&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28591&fm=16069183302529&tin=02508201610067®Number=0000138879044617&sum=146300 [08:13:37]StoreToDocumentArchive [08:13:37]shift 113 fd 28591 [08:13:37]save to /storage/0113/doc_00028591 [08:13:37]save last doc name /storage/0113/doc_00028591 to /storage/kkm_last_doc_name [08:13:37]save OK [08:13:37]Clear old archive folders... [08:13:37]ProcessDocumentItem done err = 0, tmpTLVsize=250 [08:13:37]tlvbuf is 01AFA7B0 [08:13:37]SAM_PROTO_ClearQueue [08:13:37]wFMCommunicate request_size=4 [08:13:37]MH_SAM_APDU [08:13:37]CAPDU: 80 09 00 00 [08:13:37]Write to MH i2c: E2 08 00 BC 62 80 09 00 00 00 00 00 00 90 [08:13:37]Write i2c OK [08:13:37]MH_I2C_Read... [08:13:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:13:37]Read from MH i2c: E2 [08:13:37]MH_I2C_Read... [08:13:37]Read from MH i2c: E2 03 00 [08:13:37]MH_I2C_Read... [08:13:37]Read from MH i2c: E2 03 00 BC 62 00 90 00 92 [08:13:37]RAPDU: 90 00 [08:13:37]wFMCommunicate OK [08:13:37]SAM_PROTO_ClearQueue done [08:13:37]KKMCreateOFDPacket [08:13:37]OFDProtocolAddRootSTLVToBuf [08:13:37]FM_MakeSignedData [08:13:37]FM_MakeSignedData [08:13:37]SAM_PROTO_SignData [08:13:37]wFMCommunicate request_size=4 [08:13:37]MH_SAM_APDU [08:13:37]CAPDU: 80 0D 01 02 [08:13:37]Write to MH i2c: E2 08 00 BD 62 80 0D 01 02 00 00 00 00 98 [08:13:37]Write i2c OK [08:13:37]MH_I2C_Read... [08:13:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:13:37]Read from MH i2c: E2 [08:13:37]MH_I2C_Read... [08:13:37]Read from MH i2c: E2 03 00 [08:13:37]MH_I2C_Read... [08:13:37]Read from MH i2c: E2 03 00 BD 62 00 90 00 93 [08:13:37]RAPDU: 90 00 [08:13:37]wFMCommunicate OK [08:13:37]wFMCommunicate request_size=255 [08:13:37]MH_SAM_APDU [08:13:37]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 B6 AD 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 82 3B 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 3B 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 3C 00 00 00 00 07 04 06 00 7C 3B 02 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 37 ED 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AF 6F 00 00 35 04 06 00 0E 9D [08:13:37]Write to MH i2c: E2 02 01 BE 62 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 B6 AD 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 82 3B 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 3B 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 3C 00 00 00 00 07 04 06 00 7C 3B 02 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 37 ED 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AF 6F 00 00 35 04 06 00 0E 9D 00 00 EE [08:13:37]Write i2c OK [08:13:37]MH_I2C_Read... [08:13:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:13:38]Read from MH i2c: E2 [08:13:38]MH_I2C_Read... [08:13:38]Read from MH i2c: E2 03 00 [08:13:38]MH_I2C_Read... [08:13:38]Read from MH i2c: E2 03 00 BE 62 00 90 00 94 [08:13:38]RAPDU: 90 00 [08:13:38]wFMCommunicate OK [08:13:38]wFMCommunicate request_size=9 [08:13:38]MH_SAM_APDU [08:13:38]CAPDU: 80 0D 02 02 04 65 F6 6B 81 [08:13:38]Write to MH i2c: E2 0C 00 BF 62 80 0D 02 02 04 00 65 F6 6B 81 00 00 EA [08:13:38]Write i2c OK [08:13:38]MH_I2C_Read... [08:13:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:13:38]Read from MH i2c: E2 [08:13:38]MH_I2C_Read... [08:13:38]Read from MH i2c: E2 03 00 [08:13:38]MH_I2C_Read... [08:13:38]Read from MH i2c: E2 03 00 BF 62 00 90 00 95 [08:13:38]RAPDU: 90 00 [08:13:38]wFMCommunicate OK [08:13:38]wFMCommunicate request_size=4 [08:13:38]MH_SAM_APDU [08:13:38]CAPDU: 80 0D 03 02 [08:13:38]Write to MH i2c: E2 08 00 C0 62 80 0D 03 02 00 00 00 00 9D [08:13:38]Write i2c OK [08:13:38]MH_I2C_Read... [08:13:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:13:38]Read from MH i2c: E2 [08:13:38]MH_I2C_Read... [08:13:38]Read from MH i2c: E2 0B 00 [08:13:38]MH_I2C_Read... [08:13:38]Read from MH i2c: E2 0B 00 C0 62 00 C5 AF 02 E5 15 B8 70 C1 90 00 F7 [08:13:38]RAPDU: C5 AF 02 E5 15 B8 70 C1 90 00 [08:13:38]wFMCommunicate OK [08:13:38]SAM_PROTO_SignData done [08:13:38]FM_MakeSignedData done [08:13:38]CreateOFDProtocolMessage [08:13:38]wFMCommunicate request_size=4 [08:13:38]MH_SAM_APDU [08:13:38]CAPDU: 80 11 00 00 [08:13:38]Write to MH i2c: E2 08 00 C1 62 80 11 00 00 00 00 00 00 9D [08:13:38]Write i2c OK [08:13:38]MH_I2C_Read... [08:13:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:13:38]Read from MH i2c: E2 [08:13:38]MH_I2C_Read... [08:13:38]Read from MH i2c: E2 17 00 [08:13:38]MH_I2C_Read... [08:13:38]Read from MH i2c: E2 17 00 C1 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 EC [08:13:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:13:38]wFMCommunicate OK [08:13:38]CreateOFDProtocolMessage done [08:13:38]OFDSenderStorePacket 28591 [08:13:38]StoreOFDPacket docnum=28591 [08:13:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 A8 A6 06 01 7B 7A 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 B6 AD 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 82 3B 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 3B 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 3C 00 00 00 00 07 04 06 00 7C 3B 02 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 37 ED 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AF 6F 00 00 35 04 06 00 0E 9D 65 F6 6B 81 C5 AF 02 E5 15 B8 70 C1 [08:13:38]CheckFolder [08:13:38]dirname=/storage/ofd_packets [08:13:38]CheckFolder done [08:13:38]ProducePacketName [08:13:38]name=ofd_packets/00028591 [08:13:38]NVStorageSaveData ofd_packets/00028591 [08:13:38]File name is /storage/ofd_packets/00028591 [08:13:38]Write 300 bytes [08:13:38]NVStorageSaveData done [08:13:38]OFDSenderStorePacket done [08:13:38]KKMCreateOFDPacket done [08:13:38]NVStorageSaveData kkm_last_timestamp [08:13:38]File name is /storage/kkm_last_timestamp [08:13:38]Write 4 bytes [08:13:38]NVStorageSaveData done [08:13:38]ExternCall_PrintAddStr [08:13:38]wPrintStart [08:13:38]Write to MH i2c: 01 00 00 C2 62 24 [08:13:38]Write i2c OK [08:13:38]MH_I2C_Read... [08:13:38]Read from MH i2c: 01 [08:13:38]MH_I2C_Read... [08:13:38]Read from MH i2c: 01 07 00 [08:13:38]MH_I2C_Read... [08:13:38]Read from MH i2c: 01 07 00 C2 62 00 00 00 00 00 FF 0F 39 [08:13:38]RasterBufferAndPrint [08:13:38]line Счет N : (1)346902 [08:13:38]line ИНН: 02508201610067 [08:13:38]line Контрольно-Кассовый Чек [08:13:38]line ПРОДАЖА [08:13:38]line ТРК (МРК, ГНК) : 71 [08:13:38]line Товар: 2711129700 [08:13:38]line ГАЗ-К-5 [08:13:38]line 44.470 * 32.90 [08:13:38]line = 1463.06 [08:13:38]line НДС 12% НСП 1% [08:13:38]line > о реализуемом товаре [08:13:38]line ОКРУГЛЕНИЕ: -0.06 [08:13:38]line ИТОГО: 1463.00 [08:13:38]line Внесено: 2000.00 [08:13:38]line СДАЧА: 537.00 [08:13:38]line НСП 1% : 12.95 [08:13:38]line НДС 12% : 155.37 [08:13:38]line Наличными: 1463.00 [08:13:38]line Безнал.: 0.00 [08:13:38]line Место: АЗС № 108 "Партнер Нефть" [08:13:38]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [08:13:38]line СНО: Общий режим [08:13:38]line Чек 40 12.04.2024 08:13 [08:13:38]line Смена: 113 ФФД: 1.0 [08:13:38]line ЗНМ: 0300000027 [08:13:38]line РНМ: 0000138879044617 [08:13:38]line Версия ККМ: 001 [08:13:38]line ФМ: 0000000000963154 [08:13:38]line ФД: 28591 [08:13:38]line ФПД: 16069183302529 [08:13:38]line 1/tax-web-control/client/api/v1/ticket?date=20240412T081343&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28591&fm=16069183302529&tin=02508201610067®Number=0000138879044617&sum=146300 [08:13:38]OFD Sender: Processing packet 28591 [packets to send 8, broken 7] [08:13:38]ProducePacketName [08:13:38]name=ofd_packets/00028591 [08:13:38]OFD Sender: To server: pG, [08:13:38]CommunicateWithHost lk.salyk.kg:30040 [08:13:38]ConnectInit lk.salyk.kg [08:13:38]written 0, free lines is 4095 [08:13:38]Connected sock=10 [08:13:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 A8 A6 06 01 7B 7A 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 B6 AD 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 82 3B 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 3B 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 3C 00 00 00 00 07 04 06 00 7C 3B 02 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 37 ED 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AF 6F 00 00 35 04 06 00 0E 9D 65 F6 6B 81 C5 AF 02 E5 15 B8 70 C1 [08:13:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 65 44 47 00 B1 E4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AF 6F 00 00 F4 03 04 00 E2 97 18 66 B6 04 01 00 00 11 75 25 EF 7A 5C 71 B5 [08:13:38]CommunicateWithHost err = 0 [08:13:38]CheckOFDResponse [08:13:38]1017 (14) - 77093643461234 [08:13:38]1041 (16) - 0000000000963154 [08:13:38]1040 (4) - 28591 [08:13:38]1012 (4) - 12.04.2024 02:09 [08:13:38]1206 (1) - 0 [08:13:38]OFD Sender: Remove packet 28591 [08:13:38]ProducePacketName [08:13:38]name=ofd_packets/00028591 [08:13:38]NVStorageDeleteData [08:13:39]Write to MH i2c: 01 00 00 EC 62 4E [08:13:39]Write i2c OK [08:13:39]MH_I2C_Read... [08:13:39]Read from MH i2c: 01 [08:13:39]MH_I2C_Read... [08:13:39]Read from MH i2c: 01 07 00 [08:13:39]MH_I2C_Read... [08:13:39]Read from MH i2c: 01 07 00 EC 62 00 00 00 00 00 C8 0C 29 [08:13:39]RasterBufferAndPrint [08:13:39]line [08:13:39]line [08:13:39]line [08:13:39]line [08:13:39]line [08:13:39]written 0, free lines is 3277 [08:13:39]MH_Cut [08:13:39]Write to MH i2c: D1 01 00 F3 62 01 27 [08:13:39]Write i2c OK [08:13:39]MH_I2C_Read... [08:13:39]Read from MH i2c: D1 [08:13:39]MH_I2C_Read... [08:13:39]Read from MH i2c: D1 01 00 [08:13:39]MH_I2C_Read... [08:13:39]Read from MH i2c: D1 01 00 F3 62 00 26 [08:13:39]Write to MH i2c: 01 00 00 F4 62 56 [08:13:39]Write i2c OK [08:13:39]MH_I2C_Read... [08:13:39]OFD Sender: No OFD packet to send [08:13:39]*** Cut start [08:13:39]*** Partial cut [08:13:39]*** CUTSNS_PIN = 1 [08:13:39]*** CUTSNS_PIN = 0 [08:13:40]*** Brake cut motor [08:13:40]Read from MH i2c: 01 [08:13:40]MH_I2C_Read... [08:13:40]*** Stop cut motor [08:13:40]*** Cut end [08:13:40]Read from MH i2c: 01 07 00 [08:13:40]MH_I2C_Read... [08:13:40]Read from MH i2c: 01 07 00 F4 62 00 00 00 00 00 FF 0F 6B [08:13:40]process_action close_receipt done [08:13:40]requested_data is exist [08:13:40]produce_requested_data [08:13:40]requested_item fm.sn is exist - process it [08:13:40]wFMCommunicate request_size=4 [08:13:40]MH_SAM_APDU [08:13:40]CAPDU: 80 11 00 00 [08:13:40]Write to MH i2c: E2 08 00 F5 62 80 11 00 00 00 00 00 00 D1 [08:13:40]Write i2c OK [08:13:40]MH_I2C_Read... [08:13:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:13:40]Read from MH i2c: E2 [08:13:40]MH_I2C_Read... [08:13:40]Read from MH i2c: E2 17 00 [08:13:40]MH_I2C_Read... [08:13:40]Read from MH i2c: E2 17 00 F5 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 20 [08:13:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:13:40]wFMCommunicate OK [08:13:40]requested_item fd.num is exist - process it [08:13:40]SAM_PROTO_GetFieldsCounters [08:13:40]wFMCommunicate request_size=4 [08:13:40]MH_SAM_APDU [08:13:40]CAPDU: 80 13 00 00 [08:13:40]Write to MH i2c: E2 08 00 F6 62 80 13 00 00 00 00 00 00 D4 [08:13:40]Write i2c OK [08:13:40]MH_I2C_Read... [08:13:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:13:40]Read from MH i2c: E2 [08:13:40]MH_I2C_Read... [08:13:40]Read from MH i2c: E2 62 00 [08:13:40]MH_I2C_Read... [08:13:40]Read from MH i2c: E2 62 00 F6 62 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 AF 6F 00 00 0E 04 04 00 71 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 19 [08:13:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 AF 6F 00 00 0E 04 04 00 71 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 [08:13:40]wFMCommunicate OK [08:13:40]SAM_PROTO_GetFieldsCounters done [08:13:40]requested_item shift.num is exist - process it [08:13:40]requested_item shift.opened is exist - process it [08:13:40]req_shift_opened [08:13:40]FM_GetShiftState [08:13:40]SAM_PROTO_GetShiftState [08:13:40]wFMCommunicate request_size=4 [08:13:40]MH_SAM_APDU [08:13:40]CAPDU: 80 13 01 00 [08:13:40]Write to MH i2c: E2 08 00 F7 62 80 13 01 00 00 00 00 00 D6 [08:13:40]Write i2c OK [08:13:40]MH_I2C_Read... [08:13:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:13:40]Read from MH i2c: E2 [08:13:40]MH_I2C_Read... [08:13:40]Read from MH i2c: E2 0E 00 [08:13:40]MH_I2C_Read... [08:13:40]Read from MH i2c: E2 0E 00 F7 62 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 E7 [08:13:40]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [08:13:40]wFMCommunicate OK [08:13:40]SAM_PROTO_GetShiftState done [08:13:40]FM_GetShiftState done [08:13:40]req_shift_opened done [08:13:40]requested_item shift.open_date is exist - process it [08:13:40]req_shift_open_date [08:13:40]req_shift_open_date done [08:13:40]produce_requested_data done [08:13:40]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28591,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [08:13:40]process_action_free close_receipt [08:13:40]json_value_free [08:13:40]json_value_free done [08:13:40]process_json_proto returns [08:13:40]Send response to host [08:13:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28591,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [08:13:40]free response buf [08:13:40]execute_script done [08:13:40]execute_script returns [08:13:40]free content buf [08:13:40]Sock 9.Close socket [08:13:40]Sock 9.Thread stoped [08:13:44]OFD Sender: No OFD packet to send [08:13:49]OFD Sender: No OFD packet to send [08:13:54]OFD Sender: No OFD packet to send [08:13:59]OFD Sender: No OFD packet to send [08:14:04]OFD Sender: No OFD packet to send [08:14:09]OFD Sender: No OFD packet to send [08:14:14]OFD Sender: No OFD packet to send [08:14:19]OFD Sender: No OFD packet to send [08:14:24]OFD Sender: No OFD packet to send [08:14:29]OFD Sender: No OFD packet to send [08:14:34]OFD Sender: No OFD packet to send [08:14:39]OFD Sender: No OFD packet to send [08:14:44]OFD Sender: No OFD packet to send [08:14:49]OFD Sender: No OFD packet to send [08:14:54]OFD Sender: No OFD packet to send [08:14:59]OFD Sender: No OFD packet to send [08:15:04]OFD Sender: No OFD packet to send [08:15:09]OFD Sender: No OFD packet to send [08:15:14]OFD Sender: No OFD packet to send [08:15:19]OFD Sender: No OFD packet to send [08:15:24]OFD Sender: No OFD packet to send [08:15:29]OFD Sender: No OFD packet to send [08:15:34]OFD Sender: No OFD packet to send [08:15:39]OFD Sender: No OFD packet to send [08:15:44]OFD Sender: No OFD packet to send [08:15:49]OFD Sender: No OFD packet to send [08:15:54]OFD Sender: No OFD packet to send [08:15:59]OFD Sender: No OFD packet to send [08:16:04]OFD Sender: No OFD packet to send [08:16:09]OFD Sender: No OFD packet to send [08:16:14]OFD Sender: No OFD packet to send [08:16:19]OFD Sender: No OFD packet to send [08:16:24]OFD Sender: No OFD packet to send [08:16:29]OFD Sender: No OFD packet to send [08:16:34]OFD Sender: No OFD packet to send [08:16:39]OFD Sender: No OFD packet to send [08:16:44]OFD Sender: No OFD packet to send [08:16:49]OFD Sender: No OFD packet to send [08:16:54]OFD Sender: No OFD packet to send [08:16:59]OFD Sender: No OFD packet to send [08:17:04]OFD Sender: No OFD packet to send [08:17:09]OFD Sender: No OFD packet to send [08:17:14]OFD Sender: No OFD packet to send [08:17:19]OFD Sender: No OFD packet to send [08:17:24]OFD Sender: No OFD packet to send [08:17:29]OFD Sender: No OFD packet to send [08:17:34]OFD Sender: No OFD packet to send [08:17:39]OFD Sender: No OFD packet to send [08:17:44]OFD Sender: No OFD packet to send [08:17:49]OFD Sender: No OFD packet to send [08:17:54]OFD Sender: No OFD packet to send [08:17:59]OFD Sender: No OFD packet to send [08:18:04]OFD Sender: No OFD packet to send [08:18:09]OFD Sender: No OFD packet to send [08:18:14]OFD Sender: No OFD packet to send [08:18:19]OFD Sender: No OFD packet to send [08:18:24]OFD Sender: No OFD packet to send [08:18:29]OFD Sender: No OFD packet to send [08:18:34]OFD Sender: No OFD packet to send [08:18:36]accept exits with 7 [08:18:36]New connection [08:18:36]New thread 3066498404 created [08:18:36]Thread 3066641764 joined [08:18:36]Waiting for new connection... [08:18:36] Sock 7.Parse request [08:18:36]Sock 7.Check first char [08:18:36]Sock 7.First char is OK [08:18:36]request: POST /json_proto HTTP/1.0 [08:18:36]Method: POST [08:18:36]URL: /json_proto [08:18:36]Method is POST - this is cgi request [08:18:36]url: /json_proto [08:18:36]query_string will be loaded in cgi processing [08:18:36]execute_cgi json_proto POST (null) [08:18:36]execute_cgi path=json_proto method=POST [08:18:36]POST find Content-Length [08:18:36]Host: 172.17.33.3:8080 [08:18:36]Content-Length: 843 [08:18:36]Content-Type: application/json [08:18:36] [08:18:36]POST finish read [08:18:36]Found Content-Length = 843 [08:18:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346903", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 15.560, "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" ] } } [08:18:36]execute_script... [08:18: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)346903", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 15.560, "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" ] } } [08:18:36]POST & json_proto [08:18:36]process_json_proto [08:18:36]json parsed OK: [08:18:36]protocol is kg_v1.0 [08:18:36]action value=close_receipt [08:18:36]process_action close_receipt [08:18:36]cmd_close_receipt [08:18:36]MH_GetDate [08:18:36]Write to MH i2c: F0 00 00 F8 62 49 [08:18:36]Write i2c OK [08:18:36]MH_I2C_Read... [08:18:36]Read from MH i2c: F0 [08:18:36]MH_I2C_Read... [08:18:36]Read from MH i2c: F0 09 00 [08:18:36]MH_I2C_Read... [08:18:36]Read from MH i2c: F0 09 00 F8 62 00 64 EE 18 66 23 5B 8F 65 94 [08:18:36]GetLastDocTimeStamp 1712909623 [08:18:36]current date 1712909924 [08:18:36]FM_GetShiftState [08:18:36]SAM_PROTO_GetShiftState [08:18:36]wFMCommunicate request_size=4 [08:18:36]MH_SAM_APDU [08:18:36]CAPDU: 80 13 01 00 [08:18:36]Write to MH i2c: E2 08 00 F9 62 80 13 01 00 00 00 00 00 D8 [08:18:36]Write i2c OK [08:18:36]MH_I2C_Read... [08:18:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:18:36]Read from MH i2c: E2 [08:18:36]MH_I2C_Read... [08:18:36]Read from MH i2c: E2 0E 00 [08:18:36]MH_I2C_Read... [08:18:36]Read from MH i2c: E2 0E 00 F9 62 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 E9 [08:18:36]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [08:18:36]wFMCommunicate OK [08:18:36]SAM_PROTO_GetShiftState done [08:18:36]FM_GetShiftState done [08:18:36]opened in 1712881416 [08:18:36]opened+sec_in_day 1712967816 [08:18:36]quantity*price = 100050 [08:18:36]sum+1 = 100052 [08:18:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 41 12.04.2024 08:18 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 28592 ФПД: 155679100577489 1/tax-web-control/client/api/v1/ticket?date=20240412T081844&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28592&fm=155679100577489&tin=02508201610067®Number=0000138879044617&sum=100051 [08:18:38]StoreToDocumentArchive [08:18:38]shift 113 fd 28592 [08:18:38]save to /storage/0113/doc_00028592 [08:18:38]save last doc name /storage/0113/doc_00028592 to /storage/kkm_last_doc_name [08:18:38]save OK [08:18:38]Clear old archive folders... [08:18:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:18:38]tlvbuf is 01AA8FC0 [08:18:38]SAM_PROTO_ClearQueue [08:18:38]wFMCommunicate request_size=4 [08:18:38]MH_SAM_APDU [08:18:38]CAPDU: 80 09 00 00 [08:18:38]Write to MH i2c: E2 08 00 06 63 80 09 00 00 00 00 00 00 DB [08:18:38]Write i2c OK [08:18:38]MH_I2C_Read... [08:18:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:18:38]Read from MH i2c: E2 [08:18:38]MH_I2C_Read... [08:18:38]Read from MH i2c: E2 03 00 [08:18:38]MH_I2C_Read... [08:18:38]Read from MH i2c: E2 03 00 06 63 00 90 00 DD [08:18:38]RAPDU: 90 00 [08:18:38]wFMCommunicate OK [08:18:38]SAM_PROTO_ClearQueue done [08:18:38]KKMCreateOFDPacket [08:18:38]OFDProtocolAddRootSTLVToBuf [08:18:38]FM_MakeSignedData [08:18:38]FM_MakeSignedData [08:18:38]SAM_PROTO_SignData [08:18:38]wFMCommunicate request_size=4 [08:18:38]MH_SAM_APDU [08:18:38]CAPDU: 80 0D 01 02 [08:18:38]Write to MH i2c: E2 08 00 07 63 80 0D 01 02 00 00 00 00 E3 [08:18:38]Write i2c OK [08:18:38]MH_I2C_Read... [08:18:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:18:38]Read from MH i2c: E2 [08:18:38]MH_I2C_Read... [08:18:38]Read from MH i2c: E2 03 00 [08:18:38]MH_I2C_Read... [08:18:38]Read from MH i2c: E2 03 00 07 63 00 90 00 DE [08:18:38]RAPDU: 90 00 [08:18:38]wFMCommunicate OK [08:18:38]wFMCommunicate request_size=255 [08:18:38]MH_SAM_APDU [08:18:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 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 29 00 00 00 F4 03 04 00 64 EE 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B0 6F 00 00 35 04 06 00 8D [08:18:38]Write to MH i2c: E2 02 01 08 63 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 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 29 00 00 00 F4 03 04 00 64 EE 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B0 6F 00 00 35 04 06 00 8D 00 00 8B [08:18:38]Write i2c OK [08:18:38]MH_I2C_Read... [08:18:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:18:38]Read from MH i2c: E2 [08:18:38]MH_I2C_Read... [08:18:38]Read from MH i2c: E2 03 00 [08:18:38]MH_I2C_Read... [08:18:38]Read from MH i2c: E2 03 00 08 63 00 90 00 DF [08:18:38]RAPDU: 90 00 [08:18:38]wFMCommunicate OK [08:18:38]wFMCommunicate request_size=10 [08:18:38]MH_SAM_APDU [08:18:38]CAPDU: 80 0D 02 02 05 96 DD 7D 26 D1 [08:18:38]Write to MH i2c: E2 0D 00 09 63 80 0D 02 02 05 00 96 DD 7D 26 D1 00 00 D7 [08:18:38]Write i2c OK [08:18:38]MH_I2C_Read... [08:18:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:18:38]Read from MH i2c: E2 [08:18:38]MH_I2C_Read... [08:18:38]Read from MH i2c: E2 03 00 [08:18:38]MH_I2C_Read... [08:18:38]Read from MH i2c: E2 03 00 09 63 00 90 00 E0 [08:18:38]RAPDU: 90 00 [08:18:38]wFMCommunicate OK [08:18:38]wFMCommunicate request_size=4 [08:18:38]MH_SAM_APDU [08:18:38]CAPDU: 80 0D 03 02 [08:18:38]Write to MH i2c: E2 08 00 0A 63 80 0D 03 02 00 00 00 00 E8 [08:18:38]Write i2c OK [08:18:38]MH_I2C_Read... [08:18:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:18:38]Read from MH i2c: E2 [08:18:38]MH_I2C_Read... [08:18:38]Read from MH i2c: E2 0B 00 [08:18:38]MH_I2C_Read... [08:18:38]Read from MH i2c: E2 0B 00 0A 63 00 4B B3 CC 53 B2 F4 63 BE 90 00 CD [08:18:38]RAPDU: 4B B3 CC 53 B2 F4 63 BE 90 00 [08:18:38]wFMCommunicate OK [08:18:38]SAM_PROTO_SignData done [08:18:38]FM_MakeSignedData done [08:18:38]CreateOFDProtocolMessage [08:18:38]wFMCommunicate request_size=4 [08:18:38]MH_SAM_APDU [08:18:38]CAPDU: 80 11 00 00 [08:18:38]Write to MH i2c: E2 08 00 0B 63 80 11 00 00 00 00 00 00 E8 [08:18:38]Write i2c OK [08:18:38]MH_I2C_Read... [08:18:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:18:38]Read from MH i2c: E2 [08:18:38]MH_I2C_Read... [08:18:38]Read from MH i2c: E2 17 00 [08:18:38]MH_I2C_Read... [08:18:38]Read from MH i2c: E2 17 00 0B 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 37 [08:18:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:18:38]wFMCommunicate OK [08:18:38]CreateOFDProtocolMessage done [08:18:38]OFDSenderStorePacket 28592 [08:18:38]StoreOFDPacket docnum=28592 [08:18:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 02 A1 07 01 0C 4A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 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 29 00 00 00 F4 03 04 00 64 EE 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B0 6F 00 00 35 04 06 00 8D 96 DD 7D 26 D1 4B B3 CC 53 B2 F4 63 BE [08:18:38]CheckFolder [08:18:38]dirname=/storage/ofd_packets [08:18:38]CheckFolder done [08:18:38]ProducePacketName [08:18:38]name=ofd_packets/00028592 [08:18:38]NVStorageSaveData ofd_packets/00028592 [08:18:38]File name is /storage/ofd_packets/00028592 [08:18:38]Write 301 bytes [08:18:38]NVStorageSaveData done [08:18:38]OFDSenderStorePacket done [08:18:38]KKMCreateOFDPacket done [08:18:38]NVStorageSaveData kkm_last_timestamp [08:18:38]File name is /storage/kkm_last_timestamp [08:18:38]Write 4 bytes [08:18:38]NVStorageSaveData done [08:18:38]ExternCall_PrintAddStr [08:18:38]wPrintStart [08:18:38]Write to MH i2c: 01 00 00 0C 63 6F [08:18:38]Write i2c OK [08:18:38]MH_I2C_Read... [08:18:38]Read from MH i2c: 01 [08:18:38]MH_I2C_Read... [08:18:38]Read from MH i2c: 01 07 00 [08:18:38]MH_I2C_Read... [08:18:38]Read from MH i2c: 01 07 00 0C 63 00 00 00 00 00 FF 0F 84 [08:18:38]RasterBufferAndPrint [08:18:38]line Счет N : (1)346903 [08:18:38]line ИНН: 02508201610067 [08:18:38]line Контрольно-Кассовый Чек [08:18:38]line ПРОДАЖА [08:18:38]line ТРК (МРК, ГНК) : 42 [08:18:38]line Товар: 2710124130 [08:18:38]line Аи-92-К-5 [08:18:38]line 15.560 * 64.30 [08:18:38]line = 1000.51 [08:18:38]line НДС 12% НСП 1% [08:18:38]line > о реализуемом товаре [08:18:38]line ИТОГО: 1000.51 [08:18:38]line НСП 1% : 8.85 [08:18:38]line НДС 12% : 106.25 [08:18:38]line Наличными: 0.00 [08:18:38]line Безнал.: 1000.51 [08:18:38]line Место: АЗС № 108 "Партнер Нефть" [08:18:38]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [08:18:38]line СНО: Общий режим [08:18:38]line Чек 41 12.04.2024 08:18 [08:18:38]line Смена: 113 ФФД: 1.0 [08:18:38]line ЗНМ: 0300000027 [08:18:38]line РНМ: 0000138879044617 [08:18:38]line Версия ККМ: 001 [08:18:38]line Платежная система: АКБ Кыргызстан [08:18:38]line ФМ: 0000000000963154 [08:18:38]line ФД: 28592 [08:18:38]line ФПД: 155679100577489 [08:18:38]line 1/tax-web-control/client/api/v1/ticket?date=20240412T081844&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28592&fm=155679100577489&tin=02508201610067®Number=0000138879044617&sum=100051 [08:18:38]OFD Sender: Processing packet 28592 [packets to send 8, broken 7] [08:18:38]ProducePacketName [08:18:38]name=ofd_packets/00028592 [08:18:38]OFD Sender: To server: pG, [08:18:38]CommunicateWithHost lk.salyk.kg:30040 [08:18:38]ConnectInit lk.salyk.kg [08:18:38]written 0, free lines is 4095 [08:18:39]Connected sock=10 [08:18:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 02 A1 07 01 0C 4A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 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 29 00 00 00 F4 03 04 00 64 EE 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B0 6F 00 00 35 04 06 00 8D 96 DD 7D 26 D1 4B B3 CC 53 B2 F4 63 BE [08:18:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 98 46 47 00 87 0B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B0 6F 00 00 F4 03 04 00 0E 99 18 66 B6 04 01 00 00 07 1B B4 AF BE D2 31 A2 [08:18:39]CommunicateWithHost err = 0 [08:18:39]CheckOFDResponse [08:18:39]1017 (14) - 77093643461234 [08:18:39]1041 (16) - 0000000000963154 [08:18:39]1040 (4) - 28592 [08:18:39]1012 (4) - 12.04.2024 02:14 [08:18:39]1206 (1) - 0 [08:18:39]OFD Sender: Remove packet 28592 [08:18:39]ProducePacketName [08:18:39]name=ofd_packets/00028592 [08:18:39]NVStorageDeleteData [08:18:39]Write to MH i2c: 01 00 00 35 63 98 [08:18:39]Write i2c OK [08:18:39]MH_I2C_Read... [08:18:39]Read from MH i2c: 01 [08:18:39]MH_I2C_Read... [08:18:39]Read from MH i2c: 01 07 00 [08:18:39]MH_I2C_Read... [08:18:39]Read from MH i2c: 01 07 00 35 63 00 00 00 00 00 E7 0C 92 [08:18:39]RasterBufferAndPrint [08:18:39]line [08:18:39]line [08:18:39]line [08:18:39]line [08:18:39]line [08:18:39]written 0, free lines is 3308 [08:18:39]MH_Cut [08:18:39]Write to MH i2c: D1 01 00 3C 63 01 71 [08:18:39]Write i2c OK [08:18:39]MH_I2C_Read... [08:18:39]Read from MH i2c: D1 [08:18:39]MH_I2C_Read... [08:18:39]Read from MH i2c: D1 01 00 [08:18:39]MH_I2C_Read... [08:18:39]Read from MH i2c: D1 01 00 3C 63 00 70 [08:18:39]Write to MH i2c: 01 00 00 3D 63 A0 [08:18:39]Write i2c OK [08:18:39]MH_I2C_Read... [08:18:39]OFD Sender: No OFD packet to send [08:18:40]*** Cut start [08:18:40]*** Partial cut [08:18:40]*** CUTSNS_PIN = 1 [08:18:40]*** CUTSNS_PIN = 0 [08:18:40]*** Brake cut motor [08:18:40]Read from MH i2c: 01 [08:18:40]MH_I2C_Read... [08:18:40]*** Stop cut motor [08:18:40]*** Cut end [08:18:40]Read from MH i2c: 01 07 00 [08:18:40]MH_I2C_Read... [08:18:40]Read from MH i2c: 01 07 00 3D 63 00 00 00 00 00 FF 0F B5 [08:18:40]process_action close_receipt done [08:18:40]requested_data is exist [08:18:40]produce_requested_data [08:18:40]requested_item fm.sn is exist - process it [08:18:40]wFMCommunicate request_size=4 [08:18:40]MH_SAM_APDU [08:18:40]CAPDU: 80 11 00 00 [08:18:40]Write to MH i2c: E2 08 00 3E 63 80 11 00 00 00 00 00 00 1B [08:18:40]Write i2c OK [08:18:40]MH_I2C_Read... [08:18:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:18:40]Read from MH i2c: E2 [08:18:40]MH_I2C_Read... [08:18:40]Read from MH i2c: E2 17 00 [08:18:40]MH_I2C_Read... [08:18:40]Read from MH i2c: E2 17 00 3E 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 6A [08:18:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:18:40]wFMCommunicate OK [08:18:40]requested_item fd.num is exist - process it [08:18:40]SAM_PROTO_GetFieldsCounters [08:18:40]wFMCommunicate request_size=4 [08:18:40]MH_SAM_APDU [08:18:40]CAPDU: 80 13 00 00 [08:18:40]Write to MH i2c: E2 08 00 3F 63 80 13 00 00 00 00 00 00 1E [08:18:40]Write i2c OK [08:18:40]MH_I2C_Read... [08:18:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:18:41]Read from MH i2c: E2 [08:18:41]MH_I2C_Read... [08:18:41]Read from MH i2c: E2 62 00 [08:18:41]MH_I2C_Read... [08:18:41]Read from MH i2c: E2 62 00 3F 63 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 B0 6F 00 00 0E 04 04 00 71 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 67 [08:18:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 B0 6F 00 00 0E 04 04 00 71 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 [08:18:41]wFMCommunicate OK [08:18:41]SAM_PROTO_GetFieldsCounters done [08:18:41]requested_item shift.num is exist - process it [08:18:41]requested_item shift.opened is exist - process it [08:18:41]req_shift_opened [08:18:41]FM_GetShiftState [08:18:41]SAM_PROTO_GetShiftState [08:18:41]wFMCommunicate request_size=4 [08:18:41]MH_SAM_APDU [08:18:41]CAPDU: 80 13 01 00 [08:18:41]Write to MH i2c: E2 08 00 40 63 80 13 01 00 00 00 00 00 20 [08:18:41]Write i2c OK [08:18:41]MH_I2C_Read... [08:18:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:18:41]Read from MH i2c: E2 [08:18:41]MH_I2C_Read... [08:18:41]Read from MH i2c: E2 0E 00 [08:18:41]MH_I2C_Read... [08:18:41]Read from MH i2c: E2 0E 00 40 63 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 31 [08:18:41]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [08:18:41]wFMCommunicate OK [08:18:41]SAM_PROTO_GetShiftState done [08:18:41]FM_GetShiftState done [08:18:41]req_shift_opened done [08:18:41]requested_item shift.open_date is exist - process it [08:18:41]req_shift_open_date [08:18:41]req_shift_open_date done [08:18:41]produce_requested_data done [08:18:41]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28592,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [08:18:41]process_action_free close_receipt [08:18:41]json_value_free [08:18:41]json_value_free done [08:18:41]process_json_proto returns [08:18:41]Send response to host [08:18:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28592,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [08:18:41]free response buf [08:18:41]execute_script done [08:18:41]execute_script returns [08:18:41]free content buf [08:18:41]Sock 7.Close socket [08:18:41]Sock 7.Thread stoped [08:18:44]OFD Sender: No OFD packet to send [08:18:49]OFD Sender: No OFD packet to send [08:18:54]OFD Sender: No OFD packet to send [08:18:59]OFD Sender: No OFD packet to send [08:19:04]OFD Sender: No OFD packet to send [08:19:09]OFD Sender: No OFD packet to send [08:19:14]OFD Sender: No OFD packet to send [08:19:19]OFD Sender: No OFD packet to send [08:19:24]OFD Sender: No OFD packet to send [08:19:29]OFD Sender: No OFD packet to send [08:19:34]OFD Sender: No OFD packet to send [08:19:39]OFD Sender: No OFD packet to send [08:19:44]OFD Sender: No OFD packet to send [08:19:49]OFD Sender: No OFD packet to send [08:19:54]OFD Sender: No OFD packet to send [08:19:59]OFD Sender: No OFD packet to send [08:20:04]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:54]OFD Sender: No OFD packet to send [08:20:59]OFD Sender: No OFD packet to send [08:21:04]OFD Sender: No OFD packet to send [08:21:09]OFD Sender: No OFD packet to send [08:21:14]OFD Sender: No OFD packet to send [08:21:19]OFD Sender: No OFD packet to send [08:21:24]OFD Sender: No OFD packet to send [08:21:29]OFD Sender: No OFD packet to send [08:21:34]OFD Sender: No OFD packet to send [08:21:39]OFD Sender: No OFD packet to send [08:21:44]OFD Sender: No OFD packet to send [08:21:49]OFD Sender: No OFD packet to send [08:21:54]OFD Sender: No OFD packet to send [08:21:59]OFD Sender: No OFD packet to send [08:22:04]OFD Sender: No OFD packet to send [08:22:09]OFD Sender: No OFD packet to send [08:22:14]OFD Sender: No OFD packet to send [08:22:19]OFD Sender: No OFD packet to send [08:22:24]OFD Sender: No OFD packet to send [08:22:29]OFD Sender: No OFD packet to send [08:22:34]OFD Sender: No OFD packet to send [08:22:39]OFD Sender: No OFD packet to send [08:22:44]OFD Sender: No OFD packet to send [08:22:49]OFD Sender: No OFD packet to send [08:22:54]OFD Sender: No OFD packet to send [08:22:59]OFD Sender: No OFD packet to send [08:23:04]OFD Sender: No OFD packet to send [08:23:09]OFD Sender: No OFD packet to send [08:23:14]OFD Sender: No OFD packet to send [08:23:19]OFD Sender: No OFD packet to send [08:23:24]OFD Sender: No OFD packet to send [08:23:29]OFD Sender: No OFD packet to send [08:23:34]OFD Sender: No OFD packet to send [08:23:39]OFD Sender: No OFD packet to send [08:23:44]OFD Sender: No OFD packet to send [08:23:49]OFD Sender: No OFD packet to send [08:23:54]OFD Sender: No OFD packet to send [08:23:59]OFD Sender: No OFD packet to send [08:24:04]OFD Sender: No OFD packet to send [08:24:09]OFD Sender: No OFD packet to send [08:24:14]OFD Sender: No OFD packet to send [08:24:19]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:42]accept exits with 9 [08:24:42]New connection [08:24:42]New thread 3066641764 created [08:24:42]Thread 3066498404 joined [08:24:42]Waiting for new connection... [08:24:42] Sock 9.Parse request [08:24:42]Sock 9.Check first char [08:24:42]Sock 9.First char is OK [08:24:42]request: POST /json_proto HTTP/1.0 [08:24:42]Method: POST [08:24:42]URL: /json_proto [08:24:42]Method is POST - this is cgi request [08:24:42]url: /json_proto [08:24:42]query_string will be loaded in cgi processing [08:24:42]execute_cgi json_proto POST (null) [08:24:42]execute_cgi path=json_proto method=POST [08:24:42]POST find Content-Length [08:24:42]Host: 172.17.33.3:8080 [08:24:42]Content-Length: 1211 [08:24:42]Content-Type: application/json [08:24:42] [08:24:42]POST finish read [08:24:42]Found Content-Length = 1211 [08:24:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)346904\u000A12.04.2024 08:06\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 64.30\u000A\u0418\u0422\u041E\u0413: 1286.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3832051;3832052\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:24:42]execute_script... [08:24:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)346904\u000A12.04.2024 08:06\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 64.30\u000A\u0418\u0422\u041E\u0413: 1286.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3832051;3832052\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:24:42]POST & json_proto [08:24:42]process_json_proto [08:24:42]json parsed OK: [08:24:42]protocol is kg_v1.0 [08:24:42]action value=print_text [08:24:42]process_action print_text [08:24:42]cmd_print_text [08:24:42]ExternCall_PrintAddStr [08:24:42]wPrintStart [08:24:42]Write to MH i2c: 01 00 00 41 63 A4 [08:24:42]Write i2c OK [08:24:42]MH_I2C_Read... [08:24:42]Read from MH i2c: 01 [08:24:42]MH_I2C_Read... [08:24:42]Read from MH i2c: 01 07 00 [08:24:42]MH_I2C_Read... [08:24:42]Read from MH i2c: 01 07 00 41 63 00 00 00 00 00 FF 0F B9 [08:24:42]RasterBufferAndPrint [08:24:42]line *****ТОВАРНЫЙ ЧЕК***** [08:24:42]line АЗС 108 [08:24:42]line Партнер нефть [08:24:42]line 02508201610067 [08:24:42]line Кассир : Джумагулова Н. [08:24:42]line Счет N : (1)346904 [08:24:42]line 12.04.2024 08:06 [08:24:42]line ПРОДАЖА [08:24:42]line ТРК (МРК, ГНК): 42 [08:24:42]line Вид ГСМ : 2710124130 [08:24:42]line Аи-92-К-5 [08:24:42]line 20.000 x 64.30 [08:24:42]line ИТОГ: 1286.00 [08:24:42]line Тип оплаты: Талоны: Партнер нефть [08:24:42]line 3832051;3832052 [08:24:42]line ______________________ [08:24:42]line (подпись) [08:24:42]written 0, free lines is 4095 [08:24:42]Write to MH i2c: 01 00 00 56 63 B9 [08:24:42]Write i2c OK [08:24:42]MH_I2C_Read... [08:24:42]Read from MH i2c: 01 [08:24:42]MH_I2C_Read... [08:24:42]Read from MH i2c: 01 07 00 [08:24:42]MH_I2C_Read... [08:24:42]Read from MH i2c: 01 07 00 56 63 00 00 00 00 00 FF 0D CC [08:24:42]RasterBufferAndPrint [08:24:42]line [08:24:42]line [08:24:42]line [08:24:42]line [08:24:42]line [08:24:42]written 0, free lines is 3584 [08:24:42]MH_Cut [08:24:42]Write to MH i2c: D1 01 00 5D 63 01 92 [08:24:42]Write i2c OK [08:24:42]MH_I2C_Read... [08:24:42]Read from MH i2c: D1 [08:24:42]MH_I2C_Read... [08:24:42]Read from MH i2c: D1 01 00 [08:24:42]MH_I2C_Read... [08:24:42]Read from MH i2c: D1 01 00 5D 63 00 91 [08:24:42]Write to MH i2c: 01 00 00 5E 63 C1 [08:24:42]Write i2c OK [08:24:42]MH_I2C_Read... [08:24:43]*** Cut start [08:24:43]*** Partial cut [08:24:43]*** CUTSNS_PIN = 1 [08:24:43]*** CUTSNS_PIN = 0 [08:24:43]*** Brake cut motor [08:24:43]Read from MH i2c: 01 [08:24:43]MH_I2C_Read... [08:24:43]*** Stop cut motor [08:24:43]*** Cut end [08:24:43]Read from MH i2c: 01 07 00 [08:24:43]MH_I2C_Read... [08:24:43]Read from MH i2c: 01 07 00 5E 63 00 00 00 00 00 FF 0F D6 [08:24:43]process_action print_text done [08:24:43]requested_data is exist [08:24:43]produce_requested_data [08:24:43]requested_item fm.sn is exist - process it [08:24:43]wFMCommunicate request_size=4 [08:24:43]MH_SAM_APDU [08:24:43]CAPDU: 80 11 00 00 [08:24:43]Write to MH i2c: E2 08 00 5F 63 80 11 00 00 00 00 00 00 3C [08:24:43]Write i2c OK [08:24:43]MH_I2C_Read... [08:24:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:24:43]Read from MH i2c: E2 [08:24:43]MH_I2C_Read... [08:24:43]Read from MH i2c: E2 17 00 [08:24:43]MH_I2C_Read... [08:24:43]Read from MH i2c: E2 17 00 5F 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 8B [08:24:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:24:43]wFMCommunicate OK [08:24:43]requested_item fd.num is exist - process it [08:24:43]SAM_PROTO_GetFieldsCounters [08:24:43]wFMCommunicate request_size=4 [08:24:43]MH_SAM_APDU [08:24:43]CAPDU: 80 13 00 00 [08:24:43]Write to MH i2c: E2 08 00 60 63 80 13 00 00 00 00 00 00 3F [08:24:43]Write i2c OK [08:24:43]MH_I2C_Read... [08:24:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:24:44]Read from MH i2c: E2 [08:24:44]MH_I2C_Read... [08:24:44]Read from MH i2c: E2 62 00 [08:24:44]MH_I2C_Read... [08:24:44]Read from MH i2c: E2 62 00 60 63 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 B0 6F 00 00 0E 04 04 00 71 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 88 [08:24:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 B0 6F 00 00 0E 04 04 00 71 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 [08:24:44]wFMCommunicate OK [08:24:44]SAM_PROTO_GetFieldsCounters done [08:24:44]requested_item shift.num is exist - process it [08:24:44]requested_item shift.opened is exist - process it [08:24:44]req_shift_opened [08:24:44]FM_GetShiftState [08:24:44]SAM_PROTO_GetShiftState [08:24:44]wFMCommunicate request_size=4 [08:24:44]MH_SAM_APDU [08:24:44]CAPDU: 80 13 01 00 [08:24:44]Write to MH i2c: E2 08 00 61 63 80 13 01 00 00 00 00 00 41 [08:24:44]Write i2c OK [08:24:44]MH_I2C_Read... [08:24:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:24:44]Read from MH i2c: E2 [08:24:44]MH_I2C_Read... [08:24:44]Read from MH i2c: E2 0E 00 [08:24:44]MH_I2C_Read... [08:24:44]Read from MH i2c: E2 0E 00 61 63 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 52 [08:24:44]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [08:24:44]wFMCommunicate OK [08:24:44]SAM_PROTO_GetShiftState done [08:24:44]FM_GetShiftState done [08:24:44]req_shift_opened done [08:24:44]requested_item shift.open_date is exist - process it [08:24:44]req_shift_open_date [08:24:44]req_shift_open_date done [08:24:44]produce_requested_data done [08:24:44]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28592,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [08:24:44]process_action_free print_text [08:24:44]json_value_free [08:24:44]json_value_free done [08:24:44]process_json_proto returns [08:24:44]Send response to host [08:24:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28592,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [08:24:44]free response buf [08:24:44]execute_script done [08:24:44]execute_script returns [08:24:44]free content buf [08:24:44]Sock 9.Close socket [08:24:44]Sock 9.Thread stoped [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:18]accept exits with 7 [08:25:18]New connection [08:25:18]New thread 3066498404 created [08:25:18]Thread 3066641764 joined [08:25:18]Waiting for new connection... [08:25:18] Sock 7.Parse request [08:25:18]Sock 7.Check first char [08:25:18]Sock 7.First char is OK [08:25:18]request: POST /json_proto HTTP/1.0 [08:25:18]Method: POST [08:25:18]URL: /json_proto [08:25:18]Method is POST - this is cgi request [08:25:18]url: /json_proto [08:25:18]query_string will be loaded in cgi processing [08:25:18]execute_cgi json_proto POST (null) [08:25:18]execute_cgi path=json_proto method=POST [08:25:18]POST find Content-Length [08:25:18]Host: 172.17.33.3:8080 [08:25:18]Content-Length: 840 [08:25:18]Content-Type: application/json [08:25:18] [08:25:18]POST finish read [08:25:18]Found Content-Length = 840 [08:25:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346905", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 7.780, "sum" : 500.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:25:18]execute_script... [08:25: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)346905", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 7.780, "sum" : 500.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:25:18]POST & json_proto [08:25:18]process_json_proto [08:25:18]json parsed OK: [08:25:18]protocol is kg_v1.0 [08:25:18]action value=close_receipt [08:25:18]process_action close_receipt [08:25:18]cmd_close_receipt [08:25:18]MH_GetDate [08:25:18]Write to MH i2c: F0 00 00 62 63 B4 [08:25:18]Write i2c OK [08:25:18]MH_I2C_Read... [08:25:18]Read from MH i2c: F0 [08:25:18]MH_I2C_Read... [08:25:18]Read from MH i2c: F0 09 00 [08:25:18]MH_I2C_Read... [08:25:18]Read from MH i2c: F0 09 00 62 63 00 F5 EF 18 66 23 5B 8F 65 91 [08:25:18]GetLastDocTimeStamp 1712909924 [08:25:18]current date 1712910325 [08:25:18]FM_GetShiftState [08:25:18]SAM_PROTO_GetShiftState [08:25:18]wFMCommunicate request_size=4 [08:25:18]MH_SAM_APDU [08:25:18]CAPDU: 80 13 01 00 [08:25:18]Write to MH i2c: E2 08 00 63 63 80 13 01 00 00 00 00 00 43 [08:25:18]Write i2c OK [08:25:18]MH_I2C_Read... [08:25:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:25:18]Read from MH i2c: E2 [08:25:18]MH_I2C_Read... [08:25:18]Read from MH i2c: E2 0E 00 [08:25:18]MH_I2C_Read... [08:25:18]Read from MH i2c: E2 0E 00 63 63 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 54 [08:25:18]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [08:25:18]wFMCommunicate OK [08:25:18]SAM_PROTO_GetShiftState done [08:25:18]FM_GetShiftState done [08:25:18]opened in 1712881416 [08:25:18]opened+sec_in_day 1712967816 [08:25:18]quantity*price = 50025 [08:25:18]sum+1 = 50026 [08:25:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.25 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 0.00 Безнал.: 500.25 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 42 12.04.2024 08:25 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 28593 ФПД: 49218717586945 1/tax-web-control/client/api/v1/ticket?date=20240412T082525&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28593&fm=49218717586945&tin=02508201610067®Number=0000138879044617&sum=50025 [08:25:19]StoreToDocumentArchive [08:25:19]shift 113 fd 28593 [08:25:19]save to /storage/0113/doc_00028593 [08:25:19]save last doc name /storage/0113/doc_00028593 to /storage/kkm_last_doc_name [08:25:19]save OK [08:25:19]Clear old archive folders... [08:25:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:25:19]tlvbuf is 01BB4780 [08:25:19]SAM_PROTO_ClearQueue [08:25:19]wFMCommunicate request_size=4 [08:25:19]MH_SAM_APDU [08:25:19]CAPDU: 80 09 00 00 [08:25:19]Write to MH i2c: E2 08 00 70 63 80 09 00 00 00 00 00 00 45 [08:25:19]Write i2c OK [08:25:19]MH_I2C_Read... [08:25:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:25:19]Read from MH i2c: E2 [08:25:19]MH_I2C_Read... [08:25:19]Read from MH i2c: E2 03 00 [08:25:19]MH_I2C_Read... [08:25:19]Read from MH i2c: E2 03 00 70 63 00 90 00 47 [08:25:19]RAPDU: 90 00 [08:25:19]wFMCommunicate OK [08:25:19]SAM_PROTO_ClearQueue done [08:25:19]KKMCreateOFDPacket [08:25:19]OFDProtocolAddRootSTLVToBuf [08:25:19]FM_MakeSignedData [08:25:19]FM_MakeSignedData [08:25:19]SAM_PROTO_SignData [08:25:19]wFMCommunicate request_size=4 [08:25:19]MH_SAM_APDU [08:25:19]CAPDU: 80 0D 01 02 [08:25:19]Write to MH i2c: E2 08 00 71 63 80 0D 01 02 00 00 00 00 4D [08:25:19]Write i2c OK [08:25:19]MH_I2C_Read... [08:25:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:25:19]Read from MH i2c: E2 [08:25:19]MH_I2C_Read... [08:25:19]Read from MH i2c: E2 03 00 [08:25:19]MH_I2C_Read... [08:25:19]Read from MH i2c: E2 03 00 71 63 00 90 00 48 [08:25:19]RAPDU: 90 00 [08:25:19]wFMCommunicate OK [08:25:19]wFMCommunicate request_size=255 [08:25:19]MH_SAM_APDU [08:25:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 69 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 F5 EF 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B1 6F 00 00 35 04 06 00 2C [08:25:19]Write to MH i2c: E2 02 01 72 63 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 69 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 F5 EF 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B1 6F 00 00 35 04 06 00 2C 00 00 8A [08:25:19]Write i2c OK [08:25:19]MH_I2C_Read... [08:25:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:25:19]Read from MH i2c: E2 [08:25:19]MH_I2C_Read... [08:25:19]Read from MH i2c: E2 03 00 [08:25:19]MH_I2C_Read... [08:25:19]Read from MH i2c: E2 03 00 72 63 00 90 00 49 [08:25:19]RAPDU: 90 00 [08:25:19]wFMCommunicate OK [08:25:19]wFMCommunicate request_size=10 [08:25:19]MH_SAM_APDU [08:25:19]CAPDU: 80 0D 02 02 05 C3 A0 2D 96 01 [08:25:19]Write to MH i2c: E2 0D 00 73 63 80 0D 02 02 05 00 C3 A0 2D 96 01 00 00 81 [08:25:19]Write i2c OK [08:25:19]MH_I2C_Read... [08:25:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:25:20]Read from MH i2c: E2 [08:25:20]MH_I2C_Read... [08:25:20]Read from MH i2c: E2 03 00 [08:25:20]MH_I2C_Read... [08:25:20]Read from MH i2c: E2 03 00 73 63 00 90 00 4A [08:25:20]RAPDU: 90 00 [08:25:20]wFMCommunicate OK [08:25:20]wFMCommunicate request_size=4 [08:25:20]MH_SAM_APDU [08:25:20]CAPDU: 80 0D 03 02 [08:25:20]Write to MH i2c: E2 08 00 74 63 80 0D 03 02 00 00 00 00 52 [08:25:20]Write i2c OK [08:25:20]MH_I2C_Read... [08:25:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:25:20]Read from MH i2c: E2 [08:25:20]MH_I2C_Read... [08:25:20]Read from MH i2c: E2 0B 00 [08:25:20]MH_I2C_Read... [08:25:20]Read from MH i2c: E2 0B 00 74 63 00 BE D1 32 2D DA 5E EE 92 90 00 F9 [08:25:20]RAPDU: BE D1 32 2D DA 5E EE 92 90 00 [08:25:20]wFMCommunicate OK [08:25:20]SAM_PROTO_SignData done [08:25:20]FM_MakeSignedData done [08:25:20]CreateOFDProtocolMessage [08:25:20]wFMCommunicate request_size=4 [08:25:20]MH_SAM_APDU [08:25:20]CAPDU: 80 11 00 00 [08:25:20]Write to MH i2c: E2 08 00 75 63 80 11 00 00 00 00 00 00 52 [08:25:20]Write i2c OK [08:25:20]MH_I2C_Read... [08:25:20]OFD Sender: No OFD packet to send [08:25:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:25:20]Read from MH i2c: E2 [08:25:20]MH_I2C_Read... [08:25:20]Read from MH i2c: E2 17 00 [08:25:20]MH_I2C_Read... [08:25:20]Read from MH i2c: E2 17 00 75 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 A1 [08:25:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:25:20]wFMCommunicate OK [08:25:20]CreateOFDProtocolMessage done [08:25:20]OFDSenderStorePacket 28593 [08:25:20]StoreOFDPacket docnum=28593 [08:25:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 29 A4 07 01 66 8C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 69 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 F5 EF 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B1 6F 00 00 35 04 06 00 2C C3 A0 2D 96 01 BE D1 32 2D DA 5E EE 92 [08:25:20]CheckFolder [08:25:20]dirname=/storage/ofd_packets [08:25:20]CheckFolder done [08:25:20]ProducePacketName [08:25:20]name=ofd_packets/00028593 [08:25:20]NVStorageSaveData ofd_packets/00028593 [08:25:20]File name is /storage/ofd_packets/00028593 [08:25:20]Write 301 bytes [08:25:20]NVStorageSaveData done [08:25:20]OFDSenderStorePacket done [08:25:20]KKMCreateOFDPacket done [08:25:20]NVStorageSaveData kkm_last_timestamp [08:25:20]File name is /storage/kkm_last_timestamp [08:25:20]Write 4 bytes [08:25:20]NVStorageSaveData done [08:25:20]ExternCall_PrintAddStr [08:25:20]wPrintStart [08:25:20]Write to MH i2c: 01 00 00 76 63 D9 [08:25:20]Write i2c OK [08:25:20]MH_I2C_Read... [08:25:20]Read from MH i2c: 01 [08:25:20]MH_I2C_Read... [08:25:20]Read from MH i2c: 01 07 00 [08:25:20]MH_I2C_Read... [08:25:20]Read from MH i2c: 01 07 00 76 63 00 00 00 00 00 FF 0F EE [08:25:20]RasterBufferAndPrint [08:25:20]line Счет N : (1)346905 [08:25:20]line ИНН: 02508201610067 [08:25:20]line Контрольно-Кассовый Чек [08:25:20]line ПРОДАЖА [08:25:20]line ТРК (МРК, ГНК) : 13 [08:25:20]line Товар: 2710124130 [08:25:20]line Аи-92-К-5 [08:25:20]line 7.780 * 64.30 [08:25:20]line = 500.25 [08:25:20]line НДС 12% НСП 1% [08:25:20]line > о реализуемом товаре [08:25:20]line ИТОГО: 500.25 [08:25:20]line НСП 1% : 4.43 [08:25:20]line НДС 12% : 53.12 [08:25:20]line Наличными: 0.00 [08:25:20]line Безнал.: 500.25 [08:25:20]line Место: АЗС № 108 "Партнер Нефть" [08:25:20]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [08:25:20]line СНО: Общий режим [08:25:20]line Чек 42 12.04.2024 08:25 [08:25:20]line Смена: 113 ФФД: 1.0 [08:25:20]line ЗНМ: 0300000027 [08:25:20]line РНМ: 0000138879044617 [08:25:20]line Версия ККМ: 001 [08:25:20]line Платежная система: АКБ Кыргызстан [08:25:20]line ФМ: 0000000000963154 [08:25:20]line ФД: 28593 [08:25:20]line ФПД: 49218717586945 [08:25:20]line 1/tax-web-control/client/api/v1/ticket?date=20240412T082525&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28593&fm=49218717586945&tin=02508201610067®Number=0000138879044617&sum=50025 [08:25:20]OFD Sender: Processing packet 28593 [packets to send 8, broken 7] [08:25:20]ProducePacketName [08:25:20]name=ofd_packets/00028593 [08:25:20]OFD Sender: To server: pG, [08:25:20]CommunicateWithHost lk.salyk.kg:30040 [08:25:20]ConnectInit lk.salyk.kg [08:25:20]written 0, free lines is 4095 [08:25:20]Connected sock=11 [08:25:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 29 A4 07 01 66 8C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 69 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 F5 EF 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B1 6F 00 00 35 04 06 00 2C C3 A0 2D 96 01 BE D1 32 2D DA 5E EE 92 [08:25:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 15 70 47 00 BD A7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B1 6F 00 00 F4 03 04 00 A0 9A 18 66 B6 04 01 00 00 50 41 22 7F 10 B2 B9 6F [08:25:20]CommunicateWithHost err = 0 [08:25:20]CheckOFDResponse [08:25:20]1017 (14) - 77093643461234 [08:25:20]1041 (16) - 0000000000963154 [08:25:20]1040 (4) - 28593 [08:25:20]1012 (4) - 12.04.2024 02:21 [08:25:20]1206 (1) - 0 [08:25:20]OFD Sender: Remove packet 28593 [08:25:20]ProducePacketName [08:25:20]name=ofd_packets/00028593 [08:25:20]NVStorageDeleteData [08:25:20]Write to MH i2c: 01 00 00 9F 63 02 [08:25:20]Write i2c OK [08:25:20]MH_I2C_Read... [08:25:20]Read from MH i2c: 01 [08:25:20]MH_I2C_Read... [08:25:20]Read from MH i2c: 01 07 00 [08:25:20]MH_I2C_Read... [08:25:20]Read from MH i2c: 01 07 00 9F 63 00 00 00 00 00 E0 0C F5 [08:25:20]RasterBufferAndPrint [08:25:20]line [08:25:20]line [08:25:20]line [08:25:20]line [08:25:20]line [08:25:20]written 0, free lines is 3302 [08:25:20]MH_Cut [08:25:20]Write to MH i2c: D1 01 00 A6 63 01 DB [08:25:20]Write i2c OK [08:25:20]MH_I2C_Read... [08:25:20]Read from MH i2c: D1 [08:25:20]MH_I2C_Read... [08:25:20]Read from MH i2c: D1 01 00 [08:25:20]MH_I2C_Read... [08:25:20]Read from MH i2c: D1 01 00 A6 63 00 DA [08:25:20]Write to MH i2c: 01 00 00 A7 63 0A [08:25:20]Write i2c OK [08:25:20]MH_I2C_Read... [08:25:21]OFD Sender: No OFD packet to send [08:25:21]*** Cut start [08:25:21]*** Partial cut [08:25:21]*** CUTSNS_PIN = 1 [08:25:21]*** CUTSNS_PIN = 0 [08:25:21]*** Brake cut motor [08:25:22]Read from MH i2c: 01 [08:25:22]MH_I2C_Read... [08:25:22]*** Stop cut motor [08:25:22]*** Cut end [08:25:22]Read from MH i2c: 01 07 00 [08:25:22]MH_I2C_Read... [08:25:22]Read from MH i2c: 01 07 00 A7 63 00 00 00 00 00 FF 0F 1F [08:25:22]process_action close_receipt done [08:25:22]requested_data is exist [08:25:22]produce_requested_data [08:25:22]requested_item fm.sn is exist - process it [08:25:22]wFMCommunicate request_size=4 [08:25:22]MH_SAM_APDU [08:25:22]CAPDU: 80 11 00 00 [08:25:22]Write to MH i2c: E2 08 00 A8 63 80 11 00 00 00 00 00 00 85 [08:25:22]Write i2c OK [08:25:22]MH_I2C_Read... [08:25:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:25:22]Read from MH i2c: E2 [08:25:22]MH_I2C_Read... [08:25:22]Read from MH i2c: E2 17 00 [08:25:22]MH_I2C_Read... [08:25:22]Read from MH i2c: E2 17 00 A8 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D4 [08:25:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:25:22]wFMCommunicate OK [08:25:22]requested_item fd.num is exist - process it [08:25:22]SAM_PROTO_GetFieldsCounters [08:25:22]wFMCommunicate request_size=4 [08:25:22]MH_SAM_APDU [08:25:22]CAPDU: 80 13 00 00 [08:25:22]Write to MH i2c: E2 08 00 A9 63 80 13 00 00 00 00 00 00 88 [08:25:22]Write i2c OK [08:25:22]MH_I2C_Read... [08:25:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:25:22]Read from MH i2c: E2 [08:25:22]MH_I2C_Read... [08:25:22]Read from MH i2c: E2 62 00 [08:25:22]MH_I2C_Read... [08:25:22]Read from MH i2c: E2 62 00 A9 63 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 B1 6F 00 00 0E 04 04 00 71 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 D5 [08:25:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 B1 6F 00 00 0E 04 04 00 71 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 [08:25:22]wFMCommunicate OK [08:25:22]SAM_PROTO_GetFieldsCounters done [08:25:22]requested_item shift.num is exist - process it [08:25:22]requested_item shift.opened is exist - process it [08:25:22]req_shift_opened [08:25:22]FM_GetShiftState [08:25:22]SAM_PROTO_GetShiftState [08:25:22]wFMCommunicate request_size=4 [08:25:22]MH_SAM_APDU [08:25:22]CAPDU: 80 13 01 00 [08:25:22]Write to MH i2c: E2 08 00 AA 63 80 13 01 00 00 00 00 00 8A [08:25:22]Write i2c OK [08:25:22]MH_I2C_Read... [08:25:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:25:22]Read from MH i2c: E2 [08:25:22]MH_I2C_Read... [08:25:22]Read from MH i2c: E2 0E 00 [08:25:22]MH_I2C_Read... [08:25:22]Read from MH i2c: E2 0E 00 AA 63 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 9B [08:25:22]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [08:25:22]wFMCommunicate OK [08:25:22]SAM_PROTO_GetShiftState done [08:25:22]FM_GetShiftState done [08:25:22]req_shift_opened done [08:25:22]requested_item shift.open_date is exist - process it [08:25:22]req_shift_open_date [08:25:22]req_shift_open_date done [08:25:22]produce_requested_data done [08:25:22]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28593,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [08:25:22]process_action_free close_receipt [08:25:22]json_value_free [08:25:22]json_value_free done [08:25:22]process_json_proto returns [08:25:22]Send response to host [08:25:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28593,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [08:25:22]free response buf [08:25:22]execute_script done [08:25:22]execute_script returns [08:25:22]free content buf [08:25:22]Sock 7.Close socket [08:25:22]Sock 7.Thread stoped [08:25:26]OFD Sender: No OFD packet to send [08:25:31]OFD Sender: No OFD packet to send [08:25:36]OFD Sender: No OFD packet to send [08:25:41]OFD Sender: No OFD packet to send [08:25:46]OFD Sender: No OFD packet to send [08:25:51]OFD Sender: No OFD packet to send [08:25:56]OFD Sender: No OFD packet to send [08:26:01]OFD Sender: No OFD packet to send [08:26:06]OFD Sender: No OFD packet to send [08:26:11]OFD Sender: No OFD packet to send [08:26:16]OFD Sender: No OFD packet to send [08:26:21]OFD Sender: No OFD packet to send [08:26:26]OFD Sender: No OFD packet to send [08:26:31]OFD Sender: No OFD packet to send [08:26:36]OFD Sender: No OFD packet to send [08:26:41]OFD Sender: No OFD packet to send [08:26: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:06]OFD Sender: No OFD packet to send [08:28:11]OFD Sender: No OFD packet to send [08:28:16]OFD Sender: No OFD packet to send [08:28:21]OFD Sender: No OFD packet to send [08:28:26]OFD Sender: No OFD packet to send [08:28:31]OFD Sender: No OFD packet to send [08:28:36]OFD Sender: No OFD packet to send [08:28:41]OFD Sender: No OFD packet to send [08:28:46]OFD Sender: No OFD packet to send [08:28:51]OFD Sender: No OFD packet to send [08:28:56]OFD Sender: No OFD packet to send [08:29:01]OFD Sender: No OFD packet to send [08:29:06]OFD Sender: No OFD packet to send [08:29:11]OFD Sender: No OFD packet to send [08:29:16]OFD Sender: No OFD packet to send [08:29:21]OFD Sender: No OFD packet to send [08:29:21]accept exits with 9 [08:29:21]New connection [08:29:21]New thread 3066641764 created [08:29:21]Thread 3066498404 joined [08:29:21]Waiting for new connection... [08:29:21] Sock 9.Parse request [08:29:21]Sock 9.Check first char [08:29:21]Sock 9.First char is OK [08:29:21]request: POST /json_proto HTTP/1.0 [08:29:21]Method: POST [08:29:21]URL: /json_proto [08:29:21]Method is POST - this is cgi request [08:29:21]url: /json_proto [08:29:21]query_string will be loaded in cgi processing [08:29:21]execute_cgi json_proto POST (null) [08:29:21]execute_cgi path=json_proto method=POST [08:29:21]POST find Content-Length [08:29:21]Host: 172.17.33.3:8080 [08:29:21]Content-Length: 812 [08:29:21]Content-Type: application/json [08:29:21] [08:29:21]POST finish read [08:29:21]Found Content-Length = 812 [08:29:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346906", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 22.980, "sum" : 1500.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1500.59 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:29:21]execute_script... [08:29:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346906", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 22.980, "sum" : 1500.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1500.59 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:29:21]POST & json_proto [08:29:21]process_json_proto [08:29:21]json parsed OK: [08:29:21]protocol is kg_v1.0 [08:29:21]action value=close_receipt [08:29:21]process_action close_receipt [08:29:21]cmd_close_receipt [08:29:21]MH_GetDate [08:29:21]Write to MH i2c: F0 00 00 AB 63 FD [08:29:21]Write i2c OK [08:29:21]MH_I2C_Read... [08:29:21]Read from MH i2c: F0 [08:29:21]MH_I2C_Read... [08:29:21]Read from MH i2c: F0 09 00 [08:29:21]MH_I2C_Read... [08:29:21]Read from MH i2c: F0 09 00 AB 63 00 E8 F0 18 66 23 5B 8F 65 CE [08:29:21]GetLastDocTimeStamp 1712910325 [08:29:21]current date 1712910568 [08:29:21]FM_GetShiftState [08:29:21]SAM_PROTO_GetShiftState [08:29:21]wFMCommunicate request_size=4 [08:29:21]MH_SAM_APDU [08:29:21]CAPDU: 80 13 01 00 [08:29:21]Write to MH i2c: E2 08 00 AC 63 80 13 01 00 00 00 00 00 8C [08:29:21]Write i2c OK [08:29:21]MH_I2C_Read... [08:29:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:29:21]Read from MH i2c: E2 [08:29:21]MH_I2C_Read... [08:29:21]Read from MH i2c: E2 0E 00 [08:29:21]MH_I2C_Read... [08:29:21]Read from MH i2c: E2 0E 00 AC 63 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 9D [08:29:21]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [08:29:21]wFMCommunicate OK [08:29:21]SAM_PROTO_GetShiftState done [08:29:21]FM_GetShiftState done [08:29:21]opened in 1712881416 [08:29:21]opened+sec_in_day 1712967816 [08:29:21]quantity*price = 150059 [08:29:21]sum+1 = 150060 [08:29:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.59 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 0.00 Безнал.: 1500.59 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 43 12.04.2024 08:29 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000963154 ФД: 28594 ФПД: 117377181485285 1/tax-web-control/client/api/v1/ticket?date=20240412T082929&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28594&fm=117377181485285&tin=02508201610067®Number=0000138879044617&sum=150059 [08:29:22]StoreToDocumentArchive [08:29:22]shift 113 fd 28594 [08:29:22]save to /storage/0113/doc_00028594 [08:29:22]save last doc name /storage/0113/doc_00028594 to /storage/kkm_last_doc_name [08:29:22]save OK [08:29:22]Clear old archive folders... [08:29:22]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:29:22]tlvbuf is 01AE94B0 [08:29:22]SAM_PROTO_ClearQueue [08:29:22]wFMCommunicate request_size=4 [08:29:22]MH_SAM_APDU [08:29:22]CAPDU: 80 09 00 00 [08:29:22]Write to MH i2c: E2 08 00 B9 63 80 09 00 00 00 00 00 00 8E [08:29:22]Write i2c OK [08:29:22]MH_I2C_Read... [08:29:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:29:22]Read from MH i2c: E2 [08:29:22]MH_I2C_Read... [08:29:22]Read from MH i2c: E2 03 00 [08:29:22]MH_I2C_Read... [08:29:22]Read from MH i2c: E2 03 00 B9 63 00 90 00 90 [08:29:22]RAPDU: 90 00 [08:29:22]wFMCommunicate OK [08:29:22]SAM_PROTO_ClearQueue done [08:29:22]KKMCreateOFDPacket [08:29:22]OFDProtocolAddRootSTLVToBuf [08:29:22]FM_MakeSignedData [08:29:22]FM_MakeSignedData [08:29:22]SAM_PROTO_SignData [08:29:22]wFMCommunicate request_size=4 [08:29:23]MH_SAM_APDU [08:29:23]CAPDU: 80 0D 01 02 [08:29:23]Write to MH i2c: E2 08 00 BA 63 80 0D 01 02 00 00 00 00 96 [08:29:23]Write i2c OK [08:29:23]MH_I2C_Read... [08:29:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:29:23]Read from MH i2c: E2 [08:29:23]MH_I2C_Read... [08:29:23]Read from MH i2c: E2 03 00 [08:29:23]MH_I2C_Read... [08:29:23]Read from MH i2c: E2 03 00 BA 63 00 90 00 91 [08:29:23]RAPDU: 90 00 [08:29:23]wFMCommunicate OK [08:29:23]wFMCommunicate request_size=255 [08:29:23]MH_SAM_APDU [08:29:23]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 59 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 2B 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2B 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2B 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 E9 F0 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B2 6F 00 00 35 04 06 00 [08:29:23]Write to MH i2c: E2 02 01 BB 63 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 59 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 2B 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2B 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2B 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 E9 F0 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B2 6F 00 00 35 04 06 00 00 00 4A [08:29:23]Write i2c OK [08:29:23]MH_I2C_Read... [08:29:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:29:23]Read from MH i2c: E2 [08:29:23]MH_I2C_Read... [08:29:23]Read from MH i2c: E2 03 00 [08:29:23]MH_I2C_Read... [08:29:23]Read from MH i2c: E2 03 00 BB 63 00 90 00 92 [08:29:23]RAPDU: 90 00 [08:29:23]wFMCommunicate OK [08:29:23]wFMCommunicate request_size=11 [08:29:23]MH_SAM_APDU [08:29:23]CAPDU: 80 0D 02 02 06 6A C1 01 35 08 E5 [08:29:23]Write to MH i2c: E2 0E 00 BC 63 80 0D 02 02 06 00 6A C1 01 35 08 E5 00 00 F3 [08:29:23]Write i2c OK [08:29:23]MH_I2C_Read... [08:29:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:29:23]Read from MH i2c: E2 [08:29:23]MH_I2C_Read... [08:29:23]Read from MH i2c: E2 03 00 [08:29:23]MH_I2C_Read... [08:29:23]Read from MH i2c: E2 03 00 BC 63 00 90 00 93 [08:29:23]RAPDU: 90 00 [08:29:23]wFMCommunicate OK [08:29:23]wFMCommunicate request_size=4 [08:29:23]MH_SAM_APDU [08:29:23]CAPDU: 80 0D 03 02 [08:29:23]Write to MH i2c: E2 08 00 BD 63 80 0D 03 02 00 00 00 00 9B [08:29:23]Write i2c OK [08:29:23]MH_I2C_Read... [08:29:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:29:23]Read from MH i2c: E2 [08:29:23]MH_I2C_Read... [08:29:23]Read from MH i2c: E2 0B 00 [08:29:23]MH_I2C_Read... [08:29:23]Read from MH i2c: E2 0B 00 BD 63 00 78 E8 20 EA C5 2F 93 F8 90 00 85 [08:29:23]RAPDU: 78 E8 20 EA C5 2F 93 F8 90 00 [08:29:23]wFMCommunicate OK [08:29:23]SAM_PROTO_SignData done [08:29:23]FM_MakeSignedData done [08:29:23]CreateOFDProtocolMessage [08:29:23]wFMCommunicate request_size=4 [08:29:23]MH_SAM_APDU [08:29:23]CAPDU: 80 11 00 00 [08:29:23]Write to MH i2c: E2 08 00 BE 63 80 11 00 00 00 00 00 00 9B [08:29:23]Write i2c OK [08:29:23]MH_I2C_Read... [08:29:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:29:23]Read from MH i2c: E2 [08:29:23]MH_I2C_Read... [08:29:23]Read from MH i2c: E2 17 00 [08:29:23]MH_I2C_Read... [08:29:23]Read from MH i2c: E2 17 00 BE 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 EA [08:29:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:29:23]wFMCommunicate OK [08:29:23]CreateOFDProtocolMessage done [08:29:23]OFDSenderStorePacket 28594 [08:29:23]StoreOFDPacket docnum=28594 [08:29:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 27 7C 08 01 87 E7 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 59 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 2B 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2B 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2B 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 E9 F0 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B2 6F 00 00 35 04 06 00 6A C1 01 35 08 E5 78 E8 20 EA C5 2F 93 F8 [08:29:23]CheckFolder [08:29:23]dirname=/storage/ofd_packets [08:29:23]CheckFolder done [08:29:23]ProducePacketName [08:29:23]name=ofd_packets/00028594 [08:29:23]NVStorageSaveData ofd_packets/00028594 [08:29:23]File name is /storage/ofd_packets/00028594 [08:29:23]Write 302 bytes [08:29:23]NVStorageSaveData done [08:29:23]OFDSenderStorePacket done [08:29:23]KKMCreateOFDPacket done [08:29:23]NVStorageSaveData kkm_last_timestamp [08:29:23]File name is /storage/kkm_last_timestamp [08:29:23]Write 4 bytes [08:29:23]NVStorageSaveData done [08:29:23]ExternCall_PrintAddStr [08:29:23]wPrintStart [08:29:23]Write to MH i2c: 01 00 00 BF 63 22 [08:29:23]Write i2c OK [08:29:23]MH_I2C_Read... [08:29:23]Read from MH i2c: 01 [08:29:23]MH_I2C_Read... [08:29:23]Read from MH i2c: 01 07 00 [08:29:23]MH_I2C_Read... [08:29:23]Read from MH i2c: 01 07 00 BF 63 00 00 00 00 00 FF 0F 37 [08:29:23]RasterBufferAndPrint [08:29:23]line Счет N : (1)346906 [08:29:23]line ИНН: 02508201610067 [08:29:23]line Контрольно-Кассовый Чек [08:29:23]line ПРОДАЖА [08:29:23]line ТРК (МРК, ГНК) : 12 [08:29:23]line Товар: 2710124130 [08:29:23]line SUPER-92-К-5 [08:29:23]line 22.980 * 65.30 [08:29:23]line = 1500.59 [08:29:23]line НДС 12% НСП 1% [08:29:23]line > о реализуемом товаре [08:29:23]line ИТОГО: 1500.59 [08:29:23]line НСП 1% : 13.28 [08:29:23]line НДС 12% : 159.35 [08:29:23]line Наличными: 0.00 [08:29:23]line Безнал.: 1500.59 [08:29:23]line Место: АЗС № 108 "Партнер Нефть" [08:29:23]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [08:29:23]line СНО: Общий режим [08:29:23]line Чек 43 12.04.2024 08:29 [08:29:23]line Смена: 113 ФФД: 1.0 [08:29:23]line ЗНМ: 0300000027 [08:29:23]line РНМ: 0000138879044617 [08:29:23]line Версия ККМ: 001 [08:29:23]line Платежная система: Бакай Банк [08:29:23]line ФМ: 0000000000963154 [08:29:23]line ФД: 28594 [08:29:23]line ФПД: 117377181485285 [08:29:23]line 1/tax-web-control/client/api/v1/ticket?date=20240412T082929&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28594&fm=117377181485285&tin=02508201610067®Number=0000138879044617&sum=150059 [08:29:23]OFD Sender: Processing packet 28594 [packets to send 8, broken 7] [08:29:23]ProducePacketName [08:29:23]name=ofd_packets/00028594 [08:29:23]OFD Sender: To server: pG, [08:29:23]CommunicateWithHost lk.salyk.kg:30040 [08:29:23]ConnectInit lk.salyk.kg [08:29:23]written 0, free lines is 4095 [08:29:23]Connected sock=10 [08:29:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 27 7C 08 01 87 E7 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 59 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 2B 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2B 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2B 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 E9 F0 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B2 6F 00 00 35 04 06 00 6A C1 01 35 08 E5 78 E8 20 EA C5 2F 93 F8 [08:29:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 B6 A8 47 00 1F B2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B2 6F 00 00 F4 03 04 00 93 9B 18 66 B6 04 01 00 00 FC BF B2 13 C7 45 75 3D [08:29:24]CommunicateWithHost err = 0 [08:29:24]CheckOFDResponse [08:29:24]1017 (14) - 77093643461234 [08:29:24]1041 (16) - 0000000000963154 [08:29:24]1040 (4) - 28594 [08:29:24]1012 (4) - 12.04.2024 02:25 [08:29:24]1206 (1) - 0 [08:29:24]OFD Sender: Remove packet 28594 [08:29:24]ProducePacketName [08:29:24]name=ofd_packets/00028594 [08:29:24]NVStorageDeleteData [08:29:24]Write to MH i2c: 01 00 00 E8 63 4B [08:29:24]Write i2c OK [08:29:24]MH_I2C_Read... [08:29:24]Read from MH i2c: 01 [08:29:24]MH_I2C_Read... [08:29:24]Read from MH i2c: 01 07 00 [08:29:24]MH_I2C_Read... [08:29:24]Read from MH i2c: 01 07 00 E8 63 00 00 00 00 00 E7 0C 45 [08:29:24]RasterBufferAndPrint [08:29:24]line [08:29:24]line [08:29:24]line [08:29:24]line [08:29:24]line [08:29:24]written 0, free lines is 3309 [08:29:24]MH_Cut [08:29:24]Write to MH i2c: D1 01 00 EF 63 01 24 [08:29:24]Write i2c OK [08:29:24]MH_I2C_Read... [08:29:24]Read from MH i2c: D1 [08:29:24]MH_I2C_Read... [08:29:24]Read from MH i2c: D1 01 00 [08:29:24]MH_I2C_Read... [08:29:24]Read from MH i2c: D1 01 00 EF 63 00 23 [08:29:24]Write to MH i2c: 01 00 00 F0 63 53 [08:29:24]Write i2c OK [08:29:24]MH_I2C_Read... [08:29:24]OFD Sender: No OFD packet to send [08:29:25]*** Cut start [08:29:25]*** Partial cut [08:29:25]*** CUTSNS_PIN = 1 [08:29:25]*** CUTSNS_PIN = 0 [08:29:25]*** Brake cut motor [08:29:25]Read from MH i2c: 01 [08:29:25]MH_I2C_Read... [08:29:25]*** Stop cut motor [08:29:25]*** Cut end [08:29:25]Read from MH i2c: 01 07 00 [08:29:25]MH_I2C_Read... [08:29:25]Read from MH i2c: 01 07 00 F0 63 00 00 00 00 00 FF 0F 68 [08:29:25]process_action close_receipt done [08:29:25]requested_data is exist [08:29:25]produce_requested_data [08:29:25]requested_item fm.sn is exist - process it [08:29:25]wFMCommunicate request_size=4 [08:29:25]MH_SAM_APDU [08:29:25]CAPDU: 80 11 00 00 [08:29:25]Write to MH i2c: E2 08 00 F1 63 80 11 00 00 00 00 00 00 CE [08:29:25]Write i2c OK [08:29:25]MH_I2C_Read... [08:29:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:29:25]Read from MH i2c: E2 [08:29:25]MH_I2C_Read... [08:29:25]Read from MH i2c: E2 17 00 [08:29:25]MH_I2C_Read... [08:29:25]Read from MH i2c: E2 17 00 F1 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 1D [08:29:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:29:25]wFMCommunicate OK [08:29:25]requested_item fd.num is exist - process it [08:29:25]SAM_PROTO_GetFieldsCounters [08:29:25]wFMCommunicate request_size=4 [08:29:25]MH_SAM_APDU [08:29:25]CAPDU: 80 13 00 00 [08:29:25]Write to MH i2c: E2 08 00 F2 63 80 13 00 00 00 00 00 00 D1 [08:29:25]Write i2c OK [08:29:25]MH_I2C_Read... [08:29:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:29:25]Read from MH i2c: E2 [08:29:25]MH_I2C_Read... [08:29:25]Read from MH i2c: E2 62 00 [08:29:25]MH_I2C_Read... [08:29:25]Read from MH i2c: E2 62 00 F2 63 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 B2 6F 00 00 0E 04 04 00 71 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 22 [08:29:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 B2 6F 00 00 0E 04 04 00 71 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 [08:29:25]wFMCommunicate OK [08:29:25]SAM_PROTO_GetFieldsCounters done [08:29:25]requested_item shift.num is exist - process it [08:29:25]requested_item shift.opened is exist - process it [08:29:25]req_shift_opened [08:29:25]FM_GetShiftState [08:29:25]SAM_PROTO_GetShiftState [08:29:25]wFMCommunicate request_size=4 [08:29:25]MH_SAM_APDU [08:29:25]CAPDU: 80 13 01 00 [08:29:25]Write to MH i2c: E2 08 00 F3 63 80 13 01 00 00 00 00 00 D3 [08:29:25]Write i2c OK [08:29:25]MH_I2C_Read... [08:29:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:29:26]Read from MH i2c: E2 [08:29:26]MH_I2C_Read... [08:29:26]Read from MH i2c: E2 0E 00 [08:29:26]MH_I2C_Read... [08:29:26]Read from MH i2c: E2 0E 00 F3 63 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 E4 [08:29:26]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [08:29:26]wFMCommunicate OK [08:29:26]SAM_PROTO_GetShiftState done [08:29:26]FM_GetShiftState done [08:29:26]req_shift_opened done [08:29:26]requested_item shift.open_date is exist - process it [08:29:26]req_shift_open_date [08:29:26]req_shift_open_date done [08:29:26]produce_requested_data done [08:29:26]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28594,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [08:29:26]process_action_free close_receipt [08:29:26]json_value_free [08:29:26]json_value_free done [08:29:26]process_json_proto returns [08:29:26]Send response to host [08:29:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28594,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [08:29:26]free response buf [08:29:26]execute_script done [08:29:26]execute_script returns [08:29:26]free content buf [08:29:26]Sock 9.Close socket [08:29:26]Sock 9.Thread stoped [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:54]OFD Sender: No OFD packet to send [08:30:56]accept exits with 7 [08:30:56]New connection [08:30:56]New thread 3066498404 created [08:30:56]Thread 3066641764 joined [08:30:56]Waiting for new connection... [08:30:56] Sock 7.Parse request [08:30:56]Sock 7.Check first char [08:30:56]Sock 7.First char is OK [08:30:56]request: POST /json_proto HTTP/1.0 [08:30:56]Method: POST [08:30:56]URL: /json_proto [08:30:56]Method is POST - this is cgi request [08:30:56]url: /json_proto [08:30:56]query_string will be loaded in cgi processing [08:30:56]execute_cgi json_proto POST (null) [08:30:56]execute_cgi path=json_proto method=POST [08:30:56]POST find Content-Length [08:30:56]Host: 172.17.33.3:8080 [08:30:56]Content-Length: 677 [08:30:56]Content-Type: application/json [08:30:56] [08:30:56]POST finish read [08:30:56]Found Content-Length = 677 [08:30:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346908", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 9.340, "sum" : 600.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:30:56]execute_script... [08:30: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)346908", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 9.340, "sum" : 600.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:30:56]POST & json_proto [08:30:56]process_json_proto [08:30:56]json parsed OK: [08:30:56]protocol is kg_v1.0 [08:30:56]action value=close_receipt [08:30:56]process_action close_receipt [08:30:56]cmd_close_receipt [08:30:56]MH_GetDate [08:30:56]Write to MH i2c: F0 00 00 F4 63 46 [08:30:56]Write i2c OK [08:30:56]MH_I2C_Read... [08:30:56]Read from MH i2c: F0 [08:30:56]MH_I2C_Read... [08:30:56]Read from MH i2c: F0 09 00 [08:30:56]MH_I2C_Read... [08:30:56]Read from MH i2c: F0 09 00 F4 63 00 47 F1 18 66 23 5B 8F 65 77 [08:30:56]GetLastDocTimeStamp 1712910569 [08:30:56]current date 1712910663 [08:30:56]FM_GetShiftState [08:30:56]SAM_PROTO_GetShiftState [08:30:56]wFMCommunicate request_size=4 [08:30:56]MH_SAM_APDU [08:30:56]CAPDU: 80 13 01 00 [08:30:56]Write to MH i2c: E2 08 00 F5 63 80 13 01 00 00 00 00 00 D5 [08:30:56]Write i2c OK [08:30:56]MH_I2C_Read... [08:30:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:30:56]Read from MH i2c: E2 [08:30:56]MH_I2C_Read... [08:30:56]Read from MH i2c: E2 0E 00 [08:30:56]MH_I2C_Read... [08:30:56]Read from MH i2c: E2 0E 00 F5 63 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 E6 [08:30:56]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [08:30:56]wFMCommunicate OK [08:30:56]SAM_PROTO_GetShiftState done [08:30:56]FM_GetShiftState done [08:30:56]opened in 1712881416 [08:30:56]opened+sec_in_day 1712967816 [08:30:56]quantity*price = 60056 [08:30:56]sum+1 = 60057 [08:30:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.78 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 44 12.04.2024 08:31 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28595 ФПД: 26045325178063 1/tax-web-control/client/api/v1/ticket?date=20240412T083103&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28595&fm=26045325178063&tin=02508201610067®Number=0000138879044617&sum=60000 [08:30:57]StoreToDocumentArchive [08:30:57]shift 113 fd 28595 [08:30:57]save to /storage/0113/doc_00028595 [08:30:57]save last doc name /storage/0113/doc_00028595 to /storage/kkm_last_doc_name [08:30:57]save OK [08:30:57]Clear old archive folders... [08:30:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:30:57]tlvbuf is 01AD4460 [08:30:57]SAM_PROTO_ClearQueue [08:30:57]wFMCommunicate request_size=4 [08:30:57]MH_SAM_APDU [08:30:57]CAPDU: 80 09 00 00 [08:30:57]Write to MH i2c: E2 08 00 02 64 80 09 00 00 00 00 00 00 D8 [08:30:57]Write i2c OK [08:30:57]MH_I2C_Read... [08:30:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:30:57]Read from MH i2c: E2 [08:30:57]MH_I2C_Read... [08:30:57]Read from MH i2c: E2 03 00 [08:30:57]MH_I2C_Read... [08:30:57]Read from MH i2c: E2 03 00 02 64 00 90 00 DA [08:30:57]RAPDU: 90 00 [08:30:57]wFMCommunicate OK [08:30:57]SAM_PROTO_ClearQueue done [08:30:57]KKMCreateOFDPacket [08:30:57]OFDProtocolAddRootSTLVToBuf [08:30:57]FM_MakeSignedData [08:30:57]FM_MakeSignedData [08:30:57]SAM_PROTO_SignData [08:30:57]wFMCommunicate request_size=4 [08:30:57]MH_SAM_APDU [08:30:57]CAPDU: 80 0D 01 02 [08:30:57]Write to MH i2c: E2 08 00 03 64 80 0D 01 02 00 00 00 00 E0 [08:30:57]Write i2c OK [08:30:57]MH_I2C_Read... [08:30:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:30:57]Read from MH i2c: E2 [08:30:57]MH_I2C_Read... [08:30:57]Read from MH i2c: E2 03 00 [08:30:57]MH_I2C_Read... [08:30:57]Read from MH i2c: E2 03 00 03 64 00 90 00 DB [08:30:57]RAPDU: 90 00 [08:30:57]wFMCommunicate OK [08:30:57]wFMCommunicate request_size=255 [08:30:57]MH_SAM_APDU [08:30:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7C 24 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 98 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 EA 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 2C 00 00 00 F4 03 04 00 47 F1 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B3 6F 00 00 35 04 06 00 17 [08:30:57]Write to MH i2c: E2 02 01 04 64 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7C 24 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 98 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 EA 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 2C 00 00 00 F4 03 04 00 47 F1 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B3 6F 00 00 35 04 06 00 17 00 00 97 [08:30:57]Write i2c OK [08:30:57]MH_I2C_Read... [08:30:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:30:58]Read from MH i2c: E2 [08:30:58]MH_I2C_Read... [08:30:58]Read from MH i2c: E2 03 00 [08:30:58]MH_I2C_Read... [08:30:58]Read from MH i2c: E2 03 00 04 64 00 90 00 DC [08:30:58]RAPDU: 90 00 [08:30:58]wFMCommunicate OK [08:30:58]wFMCommunicate request_size=10 [08:30:58]MH_SAM_APDU [08:30:58]CAPDU: 80 0D 02 02 05 B0 26 5A F4 CF [08:30:58]Write to MH i2c: E2 0D 00 05 64 80 0D 02 02 05 00 B0 26 5A F4 CF 00 00 E0 [08:30:58]Write i2c OK [08:30:58]MH_I2C_Read... [08:30:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:30:58]Read from MH i2c: E2 [08:30:58]MH_I2C_Read... [08:30:58]Read from MH i2c: E2 03 00 [08:30:58]MH_I2C_Read... [08:30:58]Read from MH i2c: E2 03 00 05 64 00 90 00 DD [08:30:58]RAPDU: 90 00 [08:30:58]wFMCommunicate OK [08:30:58]wFMCommunicate request_size=4 [08:30:58]MH_SAM_APDU [08:30:58]CAPDU: 80 0D 03 02 [08:30:58]Write to MH i2c: E2 08 00 06 64 80 0D 03 02 00 00 00 00 E5 [08:30:58]Write i2c OK [08:30:58]MH_I2C_Read... [08:30:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:30:58]Read from MH i2c: E2 [08:30:58]MH_I2C_Read... [08:30:58]Read from MH i2c: E2 0B 00 [08:30:58]MH_I2C_Read... [08:30:58]Read from MH i2c: E2 0B 00 06 64 00 FE 8C D5 C3 23 EC 47 7F 90 00 DD [08:30:58]RAPDU: FE 8C D5 C3 23 EC 47 7F 90 00 [08:30:58]wFMCommunicate OK [08:30:58]SAM_PROTO_SignData done [08:30:58]FM_MakeSignedData done [08:30:58]CreateOFDProtocolMessage [08:30:58]wFMCommunicate request_size=4 [08:30:58]MH_SAM_APDU [08:30:58]CAPDU: 80 11 00 00 [08:30:58]Write to MH i2c: E2 08 00 07 64 80 11 00 00 00 00 00 00 E5 [08:30:58]Write i2c OK [08:30:58]MH_I2C_Read... [08:30:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:30:58]Read from MH i2c: E2 [08:30:58]MH_I2C_Read... [08:30:58]Read from MH i2c: E2 17 00 [08:30:58]MH_I2C_Read... [08:30:58]Read from MH i2c: E2 17 00 07 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 34 [08:30:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:30:58]wFMCommunicate OK [08:30:58]CreateOFDProtocolMessage done [08:30:58]OFDSenderStorePacket 28595 [08:30:58]StoreOFDPacket docnum=28595 [08:30:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 D5 49 07 01 46 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 35 FF 03 08 00 03 7C 24 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 98 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 EA 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 2C 00 00 00 F4 03 04 00 47 F1 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B3 6F 00 00 35 04 06 00 17 B0 26 5A F4 CF FE 8C D5 C3 23 EC 47 7F [08:30:58]CheckFolder [08:30:58]dirname=/storage/ofd_packets [08:30:58]CheckFolder done [08:30:58]ProducePacketName [08:30:58]name=ofd_packets/00028595 [08:30:58]NVStorageSaveData ofd_packets/00028595 [08:30:58]File name is /storage/ofd_packets/00028595 [08:30:58]Write 301 bytes [08:30:58]NVStorageSaveData done [08:30:58]OFDSenderStorePacket done [08:30:58]KKMCreateOFDPacket done [08:30:58]NVStorageSaveData kkm_last_timestamp [08:30:58]File name is /storage/kkm_last_timestamp [08:30:58]Write 4 bytes [08:30:58]NVStorageSaveData done [08:30:58]ExternCall_PrintAddStr [08:30:58]wPrintStart [08:30:58]Write to MH i2c: 01 00 00 08 64 6C [08:30:58]Write i2c OK [08:30:58]MH_I2C_Read... [08:30:58]Read from MH i2c: 01 [08:30:58]MH_I2C_Read... [08:30:58]Read from MH i2c: 01 07 00 [08:30:58]MH_I2C_Read... [08:30:58]Read from MH i2c: 01 07 00 08 64 00 00 00 00 00 FF 0F 81 [08:30:58]RasterBufferAndPrint [08:30:58]line Счет N : (1)346908 [08:30:58]line ИНН: 02508201610067 [08:30:58]line Контрольно-Кассовый Чек [08:30:58]line ПРОДАЖА [08:30:58]line ТРК (МРК, ГНК) : 13 [08:30:58]line Товар: 2710124130 [08:30:58]line Аи-92-К-5 [08:30:58]line 9.340 * 64.30 [08:30:58]line = 600.56 [08:30:58]line НДС 12% НСП 1% [08:30:58]line > о реализуемом товаре [08:30:58]line ОКРУГЛЕНИЕ: -0.56 [08:30:58]line ИТОГО: 600.00 [08:30:58]line Внесено: 600.00 [08:30:58]line СДАЧА: 0.00 [08:30:58]line НСП 1% : 5.31 [08:30:58]line НДС 12% : 63.78 [08:30:58]line Наличными: 600.00 [08:30:58]line Безнал.: 0.00 [08:30:58]line Место: АЗС № 108 "Партнер Нефть" [08:30:58]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [08:30:58]line СНО: Общий режим [08:30:58]line Чек 44 12.04.2024 08:31 [08:30:58]line Смена: 113 ФФД: 1.0 [08:30:58]line ЗНМ: 0300000027 [08:30:58]line РНМ: 0000138879044617 [08:30:58]line Версия ККМ: 001 [08:30:58]line ФМ: 0000000000963154 [08:30:58]line ФД: 28595 [08:30:58]line ФПД: 26045325178063 [08:30:58]line 1/tax-web-control/client/api/v1/ticket?date=20240412T083103&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28595&fm=26045325178063&tin=02508201610067®Number=0000138879044617&sum=60000 [08:30:58]OFD Sender: Processing packet 28595 [packets to send 8, broken 7] [08:30:58]ProducePacketName [08:30:58]name=ofd_packets/00028595 [08:30:58]OFD Sender: To server: pG, [08:30:58]CommunicateWithHost lk.salyk.kg:30040 [08:30:58]ConnectInit lk.salyk.kg [08:30:58]written 0, free lines is 4095 [08:30:58]Connected sock=10 [08:30:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 D5 49 07 01 46 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 35 FF 03 08 00 03 7C 24 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 98 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 EA 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 2C 00 00 00 F4 03 04 00 47 F1 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B3 6F 00 00 35 04 06 00 17 B0 26 5A F4 CF FE 8C D5 C3 23 EC 47 7F [08:30:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 19 15 47 00 AE 4F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B3 6F 00 00 F4 03 04 00 F2 9B 18 66 B6 04 01 00 00 BE 43 1B 80 30 B2 6F 57 [08:30:59]CommunicateWithHost err = 0 [08:30:59]CheckOFDResponse [08:30:59]1017 (14) - 77093643461234 [08:30:59]1041 (16) - 0000000000963154 [08:30:59]1040 (4) - 28595 [08:30:59]1012 (4) - 12.04.2024 02:26 [08:30:59]1206 (1) - 0 [08:30:59]OFD Sender: Remove packet 28595 [08:30:59]ProducePacketName [08:30:59]name=ofd_packets/00028595 [08:30:59]NVStorageDeleteData [08:30:59]Write to MH i2c: 01 00 00 32 64 96 [08:30:59]Write i2c OK [08:30:59]MH_I2C_Read... [08:30:59]Read from MH i2c: 01 [08:30:59]MH_I2C_Read... [08:30:59]Read from MH i2c: 01 07 00 [08:30:59]MH_I2C_Read... [08:30:59]Read from MH i2c: 01 07 00 32 64 00 00 00 00 00 D1 0C 7A [08:30:59]RasterBufferAndPrint [08:30:59]line [08:30:59]line [08:30:59]line [08:30:59]line [08:30:59]line [08:30:59]written 0, free lines is 3286 [08:30:59]MH_Cut [08:30:59]Write to MH i2c: D1 01 00 39 64 01 6F [08:30:59]Write i2c OK [08:30:59]MH_I2C_Read... [08:30:59]Read from MH i2c: D1 [08:30:59]MH_I2C_Read... [08:30:59]Read from MH i2c: D1 01 00 [08:30:59]MH_I2C_Read... [08:30:59]Read from MH i2c: D1 01 00 39 64 00 6E [08:30:59]Write to MH i2c: 01 00 00 3A 64 9E [08:30:59]Write i2c OK [08:30:59]MH_I2C_Read... [08:30:59]OFD Sender: No OFD packet to send [08:31:00]*** Cut start [08:31:00]*** Partial cut [08:31:00]*** CUTSNS_PIN = 1 [08:31:00]*** CUTSNS_PIN = 0 [08:31:00]*** Brake cut motor [08:31:00]Read from MH i2c: 01 [08:31:00]MH_I2C_Read... [08:31:00]*** Stop cut motor [08:31:00]*** Cut end [08:31:00]Read from MH i2c: 01 07 00 [08:31:00]MH_I2C_Read... [08:31:00]Read from MH i2c: 01 07 00 3A 64 00 00 00 00 00 FF 0F B3 [08:31:00]process_action close_receipt done [08:31:00]requested_data is exist [08:31:00]produce_requested_data [08:31:00]requested_item fm.sn is exist - process it [08:31:00]wFMCommunicate request_size=4 [08:31:00]MH_SAM_APDU [08:31:00]CAPDU: 80 11 00 00 [08:31:00]Write to MH i2c: E2 08 00 3B 64 80 11 00 00 00 00 00 00 19 [08:31:00]Write i2c OK [08:31:00]MH_I2C_Read... [08:31:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:31:00]Read from MH i2c: E2 [08:31:00]MH_I2C_Read... [08:31:00]Read from MH i2c: E2 17 00 [08:31:00]MH_I2C_Read... [08:31:00]Read from MH i2c: E2 17 00 3B 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 68 [08:31:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:31:00]wFMCommunicate OK [08:31:00]requested_item fd.num is exist - process it [08:31:00]SAM_PROTO_GetFieldsCounters [08:31:00]wFMCommunicate request_size=4 [08:31:00]MH_SAM_APDU [08:31:00]CAPDU: 80 13 00 00 [08:31:00]Write to MH i2c: E2 08 00 3C 64 80 13 00 00 00 00 00 00 1C [08:31:00]Write i2c OK [08:31:00]MH_I2C_Read... [08:31:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:31:00]Read from MH i2c: E2 [08:31:00]MH_I2C_Read... [08:31:00]Read from MH i2c: E2 62 00 [08:31:00]MH_I2C_Read... [08:31:00]Read from MH i2c: E2 62 00 3C 64 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 B3 6F 00 00 0E 04 04 00 71 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 71 [08:31:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 B3 6F 00 00 0E 04 04 00 71 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 [08:31:00]wFMCommunicate OK [08:31:00]SAM_PROTO_GetFieldsCounters done [08:31:00]requested_item shift.num is exist - process it [08:31:00]requested_item shift.opened is exist - process it [08:31:00]req_shift_opened [08:31:00]FM_GetShiftState [08:31:00]SAM_PROTO_GetShiftState [08:31:00]wFMCommunicate request_size=4 [08:31:00]MH_SAM_APDU [08:31:00]CAPDU: 80 13 01 00 [08:31:00]Write to MH i2c: E2 08 00 3D 64 80 13 01 00 00 00 00 00 1E [08:31:00]Write i2c OK [08:31:00]MH_I2C_Read... [08:31:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:31:00]Read from MH i2c: E2 [08:31:00]MH_I2C_Read... [08:31:00]Read from MH i2c: E2 0E 00 [08:31:00]MH_I2C_Read... [08:31:00]Read from MH i2c: E2 0E 00 3D 64 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 2F [08:31:00]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [08:31:00]wFMCommunicate OK [08:31:00]SAM_PROTO_GetShiftState done [08:31:00]FM_GetShiftState done [08:31:00]req_shift_opened done [08:31:00]requested_item shift.open_date is exist - process it [08:31:00]req_shift_open_date [08:31:00]req_shift_open_date done [08:31:00]produce_requested_data done [08:31:00]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28595,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [08:31:00]process_action_free close_receipt [08:31:00]json_value_free [08:31:00]json_value_free done [08:31:00]process_json_proto returns [08:31:00]Send response to host [08:31:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28595,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [08:31:00]free response buf [08:31:00]execute_script done [08:31:00]execute_script returns [08:31:00]free content buf [08:31:00]Sock 7.Close socket [08:31:00]Sock 7.Thread stoped [08:31:02]accept exits with 9 [08:31:02]New connection [08:31:02]New thread 3066641764 created [08:31:02]Thread 3066498404 joined [08:31:02]Waiting for new connection... [08:31:02] Sock 9.Parse request [08:31:02]Sock 9.Check first char [08:31:02]Sock 9.First char is OK [08:31:02]request: POST /json_proto HTTP/1.0 [08:31:02]Method: POST [08:31:02]URL: /json_proto [08:31:02]Method is POST - this is cgi request [08:31:02]url: /json_proto [08:31:02]query_string will be loaded in cgi processing [08:31:02]execute_cgi json_proto POST (null) [08:31:02]execute_cgi path=json_proto method=POST [08:31:02]POST find Content-Length [08:31:02]Host: 172.17.33.3:8080 [08:31:02]Content-Length: 678 [08:31:02]Content-Type: application/json [08:31:02] [08:31:02]POST finish read [08:31:02]Found Content-Length = 678 [08:31:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346909", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.50, "quantity" : 10.210, "sum" : 740.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 740.00, "total" : 740.00, "payments": [ { "type": 0, "sum" : 740.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:31:02]execute_script... [08:31:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346909", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.50, "quantity" : 10.210, "sum" : 740.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 740.00, "total" : 740.00, "payments": [ { "type": 0, "sum" : 740.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:31:02]POST & json_proto [08:31:02]process_json_proto [08:31:02]json parsed OK: [08:31:02]protocol is kg_v1.0 [08:31:02]action value=close_receipt [08:31:02]process_action close_receipt [08:31:02]cmd_close_receipt [08:31:02]MH_GetDate [08:31:02]Write to MH i2c: F0 00 00 3E 64 91 [08:31:02]Write i2c OK [08:31:02]MH_I2C_Read... [08:31:02]Read from MH i2c: F0 [08:31:02]MH_I2C_Read... [08:31:02]Read from MH i2c: F0 09 00 [08:31:02]MH_I2C_Read... [08:31:02]Read from MH i2c: F0 09 00 3E 64 00 4D F1 18 66 23 5B 8F 65 C8 [08:31:02]GetLastDocTimeStamp 1712910663 [08:31:02]current date 1712910669 [08:31:02]FM_GetShiftState [08:31:02]SAM_PROTO_GetShiftState [08:31:02]wFMCommunicate request_size=4 [08:31:02]MH_SAM_APDU [08:31:02]CAPDU: 80 13 01 00 [08:31:02]Write to MH i2c: E2 08 00 3F 64 80 13 01 00 00 00 00 00 20 [08:31:02]Write i2c OK [08:31:02]MH_I2C_Read... [08:31:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:31:02]Read from MH i2c: E2 [08:31:02]MH_I2C_Read... [08:31:02]Read from MH i2c: E2 0E 00 [08:31:02]MH_I2C_Read... [08:31:02]Read from MH i2c: E2 0E 00 3F 64 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 31 [08:31:02]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [08:31:02]wFMCommunicate OK [08:31:02]SAM_PROTO_GetShiftState done [08:31:02]FM_GetShiftState done [08:31:02]opened in 1712881416 [08:31:02]opened+sec_in_day 1712967816 [08:31:02]quantity*price = 74022 [08:31:02]sum+1 = 74024 [08:31:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 740.00 Внесено: 740.00 СДАЧА: 0.00 НСП 1% : 6.55 НДС 12% : 78.61 Наличными: 740.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 45 12.04.2024 08:31 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28596 ФПД: 73914250865046 1/tax-web-control/client/api/v1/ticket?date=20240412T083109&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28596&fm=73914250865046&tin=02508201610067®Number=0000138879044617&sum=74000 [08:31:03]StoreToDocumentArchive [08:31:03]shift 113 fd 28596 [08:31:03]save to /storage/0113/doc_00028596 [08:31:03]save last doc name /storage/0113/doc_00028596 to /storage/kkm_last_doc_name [08:31:03]save OK [08:31:03]Clear old archive folders... [08:31:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:31:03]tlvbuf is 01A9F8D0 [08:31:03]SAM_PROTO_ClearQueue [08:31:03]wFMCommunicate request_size=4 [08:31:03]MH_SAM_APDU [08:31:03]CAPDU: 80 09 00 00 [08:31:03]Write to MH i2c: E2 08 00 4C 64 80 09 00 00 00 00 00 00 22 [08:31:03]Write i2c OK [08:31:03]MH_I2C_Read... [08:31:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:31:03]Read from MH i2c: E2 [08:31:03]MH_I2C_Read... [08:31:03]Read from MH i2c: E2 03 00 [08:31:03]MH_I2C_Read... [08:31:03]Read from MH i2c: E2 03 00 4C 64 00 90 00 24 [08:31:03]RAPDU: 90 00 [08:31:03]wFMCommunicate OK [08:31:03]SAM_PROTO_ClearQueue done [08:31:03]KKMCreateOFDPacket [08:31:03]OFDProtocolAddRootSTLVToBuf [08:31:03]FM_MakeSignedData [08:31:03]FM_MakeSignedData [08:31:03]SAM_PROTO_SignData [08:31:03]wFMCommunicate request_size=4 [08:31:03]MH_SAM_APDU [08:31:03]CAPDU: 80 0D 01 02 [08:31:03]Write to MH i2c: E2 08 00 4D 64 80 0D 01 02 00 00 00 00 2A [08:31:03]Write i2c OK [08:31:03]MH_I2C_Read... [08:31:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:31:03]Read from MH i2c: E2 [08:31:03]MH_I2C_Read... [08:31:03]Read from MH i2c: E2 03 00 [08:31:03]MH_I2C_Read... [08:31:03]Read from MH i2c: E2 03 00 4D 64 00 90 00 25 [08:31:03]RAPDU: 90 00 [08:31:03]wFMCommunicate OK [08:31:03]wFMCommunicate request_size=255 [08:31:03]MH_SAM_APDU [08:31: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 35 FF 03 08 00 03 E2 27 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 27 21 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 21 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 1E 00 00 00 00 07 04 06 00 10 21 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 4D F1 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B4 6F 00 00 35 04 06 00 43 [08:31:03]Write to MH i2c: E2 02 01 4E 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 35 FF 03 08 00 03 E2 27 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 27 21 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 21 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 1E 00 00 00 00 07 04 06 00 10 21 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 4D F1 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B4 6F 00 00 35 04 06 00 43 00 00 9D [08:31:03]Write i2c OK [08:31:03]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 4E 64 00 90 00 26 [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 39 80 AA A9 96 [08:31:04]Write to MH i2c: E2 0D 00 4F 64 80 0D 02 02 05 00 39 80 AA A9 96 00 00 D9 [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 4F 64 00 90 00 27 [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 50 64 80 0D 03 02 00 00 00 00 2F [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 50 64 00 60 06 19 3A 6C DA 44 AD 90 00 20 [08:31:04]RAPDU: 60 06 19 3A 6C DA 44 AD 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 51 64 80 11 00 00 00 00 00 00 2F [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 51 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 7E [08:31:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:31:04]wFMCommunicate OK [08:31:04]CreateOFDProtocolMessage done [08:31:04]OFDSenderStorePacket 28596 [08:31:04]StoreOFDPacket docnum=28596 [08:31:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 2E 5F 07 01 8B DB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E2 27 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 27 21 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 21 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 1E 00 00 00 00 07 04 06 00 10 21 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 4D F1 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B4 6F 00 00 35 04 06 00 43 39 80 AA A9 96 60 06 19 3A 6C DA 44 AD [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/00028596 [08:31:04]NVStorageSaveData ofd_packets/00028596 [08:31:04]File name is /storage/ofd_packets/00028596 [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 52 64 B6 [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 52 64 00 00 00 00 00 FF 0F CB [08:31:04]RasterBufferAndPrint [08:31:04]line Счет N : (1)346909 [08:31:04]line ИНН: 02508201610067 [08:31:04]line Контрольно-Кассовый Чек [08:31:04]line ПРОДАЖА [08:31:04]line ТРК (МРК, ГНК) : 43 [08:31:04]line Товар: 2710124500 [08:31:04]line Аи-95-К-5 [08:31:04]line 10.210 * 72.50 [08:31:04]line = 740.23 [08:31:04]line НДС 12% НСП 1% [08:31:04]line > о реализуемом товаре [08:31:04]line ОКРУГЛЕНИЕ: -0.23 [08:31:04]line ИТОГО: 740.00 [08:31:04]line Внесено: 740.00 [08:31:04]line СДАЧА: 0.00 [08:31:04]line НСП 1% : 6.55 [08:31:04]line НДС 12% : 78.61 [08:31:04]line Наличными: 740.00 [08:31:04]line Безнал.: 0.00 [08:31:04]line Место: АЗС № 108 "Партнер Нефть" [08:31:04]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [08:31:04]line СНО: Общий режим [08:31:04]line Чек 45 12.04.2024 08:31 [08:31:04]line Смена: 113 ФФД: 1.0 [08:31:04]line ЗНМ: 0300000027 [08:31:04]line РНМ: 0000138879044617 [08:31:04]line Версия ККМ: 001 [08:31:04]line ФМ: 0000000000963154 [08:31:04]line ФД: 28596 [08:31:04]line ФПД: 73914250865046 [08:31:04]line 1/tax-web-control/client/api/v1/ticket?date=20240412T083109&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28596&fm=73914250865046&tin=02508201610067®Number=0000138879044617&sum=74000 [08:31:04]OFD Sender: Processing packet 28596 [packets to send 8, broken 7] [08:31:04]ProducePacketName [08:31:04]name=ofd_packets/00028596 [08:31:04]OFD Sender: To server: pG, [08:31:04]CommunicateWithHost lk.salyk.kg:30040 [08:31:04]ConnectInit lk.salyk.kg [08:31:04]written 0, free lines is 4095 [08:31:04]Connected sock=10 [08:31:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 2E 5F 07 01 8B DB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E2 27 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 27 21 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 21 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 1E 00 00 00 00 07 04 06 00 10 21 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 4D F1 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B4 6F 00 00 35 04 06 00 43 39 80 AA A9 96 60 06 19 3A 6C DA 44 AD [08:31:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 5E B6 47 00 2E 15 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B4 6F 00 00 F4 03 04 00 F8 9B 18 66 B6 04 01 00 00 B0 30 45 A2 B6 56 64 56 [08:31:04]CommunicateWithHost err = 0 [08:31:04]CheckOFDResponse [08:31:04]1017 (14) - 77093643461234 [08:31:04]1041 (16) - 0000000000963154 [08:31:04]1040 (4) - 28596 [08:31:04]1012 (4) - 12.04.2024 02:27 [08:31:04]1206 (1) - 0 [08:31:04]OFD Sender: Remove packet 28596 [08:31:04]ProducePacketName [08:31:04]name=ofd_packets/00028596 [08:31:04]NVStorageDeleteData [08:31:05]Write to MH i2c: 01 00 00 7C 64 E0 [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 7C 64 00 00 00 00 00 D3 0C C6 [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 3298 [08:31:05]MH_Cut [08:31:05]Write to MH i2c: D1 01 00 83 64 01 B9 [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 83 64 00 B8 [08:31:05]Write to MH i2c: 01 00 00 84 64 E8 [08:31:05]Write i2c OK [08:31:05]MH_I2C_Read... [08:31:05]OFD Sender: No OFD packet to send [08:31:05]*** Cut start [08:31:05]*** Partial cut [08:31:05]*** CUTSNS_PIN = 1 [08:31:05]*** CUTSNS_PIN = 0 [08:31:06]*** Brake cut motor [08:31:06]Read from MH i2c: 01 [08:31:06]MH_I2C_Read... [08:31:06]*** Stop cut motor [08:31:06]*** Cut end [08:31:06]Read from MH i2c: 01 07 00 [08:31:06]MH_I2C_Read... [08:31:06]Read from MH i2c: 01 07 00 84 64 00 00 00 00 00 FF 0F FD [08:31:06]process_action close_receipt done [08:31:06]requested_data is exist [08:31:06]produce_requested_data [08:31:06]requested_item fm.sn is exist - process it [08:31:06]wFMCommunicate request_size=4 [08:31:06]MH_SAM_APDU [08:31:06]CAPDU: 80 11 00 00 [08:31:06]Write to MH i2c: E2 08 00 85 64 80 11 00 00 00 00 00 00 63 [08:31:06]Write i2c OK [08:31:06]MH_I2C_Read... [08:31:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:31:06]Read from MH i2c: E2 [08:31:06]MH_I2C_Read... [08:31:06]Read from MH i2c: E2 17 00 [08:31:06]MH_I2C_Read... [08:31:06]Read from MH i2c: E2 17 00 85 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 B2 [08:31:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:31:06]wFMCommunicate OK [08:31:06]requested_item fd.num is exist - process it [08:31:06]SAM_PROTO_GetFieldsCounters [08:31:06]wFMCommunicate request_size=4 [08:31:06]MH_SAM_APDU [08:31:06]CAPDU: 80 13 00 00 [08:31:06]Write to MH i2c: E2 08 00 86 64 80 13 00 00 00 00 00 00 66 [08:31:06]Write i2c OK [08:31:06]MH_I2C_Read... [08:31:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:31:06]Read from MH i2c: E2 [08:31:06]MH_I2C_Read... [08:31:06]Read from MH i2c: E2 62 00 [08:31:06]MH_I2C_Read... [08:31:06]Read from MH i2c: E2 62 00 86 64 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 B4 6F 00 00 0E 04 04 00 71 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 BF [08:31:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 B4 6F 00 00 0E 04 04 00 71 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 [08:31:06]wFMCommunicate OK [08:31:06]SAM_PROTO_GetFieldsCounters done [08:31:06]requested_item shift.num is exist - process it [08:31:06]requested_item shift.opened is exist - process it [08:31:06]req_shift_opened [08:31:06]FM_GetShiftState [08:31:06]SAM_PROTO_GetShiftState [08:31:06]wFMCommunicate request_size=4 [08:31:06]MH_SAM_APDU [08:31:06]CAPDU: 80 13 01 00 [08:31:06]Write to MH i2c: E2 08 00 87 64 80 13 01 00 00 00 00 00 68 [08:31:06]Write i2c OK [08:31:06]MH_I2C_Read... [08:31:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:31:06]Read from MH i2c: E2 [08:31:06]MH_I2C_Read... [08:31:06]Read from MH i2c: E2 0E 00 [08:31:06]MH_I2C_Read... [08:31:06]Read from MH i2c: E2 0E 00 87 64 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 79 [08:31:06]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [08:31:06]wFMCommunicate OK [08:31:06]SAM_PROTO_GetShiftState done [08:31:06]FM_GetShiftState done [08:31:06]req_shift_opened done [08:31:06]requested_item shift.open_date is exist - process it [08:31:06]req_shift_open_date [08:31:06]req_shift_open_date done [08:31:06]produce_requested_data done [08:31:06]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28596,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [08:31:06]process_action_free close_receipt [08:31:06]json_value_free [08:31:06]json_value_free done [08:31:06]process_json_proto returns [08:31:06]Send response to host [08:31:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28596,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [08:31:06]free response buf [08:31:06]execute_script done [08:31:06]execute_script returns [08:31:06]free content buf [08:31:06]Sock 9.Close socket [08:31:06]Sock 9.Thread stoped [08:31:10]OFD Sender: No OFD packet to send [08:31:15]OFD Sender: No OFD packet to send [08:31:20]OFD Sender: No OFD packet to send [08:31:25]OFD Sender: No OFD packet to send [08:31:30]OFD Sender: No OFD packet to send [08:31:35]OFD Sender: No OFD packet to send [08:31:40]OFD Sender: No OFD packet to send [08:31:45]OFD Sender: No OFD packet to send [08:31:50]OFD Sender: No OFD packet to send [08:31:55]OFD Sender: No OFD packet to send [08:32:00]OFD Sender: No OFD packet to send [08:32:05]OFD Sender: No OFD packet to send [08:32:10]OFD Sender: No OFD packet to send [08:32:15]OFD Sender: No OFD packet to send [08:32:20]OFD Sender: No OFD packet to send [08:32:25]OFD Sender: No OFD packet to send [08:32:30]OFD Sender: No OFD packet to send [08:32:35]OFD Sender: No OFD packet to send [08:32:40]OFD Sender: No OFD packet to send [08:32:45]OFD Sender: No OFD packet to send [08:32:50]OFD Sender: No OFD packet to send [08:32:55]OFD Sender: No OFD packet to send [08:33:00]OFD Sender: No OFD packet to send [08:33:05]OFD Sender: No OFD packet to send [08:33:10]OFD Sender: No OFD packet to send [08:33:15]OFD Sender: No OFD packet to send [08:33:20]OFD Sender: No OFD packet to send [08:33:25]OFD Sender: No OFD packet to send [08:33:30]OFD Sender: No OFD packet to send [08:33:35]OFD Sender: No OFD packet to send [08:33:40]OFD Sender: No OFD packet to send [08:33:41]accept exits with 7 [08:33:41]New connection [08:33:41]New thread 3066498404 created [08:33:41]Thread 3066641764 joined [08:33:41]Waiting for new connection... [08:33:41] Sock 7.Parse request [08:33:41]Sock 7.Check first char [08:33:41]Sock 7.First char is OK [08:33:41]request: POST /json_proto HTTP/1.0 [08:33:41]Method: POST [08:33:41]URL: /json_proto [08:33:41]Method is POST - this is cgi request [08:33:41]url: /json_proto [08:33:41]query_string will be loaded in cgi processing [08:33:41]execute_cgi json_proto POST (null) [08:33:41]execute_cgi path=json_proto method=POST [08:33:41]POST find Content-Length [08:33:41]Host: 172.17.33.3:8080 [08:33:41]Content-Length: 1213 [08:33:41]Content-Type: application/json [08:33:41] [08:33:41]POST finish read [08:33:41]Found Content-Length = 1213 [08:33:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)346907\u000A12.04.2024 08:15\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 40.000 x 64.30\u000A\u0418\u0422\u041E\u0413: 2572.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A01122\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:33:41]execute_script... [08:33:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)346907\u000A12.04.2024 08:15\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 40.000 x 64.30\u000A\u0418\u0422\u041E\u0413: 2572.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A01122\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:33:41]POST & json_proto [08:33:41]process_json_proto [08:33:41]json parsed OK: [08:33:41]protocol is kg_v1.0 [08:33:41]action value=print_text [08:33:41]process_action print_text [08:33:41]cmd_print_text [08:33:41]ExternCall_PrintAddStr [08:33:41]wPrintStart [08:33:41]Write to MH i2c: 01 00 00 88 64 EC [08:33:41]Write i2c OK [08:33:41]MH_I2C_Read... [08:33:41]Read from MH i2c: 01 [08:33:41]MH_I2C_Read... [08:33:41]Read from MH i2c: 01 07 00 [08:33:41]MH_I2C_Read... [08:33:41]Read from MH i2c: 01 07 00 88 64 00 00 00 00 00 FF 0F 01 [08:33:41]RasterBufferAndPrint [08:33:41]line *****ТОВАРНЫЙ ЧЕК***** [08:33:41]line АЗС 108 [08:33:41]line Партнер нефть [08:33:41]line 02508201610067 [08:33:41]line Кассир : Джумагулова Н. [08:33:41]line Счет N : (1)346907 [08:33:41]line 12.04.2024 08:15 [08:33:41]line ПРОДАЖА [08:33:41]line ТРК (МРК, ГНК): 32 [08:33:41]line Вид ГСМ : 2710124130 [08:33:41]line Аи-92-К-5 [08:33:41]line 40.000 x 64.30 [08:33:41]line ИТОГ: 2572.00 [08:33:41]line Тип оплаты: Талоны: Топливная Карта [08:33:41]line 01122 [08:33:41]line ______________________ [08:33:41]line (подпись) [08:33:41]written 0, free lines is 4095 [08:33:41]Write to MH i2c: 01 00 00 9D 64 01 [08:33:41]Write i2c OK [08:33:41]MH_I2C_Read... [08:33:41]Read from MH i2c: 01 [08:33:41]MH_I2C_Read... [08:33:41]Read from MH i2c: 01 07 00 [08:33:41]MH_I2C_Read... [08:33:41]Read from MH i2c: 01 07 00 9D 64 00 00 00 00 00 F7 0D 0C [08:33:41]RasterBufferAndPrint [08:33:41]line [08:33:41]line [08:33:41]line [08:33:41]line [08:33:41]line [08:33:41]written 0, free lines is 3576 [08:33:41]MH_Cut [08:33:41]Write to MH i2c: D1 01 00 A4 64 01 DA [08:33:41]Write i2c OK [08:33:41]MH_I2C_Read... [08:33:41]Read from MH i2c: D1 [08:33:41]MH_I2C_Read... [08:33:41]Read from MH i2c: D1 01 00 [08:33:41]MH_I2C_Read... [08:33:41]Read from MH i2c: D1 01 00 A4 64 00 D9 [08:33:41]Write to MH i2c: 01 00 00 A5 64 09 [08:33:41]Write i2c OK [08:33:41]MH_I2C_Read... [08:33:42]*** Cut start [08:33:42]*** Partial cut [08:33:42]*** CUTSNS_PIN = 1 [08:33:42]*** CUTSNS_PIN = 0 [08:33:42]*** Brake cut motor [08:33:43]Read from MH i2c: 01 [08:33:43]MH_I2C_Read... [08:33:43]*** Stop cut motor [08:33:43]*** Cut end [08:33:43]Read from MH i2c: 01 07 00 [08:33:43]MH_I2C_Read... [08:33:43]Read from MH i2c: 01 07 00 A5 64 00 00 00 00 00 FF 0F 1E [08:33:43]process_action print_text done [08:33:43]requested_data is exist [08:33:43]produce_requested_data [08:33:43]requested_item fm.sn is exist - process it [08:33:43]wFMCommunicate request_size=4 [08:33:43]MH_SAM_APDU [08:33:43]CAPDU: 80 11 00 00 [08:33:43]Write to MH i2c: E2 08 00 A6 64 80 11 00 00 00 00 00 00 84 [08:33:43]Write i2c OK [08:33:43]MH_I2C_Read... [08:33:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:33:43]Read from MH i2c: E2 [08:33:43]MH_I2C_Read... [08:33:43]Read from MH i2c: E2 17 00 [08:33:43]MH_I2C_Read... [08:33:43]Read from MH i2c: E2 17 00 A6 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D3 [08:33:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:33:43]wFMCommunicate OK [08:33:43]requested_item fd.num is exist - process it [08:33:43]SAM_PROTO_GetFieldsCounters [08:33:43]wFMCommunicate request_size=4 [08:33:43]MH_SAM_APDU [08:33:43]CAPDU: 80 13 00 00 [08:33:43]Write to MH i2c: E2 08 00 A7 64 80 13 00 00 00 00 00 00 87 [08:33:43]Write i2c OK [08:33:43]MH_I2C_Read... [08:33:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:33:43]Read from MH i2c: E2 [08:33:43]MH_I2C_Read... [08:33:43]Read from MH i2c: E2 62 00 [08:33:43]MH_I2C_Read... [08:33:43]Read from MH i2c: E2 62 00 A7 64 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 B4 6F 00 00 0E 04 04 00 71 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 E0 [08:33:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 B4 6F 00 00 0E 04 04 00 71 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 [08:33:43]wFMCommunicate OK [08:33:43]SAM_PROTO_GetFieldsCounters done [08:33:43]requested_item shift.num is exist - process it [08:33:43]requested_item shift.opened is exist - process it [08:33:43]req_shift_opened [08:33:43]FM_GetShiftState [08:33:43]SAM_PROTO_GetShiftState [08:33:43]wFMCommunicate request_size=4 [08:33:43]MH_SAM_APDU [08:33:43]CAPDU: 80 13 01 00 [08:33:43]Write to MH i2c: E2 08 00 A8 64 80 13 01 00 00 00 00 00 89 [08:33:43]Write i2c OK [08:33:43]MH_I2C_Read... [08:33:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:33:43]Read from MH i2c: E2 [08:33:43]MH_I2C_Read... [08:33:43]Read from MH i2c: E2 0E 00 [08:33:43]MH_I2C_Read... [08:33:43]Read from MH i2c: E2 0E 00 A8 64 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 9A [08:33:43]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [08:33:43]wFMCommunicate OK [08:33:43]SAM_PROTO_GetShiftState done [08:33:43]FM_GetShiftState done [08:33:43]req_shift_opened done [08:33:43]requested_item shift.open_date is exist - process it [08:33:43]req_shift_open_date [08:33:43]req_shift_open_date done [08:33:43]produce_requested_data done [08:33:43]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28596,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [08:33:43]process_action_free print_text [08:33:43]json_value_free [08:33:43]json_value_free done [08:33:43]process_json_proto returns [08:33:43]Send response to host [08:33:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28596,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [08:33:43]free response buf [08:33:43]execute_script done [08:33:43]execute_script returns [08:33:43]free content buf [08:33:43]Sock 7.Close socket [08:33:43]Sock 7.Thread stoped [08:33:45]OFD Sender: No OFD packet to send [08:33:50]OFD Sender: No OFD packet to send [08:33:55]OFD Sender: No OFD packet to send [08:34:00]OFD Sender: No OFD packet to send [08:34:05]OFD Sender: No OFD packet to send [08:34:10]OFD Sender: No OFD packet to send [08:34:15]OFD Sender: No OFD packet to send [08:34:20]OFD Sender: No OFD packet to send [08:34:25]OFD Sender: No OFD packet to send [08:34:30]OFD Sender: No OFD packet to send [08:34:35]OFD Sender: No OFD packet to send [08:34:40]OFD Sender: No OFD packet to send [08:34:45]OFD Sender: No OFD packet to send [08:34:50]OFD Sender: No OFD packet to send [08:34:55]OFD Sender: No OFD packet to send [08:34:56]accept exits with 9 [08:34:56]New connection [08:34:56]New thread 3066641764 created [08:34:56]Thread 3066498404 joined [08:34:56]Waiting for new connection... [08:34:56] Sock 9.Parse request [08:34:56]Sock 9.Check first char [08:34:56]Sock 9.First char is OK [08:34:56]request: POST /json_proto HTTP/1.0 [08:34:56]Method: POST [08:34:56]URL: /json_proto [08:34:56]Method is POST - this is cgi request [08:34:56]url: /json_proto [08:34:56]query_string will be loaded in cgi processing [08:34:56]execute_cgi json_proto POST (null) [08:34:56]execute_cgi path=json_proto method=POST [08:34:56]POST find Content-Length [08:34:56]Host: 172.17.33.3:8080 [08:34:56]Content-Length: 670 [08:34:56]Content-Type: application/json [08:34:56] [08:34:56]POST finish read [08:34:56]Found Content-Length = 670 [08:34:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346910", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 9.190, "sum" : 600.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:34:56]execute_script... [08:34: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)346910", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 9.190, "sum" : 600.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:34:56]POST & json_proto [08:34:56]process_json_proto [08:34:56]json parsed OK: [08:34:56]protocol is kg_v1.0 [08:34:56]action value=close_receipt [08:34:56]process_action close_receipt [08:34:56]cmd_close_receipt [08:34:56]MH_GetDate [08:34:56]Write to MH i2c: F0 00 00 A9 64 FC [08:34:56]Write i2c OK [08:34:56]MH_I2C_Read... [08:34:56]Read from MH i2c: F0 [08:34:56]MH_I2C_Read... [08:34:56]Read from MH i2c: F0 09 00 [08:34:56]MH_I2C_Read... [08:34:56]Read from MH i2c: F0 09 00 A9 64 00 38 F2 18 66 23 5B 8F 65 1F [08:34:56]GetLastDocTimeStamp 1712910669 [08:34:56]current date 1712910904 [08:34:56]FM_GetShiftState [08:34:56]SAM_PROTO_GetShiftState [08:34:56]wFMCommunicate request_size=4 [08:34:56]MH_SAM_APDU [08:34:56]CAPDU: 80 13 01 00 [08:34:56]Write to MH i2c: E2 08 00 AA 64 80 13 01 00 00 00 00 00 8B [08:34:56]Write i2c OK [08:34:56]MH_I2C_Read... [08:34:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:34:56]Read from MH i2c: E2 [08:34:56]MH_I2C_Read... [08:34:56]Read from MH i2c: E2 0E 00 [08:34:56]MH_I2C_Read... [08:34:56]Read from MH i2c: E2 0E 00 AA 64 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 9C [08:34:56]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [08:34:56]wFMCommunicate OK [08:34:56]SAM_PROTO_GetShiftState done [08:34:56]FM_GetShiftState done [08:34:56]opened in 1712881416 [08:34:56]opened+sec_in_day 1712967816 [08:34:56]quantity*price = 60010 [08:34:56]sum+1 = 60012 [08:34:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 46 12.04.2024 08:35 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28597 ФПД: 221082941875893 1/tax-web-control/client/api/v1/ticket?date=20240412T083504&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28597&fm=221082941875893&tin=02508201610067®Number=0000138879044617&sum=60000 [08:34:58]StoreToDocumentArchive [08:34:58]shift 113 fd 28597 [08:34:58]save to /storage/0113/doc_00028597 [08:34:58]save last doc name /storage/0113/doc_00028597 to /storage/kkm_last_doc_name [08:34:58]save OK [08:34:58]Clear old archive folders... [08:34:58]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:34:58]tlvbuf is 01B55050 [08:34:58]SAM_PROTO_ClearQueue [08:34:58]wFMCommunicate request_size=4 [08:34:58]MH_SAM_APDU [08:34:58]CAPDU: 80 09 00 00 [08:34:58]Write to MH i2c: E2 08 00 B7 64 80 09 00 00 00 00 00 00 8D [08:34:58]Write i2c OK [08:34:58]MH_I2C_Read... [08:34:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:34:58]Read from MH i2c: E2 [08:34:58]MH_I2C_Read... [08:34:58]Read from MH i2c: E2 03 00 [08:34:58]MH_I2C_Read... [08:34:58]Read from MH i2c: E2 03 00 B7 64 00 90 00 8F [08:34:58]RAPDU: 90 00 [08:34:58]wFMCommunicate OK [08:34:58]SAM_PROTO_ClearQueue done [08:34:58]KKMCreateOFDPacket [08:34:58]OFDProtocolAddRootSTLVToBuf [08:34:58]FM_MakeSignedData [08:34:58]FM_MakeSignedData [08:34:58]SAM_PROTO_SignData [08:34:58]wFMCommunicate request_size=4 [08:34:58]MH_SAM_APDU [08:34:58]CAPDU: 80 0D 01 02 [08:34:58]Write to MH i2c: E2 08 00 B8 64 80 0D 01 02 00 00 00 00 95 [08:34:58]Write i2c OK [08:34:58]MH_I2C_Read... [08:34:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:34:58]Read from MH i2c: E2 [08:34:58]MH_I2C_Read... [08:34:58]Read from MH i2c: E2 03 00 [08:34:58]MH_I2C_Read... [08:34:58]Read from MH i2c: E2 03 00 B8 64 00 90 00 90 [08:34:58]RAPDU: 90 00 [08:34:58]wFMCommunicate OK [08:34:58]wFMCommunicate request_size=255 [08:34:58]MH_SAM_APDU [08:34:58]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 6B 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 2E 00 00 00 F4 03 04 00 38 F2 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B5 6F 00 00 35 04 06 00 [08:34:58]Write to MH i2c: E2 02 01 B9 64 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 6B 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 2E 00 00 00 F4 03 04 00 38 F2 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B5 6F 00 00 35 04 06 00 00 00 70 [08:34:58]Write i2c OK [08:34:58]MH_I2C_Read... [08:34:58]Read from MH i2c: E2 [08:34:58]MH_I2C_Read... [08:34:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:34:58]Read from MH i2c: E2 03 00 [08:34:58]MH_I2C_Read... [08:34:58]Read from MH i2c: E2 03 00 B9 64 00 90 00 91 [08:34:58]RAPDU: 90 00 [08:34:58]wFMCommunicate OK [08:34:58]wFMCommunicate request_size=11 [08:34:58]MH_SAM_APDU [08:34:58]CAPDU: 80 0D 02 02 06 C9 12 E2 37 66 B5 [08:34:58]Write to MH i2c: E2 0E 00 BA 64 80 0D 02 02 06 00 C9 12 E2 37 66 B5 00 00 B3 [08:34:58]Write i2c OK [08:34:58]MH_I2C_Read... [08:34:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:34:58]Read from MH i2c: E2 [08:34:58]MH_I2C_Read... [08:34:58]Read from MH i2c: E2 03 00 [08:34:58]MH_I2C_Read... [08:34:58]Read from MH i2c: E2 03 00 BA 64 00 90 00 92 [08:34:58]RAPDU: 90 00 [08:34:58]wFMCommunicate OK [08:34:58]wFMCommunicate request_size=4 [08:34:58]MH_SAM_APDU [08:34:58]CAPDU: 80 0D 03 02 [08:34:58]Write to MH i2c: E2 08 00 BB 64 80 0D 03 02 00 00 00 00 9A [08:34:58]Write i2c OK [08:34:58]MH_I2C_Read... [08:34:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:34:58]Read from MH i2c: E2 [08:34:58]MH_I2C_Read... [08:34:58]Read from MH i2c: E2 0B 00 [08:34:58]MH_I2C_Read... [08:34:58]Read from MH i2c: E2 0B 00 BB 64 00 0A 2E 90 84 24 AC 66 4B 90 00 68 [08:34:58]RAPDU: 0A 2E 90 84 24 AC 66 4B 90 00 [08:34:58]wFMCommunicate OK [08:34:58]SAM_PROTO_SignData done [08:34:58]FM_MakeSignedData done [08:34:58]CreateOFDProtocolMessage [08:34:58]wFMCommunicate request_size=4 [08:34:58]MH_SAM_APDU [08:34:58]CAPDU: 80 11 00 00 [08:34:58]Write to MH i2c: E2 08 00 BC 64 80 11 00 00 00 00 00 00 9A [08:34:58]Write i2c OK [08:34:58]MH_I2C_Read... [08:34:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:34:58]Read from MH i2c: E2 [08:34:58]MH_I2C_Read... [08:34:58]Read from MH i2c: E2 17 00 [08:34:58]MH_I2C_Read... [08:34:58]Read from MH i2c: E2 17 00 BC 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 E9 [08:34:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:34:58]wFMCommunicate OK [08:34:58]CreateOFDProtocolMessage done [08:34:58]OFDSenderStorePacket 28597 [08:34:58]StoreOFDPacket docnum=28597 [08:34:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 60 16 08 01 60 8C 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 6B 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 2E 00 00 00 F4 03 04 00 38 F2 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B5 6F 00 00 35 04 06 00 C9 12 E2 37 66 B5 0A 2E 90 84 24 AC 66 4B [08:34:58]CheckFolder [08:34:58]dirname=/storage/ofd_packets [08:34:58]CheckFolder done [08:34:58]ProducePacketName [08:34:58]name=ofd_packets/00028597 [08:34:58]NVStorageSaveData ofd_packets/00028597 [08:34:58]File name is /storage/ofd_packets/00028597 [08:34:58]Write 302 bytes [08:34:58]NVStorageSaveData done [08:34:58]OFDSenderStorePacket done [08:34:58]KKMCreateOFDPacket done [08:34:58]NVStorageSaveData kkm_last_timestamp [08:34:58]File name is /storage/kkm_last_timestamp [08:34:58]Write 4 bytes [08:34:58]NVStorageSaveData done [08:34:58]ExternCall_PrintAddStr [08:34:58]wPrintStart [08:34:58]Write to MH i2c: 01 00 00 BD 64 21 [08:34:58]Write i2c OK [08:34:58]MH_I2C_Read... [08:34:58]Read from MH i2c: 01 [08:34:58]MH_I2C_Read... [08:34:58]Read from MH i2c: 01 07 00 [08:34:58]MH_I2C_Read... [08:34:58]Read from MH i2c: 01 07 00 BD 64 00 00 00 00 00 FF 0F 36 [08:34:58]RasterBufferAndPrint [08:34:58]line Счет N : (1)346910 [08:34:58]line ИНН: 02508201610067 [08:34:58]line Контрольно-Кассовый Чек [08:34:58]line ПРОДАЖА [08:34:58]line ТРК (МРК, ГНК) : 12 [08:34:58]line Товар: 2710124130 [08:34:58]line SUPER-92-К-5 [08:34:58]line 9.190 * 65.30 [08:34:58]line = 600.11 [08:34:58]line НДС 12% НСП 1% [08:34:58]line > о реализуемом товаре [08:34:58]line ОКРУГЛЕНИЕ: -0.11 [08:34:58]line ИТОГО: 600.00 [08:34:58]line Внесено: 600.00 [08:34:58]line СДАЧА: 0.00 [08:34:58]line НСП 1% : 5.31 [08:34:58]line НДС 12% : 63.73 [08:34:58]line Наличными: 600.00 [08:34:58]line Безнал.: 0.00 [08:34:58]line Место: АЗС № 108 "Партнер Нефть" [08:34:58]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [08:34:58]line СНО: Общий режим [08:34:58]line Чек 46 12.04.2024 08:35 [08:34:58]line Смена: 113 ФФД: 1.0 [08:34:58]line ЗНМ: 0300000027 [08:34:58]line РНМ: 0000138879044617 [08:34:58]line Версия ККМ: 001 [08:34:58]line ФМ: 0000000000963154 [08:34:58]line ФД: 28597 [08:34:58]line ФПД: 221082941875893 [08:34:58]line 1/tax-web-control/client/api/v1/ticket?date=20240412T083504&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28597&fm=221082941875893&tin=02508201610067®Number=0000138879044617&sum=60000 [08:34:58]OFD Sender: Processing packet 28597 [packets to send 8, broken 7] [08:34:58]ProducePacketName [08:34:58]name=ofd_packets/00028597 [08:34:58]OFD Sender: To server: pG, [08:34:58]CommunicateWithHost lk.salyk.kg:30040 [08:34:58]ConnectInit lk.salyk.kg [08:34:58]written 0, free lines is 4095 [08:34:59]Connected sock=10 [08:34:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 60 16 08 01 60 8C 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 6B 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 2E 00 00 00 F4 03 04 00 38 F2 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B5 6F 00 00 35 04 06 00 C9 12 E2 37 66 B5 0A 2E 90 84 24 AC 66 4B [08:34:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 9F B4 47 00 91 6E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B5 6F 00 00 F4 03 04 00 E2 9C 18 66 B6 04 01 00 00 EA 32 68 DF 3D D7 BD 48 [08:34:59]CommunicateWithHost err = 0 [08:34:59]CheckOFDResponse [08:34:59]1017 (14) - 77093643461234 [08:34:59]1041 (16) - 0000000000963154 [08:34:59]1040 (4) - 28597 [08:34:59]1012 (4) - 12.04.2024 02:30 [08:34:59]1206 (1) - 0 [08:34:59]OFD Sender: Remove packet 28597 [08:34:59]ProducePacketName [08:34:59]name=ofd_packets/00028597 [08:34:59]NVStorageDeleteData [08:34:59]Write to MH i2c: 01 00 00 E7 64 4B [08:34:59]Write i2c OK [08:34:59]MH_I2C_Read... [08:34:59]Read from MH i2c: 01 [08:34:59]MH_I2C_Read... [08:34:59]Read from MH i2c: 01 07 00 [08:34:59]MH_I2C_Read... [08:34:59]Read from MH i2c: 01 07 00 E7 64 00 00 00 00 00 C5 0C 23 [08:34:59]RasterBufferAndPrint [08:34:59]line [08:34:59]line [08:34:59]line [08:34:59]line [08:34:59]line [08:34:59]written 0, free lines is 3273 [08:34:59]MH_Cut [08:34:59]Write to MH i2c: D1 01 00 EE 64 01 24 [08:34:59]Write i2c OK [08:34:59]MH_I2C_Read... [08:34:59]Read from MH i2c: D1 [08:34:59]MH_I2C_Read... [08:34:59]Read from MH i2c: D1 01 00 [08:34:59]MH_I2C_Read... [08:34:59]Read from MH i2c: D1 01 00 EE 64 00 23 [08:34:59]Write to MH i2c: 01 00 00 EF 64 53 [08:34:59]Write i2c OK [08:34:59]MH_I2C_Read... [08:34:59]OFD Sender: No OFD packet to send [08:35:00]*** Cut start [08:35:00]*** Partial cut [08:35:00]*** CUTSNS_PIN = 1 [08:35:00]*** CUTSNS_PIN = 0 [08:35:00]*** Brake cut motor [08:35:00]Read from MH i2c: 01 [08:35:00]MH_I2C_Read... [08:35:00]*** Stop cut motor [08:35:00]*** Cut end [08:35:00]Read from MH i2c: 01 07 00 [08:35:00]MH_I2C_Read... [08:35:00]Read from MH i2c: 01 07 00 EF 64 00 00 00 00 00 FF 0F 68 [08:35:00]process_action close_receipt done [08:35:00]requested_data is exist [08:35:00]produce_requested_data [08:35:00]requested_item fm.sn is exist - process it [08:35:00]wFMCommunicate request_size=4 [08:35:00]MH_SAM_APDU [08:35:00]CAPDU: 80 11 00 00 [08:35:00]Write to MH i2c: E2 08 00 F0 64 80 11 00 00 00 00 00 00 CE [08:35:00]Write i2c OK [08:35:00]MH_I2C_Read... [08:35:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:35:00]Read from MH i2c: E2 [08:35:00]MH_I2C_Read... [08:35:00]Read from MH i2c: E2 17 00 [08:35:00]MH_I2C_Read... [08:35:00]Read from MH i2c: E2 17 00 F0 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 1D [08:35:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:35:00]wFMCommunicate OK [08:35:00]requested_item fd.num is exist - process it [08:35:00]SAM_PROTO_GetFieldsCounters [08:35:00]wFMCommunicate request_size=4 [08:35:00]MH_SAM_APDU [08:35:00]CAPDU: 80 13 00 00 [08:35:00]Write to MH i2c: E2 08 00 F1 64 80 13 00 00 00 00 00 00 D1 [08:35:00]Write i2c OK [08:35:00]MH_I2C_Read... [08:35:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:35:01]Read from MH i2c: E2 [08:35:01]MH_I2C_Read... [08:35:01]Read from MH i2c: E2 62 00 [08:35:01]MH_I2C_Read... [08:35:01]Read from MH i2c: E2 62 00 F1 64 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 B5 6F 00 00 0E 04 04 00 71 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 2E [08:35:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 B5 6F 00 00 0E 04 04 00 71 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 [08:35:01]wFMCommunicate OK [08:35:01]SAM_PROTO_GetFieldsCounters done [08:35:01]requested_item shift.num is exist - process it [08:35:01]requested_item shift.opened is exist - process it [08:35:01]req_shift_opened [08:35:01]FM_GetShiftState [08:35:01]SAM_PROTO_GetShiftState [08:35:01]wFMCommunicate request_size=4 [08:35:01]MH_SAM_APDU [08:35:01]CAPDU: 80 13 01 00 [08:35:01]Write to MH i2c: E2 08 00 F2 64 80 13 01 00 00 00 00 00 D3 [08:35:01]Write i2c OK [08:35:01]MH_I2C_Read... [08:35:01]Read from MH i2c: E2 [08:35:01]MH_I2C_Read... [08:35:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:35:01]Read from MH i2c: E2 0E 00 [08:35:01]MH_I2C_Read... [08:35:01]Read from MH i2c: E2 0E 00 F2 64 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 E4 [08:35:01]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [08:35:01]wFMCommunicate OK [08:35:01]SAM_PROTO_GetShiftState done [08:35:01]FM_GetShiftState done [08:35:01]req_shift_opened done [08:35:01]requested_item shift.open_date is exist - process it [08:35:01]req_shift_open_date [08:35:01]req_shift_open_date done [08:35:01]produce_requested_data done [08:35:01]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28597,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [08:35:01]process_action_free close_receipt [08:35:01]json_value_free [08:35:01]json_value_free done [08:35:01]process_json_proto returns [08:35:01]Send response to host [08:35:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28597,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [08:35:01]free response buf [08:35:01]execute_script done [08:35:01]execute_script returns [08:35:01]free content buf [08:35:01]Sock 9.Close socket [08:35:01]Sock 9.Thread stoped [08:35:04]OFD Sender: No OFD packet to send [08:35:09]OFD Sender: No OFD packet to send [08:35:14]OFD Sender: No OFD packet to send [08:35:19]OFD Sender: No OFD packet to send [08:35:24]OFD Sender: No OFD packet to send [08:35:29]OFD Sender: No OFD packet to send [08:35:34]OFD Sender: No OFD packet to send [08:35:37]accept exits with 7 [08:35:37]New connection [08:35:37]New thread 3066498404 created [08:35:37]Thread 3066641764 joined [08:35:37]Waiting for new connection... [08:35:37] Sock 7.Parse request [08:35:37]Sock 7.Check first char [08:35:37]Sock 7.First char is OK [08:35:37]request: POST /json_proto HTTP/1.0 [08:35:37]Method: POST [08:35:37]URL: /json_proto [08:35:37]Method is POST - this is cgi request [08:35:37]url: /json_proto [08:35:37]query_string will be loaded in cgi processing [08:35:37]execute_cgi json_proto POST (null) [08:35:37]execute_cgi path=json_proto method=POST [08:35:37]POST find Content-Length [08:35:37]Host: 172.17.33.3:8080 [08:35:37]Content-Length: 682 [08:35:37]Content-Type: application/json [08:35:37] [08:35:37]POST finish read [08:35:37]Found Content-Length = 682 [08:35:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346911", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 15.560, "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:35:37]execute_script... [08: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)346911", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 15.560, "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:35:37]POST & json_proto [08:35:37]process_json_proto [08:35:37]json parsed OK: [08:35:37]protocol is kg_v1.0 [08:35:37]action value=close_receipt [08:35:37]process_action close_receipt [08:35:37]cmd_close_receipt [08:35:37]MH_GetDate [08:35:37]Write to MH i2c: F0 00 00 F3 64 46 [08:35:37]Write i2c OK [08:35:37]MH_I2C_Read... [08:35:37]Read from MH i2c: F0 [08:35:37]MH_I2C_Read... [08:35:37]Read from MH i2c: F0 09 00 [08:35:37]MH_I2C_Read... [08:35:37]Read from MH i2c: F0 09 00 F3 64 00 60 F2 18 66 23 5B 8F 65 91 [08:35:37]GetLastDocTimeStamp 1712910904 [08:35:37]current date 1712910944 [08:35:37]FM_GetShiftState [08:35:37]SAM_PROTO_GetShiftState [08:35:37]wFMCommunicate request_size=4 [08:35:37]MH_SAM_APDU [08:35:37]CAPDU: 80 13 01 00 [08:35:37]Write to MH i2c: E2 08 00 F4 64 80 13 01 00 00 00 00 00 D5 [08:35:37]Write i2c OK [08:35:37]MH_I2C_Read... [08:35:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:35:37]Read from MH i2c: E2 [08:35:37]MH_I2C_Read... [08:35:37]Read from MH i2c: E2 0E 00 [08:35:37]MH_I2C_Read... [08:35:37]Read from MH i2c: E2 0E 00 F4 64 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 E6 [08:35:37]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [08:35:37]wFMCommunicate OK [08:35:37]SAM_PROTO_GetShiftState done [08:35:37]FM_GetShiftState done [08:35:37]opened in 1712881416 [08:35:37]opened+sec_in_day 1712967816 [08:35:37]quantity*price = 100050 [08:35:37]sum+1 = 100052 [08:35:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 47 12.04.2024 08:35 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28598 ФПД: 71979315058540 1/tax-web-control/client/api/v1/ticket?date=20240412T083544&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28598&fm=71979315058540&tin=02508201610067®Number=0000138879044617&sum=100000 [08:35:38]StoreToDocumentArchive [08:35:38]shift 113 fd 28598 [08:35:38]save to /storage/0113/doc_00028598 [08:35:38]save last doc name /storage/0113/doc_00028598 to /storage/kkm_last_doc_name [08:35:38]save OK [08:35:38]Clear old archive folders... [08:35:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:35:38]tlvbuf is 01BF9DF0 [08:35:38]SAM_PROTO_ClearQueue [08:35:38]wFMCommunicate request_size=4 [08:35:38]MH_SAM_APDU [08:35:38]CAPDU: 80 09 00 00 [08:35:38]Write to MH i2c: E2 08 00 01 65 80 09 00 00 00 00 00 00 D8 [08:35:38]Write i2c OK [08:35:38]MH_I2C_Read... [08:35:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:35:38]Read from MH i2c: E2 [08:35:38]MH_I2C_Read... [08:35:38]Read from MH i2c: E2 03 00 [08:35:38]MH_I2C_Read... [08:35:38]Read from MH i2c: E2 03 00 01 65 00 90 00 DA [08:35:38]RAPDU: 90 00 [08:35:38]wFMCommunicate OK [08:35:38]SAM_PROTO_ClearQueue done [08:35:38]KKMCreateOFDPacket [08:35:38]OFDProtocolAddRootSTLVToBuf [08:35:38]FM_MakeSignedData [08:35:38]FM_MakeSignedData [08:35:38]SAM_PROTO_SignData [08:35:38]wFMCommunicate request_size=4 [08:35:38]MH_SAM_APDU [08:35:38]CAPDU: 80 0D 01 02 [08:35:38]Write to MH i2c: E2 08 00 02 65 80 0D 01 02 00 00 00 00 E0 [08:35:38]Write i2c OK [08:35:38]MH_I2C_Read... [08:35:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:35:38]Read from MH i2c: E2 [08:35:38]MH_I2C_Read... [08:35:38]Read from MH i2c: E2 03 00 [08:35:38]MH_I2C_Read... [08:35:38]Read from MH i2c: E2 03 00 02 65 00 90 00 DB [08:35:38]RAPDU: 90 00 [08:35:38]wFMCommunicate OK [08:35:38]wFMCommunicate request_size=255 [08:35:38]MH_SAM_APDU [08:35:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 60 F2 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B6 6F 00 00 35 04 06 00 41 [08:35:38]Write to MH i2c: E2 02 01 03 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 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 60 F2 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B6 6F 00 00 35 04 06 00 41 00 00 E2 [08:35:38]Write i2c OK [08:35:38]MH_I2C_Read... [08:35:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:35:39]Read from MH i2c: E2 [08:35:39]MH_I2C_Read... [08:35:39]Read from MH i2c: E2 03 00 [08:35:39]MH_I2C_Read... [08:35:39]Read from MH i2c: E2 03 00 03 65 00 90 00 DC [08:35:39]RAPDU: 90 00 [08:35:39]wFMCommunicate OK [08:35:39]wFMCommunicate request_size=10 [08:35:39]MH_SAM_APDU [08:35:39]CAPDU: 80 0D 02 02 05 76 FD 81 57 6C [08:35:39]Write to MH i2c: E2 0D 00 04 65 80 0D 02 02 05 00 76 FD 81 57 6C 00 00 A4 [08:35:39]Write i2c OK [08:35:39]MH_I2C_Read... [08:35:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:35:39]Read from MH i2c: E2 [08:35:39]MH_I2C_Read... [08:35:39]Read from MH i2c: E2 03 00 [08:35:39]MH_I2C_Read... [08:35:39]Read from MH i2c: E2 03 00 04 65 00 90 00 DD [08:35:39]RAPDU: 90 00 [08:35:39]wFMCommunicate OK [08:35:39]wFMCommunicate request_size=4 [08:35:39]MH_SAM_APDU [08:35:39]CAPDU: 80 0D 03 02 [08:35:39]Write to MH i2c: E2 08 00 05 65 80 0D 03 02 00 00 00 00 E5 [08:35:39]Write i2c OK [08:35:39]MH_I2C_Read... [08:35:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:35:39]Read from MH i2c: E2 [08:35:39]MH_I2C_Read... [08:35:39]Read from MH i2c: E2 0B 00 [08:35:39]MH_I2C_Read... [08:35:39]Read from MH i2c: E2 0B 00 05 65 00 C6 C0 DC 87 7B CE B2 AB 90 00 75 [08:35:39]RAPDU: C6 C0 DC 87 7B CE B2 AB 90 00 [08:35:39]wFMCommunicate OK [08:35:39]SAM_PROTO_SignData done [08:35:39]FM_MakeSignedData done [08:35:39]CreateOFDProtocolMessage [08:35:39]wFMCommunicate request_size=4 [08:35:39]MH_SAM_APDU [08:35:39]CAPDU: 80 11 00 00 [08:35:39]Write to MH i2c: E2 08 00 06 65 80 11 00 00 00 00 00 00 E5 [08:35:39]Write i2c OK [08:35:39]MH_I2C_Read... [08:35:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:35:39]Read from MH i2c: E2 [08:35:39]MH_I2C_Read... [08:35:39]Read from MH i2c: E2 17 00 [08:35:39]MH_I2C_Read... [08:35:39]Read from MH i2c: E2 17 00 06 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 34 [08:35:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:35:39]wFMCommunicate OK [08:35:39]CreateOFDProtocolMessage done [08:35:39]OFDSenderStorePacket 28598 [08:35:39]StoreOFDPacket docnum=28598 [08:35:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 D2 B1 07 01 32 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 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 60 F2 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B6 6F 00 00 35 04 06 00 41 76 FD 81 57 6C C6 C0 DC 87 7B CE B2 AB [08:35:39]CheckFolder [08:35:39]dirname=/storage/ofd_packets [08:35:39]CheckFolder done [08:35:39]ProducePacketName [08:35:39]name=ofd_packets/00028598 [08:35:39]NVStorageSaveData ofd_packets/00028598 [08:35:39]File name is /storage/ofd_packets/00028598 [08:35:39]Write 301 bytes [08:35:39]NVStorageSaveData done [08:35:39]OFDSenderStorePacket done [08:35:39]KKMCreateOFDPacket done [08:35:39]NVStorageSaveData kkm_last_timestamp [08:35:39]File name is /storage/kkm_last_timestamp [08:35:39]Write 4 bytes [08:35:39]NVStorageSaveData done [08:35:39]ExternCall_PrintAddStr [08:35:39]wPrintStart [08:35:39]Write to MH i2c: 01 00 00 07 65 6C [08:35:39]Write i2c OK [08:35:39]MH_I2C_Read... [08:35:39]Read from MH i2c: 01 [08:35:39]MH_I2C_Read... [08:35:39]Read from MH i2c: 01 07 00 [08:35:39]MH_I2C_Read... [08:35:39]Read from MH i2c: 01 07 00 07 65 00 00 00 00 00 FF 0F 81 [08:35:39]RasterBufferAndPrint [08:35:39]line Счет N : (1)346911 [08:35:39]line ИНН: 02508201610067 [08:35:39]line Контрольно-Кассовый Чек [08:35:39]line ПРОДАЖА [08:35:39]line ТРК (МРК, ГНК) : 32 [08:35:39]line Товар: 2710124130 [08:35:39]line Аи-92-К-5 [08:35:39]line 15.560 * 64.30 [08:35:39]line = 1000.51 [08:35:39]line НДС 12% НСП 1% [08:35:39]line > о реализуемом товаре [08:35:39]line ОКРУГЛЕНИЕ: -0.51 [08:35:39]line ИТОГО: 1000.00 [08:35:39]line Внесено: 1000.00 [08:35:39]line СДАЧА: 0.00 [08:35:39]line НСП 1% : 8.85 [08:35:39]line НДС 12% : 106.25 [08:35:39]line Наличными: 1000.00 [08:35:39]line Безнал.: 0.00 [08:35:39]line Место: АЗС № 108 "Партнер Нефть" [08:35:39]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [08:35:39]line СНО: Общий режим [08:35:39]line Чек 47 12.04.2024 08:35 [08:35:39]line Смена: 113 ФФД: 1.0 [08:35:39]line ЗНМ: 0300000027 [08:35:39]line РНМ: 0000138879044617 [08:35:39]line Версия ККМ: 001 [08:35:39]line ФМ: 0000000000963154 [08:35:39]line ФД: 28598 [08:35:39]line ФПД: 71979315058540 [08:35:39]line 1/tax-web-control/client/api/v1/ticket?date=20240412T083544&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28598&fm=71979315058540&tin=02508201610067®Number=0000138879044617&sum=100000 [08:35:39]written 0, free lines is 4095 [08:35:39]OFD Sender: Processing packet 28598 [packets to send 8, broken 7] [08:35:39]ProducePacketName [08:35:39]name=ofd_packets/00028598 [08:35:39]OFD Sender: To server: pG, [08:35:39]CommunicateWithHost lk.salyk.kg:30040 [08:35:39]ConnectInit lk.salyk.kg [08:35:39]Connected sock=10 [08:35:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 D2 B1 07 01 32 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 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 60 F2 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B6 6F 00 00 35 04 06 00 41 76 FD 81 57 6C C6 C0 DC 87 7B CE B2 AB [08:35:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 0C 9C 47 00 D4 A0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B6 6F 00 00 F4 03 04 00 0B 9D 18 66 B6 04 01 00 00 F1 66 E4 E5 EC 55 8F F1 [08:35:39]CommunicateWithHost err = 0 [08:35:39]CheckOFDResponse [08:35:39]1017 (14) - 77093643461234 [08:35:39]1041 (16) - 0000000000963154 [08:35:39]1040 (4) - 28598 [08:35:39]1012 (4) - 12.04.2024 02:31 [08:35:39]1206 (1) - 0 [08:35:39]OFD Sender: Remove packet 28598 [08:35:39]ProducePacketName [08:35:39]name=ofd_packets/00028598 [08:35:39]NVStorageDeleteData [08:35:40]Write to MH i2c: 01 00 00 31 65 96 [08:35:40]Write i2c OK [08:35:40]MH_I2C_Read... [08:35:40]Read from MH i2c: 01 [08:35:40]MH_I2C_Read... [08:35:40]Read from MH i2c: 01 07 00 [08:35:40]MH_I2C_Read... [08:35:40]Read from MH i2c: 01 07 00 31 65 00 00 00 00 00 C3 0C 6C [08:35:40]RasterBufferAndPrint [08:35:40]line [08:35:40]line [08:35:40]line [08:35:40]line [08:35:40]line [08:35:40]written 0, free lines is 3273 [08:35:40]MH_Cut [08:35:40]Write to MH i2c: D1 01 00 38 65 01 6F [08:35:40]Write i2c OK [08:35:40]MH_I2C_Read... [08:35:40]Read from MH i2c: D1 [08:35:40]MH_I2C_Read... [08:35:40]Read from MH i2c: D1 01 00 [08:35:40]MH_I2C_Read... [08:35:40]Read from MH i2c: D1 01 00 38 65 00 6E [08:35:40]Write to MH i2c: 01 00 00 39 65 9E [08:35:40]Write i2c OK [08:35:40]MH_I2C_Read... [08:35:40]OFD Sender: No OFD packet to send [08:35:40]*** Cut start [08:35:40]*** Partial cut [08:35:40]*** CUTSNS_PIN = 1 [08:35:41]*** CUTSNS_PIN = 0 [08:35:41]*** Brake cut motor [08:35:41]Read from MH i2c: 01 [08:35:41]MH_I2C_Read... [08:35:41]*** Stop cut motor [08:35:41]*** Cut end [08:35:41]Read from MH i2c: 01 07 00 [08:35:41]MH_I2C_Read... [08:35:41]Read from MH i2c: 01 07 00 39 65 00 00 00 00 00 FF 0F B3 [08:35:41]process_action close_receipt done [08:35:41]requested_data is exist [08:35:41]produce_requested_data [08:35:41]requested_item fm.sn is exist - process it [08:35:41]wFMCommunicate request_size=4 [08:35:41]MH_SAM_APDU [08:35:41]CAPDU: 80 11 00 00 [08:35:41]Write to MH i2c: E2 08 00 3A 65 80 11 00 00 00 00 00 00 19 [08:35:41]Write i2c OK [08:35:41]MH_I2C_Read... [08:35:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:35:41]Read from MH i2c: E2 [08:35:41]MH_I2C_Read... [08:35:41]Read from MH i2c: E2 17 00 [08:35:41]MH_I2C_Read... [08:35:41]Read from MH i2c: E2 17 00 3A 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 68 [08:35:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:35:41]wFMCommunicate OK [08:35:41]requested_item fd.num is exist - process it [08:35:41]SAM_PROTO_GetFieldsCounters [08:35:41]wFMCommunicate request_size=4 [08:35:41]MH_SAM_APDU [08:35:41]CAPDU: 80 13 00 00 [08:35:41]Write to MH i2c: E2 08 00 3B 65 80 13 00 00 00 00 00 00 1C [08:35:41]Write i2c OK [08:35:41]MH_I2C_Read... [08:35:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:35:41]Read from MH i2c: E2 [08:35:41]MH_I2C_Read... [08:35:41]Read from MH i2c: E2 62 00 [08:35:41]MH_I2C_Read... [08:35:41]Read from MH i2c: E2 62 00 3B 65 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 B6 6F 00 00 0E 04 04 00 71 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 7D [08:35:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 B6 6F 00 00 0E 04 04 00 71 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 [08:35:41]wFMCommunicate OK [08:35:41]SAM_PROTO_GetFieldsCounters done [08:35:41]requested_item shift.num is exist - process it [08:35:41]requested_item shift.opened is exist - process it [08:35:41]req_shift_opened [08:35:41]FM_GetShiftState [08:35:41]SAM_PROTO_GetShiftState [08:35:41]wFMCommunicate request_size=4 [08:35:41]MH_SAM_APDU [08:35:41]CAPDU: 80 13 01 00 [08:35:41]Write to MH i2c: E2 08 00 3C 65 80 13 01 00 00 00 00 00 1E [08:35:41]Write i2c OK [08:35:41]MH_I2C_Read... [08:35:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:35:41]Read from MH i2c: E2 [08:35:41]MH_I2C_Read... [08:35:41]Read from MH i2c: E2 0E 00 [08:35:41]MH_I2C_Read... [08:35:41]Read from MH i2c: E2 0E 00 3C 65 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 2F [08:35:41]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [08:35:41]wFMCommunicate OK [08:35:41]SAM_PROTO_GetShiftState done [08:35:41]FM_GetShiftState done [08:35:41]req_shift_opened done [08:35:41]requested_item shift.open_date is exist - process it [08:35:41]req_shift_open_date [08:35:41]req_shift_open_date done [08:35:41]produce_requested_data done [08:35:41]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28598,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [08:35:41]process_action_free close_receipt [08:35:41]json_value_free [08:35:41]json_value_free done [08:35:41]process_json_proto returns [08:35:41]Send response to host [08:35:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28598,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [08:35:41]free response buf [08:35:41]execute_script done [08:35:41]execute_script returns [08:35:41]free content buf [08:35:41]Sock 7.Close socket [08:35:41]Sock 7.Thread stoped [08:35:45]OFD Sender: No OFD packet to send [08:35:50]OFD Sender: No OFD packet to send [08:35:55]OFD Sender: No OFD packet to send [08:36:00]OFD Sender: No OFD packet to send [08:36:05]OFD Sender: No OFD packet to send [08:36:10]OFD Sender: No OFD packet to send [08:36:15]OFD Sender: No OFD packet to send [08:36:20]OFD Sender: No OFD packet to send [08:36:25]OFD Sender: No OFD packet to send [08:36:30]OFD Sender: No OFD packet to send [08:36:35]OFD Sender: No OFD packet to send [08:36:40]OFD Sender: No OFD packet to send [08:36:45]OFD Sender: No OFD packet to send [08:36:50]OFD Sender: No OFD packet to send [08:36:55]OFD Sender: No OFD packet to send [08:37:00]OFD Sender: No OFD packet to send [08:37:05]OFD Sender: No OFD packet to send [08:37:10]OFD Sender: No OFD packet to send [08:37:15]OFD Sender: No OFD packet to send [08:37:20]OFD Sender: No OFD packet to send [08:37:25]OFD Sender: No OFD packet to send [08:37:30]OFD Sender: No OFD packet to send [08:37:35]OFD Sender: No OFD packet to send [08:37:40]OFD Sender: No OFD packet to send [08:37:45]OFD Sender: No OFD packet to send [08:37:50]OFD Sender: No OFD packet to send [08:37:55]OFD Sender: No OFD packet to send [08:38:00]OFD Sender: No OFD packet to send [08:38:05]OFD Sender: No OFD packet to send [08:38:10]OFD Sender: No OFD packet to send [08:38:15]OFD Sender: No OFD packet to send [08:38:16]accept exits with 9 [08:38:16]New connection [08:38:16]New thread 3066641764 created [08:38:16]Thread 3066498404 joined [08:38:16]Waiting for new connection... [08:38:16] Sock 9.Parse request [08:38:16]Sock 9.Check first char [08:38:16]Sock 9.First char is OK [08:38:16]request: POST /json_proto HTTP/1.0 [08:38:16]Method: POST [08:38:16]URL: /json_proto [08:38:16]Method is POST - this is cgi request [08:38:16]url: /json_proto [08:38:16]query_string will be loaded in cgi processing [08:38:16]execute_cgi json_proto POST (null) [08:38:16]execute_cgi path=json_proto method=POST [08:38:16]POST find Content-Length [08:38:16]Host: 172.17.33.3:8080 [08:38:16]Content-Length: 682 [08:38:16]Content-Type: application/json [08:38:16] [08:38:16]POST finish read [08:38:16]Found Content-Length = 682 [08:38:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346912", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 15.560, "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:38:16]execute_script... [08:38: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)346912", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 15.560, "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:38:16]POST & json_proto [08:38:16]process_json_proto [08:38:16]json parsed OK: [08:38:16]protocol is kg_v1.0 [08:38:16]action value=close_receipt [08:38:16]process_action close_receipt [08:38:16]cmd_close_receipt [08:38:16]MH_GetDate [08:38:16]Write to MH i2c: F0 00 00 3D 65 91 [08:38:16]Write i2c OK [08:38:16]MH_I2C_Read... [08:38:16]Read from MH i2c: F0 [08:38:16]MH_I2C_Read... [08:38:16]Read from MH i2c: F0 09 00 [08:38:16]MH_I2C_Read... [08:38:16]Read from MH i2c: F0 09 00 3D 65 00 00 F3 18 66 23 5B 8F 65 7D [08:38:16]GetLastDocTimeStamp 1712910944 [08:38:16]current date 1712911104 [08:38:16]FM_GetShiftState [08:38:16]SAM_PROTO_GetShiftState [08:38:16]wFMCommunicate request_size=4 [08:38:16]MH_SAM_APDU [08:38:16]CAPDU: 80 13 01 00 [08:38:16]Write to MH i2c: E2 08 00 3E 65 80 13 01 00 00 00 00 00 20 [08:38:16]Write i2c OK [08:38:16]MH_I2C_Read... [08:38:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:38:16]Read from MH i2c: E2 [08:38:16]MH_I2C_Read... [08:38:16]Read from MH i2c: E2 0E 00 [08:38:16]MH_I2C_Read... [08:38:16]Read from MH i2c: E2 0E 00 3E 65 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 31 [08:38:16]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [08:38:16]wFMCommunicate OK [08:38:16]SAM_PROTO_GetShiftState done [08:38:16]FM_GetShiftState done [08:38:16]opened in 1712881416 [08:38:16]opened+sec_in_day 1712967816 [08:38:16]quantity*price = 100050 [08:38:16]sum+1 = 100052 [08:38:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 48 12.04.2024 08:38 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28599 ФПД: 152812356955193 1/tax-web-control/client/api/v1/ticket?date=20240412T083824&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28599&fm=152812356955193&tin=02508201610067®Number=0000138879044617&sum=100000 [08:38:17]StoreToDocumentArchive [08:38:17]shift 113 fd 28599 [08:38:17]save to /storage/0113/doc_00028599 [08:38:17]save last doc name /storage/0113/doc_00028599 to /storage/kkm_last_doc_name [08:38:17]save OK [08:38:17]Clear old archive folders... [08:38:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:38:17]tlvbuf is 01AA9400 [08:38:17]SAM_PROTO_ClearQueue [08:38:17]wFMCommunicate request_size=4 [08:38:17]MH_SAM_APDU [08:38:17]CAPDU: 80 09 00 00 [08:38:17]Write to MH i2c: E2 08 00 4B 65 80 09 00 00 00 00 00 00 22 [08:38:17]Write i2c OK [08:38:17]MH_I2C_Read... [08:38:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:38:18]Read from MH i2c: E2 [08:38:18]MH_I2C_Read... [08:38:18]Read from MH i2c: E2 03 00 [08:38:18]MH_I2C_Read... [08:38:18]Read from MH i2c: E2 03 00 4B 65 00 90 00 24 [08:38:18]RAPDU: 90 00 [08:38:18]wFMCommunicate OK [08:38:18]SAM_PROTO_ClearQueue done [08:38:18]KKMCreateOFDPacket [08:38:18]OFDProtocolAddRootSTLVToBuf [08:38:18]FM_MakeSignedData [08:38:18]FM_MakeSignedData [08:38:18]SAM_PROTO_SignData [08:38:18]wFMCommunicate request_size=4 [08:38:18]MH_SAM_APDU [08:38:18]CAPDU: 80 0D 01 02 [08:38:18]Write to MH i2c: E2 08 00 4C 65 80 0D 01 02 00 00 00 00 2A [08:38:18]Write i2c OK [08:38:18]MH_I2C_Read... [08:38:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:38:18]Read from MH i2c: E2 [08:38:18]MH_I2C_Read... [08:38:18]Read from MH i2c: E2 03 00 [08:38:18]MH_I2C_Read... [08:38:18]Read from MH i2c: E2 03 00 4C 65 00 90 00 25 [08:38:18]RAPDU: 90 00 [08:38:18]wFMCommunicate OK [08:38:18]wFMCommunicate request_size=255 [08:38:18]MH_SAM_APDU [08:38:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 00 F3 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B7 6F 00 00 35 04 06 00 8A [08:38:18]Write to MH i2c: E2 02 01 4D 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 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 00 F3 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B7 6F 00 00 35 04 06 00 8A 00 00 18 [08:38:18]Write i2c OK [08:38:18]MH_I2C_Read... [08:38:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:38:18]Read from MH i2c: E2 [08:38:18]MH_I2C_Read... [08:38:18]Read from MH i2c: E2 03 00 [08:38:18]MH_I2C_Read... [08:38:18]Read from MH i2c: E2 03 00 4D 65 00 90 00 26 [08:38:18]RAPDU: 90 00 [08:38:18]wFMCommunicate OK [08:38:18]wFMCommunicate request_size=10 [08:38:18]MH_SAM_APDU [08:38:18]CAPDU: 80 0D 02 02 05 FB 66 40 EC 39 [08:38:18]Write to MH i2c: E2 0D 00 4E 65 80 0D 02 02 05 00 FB 66 40 EC 39 00 00 FD [08:38:18]Write i2c OK [08:38:18]MH_I2C_Read... [08:38:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:38:18]Read from MH i2c: E2 [08:38:18]MH_I2C_Read... [08:38:18]Read from MH i2c: E2 03 00 [08:38:18]MH_I2C_Read... [08:38:18]Read from MH i2c: E2 03 00 4E 65 00 90 00 27 [08:38:18]RAPDU: 90 00 [08:38:18]wFMCommunicate OK [08:38:18]wFMCommunicate request_size=4 [08:38:18]MH_SAM_APDU [08:38:18]CAPDU: 80 0D 03 02 [08:38:18]Write to MH i2c: E2 08 00 4F 65 80 0D 03 02 00 00 00 00 2F [08:38:18]Write i2c OK [08:38:18]MH_I2C_Read... [08:38:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:38:18]Read from MH i2c: E2 [08:38:18]MH_I2C_Read... [08:38:18]Read from MH i2c: E2 0B 00 [08:38:18]MH_I2C_Read... [08:38:18]Read from MH i2c: E2 0B 00 4F 65 00 15 C3 D4 61 C6 0B 73 C5 90 00 46 [08:38:18]RAPDU: 15 C3 D4 61 C6 0B 73 C5 90 00 [08:38:18]wFMCommunicate OK [08:38:18]SAM_PROTO_SignData done [08:38:18]FM_MakeSignedData done [08:38:18]CreateOFDProtocolMessage [08:38:18]wFMCommunicate request_size=4 [08:38:18]MH_SAM_APDU [08:38:18]CAPDU: 80 11 00 00 [08:38:18]Write to MH i2c: E2 08 00 50 65 80 11 00 00 00 00 00 00 2F [08:38:18]Write i2c OK [08:38:18]MH_I2C_Read... [08:38:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:38:18]Read from MH i2c: E2 [08:38:18]MH_I2C_Read... [08:38:18]Read from MH i2c: E2 17 00 [08:38:18]MH_I2C_Read... [08:38:18]Read from MH i2c: E2 17 00 50 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 7E [08:38:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:38:18]wFMCommunicate OK [08:38:18]CreateOFDProtocolMessage done [08:38:18]OFDSenderStorePacket 28599 [08:38:18]StoreOFDPacket docnum=28599 [08:38:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 0D 0D 07 01 27 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 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 00 F3 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B7 6F 00 00 35 04 06 00 8A FB 66 40 EC 39 15 C3 D4 61 C6 0B 73 C5 [08:38:18]CheckFolder [08:38:18]dirname=/storage/ofd_packets [08:38:18]CheckFolder done [08:38:18]ProducePacketName [08:38:18]name=ofd_packets/00028599 [08:38:18]NVStorageSaveData ofd_packets/00028599 [08:38:18]File name is /storage/ofd_packets/00028599 [08:38:18]Write 301 bytes [08:38:18]NVStorageSaveData done [08:38:18]OFDSenderStorePacket done [08:38:18]KKMCreateOFDPacket done [08:38:18]NVStorageSaveData kkm_last_timestamp [08:38:18]File name is /storage/kkm_last_timestamp [08:38:18]Write 4 bytes [08:38:18]NVStorageSaveData done [08:38:18]ExternCall_PrintAddStr [08:38:18]wPrintStart [08:38:18]Write to MH i2c: 01 00 00 51 65 B6 [08:38:18]Write i2c OK [08:38:18]MH_I2C_Read... [08:38:18]Read from MH i2c: 01 [08:38:18]MH_I2C_Read... [08:38:18]Read from MH i2c: 01 07 00 [08:38:18]MH_I2C_Read... [08:38:18]Read from MH i2c: 01 07 00 51 65 00 00 00 00 00 FF 0F CB [08:38:18]RasterBufferAndPrint [08:38:18]line Счет N : (1)346912 [08:38:18]line ИНН: 02508201610067 [08:38:18]line Контрольно-Кассовый Чек [08:38:18]line ПРОДАЖА [08:38:18]line ТРК (МРК, ГНК) : 42 [08:38:18]line Товар: 2710124130 [08:38:18]line Аи-92-К-5 [08:38:18]line 15.560 * 64.30 [08:38:18]line = 1000.51 [08:38:18]line НДС 12% НСП 1% [08:38:18]line > о реализуемом товаре [08:38:18]line ОКРУГЛЕНИЕ: -0.51 [08:38:18]line ИТОГО: 1000.00 [08:38:18]line Внесено: 1000.00 [08:38:18]line СДАЧА: 0.00 [08:38:18]line НСП 1% : 8.85 [08:38:18]line НДС 12% : 106.25 [08:38:18]line Наличными: 1000.00 [08:38:18]line Безнал.: 0.00 [08:38:18]line Место: АЗС № 108 "Партнер Нефть" [08:38:18]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [08:38:18]line СНО: Общий режим [08:38:18]line Чек 48 12.04.2024 08:38 [08:38:18]line Смена: 113 ФФД: 1.0 [08:38:18]line ЗНМ: 0300000027 [08:38:18]line РНМ: 0000138879044617 [08:38:18]line Версия ККМ: 001 [08:38:18]line ФМ: 0000000000963154 [08:38:18]line ФД: 28599 [08:38:18]line ФПД: 152812356955193 [08:38:18]line 1/tax-web-control/client/api/v1/ticket?date=20240412T083824&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28599&fm=152812356955193&tin=02508201610067®Number=0000138879044617&sum=100000 [08:38:18]OFD Sender: Processing packet 28599 [packets to send 8, broken 7] [08:38:18]ProducePacketName [08:38:18]name=ofd_packets/00028599 [08:38:18]OFD Sender: To server: pG, [08:38:18]CommunicateWithHost lk.salyk.kg:30040 [08:38:18]ConnectInit lk.salyk.kg [08:38:18]written 0, free lines is 4095 [08:38:18]Connected sock=10 [08:38:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 0D 0D 07 01 27 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 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 00 F3 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B7 6F 00 00 35 04 06 00 8A FB 66 40 EC 39 15 C3 D4 61 C6 0B 73 C5 [08:38:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 DF 1F 47 00 28 41 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B7 6F 00 00 F4 03 04 00 AA 9D 18 66 B6 04 01 00 00 F2 C2 A7 60 C0 79 83 8B [08:38:19]CommunicateWithHost err = 0 [08:38:19]CheckOFDResponse [08:38:19]1017 (14) - 77093643461234 [08:38:19]1041 (16) - 0000000000963154 [08:38:19]1040 (4) - 28599 [08:38:19]1012 (4) - 12.04.2024 02:34 [08:38:19]1206 (1) - 0 [08:38:19]OFD Sender: Remove packet 28599 [08:38:19]ProducePacketName [08:38:19]name=ofd_packets/00028599 [08:38:19]NVStorageDeleteData [08:38:19]Write to MH i2c: 01 00 00 7B 65 E0 [08:38:19]Write i2c OK [08:38:19]MH_I2C_Read... [08:38:19]Read from MH i2c: 01 [08:38:19]MH_I2C_Read... [08:38:19]Read from MH i2c: 01 07 00 [08:38:19]MH_I2C_Read... [08:38:19]Read from MH i2c: 01 07 00 7B 65 00 00 00 00 00 D1 0C C4 [08:38:19]RasterBufferAndPrint [08:38:19]line [08:38:19]line [08:38:19]line [08:38:19]line [08:38:19]line [08:38:19]written 0, free lines is 3289 [08:38:19]MH_Cut [08:38:19]Write to MH i2c: D1 01 00 82 65 01 B9 [08:38:19]Write i2c OK [08:38:19]MH_I2C_Read... [08:38:19]Read from MH i2c: D1 [08:38:19]MH_I2C_Read... [08:38:19]Read from MH i2c: D1 01 00 [08:38:19]MH_I2C_Read... [08:38:19]Read from MH i2c: D1 01 00 82 65 00 B8 [08:38:19]Write to MH i2c: 01 00 00 83 65 E8 [08:38:19]Write i2c OK [08:38:19]MH_I2C_Read... [08:38:19]OFD Sender: No OFD packet to send [08:38:20]*** Cut start [08:38:20]*** Partial cut [08:38:20]*** CUTSNS_PIN = 1 [08:38:20]*** CUTSNS_PIN = 0 [08:38:20]*** Brake cut motor [08:38:20]Read from MH i2c: 01 [08:38:20]MH_I2C_Read... [08:38:20]*** Stop cut motor [08:38:20]*** Cut end [08:38:20]Read from MH i2c: 01 07 00 [08:38:20]MH_I2C_Read... [08:38:20]Read from MH i2c: 01 07 00 83 65 00 00 00 00 00 FF 0F FD [08:38:20]process_action close_receipt done [08:38:20]requested_data is exist [08:38:20]produce_requested_data [08:38:20]requested_item fm.sn is exist - process it [08:38:20]wFMCommunicate request_size=4 [08:38:20]MH_SAM_APDU [08:38:20]CAPDU: 80 11 00 00 [08:38:20]Write to MH i2c: E2 08 00 84 65 80 11 00 00 00 00 00 00 63 [08:38:20]Write i2c OK [08:38:20]MH_I2C_Read... [08:38:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:38:20]Read from MH i2c: E2 [08:38:20]MH_I2C_Read... [08:38:20]Read from MH i2c: E2 17 00 [08:38:20]MH_I2C_Read... [08:38:20]Read from MH i2c: E2 17 00 84 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 B2 [08:38:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:38:20]wFMCommunicate OK [08:38:20]requested_item fd.num is exist - process it [08:38:20]SAM_PROTO_GetFieldsCounters [08:38:20]wFMCommunicate request_size=4 [08:38:20]MH_SAM_APDU [08:38:20]CAPDU: 80 13 00 00 [08:38:20]Write to MH i2c: E2 08 00 85 65 80 13 00 00 00 00 00 00 66 [08:38:20]Write i2c OK [08:38:20]MH_I2C_Read... [08:38:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:38:20]Read from MH i2c: E2 [08:38:20]MH_I2C_Read... [08:38:20]Read from MH i2c: E2 62 00 [08:38:20]MH_I2C_Read... [08:38:20]Read from MH i2c: E2 62 00 85 65 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 B7 6F 00 00 0E 04 04 00 71 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 CB [08:38:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 B7 6F 00 00 0E 04 04 00 71 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 [08:38:20]wFMCommunicate OK [08:38:20]SAM_PROTO_GetFieldsCounters done [08:38:20]requested_item shift.num is exist - process it [08:38:20]requested_item shift.opened is exist - process it [08:38:20]req_shift_opened [08:38:20]FM_GetShiftState [08:38:20]SAM_PROTO_GetShiftState [08:38:20]wFMCommunicate request_size=4 [08:38:20]MH_SAM_APDU [08:38:20]CAPDU: 80 13 01 00 [08:38:20]Write to MH i2c: E2 08 00 86 65 80 13 01 00 00 00 00 00 68 [08:38:20]Write i2c OK [08:38:20]MH_I2C_Read... [08:38:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:38:21]Read from MH i2c: E2 [08:38:21]MH_I2C_Read... [08:38:21]Read from MH i2c: E2 0E 00 [08:38:21]MH_I2C_Read... [08:38:21]Read from MH i2c: E2 0E 00 86 65 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 79 [08:38:21]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [08:38:21]wFMCommunicate OK [08:38:21]SAM_PROTO_GetShiftState done [08:38:21]FM_GetShiftState done [08:38:21]req_shift_opened done [08:38:21]requested_item shift.open_date is exist - process it [08:38:21]req_shift_open_date [08:38:21]req_shift_open_date done [08:38:21]produce_requested_data done [08:38:21]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28599,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [08:38:21]process_action_free close_receipt [08:38:21]json_value_free [08:38:21]json_value_free done [08:38:21]process_json_proto returns [08:38:21]Send response to host [08:38:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28599,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [08:38:21]free response buf [08:38:21]execute_script done [08:38:21]execute_script returns [08:38:21]free content buf [08:38:21]Sock 9.Close socket [08:38:21]Sock 9.Thread stoped [08:38:24]OFD Sender: No OFD packet to send [08:38:29]OFD Sender: No OFD packet to send [08:38:34]OFD Sender: No OFD packet to send [08:38:39]OFD Sender: No OFD packet to send [08:38:44]OFD Sender: No OFD packet to send [08:38:47]accept exits with 7 [08:38:47]New connection [08:38:47]New thread 3066498404 created [08:38:47]Thread 3066641764 joined [08:38:47]Waiting for new connection... [08:38:47] Sock 7.Parse request [08:38:47]Sock 7.Check first char [08:38:47]Sock 7.First char is OK [08:38:47]request: POST /json_proto HTTP/1.0 [08:38:47]Method: POST [08:38:47]URL: /json_proto [08:38:47]Method is POST - this is cgi request [08:38:47]url: /json_proto [08:38:47]query_string will be loaded in cgi processing [08:38:47]execute_cgi json_proto POST (null) [08:38:47]execute_cgi path=json_proto method=POST [08:38:47]POST find Content-Length [08:38:47]Host: 172.17.33.3:8080 [08:38:47]Content-Length: 682 [08:38:47]Content-Type: application/json [08:38:47] [08:38:47]POST finish read [08:38:47]Found Content-Length = 682 [08:38:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346913", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 25.000, "sum" : 1607.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1607.00, "total" : 1607.00, "payments": [ { "type": 0, "sum" : 1607.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:38:47]execute_script... [08:38:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346913", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 25.000, "sum" : 1607.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1607.00, "total" : 1607.00, "payments": [ { "type": 0, "sum" : 1607.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:38:47]POST & json_proto [08:38:47]process_json_proto [08:38:47]json parsed OK: [08:38:47]protocol is kg_v1.0 [08:38:47]action value=close_receipt [08:38:47]process_action close_receipt [08:38:47]cmd_close_receipt [08:38:47]MH_GetDate [08:38:47]Write to MH i2c: F0 00 00 87 65 DB [08:38:47]Write i2c OK [08:38:47]MH_I2C_Read... [08:38:47]Read from MH i2c: F0 [08:38:47]MH_I2C_Read... [08:38:47]Read from MH i2c: F0 09 00 [08:38:47]MH_I2C_Read... [08:38:47]Read from MH i2c: F0 09 00 87 65 00 1E F3 18 66 23 5B 8F 65 E5 [08:38:47]GetLastDocTimeStamp 1712911104 [08:38:47]current date 1712911134 [08:38:47]FM_GetShiftState [08:38:47]SAM_PROTO_GetShiftState [08:38:47]wFMCommunicate request_size=4 [08:38:47]MH_SAM_APDU [08:38:47]CAPDU: 80 13 01 00 [08:38:47]Write to MH i2c: E2 08 00 88 65 80 13 01 00 00 00 00 00 6A [08:38:47]Write i2c OK [08:38:47]MH_I2C_Read... [08:38:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:38:47]Read from MH i2c: E2 [08:38:47]MH_I2C_Read... [08:38:47]Read from MH i2c: E2 0E 00 [08:38:47]MH_I2C_Read... [08:38:47]Read from MH i2c: E2 0E 00 88 65 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 7B [08:38:47]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [08:38:47]wFMCommunicate OK [08:38:47]SAM_PROTO_GetShiftState done [08:38:47]FM_GetShiftState done [08:38:47]opened in 1712881416 [08:38:47]opened+sec_in_day 1712967816 [08:38:47]quantity*price = 160750 [08:38:47]sum+1 = 160751 [08:38:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 1607.00 Внесено: 1607.00 СДАЧА: 0.00 НСП 1% : 14.23 НДС 12% : 170.71 Наличными: 1607.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 49 12.04.2024 08:38 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28600 ФПД: 52674923368168 1/tax-web-control/client/api/v1/ticket?date=20240412T083854&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28600&fm=52674923368168&tin=02508201610067®Number=0000138879044617&sum=160700 [08:38:48]StoreToDocumentArchive [08:38:48]shift 113 fd 28600 [08:38:48]save to /storage/0113/doc_00028600 [08:38:48]save last doc name /storage/0113/doc_00028600 to /storage/kkm_last_doc_name [08:38:48]save OK [08:38:48]Clear old archive folders... [08:38:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:38:48]tlvbuf is 01AD44B0 [08:38:48]SAM_PROTO_ClearQueue [08:38:48]wFMCommunicate request_size=4 [08:38:48]MH_SAM_APDU [08:38:48]CAPDU: 80 09 00 00 [08:38:48]Write to MH i2c: E2 08 00 95 65 80 09 00 00 00 00 00 00 6C [08:38:48]Write i2c OK [08:38:48]MH_I2C_Read... [08:38:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:38:48]Read from MH i2c: E2 [08:38:48]MH_I2C_Read... [08:38:48]Read from MH i2c: E2 03 00 [08:38:48]MH_I2C_Read... [08:38:48]Read from MH i2c: E2 03 00 95 65 00 90 00 6E [08:38:48]RAPDU: 90 00 [08:38:48]wFMCommunicate OK [08:38:48]SAM_PROTO_ClearQueue done [08:38:48]KKMCreateOFDPacket [08:38:48]OFDProtocolAddRootSTLVToBuf [08:38:48]FM_MakeSignedData [08:38:48]FM_MakeSignedData [08:38:48]SAM_PROTO_SignData [08:38:48]wFMCommunicate request_size=4 [08:38:48]MH_SAM_APDU [08:38:48]CAPDU: 80 0D 01 02 [08:38:48]Write to MH i2c: E2 08 00 96 65 80 0D 01 02 00 00 00 00 74 [08:38:48]Write i2c OK [08:38:48]MH_I2C_Read... [08:38:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:38:48]Read from MH i2c: E2 [08:38:48]MH_I2C_Read... [08:38:48]Read from MH i2c: E2 03 00 [08:38:48]MH_I2C_Read... [08:38:48]Read from MH i2c: E2 03 00 96 65 00 90 00 6F [08:38:48]RAPDU: 90 00 [08:38:48]wFMCommunicate OK [08:38:48]wFMCommunicate request_size=255 [08:38:48]MH_SAM_APDU [08:38:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 EE 73 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 73 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF 42 00 00 00 00 07 04 06 00 BC 73 02 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 1E F3 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B8 6F 00 00 35 04 06 00 2F [08:38:48]Write to MH i2c: E2 02 01 97 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 35 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 EE 73 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 73 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF 42 00 00 00 00 07 04 06 00 BC 73 02 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 1E F3 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B8 6F 00 00 35 04 06 00 2F 00 00 AC [08:38:48]Write i2c OK [08:38:48]MH_I2C_Read... [08:38:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:38:48]Read from MH i2c: E2 [08:38:48]MH_I2C_Read... [08:38:48]Read from MH i2c: E2 03 00 [08:38:48]MH_I2C_Read... [08:38:48]Read from MH i2c: E2 03 00 97 65 00 90 00 70 [08:38:48]RAPDU: 90 00 [08:38:48]wFMCommunicate OK [08:38:48]wFMCommunicate request_size=10 [08:38:48]MH_SAM_APDU [08:38:48]CAPDU: 80 0D 02 02 05 E8 56 18 8E E8 [08:38:48]Write to MH i2c: E2 0D 00 98 65 80 0D 02 02 05 00 E8 56 18 8E E8 00 00 4D [08:38:48]Write i2c OK [08:38:48]MH_I2C_Read... [08:38:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:38:48]Read from MH i2c: E2 [08:38:48]MH_I2C_Read... [08:38:48]Read from MH i2c: E2 03 00 [08:38:48]MH_I2C_Read... [08:38:48]Read from MH i2c: E2 03 00 98 65 00 90 00 71 [08:38:48]RAPDU: 90 00 [08:38:48]wFMCommunicate OK [08:38:48]wFMCommunicate request_size=4 [08:38:48]MH_SAM_APDU [08:38:48]CAPDU: 80 0D 03 02 [08:38:48]Write to MH i2c: E2 08 00 99 65 80 0D 03 02 00 00 00 00 79 [08:38:48]Write i2c OK [08:38:48]MH_I2C_Read... [08:38:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:38:48]Read from MH i2c: E2 [08:38:48]MH_I2C_Read... [08:38:48]Read from MH i2c: E2 0B 00 [08:38:48]MH_I2C_Read... [08:38:48]Read from MH i2c: E2 0B 00 99 65 00 09 5D 8B 8B 55 4F 6F 51 90 00 5A [08:38:48]RAPDU: 09 5D 8B 8B 55 4F 6F 51 90 00 [08:38:48]wFMCommunicate OK [08:38:48]SAM_PROTO_SignData done [08:38:48]FM_MakeSignedData done [08:38:48]CreateOFDProtocolMessage [08:38:48]wFMCommunicate request_size=4 [08:38:48]MH_SAM_APDU [08:38:48]CAPDU: 80 11 00 00 [08:38:48]Write to MH i2c: E2 08 00 9A 65 80 11 00 00 00 00 00 00 79 [08:38:48]Write i2c OK [08:38:48]MH_I2C_Read... [08:38:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:38:48]Read from MH i2c: E2 [08:38:48]MH_I2C_Read... [08:38:48]Read from MH i2c: E2 17 00 [08:38:48]MH_I2C_Read... [08:38:48]Read from MH i2c: E2 17 00 9A 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 C8 [08:38:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:38:48]wFMCommunicate OK [08:38:48]CreateOFDProtocolMessage done [08:38:48]OFDSenderStorePacket 28600 [08:38:48]StoreOFDPacket docnum=28600 [08:38:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 C4 D9 07 01 C6 F7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 EE 73 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 73 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF 42 00 00 00 00 07 04 06 00 BC 73 02 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 1E F3 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B8 6F 00 00 35 04 06 00 2F E8 56 18 8E E8 09 5D 8B 8B 55 4F 6F 51 [08:38:48]CheckFolder [08:38:48]dirname=/storage/ofd_packets [08:38:48]CheckFolder done [08:38:48]ProducePacketName [08:38:48]name=ofd_packets/00028600 [08:38:48]NVStorageSaveData ofd_packets/00028600 [08:38:48]File name is /storage/ofd_packets/00028600 [08:38:48]Write 301 bytes [08:38:48]NVStorageSaveData done [08:38:48]OFDSenderStorePacket done [08:38:48]KKMCreateOFDPacket done [08:38:48]NVStorageSaveData kkm_last_timestamp [08:38:48]File name is /storage/kkm_last_timestamp [08:38:48]Write 4 bytes [08:38:48]NVStorageSaveData done [08:38:48]ExternCall_PrintAddStr [08:38:48]wPrintStart [08:38:48]Write to MH i2c: 01 00 00 9B 65 00 [08:38:48]Write i2c OK [08:38:48]MH_I2C_Read... [08:38:48]Read from MH i2c: 01 [08:38:48]MH_I2C_Read... [08:38:48]Read from MH i2c: 01 07 00 [08:38:48]MH_I2C_Read... [08:38:48]Read from MH i2c: 01 07 00 9B 65 00 00 00 00 00 FF 0F 15 [08:38:48]RasterBufferAndPrint [08:38:48]line Счет N : (1)346913 [08:38:48]line ИНН: 02508201610067 [08:38:48]line Контрольно-Кассовый Чек [08:38:48]line ПРОДАЖА [08:38:48]line ТРК (МРК, ГНК) : 32 [08:38:48]line Товар: 2710124130 [08:38:48]line Аи-92-К-5 [08:38:48]line 25.000 * 64.30 [08:38:48]line = 1607.50 [08:38:48]line НДС 12% НСП 1% [08:38:48]line > о реализуемом товаре [08:38:48]line ОКРУГЛЕНИЕ: -0.50 [08:38:48]line ИТОГО: 1607.00 [08:38:48]line Внесено: 1607.00 [08:38:48]line СДАЧА: 0.00 [08:38:48]line НСП 1% : 14.23 [08:38:48]line НДС 12% : 170.71 [08:38:48]line Наличными: 1607.00 [08:38:48]line Безнал.: 0.00 [08:38:48]line Место: АЗС № 108 "Партнер Нефть" [08:38:48]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [08:38:48]line СНО: Общий режим [08:38:48]line Чек 49 12.04.2024 08:38 [08:38:48]line Смена: 113 ФФД: 1.0 [08:38:48]line ЗНМ: 0300000027 [08:38:48]line РНМ: 0000138879044617 [08:38:48]line Версия ККМ: 001 [08:38:48]line ФМ: 0000000000963154 [08:38:48]line ФД: 28600 [08:38:48]line ФПД: 52674923368168 [08:38:49]line 1/tax-web-control/client/api/v1/ticket?date=20240412T083854&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28600&fm=52674923368168&tin=02508201610067®Number=0000138879044617&sum=160700 [08:38:49]OFD Sender: Processing packet 28600 [packets to send 8, broken 7] [08:38:49]ProducePacketName [08:38:49]name=ofd_packets/00028600 [08:38:49]OFD Sender: To server: pG, [08:38:49]CommunicateWithHost lk.salyk.kg:30040 [08:38:49]ConnectInit lk.salyk.kg [08:38:49]written 0, free lines is 4095 [08:38:49]Connected sock=10 [08:38:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 C4 D9 07 01 C6 F7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 EE 73 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 73 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF 42 00 00 00 00 07 04 06 00 BC 73 02 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 1E F3 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B8 6F 00 00 35 04 06 00 2F E8 56 18 8E E8 09 5D 8B 8B 55 4F 6F 51 [08:38:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 5A BD 47 00 64 06 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B8 6F 00 00 F4 03 04 00 C8 9D 18 66 B6 04 01 00 00 5B B8 D6 4D 6D 79 78 D9 [08:38:49]CommunicateWithHost err = 0 [08:38:49]CheckOFDResponse [08:38:49]1017 (14) - 77093643461234 [08:38:49]1041 (16) - 0000000000963154 [08:38:49]1040 (4) - 28600 [08:38:49]1012 (4) - 12.04.2024 02:34 [08:38:49]1206 (1) - 0 [08:38:49]OFD Sender: Remove packet 28600 [08:38:49]ProducePacketName [08:38:49]name=ofd_packets/00028600 [08:38:49]NVStorageDeleteData [08:38:49]Write to MH i2c: 01 00 00 C5 65 2A [08:38:49]Write i2c OK [08:38:49]MH_I2C_Read... [08:38:49]Read from MH i2c: 01 [08:38:49]MH_I2C_Read... [08:38:49]Read from MH i2c: 01 07 00 [08:38:49]MH_I2C_Read... [08:38:49]Read from MH i2c: 01 07 00 C5 65 00 00 00 00 00 BD 0C FA [08:38:49]RasterBufferAndPrint [08:38:49]line [08:38:49]line [08:38:49]line [08:38:49]line [08:38:49]line [08:38:49]written 0, free lines is 3265 [08:38:49]MH_Cut [08:38:49]Write to MH i2c: D1 01 00 CC 65 01 03 [08:38:49]Write i2c OK [08:38:49]MH_I2C_Read... [08:38:49]Read from MH i2c: D1 [08:38:49]MH_I2C_Read... [08:38:49]Read from MH i2c: D1 01 00 [08:38:49]MH_I2C_Read... [08:38:49]Read from MH i2c: D1 01 00 CC 65 00 02 [08:38:49]Write to MH i2c: 01 00 00 CD 65 32 [08:38:49]Write i2c OK [08:38:49]MH_I2C_Read... [08:38:49]OFD Sender: No OFD packet to send [08:38:50]*** Cut start [08:38:50]*** Partial cut [08:38:50]*** CUTSNS_PIN = 1 [08:38:50]*** CUTSNS_PIN = 0 [08:38:50]*** Brake cut motor [08:38:50]Read from MH i2c: 01 [08:38:50]MH_I2C_Read... [08:38:50]*** Stop cut motor [08:38:50]*** Cut end [08:38:50]Read from MH i2c: 01 07 00 [08:38:50]MH_I2C_Read... [08:38:50]Read from MH i2c: 01 07 00 CD 65 00 00 00 00 00 FF 0F 47 [08:38:50]process_action close_receipt done [08:38:50]requested_data is exist [08:38:50]produce_requested_data [08:38:50]requested_item fm.sn is exist - process it [08:38:50]wFMCommunicate request_size=4 [08:38:50]MH_SAM_APDU [08:38:50]CAPDU: 80 11 00 00 [08:38:50]Write to MH i2c: E2 08 00 CE 65 80 11 00 00 00 00 00 00 AD [08:38:50]Write i2c OK [08:38:50]MH_I2C_Read... [08:38:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:38:51]Read from MH i2c: E2 [08:38:51]MH_I2C_Read... [08:38:51]Read from MH i2c: E2 17 00 [08:38:51]MH_I2C_Read... [08:38:51]Read from MH i2c: E2 17 00 CE 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 FC [08:38:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:38:51]wFMCommunicate OK [08:38:51]requested_item fd.num is exist - process it [08:38:51]SAM_PROTO_GetFieldsCounters [08:38:51]wFMCommunicate request_size=4 [08:38:51]MH_SAM_APDU [08:38:51]CAPDU: 80 13 00 00 [08:38:51]Write to MH i2c: E2 08 00 CF 65 80 13 00 00 00 00 00 00 B0 [08:38:51]Write i2c OK [08:38:51]MH_I2C_Read... [08:38:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:38:51]Read from MH i2c: E2 [08:38:51]MH_I2C_Read... [08:38:51]Read from MH i2c: E2 62 00 [08:38:51]MH_I2C_Read... [08:38:51]Read from MH i2c: E2 62 00 CF 65 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 B8 6F 00 00 0E 04 04 00 71 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 19 [08:38:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 B8 6F 00 00 0E 04 04 00 71 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 [08:38:51]wFMCommunicate OK [08:38:51]SAM_PROTO_GetFieldsCounters done [08:38:51]requested_item shift.num is exist - process it [08:38:51]requested_item shift.opened is exist - process it [08:38:51]req_shift_opened [08:38:51]FM_GetShiftState [08:38:51]SAM_PROTO_GetShiftState [08:38:51]wFMCommunicate request_size=4 [08:38:51]MH_SAM_APDU [08:38:51]CAPDU: 80 13 01 00 [08:38:51]Write to MH i2c: E2 08 00 D0 65 80 13 01 00 00 00 00 00 B2 [08:38:51]Write i2c OK [08:38:51]MH_I2C_Read... [08:38:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:38:51]Read from MH i2c: E2 [08:38:51]MH_I2C_Read... [08:38:51]Read from MH i2c: E2 0E 00 [08:38:51]MH_I2C_Read... [08:38:51]Read from MH i2c: E2 0E 00 D0 65 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 C3 [08:38:51]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [08:38:51]wFMCommunicate OK [08:38:51]SAM_PROTO_GetShiftState done [08:38:51]FM_GetShiftState done [08:38:51]req_shift_opened done [08:38:51]requested_item shift.open_date is exist - process it [08:38:51]req_shift_open_date [08:38:51]req_shift_open_date done [08:38:51]produce_requested_data done [08:38:51]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28600,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [08:38:51]process_action_free close_receipt [08:38:51]json_value_free [08:38:51]json_value_free done [08:38:51]process_json_proto returns [08:38:51]Send response to host [08:38:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28600,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [08:38:51]free response buf [08:38:51]execute_script done [08:38:51]execute_script returns [08:38:51]free content buf [08:38:51]Sock 7.Close socket [08:38:51]Sock 7.Thread stoped [08:38:54]OFD Sender: No OFD packet to send [08:38:59]OFD Sender: No OFD packet to send [08:39:04]OFD Sender: No OFD packet to send [08:39:09]OFD Sender: No OFD packet to send [08:39:14]OFD Sender: No OFD packet to send [08:39:19]OFD Sender: No OFD packet to send [08:39:24]OFD Sender: No OFD packet to send [08:39:29]OFD Sender: No OFD packet to send [08:39:34]OFD Sender: No OFD packet to send [08:39:39]OFD Sender: No OFD packet to send [08:39:44]OFD Sender: No OFD packet to send [08:39:49]OFD Sender: No OFD packet to send [08:39:54]OFD Sender: No OFD packet to send [08:39:59]OFD Sender: No OFD packet to send [08:40:04]OFD Sender: No OFD packet to send [08:40:09]OFD Sender: No OFD packet to send [08:40:14]OFD Sender: No OFD packet to send [08:40:19]OFD Sender: No OFD packet to send [08:40:24]OFD Sender: No OFD packet to send [08:40:29]OFD Sender: No OFD packet to send [08:40:34]OFD Sender: No OFD packet to send [08:40:39]OFD Sender: No OFD packet to send [08:40:44]OFD Sender: No OFD packet to send [08:40:49]OFD Sender: No OFD packet to send [08:40:54]OFD Sender: No OFD packet to send [08:40:59]OFD Sender: No OFD packet to send [08:41:04]OFD Sender: No OFD packet to send [08:41:09]OFD Sender: No OFD packet to send [08:41:14]OFD Sender: No OFD packet to send [08:41:19]OFD Sender: No OFD packet to send [08:41:24]OFD Sender: No OFD packet to send [08:41:29]OFD Sender: No OFD packet to send [08:41:34]OFD Sender: No OFD packet to send [08:41:39]OFD Sender: No OFD packet to send [08:41:44]OFD Sender: No OFD packet to send [08:41:49]OFD Sender: No OFD packet to send [08:41:54]OFD Sender: No OFD packet to send [08:41:59]OFD Sender: No OFD packet to send [08:42:04]OFD Sender: No OFD packet to send [08:42:09]OFD Sender: No OFD packet to send [08:42:15]OFD Sender: No OFD packet to send [08:42:20]OFD Sender: No OFD packet to send [08:42:25]OFD Sender: No OFD packet to send [08:42:30]OFD Sender: No OFD packet to send [08:42:35]OFD Sender: No OFD packet to send [08:42:40]OFD Sender: No OFD packet to send [08:42:45]OFD Sender: No OFD packet to send [08:42:50]OFD Sender: No OFD packet to send [08:42:55]OFD Sender: No OFD packet to send [08:43:00]OFD Sender: No OFD packet to send [08:43:05]OFD Sender: No OFD packet to send [08:43:10]OFD Sender: No OFD packet to send [08:43:15]OFD Sender: No OFD packet to send [08:43:17]accept exits with 9 [08:43:17]New connection [08:43:17]New thread 3066641764 created [08:43:17]Thread 3066498404 joined [08:43:17]Waiting for new connection... [08:43:17] Sock 9.Parse request [08:43:17]Sock 9.Check first char [08:43:17]Sock 9.First char is OK [08:43:17]request: POST /json_proto HTTP/1.0 [08:43:17]Method: POST [08:43:17]URL: /json_proto [08:43:17]Method is POST - this is cgi request [08:43:17]url: /json_proto [08:43:17]query_string will be loaded in cgi processing [08:43:17]execute_cgi json_proto POST (null) [08:43:17]execute_cgi path=json_proto method=POST [08:43:17]POST find Content-Length [08:43:17]Host: 172.17.33.3:8080 [08:43:17]Content-Length: 1219 [08:43:17]Content-Type: application/json [08:43:17] [08:43:17]POST finish read [08:43:17]Found Content-Length = 1219 [08:43:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)346914\u000A12.04.2024 08:25\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 30.000 x 64.30\u000A\u0418\u0422\u041E\u0413: 1929.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3858917;3858916;3858915\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:43:17]execute_script... [08:43:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)346914\u000A12.04.2024 08:25\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 30.000 x 64.30\u000A\u0418\u0422\u041E\u0413: 1929.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3858917;3858916;3858915\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:43:17]POST & json_proto [08:43:17]process_json_proto [08:43:17]json parsed OK: [08:43:17]protocol is kg_v1.0 [08:43:17]action value=print_text [08:43:17]process_action print_text [08:43:17]cmd_print_text [08:43:17]ExternCall_PrintAddStr [08:43:17]wPrintStart [08:43:17]Write to MH i2c: 01 00 00 D1 65 36 [08:43:17]Write i2c OK [08:43:17]MH_I2C_Read... [08:43:17]Read from MH i2c: 01 [08:43:17]MH_I2C_Read... [08:43:17]Read from MH i2c: 01 07 00 [08:43:17]MH_I2C_Read... [08:43:17]Read from MH i2c: 01 07 00 D1 65 00 00 00 00 00 FF 0F 4B [08:43:17]RasterBufferAndPrint [08:43:17]line *****ТОВАРНЫЙ ЧЕК***** [08:43:17]line АЗС 108 [08:43:17]line Партнер нефть [08:43:17]line 02508201610067 [08:43:17]line Кассир : Джумагулова Н. [08:43:17]line Счет N : (1)346914 [08:43:17]line 12.04.2024 08:25 [08:43:17]line ПРОДАЖА [08:43:17]line ТРК (МРК, ГНК): 32 [08:43:17]line Вид ГСМ : 2710124130 [08:43:17]line Аи-92-К-5 [08:43:17]line 30.000 x 64.30 [08:43:17]line ИТОГ: 1929.00 [08:43:17]line Тип оплаты: Талоны: Партнер нефть [08:43:17]line 3858917;3858916;3858915 [08:43:17]line ______________________ [08:43:17]line (подпись) [08:43:17]written 0, free lines is 4095 [08:43:18]Write to MH i2c: 01 00 00 E6 65 4B [08:43:18]Write i2c OK [08:43:18]MH_I2C_Read... [08:43:18]Read from MH i2c: 01 [08:43:18]MH_I2C_Read... [08:43:18]Read from MH i2c: 01 07 00 [08:43:18]MH_I2C_Read... [08:43:18]Read from MH i2c: 01 07 00 E6 65 00 00 00 00 00 01 0E 61 [08:43:18]RasterBufferAndPrint [08:43:18]line [08:43:18]line [08:43:18]line [08:43:18]line [08:43:18]line [08:43:18]written 0, free lines is 3587 [08:43:18]MH_Cut [08:43:18]Write to MH i2c: D1 01 00 ED 65 01 24 [08:43:18]Write i2c OK [08:43:18]MH_I2C_Read... [08:43:18]Read from MH i2c: D1 [08:43:18]MH_I2C_Read... [08:43:18]Read from MH i2c: D1 01 00 [08:43:18]MH_I2C_Read... [08:43:18]Read from MH i2c: D1 01 00 ED 65 00 23 [08:43:18]Write to MH i2c: 01 00 00 EE 65 53 [08:43:18]Write i2c OK [08:43:18]MH_I2C_Read... [08:43:18]*** Cut start [08:43:18]*** Partial cut [08:43:18]*** CUTSNS_PIN = 1 [08:43:18]*** CUTSNS_PIN = 0 [08:43:19]*** Brake cut motor [08:43:19]Read from MH i2c: 01 [08:43:19]MH_I2C_Read... [08:43:19]*** Stop cut motor [08:43:19]*** Cut end [08:43:19]Read from MH i2c: 01 07 00 [08:43:19]MH_I2C_Read... [08:43:19]Read from MH i2c: 01 07 00 EE 65 00 00 00 00 00 FF 0F 68 [08:43:19]process_action print_text done [08:43:19]requested_data is exist [08:43:19]produce_requested_data [08:43:19]requested_item fm.sn is exist - process it [08:43:19]wFMCommunicate request_size=4 [08:43:19]MH_SAM_APDU [08:43:19]CAPDU: 80 11 00 00 [08:43:19]Write to MH i2c: E2 08 00 EF 65 80 11 00 00 00 00 00 00 CE [08:43:19]Write i2c OK [08:43:19]MH_I2C_Read... [08:43:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:43:19]Read from MH i2c: E2 [08:43:19]MH_I2C_Read... [08:43:19]Read from MH i2c: E2 17 00 [08:43:19]MH_I2C_Read... [08:43:19]Read from MH i2c: E2 17 00 EF 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 1D [08:43:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:43:19]wFMCommunicate OK [08:43:19]requested_item fd.num is exist - process it [08:43:19]SAM_PROTO_GetFieldsCounters [08:43:19]wFMCommunicate request_size=4 [08:43:19]MH_SAM_APDU [08:43:19]CAPDU: 80 13 00 00 [08:43:19]Write to MH i2c: E2 08 00 F0 65 80 13 00 00 00 00 00 00 D1 [08:43:19]Write i2c OK [08:43:19]MH_I2C_Read... [08:43:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:43:19]Read from MH i2c: E2 [08:43:19]MH_I2C_Read... [08:43:19]Read from MH i2c: E2 62 00 [08:43:19]MH_I2C_Read... [08:43:19]Read from MH i2c: E2 62 00 F0 65 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 B8 6F 00 00 0E 04 04 00 71 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 3A [08:43:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 B8 6F 00 00 0E 04 04 00 71 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 [08:43:19]wFMCommunicate OK [08:43:19]SAM_PROTO_GetFieldsCounters done [08:43:19]requested_item shift.num is exist - process it [08:43:19]requested_item shift.opened is exist - process it [08:43:19]req_shift_opened [08:43:19]FM_GetShiftState [08:43:19]SAM_PROTO_GetShiftState [08:43:19]wFMCommunicate request_size=4 [08:43:19]MH_SAM_APDU [08:43:19]CAPDU: 80 13 01 00 [08:43:19]Write to MH i2c: E2 08 00 F1 65 80 13 01 00 00 00 00 00 D3 [08:43:19]Write i2c OK [08:43:19]MH_I2C_Read... [08:43:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:43:19]Read from MH i2c: E2 [08:43:19]MH_I2C_Read... [08:43:19]Read from MH i2c: E2 0E 00 [08:43:19]MH_I2C_Read... [08:43:19]Read from MH i2c: E2 0E 00 F1 65 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 E4 [08:43:19]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [08:43:19]wFMCommunicate OK [08:43:19]SAM_PROTO_GetShiftState done [08:43:19]FM_GetShiftState done [08:43:19]req_shift_opened done [08:43:19]requested_item shift.open_date is exist - process it [08:43:19]req_shift_open_date [08:43:19]req_shift_open_date done [08:43:19]produce_requested_data done [08:43:19]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28600,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [08:43:19]process_action_free print_text [08:43:19]json_value_free [08:43:19]json_value_free done [08:43:19]process_json_proto returns [08:43:19]Send response to host [08:43:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28600,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [08:43:19]free response buf [08:43:19]execute_script done [08:43:19]execute_script returns [08:43:19]free content buf [08:43:19]Sock 9.Close socket [08:43:19]Sock 9.Thread stoped [08:43:20]OFD Sender: No OFD packet to send [08:43:25]OFD Sender: No OFD packet to send [08:43:30]OFD Sender: No OFD packet to send [08:43:35]OFD Sender: No OFD packet to send [08:43:40]OFD Sender: No OFD packet to send [08:43:45]OFD Sender: No OFD packet to send [08:43:50]OFD Sender: No OFD packet to send [08:43:55]OFD Sender: No OFD packet to send [08:44:00]OFD Sender: No OFD packet to send [08:44:05]OFD Sender: No OFD packet to send [08:44:10]OFD Sender: No OFD packet to send [08:44:15]OFD Sender: No OFD packet to send [08:44:20]OFD Sender: No OFD packet to send [08:44:25]OFD Sender: No OFD packet to send [08:44:30]OFD Sender: No OFD packet to send [08:44:35]OFD Sender: No OFD packet to send [08:44:40]OFD Sender: No OFD packet to send [08:44:45]OFD Sender: No OFD packet to send [08:44:50]OFD Sender: No OFD packet to send [08:44:55]OFD Sender: No OFD packet to send [08:45:00]OFD Sender: No OFD packet to send [08:45:05]OFD Sender: No OFD packet to send [08:45:10]OFD Sender: No OFD packet to send [08:45:15]OFD Sender: No OFD packet to send [08:45:20]OFD Sender: No OFD packet to send [08:45:25]OFD Sender: No OFD packet to send [08:45:30]OFD Sender: No OFD packet to send [08:45:35]OFD Sender: No OFD packet to send [08:45:40]OFD Sender: No OFD packet to send [08:45:45]OFD Sender: No OFD packet to send [08:45:50]OFD Sender: No OFD packet to send [08:45:55]OFD Sender: No OFD packet to send [08:46:00]OFD Sender: No OFD packet to send [08:46:05]OFD Sender: No OFD packet to send [08:46:10]OFD Sender: No OFD packet to send [08:46:15]OFD Sender: No OFD packet to send [08:46:20]OFD Sender: No OFD packet to send [08:46:25]OFD Sender: No OFD packet to send [08:46:30]OFD Sender: No OFD packet to send [08:46:35]OFD Sender: No OFD packet to send [08:46:40]OFD Sender: No OFD packet to send [08:46:45]OFD Sender: No OFD packet to send [08:46:50]OFD Sender: No OFD packet to send [08:46:55]OFD Sender: No OFD packet to send [08:47:00]OFD Sender: No OFD packet to send [08:47:05]OFD Sender: No OFD packet to send [08:47:10]OFD Sender: No OFD packet to send [08:47:15]OFD Sender: No OFD packet to send [08:47:20]OFD Sender: No OFD packet to send [08:47:25]OFD Sender: No OFD packet to send [08:47:30]OFD Sender: No OFD packet to send [08:47:35]OFD Sender: No OFD packet to send [08:47:40]OFD Sender: No OFD packet to send [08:47:45]OFD Sender: No OFD packet to send [08:47:50]OFD Sender: No OFD packet to send [08:47:55]OFD Sender: No OFD packet to send [08:48:00]OFD Sender: No OFD packet to send [08:48:05]OFD Sender: No OFD packet to send [08:48:10]OFD Sender: No OFD packet to send [08:48:15]OFD Sender: No OFD packet to send [08:48:20]OFD Sender: No OFD packet to send [08:48:25]OFD Sender: No OFD packet to send [08:48:27]accept exits with 7 [08:48:27]New connection [08:48:27]New thread 3066498404 created [08:48:27]Thread 3066641764 joined [08:48:27]Waiting for new connection... [08:48:27] Sock 7.Parse request [08:48:27]Sock 7.Check first char [08:48:27]Sock 7.First char is OK [08:48:27]request: POST /json_proto HTTP/1.0 [08:48:27]Method: POST [08:48:27]URL: /json_proto [08:48:27]Method is POST - this is cgi request [08:48:27]url: /json_proto [08:48:27]query_string will be loaded in cgi processing [08:48:27]execute_cgi json_proto POST (null) [08:48:27]execute_cgi path=json_proto method=POST [08:48:27]POST find Content-Length [08:48:27]Host: 172.17.33.3:8080 [08:48:27]Content-Length: 840 [08:48:27]Content-Type: application/json [08:48:27] [08:48:27]POST finish read [08:48:27]Found Content-Length = 840 [08:48:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346915", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 7.780, "sum" : 500.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:48:27]execute_script... [08:48: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)346915", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 7.780, "sum" : 500.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:48:27]POST & json_proto [08:48:27]process_json_proto [08:48:27]json parsed OK: [08:48:27]protocol is kg_v1.0 [08:48:27]action value=close_receipt [08:48:27]process_action close_receipt [08:48:27]cmd_close_receipt [08:48:27]MH_GetDate [08:48:27]Write to MH i2c: F0 00 00 F2 65 46 [08:48:27]Write i2c OK [08:48:27]MH_I2C_Read... [08:48:27]Read from MH i2c: F0 [08:48:27]MH_I2C_Read... [08:48:27]Read from MH i2c: F0 09 00 [08:48:27]MH_I2C_Read... [08:48:27]Read from MH i2c: F0 09 00 F2 65 00 62 F5 18 66 23 5B 8F 65 96 [08:48:27]GetLastDocTimeStamp 1712911134 [08:48:27]current date 1712911714 [08:48:27]FM_GetShiftState [08:48:27]SAM_PROTO_GetShiftState [08:48:27]wFMCommunicate request_size=4 [08:48:27]MH_SAM_APDU [08:48:27]CAPDU: 80 13 01 00 [08:48:27]Write to MH i2c: E2 08 00 F3 65 80 13 01 00 00 00 00 00 D5 [08:48:27]Write i2c OK [08:48:27]MH_I2C_Read... [08:48:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:48:27]Read from MH i2c: E2 [08:48:27]MH_I2C_Read... [08:48:27]Read from MH i2c: E2 0E 00 [08:48:27]MH_I2C_Read... [08:48:27]Read from MH i2c: E2 0E 00 F3 65 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 E6 [08:48:27]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [08:48:27]wFMCommunicate OK [08:48:27]SAM_PROTO_GetShiftState done [08:48:27]FM_GetShiftState done [08:48:27]opened in 1712881416 [08:48:27]opened+sec_in_day 1712967816 [08:48:27]quantity*price = 50025 [08:48:27]sum+1 = 50026 [08:48:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.25 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 0.00 Безнал.: 500.25 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 50 12.04.2024 08:48 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 28601 ФПД: 154616533420725 1/tax-web-control/client/api/v1/ticket?date=20240412T084834&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28601&fm=154616533420725&tin=02508201610067®Number=0000138879044617&sum=50025 [08:48:28]StoreToDocumentArchive [08:48:28]shift 113 fd 28601 [08:48:28]save to /storage/0113/doc_00028601 [08:48:28]save last doc name /storage/0113/doc_00028601 to /storage/kkm_last_doc_name [08:48:28]save OK [08:48:28]Clear old archive folders... [08:48:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:48:28]tlvbuf is 01AD7CE0 [08:48:28]SAM_PROTO_ClearQueue [08:48:28]wFMCommunicate request_size=4 [08:48:28]MH_SAM_APDU [08:48:28]CAPDU: 80 09 00 00 [08:48:28]Write to MH i2c: E2 08 00 00 66 80 09 00 00 00 00 00 00 D8 [08:48:28]Write i2c OK [08:48:28]MH_I2C_Read... [08:48:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:48:28]Read from MH i2c: E2 [08:48:28]MH_I2C_Read... [08:48:28]Read from MH i2c: E2 03 00 [08:48:28]MH_I2C_Read... [08:48:28]Read from MH i2c: E2 03 00 00 66 00 90 00 DA [08:48:28]RAPDU: 90 00 [08:48:28]wFMCommunicate OK [08:48:28]SAM_PROTO_ClearQueue done [08:48:28]KKMCreateOFDPacket [08:48:28]OFDProtocolAddRootSTLVToBuf [08:48:28]FM_MakeSignedData [08:48:28]FM_MakeSignedData [08:48:28]SAM_PROTO_SignData [08:48:28]wFMCommunicate request_size=4 [08:48:28]MH_SAM_APDU [08:48:28]CAPDU: 80 0D 01 02 [08:48:28]Write to MH i2c: E2 08 00 01 66 80 0D 01 02 00 00 00 00 E0 [08:48:28]Write i2c OK [08:48:28]MH_I2C_Read... [08:48:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:48:28]Read from MH i2c: E2 [08:48:28]MH_I2C_Read... [08:48:28]Read from MH i2c: E2 03 00 [08:48:28]MH_I2C_Read... [08:48:28]Read from MH i2c: E2 03 00 01 66 00 90 00 DB [08:48:28]RAPDU: 90 00 [08:48:28]wFMCommunicate OK [08:48:28]wFMCommunicate request_size=255 [08:48:28]MH_SAM_APDU [08:48:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 69 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 62 F5 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B9 6F 00 00 35 04 06 00 8C [08:48:28]Write to MH i2c: E2 02 01 02 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 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 69 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 62 F5 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B9 6F 00 00 35 04 06 00 8C 00 00 00 [08:48:28]Write i2c OK [08:48:28]MH_I2C_Read... [08:48:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:48:28]Read from MH i2c: E2 [08:48:28]MH_I2C_Read... [08:48:28]Read from MH i2c: E2 03 00 [08:48:28]MH_I2C_Read... [08:48:28]Read from MH i2c: E2 03 00 02 66 00 90 00 DC [08:48:28]RAPDU: 90 00 [08:48:28]wFMCommunicate OK [08:48:28]wFMCommunicate request_size=10 [08:48:28]MH_SAM_APDU [08:48:28]CAPDU: 80 0D 02 02 05 9F 77 8D 0A B5 [08:48:28]Write to MH i2c: E2 0D 00 03 66 80 0D 02 02 05 00 9F 77 8D 0A B5 00 00 4F [08:48:28]Write i2c OK [08:48:28]MH_I2C_Read... [08:48:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:48:29]Read from MH i2c: E2 [08:48:29]MH_I2C_Read... [08:48:29]Read from MH i2c: E2 03 00 [08:48:29]MH_I2C_Read... [08:48:29]Read from MH i2c: E2 03 00 03 66 00 90 00 DD [08:48:29]RAPDU: 90 00 [08:48:29]wFMCommunicate OK [08:48:29]wFMCommunicate request_size=4 [08:48:29]MH_SAM_APDU [08:48:29]CAPDU: 80 0D 03 02 [08:48:29]Write to MH i2c: E2 08 00 04 66 80 0D 03 02 00 00 00 00 E5 [08:48:29]Write i2c OK [08:48:29]MH_I2C_Read... [08:48:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:48:29]Read from MH i2c: E2 [08:48:29]MH_I2C_Read... [08:48:29]Read from MH i2c: E2 0B 00 [08:48:29]MH_I2C_Read... [08:48:29]Read from MH i2c: E2 0B 00 04 66 00 7B AA E9 16 0B 54 55 C8 90 00 86 [08:48:29]RAPDU: 7B AA E9 16 0B 54 55 C8 90 00 [08:48:29]wFMCommunicate OK [08:48:29]SAM_PROTO_SignData done [08:48:29]FM_MakeSignedData done [08:48:29]CreateOFDProtocolMessage [08:48:29]wFMCommunicate request_size=4 [08:48:29]MH_SAM_APDU [08:48:29]CAPDU: 80 11 00 00 [08:48:29]Write to MH i2c: E2 08 00 05 66 80 11 00 00 00 00 00 00 E5 [08:48:29]Write i2c OK [08:48:29]MH_I2C_Read... [08:48:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:48:29]Read from MH i2c: E2 [08:48:29]MH_I2C_Read... [08:48:29]Read from MH i2c: E2 17 00 [08:48:29]MH_I2C_Read... [08:48:29]Read from MH i2c: E2 17 00 05 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 34 [08:48:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:48:29]wFMCommunicate OK [08:48:29]CreateOFDProtocolMessage done [08:48:29]OFDSenderStorePacket 28601 [08:48:29]StoreOFDPacket docnum=28601 [08:48:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 1B 81 07 01 EF D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 69 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 62 F5 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B9 6F 00 00 35 04 06 00 8C 9F 77 8D 0A B5 7B AA E9 16 0B 54 55 C8 [08:48:29]CheckFolder [08:48:29]dirname=/storage/ofd_packets [08:48:29]CheckFolder done [08:48:29]ProducePacketName [08:48:29]name=ofd_packets/00028601 [08:48:29]NVStorageSaveData ofd_packets/00028601 [08:48:29]File name is /storage/ofd_packets/00028601 [08:48:29]Write 301 bytes [08:48:29]NVStorageSaveData done [08:48:29]OFDSenderStorePacket done [08:48:29]KKMCreateOFDPacket done [08:48:29]NVStorageSaveData kkm_last_timestamp [08:48:29]File name is /storage/kkm_last_timestamp [08:48:29]Write 4 bytes [08:48:29]NVStorageSaveData done [08:48:29]ExternCall_PrintAddStr [08:48:29]wPrintStart [08:48:29]Write to MH i2c: 01 00 00 06 66 6C [08:48:29]Write i2c OK [08:48:29]MH_I2C_Read... [08:48:29]Read from MH i2c: 01 [08:48:29]MH_I2C_Read... [08:48:29]Read from MH i2c: 01 07 00 [08:48:29]MH_I2C_Read... [08:48:29]Read from MH i2c: 01 07 00 06 66 00 00 00 00 00 FF 0F 81 [08:48:29]RasterBufferAndPrint [08:48:29]line Счет N : (1)346915 [08:48:29]line ИНН: 02508201610067 [08:48:29]line Контрольно-Кассовый Чек [08:48:29]line ПРОДАЖА [08:48:29]line ТРК (МРК, ГНК) : 32 [08:48:29]line Товар: 2710124130 [08:48:29]line Аи-92-К-5 [08:48:29]line 7.780 * 64.30 [08:48:29]line = 500.25 [08:48:29]line НДС 12% НСП 1% [08:48:29]line > о реализуемом товаре [08:48:29]line ИТОГО: 500.25 [08:48:29]line НСП 1% : 4.43 [08:48:29]line НДС 12% : 53.12 [08:48:29]line Наличными: 0.00 [08:48:29]line Безнал.: 500.25 [08:48:29]line Место: АЗС № 108 "Партнер Нефть" [08:48:29]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [08:48:29]line СНО: Общий режим [08:48:29]line Чек 50 12.04.2024 08:48 [08:48:29]line Смена: 113 ФФД: 1.0 [08:48:29]line ЗНМ: 0300000027 [08:48:29]line РНМ: 0000138879044617 [08:48:29]line Версия ККМ: 001 [08:48:29]line Платежная система: АКБ Кыргызстан [08:48:29]line ФМ: 0000000000963154 [08:48:29]line ФД: 28601 [08:48:29]line ФПД: 154616533420725 [08:48:29]line 1/tax-web-control/client/api/v1/ticket?date=20240412T084834&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28601&fm=154616533420725&tin=02508201610067®Number=0000138879044617&sum=50025 [08:48:29]OFD Sender: Processing packet 28601 [packets to send 8, broken 7] [08:48:29]ProducePacketName [08:48:29]name=ofd_packets/00028601 [08:48:29]OFD Sender: To server: pG, [08:48:29]CommunicateWithHost lk.salyk.kg:30040 [08:48:29]ConnectInit lk.salyk.kg [08:48:29]written 0, free lines is 4095 [08:48:29]Connected sock=10 [08:48:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 1B 81 07 01 EF D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 69 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 62 F5 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B9 6F 00 00 35 04 06 00 8C 9F 77 8D 0A B5 7B AA E9 16 0B 54 55 C8 [08:48:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 99 8D 47 00 B2 A8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B9 6F 00 00 F4 03 04 00 0D A0 18 66 B6 04 01 00 00 DE 3F 65 5B 9B 10 25 CD [08:48:29]CommunicateWithHost err = 0 [08:48:29]CheckOFDResponse [08:48:29]1017 (14) - 77093643461234 [08:48:29]1041 (16) - 0000000000963154 [08:48:29]1040 (4) - 28601 [08:48:29]1012 (4) - 12.04.2024 02:44 [08:48:29]1206 (1) - 0 [08:48:29]OFD Sender: Remove packet 28601 [08:48:29]ProducePacketName [08:48:29]name=ofd_packets/00028601 [08:48:29]NVStorageDeleteData [08:48:29]Write to MH i2c: 01 00 00 2F 66 95 [08:48:29]Write i2c OK [08:48:29]MH_I2C_Read... [08:48:29]Read from MH i2c: 01 [08:48:29]MH_I2C_Read... [08:48:29]Read from MH i2c: 01 07 00 [08:48:29]MH_I2C_Read... [08:48:29]Read from MH i2c: 01 07 00 2F 66 00 00 00 00 00 D0 0C 78 [08:48:29]RasterBufferAndPrint [08:48:29]line [08:48:29]line [08:48:29]line [08:48:29]line [08:48:29]line [08:48:29]written 0, free lines is 3284 [08:48:29]MH_Cut [08:48:29]Write to MH i2c: D1 01 00 36 66 01 6E [08:48:29]Write i2c OK [08:48:29]MH_I2C_Read... [08:48:29]Read from MH i2c: D1 [08:48:29]MH_I2C_Read... [08:48:29]Read from MH i2c: D1 01 00 [08:48:29]MH_I2C_Read... [08:48:29]Read from MH i2c: D1 01 00 36 66 00 6D [08:48:29]Write to MH i2c: 01 00 00 37 66 9D [08:48:29]Write i2c OK [08:48:29]MH_I2C_Read... [08:48:30]OFD Sender: No OFD packet to send [08:48:30]*** Cut start [08:48:30]*** Partial cut [08:48:30]*** CUTSNS_PIN = 1 [08:48:30]*** CUTSNS_PIN = 0 [08:48:31]*** Brake cut motor [08:48:31]Read from MH i2c: 01 [08:48:31]MH_I2C_Read... [08:48:31]*** Stop cut motor [08:48:31]*** Cut end [08:48:31]Read from MH i2c: 01 07 00 [08:48:31]MH_I2C_Read... [08:48:31]Read from MH i2c: 01 07 00 37 66 00 00 00 00 00 FF 0F B2 [08:48:31]process_action close_receipt done [08:48:31]requested_data is exist [08:48:31]produce_requested_data [08:48:31]requested_item fm.sn is exist - process it [08:48:31]wFMCommunicate request_size=4 [08:48:31]MH_SAM_APDU [08:48:31]CAPDU: 80 11 00 00 [08:48:31]Write to MH i2c: E2 08 00 38 66 80 11 00 00 00 00 00 00 18 [08:48:31]Write i2c OK [08:48:31]MH_I2C_Read... [08:48:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:48:31]Read from MH i2c: E2 [08:48:31]MH_I2C_Read... [08:48:31]Read from MH i2c: E2 17 00 [08:48:31]MH_I2C_Read... [08:48:31]Read from MH i2c: E2 17 00 38 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 67 [08:48:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:48:31]wFMCommunicate OK [08:48:31]requested_item fd.num is exist - process it [08:48:31]SAM_PROTO_GetFieldsCounters [08:48:31]wFMCommunicate request_size=4 [08:48:31]MH_SAM_APDU [08:48:31]CAPDU: 80 13 00 00 [08:48:31]Write to MH i2c: E2 08 00 39 66 80 13 00 00 00 00 00 00 1B [08:48:31]Write i2c OK [08:48:31]MH_I2C_Read... [08:48:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:48:31]Read from MH i2c: E2 [08:48:31]MH_I2C_Read... [08:48:31]Read from MH i2c: E2 62 00 [08:48:31]MH_I2C_Read... [08:48:31]Read from MH i2c: E2 62 00 39 66 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 B9 6F 00 00 0E 04 04 00 71 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 88 [08:48:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 B9 6F 00 00 0E 04 04 00 71 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 [08:48:31]wFMCommunicate OK [08:48:31]SAM_PROTO_GetFieldsCounters done [08:48:31]requested_item shift.num is exist - process it [08:48:31]requested_item shift.opened is exist - process it [08:48:31]req_shift_opened [08:48:31]FM_GetShiftState [08:48:31]SAM_PROTO_GetShiftState [08:48:31]wFMCommunicate request_size=4 [08:48:31]MH_SAM_APDU [08:48:31]CAPDU: 80 13 01 00 [08:48:31]Write to MH i2c: E2 08 00 3A 66 80 13 01 00 00 00 00 00 1D [08:48:31]Write i2c OK [08:48:31]MH_I2C_Read... [08:48:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:48:31]Read from MH i2c: E2 [08:48:31]MH_I2C_Read... [08:48:31]Read from MH i2c: E2 0E 00 [08:48:31]MH_I2C_Read... [08:48:31]Read from MH i2c: E2 0E 00 3A 66 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 2E [08:48:31]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [08:48:31]wFMCommunicate OK [08:48:31]SAM_PROTO_GetShiftState done [08:48:31]FM_GetShiftState done [08:48:31]req_shift_opened done [08:48:31]requested_item shift.open_date is exist - process it [08:48:31]req_shift_open_date [08:48:31]req_shift_open_date done [08:48:31]produce_requested_data done [08:48:31]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28601,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [08:48:31]process_action_free close_receipt [08:48:31]json_value_free [08:48:31]json_value_free done [08:48:31]process_json_proto returns [08:48:31]Send response to host [08:48:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28601,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [08:48:31]free response buf [08:48:31]execute_script done [08:48:31]execute_script returns [08:48:31]free content buf [08:48:31]Sock 7.Close socket [08:48:31]Sock 7.Thread stoped [08:48:35]OFD Sender: No OFD packet to send [08:48:40]OFD Sender: No OFD packet to send [08:48:45]OFD Sender: No OFD packet to send [08:48:50]OFD Sender: No OFD packet to send [08:48:55]OFD Sender: No OFD packet to send [08:49:00]OFD Sender: No OFD packet to send [08:49:05]OFD Sender: No OFD packet to send [08:49:10]OFD Sender: No OFD packet to send [08:49:15]OFD Sender: No OFD packet to send [08:49:15]accept exits with 9 [08:49:15]New connection [08:49:15]New thread 3066641764 created [08:49:15]Thread 3066498404 joined [08:49:15]Waiting for new connection... [08:49:15] Sock 9.Parse request [08:49:15]Sock 9.Check first char [08:49:15]Sock 9.First char is OK [08:49:15]request: POST /json_proto HTTP/1.0 [08:49:15]Method: POST [08:49:15]URL: /json_proto [08:49:15]Method is POST - this is cgi request [08:49:15]url: /json_proto [08:49:15]query_string will be loaded in cgi processing [08:49:15]execute_cgi json_proto POST (null) [08:49:15]execute_cgi path=json_proto method=POST [08:49:15]POST find Content-Length [08:49:15]Host: 172.17.33.3:8080 [08:49:15]Content-Length: 681 [08:49:15]Content-Type: application/json [08:49:15] [08:49:15]POST finish read [08:49:15]Found Content-Length = 681 [08:49:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346916", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 15.200, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:49:15]execute_script... [08:49: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)346916", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 15.200, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:49:15]POST & json_proto [08:49:15]process_json_proto [08:49:15]json parsed OK: [08:49:15]protocol is kg_v1.0 [08:49:15]action value=close_receipt [08:49:15]process_action close_receipt [08:49:15]cmd_close_receipt [08:49:15]MH_GetDate [08:49:15]Write to MH i2c: F0 00 00 3B 66 90 [08:49:15]Write i2c OK [08:49:15]MH_I2C_Read... [08:49:15]Read from MH i2c: F0 [08:49:15]MH_I2C_Read... [08:49:15]Read from MH i2c: F0 09 00 [08:49:15]MH_I2C_Read... [08:49:15]Read from MH i2c: F0 09 00 3B 66 00 92 F5 18 66 23 5B 8F 65 10 [08:49:15]GetLastDocTimeStamp 1712911714 [08:49:15]current date 1712911762 [08:49:15]FM_GetShiftState [08:49:15]SAM_PROTO_GetShiftState [08:49:15]wFMCommunicate request_size=4 [08:49:15]MH_SAM_APDU [08:49:15]CAPDU: 80 13 01 00 [08:49:15]Write to MH i2c: E2 08 00 3C 66 80 13 01 00 00 00 00 00 1F [08:49:15]Write i2c OK [08:49:15]MH_I2C_Read... [08:49:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:49:15]Read from MH i2c: E2 [08:49:15]MH_I2C_Read... [08:49:15]Read from MH i2c: E2 0E 00 [08:49:15]MH_I2C_Read... [08:49:15]Read from MH i2c: E2 0E 00 3C 66 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 30 [08:49:15]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [08:49:15]wFMCommunicate OK [08:49:15]SAM_PROTO_GetShiftState done [08:49:15]FM_GetShiftState done [08:49:15]opened in 1712881416 [08:49:15]opened+sec_in_day 1712967816 [08:49:15]quantity*price = 50008 [08:49:15]sum+1 = 50009 [08:49:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 51 12.04.2024 08:49 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28602 ФПД: 16094360276740 1/tax-web-control/client/api/v1/ticket?date=20240412T084922&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28602&fm=16094360276740&tin=02508201610067®Number=0000138879044617&sum=50000 [08:49:16]StoreToDocumentArchive [08:49:16]shift 113 fd 28602 [08:49:16]save to /storage/0113/doc_00028602 [08:49:16]save last doc name /storage/0113/doc_00028602 to /storage/kkm_last_doc_name [08:49:16]save OK [08:49:16]Clear old archive folders... [08:49:16]ProcessDocumentItem done err = 0, tmpTLVsize=250 [08:49:16]tlvbuf is 01AA92E0 [08:49:16]SAM_PROTO_ClearQueue [08:49:16]wFMCommunicate request_size=4 [08:49:16]MH_SAM_APDU [08:49:16]CAPDU: 80 09 00 00 [08:49:16]Write to MH i2c: E2 08 00 49 66 80 09 00 00 00 00 00 00 21 [08:49:16]Write i2c OK [08:49:16]MH_I2C_Read... [08:49:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:49:16]Read from MH i2c: E2 [08:49:16]MH_I2C_Read... [08:49:16]Read from MH i2c: E2 03 00 [08:49:16]MH_I2C_Read... [08:49:16]Read from MH i2c: E2 03 00 49 66 00 90 00 23 [08:49:16]RAPDU: 90 00 [08:49:16]wFMCommunicate OK [08:49:16]SAM_PROTO_ClearQueue done [08:49:16]KKMCreateOFDPacket [08:49:16]OFDProtocolAddRootSTLVToBuf [08:49:16]FM_MakeSignedData [08:49:16]FM_MakeSignedData [08:49:16]SAM_PROTO_SignData [08:49:16]wFMCommunicate request_size=4 [08:49:16]MH_SAM_APDU [08:49:16]CAPDU: 80 0D 01 02 [08:49:16]Write to MH i2c: E2 08 00 4A 66 80 0D 01 02 00 00 00 00 29 [08:49:16]Write i2c OK [08:49:16]MH_I2C_Read... [08:49:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:49:16]Read from MH i2c: E2 [08:49:16]MH_I2C_Read... [08:49:16]Read from MH i2c: E2 03 00 [08:49:16]MH_I2C_Read... [08:49:16]Read from MH i2c: E2 03 00 4A 66 00 90 00 24 [08:49:16]RAPDU: 90 00 [08:49:16]wFMCommunicate OK [08:49:16]wFMCommunicate request_size=255 [08:49:16]MH_SAM_APDU [08:49:16]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 33 00 00 00 F4 03 04 00 92 F5 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BA 6F 00 00 35 04 06 00 0E A3 [08:49:16]Write to MH i2c: E2 02 01 4B 66 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 33 00 00 00 F4 03 04 00 92 F5 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BA 6F 00 00 35 04 06 00 0E A3 00 00 D3 [08:49:16]Write i2c OK [08:49:16]MH_I2C_Read... [08:49:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:49:16]Read from MH i2c: E2 [08:49:16]MH_I2C_Read... [08:49:16]Read from MH i2c: E2 03 00 [08:49:16]MH_I2C_Read... [08:49:16]Read from MH i2c: E2 03 00 4B 66 00 90 00 25 [08:49:16]RAPDU: 90 00 [08:49:16]wFMCommunicate OK [08:49:16]wFMCommunicate request_size=9 [08:49:16]MH_SAM_APDU [08:49:16]CAPDU: 80 0D 02 02 04 42 A0 8F 04 [08:49:16]Write to MH i2c: E2 0C 00 4C 66 80 0D 02 02 04 00 42 A0 8F 04 00 00 A9 [08:49:16]Write i2c OK [08:49:16]MH_I2C_Read... [08:49:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:49:16]Read from MH i2c: E2 [08:49:16]MH_I2C_Read... [08:49:16]Read from MH i2c: E2 03 00 [08:49:16]MH_I2C_Read... [08:49:16]Read from MH i2c: E2 03 00 4C 66 00 90 00 26 [08:49:16]RAPDU: 90 00 [08:49:16]wFMCommunicate OK [08:49:16]wFMCommunicate request_size=4 [08:49:16]MH_SAM_APDU [08:49:16]CAPDU: 80 0D 03 02 [08:49:16]Write to MH i2c: E2 08 00 4D 66 80 0D 03 02 00 00 00 00 2E [08:49:16]Write i2c OK [08:49:16]MH_I2C_Read... [08:49:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:49:16]Read from MH i2c: E2 [08:49:16]MH_I2C_Read... [08:49:16]Read from MH i2c: E2 0B 00 [08:49:16]MH_I2C_Read... [08:49:16]Read from MH i2c: E2 0B 00 4D 66 00 11 8F E1 C2 BA BB BE 4D 90 00 F2 [08:49:16]RAPDU: 11 8F E1 C2 BA BB BE 4D 90 00 [08:49:16]wFMCommunicate OK [08:49:16]SAM_PROTO_SignData done [08:49:16]FM_MakeSignedData done [08:49:16]CreateOFDProtocolMessage [08:49:16]wFMCommunicate request_size=4 [08:49:16]MH_SAM_APDU [08:49:16]CAPDU: 80 11 00 00 [08:49:16]Write to MH i2c: E2 08 00 4E 66 80 11 00 00 00 00 00 00 2E [08:49:16]Write i2c OK [08:49:16]MH_I2C_Read... [08:49:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:49:16]Read from MH i2c: E2 [08:49:16]MH_I2C_Read... [08:49:16]Read from MH i2c: E2 17 00 [08:49:16]MH_I2C_Read... [08:49:16]Read from MH i2c: E2 17 00 4E 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 7D [08:49:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:49:16]wFMCommunicate OK [08:49:16]CreateOFDProtocolMessage done [08:49:16]OFDSenderStorePacket 28602 [08:49:16]StoreOFDPacket docnum=28602 [08:49:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 57 35 06 01 21 A1 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 33 00 00 00 F4 03 04 00 92 F5 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BA 6F 00 00 35 04 06 00 0E A3 42 A0 8F 04 11 8F E1 C2 BA BB BE 4D [08:49:16]CheckFolder [08:49:16]dirname=/storage/ofd_packets [08:49:17]CheckFolder done [08:49:17]ProducePacketName [08:49:17]name=ofd_packets/00028602 [08:49:17]NVStorageSaveData ofd_packets/00028602 [08:49:17]File name is /storage/ofd_packets/00028602 [08:49:17]Write 300 bytes [08:49:17]NVStorageSaveData done [08:49:17]OFDSenderStorePacket done [08:49:17]KKMCreateOFDPacket done [08:49:17]NVStorageSaveData kkm_last_timestamp [08:49:17]File name is /storage/kkm_last_timestamp [08:49:17]Write 4 bytes [08:49:17]NVStorageSaveData done [08:49:17]ExternCall_PrintAddStr [08:49:17]wPrintStart [08:49:17]Write to MH i2c: 01 00 00 4F 66 B5 [08:49:17]OFD Sender: Processing packet 28602 [packets to send 8, broken 7] [08:49:17]ProducePacketName [08:49:17]name=ofd_packets/00028602 [08:49:17]OFD Sender: To server: pG, [08:49:17]CommunicateWithHost lk.salyk.kg:30040 [08:49:17]ConnectInit lk.salyk.kg [08:49:17]Write i2c OK [08:49:17]MH_I2C_Read... [08:49:17]Read from MH i2c: 01 [08:49:17]MH_I2C_Read... [08:49:17]Read from MH i2c: 01 07 00 [08:49:17]MH_I2C_Read... [08:49:17]Read from MH i2c: 01 07 00 4F 66 00 00 00 00 00 FF 0F CA [08:49:17]RasterBufferAndPrint [08:49:17]line Счет N : (1)346916 [08:49:17]line ИНН: 02508201610067 [08:49:17]line Контрольно-Кассовый Чек [08:49:17]line ПРОДАЖА [08:49:17]line ТРК (МРК, ГНК) : 71 [08:49:17]line Товар: 2711129700 [08:49:17]line ГАЗ-К-5 [08:49:17]line 15.200 * 32.90 [08:49:17]line = 500.08 [08:49:17]line НДС 12% НСП 1% [08:49:17]line > о реализуемом товаре [08:49:17]line ОКРУГЛЕНИЕ: -0.08 [08:49:17]line ИТОГО: 500.00 [08:49:17]line Внесено: 500.00 [08:49:17]line СДАЧА: 0.00 [08:49:17]line НСП 1% : 4.42 [08:49:17]line НДС 12% : 53.11 [08:49:17]line Наличными: 500.00 [08:49:17]line Безнал.: 0.00 [08:49:17]line Место: АЗС № 108 "Партнер Нефть" [08:49:17]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [08:49:17]line СНО: Общий режим [08:49:17]line Чек 51 12.04.2024 08:49 [08:49:17]line Смена: 113 ФФД: 1.0 [08:49:17]line ЗНМ: 0300000027 [08:49:17]line РНМ: 0000138879044617 [08:49:17]line Версия ККМ: 001 [08:49:17]line ФМ: 0000000000963154 [08:49:17]line ФД: 28602 [08:49:17]line ФПД: 16094360276740 [08:49:17]Connected sock=11 [08:49:17]line 1/tax-web-control/client/api/v1/ticket?date=20240412T084922&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28602&fm=16094360276740&tin=02508201610067®Number=0000138879044617&sum=50000 [08:49:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 57 35 06 01 21 A1 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 written 0, free lines is 4095 [08:49:17]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 33 00 00 00 F4 03 04 00 92 F5 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BA 6F 00 00 35 04 06 00 0E A3 42 A0 8F 04 11 8F E1 C2 BA BB BE 4D [08:49:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 29 A1 47 00 F3 19 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BA 6F 00 00 F4 03 04 00 3D A0 18 66 B6 04 01 00 00 97 D2 CC 09 4E ED 91 B3 [08:49:17]CommunicateWithHost err = 0 [08:49:17]CheckOFDResponse [08:49:17]1017 (14) - 77093643461234 [08:49:17]1041 (16) - 0000000000963154 [08:49:17]1040 (4) - 28602 [08:49:17]1012 (4) - 12.04.2024 02:45 [08:49:17]1206 (1) - 0 [08:49:17]OFD Sender: Remove packet 28602 [08:49:17]ProducePacketName [08:49:17]name=ofd_packets/00028602 [08:49:17]NVStorageDeleteData [08:49:17]Write to MH i2c: 01 00 00 79 66 DF [08:49:17]Write i2c OK [08:49:17]MH_I2C_Read... [08:49:17]Read from MH i2c: 01 [08:49:17]MH_I2C_Read... [08:49:17]Read from MH i2c: 01 07 00 [08:49:17]MH_I2C_Read... [08:49:17]Read from MH i2c: 01 07 00 79 66 00 00 00 00 00 C1 0C B3 [08:49:17]RasterBufferAndPrint [08:49:17]line [08:49:17]line [08:49:17]line [08:49:17]line [08:49:17]line [08:49:17]written 0, free lines is 3269 [08:49:17]MH_Cut [08:49:17]Write to MH i2c: D1 01 00 80 66 01 B8 [08:49:17]Write i2c OK [08:49:17]MH_I2C_Read... [08:49:17]Read from MH i2c: D1 [08:49:17]MH_I2C_Read... [08:49:17]Read from MH i2c: D1 01 00 [08:49:17]MH_I2C_Read... [08:49:17]Read from MH i2c: D1 01 00 80 66 00 B7 [08:49:17]Write to MH i2c: 01 00 00 81 66 E7 [08:49:17]Write i2c OK [08:49:17]MH_I2C_Read... [08:49:18]OFD Sender: No OFD packet to send [08:49:18]*** Cut start [08:49:18]*** Partial cut [08:49:18]*** CUTSNS_PIN = 1 [08:49:18]*** CUTSNS_PIN = 0 [08:49:18]*** Brake cut motor [08:49:19]Read from MH i2c: 01 [08:49:19]MH_I2C_Read... [08:49:19]*** Stop cut motor [08:49:19]*** Cut end [08:49:19]Read from MH i2c: 01 07 00 [08:49:19]MH_I2C_Read... [08:49:19]Read from MH i2c: 01 07 00 81 66 00 00 00 00 00 FF 0F FC [08:49:19]process_action close_receipt done [08:49:19]requested_data is exist [08:49:19]produce_requested_data [08:49:19]requested_item fm.sn is exist - process it [08:49:19]wFMCommunicate request_size=4 [08:49:19]MH_SAM_APDU [08:49:19]CAPDU: 80 11 00 00 [08:49:19]Write to MH i2c: E2 08 00 82 66 80 11 00 00 00 00 00 00 62 [08:49:19]Write i2c OK [08:49:19]MH_I2C_Read... [08:49:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:49:19]Read from MH i2c: E2 [08:49:19]MH_I2C_Read... [08:49:19]Read from MH i2c: E2 17 00 [08:49:19]MH_I2C_Read... [08:49:19]Read from MH i2c: E2 17 00 82 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 B1 [08:49:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:49:19]wFMCommunicate OK [08:49:19]requested_item fd.num is exist - process it [08:49:19]SAM_PROTO_GetFieldsCounters [08:49:19]wFMCommunicate request_size=4 [08:49:19]MH_SAM_APDU [08:49:19]CAPDU: 80 13 00 00 [08:49:19]Write to MH i2c: E2 08 00 83 66 80 13 00 00 00 00 00 00 65 [08:49:19]Write i2c OK [08:49:19]MH_I2C_Read... [08:49:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:49:19]Read from MH i2c: E2 [08:49:19]MH_I2C_Read... [08:49:19]Read from MH i2c: E2 62 00 [08:49:19]MH_I2C_Read... [08:49:19]Read from MH i2c: E2 62 00 83 66 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 BA 6F 00 00 0E 04 04 00 71 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 D6 [08:49:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 BA 6F 00 00 0E 04 04 00 71 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 [08:49:19]wFMCommunicate OK [08:49:19]SAM_PROTO_GetFieldsCounters done [08:49:19]requested_item shift.num is exist - process it [08:49:19]requested_item shift.opened is exist - process it [08:49:19]req_shift_opened [08:49:19]FM_GetShiftState [08:49:19]SAM_PROTO_GetShiftState [08:49:19]wFMCommunicate request_size=4 [08:49:19]MH_SAM_APDU [08:49:19]CAPDU: 80 13 01 00 [08:49:19]Write to MH i2c: E2 08 00 84 66 80 13 01 00 00 00 00 00 67 [08:49:19]Write i2c OK [08:49:19]MH_I2C_Read... [08:49:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:49:19]Read from MH i2c: E2 [08:49:19]MH_I2C_Read... [08:49:19]Read from MH i2c: E2 0E 00 [08:49:19]MH_I2C_Read... [08:49:19]Read from MH i2c: E2 0E 00 84 66 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 78 [08:49:19]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [08:49:19]wFMCommunicate OK [08:49:19]SAM_PROTO_GetShiftState done [08:49:19]FM_GetShiftState done [08:49:19]req_shift_opened done [08:49:19]requested_item shift.open_date is exist - process it [08:49:19]req_shift_open_date [08:49:19]req_shift_open_date done [08:49:19]produce_requested_data done [08:49:19]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28602,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [08:49:19]process_action_free close_receipt [08:49:19]json_value_free [08:49:19]json_value_free done [08:49:19]process_json_proto returns [08:49:19]Send response to host [08:49:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28602,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [08:49:19]free response buf [08:49:19]execute_script done [08:49:19]execute_script returns [08:49:19]free content buf [08:49:19]Sock 9.Close socket [08:49:19]Sock 9.Thread stoped [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:23]OFD Sender: No OFD packet to send [08:52:28]OFD Sender: No OFD packet to send [08:52:33]OFD Sender: No OFD packet to send [08:52:38]OFD Sender: No OFD packet to send [08:52:43]OFD Sender: No OFD packet to send [08:52:48]OFD Sender: No OFD packet to send [08:52:53]OFD Sender: No OFD packet to send [08:52:58]OFD Sender: No OFD packet to send [08:53:03]OFD Sender: No OFD packet to send [08:53:08]OFD Sender: No OFD packet to send [08:53:13]OFD Sender: No OFD packet to send [08:53:18]OFD Sender: No OFD packet to send [08:53:23]OFD Sender: No OFD packet to send [08:53:28]OFD Sender: No OFD packet to send [08:53:33]OFD Sender: No OFD packet to send [08:53:38]OFD Sender: No OFD packet to send [08:53:43]OFD Sender: No OFD packet to send [08:53:48]OFD Sender: No OFD packet to send [08:53:53]OFD Sender: No OFD packet to send [08:53:58]OFD Sender: No OFD packet to send [08:54:03]OFD Sender: No OFD packet to send [08:54:08]OFD Sender: No OFD packet to send [08:54:13]OFD Sender: No OFD packet to send [08:54:18]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:59:03]OFD Sender: No OFD packet to send [08:59:08]OFD Sender: No OFD packet to send [08:59:13]OFD Sender: No OFD packet to send [08:59:18]OFD Sender: No OFD packet to send [08:59:23]OFD Sender: No OFD packet to send [08:59:28]OFD Sender: No OFD packet to send [08:59:33]OFD Sender: No OFD packet to send [08:59:38]OFD Sender: No OFD packet to send [08:59:43]OFD Sender: No OFD packet to send [08:59:45]accept exits with 7 [08:59:45]New connection [08:59:45]New thread 3066498404 created [08:59:45]Thread 3066641764 joined [08:59:45]Waiting for new connection... [08:59:45] Sock 7.Parse request [08:59:45]Sock 7.Check first char [08:59:45]Sock 7.First char is OK [08:59:45]request: POST /json_proto HTTP/1.0 [08:59:45]Method: POST [08:59:45]URL: /json_proto [08:59:45]Method is POST - this is cgi request [08:59:45]url: /json_proto [08:59:45]query_string will be loaded in cgi processing [08:59:45]execute_cgi json_proto POST (null) [08:59:45]execute_cgi path=json_proto method=POST [08:59:45]POST find Content-Length [08:59:45]Host: 172.17.33.3:8080 [08:59:45]Content-Length: 678 [08:59:45]Content-Type: application/json [08:59:45] [08:59:45]POST finish read [08:59:45]Found Content-Length = 678 [08:59:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346917", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 10.890, "sum" : 700.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:59:45]execute_script... [08: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)346917", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 10.890, "sum" : 700.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:59:45]POST & json_proto [08:59:45]process_json_proto [08:59:45]json parsed OK: [08:59:45]protocol is kg_v1.0 [08:59:45]action value=close_receipt [08:59:45]process_action close_receipt [08:59:45]cmd_close_receipt [08:59:45]MH_GetDate [08:59:45]Write to MH i2c: F0 00 00 85 66 DA [08:59:45]Write i2c OK [08:59:45]MH_I2C_Read... [08:59:45]Read from MH i2c: F0 [08:59:45]MH_I2C_Read... [08:59:45]Read from MH i2c: F0 09 00 [08:59:45]MH_I2C_Read... [08:59:45]Read from MH i2c: F0 09 00 85 66 00 08 F8 18 66 23 5B 8F 65 D3 [08:59:45]GetLastDocTimeStamp 1712911762 [08:59:45]current date 1712912392 [08:59:45]FM_GetShiftState [08:59:45]SAM_PROTO_GetShiftState [08:59:45]wFMCommunicate request_size=4 [08:59:45]MH_SAM_APDU [08:59:45]CAPDU: 80 13 01 00 [08:59:45]Write to MH i2c: E2 08 00 86 66 80 13 01 00 00 00 00 00 69 [08:59:45]Write i2c OK [08:59:45]MH_I2C_Read... [08:59:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:59:45]Read from MH i2c: E2 [08:59:45]MH_I2C_Read... [08:59:45]Read from MH i2c: E2 0E 00 [08:59:45]MH_I2C_Read... [08:59:45]Read from MH i2c: E2 0E 00 86 66 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 7A [08:59:45]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [08:59:45]wFMCommunicate OK [08:59:45]SAM_PROTO_GetShiftState done [08:59:45]FM_GetShiftState done [08:59:45]opened in 1712881416 [08:59:45]opened+sec_in_day 1712967816 [08:59:45]quantity*price = 70022 [08:59:45]sum+1 = 70024 [08:59:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.36 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 52 12.04.2024 08:59 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28603 ФПД: 225415986880437 1/tax-web-control/client/api/v1/ticket?date=20240412T085952&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28603&fm=225415986880437&tin=02508201610067®Number=0000138879044617&sum=70000 [08:59:46]StoreToDocumentArchive [08:59:46]shift 113 fd 28603 [08:59:46]save to /storage/0113/doc_00028603 [08:59:46]save last doc name /storage/0113/doc_00028603 to /storage/kkm_last_doc_name [08:59:46]save OK [08:59:46]Clear old archive folders... [08:59:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:59:46]tlvbuf is 01BB4780 [08:59:46]SAM_PROTO_ClearQueue [08:59:46]wFMCommunicate request_size=4 [08:59:46]MH_SAM_APDU [08:59:46]CAPDU: 80 09 00 00 [08:59:46]Write to MH i2c: E2 08 00 93 66 80 09 00 00 00 00 00 00 6B [08:59:46]Write i2c OK [08:59:46]MH_I2C_Read... [08:59:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:59:46]Read from MH i2c: E2 [08:59:46]MH_I2C_Read... [08:59:46]Read from MH i2c: E2 03 00 [08:59:46]MH_I2C_Read... [08:59:46]Read from MH i2c: E2 03 00 93 66 00 90 00 6D [08:59:46]RAPDU: 90 00 [08:59:46]wFMCommunicate OK [08:59:46]SAM_PROTO_ClearQueue done [08:59:46]KKMCreateOFDPacket [08:59:46]OFDProtocolAddRootSTLVToBuf [08:59:46]FM_MakeSignedData [08:59:46]FM_MakeSignedData [08:59:46]SAM_PROTO_SignData [08:59:46]wFMCommunicate request_size=4 [08:59:46]MH_SAM_APDU [08:59:46]CAPDU: 80 0D 01 02 [08:59:46]Write to MH i2c: E2 08 00 94 66 80 0D 01 02 00 00 00 00 73 [08:59:46]Write i2c OK [08:59:46]MH_I2C_Read... [08:59:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:59:46]Read from MH i2c: E2 [08:59:46]MH_I2C_Read... [08:59:46]Read from MH i2c: E2 03 00 [08:59:46]MH_I2C_Read... [08:59:46]Read from MH i2c: E2 03 00 94 66 00 90 00 6E [08:59:46]RAPDU: 90 00 [08:59:46]wFMCommunicate OK [08:59:46]wFMCommunicate request_size=255 [08:59:46]MH_SAM_APDU [08:59:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 2A 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 87 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 34 00 00 00 F4 03 04 00 08 F8 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BB 6F 00 00 35 04 06 00 CD [08:59:46]Write to MH i2c: E2 02 01 95 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 35 FF 03 08 00 03 8A 2A 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 87 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 34 00 00 00 F4 03 04 00 08 F8 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BB 6F 00 00 35 04 06 00 CD 00 00 D3 [08:59:46]Write i2c OK [08:59:46]MH_I2C_Read... [08:59:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:59:46]Read from MH i2c: E2 [08:59:46]MH_I2C_Read... [08:59:46]Read from MH i2c: E2 03 00 [08:59:46]MH_I2C_Read... [08:59:46]Read from MH i2c: E2 03 00 95 66 00 90 00 6F [08:59:46]RAPDU: 90 00 [08:59:46]wFMCommunicate OK [08:59:46]wFMCommunicate request_size=10 [08:59:46]MH_SAM_APDU [08:59:46]CAPDU: 80 0D 02 02 05 03 BF D3 1F B5 [08:59:47]Write to MH i2c: E2 0D 00 96 66 80 0D 02 02 05 00 03 BF D3 1F B5 00 00 E9 [08:59:47]Write i2c OK [08:59:47]MH_I2C_Read... [08:59:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:59:47]Read from MH i2c: E2 [08:59:47]MH_I2C_Read... [08:59:47]Read from MH i2c: E2 03 00 [08:59:47]MH_I2C_Read... [08:59:47]Read from MH i2c: E2 03 00 96 66 00 90 00 70 [08:59:47]RAPDU: 90 00 [08:59:47]wFMCommunicate OK [08:59:47]wFMCommunicate request_size=4 [08:59:47]MH_SAM_APDU [08:59:47]CAPDU: 80 0D 03 02 [08:59:47]Write to MH i2c: E2 08 00 97 66 80 0D 03 02 00 00 00 00 78 [08:59:47]Write i2c OK [08:59:47]MH_I2C_Read... [08:59:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:59:47]Read from MH i2c: E2 [08:59:47]MH_I2C_Read... [08:59:47]Read from MH i2c: E2 0B 00 [08:59:47]MH_I2C_Read... [08:59:47]Read from MH i2c: E2 0B 00 97 66 00 30 DA BA 7E 16 A6 FF A6 90 00 1C [08:59:47]RAPDU: 30 DA BA 7E 16 A6 FF A6 90 00 [08:59:47]wFMCommunicate OK [08:59:47]SAM_PROTO_SignData done [08:59:47]FM_MakeSignedData done [08:59:47]CreateOFDProtocolMessage [08:59:47]wFMCommunicate request_size=4 [08:59:47]MH_SAM_APDU [08:59:47]CAPDU: 80 11 00 00 [08:59:47]Write to MH i2c: E2 08 00 98 66 80 11 00 00 00 00 00 00 78 [08:59:47]Write i2c OK [08:59:47]MH_I2C_Read... [08:59:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:59:47]Read from MH i2c: E2 [08:59:47]MH_I2C_Read... [08:59:47]Read from MH i2c: E2 17 00 [08:59:47]MH_I2C_Read... [08:59:47]Read from MH i2c: E2 17 00 98 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 C7 [08:59:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:59:47]wFMCommunicate OK [08:59:47]CreateOFDProtocolMessage done [08:59:47]OFDSenderStorePacket 28603 [08:59:47]StoreOFDPacket docnum=28603 [08:59:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 2E 28 07 01 26 AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 2A 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 87 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 34 00 00 00 F4 03 04 00 08 F8 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BB 6F 00 00 35 04 06 00 CD 03 BF D3 1F B5 30 DA BA 7E 16 A6 FF A6 [08:59:47]CheckFolder [08:59:47]dirname=/storage/ofd_packets [08:59:47]CheckFolder done [08:59:47]ProducePacketName [08:59:47]name=ofd_packets/00028603 [08:59:47]NVStorageSaveData ofd_packets/00028603 [08:59:47]File name is /storage/ofd_packets/00028603 [08:59:47]Write 301 bytes [08:59:47]NVStorageSaveData done [08:59:47]OFDSenderStorePacket done [08:59:47]KKMCreateOFDPacket done [08:59:47]NVStorageSaveData kkm_last_timestamp [08:59:47]File name is /storage/kkm_last_timestamp [08:59:47]Write 4 bytes [08:59:47]NVStorageSaveData done [08:59:47]ExternCall_PrintAddStr [08:59:47]wPrintStart [08:59:47]Write to MH i2c: 01 00 00 99 66 FF [08:59:47]Write i2c OK [08:59:47]MH_I2C_Read... [08:59:47]Read from MH i2c: 01 [08:59:47]MH_I2C_Read... [08:59:47]Read from MH i2c: 01 07 00 [08:59:47]MH_I2C_Read... [08:59:47]Read from MH i2c: 01 07 00 99 66 00 00 00 00 00 FF 0F 14 [08:59:47]RasterBufferAndPrint [08:59:47]line Счет N : (1)346917 [08:59:47]line ИНН: 02508201610067 [08:59:47]line Контрольно-Кассовый Чек [08:59:47]line ПРОДАЖА [08:59:47]line ТРК (МРК, ГНК) : 32 [08:59:47]line Товар: 2710124130 [08:59:47]line Аи-92-К-5 [08:59:47]line 10.890 * 64.30 [08:59:47]line = 700.23 [08:59:47]line НДС 12% НСП 1% [08:59:47]line > о реализуемом товаре [08:59:47]line ОКРУГЛЕНИЕ: -0.23 [08:59:47]line ИТОГО: 700.00 [08:59:47]line Внесено: 700.00 [08:59:47]line СДАЧА: 0.00 [08:59:47]line НСП 1% : 6.20 [08:59:47]line НДС 12% : 74.36 [08:59:47]line Наличными: 700.00 [08:59:47]line Безнал.: 0.00 [08:59:47]line Место: АЗС № 108 "Партнер Нефть" [08:59:47]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [08:59:47]line СНО: Общий режим [08:59:47]line Чек 52 12.04.2024 08:59 [08:59:47]line Смена: 113 ФФД: 1.0 [08:59:47]line ЗНМ: 0300000027 [08:59:47]line РНМ: 0000138879044617 [08:59:47]line Версия ККМ: 001 [08:59:47]line ФМ: 0000000000963154 [08:59:47]line ФД: 28603 [08:59:47]line ФПД: 225415986880437 [08:59:47]line 1/tax-web-control/client/api/v1/ticket?date=20240412T085952&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28603&fm=225415986880437&tin=02508201610067®Number=0000138879044617&sum=70000 [08:59:47]OFD Sender: Processing packet 28603 [packets to send 8, broken 7] [08:59:47]ProducePacketName [08:59:47]name=ofd_packets/00028603 [08:59:47]OFD Sender: To server: pG, [08:59:47]CommunicateWithHost lk.salyk.kg:30040 [08:59:47]ConnectInit lk.salyk.kg [08:59:47]written 0, free lines is 4095 [08:59:47]Connected sock=10 [08:59:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 2E 28 07 01 26 AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 2A 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 87 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 34 00 00 00 F4 03 04 00 08 F8 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BB 6F 00 00 35 04 06 00 CD 03 BF D3 1F B5 30 DA BA 7E 16 A6 FF A6 [08:59:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 9B 98 47 00 0B 2A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BB 6F 00 00 F4 03 04 00 B3 A2 18 66 B6 04 01 00 00 A3 C8 68 C5 F5 6A B2 24 [08:59:47]CommunicateWithHost err = 0 [08:59:47]CheckOFDResponse [08:59:47]1017 (14) - 77093643461234 [08:59:47]1041 (16) - 0000000000963154 [08:59:47]1040 (4) - 28603 [08:59:47]1012 (4) - 12.04.2024 02:55 [08:59:47]1206 (1) - 0 [08:59:47]OFD Sender: Remove packet 28603 [08:59:47]ProducePacketName [08:59:47]name=ofd_packets/00028603 [08:59:47]NVStorageDeleteData [08:59:47]Write to MH i2c: 01 00 00 C3 66 29 [08:59:47]Write i2c OK [08:59:47]MH_I2C_Read... [08:59:47]Read from MH i2c: 01 [08:59:47]MH_I2C_Read... [08:59:47]Read from MH i2c: 01 07 00 [08:59:47]MH_I2C_Read... [08:59:47]Read from MH i2c: 01 07 00 C3 66 00 00 00 00 00 C6 0C 02 [08:59:47]RasterBufferAndPrint [08:59:47]line [08:59:47]line [08:59:47]line [08:59:47]line [08:59:47]line [08:59:47]written 0, free lines is 3276 [08:59:47]MH_Cut [08:59:47]Write to MH i2c: D1 01 00 CA 66 01 02 [08:59:47]Write i2c OK [08:59:47]MH_I2C_Read... [08:59:47]Read from MH i2c: D1 [08:59:47]MH_I2C_Read... [08:59:47]Read from MH i2c: D1 01 00 [08:59:47]MH_I2C_Read... [08:59:47]Read from MH i2c: D1 01 00 CA 66 00 01 [08:59:47]Write to MH i2c: 01 00 00 CB 66 31 [08:59:47]Write i2c OK [08:59:47]MH_I2C_Read... [08:59:48]OFD Sender: No OFD packet to send [08:59:48]*** Cut start [08:59:48]*** Partial cut [08:59:48]*** CUTSNS_PIN = 1 [08:59:48]*** CUTSNS_PIN = 0 [08:59:49]*** Brake cut motor [08:59:49]Read from MH i2c: 01 [08:59:49]MH_I2C_Read... [08:59:49]*** Stop cut motor [08:59:49]*** Cut end [08:59:49]Read from MH i2c: 01 07 00 [08:59:49]MH_I2C_Read... [08:59:49]Read from MH i2c: 01 07 00 CB 66 00 00 00 00 00 FF 0F 46 [08:59:49]process_action close_receipt done [08:59:49]requested_data is exist [08:59:49]produce_requested_data [08:59:49]requested_item fm.sn is exist - process it [08:59:49]wFMCommunicate request_size=4 [08:59:49]MH_SAM_APDU [08:59:49]CAPDU: 80 11 00 00 [08:59:49]Write to MH i2c: E2 08 00 CC 66 80 11 00 00 00 00 00 00 AC [08:59:49]Write i2c OK [08:59:49]MH_I2C_Read... [08:59:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:59:49]Read from MH i2c: E2 [08:59:49]MH_I2C_Read... [08:59:49]Read from MH i2c: E2 17 00 [08:59:49]MH_I2C_Read... [08:59:49]Read from MH i2c: E2 17 00 CC 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 FB [08:59:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:59:49]wFMCommunicate OK [08:59:49]requested_item fd.num is exist - process it [08:59:49]SAM_PROTO_GetFieldsCounters [08:59:49]wFMCommunicate request_size=4 [08:59:49]MH_SAM_APDU [08:59:49]CAPDU: 80 13 00 00 [08:59:49]Write to MH i2c: E2 08 00 CD 66 80 13 00 00 00 00 00 00 AF [08:59:49]Write i2c OK [08:59:49]MH_I2C_Read... [08:59:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:59:49]Read from MH i2c: E2 [08:59:49]MH_I2C_Read... [08:59:49]Read from MH i2c: E2 62 00 [08:59:49]MH_I2C_Read... [08:59:49]Read from MH i2c: E2 62 00 CD 66 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 BB 6F 00 00 0E 04 04 00 71 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 24 [08:59:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 BB 6F 00 00 0E 04 04 00 71 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 [08:59:49]wFMCommunicate OK [08:59:49]SAM_PROTO_GetFieldsCounters done [08:59:49]requested_item shift.num is exist - process it [08:59:49]requested_item shift.opened is exist - process it [08:59:49]req_shift_opened [08:59:49]FM_GetShiftState [08:59:49]SAM_PROTO_GetShiftState [08:59:49]wFMCommunicate request_size=4 [08:59:49]MH_SAM_APDU [08:59:49]CAPDU: 80 13 01 00 [08:59:49]Write to MH i2c: E2 08 00 CE 66 80 13 01 00 00 00 00 00 B1 [08:59:49]Write i2c OK [08:59:49]MH_I2C_Read... [08:59:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:59:49]Read from MH i2c: E2 [08:59:49]MH_I2C_Read... [08:59:49]Read from MH i2c: E2 0E 00 [08:59:49]MH_I2C_Read... [08:59:49]Read from MH i2c: E2 0E 00 CE 66 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 C2 [08:59:49]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [08:59:49]wFMCommunicate OK [08:59:49]SAM_PROTO_GetShiftState done [08:59:49]FM_GetShiftState done [08:59:49]req_shift_opened done [08:59:49]requested_item shift.open_date is exist - process it [08:59:49]req_shift_open_date [08:59:49]req_shift_open_date done [08:59:49]produce_requested_data done [08:59:49]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28603,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [08:59:49]process_action_free close_receipt [08:59:49]json_value_free [08:59:49]json_value_free done [08:59:49]process_json_proto returns [08:59:49]Send response to host [08:59:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28603,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [08:59:49]free response buf [08:59:49]execute_script done [08:59:49]execute_script returns [08:59:49]free content buf [08:59:49]Sock 7.Close socket [08:59:49]Sock 7.Thread stoped [08:59:53]OFD Sender: No OFD packet to send [08:59:58]OFD Sender: No OFD packet to send [09:00:03]OFD Sender: No OFD packet to send [09:00:08]OFD Sender: No OFD packet to send [09:00:13]OFD Sender: No OFD packet to send [09:00:18]OFD Sender: No OFD packet to send [09:00:23]OFD Sender: No OFD packet to send [09:00:28]OFD Sender: No OFD packet to send [09:00:33]OFD Sender: No OFD packet to send [09:00:38]OFD Sender: No OFD packet to send [09:00:43]OFD Sender: No OFD packet to send [09:00:48]OFD Sender: No OFD packet to send [09:00:53]OFD Sender: No OFD packet to send [09:00:58]OFD Sender: No OFD packet to send [09:01:03]OFD Sender: No OFD packet to send [09:01:08]OFD Sender: No OFD packet to send [09:01:13]OFD Sender: No OFD packet to send [09:01:18]OFD Sender: No OFD packet to send [09:01:23]OFD Sender: No OFD packet to send [09:01:28]OFD Sender: No OFD packet to send [09:01:33]OFD Sender: No OFD packet to send [09:01:38]OFD Sender: No OFD packet to send [09:01:43]OFD Sender: No OFD packet to send [09:01:48]OFD Sender: No OFD packet to send [09:01:53]OFD Sender: No OFD packet to send [09:01:58]OFD Sender: No OFD packet to send [09:02:03]OFD Sender: No OFD packet to send [09:02:08]OFD Sender: No OFD packet to send [09:02:13]OFD Sender: No OFD packet to send [09:02:18]OFD Sender: No OFD packet to send [09:02:23]OFD Sender: No OFD packet to send [09:02:28]OFD Sender: No OFD packet to send [09:02:33]OFD Sender: No OFD packet to send [09:02:38]OFD Sender: No OFD packet to send [09:02:43]OFD Sender: No OFD packet to send [09:02:48]OFD Sender: No OFD packet to send [09:02:53]OFD Sender: No OFD packet to send [09:02:58]OFD Sender: No OFD packet to send [09:03:03]OFD Sender: No OFD packet to send [09:03:08]OFD Sender: No OFD packet to send [09:03:13]OFD Sender: No OFD packet to send [09:03:18]OFD Sender: No OFD packet to send [09:03:23]OFD Sender: No OFD packet to send [09:03:28]OFD Sender: No OFD packet to send [09:03:33]OFD Sender: No OFD packet to send [09:03:38]OFD Sender: No OFD packet to send [09:03:43]OFD Sender: No OFD packet to send [09:03:48]OFD Sender: No OFD packet to send [09:03:53]OFD Sender: No OFD packet to send [09:03:58]OFD Sender: No OFD packet to send [09:04:03]OFD Sender: No OFD packet to send [09:04:07]accept exits with 9 [09:04:07]New connection [09:04:07]New thread 3066641764 created [09:04:07]Thread 3066498404 joined [09:04:07]Waiting for new connection... [09:04:07] Sock 9.Parse request [09:04:07]Sock 9.Check first char [09:04:07]Sock 9.First char is OK [09:04:07]request: POST /json_proto HTTP/1.0 [09:04:07]Method: POST [09:04:07]URL: /json_proto [09:04:07]Method is POST - this is cgi request [09:04:07]url: /json_proto [09:04:07]query_string will be loaded in cgi processing [09:04:07]execute_cgi json_proto POST (null) [09:04:07]execute_cgi path=json_proto method=POST [09:04:07]POST find Content-Length [09:04:07]Host: 172.17.33.3:8080 [09:04:07]Content-Length: 1240 [09:04:07]Content-Type: application/json [09:04:07] [09:04:07]POST finish read [09:04:07]Found Content-Length = 1240 [09:04:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)346918\u000A12.04.2024 08:46\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 51\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 60.000 x 72.40\u000A\u0418\u0422\u041E\u0413: 4344.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3699519;3699518;3699517;3699516;3699515;3699514\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:04:07]execute_script... [09:04:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)346918\u000A12.04.2024 08:46\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 51\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 60.000 x 72.40\u000A\u0418\u0422\u041E\u0413: 4344.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3699519;3699518;3699517;3699516;3699515;3699514\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:04:07]POST & json_proto [09:04:07]process_json_proto [09:04:07]json parsed OK: [09:04:07]protocol is kg_v1.0 [09:04:07]action value=print_text [09:04:07]process_action print_text [09:04:07]cmd_print_text [09:04:07]ExternCall_PrintAddStr [09:04:07]wPrintStart [09:04:07]Write to MH i2c: 01 00 00 CF 66 35 [09:04:07]Write i2c OK [09:04:07]MH_I2C_Read... [09:04:07]Read from MH i2c: 01 [09:04:07]MH_I2C_Read... [09:04:07]Read from MH i2c: 01 07 00 [09:04:07]MH_I2C_Read... [09:04:07]Read from MH i2c: 01 07 00 CF 66 00 00 00 00 00 FF 0F 4A [09:04:07]RasterBufferAndPrint [09:04:07]line *****ТОВАРНЫЙ ЧЕК***** [09:04:07]line АЗС 108 [09:04:07]line Партнер нефть [09:04:07]line 02508201610067 [09:04:07]line Кассир : Джумагулова Н. [09:04:07]line Счет N : (1)346918 [09:04:07]line 12.04.2024 08:46 [09:04:07]line ПРОДАЖА [09:04:07]line ТРК (МРК, ГНК): 51 [09:04:07]line Вид ГСМ : 2710194210 [09:04:07]line ДТ-К-5 [09:04:07]line 60.000 x 72.40 [09:04:07]line ИТОГ: 4344.00 [09:04:07]line Тип оплаты: Талоны: Партнер нефть [09:04:07]line 3699519;3699518;3699517;3699516;3699515;3699514 [09:04:07]line ______________________ [09:04:07]line (подпись) [09:04:07]written 0, free lines is 4095 [09:04:07]Write to MH i2c: 01 00 00 E5 66 4B [09:04:07]Write i2c OK [09:04:07]MH_I2C_Read... [09:04:07]Read from MH i2c: 01 [09:04:07]MH_I2C_Read... [09:04:07]Read from MH i2c: 01 07 00 [09:04:07]MH_I2C_Read... [09:04:07]Read from MH i2c: 01 07 00 E5 66 00 00 00 00 00 F8 0D 57 [09:04:07]RasterBufferAndPrint [09:04:07]line [09:04:07]line [09:04:07]line [09:04:07]line [09:04:07]line [09:04:07]written 0, free lines is 3580 [09:04:07]MH_Cut [09:04:07]Write to MH i2c: D1 01 00 EC 66 01 24 [09:04:07]Write i2c OK [09:04:07]MH_I2C_Read... [09:04:07]Read from MH i2c: D1 [09:04:07]MH_I2C_Read... [09:04:07]Read from MH i2c: D1 01 00 [09:04:07]MH_I2C_Read... [09:04:07]Read from MH i2c: D1 01 00 EC 66 00 23 [09:04:07]Write to MH i2c: 01 00 00 ED 66 53 [09:04:07]Write i2c OK [09:04:07]MH_I2C_Read... [09:04:08]*** Cut start [09:04:08]*** Partial cut [09:04:08]*** CUTSNS_PIN = 1 [09:04:08]*** CUTSNS_PIN = 0 [09:04:08]OFD Sender: No OFD packet to send [09:04:08]*** Brake cut motor [09:04:08]Read from MH i2c: 01 [09:04:08]MH_I2C_Read... [09:04:08]Read from MH i2c: 01 07 00 [09:04:08]MH_I2C_Read... [09:04:08]*** Stop cut motor [09:04:08]*** Cut end [09:04:08]Read from MH i2c: 01 07 00 ED 66 00 00 00 00 00 FF 0F 68 [09:04:08]process_action print_text done [09:04:08]requested_data is exist [09:04:08]produce_requested_data [09:04:08]requested_item fm.sn is exist - process it [09:04:08]wFMCommunicate request_size=4 [09:04:08]MH_SAM_APDU [09:04:08]CAPDU: 80 11 00 00 [09:04:08]Write to MH i2c: E2 08 00 EE 66 80 11 00 00 00 00 00 00 CE [09:04:08]Write i2c OK [09:04:08]MH_I2C_Read... [09:04:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:04:08]Read from MH i2c: E2 [09:04:08]MH_I2C_Read... [09:04:08]Read from MH i2c: E2 17 00 [09:04:08]MH_I2C_Read... [09:04:08]Read from MH i2c: E2 17 00 EE 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 1D [09:04:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:04:08]wFMCommunicate OK [09:04:08]requested_item fd.num is exist - process it [09:04:08]SAM_PROTO_GetFieldsCounters [09:04:08]wFMCommunicate request_size=4 [09:04:08]MH_SAM_APDU [09:04:08]CAPDU: 80 13 00 00 [09:04:08]Write to MH i2c: E2 08 00 EF 66 80 13 00 00 00 00 00 00 D1 [09:04:08]Write i2c OK [09:04:08]MH_I2C_Read... [09:04:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:04:09]Read from MH i2c: E2 [09:04:09]MH_I2C_Read... [09:04:09]Read from MH i2c: E2 62 00 [09:04:09]MH_I2C_Read... [09:04:09]Read from MH i2c: E2 62 00 EF 66 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 BB 6F 00 00 0E 04 04 00 71 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 46 [09:04:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 BB 6F 00 00 0E 04 04 00 71 00 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:04:09]wFMCommunicate OK [09:04:09]SAM_PROTO_GetFieldsCounters done [09:04:09]requested_item shift.num is exist - process it [09:04:09]requested_item shift.opened is exist - process it [09:04:09]req_shift_opened [09:04:09]FM_GetShiftState [09:04:09]SAM_PROTO_GetShiftState [09:04:09]wFMCommunicate request_size=4 [09:04:09]MH_SAM_APDU [09:04:09]CAPDU: 80 13 01 00 [09:04:09]Write to MH i2c: E2 08 00 F0 66 80 13 01 00 00 00 00 00 D3 [09:04:09]Write i2c OK [09:04:09]MH_I2C_Read... [09:04:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:04:09]Read from MH i2c: E2 [09:04:09]MH_I2C_Read... [09:04:09]Read from MH i2c: E2 0E 00 [09:04:09]MH_I2C_Read... [09:04:09]Read from MH i2c: E2 0E 00 F0 66 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 E4 [09:04:09]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [09:04:09]wFMCommunicate OK [09:04:09]SAM_PROTO_GetShiftState done [09:04:09]FM_GetShiftState done [09:04:09]req_shift_opened done [09:04:09]requested_item shift.open_date is exist - process it [09:04:09]req_shift_open_date [09:04:09]req_shift_open_date done [09:04:09]produce_requested_data done [09:04:09]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28603,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [09:04:09]process_action_free print_text [09:04:09]json_value_free [09:04:09]json_value_free done [09:04:09]process_json_proto returns [09:04:09]Send response to host [09:04:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28603,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [09:04:09]free response buf [09:04:09]execute_script done [09:04:09]execute_script returns [09:04:09]free content buf [09:04:09]Sock 9.Close socket [09:04:09]Sock 9.Thread stoped [09:04:13]OFD Sender: No OFD packet to send [09:04:18]OFD Sender: No OFD packet to send [09:04:23]OFD Sender: No OFD packet to send [09:04:28]OFD Sender: No OFD packet to send [09:04:33]OFD Sender: No OFD packet to send [09:04:38]OFD Sender: No OFD packet to send [09:04:43]OFD Sender: No OFD packet to send [09:04:48]OFD Sender: No OFD packet to send [09:04:53]OFD Sender: No OFD packet to send [09:04:58]OFD Sender: No OFD packet to send [09:04:59]accept exits with 7 [09:04:59]New connection [09:04:59]New thread 3066498404 created [09:04:59]Thread 3066641764 joined [09:04:59]Waiting for new connection... [09:04:59] Sock 7.Parse request [09:04:59]Sock 7.Check first char [09:04:59]Sock 7.First char is OK [09:04:59]request: POST /json_proto HTTP/1.0 [09:04:59]Method: POST [09:04:59]URL: /json_proto [09:04:59]Method is POST - this is cgi request [09:04:59]url: /json_proto [09:04:59]query_string will be loaded in cgi processing [09:04:59]execute_cgi json_proto POST (null) [09:04:59]execute_cgi path=json_proto method=POST [09:04:59]POST find Content-Length [09:04:59]Host: 172.17.33.3:8080 [09:04:59]Content-Length: 670 [09:04:59]Content-Type: application/json [09:04:59] [09:04:59]POST finish read [09:04:59]Found Content-Length = 670 [09:04:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346919", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 7.660, "sum" : 500.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:04:59]execute_script... [09: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)346919", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 7.660, "sum" : 500.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:04:59]POST & json_proto [09:04:59]process_json_proto [09:04:59]json parsed OK: [09:04:59]protocol is kg_v1.0 [09:04:59]action value=close_receipt [09:04:59]process_action close_receipt [09:04:59]cmd_close_receipt [09:04:59]MH_GetDate [09:04:59]Write to MH i2c: F0 00 00 F1 66 46 [09:04:59]Write i2c OK [09:04:59]MH_I2C_Read... [09:04:59]Read from MH i2c: F0 [09:04:59]MH_I2C_Read... [09:04:59]Read from MH i2c: F0 09 00 [09:04:59]MH_I2C_Read... [09:04:59]Read from MH i2c: F0 09 00 F1 66 00 42 F9 18 66 23 5B 8F 65 7A [09:04:59]GetLastDocTimeStamp 1712912392 [09:04:59]current date 1712912706 [09:04:59]FM_GetShiftState [09:04:59]SAM_PROTO_GetShiftState [09:04:59]wFMCommunicate request_size=4 [09:04:59]MH_SAM_APDU [09:04:59]CAPDU: 80 13 01 00 [09:04:59]Write to MH i2c: E2 08 00 F2 66 80 13 01 00 00 00 00 00 D5 [09:04:59]Write i2c OK [09:04:59]MH_I2C_Read... [09:04:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:04:59]Read from MH i2c: E2 [09:04:59]MH_I2C_Read... [09:04:59]Read from MH i2c: E2 0E 00 [09:04:59]MH_I2C_Read... [09:04:59]Read from MH i2c: E2 0E 00 F2 66 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 E6 [09:04:59]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [09:04:59]wFMCommunicate OK [09:04:59]SAM_PROTO_GetShiftState done [09:04:59]FM_GetShiftState done [09:04:59]opened in 1712881416 [09:04:59]opened+sec_in_day 1712967816 [09:04:59]quantity*price = 50019 [09:04:59]sum+1 = 50021 [09:04:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 53 12.04.2024 09:05 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28604 ФПД: 105420463309211 1/tax-web-control/client/api/v1/ticket?date=20240412T090506&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28604&fm=105420463309211&tin=02508201610067®Number=0000138879044617&sum=50000 [09:05:00]StoreToDocumentArchive [09:05:00]shift 113 fd 28604 [09:05:00]save to /storage/0113/doc_00028604 [09:05:00]save last doc name /storage/0113/doc_00028604 to /storage/kkm_last_doc_name [09:05:00]save OK [09:05:00]Clear old archive folders... [09:05:00]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:05:00]tlvbuf is 01ACCD80 [09:05:00]SAM_PROTO_ClearQueue [09:05:00]wFMCommunicate request_size=4 [09:05:00]MH_SAM_APDU [09:05:00]CAPDU: 80 09 00 00 [09:05:00]Write to MH i2c: E2 08 00 FF 66 80 09 00 00 00 00 00 00 D7 [09:05:00]Write i2c OK [09:05:00]MH_I2C_Read... [09:05:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:05:00]Read from MH i2c: E2 [09:05:00]MH_I2C_Read... [09:05:00]Read from MH i2c: E2 03 00 [09:05:00]MH_I2C_Read... [09:05:00]Read from MH i2c: E2 03 00 FF 66 00 90 00 D9 [09:05:00]RAPDU: 90 00 [09:05:00]wFMCommunicate OK [09:05:00]SAM_PROTO_ClearQueue done [09:05:00]KKMCreateOFDPacket [09:05:00]OFDProtocolAddRootSTLVToBuf [09:05:00]FM_MakeSignedData [09:05:00]FM_MakeSignedData [09:05:00]SAM_PROTO_SignData [09:05:00]wFMCommunicate request_size=4 [09:05:00]MH_SAM_APDU [09:05:00]CAPDU: 80 0D 01 02 [09:05:00]Write to MH i2c: E2 08 00 00 67 80 0D 01 02 00 00 00 00 E0 [09:05:00]Write i2c OK [09:05:00]MH_I2C_Read... [09:05:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:05:00]Read from MH i2c: E2 [09:05:00]MH_I2C_Read... [09:05:00]Read from MH i2c: E2 03 00 [09:05:00]MH_I2C_Read... [09:05:00]Read from MH i2c: E2 03 00 00 67 00 90 00 DB [09:05:00]RAPDU: 90 00 [09:05:00]wFMCommunicate OK [09:05:00]wFMCommunicate request_size=255 [09:05:00]MH_SAM_APDU [09:05:00]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 1D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 64 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 42 F9 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BC 6F 00 00 35 04 06 00 [09:05:00]Write to MH i2c: E2 02 01 01 67 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 1D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 64 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 42 F9 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BC 6F 00 00 35 04 06 00 00 00 BC [09:05:00]Write i2c OK [09:05:00]MH_I2C_Read... [09:05:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:05:00]Read from MH i2c: E2 [09:05:00]MH_I2C_Read... [09:05:00]Read from MH i2c: E2 03 00 [09:05:00]MH_I2C_Read... [09:05:00]Read from MH i2c: E2 03 00 01 67 00 90 00 DC [09:05:00]RAPDU: 90 00 [09:05:00]wFMCommunicate OK [09:05:00]wFMCommunicate request_size=11 [09:05:00]MH_SAM_APDU [09:05:00]CAPDU: 80 0D 02 02 06 5F E1 1D 44 81 9B [09:05:00]Write to MH i2c: E2 0E 00 02 67 80 0D 02 02 06 00 5F E1 1D 44 81 9B 00 00 AC [09:05:00]Write i2c OK [09:05:00]MH_I2C_Read... [09:05:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:05:00]Read from MH i2c: E2 [09:05:00]MH_I2C_Read... [09:05:00]Read from MH i2c: E2 03 00 [09:05:00]MH_I2C_Read... [09:05:00]Read from MH i2c: E2 03 00 02 67 00 90 00 DD [09:05:00]RAPDU: 90 00 [09:05:00]wFMCommunicate OK [09:05:00]wFMCommunicate request_size=4 [09:05:00]MH_SAM_APDU [09:05:00]CAPDU: 80 0D 03 02 [09:05:00]Write to MH i2c: E2 08 00 03 67 80 0D 03 02 00 00 00 00 E5 [09:05:00]Write i2c OK [09:05:00]MH_I2C_Read... [09:05:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:05:00]Read from MH i2c: E2 [09:05:00]MH_I2C_Read... [09:05:00]Read from MH i2c: E2 0B 00 [09:05:00]MH_I2C_Read... [09:05:00]Read from MH i2c: E2 0B 00 03 67 00 01 0D D3 C4 3F D4 56 81 90 00 75 [09:05:00]RAPDU: 01 0D D3 C4 3F D4 56 81 90 00 [09:05:00]wFMCommunicate OK [09:05:00]SAM_PROTO_SignData done [09:05:00]FM_MakeSignedData done [09:05:00]CreateOFDProtocolMessage [09:05:00]wFMCommunicate request_size=4 [09:05:00]MH_SAM_APDU [09:05:00]CAPDU: 80 11 00 00 [09:05:00]Write to MH i2c: E2 08 00 04 67 80 11 00 00 00 00 00 00 E5 [09:05:00]Write i2c OK [09:05:00]MH_I2C_Read... [09:05:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:05:00]Read from MH i2c: E2 [09:05:00]MH_I2C_Read... [09:05:00]Read from MH i2c: E2 17 00 [09:05:00]MH_I2C_Read... [09:05:00]Read from MH i2c: E2 17 00 04 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 34 [09:05:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:05:00]wFMCommunicate OK [09:05:00]CreateOFDProtocolMessage done [09:05:00]OFDSenderStorePacket 28604 [09:05:00]StoreOFDPacket docnum=28604 [09:05:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 A0 DA 08 01 83 C2 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 1D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 64 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 42 F9 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BC 6F 00 00 35 04 06 00 5F E1 1D 44 81 9B 01 0D D3 C4 3F D4 56 81 [09:05:00]CheckFolder [09:05:00]dirname=/storage/ofd_packets [09:05:00]CheckFolder done [09:05:00]ProducePacketName [09:05:00]name=ofd_packets/00028604 [09:05:00]NVStorageSaveData ofd_packets/00028604 [09:05:00]File name is /storage/ofd_packets/00028604 [09:05:00]Write 302 bytes [09:05:00]NVStorageSaveData done [09:05:00]OFDSenderStorePacket done [09:05:00]KKMCreateOFDPacket done [09:05:00]NVStorageSaveData kkm_last_timestamp [09:05:00]File name is /storage/kkm_last_timestamp [09:05:00]Write 4 bytes [09:05:00]NVStorageSaveData done [09:05:00]ExternCall_PrintAddStr [09:05:00]wPrintStart [09:05:00]Write to MH i2c: 01 00 00 05 67 6C [09:05:00]Write i2c OK [09:05:00]MH_I2C_Read... [09:05:00]Read from MH i2c: 01 [09:05:00]MH_I2C_Read... [09:05:00]Read from MH i2c: 01 07 00 [09:05:00]MH_I2C_Read... [09:05:00]Read from MH i2c: 01 07 00 05 67 00 00 00 00 00 FF 0F 81 [09:05:00]RasterBufferAndPrint [09:05:00]line Счет N : (1)346919 [09:05:00]line ИНН: 02508201610067 [09:05:00]line Контрольно-Кассовый Чек [09:05:00]line ПРОДАЖА [09:05:00]line ТРК (МРК, ГНК) : 41 [09:05:00]line Товар: 2710124130 [09:05:00]line SUPER-92-К-5 [09:05:00]line 7.660 * 65.30 [09:05:00]line = 500.20 [09:05:00]line НДС 12% НСП 1% [09:05:00]line > о реализуемом товаре [09:05:00]line ОКРУГЛЕНИЕ: -0.20 [09:05:00]line ИТОГО: 500.00 [09:05:00]line Внесено: 500.00 [09:05:00]line СДАЧА: 0.00 [09:05:00]line НСП 1% : 4.43 [09:05:00]line НДС 12% : 53.12 [09:05:00]line Наличными: 500.00 [09:05:00]line Безнал.: 0.00 [09:05:00]line Место: АЗС № 108 "Партнер Нефть" [09:05:00]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [09:05:00]line СНО: Общий режим [09:05:00]line Чек 53 12.04.2024 09:05 [09:05:00]line Смена: 113 ФФД: 1.0 [09:05:00]line ЗНМ: 0300000027 [09:05:00]line РНМ: 0000138879044617 [09:05:00]line Версия ККМ: 001 [09:05:00]line ФМ: 0000000000963154 [09:05:00]line ФД: 28604 [09:05:00]line ФПД: 105420463309211 [09:05:00]line 1/tax-web-control/client/api/v1/ticket?date=20240412T090506&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28604&fm=105420463309211&tin=02508201610067®Number=0000138879044617&sum=50000 [09:05:01]written 0, free lines is 4095 [09:05:01]OFD Sender: Processing packet 28604 [packets to send 8, broken 7] [09:05:01]ProducePacketName [09:05:01]name=ofd_packets/00028604 [09:05:01]OFD Sender: To server: pG, [09:05:01]CommunicateWithHost lk.salyk.kg:30040 [09:05:01]ConnectInit lk.salyk.kg [09:05:01]Connected sock=10 [09:05:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 A0 DA 08 01 83 C2 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 1D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 64 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 42 F9 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BC 6F 00 00 35 04 06 00 5F E1 1D 44 81 9B 01 0D D3 C4 3F D4 56 81 [09:05:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 39 12 47 00 FA 2B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BC 6F 00 00 F4 03 04 00 EC A3 18 66 B6 04 01 00 00 14 BC 9E 27 2E F8 0F AB [09:05:01]CommunicateWithHost err = 0 [09:05:01]CheckOFDResponse [09:05:01]1017 (14) - 77093643461234 [09:05:01]1041 (16) - 0000000000963154 [09:05:01]1040 (4) - 28604 [09:05:01]1012 (4) - 12.04.2024 03:01 [09:05:01]1206 (1) - 0 [09:05:01]OFD Sender: Remove packet 28604 [09:05:01]ProducePacketName [09:05:01]name=ofd_packets/00028604 [09:05:01]NVStorageDeleteData [09:05:01]Write to MH i2c: 01 00 00 2F 67 96 [09:05:01]Write i2c OK [09:05:01]MH_I2C_Read... [09:05:01]Read from MH i2c: 01 [09:05:01]MH_I2C_Read... [09:05:01]Read from MH i2c: 01 07 00 [09:05:01]MH_I2C_Read... [09:05:01]Read from MH i2c: 01 07 00 2F 67 00 00 00 00 00 C0 0C 69 [09:05:01]RasterBufferAndPrint [09:05:01]line [09:05:01]line [09:05:01]line [09:05:01]line [09:05:01]line [09:05:01]written 0, free lines is 3269 [09:05:01]MH_Cut [09:05:01]Write to MH i2c: D1 01 00 36 67 01 6F [09:05:01]Write i2c OK [09:05:01]MH_I2C_Read... [09:05:01]Read from MH i2c: D1 [09:05:01]MH_I2C_Read... [09:05:01]Read from MH i2c: D1 01 00 [09:05:01]MH_I2C_Read... [09:05:01]Read from MH i2c: D1 01 00 36 67 00 6E [09:05:01]Write to MH i2c: 01 00 00 37 67 9E [09:05:01]Write i2c OK [09:05:01]MH_I2C_Read... [09:05:01]OFD Sender: No OFD packet to send [09:05:02]*** Cut start [09:05:02]*** Partial cut [09:05:02]*** CUTSNS_PIN = 1 [09:05:02]*** CUTSNS_PIN = 0 [09:05:02]*** Brake cut motor [09:05:02]Read from MH i2c: 01 [09:05:02]MH_I2C_Read... [09:05:02]*** Stop cut motor [09:05:02]*** Cut end [09:05:02]Read from MH i2c: 01 07 00 [09:05:02]MH_I2C_Read... [09:05:02]Read from MH i2c: 01 07 00 37 67 00 00 00 00 00 FF 0F B3 [09:05:02]process_action close_receipt done [09:05:02]requested_data is exist [09:05:02]produce_requested_data [09:05:02]requested_item fm.sn is exist - process it [09:05:02]wFMCommunicate request_size=4 [09:05:02]MH_SAM_APDU [09:05:02]CAPDU: 80 11 00 00 [09:05:02]Write to MH i2c: E2 08 00 38 67 80 11 00 00 00 00 00 00 19 [09:05:02]Write i2c OK [09:05:02]MH_I2C_Read... [09:05:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:05:03]Read from MH i2c: E2 [09:05:03]MH_I2C_Read... [09:05:03]Read from MH i2c: E2 17 00 [09:05:03]MH_I2C_Read... [09:05:03]Read from MH i2c: E2 17 00 38 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 68 [09:05:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:05:03]wFMCommunicate OK [09:05:03]requested_item fd.num is exist - process it [09:05:03]SAM_PROTO_GetFieldsCounters [09:05:03]wFMCommunicate request_size=4 [09:05:03]MH_SAM_APDU [09:05:03]CAPDU: 80 13 00 00 [09:05:03]Write to MH i2c: E2 08 00 39 67 80 13 00 00 00 00 00 00 1C [09:05:03]Write i2c OK [09:05:03]MH_I2C_Read... [09:05:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:05:03]Read from MH i2c: E2 [09:05:03]MH_I2C_Read... [09:05:03]Read from MH i2c: E2 62 00 [09:05:03]MH_I2C_Read... [09:05:03]Read from MH i2c: E2 62 00 39 67 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 BC 6F 00 00 0E 04 04 00 71 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 95 [09:05:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 BC 6F 00 00 0E 04 04 00 71 00 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:05:03]wFMCommunicate OK [09:05:03]SAM_PROTO_GetFieldsCounters done [09:05:03]requested_item shift.num is exist - process it [09:05:03]requested_item shift.opened is exist - process it [09:05:03]req_shift_opened [09:05:03]FM_GetShiftState [09:05:03]SAM_PROTO_GetShiftState [09:05:03]wFMCommunicate request_size=4 [09:05:03]MH_SAM_APDU [09:05:03]CAPDU: 80 13 01 00 [09:05:03]Write to MH i2c: E2 08 00 3A 67 80 13 01 00 00 00 00 00 1E [09:05:03]Write i2c OK [09:05:03]MH_I2C_Read... [09:05:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:05:03]Read from MH i2c: E2 [09:05:03]MH_I2C_Read... [09:05:03]Read from MH i2c: E2 0E 00 [09:05:03]MH_I2C_Read... [09:05:03]Read from MH i2c: E2 0E 00 3A 67 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 2F [09:05:03]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [09:05:03]wFMCommunicate OK [09:05:03]SAM_PROTO_GetShiftState done [09:05:03]FM_GetShiftState done [09:05:03]req_shift_opened done [09:05:03]requested_item shift.open_date is exist - process it [09:05:03]req_shift_open_date [09:05:03]req_shift_open_date done [09:05:03]produce_requested_data done [09:05:03]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28604,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [09:05:03]process_action_free close_receipt [09:05:03]json_value_free [09:05:03]json_value_free done [09:05:03]process_json_proto returns [09:05:03]Send response to host [09:05:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28604,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [09:05:03]free response buf [09:05:03]execute_script done [09:05:03]execute_script returns [09:05:03]free content buf [09:05:03]Sock 7.Close socket [09:05:03]Sock 7.Thread stoped [09:05:06]OFD Sender: No OFD packet to send [09:05:11]OFD Sender: No OFD packet to send [09:05:16]OFD Sender: No OFD packet to send [09:05:21]OFD Sender: No OFD packet to send [09:05:26]OFD Sender: No OFD packet to send [09:05:31]OFD Sender: No OFD packet to send [09:05:36]OFD Sender: No OFD packet to send [09:05:41]OFD Sender: No OFD packet to send [09:05:46]OFD Sender: No OFD packet to send [09:05:51]OFD Sender: No OFD packet to send [09:05:56]OFD Sender: No OFD packet to send [09:06:01]OFD Sender: No OFD packet to send [09:06:06]OFD Sender: No OFD packet to send [09:06:11]OFD Sender: No OFD packet to send [09:06:16]OFD Sender: No OFD packet to send [09:06:21]OFD Sender: No OFD packet to send [09:06:26]OFD Sender: No OFD packet to send [09:06:31]OFD Sender: No OFD packet to send [09:06:36]OFD Sender: No OFD packet to send [09:06:41]OFD Sender: No OFD packet to send [09:06:46]OFD Sender: No OFD packet to send [09:06:51]OFD Sender: No OFD packet to send [09:06:56]OFD Sender: No OFD packet to send [09:07:01]OFD Sender: No OFD packet to send [09:07:06]OFD Sender: No OFD packet to send [09:07:11]OFD Sender: No OFD packet to send [09:07:16]OFD Sender: No OFD packet to send [09:07:21]OFD Sender: No OFD packet to send [09:07:22]int [09:07:22]Write to MH i2c: 01 00 00 3B 67 A2 [09:07:22]*** FLAG_PRN_KEY set [09:07:22]Write i2c OK [09:07:22]MH_I2C_Read... [09:07:22]Read from MH i2c: 01 [09:07:22]MH_I2C_Read... [09:07:22]Read from MH i2c: 01 07 00 [09:07:22]MH_I2C_Read... [09:07:22]Read from MH i2c: 01 07 00 3B 67 00 08 00 00 00 FF 0F BF [09:07:22]state=0 [09:07:22]Key pressed [09:07:22]Feed [09:07:22]Write to MH i2c: D8 00 00 3C 67 7A [09:07:22]Write i2c OK [09:07:22]MH_I2C_Read... [09:07:22]Read from MH i2c: D8 [09:07:22]MH_I2C_Read... [09:07:22]Read from MH i2c: D8 01 00 [09:07:22]MH_I2C_Read... [09:07:22]Read from MH i2c: D8 01 00 3C 67 00 7B [09:07:22]int [09:07:22]Write to MH i2c: 01 00 00 3D 67 A4 [09:07:22]Write i2c OK [09:07:22]MH_I2C_Read... [09:07:22]Read from MH i2c: 01 [09:07:22]MH_I2C_Read... [09:07:22]Read from MH i2c: 01 07 00 [09:07:22]MH_I2C_Read... [09:07:22]Read from MH i2c: 01 07 00 3D 67 00 48 00 00 00 3C 00 2F [09:07:22]state=2 [09:07:22]Key pressed [09:07:23]int [09:07:23]Write to MH i2c: 01 00 00 3E 67 A5 [09:07:23]*** FLAG_PRN_KEY reset [09:07:23]Write i2c OK [09:07:23]MH_I2C_Read... [09:07:23]Read from MH i2c: 01 [09:07:23]MH_I2C_Read... [09:07:23]Read from MH i2c: 01 07 00 [09:07:23]MH_I2C_Read... [09:07:23]Read from MH i2c: 01 07 00 3E 67 00 00 00 00 00 F6 0F B1 [09:07:23]state=2 [09:07:23]Stop feed [09:07:23]int [09:07:23]Write to MH i2c: 01 00 00 3F 67 A6 [09:07:23]*** FLAG_PRN_KEY set [09:07:23]Write i2c OK [09:07:23]MH_I2C_Read... [09:07:23]Read from MH i2c: 01 [09:07:23]MH_I2C_Read... [09:07:23]Read from MH i2c: 01 07 00 [09:07:23]MH_I2C_Read... [09:07:23]Read from MH i2c: 01 07 00 3F 67 00 08 00 00 00 FF 0F C3 [09:07:23]state=0 [09:07:23]Key pressed [09:07:23]Feed [09:07:23]Write to MH i2c: D8 00 00 40 67 7E [09:07:23]Write i2c OK [09:07:23]MH_I2C_Read... [09:07:23]Read from MH i2c: D8 [09:07:23]MH_I2C_Read... [09:07:23]Read from MH i2c: D8 01 00 [09:07:23]MH_I2C_Read... [09:07:23]Read from MH i2c: D8 01 00 40 67 00 7F [09:07:23]int [09:07:23]Write to MH i2c: 01 00 00 41 67 A8 [09:07:23]Write i2c OK [09:07:23]MH_I2C_Read... [09:07:23]Read from MH i2c: 01 [09:07:23]MH_I2C_Read... [09:07:23]Read from MH i2c: 01 07 00 [09:07:23]MH_I2C_Read... [09:07:23]Read from MH i2c: 01 07 00 41 67 00 48 00 00 00 3C 00 33 [09:07:23]state=2 [09:07:23]Key pressed [09:07:23]int [09:07:23]Write to MH i2c: 01 00 00 42 67 A9 [09:07:23]*** FLAG_PRN_KEY reset [09:07:23]Write i2c OK [09:07:23]MH_I2C_Read... [09:07:23]Read from MH i2c: 01 [09:07:23]MH_I2C_Read... [09:07:23]Read from MH i2c: 01 07 00 [09:07:23]MH_I2C_Read... [09:07:23]Read from MH i2c: 01 07 00 42 67 00 00 00 00 00 F6 0F B5 [09:07:23]state=2 [09:07:23]Stop feed [09:07:23]int [09:07:23]Write to MH i2c: 01 00 00 43 67 AA [09:07:23]*** FLAG_PRN_KEY set [09:07:23]Write i2c OK [09:07:23]MH_I2C_Read... [09:07:23]Read from MH i2c: 01 [09:07:23]MH_I2C_Read... [09:07:23]Read from MH i2c: 01 07 00 [09:07:23]MH_I2C_Read... [09:07:23]Read from MH i2c: 01 07 00 43 67 00 08 00 00 00 FF 0F C7 [09:07:23]state=0 [09:07:23]Key pressed [09:07:23]Feed [09:07:23]Write to MH i2c: D8 00 00 44 67 82 [09:07:23]Write i2c OK [09:07:23]MH_I2C_Read... [09:07:23]Read from MH i2c: D8 [09:07:23]MH_I2C_Read... [09:07:23]Read from MH i2c: D8 01 00 [09:07:23]MH_I2C_Read... [09:07:23]Read from MH i2c: D8 01 00 44 67 00 83 [09:07:23]int [09:07:23]Write to MH i2c: 01 00 00 45 67 AC [09:07:23]Write i2c OK [09:07:23]MH_I2C_Read... [09:07:23]Read from MH i2c: 01 [09:07:23]MH_I2C_Read... [09:07:23]Read from MH i2c: 01 07 00 [09:07:23]MH_I2C_Read... [09:07:23]Read from MH i2c: 01 07 00 45 67 00 48 00 00 00 3C 00 37 [09:07:23]state=2 [09:07:23]Key pressed [09:07:23]int [09:07:23]Write to MH i2c: 01 00 00 46 67 AD [09:07:23]*** FLAG_PRN_KEY reset [09:07:23]Write i2c OK [09:07:23]MH_I2C_Read... [09:07:23]Read from MH i2c: 01 [09:07:23]MH_I2C_Read... [09:07:23]Read from MH i2c: 01 07 00 [09:07:23]MH_I2C_Read... [09:07:23]Read from MH i2c: 01 07 00 46 67 00 00 00 00 00 F6 0F B9 [09:07:23]state=2 [09:07:23]Stop feed [09:07:26]OFD Sender: No OFD packet to send [09:07:31]OFD Sender: No OFD packet to send [09:07:36]OFD Sender: No OFD packet to send [09:07:41]OFD Sender: No OFD packet to send [09:07:46]OFD Sender: No OFD packet to send [09:07:51]OFD Sender: No OFD packet to send [09:07:54]accept exits with 9 [09:07:54]New connection [09:07:54]New thread 3066641764 created [09:07:54]Thread 3066498404 joined [09:07:54]Waiting for new connection... [09:07:54] Sock 9.Parse request [09:07:54]Sock 9.Check first char [09:07:54]Sock 9.First char is OK [09:07:54]request: POST /json_proto HTTP/1.0 [09:07:54]Method: POST [09:07:54]URL: /json_proto [09:07:54]Method is POST - this is cgi request [09:07:54]url: /json_proto [09:07:54]query_string will be loaded in cgi processing [09:07:54]execute_cgi json_proto POST (null) [09:07:54]execute_cgi path=json_proto method=POST [09:07:54]POST find Content-Length [09:07:54]Host: 172.17.33.3:8080 [09:07:54]Content-Length: 1212 [09:07:54]Content-Type: application/json [09:07:54] [09:07:54]POST finish read [09:07:54]Found Content-Length = 1212 [09:07:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)346920\u000A12.04.2024 08:49\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 64.30\u000A\u0418\u0422\u041E\u0413: 643.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A74635\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:07:54]execute_script... [09:07:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)346920\u000A12.04.2024 08:49\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 64.30\u000A\u0418\u0422\u041E\u0413: 643.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A74635\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:07:54]POST & json_proto [09:07:54]process_json_proto [09:07:54]json parsed OK: [09:07:54]protocol is kg_v1.0 [09:07:54]action value=print_text [09:07:54]process_action print_text [09:07:54]cmd_print_text [09:07:54]ExternCall_PrintAddStr [09:07:54]wPrintStart [09:07:54]Write to MH i2c: 01 00 00 47 67 AE [09:07:54]Write i2c OK [09:07:54]MH_I2C_Read... [09:07:54]Read from MH i2c: 01 [09:07:54]MH_I2C_Read... [09:07:54]Read from MH i2c: 01 07 00 [09:07:54]MH_I2C_Read... [09:07:54]Read from MH i2c: 01 07 00 47 67 00 00 00 00 00 FF 0F C3 [09:07:54]RasterBufferAndPrint [09:07:54]line *****ТОВАРНЫЙ ЧЕК***** [09:07:54]line АЗС 108 [09:07:54]line Партнер нефть [09:07:54]line 02508201610067 [09:07:54]line Кассир : Джумагулова Н. [09:07:54]line Счет N : (1)346920 [09:07:54]line 12.04.2024 08:49 [09:07:54]line ПРОДАЖА [09:07:54]line ТРК (МРК, ГНК): 32 [09:07:54]line Вид ГСМ : 2710124130 [09:07:54]line Аи-92-К-5 [09:07:54]line 10.000 x 64.30 [09:07:54]line ИТОГ: 643.00 [09:07:54]line Тип оплаты: Талоны: Топливная Карта [09:07:54]line 74635 [09:07:54]line ______________________ [09:07:54]line (подпись) [09:07:54]written 0, free lines is 4095 [09:07:54]Write to MH i2c: 01 00 00 5C 67 C3 [09:07:54]Write i2c OK [09:07:54]MH_I2C_Read... [09:07:54]Read from MH i2c: 01 [09:07:54]MH_I2C_Read... [09:07:54]Read from MH i2c: 01 07 00 [09:07:54]MH_I2C_Read... [09:07:54]Read from MH i2c: 01 07 00 5C 67 00 00 00 00 00 F9 0D D0 [09:07:54]RasterBufferAndPrint [09:07:54]line [09:07:54]line [09:07:54]line [09:07:54]line [09:07:54]line [09:07:54]written 0, free lines is 3579 [09:07:54]MH_Cut [09:07:54]Write to MH i2c: D1 01 00 63 67 01 9C [09:07:54]Write i2c OK [09:07:54]MH_I2C_Read... [09:07:54]Read from MH i2c: D1 [09:07:54]MH_I2C_Read... [09:07:54]Read from MH i2c: D1 01 00 [09:07:54]MH_I2C_Read... [09:07:54]Read from MH i2c: D1 01 00 63 67 00 9B [09:07:54]Write to MH i2c: 01 00 00 64 67 CB [09:07:54]Write i2c OK [09:07:54]MH_I2C_Read... [09:07:55]*** Cut start [09:07:55]*** Partial cut [09:07:55]*** CUTSNS_PIN = 1 [09:07:55]*** CUTSNS_PIN = 0 [09:07:55]*** Brake cut motor [09:07:55]Read from MH i2c: 01 [09:07:55]MH_I2C_Read... [09:07:55]*** Stop cut motor [09:07:55]*** Cut end [09:07:55]Read from MH i2c: 01 07 00 [09:07:55]MH_I2C_Read... [09:07:55]Read from MH i2c: 01 07 00 64 67 00 00 00 00 00 FF 0F E0 [09:07:55]process_action print_text done [09:07:55]requested_data is exist [09:07:55]produce_requested_data [09:07:55]requested_item fm.sn is exist - process it [09:07:55]wFMCommunicate request_size=4 [09:07:55]MH_SAM_APDU [09:07:55]CAPDU: 80 11 00 00 [09:07:55]Write to MH i2c: E2 08 00 65 67 80 11 00 00 00 00 00 00 46 [09:07:55]Write i2c OK [09:07:55]MH_I2C_Read... [09:07:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:07:56]Read from MH i2c: E2 [09:07:56]MH_I2C_Read... [09:07:56]Read from MH i2c: E2 17 00 [09:07:56]MH_I2C_Read... [09:07:56]Read from MH i2c: E2 17 00 65 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 95 [09:07:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:07:56]wFMCommunicate OK [09:07:56]requested_item fd.num is exist - process it [09:07:56]SAM_PROTO_GetFieldsCounters [09:07:56]wFMCommunicate request_size=4 [09:07:56]MH_SAM_APDU [09:07:56]CAPDU: 80 13 00 00 [09:07:56]Write to MH i2c: E2 08 00 66 67 80 13 00 00 00 00 00 00 49 [09:07:56]Write i2c OK [09:07:56]MH_I2C_Read... [09:07:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:07:56]Read from MH i2c: E2 [09:07:56]MH_I2C_Read... [09:07:56]Read from MH i2c: E2 62 00 [09:07:56]MH_I2C_Read... [09:07:56]Read from MH i2c: E2 62 00 66 67 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 BC 6F 00 00 0E 04 04 00 71 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 C2 [09:07:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 BC 6F 00 00 0E 04 04 00 71 00 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:07:56]wFMCommunicate OK [09:07:56]SAM_PROTO_GetFieldsCounters done [09:07:56]requested_item shift.num is exist - process it [09:07:56]requested_item shift.opened is exist - process it [09:07:56]req_shift_opened [09:07:56]FM_GetShiftState [09:07:56]SAM_PROTO_GetShiftState [09:07:56]wFMCommunicate request_size=4 [09:07:56]MH_SAM_APDU [09:07:56]CAPDU: 80 13 01 00 [09:07:56]Write to MH i2c: E2 08 00 67 67 80 13 01 00 00 00 00 00 4B [09:07:56]Write i2c OK [09:07:56]MH_I2C_Read... [09:07:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:07:56]Read from MH i2c: E2 [09:07:56]MH_I2C_Read... [09:07:56]Read from MH i2c: E2 0E 00 [09:07:56]MH_I2C_Read... [09:07:56]Read from MH i2c: E2 0E 00 67 67 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 5C [09:07:56]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [09:07:56]wFMCommunicate OK [09:07:56]SAM_PROTO_GetShiftState done [09:07:56]FM_GetShiftState done [09:07:56]req_shift_opened done [09:07:56]requested_item shift.open_date is exist - process it [09:07:56]req_shift_open_date [09:07:56]req_shift_open_date done [09:07:56]produce_requested_data done [09:07:56]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28604,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [09:07:56]process_action_free print_text [09:07:56]json_value_free [09:07:56]json_value_free done [09:07:56]process_json_proto returns [09:07:56]Send response to host [09:07:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28604,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [09:07:56]free response buf [09:07:56]execute_script done [09:07:56]execute_script returns [09:07:56]free content buf [09:07:56]Sock 9.Close socket [09:07:56]Sock 9.Thread stoped [09:07:56]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:26]accept exits with 7 [09:08:26]New connection [09:08:26]New thread 3066498404 created [09:08:26]Thread 3066641764 joined [09:08:26]Waiting for new connection... [09:08:26] Sock 7.Parse request [09:08:26]Sock 7.Check first char [09:08:26]Sock 7.First char is OK [09:08:26]request: POST /json_proto HTTP/1.0 [09:08:26]Method: POST [09:08:26]URL: /json_proto [09:08:26]Method is POST - this is cgi request [09:08:26]url: /json_proto [09:08:26]query_string will be loaded in cgi processing [09:08:26]execute_cgi json_proto POST (null) [09:08:26]execute_cgi path=json_proto method=POST [09:08:26]POST find Content-Length [09:08:26]Host: 172.17.33.3:8080 [09:08:26]Content-Length: 679 [09:08:26]Content-Type: application/json [09:08:26] [09:08:26]POST finish read [09:08:26]Found Content-Length = 679 [09:08:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346921", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 13.820, "sum" : 1000.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:08:26]execute_script... [09:08: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)346921", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 13.820, "sum" : 1000.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:08:26]POST & json_proto [09:08:26]process_json_proto [09:08:26]json parsed OK: [09:08:26]protocol is kg_v1.0 [09:08:26]action value=close_receipt [09:08:26]process_action close_receipt [09:08:26]cmd_close_receipt [09:08:26]MH_GetDate [09:08:26]Write to MH i2c: F0 00 00 68 67 BE [09:08:26]Write i2c OK [09:08:26]MH_I2C_Read... [09:08:26]Read from MH i2c: F0 [09:08:26]MH_I2C_Read... [09:08:26]Read from MH i2c: F0 09 00 [09:08:26]MH_I2C_Read... [09:08:26]Read from MH i2c: F0 09 00 68 67 00 11 FA 18 66 23 5B 8F 65 C2 [09:08:26]GetLastDocTimeStamp 1712912706 [09:08:26]current date 1712912913 [09:08:26]FM_GetShiftState [09:08:26]SAM_PROTO_GetShiftState [09:08:26]wFMCommunicate request_size=4 [09:08:26]MH_SAM_APDU [09:08:26]CAPDU: 80 13 01 00 [09:08:26]Write to MH i2c: E2 08 00 69 67 80 13 01 00 00 00 00 00 4D [09:08:26]Write i2c OK [09:08:26]MH_I2C_Read... [09:08:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:08:26]Read from MH i2c: E2 [09:08:26]MH_I2C_Read... [09:08:26]Read from MH i2c: E2 0E 00 [09:08:26]MH_I2C_Read... [09:08:26]Read from MH i2c: E2 0E 00 69 67 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 5E [09:08:26]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [09:08:26]wFMCommunicate OK [09:08:26]SAM_PROTO_GetShiftState done [09:08:26]FM_GetShiftState done [09:08:26]opened in 1712881416 [09:08:26]opened+sec_in_day 1712967816 [09:08:26]quantity*price = 100056 [09:08:26]sum+1 = 100058 [09:08:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 54 12.04.2024 09:08 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28605 ФПД: 63731038448369 1/tax-web-control/client/api/v1/ticket?date=20240412T090833&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28605&fm=63731038448369&tin=02508201610067®Number=0000138879044617&sum=100000 [09:08:27]StoreToDocumentArchive [09:08:27]shift 113 fd 28605 [09:08:27]save to /storage/0113/doc_00028605 [09:08:27]save last doc name /storage/0113/doc_00028605 to /storage/kkm_last_doc_name [09:08:27]save OK [09:08:27]Clear old archive folders... [09:08:27]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:08:27]tlvbuf is 01BB4EB0 [09:08:27]SAM_PROTO_ClearQueue [09:08:27]wFMCommunicate request_size=4 [09:08:27]MH_SAM_APDU [09:08:27]CAPDU: 80 09 00 00 [09:08:27]Write to MH i2c: E2 08 00 76 67 80 09 00 00 00 00 00 00 4F [09:08:27]Write i2c OK [09:08:27]MH_I2C_Read... [09:08:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:08:27]Read from MH i2c: E2 [09:08:27]MH_I2C_Read... [09:08:27]Read from MH i2c: E2 03 00 [09:08:27]MH_I2C_Read... [09:08:27]Read from MH i2c: E2 03 00 76 67 00 90 00 51 [09:08:27]RAPDU: 90 00 [09:08:27]wFMCommunicate OK [09:08:27]SAM_PROTO_ClearQueue done [09:08:27]KKMCreateOFDPacket [09:08:27]OFDProtocolAddRootSTLVToBuf [09:08:27]FM_MakeSignedData [09:08:27]FM_MakeSignedData [09:08:27]SAM_PROTO_SignData [09:08:27]wFMCommunicate request_size=4 [09:08:27]MH_SAM_APDU [09:08:27]CAPDU: 80 0D 01 02 [09:08:27]Write to MH i2c: E2 08 00 77 67 80 0D 01 02 00 00 00 00 57 [09:08:27]Write i2c OK [09:08:27]MH_I2C_Read... [09:08:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:08:27]Read from MH i2c: E2 [09:08:27]MH_I2C_Read... [09:08:27]Read from MH i2c: E2 03 00 [09:08:27]MH_I2C_Read... [09:08:27]Read from MH i2c: E2 03 00 77 67 00 90 00 52 [09:08:27]RAPDU: 90 00 [09:08:27]wFMCommunicate OK [09:08:27]wFMCommunicate request_size=255 [09:08:27]MH_SAM_APDU [09:08: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 35 FF 03 08 00 03 FC 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D9 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 36 00 00 00 F4 03 04 00 11 FA 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BD 6F 00 00 35 04 06 00 39 F6 89 E8 [09:08:27]Write to MH i2c: E2 02 01 78 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 35 FF 03 08 00 03 FC 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D9 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 36 00 00 00 F4 03 04 00 11 FA 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BD 6F 00 00 35 04 06 00 39 F6 89 E8 00 00 32 [09:08:27]Write i2c OK [09:08:27]MH_I2C_Read... [09:08:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:08:28]Read from MH i2c: E2 [09:08:28]MH_I2C_Read... [09:08:28]Read from MH i2c: E2 03 00 [09:08:28]MH_I2C_Read... [09:08:28]Read from MH i2c: E2 03 00 78 67 00 90 00 53 [09:08:28]RAPDU: 90 00 [09:08:28]wFMCommunicate OK [09:08:28]wFMCommunicate request_size=7 [09:08:28]MH_SAM_APDU [09:08:28]CAPDU: 80 0D 02 02 02 6A F1 [09:08:28]Write to MH i2c: E2 0A 00 79 67 80 0D 02 02 02 00 6A F1 00 00 B9 [09:08:28]Write i2c OK [09:08:28]MH_I2C_Read... [09:08:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:08:28]Read from MH i2c: E2 [09:08:28]MH_I2C_Read... [09:08:28]Read from MH i2c: E2 03 00 [09:08:28]MH_I2C_Read... [09:08:28]Read from MH i2c: E2 03 00 79 67 00 90 00 54 [09:08:28]RAPDU: 90 00 [09:08:28]wFMCommunicate OK [09:08:28]wFMCommunicate request_size=4 [09:08:28]MH_SAM_APDU [09:08:28]CAPDU: 80 0D 03 02 [09:08:28]Write to MH i2c: E2 08 00 7A 67 80 0D 03 02 00 00 00 00 5C [09:08:28]Write i2c OK [09:08:28]MH_I2C_Read... [09:08:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:08:28]Read from MH i2c: E2 [09:08:28]MH_I2C_Read... [09:08:28]Read from MH i2c: E2 0B 00 [09:08:28]MH_I2C_Read... [09:08:28]Read from MH i2c: E2 0B 00 7A 67 00 C3 0D A6 26 82 D0 70 75 90 00 30 [09:08:28]RAPDU: C3 0D A6 26 82 D0 70 75 90 00 [09:08:28]wFMCommunicate OK [09:08:28]SAM_PROTO_SignData done [09:08:28]FM_MakeSignedData done [09:08:28]CreateOFDProtocolMessage [09:08:28]wFMCommunicate request_size=4 [09:08:28]MH_SAM_APDU [09:08:28]CAPDU: 80 11 00 00 [09:08:28]Write to MH i2c: E2 08 00 7B 67 80 11 00 00 00 00 00 00 5C [09:08:28]Write i2c OK [09:08:28]MH_I2C_Read... [09:08:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:08:28]Read from MH i2c: E2 [09:08:28]MH_I2C_Read... [09:08:28]Read from MH i2c: E2 17 00 [09:08:28]MH_I2C_Read... [09:08:28]Read from MH i2c: E2 17 00 7B 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 AB [09:08:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:08:28]wFMCommunicate OK [09:08:28]CreateOFDProtocolMessage done [09:08:28]OFDSenderStorePacket 28605 [09:08:28]StoreOFDPacket docnum=28605 [09:08:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 DA F8 04 01 C6 61 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FC 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D9 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 36 00 00 00 F4 03 04 00 11 FA 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BD 6F 00 00 35 04 06 00 39 F6 89 E8 6A F1 C3 0D A6 26 82 D0 70 75 [09:08:28]CheckFolder [09:08:28]dirname=/storage/ofd_packets [09:08:28]CheckFolder done [09:08:28]ProducePacketName [09:08:28]name=ofd_packets/00028605 [09:08:28]NVStorageSaveData ofd_packets/00028605 [09:08:28]File name is /storage/ofd_packets/00028605 [09:08:28]Write 298 bytes [09:08:28]NVStorageSaveData done [09:08:28]OFDSenderStorePacket done [09:08:28]KKMCreateOFDPacket done [09:08:28]NVStorageSaveData kkm_last_timestamp [09:08:28]File name is /storage/kkm_last_timestamp [09:08:28]Write 4 bytes [09:08:28]NVStorageSaveData done [09:08:28]ExternCall_PrintAddStr [09:08:28]wPrintStart [09:08:28]Write to MH i2c: 01 00 00 7C 67 E3 [09:08:28]Write i2c OK [09:08:28]MH_I2C_Read... [09:08:28]Read from MH i2c: 01 [09:08:28]MH_I2C_Read... [09:08:28]Read from MH i2c: 01 07 00 [09:08:28]MH_I2C_Read... [09:08:28]Read from MH i2c: 01 07 00 7C 67 00 00 00 00 00 FF 0F F8 [09:08:28]RasterBufferAndPrint [09:08:28]line Счет N : (1)346921 [09:08:28]line ИНН: 02508201610067 [09:08:28]line Контрольно-Кассовый Чек [09:08:28]line ПРОДАЖА [09:08:28]line ТРК (МРК, ГНК) : 61 [09:08:28]line Товар: 2710194210 [09:08:28]line ДТ-К-5 [09:08:28]line 13.820 * 72.40 [09:08:28]line = 1000.57 [09:08:28]line НДС 12% НСП 1% [09:08:28]line > о реализуемом товаре [09:08:28]line ОКРУГЛЕНИЕ: -0.57 [09:08:28]line ИТОГО: 1000.00 [09:08:28]line Внесено: 1000.00 [09:08:28]line СДАЧА: 0.00 [09:08:28]line НСП 1% : 8.85 [09:08:28]line НДС 12% : 106.25 [09:08:28]line Наличными: 1000.00 [09:08:28]line Безнал.: 0.00 [09:08:28]line Место: АЗС № 108 "Партнер Нефть" [09:08:28]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [09:08:28]line СНО: Общий режим [09:08:28]line Чек 54 12.04.2024 09:08 [09:08:28]line Смена: 113 ФФД: 1.0 [09:08:28]line ЗНМ: 0300000027 [09:08:28]line РНМ: 0000138879044617 [09:08:28]line Версия ККМ: 001 [09:08:28]line ФМ: 0000000000963154 [09:08:28]line ФД: 28605 [09:08:28]line ФПД: 63731038448369 [09:08:28]line 1/tax-web-control/client/api/v1/ticket?date=20240412T090833&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28605&fm=63731038448369&tin=02508201610067®Number=0000138879044617&sum=100000 [09:08:28]OFD Sender: Processing packet 28605 [packets to send 8, broken 7] [09:08:28]ProducePacketName [09:08:28]name=ofd_packets/00028605 [09:08:28]OFD Sender: To server: pG, [09:08:28]CommunicateWithHost lk.salyk.kg:30040 [09:08:28]ConnectInit lk.salyk.kg [09:08:28]written 0, free lines is 4095 [09:08:28]Connected sock=10 [09:08:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 DA F8 04 01 C6 61 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FC 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D9 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 36 00 00 00 F4 03 04 00 11 FA 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BD 6F 00 00 35 04 06 00 39 F6 89 E8 6A F1 C3 0D A6 26 82 D0 70 75 [09:08:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 DE AF 47 00 07 E2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BD 6F 00 00 F4 03 04 00 BC A4 18 66 B6 04 01 00 00 BB 29 0E 72 FE 1E F3 CF [09:08:28]CommunicateWithHost err = 0 [09:08:28]CheckOFDResponse [09:08:28]1017 (14) - 77093643461234 [09:08:28]1041 (16) - 0000000000963154 [09:08:28]1040 (4) - 28605 [09:08:28]1012 (4) - 12.04.2024 03:04 [09:08:28]1206 (1) - 0 [09:08:28]OFD Sender: Remove packet 28605 [09:08:28]ProducePacketName [09:08:28]name=ofd_packets/00028605 [09:08:28]NVStorageDeleteData [09:08:28]Write to MH i2c: 01 00 00 A6 67 0D [09:08:28]Write i2c OK [09:08:28]MH_I2C_Read... [09:08:28]Read from MH i2c: 01 [09:08:28]MH_I2C_Read... [09:08:28]Read from MH i2c: 01 07 00 [09:08:28]MH_I2C_Read... [09:08:28]Read from MH i2c: 01 07 00 A6 67 00 00 00 00 00 CF 0C EF [09:08:28]RasterBufferAndPrint [09:08:28]line [09:08:28]line [09:08:28]line [09:08:28]line [09:08:28]line [09:08:28]written 0, free lines is 3287 [09:08:28]MH_Cut [09:08:28]Write to MH i2c: D1 01 00 AD 67 01 E6 [09:08:28]Write i2c OK [09:08:28]MH_I2C_Read... [09:08:28]Read from MH i2c: D1 [09:08:28]MH_I2C_Read... [09:08:28]Read from MH i2c: D1 01 00 [09:08:28]MH_I2C_Read... [09:08:28]Read from MH i2c: D1 01 00 AD 67 00 E5 [09:08:28]Write to MH i2c: 01 00 00 AE 67 15 [09:08:28]Write i2c OK [09:08:28]MH_I2C_Read... [09:08:29]OFD Sender: No OFD packet to send [09:08:29]*** Cut start [09:08:29]*** Partial cut [09:08:29]*** CUTSNS_PIN = 1 [09:08:29]*** CUTSNS_PIN = 0 [09:08:30]*** Brake cut motor [09:08:30]Read from MH i2c: 01 [09:08:30]MH_I2C_Read... [09:08:30]*** Stop cut motor [09:08:30]*** Cut end [09:08:30]Read from MH i2c: 01 07 00 [09:08:30]MH_I2C_Read... [09:08:30]Read from MH i2c: 01 07 00 AE 67 00 00 00 00 00 FF 0F 2A [09:08:30]process_action close_receipt done [09:08:30]requested_data is exist [09:08:30]produce_requested_data [09:08:30]requested_item fm.sn is exist - process it [09:08:30]wFMCommunicate request_size=4 [09:08:30]MH_SAM_APDU [09:08:30]CAPDU: 80 11 00 00 [09:08:30]Write to MH i2c: E2 08 00 AF 67 80 11 00 00 00 00 00 00 90 [09:08:30]Write i2c OK [09:08:30]MH_I2C_Read... [09:08:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:08:30]Read from MH i2c: E2 [09:08:30]MH_I2C_Read... [09:08:30]Read from MH i2c: E2 17 00 [09:08:30]MH_I2C_Read... [09:08:30]Read from MH i2c: E2 17 00 AF 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 DF [09:08:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:08:30]wFMCommunicate OK [09:08:30]requested_item fd.num is exist - process it [09:08:30]SAM_PROTO_GetFieldsCounters [09:08:30]wFMCommunicate request_size=4 [09:08:30]MH_SAM_APDU [09:08:30]CAPDU: 80 13 00 00 [09:08:30]Write to MH i2c: E2 08 00 B0 67 80 13 00 00 00 00 00 00 93 [09:08:30]Write i2c OK [09:08:30]MH_I2C_Read... [09:08:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:08:30]Read from MH i2c: E2 [09:08:30]MH_I2C_Read... [09:08:30]Read from MH i2c: E2 62 00 [09:08:30]MH_I2C_Read... [09:08:30]Read from MH i2c: E2 62 00 B0 67 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 BD 6F 00 00 0E 04 04 00 71 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:08:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 BD 6F 00 00 0E 04 04 00 71 00 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:08:30]wFMCommunicate OK [09:08:30]SAM_PROTO_GetFieldsCounters done [09:08:30]requested_item shift.num is exist - process it [09:08:30]requested_item shift.opened is exist - process it [09:08:30]req_shift_opened [09:08:30]FM_GetShiftState [09:08:30]SAM_PROTO_GetShiftState [09:08:30]wFMCommunicate request_size=4 [09:08:30]MH_SAM_APDU [09:08:30]CAPDU: 80 13 01 00 [09:08:30]Write to MH i2c: E2 08 00 B1 67 80 13 01 00 00 00 00 00 95 [09:08:30]Write i2c OK [09:08:30]MH_I2C_Read... [09:08:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:08:30]Read from MH i2c: E2 [09:08:30]MH_I2C_Read... [09:08:30]Read from MH i2c: E2 0E 00 [09:08:30]MH_I2C_Read... [09:08:30]Read from MH i2c: E2 0E 00 B1 67 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 A6 [09:08:30]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [09:08:30]wFMCommunicate OK [09:08:30]SAM_PROTO_GetShiftState done [09:08:30]FM_GetShiftState done [09:08:30]req_shift_opened done [09:08:30]requested_item shift.open_date is exist - process it [09:08:30]req_shift_open_date [09:08:30]req_shift_open_date done [09:08:30]produce_requested_data done [09:08:30]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28605,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [09:08:30]process_action_free close_receipt [09:08:30]json_value_free [09:08:30]json_value_free done [09:08:30]process_json_proto returns [09:08:30]Send response to host [09:08:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28605,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [09:08:30]free response buf [09:08:30]execute_script done [09:08:30]execute_script returns [09:08:30]free content buf [09:08:30]Sock 7.Close socket [09:08:30]Sock 7.Thread stoped [09:08:34]OFD Sender: No OFD packet to send [09:08:39]OFD Sender: No OFD packet to send [09:08:44]OFD Sender: No OFD packet to send [09:08:49]OFD Sender: No OFD packet to send [09:08:54]OFD Sender: No OFD packet to send [09:08:59]OFD Sender: No OFD packet to send [09:09:04]OFD Sender: No OFD packet to send [09:09:09]OFD Sender: No OFD packet to send [09:09:14]OFD Sender: No OFD packet to send [09:09:19]OFD Sender: No OFD packet to send [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:54]OFD Sender: No OFD packet to send [09:12:59]OFD Sender: No OFD packet to send [09:13:04]OFD Sender: No OFD packet to send [09:13:09]OFD Sender: No OFD packet to send [09:13:14]OFD Sender: No OFD packet to send [09:13:19]OFD Sender: No OFD packet to send [09:13:24]OFD Sender: No OFD packet to send [09:13:29]OFD Sender: No OFD packet to send [09:13:34]OFD Sender: No OFD packet to send [09:13:39]OFD Sender: No OFD packet to send [09:13:44]OFD Sender: No OFD packet to send [09:13:49]OFD Sender: No OFD packet to send [09:13:54]OFD Sender: No OFD packet to send [09:13:59]OFD Sender: No OFD packet to send [09:14:04]OFD Sender: No OFD packet to send [09:14:08]accept exits with 9 [09:14:08]New connection [09:14:08]New thread 3066641764 created [09:14:08]Thread 3066498404 joined [09:14:08]Waiting for new connection... [09:14:08] Sock 9.Parse request [09:14:08]Sock 9.Check first char [09:14:08]Sock 9.First char is OK [09:14:08]request: POST /json_proto HTTP/1.0 [09:14:08]Method: POST [09:14:08]URL: /json_proto [09:14:08]Method is POST - this is cgi request [09:14:08]url: /json_proto [09:14:08]query_string will be loaded in cgi processing [09:14:08]execute_cgi json_proto POST (null) [09:14:08]execute_cgi path=json_proto method=POST [09:14:08]POST find Content-Length [09:14:08]Host: 172.17.33.3:8080 [09:14:08]Content-Length: 677 [09:14:08]Content-Type: application/json [09:14:08] [09:14:08]POST finish read [09:14:08]Found Content-Length = 677 [09:14:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346922", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 9.340, "sum" : 600.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:14:08]execute_script... [09:14: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)346922", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 9.340, "sum" : 600.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:14:08]POST & json_proto [09:14:08]process_json_proto [09:14:08]json parsed OK: [09:14:08]protocol is kg_v1.0 [09:14:08]action value=close_receipt [09:14:08]process_action close_receipt [09:14:08]cmd_close_receipt [09:14:08]MH_GetDate [09:14:08]Write to MH i2c: F0 00 00 B2 67 08 [09:14:08]Write i2c OK [09:14:08]MH_I2C_Read... [09:14:08]Read from MH i2c: F0 [09:14:08]MH_I2C_Read... [09:14:08]Read from MH i2c: F0 09 00 [09:14:08]MH_I2C_Read... [09:14:08]Read from MH i2c: F0 09 00 B2 67 00 68 FB 18 66 23 5B 8F 65 64 [09:14:08]GetLastDocTimeStamp 1712912913 [09:14:08]current date 1712913256 [09:14:08]FM_GetShiftState [09:14:08]SAM_PROTO_GetShiftState [09:14:08]wFMCommunicate request_size=4 [09:14:08]MH_SAM_APDU [09:14:08]CAPDU: 80 13 01 00 [09:14:08]Write to MH i2c: E2 08 00 B3 67 80 13 01 00 00 00 00 00 97 [09:14:08]Write i2c OK [09:14:08]MH_I2C_Read... [09:14:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:14:09]Read from MH i2c: E2 [09:14:09]MH_I2C_Read... [09:14:09]Read from MH i2c: E2 0E 00 [09:14:09]MH_I2C_Read... [09:14:09]Read from MH i2c: E2 0E 00 B3 67 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 A8 [09:14:09]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [09:14:09]wFMCommunicate OK [09:14:09]SAM_PROTO_GetShiftState done [09:14:09]FM_GetShiftState done [09:14:09]opened in 1712881416 [09:14:09]opened+sec_in_day 1712967816 [09:14:09]quantity*price = 60056 [09:14:09]sum+1 = 60057 [09:14:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.78 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 55 12.04.2024 09:14 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28606 ФПД: 177292147646787 1/tax-web-control/client/api/v1/ticket?date=20240412T091416&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28606&fm=177292147646787&tin=02508201610067®Number=0000138879044617&sum=60000 [09:14:10]StoreToDocumentArchive [09:14:10]shift 113 fd 28606 [09:14:10]save to /storage/0113/doc_00028606 [09:14:10]save last doc name /storage/0113/doc_00028606 to /storage/kkm_last_doc_name [09:14:10]save OK [09:14:10]Clear old archive folders... [09:14:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:14:10]tlvbuf is 01A9D6C0 [09:14:10]SAM_PROTO_ClearQueue [09:14:10]wFMCommunicate request_size=4 [09:14:10]MH_SAM_APDU [09:14:10]CAPDU: 80 09 00 00 [09:14:10]Write to MH i2c: E2 08 00 C0 67 80 09 00 00 00 00 00 00 99 [09:14:10]Write i2c OK [09:14:10]MH_I2C_Read... [09:14:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:14:10]Read from MH i2c: E2 [09:14:10]MH_I2C_Read... [09:14:10]Read from MH i2c: E2 03 00 [09:14:10]MH_I2C_Read... [09:14:10]Read from MH i2c: E2 03 00 C0 67 00 90 00 9B [09:14:10]RAPDU: 90 00 [09:14:10]wFMCommunicate OK [09:14:10]SAM_PROTO_ClearQueue done [09:14:10]KKMCreateOFDPacket [09:14:10]OFDProtocolAddRootSTLVToBuf [09:14:10]FM_MakeSignedData [09:14:10]FM_MakeSignedData [09:14:10]SAM_PROTO_SignData [09:14:10]wFMCommunicate request_size=4 [09:14:10]MH_SAM_APDU [09:14:10]CAPDU: 80 0D 01 02 [09:14:10]Write to MH i2c: E2 08 00 C1 67 80 0D 01 02 00 00 00 00 A1 [09:14:10]Write i2c OK [09:14:10]MH_I2C_Read... [09:14:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:14:10]Read from MH i2c: E2 [09:14:10]MH_I2C_Read... [09:14:10]Read from MH i2c: E2 03 00 [09:14:10]MH_I2C_Read... [09:14:10]Read from MH i2c: E2 03 00 C1 67 00 90 00 9C [09:14:10]RAPDU: 90 00 [09:14:10]wFMCommunicate OK [09:14:10]wFMCommunicate request_size=255 [09:14:10]MH_SAM_APDU [09:14:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7C 24 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 98 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 EA 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 37 00 00 00 F4 03 04 00 68 FB 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BE 6F 00 00 35 04 06 00 A1 [09:14:10]Write to MH i2c: E2 02 01 C2 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 35 FF 03 08 00 03 7C 24 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 98 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 EA 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 37 00 00 00 F4 03 04 00 68 FB 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BE 6F 00 00 35 04 06 00 A1 00 00 23 [09:14:10]Write i2c OK [09:14:10]MH_I2C_Read... [09:14:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:14:10]Read from MH i2c: E2 [09:14:10]MH_I2C_Read... [09:14:10]Read from MH i2c: E2 03 00 [09:14:10]MH_I2C_Read... [09:14:10]Read from MH i2c: E2 03 00 C2 67 00 90 00 9D [09:14:10]RAPDU: 90 00 [09:14:10]wFMCommunicate OK [09:14:10]wFMCommunicate request_size=10 [09:14:10]MH_SAM_APDU [09:14:10]CAPDU: 80 0D 02 02 05 3F 0B 7B 61 43 [09:14:10]Write to MH i2c: E2 0D 00 C3 67 80 0D 02 02 05 00 3F 0B 7B 61 43 00 00 17 [09:14:10]Write i2c OK [09:14:10]MH_I2C_Read... [09:14:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:14:10]Read from MH i2c: E2 [09:14:10]MH_I2C_Read... [09:14:10]Read from MH i2c: E2 03 00 [09:14:10]MH_I2C_Read... [09:14:10]Read from MH i2c: E2 03 00 C3 67 00 90 00 9E [09:14:10]RAPDU: 90 00 [09:14:10]wFMCommunicate OK [09:14:10]wFMCommunicate request_size=4 [09:14:10]MH_SAM_APDU [09:14:10]CAPDU: 80 0D 03 02 [09:14:10]Write to MH i2c: E2 08 00 C4 67 80 0D 03 02 00 00 00 00 A6 [09:14:10]Write i2c OK [09:14:10]MH_I2C_Read... [09:14:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:14:10]Read from MH i2c: E2 [09:14:10]MH_I2C_Read... [09:14:10]Read from MH i2c: E2 0B 00 [09:14:10]MH_I2C_Read... [09:14:10]Read from MH i2c: E2 0B 00 C4 67 00 34 D9 A1 30 5F E6 11 13 90 00 EE [09:14:10]RAPDU: 34 D9 A1 30 5F E6 11 13 90 00 [09:14:10]wFMCommunicate OK [09:14:10]SAM_PROTO_SignData done [09:14:10]FM_MakeSignedData done [09:14:10]CreateOFDProtocolMessage [09:14:10]wFMCommunicate request_size=4 [09:14:10]MH_SAM_APDU [09:14:10]CAPDU: 80 11 00 00 [09:14:10]Write to MH i2c: E2 08 00 C5 67 80 11 00 00 00 00 00 00 A6 [09:14:10]Write i2c OK [09:14:10]MH_I2C_Read... [09:14:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:14:10]Read from MH i2c: E2 [09:14:10]MH_I2C_Read... [09:14:10]Read from MH i2c: E2 17 00 [09:14:10]MH_I2C_Read... [09:14:10]Read from MH i2c: E2 17 00 C5 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 F5 [09:14:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:14:10]wFMCommunicate OK [09:14:10]CreateOFDProtocolMessage done [09:14:10]OFDSenderStorePacket 28606 [09:14:10]StoreOFDPacket docnum=28606 [09:14:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 FD 32 07 01 8B BF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7C 24 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 98 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 EA 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 37 00 00 00 F4 03 04 00 68 FB 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BE 6F 00 00 35 04 06 00 A1 3F 0B 7B 61 43 34 D9 A1 30 5F E6 11 13 [09:14:10]CheckFolder [09:14:10]dirname=/storage/ofd_packets [09:14:10]CheckFolder done [09:14:10]ProducePacketName [09:14:10]name=ofd_packets/00028606 [09:14:10]NVStorageSaveData ofd_packets/00028606 [09:14:10]File name is /storage/ofd_packets/00028606 [09:14:10]Write 301 bytes [09:14:10]NVStorageSaveData done [09:14:10]OFDSenderStorePacket done [09:14:10]KKMCreateOFDPacket done [09:14:10]NVStorageSaveData kkm_last_timestamp [09:14:10]File name is /storage/kkm_last_timestamp [09:14:10]Write 4 bytes [09:14:10]NVStorageSaveData done [09:14:10]ExternCall_PrintAddStr [09:14:10]wPrintStart [09:14:10]Write to MH i2c: 01 00 00 C6 67 2D [09:14:10]Write i2c OK [09:14:10]MH_I2C_Read... [09:14:10]Read from MH i2c: 01 [09:14:10]MH_I2C_Read... [09:14:10]Read from MH i2c: 01 07 00 [09:14:10]MH_I2C_Read... [09:14:10]Read from MH i2c: 01 07 00 C6 67 00 00 00 00 00 FF 0F 42 [09:14:10]RasterBufferAndPrint [09:14:10]line Счет N : (1)346922 [09:14:10]line ИНН: 02508201610067 [09:14:10]line Контрольно-Кассовый Чек [09:14:10]line ПРОДАЖА [09:14:10]line ТРК (МРК, ГНК) : 13 [09:14:10]line Товар: 2710124130 [09:14:10]line Аи-92-К-5 [09:14:10]line 9.340 * 64.30 [09:14:10]line = 600.56 [09:14:10]line НДС 12% НСП 1% [09:14:10]line > о реализуемом товаре [09:14:10]line ОКРУГЛЕНИЕ: -0.56 [09:14:10]line ИТОГО: 600.00 [09:14:10]line Внесено: 600.00 [09:14:10]line СДАЧА: 0.00 [09:14:10]line НСП 1% : 5.31 [09:14:10]line НДС 12% : 63.78 [09:14:10]line Наличными: 600.00 [09:14:10]line Безнал.: 0.00 [09:14:10]line Место: АЗС № 108 "Партнер Нефть" [09:14:10]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [09:14:10]line СНО: Общий режим [09:14:10]line Чек 55 12.04.2024 09:14 [09:14:10]line Смена: 113 ФФД: 1.0 [09:14:10]line ЗНМ: 0300000027 [09:14:10]line РНМ: 0000138879044617 [09:14:10]line Версия ККМ: 001 [09:14:10]line ФМ: 0000000000963154 [09:14:10]line ФД: 28606 [09:14:10]line ФПД: 177292147646787 [09:14:11]line 1/tax-web-control/client/api/v1/ticket?date=20240412T091416&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28606&fm=177292147646787&tin=02508201610067®Number=0000138879044617&sum=60000 [09:14:11]OFD Sender: Processing packet 28606 [packets to send 8, broken 7] [09:14:11]ProducePacketName [09:14:11]name=ofd_packets/00028606 [09:14:11]OFD Sender: To server: pG, [09:14:11]CommunicateWithHost lk.salyk.kg:30040 [09:14:11]ConnectInit lk.salyk.kg [09:14:11]written 0, free lines is 4095 [09:14:11]Write to MH i2c: 01 00 00 F0 67 57 [09:14:11]Write i2c OK [09:14:11]MH_I2C_Read... [09:14:11]Read from MH i2c: 01 [09:14:11]MH_I2C_Read... [09:14:11]Read from MH i2c: 01 07 00 [09:14:11]MH_I2C_Read... [09:14:11]Read from MH i2c: 01 07 00 F0 67 00 00 00 00 00 C2 0C 2C [09:14:11]RasterBufferAndPrint [09:14:11]line [09:14:11]line [09:14:11]line [09:14:11]line [09:14:11]line [09:14:11]written 0, free lines is 3270 [09:14:11]MH_Cut [09:14:11]Write to MH i2c: D1 01 00 F7 67 01 30 [09:14:11]Write i2c OK [09:14:11]MH_I2C_Read... [09:14:11]Read from MH i2c: D1 [09:14:11]MH_I2C_Read... [09:14:11]Read from MH i2c: D1 01 00 [09:14:11]MH_I2C_Read... [09:14:11]Read from MH i2c: D1 01 00 F7 67 00 2F [09:14:11]Write to MH i2c: 01 00 00 F8 67 5F [09:14:11]Write i2c OK [09:14:11]MH_I2C_Read... [09:14:12]*** Cut start [09:14:12]*** Partial cut [09:14:12]*** CUTSNS_PIN = 1 [09:14:12]*** CUTSNS_PIN = 0 [09:14:12]*** Brake cut motor [09:14:12]Read from MH i2c: 01 [09:14:12]MH_I2C_Read... [09:14:12]*** Stop cut motor [09:14:12]*** Cut end [09:14:12]Read from MH i2c: 01 07 00 [09:14:12]MH_I2C_Read... [09:14:12]Read from MH i2c: 01 07 00 F8 67 00 00 00 00 00 FF 0F 74 [09:14:12]process_action close_receipt done [09:14:12]requested_data is exist [09:14:12]produce_requested_data [09:14:12]requested_item fm.sn is exist - process it [09:14:12]wFMCommunicate request_size=4 [09:14:12]MH_SAM_APDU [09:14:12]CAPDU: 80 11 00 00 [09:14:12]Write to MH i2c: E2 08 00 F9 67 80 11 00 00 00 00 00 00 DA [09:14:12]Write i2c OK [09:14:12]MH_I2C_Read... [09:14:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:14:12]Read from MH i2c: E2 [09:14:12]MH_I2C_Read... [09:14:12]Read from MH i2c: E2 17 00 [09:14:12]MH_I2C_Read... [09:14:12]Read from MH i2c: E2 17 00 F9 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 29 [09:14:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:14:12]wFMCommunicate OK [09:14:12]requested_item fd.num is exist - process it [09:14:12]SAM_PROTO_GetFieldsCounters [09:14:12]wFMCommunicate request_size=4 [09:14:12]MH_SAM_APDU [09:14:12]CAPDU: 80 13 00 00 [09:14:12]Write to MH i2c: E2 08 00 FA 67 80 13 00 00 00 00 00 00 DD [09:14:12]Write i2c OK [09:14:12]MH_I2C_Read... [09:14:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:14:13]Read from MH i2c: E2 [09:14:13]MH_I2C_Read... [09:14:13]Read from MH i2c: E2 62 00 [09:14:13]MH_I2C_Read... [09:14:13]Read from MH i2c: E2 62 00 FA 67 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 BE 6F 00 00 0E 04 04 00 71 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 5E [09:14:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 BE 6F 00 00 0E 04 04 00 71 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 [09:14:13]wFMCommunicate OK [09:14:13]SAM_PROTO_GetFieldsCounters done [09:14:13]requested_item shift.num is exist - process it [09:14:13]requested_item shift.opened is exist - process it [09:14:13]req_shift_opened [09:14:13]FM_GetShiftState [09:14:13]SAM_PROTO_GetShiftState [09:14:13]wFMCommunicate request_size=4 [09:14:13]MH_SAM_APDU [09:14:13]CAPDU: 80 13 01 00 [09:14:13]Write to MH i2c: E2 08 00 FB 67 80 13 01 00 00 00 00 00 DF [09:14:13]Write i2c OK [09:14:13]MH_I2C_Read... [09:14:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:14:13]Read from MH i2c: E2 [09:14:13]MH_I2C_Read... [09:14:13]Read from MH i2c: E2 0E 00 [09:14:13]MH_I2C_Read... [09:14:13]Read from MH i2c: E2 0E 00 FB 67 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 F0 [09:14:13]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [09:14:13]wFMCommunicate OK [09:14:13]SAM_PROTO_GetShiftState done [09:14:13]FM_GetShiftState done [09:14:13]req_shift_opened done [09:14:13]requested_item shift.open_date is exist - process it [09:14:13]req_shift_open_date [09:14:13]req_shift_open_date done [09:14:13]produce_requested_data done [09:14:13]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28606,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [09:14:13]process_action_free close_receipt [09:14:13]json_value_free [09:14:13]json_value_free done [09:14:13]process_json_proto returns [09:14:13]Send response to host [09:14:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28606,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [09:14:13]free response buf [09:14:13]execute_script done [09:14:13]execute_script returns [09:14:13]free content buf [09:14:13]Sock 9.Close socket [09:14:13]Sock 9.Thread stoped [09:15:24]accept exits with 7 [09:15:24]New connection [09:15:24]New thread 3066498404 created [09:15:24]Thread 3066641764 joined [09:15:24]Waiting for new connection... [09:15:24] Sock 7.Parse request [09:15:24]Sock 7.Check first char [09:15:24]Sock 7.First char is OK [09:15:24]request: POST /json_proto HTTP/1.0 [09:15:24]Method: POST [09:15:24]URL: /json_proto [09:15:24]Method is POST - this is cgi request [09:15:24]url: /json_proto [09:15:24]query_string will be loaded in cgi processing [09:15:24]execute_cgi json_proto POST (null) [09:15:24]execute_cgi path=json_proto method=POST [09:15:24]POST find Content-Length [09:15:24]Host: 172.17.33.3:8080 [09:15:24]Content-Length: 670 [09:15:24]Content-Type: application/json [09:15:24] [09:15:24]POST finish read [09:15:24]Found Content-Length = 670 [09:15:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346923", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 7.660, "sum" : 500.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:15:24]execute_script... [09:15: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)346923", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 7.660, "sum" : 500.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:15:24]POST & json_proto [09:15:24]process_json_proto [09:15:24]json parsed OK: [09:15:24]protocol is kg_v1.0 [09:15:24]action value=close_receipt [09:15:24]process_action close_receipt [09:15:24]cmd_close_receipt [09:15:24]MH_GetDate [09:15:24]Write to MH i2c: F0 00 00 FC 67 52 [09:15:24]Write i2c OK [09:15:24]MH_I2C_Read... [09:15:24]Read from MH i2c: F0 [09:15:24]MH_I2C_Read... [09:15:24]Read from MH i2c: F0 09 00 [09:15:24]MH_I2C_Read... [09:15:24]Read from MH i2c: F0 09 00 FC 67 00 B3 FB 18 66 23 5B 8F 65 F9 [09:15:24]GetLastDocTimeStamp 1712913256 [09:15:24]current date 1712913331 [09:15:24]FM_GetShiftState [09:15:24]SAM_PROTO_GetShiftState [09:15:24]wFMCommunicate request_size=4 [09:15:24]MH_SAM_APDU [09:15:24]CAPDU: 80 13 01 00 [09:15:24]Write to MH i2c: E2 08 00 FD 67 80 13 01 00 00 00 00 00 E1 [09:15:24]Write i2c OK [09:15:24]MH_I2C_Read... [09:15:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:15:24]Read from MH i2c: E2 [09:15:24]MH_I2C_Read... [09:15:24]Read from MH i2c: E2 0E 00 [09:15:24]MH_I2C_Read... [09:15:24]Read from MH i2c: E2 0E 00 FD 67 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 F2 [09:15:24]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [09:15:24]wFMCommunicate OK [09:15:24]SAM_PROTO_GetShiftState done [09:15:24]FM_GetShiftState done [09:15:24]opened in 1712881416 [09:15:24]opened+sec_in_day 1712967816 [09:15:24]quantity*price = 50019 [09:15:24]sum+1 = 50021 [09:15:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 56 12.04.2024 09:15 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28607 ФПД: 197314460789547 1/tax-web-control/client/api/v1/ticket?date=20240412T091531&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28607&fm=197314460789547&tin=02508201610067®Number=0000138879044617&sum=50000 [09:15:25]StoreToDocumentArchive [09:15:25]shift 113 fd 28607 [09:15:25]save to /storage/0113/doc_00028607 [09:15:25]save last doc name /storage/0113/doc_00028607 to /storage/kkm_last_doc_name [09:15:25]save OK [09:15:25]Clear old archive folders... [09:15:25]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:15:25]tlvbuf is 01AD7910 [09:15:25]SAM_PROTO_ClearQueue [09:15:25]wFMCommunicate request_size=4 [09:15:25]MH_SAM_APDU [09:15:25]CAPDU: 80 09 00 00 [09:15:25]Write to MH i2c: E2 08 00 0A 68 80 09 00 00 00 00 00 00 E4 [09:15:25]Write i2c OK [09:15:25]MH_I2C_Read... [09:15:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:15:25]Read from MH i2c: E2 [09:15:25]MH_I2C_Read... [09:15:25]Read from MH i2c: E2 03 00 [09:15:25]MH_I2C_Read... [09:15:25]Read from MH i2c: E2 03 00 0A 68 00 90 00 E6 [09:15:25]RAPDU: 90 00 [09:15:25]wFMCommunicate OK [09:15:25]SAM_PROTO_ClearQueue done [09:15:25]KKMCreateOFDPacket [09:15:25]OFDProtocolAddRootSTLVToBuf [09:15:25]FM_MakeSignedData [09:15:25]FM_MakeSignedData [09:15:25]SAM_PROTO_SignData [09:15:25]wFMCommunicate request_size=4 [09:15:25]MH_SAM_APDU [09:15:25]CAPDU: 80 0D 01 02 [09:15:25]Write to MH i2c: E2 08 00 0B 68 80 0D 01 02 00 00 00 00 EC [09:15:25]Write i2c OK [09:15:25]MH_I2C_Read... [09:15:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:15:25]Read from MH i2c: E2 [09:15:25]MH_I2C_Read... [09:15:25]Read from MH i2c: E2 03 00 [09:15:25]MH_I2C_Read... [09:15:25]Read from MH i2c: E2 03 00 0B 68 00 90 00 E7 [09:15:25]RAPDU: 90 00 [09:15:25]wFMCommunicate OK [09:15:25]wFMCommunicate request_size=255 [09:15:25]MH_SAM_APDU [09:15:25]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 1D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 64 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 B3 FB 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BF 6F 00 00 35 04 06 00 [09:15:25]Write to MH i2c: E2 02 01 0C 68 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 1D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 64 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 B3 FB 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BF 6F 00 00 35 04 06 00 00 00 41 [09:15:25]Write i2c OK [09:15:25]MH_I2C_Read... [09:15:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:15:25]Read from MH i2c: E2 [09:15:25]MH_I2C_Read... [09:15:25]Read from MH i2c: E2 03 00 [09:15:25]MH_I2C_Read... [09:15:25]Read from MH i2c: E2 03 00 0C 68 00 90 00 E8 [09:15:25]RAPDU: 90 00 [09:15:25]wFMCommunicate OK [09:15:25]wFMCommunicate request_size=11 [09:15:25]MH_SAM_APDU [09:15:25]CAPDU: 80 0D 02 02 06 B3 74 DA 58 2B 2B [09:15:25]Write to MH i2c: E2 0E 00 0D 68 80 0D 02 02 06 00 B3 74 DA 58 2B 2B 00 00 AA [09:15:25]Write i2c OK [09:15:25]MH_I2C_Read... [09:15:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:15:25]Read from MH i2c: E2 [09:15:25]MH_I2C_Read... [09:15:25]Read from MH i2c: E2 03 00 [09:15:25]MH_I2C_Read... [09:15:25]Read from MH i2c: E2 03 00 0D 68 00 90 00 E9 [09:15:25]RAPDU: 90 00 [09:15:25]wFMCommunicate OK [09:15:25]wFMCommunicate request_size=4 [09:15:25]MH_SAM_APDU [09:15:25]CAPDU: 80 0D 03 02 [09:15:25]Write to MH i2c: E2 08 00 0E 68 80 0D 03 02 00 00 00 00 F1 [09:15:25]Write i2c OK [09:15:25]MH_I2C_Read... [09:15:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:15:25]Read from MH i2c: E2 [09:15:25]MH_I2C_Read... [09:15:25]Read from MH i2c: E2 0B 00 [09:15:25]MH_I2C_Read... [09:15:25]Read from MH i2c: E2 0B 00 0E 68 00 02 B2 B9 EA 6D 57 68 12 90 00 87 [09:15:25]RAPDU: 02 B2 B9 EA 6D 57 68 12 90 00 [09:15:25]wFMCommunicate OK [09:15:25]SAM_PROTO_SignData done [09:15:25]FM_MakeSignedData done [09:15:25]CreateOFDProtocolMessage [09:15:25]wFMCommunicate request_size=4 [09:15:25]MH_SAM_APDU [09:15:25]CAPDU: 80 11 00 00 [09:15:25]Write to MH i2c: E2 08 00 0F 68 80 11 00 00 00 00 00 00 F1 [09:15:25]Write i2c OK [09:15:25]MH_I2C_Read... [09:15:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:15:25]Read from MH i2c: E2 [09:15:25]MH_I2C_Read... [09:15:25]Read from MH i2c: E2 17 00 [09:15:25]MH_I2C_Read... [09:15:25]Read from MH i2c: E2 17 00 0F 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 40 [09:15:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:15:25]wFMCommunicate OK [09:15:25]CreateOFDProtocolMessage done [09:15:25]OFDSenderStorePacket 28607 [09:15:25]StoreOFDPacket docnum=28607 [09:15:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 29 30 08 01 8E B6 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 1D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 64 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 B3 FB 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BF 6F 00 00 35 04 06 00 B3 74 DA 58 2B 2B 02 B2 B9 EA 6D 57 68 12 [09:15:25]CheckFolder [09:15:25]dirname=/storage/ofd_packets [09:15:25]CheckFolder done [09:15:25]ProducePacketName [09:15:25]name=ofd_packets/00028607 [09:15:25]NVStorageSaveData ofd_packets/00028607 [09:15:25]File name is /storage/ofd_packets/00028607 [09:15:25]Write 302 bytes [09:15:25]NVStorageSaveData done [09:15:25]OFDSenderStorePacket done [09:15:25]KKMCreateOFDPacket done [09:15:25]NVStorageSaveData kkm_last_timestamp [09:15:25]File name is /storage/kkm_last_timestamp [09:15:25]Write 4 bytes [09:15:25]NVStorageSaveData done [09:15:25]ExternCall_PrintAddStr [09:15:25]wPrintStart [09:15:25]Write to MH i2c: 01 00 00 10 68 78 [09:15:25]Write i2c OK [09:15:25]MH_I2C_Read... [09:15:25]Read from MH i2c: 01 [09:15:25]MH_I2C_Read... [09:15:25]Read from MH i2c: 01 07 00 [09:15:25]MH_I2C_Read... [09:15:25]Read from MH i2c: 01 07 00 10 68 00 00 00 00 00 FF 0F 8D [09:15:25]RasterBufferAndPrint [09:15:25]line Счет N : (1)346923 [09:15:25]line ИНН: 02508201610067 [09:15:25]line Контрольно-Кассовый Чек [09:15:25]line ПРОДАЖА [09:15:25]line ТРК (МРК, ГНК) : 31 [09:15:25]line Товар: 2710124130 [09:15:25]line SUPER-92-К-5 [09:15:25]line 7.660 * 65.30 [09:15:25]line = 500.20 [09:15:25]line НДС 12% НСП 1% [09:15:25]line > о реализуемом товаре [09:15:25]line ОКРУГЛЕНИЕ: -0.20 [09:15:25]line ИТОГО: 500.00 [09:15:25]line Внесено: 500.00 [09:15:25]line СДАЧА: 0.00 [09:15:25]line НСП 1% : 4.43 [09:15:25]line НДС 12% : 53.12 [09:15:25]line Наличными: 500.00 [09:15:25]line Безнал.: 0.00 [09:15:25]line Место: АЗС № 108 "Партнер Нефть" [09:15:25]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [09:15:25]line СНО: Общий режим [09:15:25]line Чек 56 12.04.2024 09:15 [09:15:25]line Смена: 113 ФФД: 1.0 [09:15:25]line ЗНМ: 0300000027 [09:15:25]line РНМ: 0000138879044617 [09:15:25]line Версия ККМ: 001 [09:15:25]line ФМ: 0000000000963154 [09:15:25]line ФД: 28607 [09:15:25]line ФПД: 197314460789547 [09:15:25]line 1/tax-web-control/client/api/v1/ticket?date=20240412T091531&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28607&fm=197314460789547&tin=02508201610067®Number=0000138879044617&sum=50000 [09:15:26]written 0, free lines is 4095 [09:15:26]Write to MH i2c: 01 00 00 3A 68 A2 [09:15:26]Write i2c OK [09:15:26]MH_I2C_Read... [09:15:26]Read from MH i2c: 01 [09:15:26]MH_I2C_Read... [09:15:26]Read from MH i2c: 01 07 00 [09:15:26]MH_I2C_Read... [09:15:26]Read from MH i2c: 01 07 00 3A 68 00 00 00 00 00 C1 0C 76 [09:15:26]RasterBufferAndPrint [09:15:26]line [09:15:26]line [09:15:26]line [09:15:26]line [09:15:26]line [09:15:26]written 0, free lines is 3269 [09:15:26]MH_Cut [09:15:26]Write to MH i2c: D1 01 00 41 68 01 7B [09:15:26]Write i2c OK [09:15:26]MH_I2C_Read... [09:15:26]Read from MH i2c: D1 [09:15:26]MH_I2C_Read... [09:15:26]Read from MH i2c: D1 01 00 [09:15:26]MH_I2C_Read... [09:15:26]Read from MH i2c: D1 01 00 41 68 00 7A [09:15:26]Write to MH i2c: 01 00 00 42 68 AA [09:15:26]Write i2c OK [09:15:26]MH_I2C_Read... [09:15:27]*** Cut start [09:15:27]*** Partial cut [09:15:27]*** CUTSNS_PIN = 1 [09:15:27]*** CUTSNS_PIN = 0 [09:15:27]*** Brake cut motor [09:15:28]Read from MH i2c: 01 [09:15:28]MH_I2C_Read... [09:15:28]*** Stop cut motor [09:15:28]*** Cut end [09:15:28]Read from MH i2c: 01 07 00 [09:15:28]MH_I2C_Read... [09:15:28]Read from MH i2c: 01 07 00 42 68 00 00 00 00 00 FF 0F BF [09:15:28]process_action close_receipt done [09:15:28]requested_data is exist [09:15:28]produce_requested_data [09:15:28]requested_item fm.sn is exist - process it [09:15:28]wFMCommunicate request_size=4 [09:15:28]MH_SAM_APDU [09:15:28]CAPDU: 80 11 00 00 [09:15:28]Write to MH i2c: E2 08 00 43 68 80 11 00 00 00 00 00 00 25 [09:15:28]Write i2c OK [09:15:28]MH_I2C_Read... [09:15:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:15:28]Read from MH i2c: E2 [09:15:28]MH_I2C_Read... [09:15:28]Read from MH i2c: E2 17 00 [09:15:28]MH_I2C_Read... [09:15:28]Read from MH i2c: E2 17 00 43 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 74 [09:15:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:15:28]wFMCommunicate OK [09:15:28]requested_item fd.num is exist - process it [09:15:28]SAM_PROTO_GetFieldsCounters [09:15:28]wFMCommunicate request_size=4 [09:15:28]MH_SAM_APDU [09:15:28]CAPDU: 80 13 00 00 [09:15:28]Write to MH i2c: E2 08 00 44 68 80 13 00 00 00 00 00 00 28 [09:15:28]Write i2c OK [09:15:28]MH_I2C_Read... [09:15:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:15:28]Read from MH i2c: E2 [09:15:28]MH_I2C_Read... [09:15:28]Read from MH i2c: E2 62 00 [09:15:28]MH_I2C_Read... [09:15:28]Read from MH i2c: E2 62 00 44 68 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 BF 6F 00 00 0E 04 04 00 71 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 AD [09:15:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 BF 6F 00 00 0E 04 04 00 71 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 [09:15:28]wFMCommunicate OK [09:15:28]SAM_PROTO_GetFieldsCounters done [09:15:28]requested_item shift.num is exist - process it [09:15:28]requested_item shift.opened is exist - process it [09:15:28]req_shift_opened [09:15:28]FM_GetShiftState [09:15:28]SAM_PROTO_GetShiftState [09:15:28]wFMCommunicate request_size=4 [09:15:28]MH_SAM_APDU [09:15:28]CAPDU: 80 13 01 00 [09:15:28]Write to MH i2c: E2 08 00 45 68 80 13 01 00 00 00 00 00 2A [09:15:28]Write i2c OK [09:15:28]MH_I2C_Read... [09:15:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:15:28]Read from MH i2c: E2 [09:15:28]MH_I2C_Read... [09:15:28]Read from MH i2c: E2 0E 00 [09:15:28]MH_I2C_Read... [09:15:28]Read from MH i2c: E2 0E 00 45 68 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 3B [09:15:28]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [09:15:28]wFMCommunicate OK [09:15:28]SAM_PROTO_GetShiftState done [09:15:28]FM_GetShiftState done [09:15:28]req_shift_opened done [09:15:28]requested_item shift.open_date is exist - process it [09:15:28]req_shift_open_date [09:15:28]req_shift_open_date done [09:15:28]produce_requested_data done [09:15:28]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28607,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [09:15:28]process_action_free close_receipt [09:15:28]json_value_free [09:15:28]json_value_free done [09:15:28]process_json_proto returns [09:15:28]Send response to host [09:15:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28607,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [09:15:28]free response buf [09:15:28]execute_script done [09:15:28]execute_script returns [09:15:28]free content buf [09:15:28]Sock 7.Close socket [09:15:28]Sock 7.Thread stoped [09:16:25]ConnectInit Can't connect to host [09:16:25]CommunicateWithHost connect error [09:16:25]CommunicateWithHost err = -1 [09:16:25]OFD Sender: Server communicate error [09:16:25]OFD Sender: Processing packet 28606 [packets to send 9, broken 7] [09:16:25]ProducePacketName [09:16:25]name=ofd_packets/00028606 [09:16:25]OFD Sender: To server: pG, [09:16:25]CommunicateWithHost lk.salyk.kg:30040 [09:16:25]ConnectInit lk.salyk.kg [09:16:25]Connected sock=7 [09:16:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 FD 32 07 01 8B BF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7C 24 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 98 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 EA 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 37 00 00 00 F4 03 04 00 68 FB 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BE 6F 00 00 35 04 06 00 A1 3F 0B 7B 61 43 34 D9 A1 30 5F E6 11 13 [09:16:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 5F AF 47 00 6E C6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BE 6F 00 00 F4 03 04 00 99 A6 18 66 B6 04 01 00 00 D4 29 A7 9E 1F 16 EA 15 [09:16:25]CommunicateWithHost err = 0 [09:16:25]CheckOFDResponse [09:16:25]1017 (14) - 77093643461234 [09:16:25]1041 (16) - 0000000000963154 [09:16:25]1040 (4) - 28606 [09:16:25]1012 (4) - 12.04.2024 03:12 [09:16:25]1206 (1) - 0 [09:16:25]OFD Sender: Remove packet 28606 [09:16:25]ProducePacketName [09:16:25]name=ofd_packets/00028606 [09:16:25]NVStorageDeleteData [09:16:26]OFD Sender: Processing packet 28607 [packets to send 8, broken 7] [09:16:26]ProducePacketName [09:16:26]name=ofd_packets/00028607 [09:16:26]OFD Sender: To server: pG, [09:16:26]CommunicateWithHost lk.salyk.kg:30040 [09:16:26]ConnectInit lk.salyk.kg [09:16:26]Connected sock=7 [09:16:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 29 30 08 01 8E B6 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 1D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 64 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 B3 FB 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BF 6F 00 00 35 04 06 00 B3 74 DA 58 2B 2B 02 B2 B9 EA 6D 57 68 12 [09:16:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 C4 91 47 00 F9 D4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BF 6F 00 00 F4 03 04 00 9A A6 18 66 B6 04 01 00 00 66 D6 B5 E7 B5 CC 8C 01 [09:16:26]CommunicateWithHost err = 0 [09:16:26]CheckOFDResponse [09:16:26]1017 (14) - 77093643461234 [09:16:26]1041 (16) - 0000000000963154 [09:16:26]1040 (4) - 28607 [09:16:26]1012 (4) - 12.04.2024 03:12 [09:16:26]1206 (1) - 0 [09:16:26]OFD Sender: Remove packet 28607 [09:16:26]ProducePacketName [09:16:26]name=ofd_packets/00028607 [09:16:26]NVStorageDeleteData [09:16:26]OFD Sender: No OFD packet to send [09:16:31]OFD Sender: No OFD packet to send [09:16:36]OFD Sender: No OFD packet to send [09:16:41]OFD Sender: No OFD packet to send [09:16:46]OFD Sender: No OFD packet to send [09:16:51]OFD Sender: No OFD packet to send [09:16:56]OFD Sender: No OFD packet to send [09:17:01]OFD Sender: No OFD packet to send [09:17:04]accept exits with 9 [09:17:04]New connection [09:17:04]New thread 3066641764 created [09:17:04]Thread 3066498404 joined [09:17:04]Waiting for new connection... [09:17:04] Sock 9.Parse request [09:17:04]Sock 9.Check first char [09:17:04]Sock 9.First char is OK [09:17:04]request: POST /json_proto HTTP/1.0 [09:17:04]Method: POST [09:17:04]URL: /json_proto [09:17:04]Method is POST - this is cgi request [09:17:04]url: /json_proto [09:17:04]query_string will be loaded in cgi processing [09:17:04]execute_cgi json_proto POST (null) [09:17:04]execute_cgi path=json_proto method=POST [09:17:04]POST find Content-Length [09:17:04]Host: 172.17.33.3:8080 [09:17:04]Content-Length: 682 [09:17:04]Content-Type: application/json [09:17:04] [09:17:04]POST finish read [09:17:04]Found Content-Length = 682 [09:17:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346925", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 15.560, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:17:04]execute_script... [09:17: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)346925", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 15.560, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:17:04]POST & json_proto [09:17:04]process_json_proto [09:17:04]json parsed OK: [09:17:04]protocol is kg_v1.0 [09:17:04]action value=close_receipt [09:17:04]process_action close_receipt [09:17:04]cmd_close_receipt [09:17:04]MH_GetDate [09:17:04]Write to MH i2c: F0 00 00 46 68 9D [09:17:04]Write i2c OK [09:17:04]MH_I2C_Read... [09:17:04]Read from MH i2c: F0 [09:17:04]MH_I2C_Read... [09:17:04]Read from MH i2c: F0 09 00 [09:17:04]MH_I2C_Read... [09:17:04]Read from MH i2c: F0 09 00 46 68 00 17 FC 18 66 23 5B 8F 65 A9 [09:17:04]GetLastDocTimeStamp 1712913331 [09:17:04]current date 1712913431 [09:17:04]FM_GetShiftState [09:17:04]SAM_PROTO_GetShiftState [09:17:04]wFMCommunicate request_size=4 [09:17:04]MH_SAM_APDU [09:17:04]CAPDU: 80 13 01 00 [09:17:04]Write to MH i2c: E2 08 00 47 68 80 13 01 00 00 00 00 00 2C [09:17:04]Write i2c OK [09:17:04]MH_I2C_Read... [09:17:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:17:04]Read from MH i2c: E2 [09:17:04]MH_I2C_Read... [09:17:04]Read from MH i2c: E2 0E 00 [09:17:04]MH_I2C_Read... [09:17:04]Read from MH i2c: E2 0E 00 47 68 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 3D [09:17:04]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [09:17:04]wFMCommunicate OK [09:17:04]SAM_PROTO_GetShiftState done [09:17:04]FM_GetShiftState done [09:17:04]opened in 1712881416 [09:17:04]opened+sec_in_day 1712967816 [09:17:04]quantity*price = 100050 [09:17:04]sum+1 = 100052 [09:17:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 57 12.04.2024 09:17 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28608 ФПД: 68112762532954 1/tax-web-control/client/api/v1/ticket?date=20240412T091711&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28608&fm=68112762532954&tin=02508201610067®Number=0000138879044617&sum=100000 [09:17:05]StoreToDocumentArchive [09:17:05]shift 113 fd 28608 [09:17:05]save to /storage/0113/doc_00028608 [09:17:05]save last doc name /storage/0113/doc_00028608 to /storage/kkm_last_doc_name [09:17:05]save OK [09:17:05]Clear old archive folders... [09:17:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:17:05]tlvbuf is 01ABBF40 [09:17:05]SAM_PROTO_ClearQueue [09:17:05]wFMCommunicate request_size=4 [09:17:05]MH_SAM_APDU [09:17:05]CAPDU: 80 09 00 00 [09:17:05]Write to MH i2c: E2 08 00 54 68 80 09 00 00 00 00 00 00 2E [09:17:05]Write i2c OK [09:17:05]MH_I2C_Read... [09:17:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:17:05]Read from MH i2c: E2 [09:17:05]MH_I2C_Read... [09:17:05]Read from MH i2c: E2 03 00 [09:17:05]MH_I2C_Read... [09:17:05]Read from MH i2c: E2 03 00 54 68 00 90 00 30 [09:17:05]RAPDU: 90 00 [09:17:05]wFMCommunicate OK [09:17:05]SAM_PROTO_ClearQueue done [09:17:05]KKMCreateOFDPacket [09:17:05]OFDProtocolAddRootSTLVToBuf [09:17:05]FM_MakeSignedData [09:17:05]FM_MakeSignedData [09:17:05]SAM_PROTO_SignData [09:17:05]wFMCommunicate request_size=4 [09:17:05]MH_SAM_APDU [09:17:05]CAPDU: 80 0D 01 02 [09:17:05]Write to MH i2c: E2 08 00 55 68 80 0D 01 02 00 00 00 00 36 [09:17:05]Write i2c OK [09:17:05]MH_I2C_Read... [09:17:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:17:05]Read from MH i2c: E2 [09:17:05]MH_I2C_Read... [09:17:05]Read from MH i2c: E2 03 00 [09:17:05]MH_I2C_Read... [09:17:05]Read from MH i2c: E2 03 00 55 68 00 90 00 31 [09:17:05]RAPDU: 90 00 [09:17:05]wFMCommunicate OK [09:17:05]wFMCommunicate request_size=255 [09:17:05]MH_SAM_APDU [09:17: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 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 17 FC 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C0 6F 00 00 35 04 06 00 3D [09:17:05]Write to MH i2c: E2 02 01 56 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 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 17 FC 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C0 6F 00 00 35 04 06 00 3D 00 00 09 [09:17:05]Write i2c OK [09:17:05]MH_I2C_Read... [09:17:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:17:06]Read from MH i2c: E2 [09:17:06]MH_I2C_Read... [09:17:06]Read from MH i2c: E2 03 00 [09:17:06]MH_I2C_Read... [09:17:06]Read from MH i2c: E2 03 00 56 68 00 90 00 32 [09:17:06]RAPDU: 90 00 [09:17:06]wFMCommunicate OK [09:17:06]wFMCommunicate request_size=10 [09:17:06]MH_SAM_APDU [09:17:06]CAPDU: 80 0D 02 02 05 F2 BD 03 F4 5A [09:17:06]Write to MH i2c: E2 0D 00 57 68 80 0D 02 02 05 00 F2 BD 03 F4 5A 00 00 43 [09:17:06]Write i2c OK [09:17:06]MH_I2C_Read... [09:17:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:17:06]Read from MH i2c: E2 [09:17:06]MH_I2C_Read... [09:17:06]Read from MH i2c: E2 03 00 [09:17:06]MH_I2C_Read... [09:17:06]Read from MH i2c: E2 03 00 57 68 00 90 00 33 [09:17:06]RAPDU: 90 00 [09:17:06]wFMCommunicate OK [09:17:06]wFMCommunicate request_size=4 [09:17:06]MH_SAM_APDU [09:17:06]CAPDU: 80 0D 03 02 [09:17:06]Write to MH i2c: E2 08 00 58 68 80 0D 03 02 00 00 00 00 3B [09:17:06]Write i2c OK [09:17:06]MH_I2C_Read... [09:17:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:17:06]Read from MH i2c: E2 [09:17:06]MH_I2C_Read... [09:17:06]Read from MH i2c: E2 0B 00 [09:17:06]MH_I2C_Read... [09:17:06]Read from MH i2c: E2 0B 00 58 68 00 36 73 42 B6 75 AB B0 C7 90 00 74 [09:17:06]RAPDU: 36 73 42 B6 75 AB B0 C7 90 00 [09:17:06]wFMCommunicate OK [09:17:06]SAM_PROTO_SignData done [09:17:06]FM_MakeSignedData done [09:17:06]CreateOFDProtocolMessage [09:17:06]wFMCommunicate request_size=4 [09:17:06]MH_SAM_APDU [09:17:06]CAPDU: 80 11 00 00 [09:17:06]Write to MH i2c: E2 08 00 59 68 80 11 00 00 00 00 00 00 3B [09:17:06]Write i2c OK [09:17:06]MH_I2C_Read... [09:17:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:17:06]Read from MH i2c: E2 [09:17:06]MH_I2C_Read... [09:17:06]Read from MH i2c: E2 17 00 [09:17:06]MH_I2C_Read... [09:17:06]Read from MH i2c: E2 17 00 59 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 8A [09:17:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:17:06]wFMCommunicate OK [09:17:06]CreateOFDProtocolMessage done [09:17:06]OFDSenderStorePacket 28608 [09:17:06]StoreOFDPacket docnum=28608 [09:17:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 72 0C 07 01 B9 51 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 17 FC 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C0 6F 00 00 35 04 06 00 3D F2 BD 03 F4 5A 36 73 42 B6 75 AB B0 C7 [09:17:06]CheckFolder [09:17:06]dirname=/storage/ofd_packets [09:17:06]CheckFolder done [09:17:06]ProducePacketName [09:17:06]name=ofd_packets/00028608 [09:17:06]NVStorageSaveData ofd_packets/00028608 [09:17:06]File name is /storage/ofd_packets/00028608 [09:17:06]Write 301 bytes [09:17:06]NVStorageSaveData done [09:17:06]OFDSenderStorePacket done [09:17:06]KKMCreateOFDPacket done [09:17:06]NVStorageSaveData kkm_last_timestamp [09:17:06]File name is /storage/kkm_last_timestamp [09:17:06]Write 4 bytes [09:17:06]NVStorageSaveData done [09:17:06]ExternCall_PrintAddStr [09:17:06]wPrintStart [09:17:06]Write to MH i2c: 01 00 00 5A 68 C2 [09:17:06]Write i2c OK [09:17:06]MH_I2C_Read... [09:17:06]Read from MH i2c: 01 [09:17:06]MH_I2C_Read... [09:17:06]Read from MH i2c: 01 07 00 [09:17:06]MH_I2C_Read... [09:17:06]Read from MH i2c: 01 07 00 5A 68 00 00 00 00 00 FF 0F D7 [09:17:06]RasterBufferAndPrint [09:17:06]line Счет N : (1)346925 [09:17:06]line ИНН: 02508201610067 [09:17:06]line Контрольно-Кассовый Чек [09:17:06]line ПРОДАЖА [09:17:06]line ТРК (МРК, ГНК) : 13 [09:17:06]line Товар: 2710124130 [09:17:06]line Аи-92-К-5 [09:17:06]line 15.560 * 64.30 [09:17:06]line = 1000.51 [09:17:06]line НДС 12% НСП 1% [09:17:06]line > о реализуемом товаре [09:17:06]line ОКРУГЛЕНИЕ: -0.51 [09:17:06]line ИТОГО: 1000.00 [09:17:06]line Внесено: 1000.00 [09:17:06]line СДАЧА: 0.00 [09:17:06]line НСП 1% : 8.85 [09:17:06]line НДС 12% : 106.25 [09:17:06]line Наличными: 1000.00 [09:17:06]line Безнал.: 0.00 [09:17:06]line Место: АЗС № 108 "Партнер Нефть" [09:17:06]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [09:17:06]line СНО: Общий режим [09:17:06]line Чек 57 12.04.2024 09:17 [09:17:06]line Смена: 113 ФФД: 1.0 [09:17:06]line ЗНМ: 0300000027 [09:17:06]line РНМ: 0000138879044617 [09:17:06]line Версия ККМ: 001 [09:17:06]line ФМ: 0000000000963154 [09:17:06]line ФД: 28608 [09:17:06]line ФПД: 68112762532954 [09:17:06]line 1/tax-web-control/client/api/v1/ticket?date=20240412T091711&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28608&fm=68112762532954&tin=02508201610067®Number=0000138879044617&sum=100000 [09:17:06]OFD Sender: Processing packet 28608 [packets to send 8, broken 7] [09:17:06]ProducePacketName [09:17:06]name=ofd_packets/00028608 [09:17:06]OFD Sender: To server: pG, [09:17:06]CommunicateWithHost lk.salyk.kg:30040 [09:17:06]ConnectInit lk.salyk.kg [09:17:06]written 0, free lines is 4095 [09:17:06]Connected sock=10 [09:17:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 72 0C 07 01 B9 51 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 17 FC 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C0 6F 00 00 35 04 06 00 3D F2 BD 03 F4 5A 36 73 42 B6 75 AB B0 C7 [09:17:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 96 21 47 00 F4 F1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C0 6F 00 00 F4 03 04 00 C2 A6 18 66 B6 04 01 00 00 4A A9 F7 74 CE 26 EF DB [09:17:06]CommunicateWithHost err = 0 [09:17:06]CheckOFDResponse [09:17:06]1017 (14) - 77093643461234 [09:17:06]1041 (16) - 0000000000963154 [09:17:06]1040 (4) - 28608 [09:17:06]1012 (4) - 12.04.2024 03:13 [09:17:06]1206 (1) - 0 [09:17:06]OFD Sender: Remove packet 28608 [09:17:06]ProducePacketName [09:17:06]name=ofd_packets/00028608 [09:17:06]NVStorageDeleteData [09:17:07]Write to MH i2c: 01 00 00 84 68 EC [09:17:07]Write i2c OK [09:17:07]MH_I2C_Read... [09:17:07]Read from MH i2c: 01 [09:17:07]MH_I2C_Read... [09:17:07]Read from MH i2c: 01 07 00 [09:17:07]MH_I2C_Read... [09:17:07]Read from MH i2c: 01 07 00 84 68 00 00 00 00 00 CA 0C C9 [09:17:07]RasterBufferAndPrint [09:17:07]line [09:17:07]line [09:17:07]line [09:17:07]line [09:17:07]line [09:17:07]written 0, free lines is 3280 [09:17:07]MH_Cut [09:17:07]Write to MH i2c: D1 01 00 8B 68 01 C5 [09:17:07]Write i2c OK [09:17:07]MH_I2C_Read... [09:17:07]Read from MH i2c: D1 [09:17:07]MH_I2C_Read... [09:17:07]Read from MH i2c: D1 01 00 [09:17:07]MH_I2C_Read... [09:17:07]Read from MH i2c: D1 01 00 8B 68 00 C4 [09:17:07]Write to MH i2c: 01 00 00 8C 68 F4 [09:17:07]Write i2c OK [09:17:07]MH_I2C_Read... [09:17:07]OFD Sender: No OFD packet to send [09:17:07]*** Cut start [09:17:07]*** Partial cut [09:17:07]*** CUTSNS_PIN = 1 [09:17:07]*** CUTSNS_PIN = 0 [09:17:08]*** Brake cut motor [09:17:08]Read from MH i2c: 01 [09:17:08]MH_I2C_Read... [09:17:08]*** Stop cut motor [09:17:08]*** Cut end [09:17:08]Read from MH i2c: 01 07 00 [09:17:08]MH_I2C_Read... [09:17:08]Read from MH i2c: 01 07 00 8C 68 00 00 00 00 00 FF 0F 09 [09:17:08]process_action close_receipt done [09:17:08]requested_data is exist [09:17:08]produce_requested_data [09:17:08]requested_item fm.sn is exist - process it [09:17:08]wFMCommunicate request_size=4 [09:17:08]MH_SAM_APDU [09:17:08]CAPDU: 80 11 00 00 [09:17:08]Write to MH i2c: E2 08 00 8D 68 80 11 00 00 00 00 00 00 6F [09:17:08]Write i2c OK [09:17:08]MH_I2C_Read... [09:17:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:17:08]Read from MH i2c: E2 [09:17:08]MH_I2C_Read... [09:17:08]Read from MH i2c: E2 17 00 [09:17:08]MH_I2C_Read... [09:17:08]Read from MH i2c: E2 17 00 8D 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 BE [09:17:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:17:08]wFMCommunicate OK [09:17:08]requested_item fd.num is exist - process it [09:17:08]SAM_PROTO_GetFieldsCounters [09:17:08]wFMCommunicate request_size=4 [09:17:08]MH_SAM_APDU [09:17:08]CAPDU: 80 13 00 00 [09:17:08]Write to MH i2c: E2 08 00 8E 68 80 13 00 00 00 00 00 00 72 [09:17:08]Write i2c OK [09:17:08]MH_I2C_Read... [09:17:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:17:08]Read from MH i2c: E2 [09:17:08]MH_I2C_Read... [09:17:08]Read from MH i2c: E2 62 00 [09:17:08]MH_I2C_Read... [09:17:08]Read from MH i2c: E2 62 00 8E 68 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 C0 6F 00 00 0E 04 04 00 71 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 FB [09:17:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 C0 6F 00 00 0E 04 04 00 71 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 [09:17:08]wFMCommunicate OK [09:17:08]SAM_PROTO_GetFieldsCounters done [09:17:08]requested_item shift.num is exist - process it [09:17:08]requested_item shift.opened is exist - process it [09:17:08]req_shift_opened [09:17:08]FM_GetShiftState [09:17:08]SAM_PROTO_GetShiftState [09:17:08]wFMCommunicate request_size=4 [09:17:08]MH_SAM_APDU [09:17:08]CAPDU: 80 13 01 00 [09:17:08]Write to MH i2c: E2 08 00 8F 68 80 13 01 00 00 00 00 00 74 [09:17:08]Write i2c OK [09:17:08]MH_I2C_Read... [09:17:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:17:08]Read from MH i2c: E2 [09:17:08]MH_I2C_Read... [09:17:08]Read from MH i2c: E2 0E 00 [09:17:08]MH_I2C_Read... [09:17:08]Read from MH i2c: E2 0E 00 8F 68 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 85 [09:17:08]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [09:17:08]wFMCommunicate OK [09:17:08]SAM_PROTO_GetShiftState done [09:17:08]FM_GetShiftState done [09:17:08]req_shift_opened done [09:17:08]requested_item shift.open_date is exist - process it [09:17:08]req_shift_open_date [09:17:08]req_shift_open_date done [09:17:08]produce_requested_data done [09:17:08]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28608,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [09:17:08]process_action_free close_receipt [09:17:08]json_value_free [09:17:08]json_value_free done [09:17:08]process_json_proto returns [09:17:08]Send response to host [09:17:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28608,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [09:17:08]free response buf [09:17:08]execute_script done [09:17:08]execute_script returns [09:17:08]free content buf [09:17:08]Sock 9.Close socket [09:17:08]Sock 9.Thread stoped [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:36]accept exits with 7 [09:17:36]New connection [09:17:36]New thread 3066498404 created [09:17:36]Thread 3066641764 joined [09:17:36]Waiting for new connection... [09:17:36] Sock 7.Parse request [09:17:36]Sock 7.Check first char [09:17:36]Sock 7.First char is OK [09:17:36]request: POST /json_proto HTTP/1.0 [09:17:36]Method: POST [09:17:36]URL: /json_proto [09:17:36]Method is POST - this is cgi request [09:17:36]url: /json_proto [09:17:36]query_string will be loaded in cgi processing [09:17:36]execute_cgi json_proto POST (null) [09:17:36]execute_cgi path=json_proto method=POST [09:17:36]POST find Content-Length [09:17:36]Host: 172.17.33.3:8080 [09:17:36]Content-Length: 1175 [09:17:36]Content-Type: application/json [09:17:36] [09:17:36]POST finish read [09:17:36]Found Content-Length = 1175 [09:17:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)346924\u000A12.04.2024 08:59\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 64.30\u000A\u0418\u0422\u041E\u0413: 1286.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30096541\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:17:36]execute_script... [09:17:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)346924\u000A12.04.2024 08:59\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 64.30\u000A\u0418\u0422\u041E\u0413: 1286.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30096541\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:17:36]POST & json_proto [09:17:36]process_json_proto [09:17:36]json parsed OK: [09:17:36]protocol is kg_v1.0 [09:17:36]action value=print_text [09:17:36]process_action print_text [09:17:36]cmd_print_text [09:17:36]ExternCall_PrintAddStr [09:17:36]wPrintStart [09:17:36]Write to MH i2c: 01 00 00 90 68 F8 [09:17:36]Write i2c OK [09:17:36]MH_I2C_Read... [09:17:36]Read from MH i2c: 01 [09:17:36]MH_I2C_Read... [09:17:36]Read from MH i2c: 01 07 00 [09:17:36]MH_I2C_Read... [09:17:36]Read from MH i2c: 01 07 00 90 68 00 00 00 00 00 FF 0F 0D [09:17:36]RasterBufferAndPrint [09:17:36]line *****ТОВАРНЫЙ ЧЕК***** [09:17:36]line АЗС 108 [09:17:36]line Партнер нефть [09:17:36]line 02508201610067 [09:17:36]line Кассир : Джумагулова Н. [09:17:36]line Счет N : (1)346924 [09:17:36]line 12.04.2024 08:59 [09:17:36]line ПРОДАЖА [09:17:36]line ТРК (МРК, ГНК): 42 [09:17:36]line Вид ГСМ : 2710124130 [09:17:36]line Аи-92-К-5 [09:17:36]line 20.000 x 64.30 [09:17:36]line ИТОГ: 1286.00 [09:17:36]line Тип оплаты: Талоны: ТК ГПНА Online [09:17:36]line 30096541 [09:17:36]line ______________________ [09:17:36]line (подпись) [09:17:36]written 0, free lines is 4095 [09:17:36]Write to MH i2c: 01 00 00 A5 68 0D [09:17:36]Write i2c OK [09:17:36]MH_I2C_Read... [09:17:36]Read from MH i2c: 01 [09:17:36]MH_I2C_Read... [09:17:36]Read from MH i2c: 01 07 00 [09:17:36]MH_I2C_Read... [09:17:36]Read from MH i2c: 01 07 00 A5 68 00 00 00 00 00 F7 0D 18 [09:17:36]RasterBufferAndPrint [09:17:36]line [09:17:36]line [09:17:36]line [09:17:36]line [09:17:36]line [09:17:36]written 0, free lines is 3577 [09:17:36]MH_Cut [09:17:36]Write to MH i2c: D1 01 00 AC 68 01 E6 [09:17:36]Write i2c OK [09:17:36]MH_I2C_Read... [09:17:36]Read from MH i2c: D1 [09:17:36]MH_I2C_Read... [09:17:36]Read from MH i2c: D1 01 00 [09:17:36]MH_I2C_Read... [09:17:36]Read from MH i2c: D1 01 00 AC 68 00 E5 [09:17:36]Write to MH i2c: 01 00 00 AD 68 15 [09:17:36]Write i2c OK [09:17:36]MH_I2C_Read... [09:17:36]*** Cut start [09:17:36]*** Partial cut [09:17:36]*** CUTSNS_PIN = 1 [09:17:36]*** CUTSNS_PIN = 0 [09:17:37]*** Brake cut motor [09:17:37]OFD Sender: No OFD packet to send [09:17:37]Read from MH i2c: 01 [09:17:37]MH_I2C_Read... [09:17:37]*** Stop cut motor [09:17:37]*** Cut end [09:17:37]Read from MH i2c: 01 07 00 [09:17:37]MH_I2C_Read... [09:17:37]Read from MH i2c: 01 07 00 AD 68 00 00 00 00 00 FF 0F 2A [09:17:37]process_action print_text done [09:17:37]requested_data is exist [09:17:37]produce_requested_data [09:17:37]requested_item fm.sn is exist - process it [09:17:37]wFMCommunicate request_size=4 [09:17:37]MH_SAM_APDU [09:17:37]CAPDU: 80 11 00 00 [09:17:37]Write to MH i2c: E2 08 00 AE 68 80 11 00 00 00 00 00 00 90 [09:17:37]Write i2c OK [09:17:37]MH_I2C_Read... [09:17:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:17:37]Read from MH i2c: E2 [09:17:37]MH_I2C_Read... [09:17:37]Read from MH i2c: E2 17 00 [09:17:37]MH_I2C_Read... [09:17:37]Read from MH i2c: E2 17 00 AE 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 DF [09:17:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:17:37]wFMCommunicate OK [09:17:37]requested_item fd.num is exist - process it [09:17:37]SAM_PROTO_GetFieldsCounters [09:17:37]wFMCommunicate request_size=4 [09:17:37]MH_SAM_APDU [09:17:37]CAPDU: 80 13 00 00 [09:17:37]Write to MH i2c: E2 08 00 AF 68 80 13 00 00 00 00 00 00 93 [09:17:37]Write i2c OK [09:17:37]MH_I2C_Read... [09:17:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:17:37]Read from MH i2c: E2 [09:17:37]MH_I2C_Read... [09:17:37]Read from MH i2c: E2 62 00 [09:17:37]MH_I2C_Read... [09:17:37]Read from MH i2c: E2 62 00 AF 68 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 C0 6F 00 00 0E 04 04 00 71 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 1C [09:17:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 C0 6F 00 00 0E 04 04 00 71 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 [09:17:37]wFMCommunicate OK [09:17:37]SAM_PROTO_GetFieldsCounters done [09:17:37]requested_item shift.num is exist - process it [09:17:37]requested_item shift.opened is exist - process it [09:17:37]req_shift_opened [09:17:37]FM_GetShiftState [09:17:37]SAM_PROTO_GetShiftState [09:17:37]wFMCommunicate request_size=4 [09:17:37]MH_SAM_APDU [09:17:37]CAPDU: 80 13 01 00 [09:17:37]Write to MH i2c: E2 08 00 B0 68 80 13 01 00 00 00 00 00 95 [09:17:37]Write i2c OK [09:17:37]MH_I2C_Read... [09:17:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:17:37]Read from MH i2c: E2 [09:17:37]MH_I2C_Read... [09:17:37]Read from MH i2c: E2 0E 00 [09:17:37]MH_I2C_Read... [09:17:37]Read from MH i2c: E2 0E 00 B0 68 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 A6 [09:17:37]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [09:17:37]wFMCommunicate OK [09:17:37]SAM_PROTO_GetShiftState done [09:17:37]FM_GetShiftState done [09:17:37]req_shift_opened done [09:17:37]requested_item shift.open_date is exist - process it [09:17:37]req_shift_open_date [09:17:37]req_shift_open_date done [09:17:37]produce_requested_data done [09:17:37]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28608,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [09:17:37]process_action_free print_text [09:17:37]json_value_free [09:17:37]json_value_free done [09:17:37]process_json_proto returns [09:17:37]Send response to host [09:17:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28608,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [09:17:37]free response buf [09:17:37]execute_script done [09:17:37]execute_script returns [09:17:37]free content buf [09:17:37]Sock 7.Close socket [09:17:37]Sock 7.Thread stoped [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]accept exits with 9 [09:18:47]New connection [09:18:47]OFD Sender: No OFD packet to send [09:18:47]New thread 3066641764 created [09:18:47] Sock 9.Parse request [09:18:47]Thread 3066498404 joined [09:18:47]Sock 9.Check first char [09:18:47]Waiting for new connection... [09:18:47]Sock 9.First char is OK [09:18:47]request: POST /json_proto HTTP/1.0 [09:18:47]Method: POST [09:18:47]URL: /json_proto [09:18:47]Method is POST - this is cgi request [09:18:47]url: /json_proto [09:18:47]query_string will be loaded in cgi processing [09:18:47]execute_cgi json_proto POST (null) [09:18:47]execute_cgi path=json_proto method=POST [09:18:47]POST find Content-Length [09:18:47]Host: 172.17.33.3:8080 [09:18:47]Content-Length: 679 [09:18:47]Content-Type: application/json [09:18:47] [09:18:47]POST finish read [09:18:47]Found Content-Length = 679 [09:18:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346926", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 13.820, "sum" : 1000.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:18:47]execute_script... [09:18: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)346926", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 13.820, "sum" : 1000.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:18:47]POST & json_proto [09:18:47]process_json_proto [09:18:47]json parsed OK: [09:18:47]protocol is kg_v1.0 [09:18:47]action value=close_receipt [09:18:47]process_action close_receipt [09:18:47]cmd_close_receipt [09:18:47]MH_GetDate [09:18:47]Write to MH i2c: F0 00 00 B1 68 08 [09:18:47]Write i2c OK [09:18:47]MH_I2C_Read... [09:18:47]Read from MH i2c: F0 [09:18:47]MH_I2C_Read... [09:18:47]Read from MH i2c: F0 09 00 [09:18:47]MH_I2C_Read... [09:18:47]Read from MH i2c: F0 09 00 B1 68 00 7E FC 18 66 23 5B 8F 65 7B [09:18:47]GetLastDocTimeStamp 1712913431 [09:18:47]current date 1712913534 [09:18:47]FM_GetShiftState [09:18:47]SAM_PROTO_GetShiftState [09:18:47]wFMCommunicate request_size=4 [09:18:47]MH_SAM_APDU [09:18:47]CAPDU: 80 13 01 00 [09:18:47]Write to MH i2c: E2 08 00 B2 68 80 13 01 00 00 00 00 00 97 [09:18:47]Write i2c OK [09:18:47]MH_I2C_Read... [09:18:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:18:47]Read from MH i2c: E2 [09:18:47]MH_I2C_Read... [09:18:47]Read from MH i2c: E2 0E 00 [09:18:47]MH_I2C_Read... [09:18:47]Read from MH i2c: E2 0E 00 B2 68 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 A8 [09:18:47]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [09:18:47]wFMCommunicate OK [09:18:47]SAM_PROTO_GetShiftState done [09:18:47]FM_GetShiftState done [09:18:47]opened in 1712881416 [09:18:47]opened+sec_in_day 1712967816 [09:18:47]quantity*price = 100056 [09:18:47]sum+1 = 100058 [09:18:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 58 12.04.2024 09:18 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28609 ФПД: 127937695172909 1/tax-web-control/client/api/v1/ticket?date=20240412T091854&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28609&fm=127937695172909&tin=02508201610067®Number=0000138879044617&sum=100000 [09:18:48]StoreToDocumentArchive [09:18:48]shift 113 fd 28609 [09:18:48]save to /storage/0113/doc_00028609 [09:18:48]save last doc name /storage/0113/doc_00028609 to /storage/kkm_last_doc_name [09:18:48]save OK [09:18:48]Clear old archive folders... [09:18:48]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:18:48]tlvbuf is 01B5A930 [09:18:48]SAM_PROTO_ClearQueue [09:18:48]wFMCommunicate request_size=4 [09:18:48]MH_SAM_APDU [09:18:48]CAPDU: 80 09 00 00 [09:18:48]Write to MH i2c: E2 08 00 BF 68 80 09 00 00 00 00 00 00 99 [09:18:48]Write i2c OK [09:18:48]MH_I2C_Read... [09:18:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:18:48]Read from MH i2c: E2 [09:18:48]MH_I2C_Read... [09:18:48]Read from MH i2c: E2 03 00 [09:18:48]MH_I2C_Read... [09:18:48]Read from MH i2c: E2 03 00 BF 68 00 90 00 9B [09:18:48]RAPDU: 90 00 [09:18:48]wFMCommunicate OK [09:18:48]SAM_PROTO_ClearQueue done [09:18:48]KKMCreateOFDPacket [09:18:48]OFDProtocolAddRootSTLVToBuf [09:18:48]FM_MakeSignedData [09:18:48]FM_MakeSignedData [09:18:48]SAM_PROTO_SignData [09:18:48]wFMCommunicate request_size=4 [09:18:48]MH_SAM_APDU [09:18:48]CAPDU: 80 0D 01 02 [09:18:48]Write to MH i2c: E2 08 00 C0 68 80 0D 01 02 00 00 00 00 A1 [09:18:48]Write i2c OK [09:18:48]MH_I2C_Read... [09:18:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:18:48]Read from MH i2c: E2 [09:18:48]MH_I2C_Read... [09:18:48]Read from MH i2c: E2 03 00 [09:18:48]MH_I2C_Read... [09:18:48]Read from MH i2c: E2 03 00 C0 68 00 90 00 9C [09:18:48]RAPDU: 90 00 [09:18:48]wFMCommunicate OK [09:18:48]wFMCommunicate request_size=255 [09:18:48]MH_SAM_APDU [09:18: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 35 FF 03 08 00 03 FC 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D9 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 3A 00 00 00 F4 03 04 00 7E FC 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C1 6F 00 00 35 04 06 00 74 5B D0 DF [09:18:48]Write to MH i2c: E2 02 01 C1 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 35 FF 03 08 00 03 FC 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D9 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 3A 00 00 00 F4 03 04 00 7E FC 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C1 6F 00 00 35 04 06 00 74 5B D0 DF 00 00 D1 [09:18:48]Write i2c OK [09:18:48]MH_I2C_Read... [09:18:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:18:48]Read from MH i2c: E2 [09:18:48]MH_I2C_Read... [09:18:48]Read from MH i2c: E2 03 00 [09:18:48]MH_I2C_Read... [09:18:48]Read from MH i2c: E2 03 00 C1 68 00 90 00 9D [09:18:48]RAPDU: 90 00 [09:18:48]wFMCommunicate OK [09:18:48]wFMCommunicate request_size=7 [09:18:48]MH_SAM_APDU [09:18:48]CAPDU: 80 0D 02 02 02 C9 2D [09:18:48]Write to MH i2c: E2 0A 00 C2 68 80 0D 02 02 02 00 C9 2D 00 00 9E [09:18:48]Write i2c OK [09:18:48]MH_I2C_Read... [09:18:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:18:48]Read from MH i2c: E2 [09:18:48]MH_I2C_Read... [09:18:48]Read from MH i2c: E2 03 00 [09:18:48]MH_I2C_Read... [09:18:48]Read from MH i2c: E2 03 00 C2 68 00 90 00 9E [09:18:48]RAPDU: 90 00 [09:18:48]wFMCommunicate OK [09:18:48]wFMCommunicate request_size=4 [09:18:48]MH_SAM_APDU [09:18:48]CAPDU: 80 0D 03 02 [09:18:48]Write to MH i2c: E2 08 00 C3 68 80 0D 03 02 00 00 00 00 A6 [09:18:48]Write i2c OK [09:18:48]MH_I2C_Read... [09:18:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:18:49]Read from MH i2c: E2 [09:18:49]MH_I2C_Read... [09:18:49]Read from MH i2c: E2 0B 00 [09:18:49]MH_I2C_Read... [09:18:49]Read from MH i2c: E2 0B 00 C3 68 00 BD 3D 79 8C 05 8C 8E 07 90 00 CC [09:18:49]RAPDU: BD 3D 79 8C 05 8C 8E 07 90 00 [09:18:49]wFMCommunicate OK [09:18:49]SAM_PROTO_SignData done [09:18:49]FM_MakeSignedData done [09:18:49]CreateOFDProtocolMessage [09:18:49]wFMCommunicate request_size=4 [09:18:49]MH_SAM_APDU [09:18:49]CAPDU: 80 11 00 00 [09:18:49]Write to MH i2c: E2 08 00 C4 68 80 11 00 00 00 00 00 00 A6 [09:18:49]Write i2c OK [09:18:49]MH_I2C_Read... [09:18:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:18:49]Read from MH i2c: E2 [09:18:49]MH_I2C_Read... [09:18:49]Read from MH i2c: E2 17 00 [09:18:49]MH_I2C_Read... [09:18:49]Read from MH i2c: E2 17 00 C4 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 F5 [09:18:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:18:49]wFMCommunicate OK [09:18:49]CreateOFDProtocolMessage done [09:18:49]OFDSenderStorePacket 28609 [09:18:49]StoreOFDPacket docnum=28609 [09:18:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 53 F5 04 01 AD 5A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FC 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D9 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 3A 00 00 00 F4 03 04 00 7E FC 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C1 6F 00 00 35 04 06 00 74 5B D0 DF C9 2D BD 3D 79 8C 05 8C 8E 07 [09:18:49]CheckFolder [09:18:49]dirname=/storage/ofd_packets [09:18:49]CheckFolder done [09:18:49]ProducePacketName [09:18:49]name=ofd_packets/00028609 [09:18:49]NVStorageSaveData ofd_packets/00028609 [09:18:49]File name is /storage/ofd_packets/00028609 [09:18:49]Write 298 bytes [09:18:49]NVStorageSaveData done [09:18:49]OFDSenderStorePacket done [09:18:49]KKMCreateOFDPacket done [09:18:49]NVStorageSaveData kkm_last_timestamp [09:18:49]File name is /storage/kkm_last_timestamp [09:18:49]Write 4 bytes [09:18:49]NVStorageSaveData done [09:18:49]ExternCall_PrintAddStr [09:18:49]wPrintStart [09:18:49]Write to MH i2c: 01 00 00 C5 68 2D [09:18:49]Write i2c OK [09:18:49]MH_I2C_Read... [09:18:49]Read from MH i2c: 01 [09:18:49]MH_I2C_Read... [09:18:49]Read from MH i2c: 01 07 00 [09:18:49]MH_I2C_Read... [09:18:49]Read from MH i2c: 01 07 00 C5 68 00 00 00 00 00 FF 0F 42 [09:18:49]RasterBufferAndPrint [09:18:49]line Счет N : (1)346926 [09:18:49]line ИНН: 02508201610067 [09:18:49]line Контрольно-Кассовый Чек [09:18:49]line ПРОДАЖА [09:18:49]line ТРК (МРК, ГНК) : 51 [09:18:49]line Товар: 2710194210 [09:18:49]line ДТ-К-5 [09:18:49]line 13.820 * 72.40 [09:18:49]line = 1000.57 [09:18:49]line НДС 12% НСП 1% [09:18:49]line > о реализуемом товаре [09:18:49]line ОКРУГЛЕНИЕ: -0.57 [09:18:49]line ИТОГО: 1000.00 [09:18:49]line Внесено: 1000.00 [09:18:49]line СДАЧА: 0.00 [09:18:49]line НСП 1% : 8.85 [09:18:49]line НДС 12% : 106.25 [09:18:49]line Наличными: 1000.00 [09:18:49]line Безнал.: 0.00 [09:18:49]line Место: АЗС № 108 "Партнер Нефть" [09:18:49]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [09:18:49]line СНО: Общий режим [09:18:49]line Чек 58 12.04.2024 09:18 [09:18:49]line Смена: 113 ФФД: 1.0 [09:18:49]line ЗНМ: 0300000027 [09:18:49]line РНМ: 0000138879044617 [09:18:49]line Версия ККМ: 001 [09:18:49]line ФМ: 0000000000963154 [09:18:49]line ФД: 28609 [09:18:49]line ФПД: 127937695172909 [09:18:49]line 1/tax-web-control/client/api/v1/ticket?date=20240412T091854&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28609&fm=127937695172909&tin=02508201610067®Number=0000138879044617&sum=100000 [09:18:49]OFD Sender: Processing packet 28609 [packets to send 8, broken 7] [09:18:49]ProducePacketName [09:18:49]name=ofd_packets/00028609 [09:18:49]OFD Sender: To server: pG, [09:18:49]CommunicateWithHost lk.salyk.kg:30040 [09:18:49]ConnectInit lk.salyk.kg [09:18:49]written 0, free lines is 4095 [09:18:49]Connected sock=10 [09:18:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 53 F5 04 01 AD 5A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FC 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D9 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 3A 00 00 00 F4 03 04 00 7E FC 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C1 6F 00 00 35 04 06 00 74 5B D0 DF C9 2D BD 3D 79 8C 05 8C 8E 07 [09:18:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 D0 2A 47 00 4E 55 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C1 6F 00 00 F4 03 04 00 29 A7 18 66 B6 04 01 00 00 32 D9 2E C4 DC DB 01 E4 [09:18:49]CommunicateWithHost err = 0 [09:18:49]CheckOFDResponse [09:18:49]1017 (14) - 77093643461234 [09:18:49]1041 (16) - 0000000000963154 [09:18:49]1040 (4) - 28609 [09:18:49]1012 (4) - 12.04.2024 03:14 [09:18:49]1206 (1) - 0 [09:18:49]OFD Sender: Remove packet 28609 [09:18:49]ProducePacketName [09:18:49]name=ofd_packets/00028609 [09:18:49]NVStorageDeleteData [09:18:49]Write to MH i2c: 01 00 00 EF 68 57 [09:18:49]Write i2c OK [09:18:49]MH_I2C_Read... [09:18:49]Read from MH i2c: 01 [09:18:49]MH_I2C_Read... [09:18:49]Read from MH i2c: 01 07 00 [09:18:49]MH_I2C_Read... [09:18:49]Read from MH i2c: 01 07 00 EF 68 00 00 00 00 00 C5 0C 2F [09:18:49]RasterBufferAndPrint [09:18:49]line [09:18:49]line [09:18:49]line [09:18:49]line [09:18:49]line [09:18:49]written 0, free lines is 3274 [09:18:49]MH_Cut [09:18:49]Write to MH i2c: D1 01 00 F6 68 01 30 [09:18:49]Write i2c OK [09:18:49]MH_I2C_Read... [09:18:49]Read from MH i2c: D1 [09:18:49]MH_I2C_Read... [09:18:49]Read from MH i2c: D1 01 00 [09:18:49]MH_I2C_Read... [09:18:49]Read from MH i2c: D1 01 00 F6 68 00 2F [09:18:49]Write to MH i2c: 01 00 00 F7 68 5F [09:18:49]Write i2c OK [09:18:49]MH_I2C_Read... [09:18:50]OFD Sender: No OFD packet to send [09:18:50]*** Cut start [09:18:50]*** Partial cut [09:18:50]*** CUTSNS_PIN = 1 [09:18:50]*** CUTSNS_PIN = 0 [09:18:50]*** Brake cut motor [09:18:51]Read from MH i2c: 01 [09:18:51]MH_I2C_Read... [09:18:51]*** Stop cut motor [09:18:51]*** Cut end [09:18:51]Read from MH i2c: 01 07 00 [09:18:51]MH_I2C_Read... [09:18:51]Read from MH i2c: 01 07 00 F7 68 00 00 00 00 00 FF 0F 74 [09:18:51]process_action close_receipt done [09:18:51]requested_data is exist [09:18:51]produce_requested_data [09:18:51]requested_item fm.sn is exist - process it [09:18:51]wFMCommunicate request_size=4 [09:18:51]MH_SAM_APDU [09:18:51]CAPDU: 80 11 00 00 [09:18:51]Write to MH i2c: E2 08 00 F8 68 80 11 00 00 00 00 00 00 DA [09:18:51]Write i2c OK [09:18:51]MH_I2C_Read... [09:18:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:18:51]Read from MH i2c: E2 [09:18:51]MH_I2C_Read... [09:18:51]Read from MH i2c: E2 17 00 [09:18:51]MH_I2C_Read... [09:18:51]Read from MH i2c: E2 17 00 F8 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 29 [09:18:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:18:51]wFMCommunicate OK [09:18:51]requested_item fd.num is exist - process it [09:18:51]SAM_PROTO_GetFieldsCounters [09:18:51]wFMCommunicate request_size=4 [09:18:51]MH_SAM_APDU [09:18:51]CAPDU: 80 13 00 00 [09:18:51]Write to MH i2c: E2 08 00 F9 68 80 13 00 00 00 00 00 00 DD [09:18:51]Write i2c OK [09:18:51]MH_I2C_Read... [09:18:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:18:51]Read from MH i2c: E2 [09:18:51]MH_I2C_Read... [09:18:51]Read from MH i2c: E2 62 00 [09:18:51]MH_I2C_Read... [09:18:51]Read from MH i2c: E2 62 00 F9 68 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 C1 6F 00 00 0E 04 04 00 71 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 6A [09:18:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 C1 6F 00 00 0E 04 04 00 71 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 [09:18:51]wFMCommunicate OK [09:18:51]SAM_PROTO_GetFieldsCounters done [09:18:51]requested_item shift.num is exist - process it [09:18:51]requested_item shift.opened is exist - process it [09:18:51]req_shift_opened [09:18:51]FM_GetShiftState [09:18:51]SAM_PROTO_GetShiftState [09:18:51]wFMCommunicate request_size=4 [09:18:51]MH_SAM_APDU [09:18:51]CAPDU: 80 13 01 00 [09:18:51]Write to MH i2c: E2 08 00 FA 68 80 13 01 00 00 00 00 00 DF [09:18:51]Write i2c OK [09:18:51]MH_I2C_Read... [09:18:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:18:51]Read from MH i2c: E2 [09:18:51]MH_I2C_Read... [09:18:51]Read from MH i2c: E2 0E 00 [09:18:51]MH_I2C_Read... [09:18:51]Read from MH i2c: E2 0E 00 FA 68 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 F0 [09:18:51]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [09:18:51]wFMCommunicate OK [09:18:51]SAM_PROTO_GetShiftState done [09:18:51]FM_GetShiftState done [09:18:51]req_shift_opened done [09:18:51]requested_item shift.open_date is exist - process it [09:18:51]req_shift_open_date [09:18:51]req_shift_open_date done [09:18:51]produce_requested_data done [09:18:51]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28609,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [09:18:51]process_action_free close_receipt [09:18:51]json_value_free [09:18:51]json_value_free done [09:18:51]process_json_proto returns [09:18:51]Send response to host [09:18:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28609,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [09:18:51]free response buf [09:18:51]execute_script done [09:18:51]execute_script returns [09:18:51]free content buf [09:18:51]Sock 9.Close socket [09:18:51]Sock 9.Thread stoped [09:18:55]OFD Sender: No OFD packet to send [09:19:00]OFD Sender: No OFD packet to send [09:19:05]OFD Sender: No OFD packet to send [09:19:10]OFD Sender: No OFD packet to send [09:19:13]accept exits with 7 [09:19:13]New connection [09:19:13]New thread 3066498404 created [09:19:13]Thread 3066641764 joined [09:19:13]Waiting for new connection... [09:19:13] Sock 7.Parse request [09:19:13]Sock 7.Check first char [09:19:13]Sock 7.First char is OK [09:19:13]request: POST /json_proto HTTP/1.0 [09:19:13]Method: POST [09:19:13]URL: /json_proto [09:19:13]Method is POST - this is cgi request [09:19:13]url: /json_proto [09:19:13]query_string will be loaded in cgi processing [09:19:13]execute_cgi json_proto POST (null) [09:19:13]execute_cgi path=json_proto method=POST [09:19:13]POST find Content-Length [09:19:13]Host: 172.17.33.3:8080 [09:19:13]Content-Length: 677 [09:19:13]Content-Type: application/json [09:19:13] [09:19:13]POST finish read [09:19:13]Found Content-Length = 677 [09:19:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346927", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 7.780, "sum" : 500.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:19:13]execute_script... [09: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)346927", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 7.780, "sum" : 500.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:19:13]POST & json_proto [09:19:13]process_json_proto [09:19:13]json parsed OK: [09:19:13]protocol is kg_v1.0 [09:19:13]action value=close_receipt [09:19:13]process_action close_receipt [09:19:13]cmd_close_receipt [09:19:13]MH_GetDate [09:19:13]Write to MH i2c: F0 00 00 FB 68 52 [09:19:13]Write i2c OK [09:19:13]MH_I2C_Read... [09:19:13]Read from MH i2c: F0 [09:19:13]MH_I2C_Read... [09:19:13]Read from MH i2c: F0 09 00 [09:19:13]MH_I2C_Read... [09:19:13]Read from MH i2c: F0 09 00 FB 68 00 98 FC 18 66 23 5B 8F 65 DF [09:19:13]GetLastDocTimeStamp 1712913534 [09:19:13]current date 1712913560 [09:19:13]FM_GetShiftState [09:19:13]SAM_PROTO_GetShiftState [09:19:13]wFMCommunicate request_size=4 [09:19:13]MH_SAM_APDU [09:19:13]CAPDU: 80 13 01 00 [09:19:13]Write to MH i2c: E2 08 00 FC 68 80 13 01 00 00 00 00 00 E1 [09:19:13]Write i2c OK [09:19:13]MH_I2C_Read... [09:19:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:19:13]Read from MH i2c: E2 [09:19:13]MH_I2C_Read... [09:19:13]Read from MH i2c: E2 0E 00 [09:19:13]MH_I2C_Read... [09:19:13]Read from MH i2c: E2 0E 00 FC 68 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 F2 [09:19:13]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [09:19:13]wFMCommunicate OK [09:19:13]SAM_PROTO_GetShiftState done [09:19:13]FM_GetShiftState done [09:19:13]opened in 1712881416 [09:19:13]opened+sec_in_day 1712967816 [09:19:13]quantity*price = 50025 [09:19:13]sum+1 = 50026 [09:19:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 59 12.04.2024 09:19 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28610 ФПД: 158840664886406 1/tax-web-control/client/api/v1/ticket?date=20240412T091920&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28610&fm=158840664886406&tin=02508201610067®Number=0000138879044617&sum=50000 [09:19:14]StoreToDocumentArchive [09:19:14]shift 113 fd 28610 [09:19:14]save to /storage/0113/doc_00028610 [09:19:14]save last doc name /storage/0113/doc_00028610 to /storage/kkm_last_doc_name [09:19:14]save OK [09:19:14]Clear old archive folders... [09:19:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:19:14]tlvbuf is 01AE1CA0 [09:19:14]SAM_PROTO_ClearQueue [09:19:14]wFMCommunicate request_size=4 [09:19:14]MH_SAM_APDU [09:19:14]CAPDU: 80 09 00 00 [09:19:14]Write to MH i2c: E2 08 00 09 69 80 09 00 00 00 00 00 00 E4 [09:19:14]Write i2c OK [09:19:14]MH_I2C_Read... [09:19:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:19:14]Read from MH i2c: E2 [09:19:14]MH_I2C_Read... [09:19:14]Read from MH i2c: E2 03 00 [09:19:14]MH_I2C_Read... [09:19:14]Read from MH i2c: E2 03 00 09 69 00 90 00 E6 [09:19:14]RAPDU: 90 00 [09:19:14]wFMCommunicate OK [09:19:14]SAM_PROTO_ClearQueue done [09:19:14]KKMCreateOFDPacket [09:19:14]OFDProtocolAddRootSTLVToBuf [09:19:14]FM_MakeSignedData [09:19:14]FM_MakeSignedData [09:19:14]SAM_PROTO_SignData [09:19:14]wFMCommunicate request_size=4 [09:19:14]MH_SAM_APDU [09:19:14]CAPDU: 80 0D 01 02 [09:19:14]Write to MH i2c: E2 08 00 0A 69 80 0D 01 02 00 00 00 00 EC [09:19:14]Write i2c OK [09:19:14]MH_I2C_Read... [09:19:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:19:14]Read from MH i2c: E2 [09:19:14]MH_I2C_Read... [09:19:14]Read from MH i2c: E2 03 00 [09:19:14]MH_I2C_Read... [09:19:14]Read from MH i2c: E2 03 00 0A 69 00 90 00 E7 [09:19:14]RAPDU: 90 00 [09:19:14]wFMCommunicate OK [09:19:14]wFMCommunicate request_size=255 [09:19:14]MH_SAM_APDU [09:19:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 98 FC 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C2 6F 00 00 35 04 06 00 90 [09:19:14]Write to MH i2c: E2 02 01 0B 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 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 98 FC 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C2 6F 00 00 35 04 06 00 90 00 00 2D [09:19:14]Write i2c OK [09:19:14]MH_I2C_Read... [09:19:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:19:14]Read from MH i2c: E2 [09:19:14]MH_I2C_Read... [09:19:14]Read from MH i2c: E2 03 00 [09:19:14]MH_I2C_Read... [09:19:14]Read from MH i2c: E2 03 00 0B 69 00 90 00 E8 [09:19:14]RAPDU: 90 00 [09:19:14]wFMCommunicate OK [09:19:14]wFMCommunicate request_size=10 [09:19:14]MH_SAM_APDU [09:19:14]CAPDU: 80 0D 02 02 05 76 F9 68 0C 86 [09:19:14]Write to MH i2c: E2 0D 00 0C 69 80 0D 02 02 05 00 76 F9 68 0C 86 00 00 62 [09:19:15]Write i2c OK [09:19:15]MH_I2C_Read... [09:19:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:19:15]Read from MH i2c: E2 [09:19:15]MH_I2C_Read... [09:19:15]Read from MH i2c: E2 03 00 [09:19:15]MH_I2C_Read... [09:19:15]Read from MH i2c: E2 03 00 0C 69 00 90 00 E9 [09:19:15]RAPDU: 90 00 [09:19:15]wFMCommunicate OK [09:19:15]wFMCommunicate request_size=4 [09:19:15]MH_SAM_APDU [09:19:15]CAPDU: 80 0D 03 02 [09:19:15]Write to MH i2c: E2 08 00 0D 69 80 0D 03 02 00 00 00 00 F1 [09:19:15]Write i2c OK [09:19:15]MH_I2C_Read... [09:19:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:19:15]Read from MH i2c: E2 [09:19:15]MH_I2C_Read... [09:19:15]Read from MH i2c: E2 0B 00 [09:19:15]MH_I2C_Read... [09:19:15]Read from MH i2c: E2 0B 00 0D 69 00 AF 7C 7B E7 BC C3 34 72 90 00 A4 [09:19:15]RAPDU: AF 7C 7B E7 BC C3 34 72 90 00 [09:19:15]wFMCommunicate OK [09:19:15]SAM_PROTO_SignData done [09:19:15]FM_MakeSignedData done [09:19:15]CreateOFDProtocolMessage [09:19:15]wFMCommunicate request_size=4 [09:19:15]MH_SAM_APDU [09:19:15]CAPDU: 80 11 00 00 [09:19:15]Write to MH i2c: E2 08 00 0E 69 80 11 00 00 00 00 00 00 F1 [09:19:15]Write i2c OK [09:19:15]MH_I2C_Read... [09:19:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:19:15]Read from MH i2c: E2 [09:19:15]MH_I2C_Read... [09:19:15]Read from MH i2c: E2 17 00 [09:19:15]MH_I2C_Read... [09:19:15]Read from MH i2c: E2 17 00 0E 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 40 [09:19:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:19:15]wFMCommunicate OK [09:19:15]CreateOFDProtocolMessage done [09:19:15]OFDSenderStorePacket 28610 [09:19:15]StoreOFDPacket docnum=28610 [09:19:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 2A B6 07 01 5D AE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 98 FC 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C2 6F 00 00 35 04 06 00 90 76 F9 68 0C 86 AF 7C 7B E7 BC C3 34 72 [09:19:15]CheckFolder [09:19:15]dirname=/storage/ofd_packets [09:19:15]CheckFolder done [09:19:15]ProducePacketName [09:19:15]name=ofd_packets/00028610 [09:19:15]NVStorageSaveData ofd_packets/00028610 [09:19:15]File name is /storage/ofd_packets/00028610 [09:19:15]Write 301 bytes [09:19:15]NVStorageSaveData done [09:19:15]OFDSenderStorePacket done [09:19:15]KKMCreateOFDPacket done [09:19:15]NVStorageSaveData kkm_last_timestamp [09:19:15]File name is /storage/kkm_last_timestamp [09:19:15]Write 4 bytes [09:19:15]NVStorageSaveData done [09:19:15]ExternCall_PrintAddStr [09:19:15]wPrintStart [09:19:15]Write to MH i2c: 01 00 00 0F 69 78 [09:19:15]Write i2c OK [09:19:15]MH_I2C_Read... [09:19:15]Read from MH i2c: 01 [09:19:15]MH_I2C_Read... [09:19:15]Read from MH i2c: 01 07 00 [09:19:15]MH_I2C_Read... [09:19:15]Read from MH i2c: 01 07 00 0F 69 00 00 00 00 00 FF 0F 8D [09:19:15]RasterBufferAndPrint [09:19:15]line Счет N : (1)346927 [09:19:15]line ИНН: 02508201610067 [09:19:15]line Контрольно-Кассовый Чек [09:19:15]line ПРОДАЖА [09:19:15]line ТРК (МРК, ГНК) : 32 [09:19:15]line Товар: 2710124130 [09:19:15]line Аи-92-К-5 [09:19:15]line 7.780 * 64.30 [09:19:15]line = 500.25 [09:19:15]line НДС 12% НСП 1% [09:19:15]line > о реализуемом товаре [09:19:15]line ОКРУГЛЕНИЕ: -0.25 [09:19:15]line ИТОГО: 500.00 [09:19:15]line Внесено: 500.00 [09:19:15]line СДАЧА: 0.00 [09:19:15]line НСП 1% : 4.43 [09:19:15]line НДС 12% : 53.12 [09:19:15]line Наличными: 500.00 [09:19:15]line Безнал.: 0.00 [09:19:15]line Место: АЗС № 108 "Партнер Нефть" [09:19:15]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [09:19:15]line СНО: Общий режим [09:19:15]line Чек 59 12.04.2024 09:19 [09:19:15]line Смена: 113 ФФД: 1.0 [09:19:15]line ЗНМ: 0300000027 [09:19:15]line РНМ: 0000138879044617 [09:19:15]line Версия ККМ: 001 [09:19:15]line ФМ: 0000000000963154 [09:19:15]line ФД: 28610 [09:19:15]line ФПД: 158840664886406 [09:19:15]line 1/tax-web-control/client/api/v1/ticket?date=20240412T091920&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28610&fm=158840664886406&tin=02508201610067®Number=0000138879044617&sum=50000 [09:19:15]OFD Sender: Processing packet 28610 [packets to send 8, broken 7] [09:19:15]ProducePacketName [09:19:15]name=ofd_packets/00028610 [09:19:15]OFD Sender: To server: pG, [09:19:15]CommunicateWithHost lk.salyk.kg:30040 [09:19:15]ConnectInit lk.salyk.kg [09:19:15]written 0, free lines is 4095 [09:19:15]Connected sock=11 [09:19:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 2A B6 07 01 5D AE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 98 FC 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C2 6F 00 00 35 04 06 00 90 76 F9 68 0C 86 AF 7C 7B E7 BC C3 34 72 [09:19:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 44 0A 47 00 32 EE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C2 6F 00 00 F4 03 04 00 43 A7 18 66 B6 04 01 00 00 28 C7 3C 96 19 5C 00 0C [09:19:15]CommunicateWithHost err = 0 [09:19:15]CheckOFDResponse [09:19:15]1017 (14) - 77093643461234 [09:19:15]1041 (16) - 0000000000963154 [09:19:15]1040 (4) - 28610 [09:19:15]1012 (4) - 12.04.2024 03:15 [09:19:15]1206 (1) - 0 [09:19:15]OFD Sender: Remove packet 28610 [09:19:15]ProducePacketName [09:19:15]name=ofd_packets/00028610 [09:19:15]NVStorageDeleteData [09:19:15]Write to MH i2c: 01 00 00 39 69 A2 [09:19:15]Write i2c OK [09:19:15]MH_I2C_Read... [09:19:15]Read from MH i2c: 01 [09:19:15]MH_I2C_Read... [09:19:15]Read from MH i2c: 01 07 00 [09:19:15]MH_I2C_Read... [09:19:15]Read from MH i2c: 01 07 00 39 69 00 00 00 00 00 CA 0C 7F [09:19:15]RasterBufferAndPrint [09:19:15]line [09:19:15]line [09:19:15]line [09:19:15]line [09:19:15]line [09:19:15]written 0, free lines is 3280 [09:19:15]MH_Cut [09:19:15]Write to MH i2c: D1 01 00 40 69 01 7B [09:19:15]Write i2c OK [09:19:15]MH_I2C_Read... [09:19:15]Read from MH i2c: D1 [09:19:15]MH_I2C_Read... [09:19:15]Read from MH i2c: D1 01 00 [09:19:15]MH_I2C_Read... [09:19:15]Read from MH i2c: D1 01 00 40 69 00 7A [09:19:15]Write to MH i2c: 01 00 00 41 69 AA [09:19:15]Write i2c OK [09:19:15]MH_I2C_Read... [09:19:16]OFD Sender: No OFD packet to send [09:19:16]*** Cut start [09:19:16]*** Partial cut [09:19:16]*** CUTSNS_PIN = 1 [09:19:16]*** CUTSNS_PIN = 0 [09:19:17]*** Brake cut motor [09:19:17]Read from MH i2c: 01 [09:19:17]MH_I2C_Read... [09:19:17]*** Stop cut motor [09:19:17]*** Cut end [09:19:17]Read from MH i2c: 01 07 00 [09:19:17]MH_I2C_Read... [09:19:17]Read from MH i2c: 01 07 00 41 69 00 00 00 00 00 FF 0F BF [09:19:17]process_action close_receipt done [09:19:17]requested_data is exist [09:19:17]produce_requested_data [09:19:17]requested_item fm.sn is exist - process it [09:19:17]wFMCommunicate request_size=4 [09:19:17]MH_SAM_APDU [09:19:17]CAPDU: 80 11 00 00 [09:19:17]Write to MH i2c: E2 08 00 42 69 80 11 00 00 00 00 00 00 25 [09:19:17]Write i2c OK [09:19:17]MH_I2C_Read... [09:19:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:19:17]Read from MH i2c: E2 [09:19:17]MH_I2C_Read... [09:19:17]Read from MH i2c: E2 17 00 [09:19:17]MH_I2C_Read... [09:19:17]Read from MH i2c: E2 17 00 42 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 74 [09:19:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:19:17]wFMCommunicate OK [09:19:17]requested_item fd.num is exist - process it [09:19:17]SAM_PROTO_GetFieldsCounters [09:19:17]wFMCommunicate request_size=4 [09:19:17]MH_SAM_APDU [09:19:17]CAPDU: 80 13 00 00 [09:19:17]Write to MH i2c: E2 08 00 43 69 80 13 00 00 00 00 00 00 28 [09:19:17]Write i2c OK [09:19:17]MH_I2C_Read... [09:19:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:19:17]Read from MH i2c: E2 [09:19:17]MH_I2C_Read... [09:19:17]Read from MH i2c: E2 62 00 [09:19:17]MH_I2C_Read... [09:19:17]Read from MH i2c: E2 62 00 43 69 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 C2 6F 00 00 0E 04 04 00 71 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 B9 [09:19:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 C2 6F 00 00 0E 04 04 00 71 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 [09:19:17]wFMCommunicate OK [09:19:17]SAM_PROTO_GetFieldsCounters done [09:19:17]requested_item shift.num is exist - process it [09:19:17]requested_item shift.opened is exist - process it [09:19:17]req_shift_opened [09:19:17]FM_GetShiftState [09:19:17]SAM_PROTO_GetShiftState [09:19:17]wFMCommunicate request_size=4 [09:19:17]MH_SAM_APDU [09:19:17]CAPDU: 80 13 01 00 [09:19:17]Write to MH i2c: E2 08 00 44 69 80 13 01 00 00 00 00 00 2A [09:19:17]Write i2c OK [09:19:17]MH_I2C_Read... [09:19:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:19:17]Read from MH i2c: E2 [09:19:17]MH_I2C_Read... [09:19:17]Read from MH i2c: E2 0E 00 [09:19:17]MH_I2C_Read... [09:19:17]Read from MH i2c: E2 0E 00 44 69 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 3B [09:19:17]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [09:19:17]wFMCommunicate OK [09:19:17]SAM_PROTO_GetShiftState done [09:19:17]FM_GetShiftState done [09:19:17]req_shift_opened done [09:19:17]requested_item shift.open_date is exist - process it [09:19:17]req_shift_open_date [09:19:17]req_shift_open_date done [09:19:17]produce_requested_data done [09:19:17]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28610,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [09:19:17]process_action_free close_receipt [09:19:17]json_value_free [09:19:17]json_value_free done [09:19:17]process_json_proto returns [09:19:17]Send response to host [09:19:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28610,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [09:19:17]free response buf [09:19:17]execute_script done [09:19:17]execute_script returns [09:19:17]free content buf [09:19:17]Sock 7.Close socket [09:19:17]Sock 7.Thread stoped [09:19:21]OFD Sender: No OFD packet to send [09:19:26]OFD Sender: No OFD packet to send [09:19:31]OFD Sender: No OFD packet to send [09:19:36]OFD Sender: No OFD packet to send [09:19:41]OFD Sender: No OFD packet to send [09:19:46]OFD Sender: No OFD packet to send [09:19:51]OFD Sender: No OFD packet to send [09:19:56]OFD Sender: No OFD packet to send [09:20:01]OFD Sender: No OFD packet to send [09:20:06]OFD Sender: No OFD packet to send [09:20:11]OFD Sender: No OFD packet to send [09:20:16]OFD Sender: No OFD packet to send [09:20:21]OFD Sender: No OFD packet to send [09:20:26]OFD Sender: No OFD packet to send [09:20:31]OFD Sender: No OFD packet to send [09:20:36]OFD Sender: No OFD packet to send [09:20:41]OFD Sender: No OFD packet to send [09:20:46]OFD Sender: No OFD packet to send [09:20:51]OFD Sender: No OFD packet to send [09:20:56]OFD Sender: No OFD packet to send [09:21:01]OFD Sender: No OFD packet to send [09:21:06]OFD Sender: No OFD packet to send [09:21:11]OFD Sender: No OFD packet to send [09:21:14]accept exits with 9 [09:21:14]New connection [09:21:14]New thread 3066641764 created [09:21:14]Thread 3066498404 joined [09:21:14]Waiting for new connection... [09:21:14] Sock 9.Parse request [09:21:14]Sock 9.Check first char [09:21:14]Sock 9.First char is OK [09:21:14]request: POST /json_proto HTTP/1.0 [09:21:14]Method: POST [09:21:14]URL: /json_proto [09:21:14]Method is POST - this is cgi request [09:21:14]url: /json_proto [09:21:14]query_string will be loaded in cgi processing [09:21:14]execute_cgi json_proto POST (null) [09:21:14]execute_cgi path=json_proto method=POST [09:21:14]POST find Content-Length [09:21:14]Host: 172.17.33.3:8080 [09:21:14]Content-Length: 677 [09:21:14]Content-Type: application/json [09:21:14] [09:21:14]POST finish read [09:21:14]Found Content-Length = 677 [09:21:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346928", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 7.780, "sum" : 500.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:21:14]execute_script... [09:21: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)346928", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 7.780, "sum" : 500.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:21:14]POST & json_proto [09:21:14]process_json_proto [09:21:14]json parsed OK: [09:21:14]protocol is kg_v1.0 [09:21:14]action value=close_receipt [09:21:14]process_action close_receipt [09:21:14]cmd_close_receipt [09:21:14]MH_GetDate [09:21:14]Write to MH i2c: F0 00 00 45 69 9D [09:21:14]Write i2c OK [09:21:14]MH_I2C_Read... [09:21:14]Read from MH i2c: F0 [09:21:14]MH_I2C_Read... [09:21:14]Read from MH i2c: F0 09 00 [09:21:14]MH_I2C_Read... [09:21:14]Read from MH i2c: F0 09 00 45 69 00 11 FD 18 66 23 5B 8F 65 A4 [09:21:14]GetLastDocTimeStamp 1712913560 [09:21:14]current date 1712913681 [09:21:14]FM_GetShiftState [09:21:14]SAM_PROTO_GetShiftState [09:21:14]wFMCommunicate request_size=4 [09:21:14]MH_SAM_APDU [09:21:14]CAPDU: 80 13 01 00 [09:21:14]Write to MH i2c: E2 08 00 46 69 80 13 01 00 00 00 00 00 2C [09:21:14]Write i2c OK [09:21:14]MH_I2C_Read... [09:21:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:21:14]Read from MH i2c: E2 [09:21:14]MH_I2C_Read... [09:21:14]Read from MH i2c: E2 0E 00 [09:21:14]MH_I2C_Read... [09:21:14]Read from MH i2c: E2 0E 00 46 69 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 3D [09:21:14]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [09:21:14]wFMCommunicate OK [09:21:14]SAM_PROTO_GetShiftState done [09:21:14]FM_GetShiftState done [09:21:14]opened in 1712881416 [09:21:14]opened+sec_in_day 1712967816 [09:21:14]quantity*price = 50025 [09:21:14]sum+1 = 50026 [09:21:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 60 12.04.2024 09:21 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28611 ФПД: 267118575624194 1/tax-web-control/client/api/v1/ticket?date=20240412T092121&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28611&fm=267118575624194&tin=02508201610067®Number=0000138879044617&sum=50000 [09:21:15]StoreToDocumentArchive [09:21:15]shift 113 fd 28611 [09:21:15]save to /storage/0113/doc_00028611 [09:21:15]save last doc name /storage/0113/doc_00028611 to /storage/kkm_last_doc_name [09:21:15]save OK [09:21:15]Clear old archive folders... [09:21:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:21:15]tlvbuf is 01AE5100 [09:21:15]SAM_PROTO_ClearQueue [09:21:15]wFMCommunicate request_size=4 [09:21:15]MH_SAM_APDU [09:21:15]CAPDU: 80 09 00 00 [09:21:15]Write to MH i2c: E2 08 00 53 69 80 09 00 00 00 00 00 00 2E [09:21:15]Write i2c OK [09:21:15]MH_I2C_Read... [09:21:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:21:15]Read from MH i2c: E2 [09:21:15]MH_I2C_Read... [09:21:15]Read from MH i2c: E2 03 00 [09:21:15]MH_I2C_Read... [09:21:15]Read from MH i2c: E2 03 00 53 69 00 90 00 30 [09:21:15]RAPDU: 90 00 [09:21:15]wFMCommunicate OK [09:21:15]SAM_PROTO_ClearQueue done [09:21:15]KKMCreateOFDPacket [09:21:15]OFDProtocolAddRootSTLVToBuf [09:21:15]FM_MakeSignedData [09:21:15]FM_MakeSignedData [09:21:15]SAM_PROTO_SignData [09:21:15]wFMCommunicate request_size=4 [09:21:15]MH_SAM_APDU [09:21:15]CAPDU: 80 0D 01 02 [09:21:15]Write to MH i2c: E2 08 00 54 69 80 0D 01 02 00 00 00 00 36 [09:21:15]Write i2c OK [09:21:15]MH_I2C_Read... [09:21:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:21:15]Read from MH i2c: E2 [09:21:15]MH_I2C_Read... [09:21:15]Read from MH i2c: E2 03 00 [09:21:15]MH_I2C_Read... [09:21:15]Read from MH i2c: E2 03 00 54 69 00 90 00 31 [09:21:15]RAPDU: 90 00 [09:21:15]wFMCommunicate OK [09:21:15]wFMCommunicate request_size=255 [09:21:15]MH_SAM_APDU [09:21:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 11 FD 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C3 6F 00 00 35 04 06 00 F2 [09:21:15]Write to MH i2c: E2 02 01 55 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 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 11 FD 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C3 6F 00 00 35 04 06 00 F2 00 00 55 [09:21:15]Write i2c OK [09:21:15]MH_I2C_Read... [09:21:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:21:15]Read from MH i2c: E2 [09:21:15]MH_I2C_Read... [09:21:15]Read from MH i2c: E2 03 00 [09:21:15]MH_I2C_Read... [09:21:15]Read from MH i2c: E2 03 00 55 69 00 90 00 32 [09:21:15]RAPDU: 90 00 [09:21:15]wFMCommunicate OK [09:21:15]wFMCommunicate request_size=10 [09:21:15]MH_SAM_APDU [09:21:15]CAPDU: 80 0D 02 02 05 F1 63 D0 20 02 [09:21:15]Write to MH i2c: E2 0D 00 56 69 80 0D 02 02 05 00 F1 63 D0 20 02 00 00 89 [09:21:15]Write i2c OK [09:21:15]MH_I2C_Read... [09:21:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:21:15]Read from MH i2c: E2 [09:21:15]MH_I2C_Read... [09:21:15]Read from MH i2c: E2 03 00 [09:21:15]MH_I2C_Read... [09:21:15]Read from MH i2c: E2 03 00 56 69 00 90 00 33 [09:21:15]RAPDU: 90 00 [09:21:15]wFMCommunicate OK [09:21:15]wFMCommunicate request_size=4 [09:21:15]MH_SAM_APDU [09:21:15]CAPDU: 80 0D 03 02 [09:21:15]Write to MH i2c: E2 08 00 57 69 80 0D 03 02 00 00 00 00 3B [09:21:15]Write i2c OK [09:21:15]MH_I2C_Read... [09:21:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:21:16]Read from MH i2c: E2 [09:21:16]MH_I2C_Read... [09:21:16]Read from MH i2c: E2 0B 00 [09:21:16]MH_I2C_Read... [09:21:16]Read from MH i2c: E2 0B 00 57 69 00 D6 86 8B 12 03 92 42 1C 90 00 28 [09:21:16]RAPDU: D6 86 8B 12 03 92 42 1C 90 00 [09:21:16]wFMCommunicate OK [09:21:16]SAM_PROTO_SignData done [09:21:16]FM_MakeSignedData done [09:21:16]CreateOFDProtocolMessage [09:21:16]wFMCommunicate request_size=4 [09:21:16]MH_SAM_APDU [09:21:16]CAPDU: 80 11 00 00 [09:21:16]Write to MH i2c: E2 08 00 58 69 80 11 00 00 00 00 00 00 3B [09:21:16]Write i2c OK [09:21:16]MH_I2C_Read... [09:21:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:21:16]Read from MH i2c: E2 [09:21:16]MH_I2C_Read... [09:21:16]Read from MH i2c: E2 17 00 [09:21:16]MH_I2C_Read... [09:21:16]Read from MH i2c: E2 17 00 58 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 8A [09:21:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:21:16]wFMCommunicate OK [09:21:16]CreateOFDProtocolMessage done [09:21:16]OFDSenderStorePacket 28611 [09:21:16]StoreOFDPacket docnum=28611 [09:21:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 34 01 07 01 48 9D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 11 FD 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C3 6F 00 00 35 04 06 00 F2 F1 63 D0 20 02 D6 86 8B 12 03 92 42 1C [09:21:16]CheckFolder [09:21:16]dirname=/storage/ofd_packets [09:21:16]CheckFolder done [09:21:16]ProducePacketName [09:21:16]name=ofd_packets/00028611 [09:21:16]NVStorageSaveData ofd_packets/00028611 [09:21:16]File name is /storage/ofd_packets/00028611 [09:21:16]Write 301 bytes [09:21:16]NVStorageSaveData done [09:21:16]OFDSenderStorePacket done [09:21:16]KKMCreateOFDPacket done [09:21:16]NVStorageSaveData kkm_last_timestamp [09:21:16]File name is /storage/kkm_last_timestamp [09:21:16]Write 4 bytes [09:21:16]NVStorageSaveData done [09:21:16]ExternCall_PrintAddStr [09:21:16]wPrintStart [09:21:16]Write to MH i2c: 01 00 00 59 69 C2 [09:21:16]Write i2c OK [09:21:16]MH_I2C_Read... [09:21:16]Read from MH i2c: 01 [09:21:16]MH_I2C_Read... [09:21:16]Read from MH i2c: 01 07 00 [09:21:16]MH_I2C_Read... [09:21:16]Read from MH i2c: 01 07 00 59 69 00 00 00 00 00 FF 0F D7 [09:21:16]RasterBufferAndPrint [09:21:16]line Счет N : (1)346928 [09:21:16]line ИНН: 02508201610067 [09:21:16]line Контрольно-Кассовый Чек [09:21:16]line ПРОДАЖА [09:21:16]line ТРК (МРК, ГНК) : 13 [09:21:16]line Товар: 2710124130 [09:21:16]line Аи-92-К-5 [09:21:16]line 7.780 * 64.30 [09:21:16]line = 500.25 [09:21:16]line НДС 12% НСП 1% [09:21:16]line > о реализуемом товаре [09:21:16]line ОКРУГЛЕНИЕ: -0.25 [09:21:16]line ИТОГО: 500.00 [09:21:16]line Внесено: 500.00 [09:21:16]line СДАЧА: 0.00 [09:21:16]line НСП 1% : 4.43 [09:21:16]line НДС 12% : 53.12 [09:21:16]line Наличными: 500.00 [09:21:16]line Безнал.: 0.00 [09:21:16]line Место: АЗС № 108 "Партнер Нефть" [09:21:16]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [09:21:16]line СНО: Общий режим [09:21:16]line Чек 60 12.04.2024 09:21 [09:21:16]line Смена: 113 ФФД: 1.0 [09:21:16]line ЗНМ: 0300000027 [09:21:16]line РНМ: 0000138879044617 [09:21:16]line Версия ККМ: 001 [09:21:16]line ФМ: 0000000000963154 [09:21:16]line ФД: 28611 [09:21:16]line ФПД: 267118575624194 [09:21:16]line 1/tax-web-control/client/api/v1/ticket?date=20240412T092121&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28611&fm=267118575624194&tin=02508201610067®Number=0000138879044617&sum=50000 [09:21:16]OFD Sender: Processing packet 28611 [packets to send 8, broken 7] [09:21:16]ProducePacketName [09:21:16]name=ofd_packets/00028611 [09:21:16]OFD Sender: To server: pG, [09:21:16]CommunicateWithHost lk.salyk.kg:30040 [09:21:16]ConnectInit lk.salyk.kg [09:21:16]written 0, free lines is 4095 [09:21:16]Connected sock=10 [09:21:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 34 01 07 01 48 9D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 11 FD 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C3 6F 00 00 35 04 06 00 F2 F1 63 D0 20 02 D6 86 8B 12 03 92 42 1C [09:21:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 8A 52 47 00 B9 36 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C3 6F 00 00 F4 03 04 00 BC A7 18 66 B6 04 01 00 00 A9 31 4D 64 A1 C9 D1 E7 [09:21:16]CommunicateWithHost err = 0 [09:21:16]CheckOFDResponse [09:21:16]1017 (14) - 77093643461234 [09:21:16]1041 (16) - 0000000000963154 [09:21:16]1040 (4) - 28611 [09:21:16]1012 (4) - 12.04.2024 03:17 [09:21:16]1206 (1) - 0 [09:21:16]OFD Sender: Remove packet 28611 [09:21:16]ProducePacketName [09:21:16]name=ofd_packets/00028611 [09:21:16]NVStorageDeleteData [09:21:16]Write to MH i2c: 01 00 00 83 69 EC [09:21:16]Write i2c OK [09:21:16]MH_I2C_Read... [09:21:16]Read from MH i2c: 01 [09:21:16]MH_I2C_Read... [09:21:16]Read from MH i2c: 01 07 00 [09:21:16]MH_I2C_Read... [09:21:16]Read from MH i2c: 01 07 00 83 69 00 00 00 00 00 C1 0C C0 [09:21:16]RasterBufferAndPrint [09:21:16]line [09:21:16]line [09:21:16]line [09:21:16]line [09:21:16]line [09:21:16]written 0, free lines is 3269 [09:21:16]MH_Cut [09:21:16]Write to MH i2c: D1 01 00 8A 69 01 C5 [09:21:16]Write i2c OK [09:21:16]MH_I2C_Read... [09:21:16]Read from MH i2c: D1 [09:21:16]MH_I2C_Read... [09:21:16]Read from MH i2c: D1 01 00 [09:21:16]MH_I2C_Read... [09:21:16]Read from MH i2c: D1 01 00 8A 69 00 C4 [09:21:16]Write to MH i2c: 01 00 00 8B 69 F4 [09:21:16]Write i2c OK [09:21:16]MH_I2C_Read... [09:21:17]OFD Sender: No OFD packet to send [09:21:17]*** Cut start [09:21:17]*** Partial cut [09:21:17]*** CUTSNS_PIN = 1 [09:21:17]*** CUTSNS_PIN = 0 [09:21:17]*** Brake cut motor [09:21:18]Read from MH i2c: 01 [09:21:18]MH_I2C_Read... [09:21:18]*** Stop cut motor [09:21:18]*** Cut end [09:21:18]Read from MH i2c: 01 07 00 [09:21:18]MH_I2C_Read... [09:21:18]Read from MH i2c: 01 07 00 8B 69 00 00 00 00 00 FF 0F 09 [09:21:18]process_action close_receipt done [09:21:18]requested_data is exist [09:21:18]produce_requested_data [09:21:18]requested_item fm.sn is exist - process it [09:21:18]wFMCommunicate request_size=4 [09:21:18]MH_SAM_APDU [09:21:18]CAPDU: 80 11 00 00 [09:21:18]Write to MH i2c: E2 08 00 8C 69 80 11 00 00 00 00 00 00 6F [09:21:18]Write i2c OK [09:21:18]MH_I2C_Read... [09:21:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:21:18]Read from MH i2c: E2 [09:21:18]MH_I2C_Read... [09:21:18]Read from MH i2c: E2 17 00 [09:21:18]MH_I2C_Read... [09:21:18]Read from MH i2c: E2 17 00 8C 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 BE [09:21:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:21:18]wFMCommunicate OK [09:21:18]requested_item fd.num is exist - process it [09:21:18]SAM_PROTO_GetFieldsCounters [09:21:18]wFMCommunicate request_size=4 [09:21:18]MH_SAM_APDU [09:21:18]CAPDU: 80 13 00 00 [09:21:18]Write to MH i2c: E2 08 00 8D 69 80 13 00 00 00 00 00 00 72 [09:21:18]Write i2c OK [09:21:18]MH_I2C_Read... [09:21:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:21:18]Read from MH i2c: E2 [09:21:18]MH_I2C_Read... [09:21:18]Read from MH i2c: E2 62 00 [09:21:18]MH_I2C_Read... [09:21:18]Read from MH i2c: E2 62 00 8D 69 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 C3 6F 00 00 0E 04 04 00 71 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 07 [09:21:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 C3 6F 00 00 0E 04 04 00 71 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 [09:21:18]wFMCommunicate OK [09:21:18]SAM_PROTO_GetFieldsCounters done [09:21:18]requested_item shift.num is exist - process it [09:21:18]requested_item shift.opened is exist - process it [09:21:18]req_shift_opened [09:21:18]FM_GetShiftState [09:21:18]SAM_PROTO_GetShiftState [09:21:18]wFMCommunicate request_size=4 [09:21:18]MH_SAM_APDU [09:21:18]CAPDU: 80 13 01 00 [09:21:18]Write to MH i2c: E2 08 00 8E 69 80 13 01 00 00 00 00 00 74 [09:21:18]Write i2c OK [09:21:18]MH_I2C_Read... [09:21:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:21:18]Read from MH i2c: E2 [09:21:18]MH_I2C_Read... [09:21:18]Read from MH i2c: E2 0E 00 [09:21:18]MH_I2C_Read... [09:21:18]Read from MH i2c: E2 0E 00 8E 69 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 85 [09:21:18]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [09:21:18]wFMCommunicate OK [09:21:18]SAM_PROTO_GetShiftState done [09:21:18]FM_GetShiftState done [09:21:18]req_shift_opened done [09:21:18]requested_item shift.open_date is exist - process it [09:21:18]req_shift_open_date [09:21:18]req_shift_open_date done [09:21:18]produce_requested_data done [09:21:18]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28611,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [09:21:18]process_action_free close_receipt [09:21:18]json_value_free [09:21:18]json_value_free done [09:21:18]process_json_proto returns [09:21:18]Send response to host [09:21:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28611,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [09:21:18]free response buf [09:21:18]execute_script done [09:21:18]execute_script returns [09:21:18]free content buf [09:21:18]Sock 9.Close socket [09:21:18]Sock 9.Thread stoped [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:23:59]accept exits with 7 [09:23:59]New connection [09:23:59]New thread 3066498404 created [09:23:59]Thread 3066641764 joined [09:23:59]Waiting for new connection... [09:23:59] Sock 7.Parse request [09:23:59]Sock 7.Check first char [09:23:59]Sock 7.First char is OK [09:23:59]request: POST /json_proto HTTP/1.0 [09:23:59]Method: POST [09:23:59]URL: /json_proto [09:23:59]Method is POST - this is cgi request [09:23:59]url: /json_proto [09:23:59]query_string will be loaded in cgi processing [09:23:59]execute_cgi json_proto POST (null) [09:23:59]execute_cgi path=json_proto method=POST [09:23:59]POST find Content-Length [09:23:59]Host: 172.17.33.3:8080 [09:23:59]Content-Length: 678 [09:23:59]Content-Type: application/json [09:23:59] [09:23:59]POST finish read [09:23:59]Found Content-Length = 678 [09:23:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346929", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 10.110, "sum" : 650.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:23:59]execute_script... [09:23: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)346929", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 10.110, "sum" : 650.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:23:59]POST & json_proto [09:23:59]process_json_proto [09:23:59]json parsed OK: [09:23:59]protocol is kg_v1.0 [09:23:59]action value=close_receipt [09:23:59]process_action close_receipt [09:23:59]cmd_close_receipt [09:23:59]MH_GetDate [09:23:59]Write to MH i2c: F0 00 00 8F 69 E7 [09:23:59]Write i2c OK [09:23:59]MH_I2C_Read... [09:23:59]Read from MH i2c: F0 [09:23:59]MH_I2C_Read... [09:23:59]Read from MH i2c: F0 09 00 [09:23:59]MH_I2C_Read... [09:23:59]Read from MH i2c: F0 09 00 8F 69 00 B7 FD 18 66 23 5B 8F 65 94 [09:23:59]GetLastDocTimeStamp 1712913681 [09:23:59]current date 1712913847 [09:23:59]FM_GetShiftState [09:23:59]SAM_PROTO_GetShiftState [09:23:59]wFMCommunicate request_size=4 [09:23:59]MH_SAM_APDU [09:23:59]CAPDU: 80 13 01 00 [09:23:59]Write to MH i2c: E2 08 00 90 69 80 13 01 00 00 00 00 00 76 [09:23:59]Write i2c OK [09:23:59]MH_I2C_Read... [09:23:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:23:59]Read from MH i2c: E2 [09:23:59]MH_I2C_Read... [09:23:59]Read from MH i2c: E2 0E 00 [09:23:59]MH_I2C_Read... [09:23:59]Read from MH i2c: E2 0E 00 90 69 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 87 [09:23:59]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [09:23:59]wFMCommunicate OK [09:23:59]SAM_PROTO_GetShiftState done [09:23:59]FM_GetShiftState done [09:23:59]opened in 1712881416 [09:23:59]opened+sec_in_day 1712967816 [09:23:59]quantity*price = 65007 [09:23:59]sum+1 = 65008 [09:23:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 650.00 Внесено: 650.00 СДАЧА: 0.00 НСП 1% : 5.75 НДС 12% : 69.03 Наличными: 650.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 61 12.04.2024 09:24 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28612 ФПД: 188455791387599 1/tax-web-control/client/api/v1/ticket?date=20240412T092407&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28612&fm=188455791387599&tin=02508201610067®Number=0000138879044617&sum=65000 [09:24:01]StoreToDocumentArchive [09:24:01]shift 113 fd 28612 [09:24:01]save to /storage/0113/doc_00028612 [09:24:01]save last doc name /storage/0113/doc_00028612 to /storage/kkm_last_doc_name [09:24:01]save OK [09:24:01]Clear old archive folders... [09:24:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:24:01]tlvbuf is 01AD7E50 [09:24:01]SAM_PROTO_ClearQueue [09:24:01]wFMCommunicate request_size=4 [09:24:01]MH_SAM_APDU [09:24:01]CAPDU: 80 09 00 00 [09:24:01]Write to MH i2c: E2 08 00 9D 69 80 09 00 00 00 00 00 00 78 [09:24:01]Write i2c OK [09:24:01]MH_I2C_Read... [09:24:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:24:01]Read from MH i2c: E2 [09:24:01]MH_I2C_Read... [09:24:01]Read from MH i2c: E2 03 00 [09:24:01]MH_I2C_Read... [09:24:01]Read from MH i2c: E2 03 00 9D 69 00 90 00 7A [09:24:01]RAPDU: 90 00 [09:24:01]wFMCommunicate OK [09:24:01]SAM_PROTO_ClearQueue done [09:24:01]KKMCreateOFDPacket [09:24:01]OFDProtocolAddRootSTLVToBuf [09:24:01]FM_MakeSignedData [09:24:01]FM_MakeSignedData [09:24:01]SAM_PROTO_SignData [09:24:01]wFMCommunicate request_size=4 [09:24:01]MH_SAM_APDU [09:24:01]CAPDU: 80 0D 01 02 [09:24:01]Write to MH i2c: E2 08 00 9E 69 80 0D 01 02 00 00 00 00 80 [09:24:01]Write i2c OK [09:24:01]MH_I2C_Read... [09:24:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:24:01]Read from MH i2c: E2 [09:24:01]MH_I2C_Read... [09:24:01]Read from MH i2c: E2 03 00 [09:24:01]MH_I2C_Read... [09:24:01]Read from MH i2c: E2 03 00 9E 69 00 90 00 7B [09:24:01]RAPDU: 90 00 [09:24:01]wFMCommunicate OK [09:24:01]wFMCommunicate request_size=255 [09:24:01]MH_SAM_APDU [09:24:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 27 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 EF FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 B7 FD 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C4 6F 00 00 35 04 06 00 AB [09:24:01]Write to MH i2c: E2 02 01 9F 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 35 FF 03 08 00 03 7E 27 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 EF FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 B7 FD 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C4 6F 00 00 35 04 06 00 AB 00 00 49 [09:24:01]Write i2c OK [09:24:01]MH_I2C_Read... [09:24:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:24:01]Read from MH i2c: E2 [09:24:01]MH_I2C_Read... [09:24:01]Read from MH i2c: E2 03 00 [09:24:01]MH_I2C_Read... [09:24:01]Read from MH i2c: E2 03 00 9F 69 00 90 00 7C [09:24:01]RAPDU: 90 00 [09:24:01]wFMCommunicate OK [09:24:01]wFMCommunicate request_size=10 [09:24:01]MH_SAM_APDU [09:24:01]CAPDU: 80 0D 02 02 05 66 48 80 63 CF [09:24:01]Write to MH i2c: E2 0D 00 A0 69 80 0D 02 02 05 00 66 48 80 63 CF 00 00 ED [09:24:01]Write i2c OK [09:24:01]MH_I2C_Read... [09:24:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:24:01]Read from MH i2c: E2 [09:24:01]MH_I2C_Read... [09:24:01]Read from MH i2c: E2 03 00 [09:24:01]MH_I2C_Read... [09:24:01]Read from MH i2c: E2 03 00 A0 69 00 90 00 7D [09:24:01]RAPDU: 90 00 [09:24:01]wFMCommunicate OK [09:24:01]wFMCommunicate request_size=4 [09:24:01]MH_SAM_APDU [09:24:01]CAPDU: 80 0D 03 02 [09:24:01]Write to MH i2c: E2 08 00 A1 69 80 0D 03 02 00 00 00 00 85 [09:24:01]Write i2c OK [09:24:01]MH_I2C_Read... [09:24:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:24:01]Read from MH i2c: E2 [09:24:01]MH_I2C_Read... [09:24:01]Read from MH i2c: E2 0B 00 [09:24:01]MH_I2C_Read... [09:24:01]Read from MH i2c: E2 0B 00 A1 69 00 9D 36 16 3F B2 ED 52 56 90 00 F5 [09:24:01]RAPDU: 9D 36 16 3F B2 ED 52 56 90 00 [09:24:01]wFMCommunicate OK [09:24:01]SAM_PROTO_SignData done [09:24:01]FM_MakeSignedData done [09:24:01]CreateOFDProtocolMessage [09:24:01]wFMCommunicate request_size=4 [09:24:01]MH_SAM_APDU [09:24:01]CAPDU: 80 11 00 00 [09:24:01]Write to MH i2c: E2 08 00 A2 69 80 11 00 00 00 00 00 00 85 [09:24:01]Write i2c OK [09:24:01]MH_I2C_Read... [09:24:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:24:01]Read from MH i2c: E2 [09:24:01]MH_I2C_Read... [09:24:01]Read from MH i2c: E2 17 00 [09:24:01]MH_I2C_Read... [09:24:01]Read from MH i2c: E2 17 00 A2 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D4 [09:24:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:24:01]wFMCommunicate OK [09:24:01]CreateOFDProtocolMessage done [09:24:01]OFDSenderStorePacket 28612 [09:24:01]StoreOFDPacket docnum=28612 [09:24:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 44 9C 07 01 8F 13 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 27 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 EF FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 B7 FD 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C4 6F 00 00 35 04 06 00 AB 66 48 80 63 CF 9D 36 16 3F B2 ED 52 56 [09:24:01]CheckFolder [09:24:01]dirname=/storage/ofd_packets [09:24:01]CheckFolder done [09:24:01]ProducePacketName [09:24:01]name=ofd_packets/00028612 [09:24:01]NVStorageSaveData ofd_packets/00028612 [09:24:01]File name is /storage/ofd_packets/00028612 [09:24:01]Write 301 bytes [09:24:01]NVStorageSaveData done [09:24:01]OFDSenderStorePacket done [09:24:01]KKMCreateOFDPacket done [09:24:01]NVStorageSaveData kkm_last_timestamp [09:24:01]File name is /storage/kkm_last_timestamp [09:24:01]Write 4 bytes [09:24:01]NVStorageSaveData done [09:24:01]ExternCall_PrintAddStr [09:24:01]wPrintStart [09:24:01]Write to MH i2c: 01 00 00 A3 69 0C [09:24:01]Write i2c OK [09:24:01]MH_I2C_Read... [09:24:01]Read from MH i2c: 01 [09:24:01]MH_I2C_Read... [09:24:01]Read from MH i2c: 01 07 00 [09:24:01]MH_I2C_Read... [09:24:01]Read from MH i2c: 01 07 00 A3 69 00 00 00 00 00 FF 0F 21 [09:24:01]RasterBufferAndPrint [09:24:01]line Счет N : (1)346929 [09:24:01]line ИНН: 02508201610067 [09:24:01]line Контрольно-Кассовый Чек [09:24:01]line ПРОДАЖА [09:24:01]line ТРК (МРК, ГНК) : 32 [09:24:01]line Товар: 2710124130 [09:24:01]line Аи-92-К-5 [09:24:01]line 10.110 * 64.30 [09:24:01]line = 650.07 [09:24:01]line НДС 12% НСП 1% [09:24:01]line > о реализуемом товаре [09:24:01]line ОКРУГЛЕНИЕ: -0.07 [09:24:01]line ИТОГО: 650.00 [09:24:01]line Внесено: 650.00 [09:24:01]line СДАЧА: 0.00 [09:24:01]line НСП 1% : 5.75 [09:24:01]line НДС 12% : 69.03 [09:24:01]line Наличными: 650.00 [09:24:01]line Безнал.: 0.00 [09:24:01]line Место: АЗС № 108 "Партнер Нефть" [09:24:01]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [09:24:01]line СНО: Общий режим [09:24:01]line Чек 61 12.04.2024 09:24 [09:24:01]line Смена: 113 ФФД: 1.0 [09:24:01]line ЗНМ: 0300000027 [09:24:01]line РНМ: 0000138879044617 [09:24:01]line Версия ККМ: 001 [09:24:01]line ФМ: 0000000000963154 [09:24:01]line ФД: 28612 [09:24:01]line ФПД: 188455791387599 [09:24:01]line 1/tax-web-control/client/api/v1/ticket?date=20240412T092407&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28612&fm=188455791387599&tin=02508201610067®Number=0000138879044617&sum=65000 [09:24:01]OFD Sender: Processing packet 28612 [packets to send 8, broken 7] [09:24:01]ProducePacketName [09:24:01]name=ofd_packets/00028612 [09:24:01]OFD Sender: To server: pG, [09:24:01]CommunicateWithHost lk.salyk.kg:30040 [09:24:01]ConnectInit lk.salyk.kg [09:24:01]written 0, free lines is 4095 [09:24:01]Connected sock=10 [09:24:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 44 9C 07 01 8F 13 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 27 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 EF FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 B7 FD 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C4 6F 00 00 35 04 06 00 AB 66 48 80 63 CF 9D 36 16 3F B2 ED 52 56 [09:24:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 B8 36 47 00 F1 02 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C4 6F 00 00 F4 03 04 00 61 A8 18 66 B6 04 01 00 00 C8 C8 A8 D2 8C 30 A8 71 [09:24:02]CommunicateWithHost err = 0 [09:24:02]CheckOFDResponse [09:24:02]1017 (14) - 77093643461234 [09:24:02]1041 (16) - 0000000000963154 [09:24:02]1040 (4) - 28612 [09:24:02]1012 (4) - 12.04.2024 03:20 [09:24:02]1206 (1) - 0 [09:24:02]OFD Sender: Remove packet 28612 [09:24:02]ProducePacketName [09:24:02]name=ofd_packets/00028612 [09:24:02]NVStorageDeleteData [09:24:02]Write to MH i2c: 01 00 00 CD 69 36 [09:24:02]Write i2c OK [09:24:02]MH_I2C_Read... [09:24:02]Read from MH i2c: 01 [09:24:02]MH_I2C_Read... [09:24:02]Read from MH i2c: 01 07 00 [09:24:02]MH_I2C_Read... [09:24:02]Read from MH i2c: 01 07 00 CD 69 00 00 00 00 00 D4 0C 1D [09:24:02]RasterBufferAndPrint [09:24:02]line [09:24:02]line [09:24:02]line [09:24:02]line [09:24:02]line [09:24:02]written 0, free lines is 3292 [09:24:02]MH_Cut [09:24:02]Write to MH i2c: D1 01 00 D4 69 01 0F [09:24:02]Write i2c OK [09:24:02]MH_I2C_Read... [09:24:02]Read from MH i2c: D1 [09:24:02]MH_I2C_Read... [09:24:02]Read from MH i2c: D1 01 00 [09:24:02]MH_I2C_Read... [09:24:02]Read from MH i2c: D1 01 00 D4 69 00 0E [09:24:02]Write to MH i2c: 01 00 00 D5 69 3E [09:24:02]Write i2c OK [09:24:02]MH_I2C_Read... [09:24:02]OFD Sender: No OFD packet to send [09:24:03]*** Cut start [09:24:03]*** Partial cut [09:24:03]*** CUTSNS_PIN = 1 [09:24:03]*** CUTSNS_PIN = 0 [09:24:03]*** Brake cut motor [09:24:03]Read from MH i2c: 01 [09:24:03]MH_I2C_Read... [09:24:03]*** Stop cut motor [09:24:03]*** Cut end [09:24:03]Read from MH i2c: 01 07 00 [09:24:03]MH_I2C_Read... [09:24:03]Read from MH i2c: 01 07 00 D5 69 00 00 00 00 00 FF 0F 53 [09:24:03]process_action close_receipt done [09:24:03]requested_data is exist [09:24:03]produce_requested_data [09:24:03]requested_item fm.sn is exist - process it [09:24:03]wFMCommunicate request_size=4 [09:24:03]MH_SAM_APDU [09:24:03]CAPDU: 80 11 00 00 [09:24:03]Write to MH i2c: E2 08 00 D6 69 80 11 00 00 00 00 00 00 B9 [09:24:03]Write i2c OK [09:24:03]MH_I2C_Read... [09:24:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:24:03]Read from MH i2c: E2 [09:24:03]MH_I2C_Read... [09:24:03]Read from MH i2c: E2 17 00 [09:24:03]MH_I2C_Read... [09:24:03]Read from MH i2c: E2 17 00 D6 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 08 [09:24:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:24:03]wFMCommunicate OK [09:24:03]requested_item fd.num is exist - process it [09:24:03]SAM_PROTO_GetFieldsCounters [09:24:03]wFMCommunicate request_size=4 [09:24:03]MH_SAM_APDU [09:24:03]CAPDU: 80 13 00 00 [09:24:03]Write to MH i2c: E2 08 00 D7 69 80 13 00 00 00 00 00 00 BC [09:24:03]Write i2c OK [09:24:03]MH_I2C_Read... [09:24:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:24:03]Read from MH i2c: E2 [09:24:03]MH_I2C_Read... [09:24:03]Read from MH i2c: E2 62 00 [09:24:03]MH_I2C_Read... [09:24:03]Read from MH i2c: E2 62 00 D7 69 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 C4 6F 00 00 0E 04 04 00 71 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 55 [09:24:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 C4 6F 00 00 0E 04 04 00 71 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 [09:24:03]wFMCommunicate OK [09:24:03]SAM_PROTO_GetFieldsCounters done [09:24:03]requested_item shift.num is exist - process it [09:24:03]requested_item shift.opened is exist - process it [09:24:03]req_shift_opened [09:24:03]FM_GetShiftState [09:24:03]SAM_PROTO_GetShiftState [09:24:03]wFMCommunicate request_size=4 [09:24:03]MH_SAM_APDU [09:24:03]CAPDU: 80 13 01 00 [09:24:03]Write to MH i2c: E2 08 00 D8 69 80 13 01 00 00 00 00 00 BE [09:24:03]Write i2c OK [09:24:03]MH_I2C_Read... [09:24:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:24:04]Read from MH i2c: E2 [09:24:04]MH_I2C_Read... [09:24:04]Read from MH i2c: E2 0E 00 [09:24:04]MH_I2C_Read... [09:24:04]Read from MH i2c: E2 0E 00 D8 69 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 CF [09:24:04]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [09:24:04]wFMCommunicate OK [09:24:04]SAM_PROTO_GetShiftState done [09:24:04]FM_GetShiftState done [09:24:04]req_shift_opened done [09:24:04]requested_item shift.open_date is exist - process it [09:24:04]req_shift_open_date [09:24:04]req_shift_open_date done [09:24:04]produce_requested_data done [09:24:04]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28612,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [09:24:04]process_action_free close_receipt [09:24:04]json_value_free [09:24:04]json_value_free done [09:24:04]process_json_proto returns [09:24:04]Send response to host [09:24:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28612,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [09:24:04]free response buf [09:24:04]execute_script done [09:24:04]execute_script returns [09:24:04]free content buf [09:24:04]Sock 7.Close socket [09:24:04]Sock 7.Thread stoped [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]accept exits with 9 [09:26:12]New connection [09:26:12]New thread 3066641764 created [09:26:12]Thread 3066498404 joined [09:26:12]Waiting for new connection... [09:26:12] Sock 9.Parse request [09:26:12]Sock 9.Check first char [09:26:12]Sock 9.First char is OK [09:26:12]request: POST /json_proto HTTP/1.0 [09:26:12]Method: POST [09:26:12]URL: /json_proto [09:26:12]Method is POST - this is cgi request [09:26:12]url: /json_proto [09:26:12]query_string will be loaded in cgi processing [09:26:12]execute_cgi json_proto POST (null) [09:26:12]execute_cgi path=json_proto method=POST [09:26:12]POST find Content-Length [09:26:12]Host: 172.17.33.3:8080 [09:26:12]Content-Length: 677 [09:26:12]Content-Type: application/json [09:26:12] [09:26:12]POST finish read [09:26:12]Found Content-Length = 677 [09:26:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346930", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 5.000, "sum" : 321.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 321.00, "total" : 321.00, "payments": [ { "type": 0, "sum" : 321.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:26:12]execute_script... [09:26: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)346930", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 5.000, "sum" : 321.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 321.00, "total" : 321.00, "payments": [ { "type": 0, "sum" : 321.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:26:12]POST & json_proto [09:26:12]process_json_proto [09:26:12]json parsed OK: [09:26:12]protocol is kg_v1.0 [09:26:12]action value=close_receipt [09:26:12]process_action close_receipt [09:26:12]cmd_close_receipt [09:26:12]MH_GetDate [09:26:12]Write to MH i2c: F0 00 00 D9 69 31 [09:26:12]Write i2c OK [09:26:12]MH_I2C_Read... [09:26:12]Read from MH i2c: F0 [09:26:12]MH_I2C_Read... [09:26:12]Read from MH i2c: F0 09 00 [09:26:12]MH_I2C_Read... [09:26:12]Read from MH i2c: F0 09 00 D9 69 00 3B FE 18 66 23 5B 8F 65 63 [09:26:12]GetLastDocTimeStamp 1712913847 [09:26:12]current date 1712913979 [09:26:12]FM_GetShiftState [09:26:12]SAM_PROTO_GetShiftState [09:26:12]wFMCommunicate request_size=4 [09:26:12]MH_SAM_APDU [09:26:12]CAPDU: 80 13 01 00 [09:26:12]Write to MH i2c: E2 08 00 DA 69 80 13 01 00 00 00 00 00 C0 [09:26:12]Write i2c OK [09:26:12]MH_I2C_Read... [09:26:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:26:12]Read from MH i2c: E2 [09:26:12]MH_I2C_Read... [09:26:12]Read from MH i2c: E2 0E 00 [09:26:12]MH_I2C_Read... [09:26:12]Read from MH i2c: E2 0E 00 DA 69 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 D1 [09:26:12]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [09:26:12]wFMCommunicate OK [09:26:12]SAM_PROTO_GetShiftState done [09:26:12]FM_GetShiftState done [09:26:12]opened in 1712881416 [09:26:12]opened+sec_in_day 1712967816 [09:26:12]quantity*price = 32150 [09:26:12]sum+1 = 32151 [09:26:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 321.00 Внесено: 321.00 СДАЧА: 0.00 НСП 1% : 2.84 НДС 12% : 34.14 Наличными: 321.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 62 12.04.2024 09:26 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28613 ФПД: 202190115022480 1/tax-web-control/client/api/v1/ticket?date=20240412T092620&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28613&fm=202190115022480&tin=02508201610067®Number=0000138879044617&sum=32100 [09:26:13]StoreToDocumentArchive [09:26:13]shift 113 fd 28613 [09:26:13]save to /storage/0113/doc_00028613 [09:26:13]save last doc name /storage/0113/doc_00028613 to /storage/kkm_last_doc_name [09:26:13]save OK [09:26:13]Clear old archive folders... [09:26:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:26:13]tlvbuf is 01AD7910 [09:26:13]SAM_PROTO_ClearQueue [09:26:13]wFMCommunicate request_size=4 [09:26:13]MH_SAM_APDU [09:26:13]CAPDU: 80 09 00 00 [09:26:13]Write to MH i2c: E2 08 00 E7 69 80 09 00 00 00 00 00 00 C2 [09:26:13]Write i2c OK [09:26:13]MH_I2C_Read... [09:26:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:26:13]Read from MH i2c: E2 [09:26:13]MH_I2C_Read... [09:26:13]Read from MH i2c: E2 03 00 [09:26:13]MH_I2C_Read... [09:26:13]Read from MH i2c: E2 03 00 E7 69 00 90 00 C4 [09:26:13]RAPDU: 90 00 [09:26:13]wFMCommunicate OK [09:26:13]SAM_PROTO_ClearQueue done [09:26:13]KKMCreateOFDPacket [09:26:13]OFDProtocolAddRootSTLVToBuf [09:26:13]FM_MakeSignedData [09:26:13]FM_MakeSignedData [09:26:13]SAM_PROTO_SignData [09:26:13]wFMCommunicate request_size=4 [09:26:13]MH_SAM_APDU [09:26:13]CAPDU: 80 0D 01 02 [09:26:13]Write to MH i2c: E2 08 00 E8 69 80 0D 01 02 00 00 00 00 CA [09:26:13]Write i2c OK [09:26:13]MH_I2C_Read... [09:26:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:26:13]Read from MH i2c: E2 [09:26:13]MH_I2C_Read... [09:26:13]Read from MH i2c: E2 03 00 [09:26:13]MH_I2C_Read... [09:26:13]Read from MH i2c: E2 03 00 E8 69 00 90 00 C5 [09:26:13]RAPDU: 90 00 [09:26:13]wFMCommunicate OK [09:26:13]wFMCommunicate request_size=255 [09:26:13]MH_SAM_APDU [09:26:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 96 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 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 56 0D 00 00 00 00 07 04 06 00 64 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 3E 00 00 00 F4 03 04 00 3C FE 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C5 6F 00 00 35 04 06 00 B7 [09:26:13]Write to MH i2c: E2 02 01 E9 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 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 96 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 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 56 0D 00 00 00 00 07 04 06 00 64 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 3E 00 00 00 F4 03 04 00 3C FE 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C5 6F 00 00 35 04 06 00 B7 00 00 6A [09:26:13]Write i2c OK [09:26:13]MH_I2C_Read... [09:26:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:26:14]Read from MH i2c: E2 [09:26:14]MH_I2C_Read... [09:26:14]Read from MH i2c: E2 03 00 [09:26:14]MH_I2C_Read... [09:26:14]Read from MH i2c: E2 03 00 E9 69 00 90 00 C6 [09:26:14]RAPDU: 90 00 [09:26:14]wFMCommunicate OK [09:26:14]wFMCommunicate request_size=10 [09:26:14]MH_SAM_APDU [09:26:14]CAPDU: 80 0D 02 02 05 E4 0D FB A6 90 [09:26:14]Write to MH i2c: E2 0D 00 EA 69 80 0D 02 02 05 00 E4 0D FB A6 90 00 00 F9 [09:26:14]Write i2c OK [09:26:14]MH_I2C_Read... [09:26:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:26:14]Read from MH i2c: E2 [09:26:14]MH_I2C_Read... [09:26:14]Read from MH i2c: E2 03 00 [09:26:14]MH_I2C_Read... [09:26:14]Read from MH i2c: E2 03 00 EA 69 00 90 00 C7 [09:26:14]RAPDU: 90 00 [09:26:14]wFMCommunicate OK [09:26:14]wFMCommunicate request_size=4 [09:26:14]MH_SAM_APDU [09:26:14]CAPDU: 80 0D 03 02 [09:26:14]Write to MH i2c: E2 08 00 EB 69 80 0D 03 02 00 00 00 00 CF [09:26:14]Write i2c OK [09:26:14]MH_I2C_Read... [09:26:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:26:14]Read from MH i2c: E2 [09:26:14]MH_I2C_Read... [09:26:14]Read from MH i2c: E2 0B 00 [09:26:14]MH_I2C_Read... [09:26:14]Read from MH i2c: E2 0B 00 EB 69 00 AB 99 EB 60 6B 38 2D E0 90 00 0F [09:26:14]RAPDU: AB 99 EB 60 6B 38 2D E0 90 00 [09:26:14]wFMCommunicate OK [09:26:14]SAM_PROTO_SignData done [09:26:14]FM_MakeSignedData done [09:26:14]CreateOFDProtocolMessage [09:26:14]wFMCommunicate request_size=4 [09:26:14]MH_SAM_APDU [09:26:14]CAPDU: 80 11 00 00 [09:26:14]Write to MH i2c: E2 08 00 EC 69 80 11 00 00 00 00 00 00 CF [09:26:14]Write i2c OK [09:26:14]MH_I2C_Read... [09:26:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:26:14]Read from MH i2c: E2 [09:26:14]MH_I2C_Read... [09:26:14]Read from MH i2c: E2 17 00 [09:26:14]MH_I2C_Read... [09:26:14]Read from MH i2c: E2 17 00 EC 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 1E [09:26:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:26:14]wFMCommunicate OK [09:26:14]CreateOFDProtocolMessage done [09:26:14]OFDSenderStorePacket 28613 [09:26:14]StoreOFDPacket docnum=28613 [09:26:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 25 1A 07 01 F1 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 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 96 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 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 56 0D 00 00 00 00 07 04 06 00 64 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 3E 00 00 00 F4 03 04 00 3C FE 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C5 6F 00 00 35 04 06 00 B7 E4 0D FB A6 90 AB 99 EB 60 6B 38 2D E0 [09:26:14]CheckFolder [09:26:14]dirname=/storage/ofd_packets [09:26:14]CheckFolder done [09:26:14]ProducePacketName [09:26:14]name=ofd_packets/00028613 [09:26:14]NVStorageSaveData ofd_packets/00028613 [09:26:14]File name is /storage/ofd_packets/00028613 [09:26:14]Write 301 bytes [09:26:14]NVStorageSaveData done [09:26:14]OFDSenderStorePacket done [09:26:14]KKMCreateOFDPacket done [09:26:14]NVStorageSaveData kkm_last_timestamp [09:26:14]File name is /storage/kkm_last_timestamp [09:26:14]Write 4 bytes [09:26:14]NVStorageSaveData done [09:26:14]ExternCall_PrintAddStr [09:26:14]wPrintStart [09:26:14]Write to MH i2c: 01 00 00 ED 69 56 [09:26:14]Write i2c OK [09:26:14]MH_I2C_Read... [09:26:14]Read from MH i2c: 01 [09:26:14]MH_I2C_Read... [09:26:14]Read from MH i2c: 01 07 00 [09:26:14]MH_I2C_Read... [09:26:14]Read from MH i2c: 01 07 00 ED 69 00 00 00 00 00 FF 0F 6B [09:26:14]RasterBufferAndPrint [09:26:14]line Счет N : (1)346930 [09:26:14]line ИНН: 02508201610067 [09:26:14]line Контрольно-Кассовый Чек [09:26:14]line ПРОДАЖА [09:26:14]line ТРК (МРК, ГНК) : 63 [09:26:14]line Товар: 2710124130 [09:26:14]line Аи-92-К-5 [09:26:14]line 5.000 * 64.30 [09:26:14]line = 321.50 [09:26:14]line НДС 12% НСП 1% [09:26:14]line > о реализуемом товаре [09:26:14]line ОКРУГЛЕНИЕ: -0.50 [09:26:14]line ИТОГО: 321.00 [09:26:14]line Внесено: 321.00 [09:26:14]line СДАЧА: 0.00 [09:26:14]line НСП 1% : 2.84 [09:26:14]line НДС 12% : 34.14 [09:26:14]line Наличными: 321.00 [09:26:14]line Безнал.: 0.00 [09:26:14]line Место: АЗС № 108 "Партнер Нефть" [09:26:14]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [09:26:14]line СНО: Общий режим [09:26:14]line Чек 62 12.04.2024 09:26 [09:26:14]line Смена: 113 ФФД: 1.0 [09:26:14]line ЗНМ: 0300000027 [09:26:14]line РНМ: 0000138879044617 [09:26:14]line Версия ККМ: 001 [09:26:14]line ФМ: 0000000000963154 [09:26:14]line ФД: 28613 [09:26:14]line ФПД: 202190115022480 [09:26:14]line 1/tax-web-control/client/api/v1/ticket?date=20240412T092620&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28613&fm=202190115022480&tin=02508201610067®Number=0000138879044617&sum=32100 [09:26:14]OFD Sender: Processing packet 28613 [packets to send 8, broken 7] [09:26:14]ProducePacketName [09:26:14]name=ofd_packets/00028613 [09:26:14]OFD Sender: To server: pG, [09:26:14]CommunicateWithHost lk.salyk.kg:30040 [09:26:14]ConnectInit lk.salyk.kg [09:26:14]written 0, free lines is 4095 [09:26:14]Connected sock=10 [09:26:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 25 1A 07 01 F1 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 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 96 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 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 56 0D 00 00 00 00 07 04 06 00 64 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 3E 00 00 00 F4 03 04 00 3C FE 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C5 6F 00 00 35 04 06 00 B7 E4 0D FB A6 90 AB 99 EB 60 6B 38 2D E0 [09:26:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 89 8C 47 00 73 ED A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C5 6F 00 00 F4 03 04 00 E6 A8 18 66 B6 04 01 00 00 B6 D9 29 45 AD FE E5 03 [09:26:14]CommunicateWithHost err = 0 [09:26:14]CheckOFDResponse [09:26:14]1017 (14) - 77093643461234 [09:26:14]1041 (16) - 0000000000963154 [09:26:14]1040 (4) - 28613 [09:26:14]1012 (4) - 12.04.2024 03:22 [09:26:14]1206 (1) - 0 [09:26:14]OFD Sender: Remove packet 28613 [09:26:14]ProducePacketName [09:26:14]name=ofd_packets/00028613 [09:26:14]NVStorageDeleteData [09:26:15]Write to MH i2c: 01 00 00 17 6A 81 [09:26:15]Write i2c OK [09:26:15]MH_I2C_Read... [09:26:15]Read from MH i2c: 01 [09:26:15]MH_I2C_Read... [09:26:15]Read from MH i2c: 01 07 00 [09:26:15]MH_I2C_Read... [09:26:15]Read from MH i2c: 01 07 00 17 6A 00 00 00 00 00 D1 0C 65 [09:26:15]RasterBufferAndPrint [09:26:15]line [09:26:15]line [09:26:15]line [09:26:15]line [09:26:15]line [09:26:15]written 0, free lines is 3287 [09:26:15]MH_Cut [09:26:15]Write to MH i2c: D1 01 00 1E 6A 01 5A [09:26:15]Write i2c OK [09:26:15]MH_I2C_Read... [09:26:15]Read from MH i2c: D1 [09:26:15]MH_I2C_Read... [09:26:15]Read from MH i2c: D1 01 00 [09:26:15]MH_I2C_Read... [09:26:15]Read from MH i2c: D1 01 00 1E 6A 00 59 [09:26:15]Write to MH i2c: 01 00 00 1F 6A 89 [09:26:15]Write i2c OK [09:26:15]MH_I2C_Read... [09:26:15]OFD Sender: No OFD packet to send [09:26:15]*** Cut start [09:26:15]*** Partial cut [09:26:15]*** CUTSNS_PIN = 1 [09:26:15]*** CUTSNS_PIN = 0 [09:26:16]*** Brake cut motor [09:26:16]Read from MH i2c: 01 [09:26:16]MH_I2C_Read... [09:26:16]*** Stop cut motor [09:26:16]*** Cut end [09:26:16]Read from MH i2c: 01 07 00 [09:26:16]MH_I2C_Read... [09:26:16]Read from MH i2c: 01 07 00 1F 6A 00 00 00 00 00 FF 0F 9E [09:26:16]process_action close_receipt done [09:26:16]requested_data is exist [09:26:16]produce_requested_data [09:26:16]requested_item fm.sn is exist - process it [09:26:16]wFMCommunicate request_size=4 [09:26:16]MH_SAM_APDU [09:26:16]CAPDU: 80 11 00 00 [09:26:16]Write to MH i2c: E2 08 00 20 6A 80 11 00 00 00 00 00 00 04 [09:26:16]Write i2c OK [09:26:16]MH_I2C_Read... [09:26:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:26:16]Read from MH i2c: E2 [09:26:16]MH_I2C_Read... [09:26:16]Read from MH i2c: E2 17 00 [09:26:16]MH_I2C_Read... [09:26:16]Read from MH i2c: E2 17 00 20 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 53 [09:26:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:26:16]wFMCommunicate OK [09:26:16]requested_item fd.num is exist - process it [09:26:16]SAM_PROTO_GetFieldsCounters [09:26:16]wFMCommunicate request_size=4 [09:26:16]MH_SAM_APDU [09:26:16]CAPDU: 80 13 00 00 [09:26:16]Write to MH i2c: E2 08 00 21 6A 80 13 00 00 00 00 00 00 07 [09:26:16]Write i2c OK [09:26:16]MH_I2C_Read... [09:26:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:26:16]Read from MH i2c: E2 [09:26:16]MH_I2C_Read... [09:26:16]Read from MH i2c: E2 62 00 [09:26:16]MH_I2C_Read... [09:26:16]Read from MH i2c: E2 62 00 21 6A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 C5 6F 00 00 0E 04 04 00 71 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 A4 [09:26:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 C5 6F 00 00 0E 04 04 00 71 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 [09:26:16]wFMCommunicate OK [09:26:16]SAM_PROTO_GetFieldsCounters done [09:26:16]requested_item shift.num is exist - process it [09:26:16]requested_item shift.opened is exist - process it [09:26:16]req_shift_opened [09:26:16]FM_GetShiftState [09:26:16]SAM_PROTO_GetShiftState [09:26:16]wFMCommunicate request_size=4 [09:26:16]MH_SAM_APDU [09:26:16]CAPDU: 80 13 01 00 [09:26:16]Write to MH i2c: E2 08 00 22 6A 80 13 01 00 00 00 00 00 09 [09:26:16]Write i2c OK [09:26:16]MH_I2C_Read... [09:26:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:26:16]Read from MH i2c: E2 [09:26:16]MH_I2C_Read... [09:26:16]Read from MH i2c: E2 0E 00 [09:26:16]MH_I2C_Read... [09:26:16]Read from MH i2c: E2 0E 00 22 6A 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 1A [09:26:16]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [09:26:16]wFMCommunicate OK [09:26:16]SAM_PROTO_GetShiftState done [09:26:16]FM_GetShiftState done [09:26:16]req_shift_opened done [09:26:16]requested_item shift.open_date is exist - process it [09:26:16]req_shift_open_date [09:26:16]req_shift_open_date done [09:26:16]produce_requested_data done [09:26:16]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28613,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [09:26:16]process_action_free close_receipt [09:26:16]json_value_free [09:26:16]json_value_free done [09:26:16]process_json_proto returns [09:26:16]Send response to host [09:26:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28613,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [09:26:16]free response buf [09:26:16]execute_script done [09:26:16]execute_script returns [09:26:16]free content buf [09:26:16]Sock 9.Close socket [09:26:16]Sock 9.Thread stoped [09:26:19]accept exits with 7 [09:26:19]New connection [09:26:19]New thread 3066498404 created [09:26:19]Thread 3066641764 joined [09:26:19]Waiting for new connection... [09:26:19] Sock 7.Parse request [09:26:19]Sock 7.Check first char [09:26:19]Sock 7.First char is OK [09:26:19]request: POST /json_proto HTTP/1.0 [09:26:19]Method: POST [09:26:19]URL: /json_proto [09:26:19]Method is POST - this is cgi request [09:26:19]url: /json_proto [09:26:19]query_string will be loaded in cgi processing [09:26:19]execute_cgi json_proto POST (null) [09:26:19]execute_cgi path=json_proto method=POST [09:26:19]POST find Content-Length [09:26:19]Host: 172.17.33.3:8080 [09:26:19]Content-Length: 637 [09:26:19]Content-Type: application/json [09:26:19] [09:26:19]POST finish read [09:26:19]Found Content-Length = 637 [09:26:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346932", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 10.000, "sum" : 724.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 724.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:26:19]execute_script... [09:26: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)346932", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 10.000, "sum" : 724.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 724.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:26:19]POST & json_proto [09:26:19]process_json_proto [09:26:19]json parsed OK: [09:26:19]protocol is kg_v1.0 [09:26:19]action value=close_receipt [09:26:19]process_action close_receipt [09:26:19]cmd_close_receipt [09:26:19]MH_GetDate [09:26:19]Write to MH i2c: F0 00 00 23 6A 7C [09:26:19]Write i2c OK [09:26:19]MH_I2C_Read... [09:26:19]Read from MH i2c: F0 [09:26:19]MH_I2C_Read... [09:26:19]Read from MH i2c: F0 09 00 [09:26:19]MH_I2C_Read... [09:26:19]Read from MH i2c: F0 09 00 23 6A 00 43 FE 18 66 23 5B 8F 65 B6 [09:26:19]GetLastDocTimeStamp 1712913980 [09:26:19]current date 1712913987 [09:26:19]FM_GetShiftState [09:26:19]SAM_PROTO_GetShiftState [09:26:19]wFMCommunicate request_size=4 [09:26:19]MH_SAM_APDU [09:26:19]CAPDU: 80 13 01 00 [09:26:19]Write to MH i2c: E2 08 00 24 6A 80 13 01 00 00 00 00 00 0B [09:26:19]Write i2c OK [09:26:19]MH_I2C_Read... [09:26:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:26:19]Read from MH i2c: E2 [09:26:19]MH_I2C_Read... [09:26:19]Read from MH i2c: E2 0E 00 [09:26:19]MH_I2C_Read... [09:26:19]Read from MH i2c: E2 0E 00 24 6A 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 1C [09:26:19]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [09:26:19]wFMCommunicate OK [09:26:19]SAM_PROTO_GetShiftState done [09:26:19]FM_GetShiftState done [09:26:19]opened in 1712881416 [09:26:19]opened+sec_in_day 1712967816 [09:26:19]quantity*price = 72400 [09:26:19]sum+1 = 72401 [09:26:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 724.00 НСП 1% : 6.41 НДС 12% : 76.88 Наличными: 724.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 63 12.04.2024 09:26 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28614 ФПД: 24168500960988 1/tax-web-control/client/api/v1/ticket?date=20240412T092627&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28614&fm=24168500960988&tin=02508201610067®Number=0000138879044617&sum=72400 [09:26:21]StoreToDocumentArchive [09:26:21]shift 113 fd 28614 [09:26:21]save to /storage/0113/doc_00028614 [09:26:21]save last doc name /storage/0113/doc_00028614 to /storage/kkm_last_doc_name [09:26:21]save OK [09:26:21]Clear old archive folders... [09:26:21]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:26:21]tlvbuf is 01B551B0 [09:26:21]SAM_PROTO_ClearQueue [09:26:21]wFMCommunicate request_size=4 [09:26:21]MH_SAM_APDU [09:26:21]CAPDU: 80 09 00 00 [09:26:21]Write to MH i2c: E2 08 00 31 6A 80 09 00 00 00 00 00 00 0D [09:26:21]Write i2c OK [09:26:21]MH_I2C_Read... [09:26:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:26:21]Read from MH i2c: E2 [09:26:21]MH_I2C_Read... [09:26:21]Read from MH i2c: E2 03 00 [09:26:21]MH_I2C_Read... [09:26:21]Read from MH i2c: E2 03 00 31 6A 00 90 00 0F [09:26:21]RAPDU: 90 00 [09:26:21]wFMCommunicate OK [09:26:21]SAM_PROTO_ClearQueue done [09:26:21]KKMCreateOFDPacket [09:26:21]OFDProtocolAddRootSTLVToBuf [09:26:21]FM_MakeSignedData [09:26:21]FM_MakeSignedData [09:26:21]SAM_PROTO_SignData [09:26:21]wFMCommunicate request_size=4 [09:26:21]MH_SAM_APDU [09:26:21]CAPDU: 80 0D 01 02 [09:26:21]Write to MH i2c: E2 08 00 32 6A 80 0D 01 02 00 00 00 00 15 [09:26:21]Write i2c OK [09:26:21]MH_I2C_Read... [09:26:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:26:21]Read from MH i2c: E2 [09:26:21]MH_I2C_Read... [09:26:21]Read from MH i2c: E2 03 00 [09:26:21]MH_I2C_Read... [09:26:21]Read from MH i2c: E2 03 00 32 6A 00 90 00 10 [09:26:21]RAPDU: 90 00 [09:26:21]wFMCommunicate OK [09:26:21]wFMCommunicate request_size=255 [09:26:21]MH_SAM_APDU [09:26: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 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D0 1A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 1A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 81 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 1E 00 00 00 00 07 04 06 00 D0 1A 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 43 FE 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C6 6F 00 00 35 04 06 00 15 FB 2A EA [09:26:21]Write to MH i2c: E2 02 01 33 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 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D0 1A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 1A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 81 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 1E 00 00 00 00 07 04 06 00 D0 1A 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 43 FE 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C6 6F 00 00 35 04 06 00 15 FB 2A EA 00 00 5C [09:26:21]Write i2c OK [09:26:21]MH_I2C_Read... [09:26:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:26:21]Read from MH i2c: E2 [09:26:21]MH_I2C_Read... [09:26:21]Read from MH i2c: E2 03 00 [09:26:21]MH_I2C_Read... [09:26:21]Read from MH i2c: E2 03 00 33 6A 00 90 00 11 [09:26:21]RAPDU: 90 00 [09:26:21]wFMCommunicate OK [09:26:21]wFMCommunicate request_size=7 [09:26:21]MH_SAM_APDU [09:26:21]CAPDU: 80 0D 02 02 02 1E DC [09:26:21]Write to MH i2c: E2 0A 00 34 6A 80 0D 02 02 02 00 1E DC 00 00 16 [09:26:21]Write i2c OK [09:26:21]MH_I2C_Read... [09:26:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:26:21]Read from MH i2c: E2 [09:26:21]MH_I2C_Read... [09:26:21]Read from MH i2c: E2 03 00 [09:26:21]MH_I2C_Read... [09:26:21]Read from MH i2c: E2 03 00 34 6A 00 90 00 12 [09:26:21]RAPDU: 90 00 [09:26:21]wFMCommunicate OK [09:26:21]wFMCommunicate request_size=4 [09:26:21]MH_SAM_APDU [09:26:21]CAPDU: 80 0D 03 02 [09:26:21]Write to MH i2c: E2 08 00 35 6A 80 0D 03 02 00 00 00 00 1A [09:26:21]Write i2c OK [09:26:21]MH_I2C_Read... [09:26:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:26:21]Read from MH i2c: E2 [09:26:21]MH_I2C_Read... [09:26:21]Read from MH i2c: E2 0B 00 [09:26:21]MH_I2C_Read... [09:26:21]Read from MH i2c: E2 0B 00 35 6A 00 F3 FD AE 90 14 50 F4 7F 90 00 20 [09:26:21]RAPDU: F3 FD AE 90 14 50 F4 7F 90 00 [09:26:21]wFMCommunicate OK [09:26:21]SAM_PROTO_SignData done [09:26:21]FM_MakeSignedData done [09:26:21]CreateOFDProtocolMessage [09:26:21]wFMCommunicate request_size=4 [09:26:21]MH_SAM_APDU [09:26:21]CAPDU: 80 11 00 00 [09:26:21]Write to MH i2c: E2 08 00 36 6A 80 11 00 00 00 00 00 00 1A [09:26:21]Write i2c OK [09:26:21]MH_I2C_Read... [09:26:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:26:21]Read from MH i2c: E2 [09:26:21]MH_I2C_Read... [09:26:21]Read from MH i2c: E2 17 00 [09:26:21]MH_I2C_Read... [09:26:21]Read from MH i2c: E2 17 00 36 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 69 [09:26:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:26:21]wFMCommunicate OK [09:26:21]CreateOFDProtocolMessage done [09:26:21]OFDSenderStorePacket 28614 [09:26:21]StoreOFDPacket docnum=28614 [09:26:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 CB 83 04 01 EF 94 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D0 1A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 1A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 81 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 1E 00 00 00 00 07 04 06 00 D0 1A 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 43 FE 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C6 6F 00 00 35 04 06 00 15 FB 2A EA 1E DC F3 FD AE 90 14 50 F4 7F [09:26:21]CheckFolder [09:26:21]dirname=/storage/ofd_packets [09:26:21]CheckFolder done [09:26:21]ProducePacketName [09:26:21]name=ofd_packets/00028614 [09:26:21]NVStorageSaveData ofd_packets/00028614 [09:26:21]File name is /storage/ofd_packets/00028614 [09:26:21]Write 298 bytes [09:26:21]NVStorageSaveData done [09:26:21]OFDSenderStorePacket done [09:26:21]KKMCreateOFDPacket done [09:26:21]NVStorageSaveData kkm_last_timestamp [09:26:21]File name is /storage/kkm_last_timestamp [09:26:21]Write 4 bytes [09:26:21]NVStorageSaveData done [09:26:21]ExternCall_PrintAddStr [09:26:21]wPrintStart [09:26:21]Write to MH i2c: 01 00 00 37 6A A1 [09:26:21]Write i2c OK [09:26:21]MH_I2C_Read... [09:26:21]Read from MH i2c: 01 [09:26:21]MH_I2C_Read... [09:26:21]Read from MH i2c: 01 07 00 [09:26:21]MH_I2C_Read... [09:26:21]Read from MH i2c: 01 07 00 37 6A 00 00 00 00 00 FF 0F B6 [09:26:21]RasterBufferAndPrint [09:26:21]line Счет N : (1)346932 [09:26:21]line ИНН: 02508201610067 [09:26:21]line Контрольно-Кассовый Чек [09:26:21]line ПРОДАЖА [09:26:21]line ТРК (МРК, ГНК) : 11 [09:26:21]line Товар: 2710194210 [09:26:21]line ДТ-К-5 [09:26:21]line 10.000 * 72.40 [09:26:21]line = 724.00 [09:26:21]line НДС 12% НСП 1% [09:26:21]line > о реализуемом товаре [09:26:21]line ИТОГО: 724.00 [09:26:21]line НСП 1% : 6.41 [09:26:21]line НДС 12% : 76.88 [09:26:21]line Наличными: 724.00 [09:26:21]line Безнал.: 0.00 [09:26:21]line Место: АЗС № 108 "Партнер Нефть" [09:26:21]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [09:26:21]line СНО: Общий режим [09:26:21]line Чек 63 12.04.2024 09:26 [09:26:21]line Смена: 113 ФФД: 1.0 [09:26:21]line ЗНМ: 0300000027 [09:26:21]line РНМ: 0000138879044617 [09:26:21]line Версия ККМ: 001 [09:26:21]line ФМ: 0000000000963154 [09:26:21]line ФД: 28614 [09:26:21]line ФПД: 24168500960988 [09:26:21]line 1/tax-web-control/client/api/v1/ticket?date=20240412T092627&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28614&fm=24168500960988&tin=02508201610067®Number=0000138879044617&sum=72400 [09:26:21]written 0, free lines is 4095 [09:26:21]OFD Sender: Processing packet 28614 [packets to send 8, broken 7] [09:26:21]ProducePacketName [09:26:21]name=ofd_packets/00028614 [09:26:21]OFD Sender: To server: pG, [09:26:21]CommunicateWithHost lk.salyk.kg:30040 [09:26:21]ConnectInit lk.salyk.kg [09:26:21]Connected sock=10 [09:26:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 CB 83 04 01 EF 94 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D0 1A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 1A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 81 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 1E 00 00 00 00 07 04 06 00 D0 1A 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 43 FE 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C6 6F 00 00 35 04 06 00 15 FB 2A EA 1E DC F3 FD AE 90 14 50 F4 7F [09:26:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 D0 01 47 00 85 12 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C6 6F 00 00 F4 03 04 00 ED A8 18 66 B6 04 01 00 00 BC B9 7C FA 2D 15 EF 7F [09:26:21]CommunicateWithHost err = 0 [09:26:21]CheckOFDResponse [09:26:21]1017 (14) - 77093643461234 [09:26:21]1041 (16) - 0000000000963154 [09:26:21]1040 (4) - 28614 [09:26:21]1012 (4) - 12.04.2024 03:22 [09:26:21]1206 (1) - 0 [09:26:21]OFD Sender: Remove packet 28614 [09:26:21]ProducePacketName [09:26:21]name=ofd_packets/00028614 [09:26:21]NVStorageDeleteData [09:26:22]Write to MH i2c: 01 00 00 5E 6A C8 [09:26:22]Write i2c OK [09:26:22]MH_I2C_Read... [09:26:22]Read from MH i2c: 01 [09:26:22]MH_I2C_Read... [09:26:22]Read from MH i2c: 01 07 00 [09:26:22]MH_I2C_Read... [09:26:22]Read from MH i2c: 01 07 00 5E 6A 00 00 00 00 00 0A 0D E6 [09:26:22]RasterBufferAndPrint [09:26:22]line [09:26:22]line [09:26:22]line [09:26:22]line [09:26:22]line [09:26:22]written 0, free lines is 3348 [09:26:22]MH_Cut [09:26:22]Write to MH i2c: D1 01 00 65 6A 01 A1 [09:26:22]Write i2c OK [09:26:22]MH_I2C_Read... [09:26:22]Read from MH i2c: D1 [09:26:22]MH_I2C_Read... [09:26:22]Read from MH i2c: D1 01 00 [09:26:22]MH_I2C_Read... [09:26:22]Read from MH i2c: D1 01 00 65 6A 00 A0 [09:26:22]Write to MH i2c: 01 00 00 66 6A D0 [09:26:22]Write i2c OK [09:26:22]MH_I2C_Read... [09:26:22]OFD Sender: No OFD packet to send [09:26:22]*** Cut start [09:26:22]*** Partial cut [09:26:22]*** CUTSNS_PIN = 1 [09:26:22]*** CUTSNS_PIN = 0 [09:26:23]*** Brake cut motor [09:26:23]Read from MH i2c: 01 [09:26:23]MH_I2C_Read... [09:26:23]*** Stop cut motor [09:26:23]*** Cut end [09:26:23]Read from MH i2c: 01 07 00 [09:26:23]MH_I2C_Read... [09:26:23]Read from MH i2c: 01 07 00 66 6A 00 00 00 00 00 FF 0F E5 [09:26:23]process_action close_receipt done [09:26:23]requested_data is exist [09:26:23]produce_requested_data [09:26:23]requested_item fm.sn is exist - process it [09:26:23]wFMCommunicate request_size=4 [09:26:23]MH_SAM_APDU [09:26:23]CAPDU: 80 11 00 00 [09:26:23]Write to MH i2c: E2 08 00 67 6A 80 11 00 00 00 00 00 00 4B [09:26:23]Write i2c OK [09:26:23]MH_I2C_Read... [09:26:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:26:23]Read from MH i2c: E2 [09:26:23]MH_I2C_Read... [09:26:23]Read from MH i2c: E2 17 00 [09:26:23]MH_I2C_Read... [09:26:23]Read from MH i2c: E2 17 00 67 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 9A [09:26:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:26:23]wFMCommunicate OK [09:26:23]requested_item fd.num is exist - process it [09:26:23]SAM_PROTO_GetFieldsCounters [09:26:23]wFMCommunicate request_size=4 [09:26:23]MH_SAM_APDU [09:26:23]CAPDU: 80 13 00 00 [09:26:23]Write to MH i2c: E2 08 00 68 6A 80 13 00 00 00 00 00 00 4E [09:26:23]Write i2c OK [09:26:23]MH_I2C_Read... [09:26:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:26:23]Read from MH i2c: E2 [09:26:23]MH_I2C_Read... [09:26:23]Read from MH i2c: E2 62 00 [09:26:23]MH_I2C_Read... [09:26:23]Read from MH i2c: E2 62 00 68 6A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 C6 6F 00 00 0E 04 04 00 71 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 EF [09:26:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 C6 6F 00 00 0E 04 04 00 71 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 [09:26:23]wFMCommunicate OK [09:26:23]SAM_PROTO_GetFieldsCounters done [09:26:23]requested_item shift.num is exist - process it [09:26:23]requested_item shift.opened is exist - process it [09:26:23]req_shift_opened [09:26:23]FM_GetShiftState [09:26:23]SAM_PROTO_GetShiftState [09:26:23]wFMCommunicate request_size=4 [09:26:23]MH_SAM_APDU [09:26:23]CAPDU: 80 13 01 00 [09:26:23]Write to MH i2c: E2 08 00 69 6A 80 13 01 00 00 00 00 00 50 [09:26:23]Write i2c OK [09:26:23]MH_I2C_Read... [09:26:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:26:23]Read from MH i2c: E2 [09:26:23]MH_I2C_Read... [09:26:23]Read from MH i2c: E2 0E 00 [09:26:23]MH_I2C_Read... [09:26:23]Read from MH i2c: E2 0E 00 69 6A 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 61 [09:26:23]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [09:26:23]wFMCommunicate OK [09:26:23]SAM_PROTO_GetShiftState done [09:26:23]FM_GetShiftState done [09:26:23]req_shift_opened done [09:26:23]requested_item shift.open_date is exist - process it [09:26:23]req_shift_open_date [09:26:23]req_shift_open_date done [09:26:23]produce_requested_data done [09:26:23]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28614,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [09:26:23]process_action_free close_receipt [09:26:23]json_value_free [09:26:23]json_value_free done [09:26:23]process_json_proto returns [09:26:23]Send response to host [09:26:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28614,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [09:26:23]free response buf [09:26:23]execute_script done [09:26:23]execute_script returns [09:26:23]free content buf [09:26:23]Sock 7.Close socket [09:26:23]Sock 7.Thread stoped [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:47]accept exits with 9 [09:26:47]New connection [09:26:47]New thread 3066641764 created [09:26:47]Thread 3066498404 joined [09:26:47]Waiting for new connection... [09:26:47] Sock 9.Parse request [09:26:47]Sock 9.Check first char [09:26:47]Sock 9.First char is OK [09:26:47]request: POST /json_proto HTTP/1.0 [09:26:47]Method: POST [09:26:47]URL: /json_proto [09:26:47]Method is POST - this is cgi request [09:26:47]url: /json_proto [09:26:47]query_string will be loaded in cgi processing [09:26:47]execute_cgi json_proto POST (null) [09:26:47]execute_cgi path=json_proto method=POST [09:26:47]POST find Content-Length [09:26:47]Host: 172.17.33.3:8080 [09:26:47]Content-Length: 639 [09:26:47]Content-Type: application/json [09:26:47] [09:26:47]POST finish read [09:26:47]Found Content-Length = 639 [09:26:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346934", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 30.000, "sum" : 2172.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 2172.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:26:47]execute_script... [09:26: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)346934", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 30.000, "sum" : 2172.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 2172.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:26:47]POST & json_proto [09:26:47]process_json_proto [09:26:47]json parsed OK: [09:26:47]protocol is kg_v1.0 [09:26:47]action value=close_receipt [09:26:47]process_action close_receipt [09:26:47]cmd_close_receipt [09:26:47]MH_GetDate [09:26:47]Write to MH i2c: F0 00 00 6A 6A C3 [09:26:47]Write i2c OK [09:26:47]MH_I2C_Read... [09:26:47]Read from MH i2c: F0 [09:26:47]MH_I2C_Read... [09:26:47]Read from MH i2c: F0 09 00 [09:26:47]MH_I2C_Read... [09:26:47]Read from MH i2c: F0 09 00 6A 6A 00 5F FE 18 66 23 5B 8F 65 19 [09:26:47]GetLastDocTimeStamp 1712913987 [09:26:47]current date 1712914015 [09:26:47]FM_GetShiftState [09:26:47]SAM_PROTO_GetShiftState [09:26:47]wFMCommunicate request_size=4 [09:26:47]MH_SAM_APDU [09:26:47]CAPDU: 80 13 01 00 [09:26:47]Write to MH i2c: E2 08 00 6B 6A 80 13 01 00 00 00 00 00 52 [09:26:47]Write i2c OK [09:26:47]MH_I2C_Read... [09:26:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:26:47]Read from MH i2c: E2 [09:26:47]MH_I2C_Read... [09:26:47]Read from MH i2c: E2 0E 00 [09:26:47]MH_I2C_Read... [09:26:47]Read from MH i2c: E2 0E 00 6B 6A 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 63 [09:26:47]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [09:26:47]wFMCommunicate OK [09:26:47]SAM_PROTO_GetShiftState done [09:26:47]FM_GetShiftState done [09:26:47]opened in 1712881416 [09:26:47]opened+sec_in_day 1712967816 [09:26:47]quantity*price = 217200 [09:26:47]sum+1 = 217201 [09:26:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2172.00 НСП 1% : 19.22 НДС 12% : 230.65 Наличными: 2172.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 64 12.04.2024 09:26 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28615 ФПД: 172777683375818 1/tax-web-control/client/api/v1/ticket?date=20240412T092655&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28615&fm=172777683375818&tin=02508201610067®Number=0000138879044617&sum=217200 [09:26:48]StoreToDocumentArchive [09:26:48]shift 113 fd 28615 [09:26:48]save to /storage/0113/doc_00028615 [09:26:48]save last doc name /storage/0113/doc_00028615 to /storage/kkm_last_doc_name [09:26:48]save OK [09:26:48]Clear old archive folders... [09:26:48]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:26:48]tlvbuf is 01AD7F20 [09:26:48]SAM_PROTO_ClearQueue [09:26:48]wFMCommunicate request_size=4 [09:26:48]MH_SAM_APDU [09:26:48]CAPDU: 80 09 00 00 [09:26:48]Write to MH i2c: E2 08 00 78 6A 80 09 00 00 00 00 00 00 54 [09:26:48]Write i2c OK [09:26:48]MH_I2C_Read... [09:26:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:26:48]Read from MH i2c: E2 [09:26:48]MH_I2C_Read... [09:26:48]Read from MH i2c: E2 03 00 [09:26:48]MH_I2C_Read... [09:26:48]Read from MH i2c: E2 03 00 78 6A 00 90 00 56 [09:26:48]RAPDU: 90 00 [09:26:48]wFMCommunicate OK [09:26:48]SAM_PROTO_ClearQueue done [09:26:48]KKMCreateOFDPacket [09:26:48]OFDProtocolAddRootSTLVToBuf [09:26:48]FM_MakeSignedData [09:26:48]FM_MakeSignedData [09:26:48]SAM_PROTO_SignData [09:26:48]wFMCommunicate request_size=4 [09:26:48]MH_SAM_APDU [09:26:48]CAPDU: 80 0D 01 02 [09:26:48]Write to MH i2c: E2 08 00 79 6A 80 0D 01 02 00 00 00 00 5C [09:26:48]Write i2c OK [09:26:48]MH_I2C_Read... [09:26:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:26:48]Read from MH i2c: E2 [09:26:48]MH_I2C_Read... [09:26:48]Read from MH i2c: E2 03 00 [09:26:48]MH_I2C_Read... [09:26:48]Read from MH i2c: E2 03 00 79 6A 00 90 00 57 [09:26:48]RAPDU: 90 00 [09:26:48]wFMCommunicate OK [09:26:48]wFMCommunicate request_size=255 [09:26:48]MH_SAM_APDU [09:26: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 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 70 50 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 50 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 5A 00 00 00 00 07 04 06 00 70 50 03 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 5F FE 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C7 6F 00 00 35 04 06 00 9D 23 F0 71 [09:26:48]Write to MH i2c: E2 02 01 7A 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 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 70 50 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 50 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 5A 00 00 00 00 07 04 06 00 70 50 03 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 5F FE 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C7 6F 00 00 35 04 06 00 9D 23 F0 71 00 00 07 [09:26:48]Write i2c OK [09:26:48]MH_I2C_Read... [09:26:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:26:49]Read from MH i2c: E2 [09:26:49]MH_I2C_Read... [09:26:49]Read from MH i2c: E2 03 00 [09:26:49]MH_I2C_Read... [09:26:49]Read from MH i2c: E2 03 00 7A 6A 00 90 00 58 [09:26:49]RAPDU: 90 00 [09:26:49]wFMCommunicate OK [09:26:49]wFMCommunicate request_size=7 [09:26:49]MH_SAM_APDU [09:26:49]CAPDU: 80 0D 02 02 02 56 CA [09:26:49]Write to MH i2c: E2 0A 00 7B 6A 80 0D 02 02 02 00 56 CA 00 00 83 [09:26:49]Write i2c OK [09:26:49]MH_I2C_Read... [09:26:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:26:49]Read from MH i2c: E2 [09:26:49]MH_I2C_Read... [09:26:49]Read from MH i2c: E2 03 00 [09:26:49]MH_I2C_Read... [09:26:49]Read from MH i2c: E2 03 00 7B 6A 00 90 00 59 [09:26:49]RAPDU: 90 00 [09:26:49]wFMCommunicate OK [09:26:49]wFMCommunicate request_size=4 [09:26:49]MH_SAM_APDU [09:26:49]CAPDU: 80 0D 03 02 [09:26:49]Write to MH i2c: E2 08 00 7C 6A 80 0D 03 02 00 00 00 00 61 [09:26:49]Write i2c OK [09:26:49]MH_I2C_Read... [09:26:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:26:49]Read from MH i2c: E2 [09:26:49]MH_I2C_Read... [09:26:49]Read from MH i2c: E2 0B 00 [09:26:49]MH_I2C_Read... [09:26:49]Read from MH i2c: E2 0B 00 7C 6A 00 CF D4 0D 60 F2 09 00 3A 90 00 A7 [09:26:49]RAPDU: CF D4 0D 60 F2 09 00 3A 90 00 [09:26:49]wFMCommunicate OK [09:26:49]SAM_PROTO_SignData done [09:26:49]FM_MakeSignedData done [09:26:49]CreateOFDProtocolMessage [09:26:49]wFMCommunicate request_size=4 [09:26:49]MH_SAM_APDU [09:26:49]CAPDU: 80 11 00 00 [09:26:49]Write to MH i2c: E2 08 00 7D 6A 80 11 00 00 00 00 00 00 61 [09:26:49]Write i2c OK [09:26:49]MH_I2C_Read... [09:26:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:26:49]Read from MH i2c: E2 [09:26:49]MH_I2C_Read... [09:26:49]Read from MH i2c: E2 17 00 [09:26:49]MH_I2C_Read... [09:26:49]Read from MH i2c: E2 17 00 7D 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 B0 [09:26:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:26:49]wFMCommunicate OK [09:26:49]CreateOFDProtocolMessage done [09:26:49]OFDSenderStorePacket 28615 [09:26:49]StoreOFDPacket docnum=28615 [09:26:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 BA 4C 04 01 D6 B3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 70 50 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 50 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 5A 00 00 00 00 07 04 06 00 70 50 03 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 5F FE 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C7 6F 00 00 35 04 06 00 9D 23 F0 71 56 CA CF D4 0D 60 F2 09 00 3A [09:26:49]CheckFolder [09:26:49]dirname=/storage/ofd_packets [09:26:49]CheckFolder done [09:26:49]ProducePacketName [09:26:49]name=ofd_packets/00028615 [09:26:49]NVStorageSaveData ofd_packets/00028615 [09:26:49]File name is /storage/ofd_packets/00028615 [09:26:49]Write 298 bytes [09:26:49]NVStorageSaveData done [09:26:49]OFDSenderStorePacket done [09:26:49]KKMCreateOFDPacket done [09:26:49]NVStorageSaveData kkm_last_timestamp [09:26:49]File name is /storage/kkm_last_timestamp [09:26:49]Write 4 bytes [09:26:49]NVStorageSaveData done [09:26:49]ExternCall_PrintAddStr [09:26:49]wPrintStart [09:26:49]Write to MH i2c: 01 00 00 7E 6A E8 [09:26:49]Write i2c OK [09:26:49]MH_I2C_Read... [09:26:49]Read from MH i2c: 01 [09:26:49]MH_I2C_Read... [09:26:49]Read from MH i2c: 01 07 00 [09:26:49]MH_I2C_Read... [09:26:49]Read from MH i2c: 01 07 00 7E 6A 00 00 00 00 00 FF 0F FD [09:26:49]RasterBufferAndPrint [09:26:49]line Счет N : (1)346934 [09:26:49]line ИНН: 02508201610067 [09:26:49]line Контрольно-Кассовый Чек [09:26:49]line ПРОДАЖА [09:26:49]line ТРК (МРК, ГНК) : 21 [09:26:49]line Товар: 2710194210 [09:26:49]line ДТ-К-5 [09:26:49]line 30.000 * 72.40 [09:26:49]line = 2172.00 [09:26:49]line НДС 12% НСП 1% [09:26:49]line > о реализуемом товаре [09:26:49]line ИТОГО: 2172.00 [09:26:49]line НСП 1% : 19.22 [09:26:49]line НДС 12% : 230.65 [09:26:49]line Наличными: 2172.00 [09:26:49]line Безнал.: 0.00 [09:26:49]line Место: АЗС № 108 "Партнер Нефть" [09:26:49]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [09:26:49]line СНО: Общий режим [09:26:49]line Чек 64 12.04.2024 09:26 [09:26:49]line Смена: 113 ФФД: 1.0 [09:26:49]line ЗНМ: 0300000027 [09:26:49]line РНМ: 0000138879044617 [09:26:49]line Версия ККМ: 001 [09:26:49]line ФМ: 0000000000963154 [09:26:49]line ФД: 28615 [09:26:49]line ФПД: 172777683375818 [09:26:49]line 1/tax-web-control/client/api/v1/ticket?date=20240412T092655&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28615&fm=172777683375818&tin=02508201610067®Number=0000138879044617&sum=217200 [09:26:49]OFD Sender: Processing packet 28615 [packets to send 8, broken 7] [09:26:49]ProducePacketName [09:26:49]name=ofd_packets/00028615 [09:26:49]OFD Sender: To server: pG, [09:26:49]CommunicateWithHost lk.salyk.kg:30040 [09:26:49]ConnectInit lk.salyk.kg [09:26:49]written 0, free lines is 4095 [09:26:49]Connected sock=10 [09:26:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 BA 4C 04 01 D6 B3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 70 50 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 50 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 5A 00 00 00 00 07 04 06 00 70 50 03 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 5F FE 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C7 6F 00 00 35 04 06 00 9D 23 F0 71 56 CA CF D4 0D 60 F2 09 00 3A [09:26:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 21 E7 47 00 B6 78 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C7 6F 00 00 F4 03 04 00 09 A9 18 66 B6 04 01 00 00 22 C0 CF 22 34 5E C1 75 [09:26:49]CommunicateWithHost err = 0 [09:26:49]CheckOFDResponse [09:26:49]1017 (14) - 77093643461234 [09:26:49]1041 (16) - 0000000000963154 [09:26:49]1040 (4) - 28615 [09:26:49]1012 (4) - 12.04.2024 03:22 [09:26:49]1206 (1) - 0 [09:26:49]OFD Sender: Remove packet 28615 [09:26:49]ProducePacketName [09:26:49]name=ofd_packets/00028615 [09:26:49]NVStorageDeleteData [09:26:50]Write to MH i2c: 01 00 00 A5 6A 0F [09:26:50]Write i2c OK [09:26:50]MH_I2C_Read... [09:26:50]Read from MH i2c: 01 [09:26:50]MH_I2C_Read... [09:26:50]Read from MH i2c: 01 07 00 [09:26:50]MH_I2C_Read... [09:26:50]Read from MH i2c: 01 07 00 A5 6A 00 00 00 00 00 07 0D 2A [09:26:50]RasterBufferAndPrint [09:26:50]line [09:26:50]line [09:26:50]line [09:26:50]line [09:26:50]line [09:26:50]written 0, free lines is 3341 [09:26:50]MH_Cut [09:26:50]Write to MH i2c: D1 01 00 AC 6A 01 E8 [09:26:50]Write i2c OK [09:26:50]MH_I2C_Read... [09:26:50]Read from MH i2c: D1 [09:26:50]MH_I2C_Read... [09:26:50]Read from MH i2c: D1 01 00 [09:26:50]MH_I2C_Read... [09:26:50]Read from MH i2c: D1 01 00 AC 6A 00 E7 [09:26:50]Write to MH i2c: 01 00 00 AD 6A 17 [09:26:50]Write i2c OK [09:26:50]MH_I2C_Read... [09:26:50]OFD Sender: No OFD packet to send [09:26:50]*** Cut start [09:26:50]*** Partial cut [09:26:50]*** CUTSNS_PIN = 1 [09:26:50]*** CUTSNS_PIN = 0 [09:26:51]*** Brake cut motor [09:26:51]Read from MH i2c: 01 [09:26:51]MH_I2C_Read... [09:26:51]*** Stop cut motor [09:26:51]*** Cut end [09:26:51]Read from MH i2c: 01 07 00 [09:26:51]MH_I2C_Read... [09:26:51]Read from MH i2c: 01 07 00 AD 6A 00 00 00 00 00 FF 0F 2C [09:26:51]process_action close_receipt done [09:26:51]requested_data is exist [09:26:51]produce_requested_data [09:26:51]requested_item fm.sn is exist - process it [09:26:51]wFMCommunicate request_size=4 [09:26:51]MH_SAM_APDU [09:26:51]CAPDU: 80 11 00 00 [09:26:51]Write to MH i2c: E2 08 00 AE 6A 80 11 00 00 00 00 00 00 92 [09:26:51]Write i2c OK [09:26:51]MH_I2C_Read... [09:26:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:26:51]Read from MH i2c: E2 [09:26:51]MH_I2C_Read... [09:26:51]Read from MH i2c: E2 17 00 [09:26:51]MH_I2C_Read... [09:26:51]Read from MH i2c: E2 17 00 AE 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 E1 [09:26:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:26:51]wFMCommunicate OK [09:26:51]requested_item fd.num is exist - process it [09:26:51]SAM_PROTO_GetFieldsCounters [09:26:51]wFMCommunicate request_size=4 [09:26:51]MH_SAM_APDU [09:26:51]CAPDU: 80 13 00 00 [09:26:51]Write to MH i2c: E2 08 00 AF 6A 80 13 00 00 00 00 00 00 95 [09:26:51]Write i2c OK [09:26:51]MH_I2C_Read... [09:26:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:26:51]Read from MH i2c: E2 [09:26:51]MH_I2C_Read... [09:26:51]Read from MH i2c: E2 62 00 [09:26:51]MH_I2C_Read... [09:26:51]Read from MH i2c: E2 62 00 AF 6A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 C7 6F 00 00 0E 04 04 00 71 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 3A [09:26:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 C7 6F 00 00 0E 04 04 00 71 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 [09:26:51]wFMCommunicate OK [09:26:51]SAM_PROTO_GetFieldsCounters done [09:26:51]requested_item shift.num is exist - process it [09:26:51]requested_item shift.opened is exist - process it [09:26:51]req_shift_opened [09:26:51]FM_GetShiftState [09:26:51]SAM_PROTO_GetShiftState [09:26:51]wFMCommunicate request_size=4 [09:26:51]MH_SAM_APDU [09:26:51]CAPDU: 80 13 01 00 [09:26:51]Write to MH i2c: E2 08 00 B0 6A 80 13 01 00 00 00 00 00 97 [09:26:51]Write i2c OK [09:26:51]MH_I2C_Read... [09:26:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:26:51]Read from MH i2c: E2 [09:26:51]MH_I2C_Read... [09:26:51]Read from MH i2c: E2 0E 00 [09:26:51]MH_I2C_Read... [09:26:51]Read from MH i2c: E2 0E 00 B0 6A 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 A8 [09:26:51]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [09:26:51]wFMCommunicate OK [09:26:51]SAM_PROTO_GetShiftState done [09:26:51]FM_GetShiftState done [09:26:51]req_shift_opened done [09:26:51]requested_item shift.open_date is exist - process it [09:26:51]req_shift_open_date [09:26:51]req_shift_open_date done [09:26:51]produce_requested_data done [09:26:51]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28615,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [09:26:51]process_action_free close_receipt [09:26:51]json_value_free [09:26:51]json_value_free done [09:26:51]process_json_proto returns [09:26:51]Send response to host [09:26:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28615,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [09:26:51]free response buf [09:26:51]execute_script done [09:26:51]execute_script returns [09:26:51]free content buf [09:26:51]Sock 9.Close socket [09:26:51]Sock 9.Thread stoped [09:26:55]OFD Sender: No OFD packet to send [09:26:55]accept exits with 7 [09:26:55]New connection [09:26:55]New thread 3066498404 created [09:26:55]Thread 3066641764 joined [09:26:55]Waiting for new connection... [09:26:55] Sock 7.Parse request [09:26:55]Sock 7.Check first char [09:26:55]Sock 7.First char is OK [09:26:55]request: POST /json_proto HTTP/1.0 [09:26:55]Method: POST [09:26:55]URL: /json_proto [09:26:55]Method is POST - this is cgi request [09:26:55]url: /json_proto [09:26:55]query_string will be loaded in cgi processing [09:26:55]execute_cgi json_proto POST (null) [09:26:55]execute_cgi path=json_proto method=POST [09:26:55]POST find Content-Length [09:26:55]Host: 172.17.33.3:8080 [09:26:55]Content-Length: 695 [09:26:55]Content-Type: application/json [09:26:55] [09:26:55]POST finish read [09:26:55]Found Content-Length = 695 [09:26:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 28615, "base_FM": "0000000000963154", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346934", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 30.000, "sum" : 2172.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 2172.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:26:55]execute_script... [09:26:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 28615, "base_FM": "0000000000963154", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346934", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 30.000, "sum" : 2172.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 2172.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:26:55]POST & json_proto [09:26:55]process_json_proto [09:26:55]json parsed OK: [09:26:55]protocol is kg_v1.0 [09:26:55]action value=close_receipt [09:26:55]process_action close_receipt [09:26:55]cmd_close_receipt [09:26:55]MH_GetDate [09:26:55]Write to MH i2c: F0 00 00 B1 6A 0A [09:26:55]Write i2c OK [09:26:55]MH_I2C_Read... [09:26:55]Read from MH i2c: F0 [09:26:55]MH_I2C_Read... [09:26:55]Read from MH i2c: F0 09 00 [09:26:55]MH_I2C_Read... [09:26:55]Read from MH i2c: F0 09 00 B1 6A 00 67 FE 18 66 23 5B 8F 65 68 [09:26:55]GetLastDocTimeStamp 1712914015 [09:26:55]current date 1712914023 [09:26:55]FM_GetShiftState [09:26:55]SAM_PROTO_GetShiftState [09:26:55]wFMCommunicate request_size=4 [09:26:55]MH_SAM_APDU [09:26:55]CAPDU: 80 13 01 00 [09:26:55]Write to MH i2c: E2 08 00 B2 6A 80 13 01 00 00 00 00 00 99 [09:26:55]Write i2c OK [09:26:55]MH_I2C_Read... [09:26:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:26:55]Read from MH i2c: E2 [09:26:55]MH_I2C_Read... [09:26:55]Read from MH i2c: E2 0E 00 [09:26:55]MH_I2C_Read... [09:26:55]Read from MH i2c: E2 0E 00 B2 6A 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 AA [09:26:55]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [09:26:55]wFMCommunicate OK [09:26:55]SAM_PROTO_GetShiftState done [09:26:55]FM_GetShiftState done [09:26:55]opened in 1712881416 [09:26:55]opened+sec_in_day 1712967816 [09:26:55]quantity*price = 217200 [09:26:55]sum+1 = 217201 [09:26:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2172.00 НСП 1% : 19.22 НДС 12% : 230.65 Наличными: 2172.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 65 12.04.2024 09:27 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФД осн.: 28615 ФМ осн.: 0000000000963154 ФМ: 0000000000963154 ФД: 28616 ФПД: 43178076818873 1/tax-web-control/client/api/v1/ticket?date=20240412T092703&type=2&operation_type=1&fn_number=0000000000963154&fd_number=28616&fm=43178076818873&tin=02508201610067®Number=0000138879044617&sum=217200 [09:26:57]StoreToDocumentArchive [09:26:57]shift 113 fd 28616 [09:26:57]save to /storage/0113/doc_00028616 [09:26:57]save last doc name /storage/0113/doc_00028616 to /storage/kkm_last_doc_name [09:26:57]save OK [09:26:57]Clear old archive folders... [09:26:57]ProcessDocumentItem done err = 0, tmpTLVsize=276 [09:26:57]tlvbuf is 01AE1FC0 [09:26:57]SAM_PROTO_ClearQueue [09:26:57]wFMCommunicate request_size=4 [09:26:57]MH_SAM_APDU [09:26:57]CAPDU: 80 09 00 00 [09:26:57]Write to MH i2c: E2 08 00 C1 6A 80 09 00 00 00 00 00 00 9D [09:26:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:26:57]Write i2c OK [09:26:57]MH_I2C_Read... [09:26:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:26:57]Read from MH i2c: E2 [09:26:57]MH_I2C_Read... [09:26:57]Read from MH i2c: E2 03 00 [09:26:57]MH_I2C_Read... [09:26:57]Read from MH i2c: E2 03 00 C1 6A 00 90 00 9F [09:26:57]RAPDU: 90 00 [09:26:57]wFMCommunicate OK [09:26:57]SAM_PROTO_ClearQueue done [09:26:57]KKMCreateOFDPacket [09:26:57]OFDProtocolAddRootSTLVToBuf [09:26:57]FM_MakeSignedData [09:26:57]FM_MakeSignedData [09:26:57]SAM_PROTO_SignData [09:26:57]wFMCommunicate request_size=4 [09:26:57]MH_SAM_APDU [09:26:57]CAPDU: 80 0D 01 02 [09:26:57]Write to MH i2c: E2 08 00 C2 6A 80 0D 01 02 00 00 00 00 A5 [09:26:57]Write i2c OK [09:26:57]MH_I2C_Read... [09:26:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:26:57]Read from MH i2c: E2 [09:26:57]MH_I2C_Read... [09:26:57]Read from MH i2c: E2 03 00 [09:26:57]MH_I2C_Read... [09:26:57]Read from MH i2c: E2 03 00 C2 6A 00 90 00 A0 [09:26:57]RAPDU: 90 00 [09:26:57]wFMCommunicate OK [09:26:57]wFMCommunicate request_size=255 [09:26:57]MH_SAM_APDU [09:26:57]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 70 50 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 50 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 5A 00 00 00 00 07 04 06 00 70 50 03 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 67 FE 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 27 04 04 00 C7 6F 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 11 04 10 00 30 30 30 30 [09:26:57]Write to MH i2c: E2 02 01 C3 6A 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 70 50 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 50 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 5A 00 00 00 00 07 04 06 00 70 50 03 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 67 FE 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 27 04 04 00 C7 6F 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 11 04 10 00 30 30 30 30 00 00 2A [09:26:57]Write i2c OK [09:26:57]MH_I2C_Read... [09:26:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:26:57]Read from MH i2c: E2 [09:26:57]MH_I2C_Read... [09:26:57]Read from MH i2c: E2 03 00 [09:26:57]MH_I2C_Read... [09:26:57]Read from MH i2c: E2 03 00 C3 6A 00 90 00 A1 [09:26:57]RAPDU: 90 00 [09:26:57]wFMCommunicate OK [09:26:57]wFMCommunicate request_size=35 [09:26:57]MH_SAM_APDU [09:26:57]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C8 6F 00 00 35 04 06 00 27 45 2D EE 4D B9 [09:26:57]Write to MH i2c: E2 26 00 C4 6A 80 0D 02 02 1E 00 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C8 6F 00 00 35 04 06 00 27 45 2D EE 4D B9 00 00 5B [09:26:57]Write i2c OK [09:26:57]MH_I2C_Read... [09:26:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:26:57]Read from MH i2c: E2 [09:26:57]MH_I2C_Read... [09:26:57]Read from MH i2c: E2 03 00 [09:26:57]MH_I2C_Read... [09:26:57]Read from MH i2c: E2 03 00 C4 6A 00 90 00 A2 [09:26:57]RAPDU: 90 00 [09:26:57]wFMCommunicate OK [09:26:57]wFMCommunicate request_size=4 [09:26:57]MH_SAM_APDU [09:26:57]CAPDU: 80 0D 03 02 [09:26:57]Write to MH i2c: E2 08 00 C5 6A 80 0D 03 02 00 00 00 00 AA [09:26:57]Write i2c OK [09:26:57]MH_I2C_Read... [09:26:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:26:57]Read from MH i2c: E2 [09:26:57]MH_I2C_Read... [09:26:57]Read from MH i2c: E2 0B 00 [09:26:57]MH_I2C_Read... [09:26:57]Read from MH i2c: E2 0B 00 C5 6A 00 AB BD 77 F2 38 49 8F 7A 90 00 06 [09:26:57]RAPDU: AB BD 77 F2 38 49 8F 7A 90 00 [09:26:57]wFMCommunicate OK [09:26:57]SAM_PROTO_SignData done [09:26:57]FM_MakeSignedData done [09:26:57]CreateOFDProtocolMessage [09:26:57]wFMCommunicate request_size=4 [09:26:57]MH_SAM_APDU [09:26:57]CAPDU: 80 11 00 00 [09:26:57]Write to MH i2c: E2 08 00 C6 6A 80 11 00 00 00 00 00 00 AA [09:26:57]Write i2c OK [09:26:57]MH_I2C_Read... [09:26:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:26:57]Read from MH i2c: E2 [09:26:57]MH_I2C_Read... [09:26:57]Read from MH i2c: E2 17 00 [09:26:57]MH_I2C_Read... [09:26:57]Read from MH i2c: E2 17 00 C6 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 F9 [09:26:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:26:57]wFMCommunicate OK [09:26:57]CreateOFDProtocolMessage done [09:26:57]OFDSenderStorePacket 28616 [09:26:57]StoreOFDPacket docnum=28616 [09:26:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 28 01 00 00 88 AC 20 01 3E 8D 5A 03 01 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 70 50 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 50 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 5A 00 00 00 00 07 04 06 00 70 50 03 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 67 FE 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 27 04 04 00 C7 6F 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C8 6F 00 00 35 04 06 00 27 45 2D EE 4D B9 AB BD 77 F2 38 49 8F 7A [09:26:57]CheckFolder [09:26:57]dirname=/storage/ofd_packets [09:26:57]CheckFolder done [09:26:57]ProducePacketName [09:26:57]name=ofd_packets/00028616 [09:26:57]NVStorageSaveData ofd_packets/00028616 [09:26:57]File name is /storage/ofd_packets/00028616 [09:26:57]Write 326 bytes [09:26:57]NVStorageSaveData done [09:26:57]OFDSenderStorePacket done [09:26:57]KKMCreateOFDPacket done [09:26:57]NVStorageSaveData kkm_last_timestamp [09:26:57]File name is /storage/kkm_last_timestamp [09:26:57]Write 4 bytes [09:26:57]NVStorageSaveData done [09:26:57]ExternCall_PrintAddStr [09:26:57]wPrintStart [09:26:57]Write to MH i2c: 01 00 00 C7 6A 31 [09:26:57]Write i2c OK [09:26:57]MH_I2C_Read... [09:26:57]Read from MH i2c: 01 [09:26:57]MH_I2C_Read... [09:26:57]Read from MH i2c: 01 07 00 [09:26:57]MH_I2C_Read... [09:26:57]Read from MH i2c: 01 07 00 C7 6A 00 00 00 00 00 FF 0F 46 [09:26:57]RasterBufferAndPrint [09:26:57]line Счет N : (1)346934 [09:26:57]line ИНН: 02508201610067 [09:26:57]line Контрольно-Кассовый Чек [09:26:57]line ВОЗВРАТ ПРОДАЖИ [09:26:57]line ТРК (МРК, ГНК) : 21 [09:26:57]line Товар: 2710194210 [09:26:57]line ДТ-К-5 [09:26:57]line 30.000 * 72.40 [09:26:57]line = 2172.00 [09:26:57]line НДС 12% НСП 1% [09:26:57]line > о реализуемом товаре [09:26:57]line ИТОГО: 2172.00 [09:26:57]line НСП 1% : 19.22 [09:26:57]line НДС 12% : 230.65 [09:26:57]line Наличными: 2172.00 [09:26:57]line Безнал.: 0.00 [09:26:57]line Место: АЗС № 108 "Партнер Нефть" [09:26:57]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [09:26:57]line СНО: Общий режим [09:26:57]line Чек 65 12.04.2024 09:27 [09:26:57]line Смена: 113 ФФД: 1.0 [09:26:57]line ЗНМ: 0300000027 [09:26:57]line РНМ: 0000138879044617 [09:26:57]line Версия ККМ: 001 [09:26:57]line ФД осн.: 28615 [09:26:57]line ФМ осн.: 0000000000963154 [09:26:57]line ФМ: 0000000000963154 [09:26:57]line ФД: 28616 [09:26:57]line ФПД: 43178076818873 [09:26:57]line 1/tax-web-control/client/api/v1/ticket?date=20240412T092703&type=2&operation_type=1&fn_number=0000000000963154&fd_number=28616&fm=43178076818873&tin=02508201610067®Number=0000138879044617&sum=217200 [09:26:57]written 0, free lines is 4095 [09:26:57]OFD Sender: Processing packet 28616 [packets to send 8, broken 7] [09:26:57]ProducePacketName [09:26:57]name=ofd_packets/00028616 [09:26:57]OFD Sender: To server: pG, [09:26:57]CommunicateWithHost lk.salyk.kg:30040 [09:26:57]ConnectInit lk.salyk.kg [09:26:57]Connected sock=10 [09:26:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 28 01 00 00 88 AC 20 01 3E 8D 5A 03 01 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 70 50 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 50 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 5A 00 00 00 00 07 04 06 00 70 50 03 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 67 FE 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 27 04 04 00 C7 6F 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C8 6F 00 00 35 04 06 00 27 45 2D EE 4D B9 AB BD 77 F2 38 49 8F 7A [09:26:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 A3 D7 47 00 72 20 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C8 6F 00 00 F4 03 04 00 11 A9 18 66 B6 04 01 00 00 D9 C5 F3 FB 06 50 E1 7D [09:26:58]CommunicateWithHost err = 0 [09:26:58]CheckOFDResponse [09:26:58]1017 (14) - 77093643461234 [09:26:58]1041 (16) - 0000000000963154 [09:26:58]1040 (4) - 28616 [09:26:58]1012 (4) - 12.04.2024 03:22 [09:26:58]1206 (1) - 0 [09:26:58]OFD Sender: Remove packet 28616 [09:26:58]ProducePacketName [09:26:58]name=ofd_packets/00028616 [09:26:58]NVStorageDeleteData [09:26:58]Write to MH i2c: 01 00 00 F0 6A 5A [09:26:58]Write i2c OK [09:26:58]MH_I2C_Read... [09:26:58]Read from MH i2c: 01 [09:26:58]MH_I2C_Read... [09:26:58]Read from MH i2c: 01 07 00 [09:26:58]MH_I2C_Read... [09:26:58]Read from MH i2c: 01 07 00 F0 6A 00 00 00 00 00 F8 0C 65 [09:26:58]RasterBufferAndPrint [09:26:58]line [09:26:58]line [09:26:58]line [09:26:58]line [09:26:58]line [09:26:58]written 0, free lines is 3332 [09:26:58]MH_Cut [09:26:58]Write to MH i2c: D1 01 00 F7 6A 01 33 [09:26:58]Write i2c OK [09:26:58]MH_I2C_Read... [09:26:58]Read from MH i2c: D1 [09:26:58]MH_I2C_Read... [09:26:58]Read from MH i2c: D1 01 00 [09:26:58]MH_I2C_Read... [09:26:58]Read from MH i2c: D1 01 00 F7 6A 00 32 [09:26:58]Write to MH i2c: 01 00 00 F8 6A 62 [09:26:58]Write i2c OK [09:26:58]MH_I2C_Read... [09:26:58]OFD Sender: No OFD packet to send [09:26:58]*** Cut start [09:26:58]*** Partial cut [09:26:58]*** CUTSNS_PIN = 1 [09:26:59]*** CUTSNS_PIN = 0 [09:26:59]*** Brake cut motor [09:26:59]Read from MH i2c: 01 [09:26:59]MH_I2C_Read... [09:26:59]*** Stop cut motor [09:26:59]*** Cut end [09:26:59]Read from MH i2c: 01 07 00 [09:26:59]MH_I2C_Read... [09:26:59]Read from MH i2c: 01 07 00 F8 6A 00 00 00 00 00 FF 0F 77 [09:26:59]process_action close_receipt done [09:26:59]requested_data is exist [09:26:59]produce_requested_data [09:26:59]requested_item fm.sn is exist - process it [09:26:59]wFMCommunicate request_size=4 [09:26:59]MH_SAM_APDU [09:26:59]CAPDU: 80 11 00 00 [09:26:59]Write to MH i2c: E2 08 00 F9 6A 80 11 00 00 00 00 00 00 DD [09:26:59]Write i2c OK [09:26:59]MH_I2C_Read... [09:26:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:26:59]Read from MH i2c: E2 [09:26:59]MH_I2C_Read... [09:26:59]Read from MH i2c: E2 17 00 [09:26:59]MH_I2C_Read... [09:26:59]Read from MH i2c: E2 17 00 F9 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 2C [09:26:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:26:59]wFMCommunicate OK [09:26:59]requested_item fd.num is exist - process it [09:26:59]SAM_PROTO_GetFieldsCounters [09:26:59]wFMCommunicate request_size=4 [09:26:59]MH_SAM_APDU [09:26:59]CAPDU: 80 13 00 00 [09:26:59]Write to MH i2c: E2 08 00 FA 6A 80 13 00 00 00 00 00 00 E0 [09:26:59]Write i2c OK [09:26:59]MH_I2C_Read... [09:26:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:26:59]Read from MH i2c: E2 [09:26:59]MH_I2C_Read... [09:26:59]Read from MH i2c: E2 62 00 [09:26:59]MH_I2C_Read... [09:26:59]Read from MH i2c: E2 62 00 FA 6A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 C8 6F 00 00 0E 04 04 00 71 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 89 [09:26:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 C8 6F 00 00 0E 04 04 00 71 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 [09:26:59]wFMCommunicate OK [09:26:59]SAM_PROTO_GetFieldsCounters done [09:26:59]requested_item shift.num is exist - process it [09:26:59]requested_item shift.opened is exist - process it [09:26:59]req_shift_opened [09:26:59]FM_GetShiftState [09:26:59]SAM_PROTO_GetShiftState [09:26:59]wFMCommunicate request_size=4 [09:26:59]MH_SAM_APDU [09:26:59]CAPDU: 80 13 01 00 [09:26:59]Write to MH i2c: E2 08 00 FB 6A 80 13 01 00 00 00 00 00 E2 [09:26:59]Write i2c OK [09:26:59]MH_I2C_Read... [09:26:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:26:59]Read from MH i2c: E2 [09:26:59]MH_I2C_Read... [09:26:59]Read from MH i2c: E2 0E 00 [09:26:59]MH_I2C_Read... [09:26:59]Read from MH i2c: E2 0E 00 FB 6A 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 F3 [09:26:59]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [09:26:59]wFMCommunicate OK [09:26:59]SAM_PROTO_GetShiftState done [09:26:59]FM_GetShiftState done [09:26:59]req_shift_opened done [09:26:59]requested_item shift.open_date is exist - process it [09:26:59]req_shift_open_date [09:26:59]req_shift_open_date done [09:26:59]produce_requested_data done [09:26:59]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28616,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [09:26:59]process_action_free close_receipt [09:26:59]json_value_free [09:26:59]json_value_free done [09:26:59]process_json_proto returns [09:26:59]Send response to host [09:26:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28616,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [09:26:59]free response buf [09:26:59]execute_script done [09:26:59]execute_script returns [09:26:59]free content buf [09:26:59]Sock 7.Close socket [09:26:59]Sock 7.Thread stoped [09:27:03]OFD Sender: No OFD packet to send [09:27:08]OFD Sender: No OFD packet to send [09:27:13]accept exits with 9 [09:27:13]New connection [09:27:13]New thread 3066641764 created [09:27:13]Thread 3066498404 joined [09:27:13]Waiting for new connection... [09:27:13] Sock 9.Parse request [09:27:13]Sock 9.Check first char [09:27:13]Sock 9.First char is OK [09:27:13]request: POST /json_proto HTTP/1.0 [09:27:13]Method: POST [09:27:13]URL: /json_proto [09:27:13]Method is POST - this is cgi request [09:27:13]url: /json_proto [09:27:13]query_string will be loaded in cgi processing [09:27:13]execute_cgi json_proto POST (null) [09:27:13]execute_cgi path=json_proto method=POST [09:27:13]POST find Content-Length [09:27:13]Host: 172.17.33.3:8080 [09:27:13]Content-Length: 682 [09:27:13]Content-Type: application/json [09:27:13] [09:27:13]POST finish read [09:27:13]Found Content-Length = 682 [09:27:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346933", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 15.560, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:27:13]execute_script... [09:27:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346933", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 15.560, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:27:13]POST & json_proto [09:27:13]process_json_proto [09:27:13]json parsed OK: [09:27:13]protocol is kg_v1.0 [09:27:13]action value=close_receipt [09:27:13]process_action close_receipt [09:27:13]cmd_close_receipt [09:27:13]MH_GetDate [09:27:13]Write to MH i2c: F0 00 00 FC 6A 55 [09:27:13]Write i2c OK [09:27:13]MH_I2C_Read... [09:27:13]Read from MH i2c: F0 [09:27:13]MH_I2C_Read... [09:27:13]Read from MH i2c: F0 09 00 [09:27:13]MH_I2C_Read... [09:27:13]Read from MH i2c: F0 09 00 FC 6A 00 78 FE 18 66 23 5B 8F 65 C4 [09:27:13]GetLastDocTimeStamp 1712914023 [09:27:13]current date 1712914040 [09:27:13]FM_GetShiftState [09:27:13]SAM_PROTO_GetShiftState [09:27:13]wFMCommunicate request_size=4 [09:27:13]MH_SAM_APDU [09:27:13]CAPDU: 80 13 01 00 [09:27:13]Write to MH i2c: E2 08 00 FD 6A 80 13 01 00 00 00 00 00 E4 [09:27:13]Write i2c OK [09:27:13]MH_I2C_Read... [09:27:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:27:13]Read from MH i2c: E2 [09:27:13]MH_I2C_Read... [09:27:13]Read from MH i2c: E2 0E 00 [09:27:13]MH_I2C_Read... [09:27:13]Read from MH i2c: E2 0E 00 FD 6A 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 F5 [09:27:13]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [09:27:13]wFMCommunicate OK [09:27:13]SAM_PROTO_GetShiftState done [09:27:13]FM_GetShiftState done [09:27:13]opened in 1712881416 [09:27:13]opened+sec_in_day 1712967816 [09:27:13]quantity*price = 100050 [09:27:13]sum+1 = 100052 [09:27: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 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 66 12.04.2024 09:27 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28617 ФПД: 66455612345753 1/tax-web-control/client/api/v1/ticket?date=20240412T092720&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28617&fm=66455612345753&tin=02508201610067®Number=0000138879044617&sum=100000 [09:27:14]StoreToDocumentArchive [09:27:14]shift 113 fd 28617 [09:27:14]save to /storage/0113/doc_00028617 [09:27:14]save last doc name /storage/0113/doc_00028617 to /storage/kkm_last_doc_name [09:27:14]save OK [09:27:14]Clear old archive folders... [09:27:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:27:14]tlvbuf is 01B1F310 [09:27:14]SAM_PROTO_ClearQueue [09:27:14]wFMCommunicate request_size=4 [09:27:14]MH_SAM_APDU [09:27:14]CAPDU: 80 09 00 00 [09:27:14]Write to MH i2c: E2 08 00 0A 6B 80 09 00 00 00 00 00 00 E7 [09:27:14]Write i2c OK [09:27:14]MH_I2C_Read... [09:27:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:27:14]Read from MH i2c: E2 [09:27:14]MH_I2C_Read... [09:27:14]Read from MH i2c: E2 03 00 [09:27:14]MH_I2C_Read... [09:27:14]Read from MH i2c: E2 03 00 0A 6B 00 90 00 E9 [09:27:14]RAPDU: 90 00 [09:27:14]wFMCommunicate OK [09:27:14]SAM_PROTO_ClearQueue done [09:27:14]KKMCreateOFDPacket [09:27:14]OFDProtocolAddRootSTLVToBuf [09:27:14]FM_MakeSignedData [09:27:14]FM_MakeSignedData [09:27:14]SAM_PROTO_SignData [09:27:14]wFMCommunicate request_size=4 [09:27:14]MH_SAM_APDU [09:27:14]CAPDU: 80 0D 01 02 [09:27:14]Write to MH i2c: E2 08 00 0B 6B 80 0D 01 02 00 00 00 00 EF [09:27:14]Write i2c OK [09:27:14]MH_I2C_Read... [09:27:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:27:14]Read from MH i2c: E2 [09:27:14]MH_I2C_Read... [09:27:14]Read from MH i2c: E2 03 00 [09:27:14]MH_I2C_Read... [09:27:14]Read from MH i2c: E2 03 00 0B 6B 00 90 00 EA [09:27:14]RAPDU: 90 00 [09:27:14]wFMCommunicate OK [09:27:14]wFMCommunicate request_size=255 [09:27:14]MH_SAM_APDU [09:27:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 42 00 00 00 F4 03 04 00 78 FE 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C9 6F 00 00 35 04 06 00 3C [09:27:14]Write to MH i2c: E2 02 01 0C 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 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 42 00 00 00 F4 03 04 00 78 FE 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C9 6F 00 00 35 04 06 00 3C 00 00 36 [09:27:14]Write i2c OK [09:27:14]MH_I2C_Read... [09:27:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:27:14]Read from MH i2c: E2 [09:27:14]MH_I2C_Read... [09:27:14]Read from MH i2c: E2 03 00 [09:27:14]MH_I2C_Read... [09:27:14]Read from MH i2c: E2 03 00 0C 6B 00 90 00 EB [09:27:14]RAPDU: 90 00 [09:27:14]wFMCommunicate OK [09:27:14]wFMCommunicate request_size=10 [09:27:14]MH_SAM_APDU [09:27:14]CAPDU: 80 0D 02 02 05 70 E7 2A CD 99 [09:27:14]Write to MH i2c: E2 0D 00 0D 6B 80 0D 02 02 05 00 70 E7 2A CD 99 00 00 E3 [09:27:14]Write i2c OK [09:27:14]MH_I2C_Read... [09:27:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:27:14]Read from MH i2c: E2 [09:27:14]MH_I2C_Read... [09:27:14]Read from MH i2c: E2 03 00 [09:27:14]MH_I2C_Read... [09:27:14]Read from MH i2c: E2 03 00 0D 6B 00 90 00 EC [09:27:14]RAPDU: 90 00 [09:27:14]wFMCommunicate OK [09:27:14]wFMCommunicate request_size=4 [09:27:14]MH_SAM_APDU [09:27:14]CAPDU: 80 0D 03 02 [09:27:14]Write to MH i2c: E2 08 00 0E 6B 80 0D 03 02 00 00 00 00 F4 [09:27:14]Write i2c OK [09:27:14]MH_I2C_Read... [09:27:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:27:14]Read from MH i2c: E2 [09:27:14]MH_I2C_Read... [09:27:14]Read from MH i2c: E2 0B 00 [09:27:14]MH_I2C_Read... [09:27:14]Read from MH i2c: E2 0B 00 0E 6B 00 FC 5D A6 E2 64 18 33 4D 90 00 D2 [09:27:14]RAPDU: FC 5D A6 E2 64 18 33 4D 90 00 [09:27:14]wFMCommunicate OK [09:27:14]SAM_PROTO_SignData done [09:27:14]FM_MakeSignedData done [09:27:14]CreateOFDProtocolMessage [09:27:14]wFMCommunicate request_size=4 [09:27:14]MH_SAM_APDU [09:27:14]CAPDU: 80 11 00 00 [09:27:14]Write to MH i2c: E2 08 00 0F 6B 80 11 00 00 00 00 00 00 F4 [09:27:14]Write i2c OK [09:27:14]MH_I2C_Read... [09:27:14]Read from MH i2c: E2 [09:27:14]MH_I2C_Read... [09:27:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:27:14]Read from MH i2c: E2 17 00 [09:27:14]MH_I2C_Read... [09:27:14]Read from MH i2c: E2 17 00 0F 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 43 [09:27:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:27:14]wFMCommunicate OK [09:27:14]CreateOFDProtocolMessage done [09:27:14]OFDSenderStorePacket 28617 [09:27:14]StoreOFDPacket docnum=28617 [09:27:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 B1 42 07 01 B9 DE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 42 00 00 00 F4 03 04 00 78 FE 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C9 6F 00 00 35 04 06 00 3C 70 E7 2A CD 99 FC 5D A6 E2 64 18 33 4D [09:27:14]CheckFolder [09:27:14]dirname=/storage/ofd_packets [09:27:14]CheckFolder done [09:27:14]ProducePacketName [09:27:14]name=ofd_packets/00028617 [09:27:14]NVStorageSaveData ofd_packets/00028617 [09:27:14]File name is /storage/ofd_packets/00028617 [09:27:14]Write 301 bytes [09:27:14]NVStorageSaveData done [09:27:14]OFDSenderStorePacket done [09:27:14]KKMCreateOFDPacket done [09:27:14]NVStorageSaveData kkm_last_timestamp [09:27:14]File name is /storage/kkm_last_timestamp [09:27:14]Write 4 bytes [09:27:14]NVStorageSaveData done [09:27:14]ExternCall_PrintAddStr [09:27:14]wPrintStart [09:27:14]Write to MH i2c: 01 00 00 10 6B 7B [09:27:14]Write i2c OK [09:27:14]MH_I2C_Read... [09:27:14]Read from MH i2c: 01 [09:27:14]MH_I2C_Read... [09:27:14]Read from MH i2c: 01 07 00 [09:27:14]MH_I2C_Read... [09:27:14]Read from MH i2c: 01 07 00 10 6B 00 00 00 00 00 FF 0F 90 [09:27:14]RasterBufferAndPrint [09:27:14]line Счет N : (1)346933 [09:27:14]line ИНН: 02508201610067 [09:27:14]line Контрольно-Кассовый Чек [09:27:14]line ПРОДАЖА [09:27:14]line ТРК (МРК, ГНК) : 32 [09:27:14]line Товар: 2710124130 [09:27:14]line Аи-92-К-5 [09:27:14]line 15.560 * 64.30 [09:27:14]line = 1000.51 [09:27:14]line НДС 12% НСП 1% [09:27:14]line > о реализуемом товаре [09:27:14]line ОКРУГЛЕНИЕ: -0.51 [09:27:14]line ИТОГО: 1000.00 [09:27:14]line Внесено: 1000.00 [09:27:14]line СДАЧА: 0.00 [09:27:14]line НСП 1% : 8.85 [09:27:14]line НДС 12% : 106.25 [09:27:14]line Наличными: 1000.00 [09:27:14]line Безнал.: 0.00 [09:27:14]line Место: АЗС № 108 "Партнер Нефть" [09:27:14]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [09:27:14]line СНО: Общий режим [09:27:14]line Чек 66 12.04.2024 09:27 [09:27:14]line Смена: 113 ФФД: 1.0 [09:27:14]line ЗНМ: 0300000027 [09:27:14]line РНМ: 0000138879044617 [09:27:14]line Версия ККМ: 001 [09:27:14]line ФМ: 0000000000963154 [09:27:14]line ФД: 28617 [09:27:14]line ФПД: 66455612345753 [09:27:14]line 1/tax-web-control/client/api/v1/ticket?date=20240412T092720&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28617&fm=66455612345753&tin=02508201610067®Number=0000138879044617&sum=100000 [09:27:14]written 0, free lines is 4095 [09:27:14]OFD Sender: Processing packet 28617 [packets to send 8, broken 7] [09:27:14]ProducePacketName [09:27:14]name=ofd_packets/00028617 [09:27:14]OFD Sender: To server: pG, [09:27:14]CommunicateWithHost lk.salyk.kg:30040 [09:27:14]ConnectInit lk.salyk.kg [09:27:15]Connected sock=10 [09:27:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 B1 42 07 01 B9 DE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 42 00 00 00 F4 03 04 00 78 FE 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C9 6F 00 00 35 04 06 00 3C 70 E7 2A CD 99 FC 5D A6 E2 64 18 33 4D [09:27:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 34 49 47 00 1C C0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C9 6F 00 00 F4 03 04 00 22 A9 18 66 B6 04 01 00 00 6F 14 98 9C 54 64 A6 ED [09:27:15]CommunicateWithHost err = 0 [09:27:15]CheckOFDResponse [09:27:15]1017 (14) - 77093643461234 [09:27:15]1041 (16) - 0000000000963154 [09:27:15]1040 (4) - 28617 [09:27:15]1012 (4) - 12.04.2024 03:23 [09:27:15]1206 (1) - 0 [09:27:15]OFD Sender: Remove packet 28617 [09:27:15]ProducePacketName [09:27:15]name=ofd_packets/00028617 [09:27:15]NVStorageDeleteData [09:27:15]Write to MH i2c: 01 00 00 3A 6B A5 [09:27:15]Write i2c OK [09:27:15]MH_I2C_Read... [09:27:15]Read from MH i2c: 01 [09:27:15]MH_I2C_Read... [09:27:15]Read from MH i2c: 01 07 00 [09:27:15]MH_I2C_Read... [09:27:15]Read from MH i2c: 01 07 00 3A 6B 00 00 00 00 00 DA 0C 92 [09:27:15]RasterBufferAndPrint [09:27:15]line [09:27:15]line [09:27:15]line [09:27:15]line [09:27:15]line [09:27:15]written 0, free lines is 3301 [09:27:15]MH_Cut [09:27:15]Write to MH i2c: D1 01 00 41 6B 01 7E [09:27:15]Write i2c OK [09:27:15]MH_I2C_Read... [09:27:15]Read from MH i2c: D1 [09:27:15]MH_I2C_Read... [09:27:15]Read from MH i2c: D1 01 00 [09:27:15]MH_I2C_Read... [09:27:15]Read from MH i2c: D1 01 00 41 6B 00 7D [09:27:15]Write to MH i2c: 01 00 00 42 6B AD [09:27:15]Write i2c OK [09:27:15]MH_I2C_Read... [09:27:15]OFD Sender: No OFD packet to send [09:27:16]*** Cut start [09:27:16]*** Partial cut [09:27:16]*** CUTSNS_PIN = 1 [09:27:16]*** CUTSNS_PIN = 0 [09:27:16]*** Brake cut motor [09:27:16]Read from MH i2c: 01 [09:27:16]MH_I2C_Read... [09:27:16]*** Stop cut motor [09:27:16]*** Cut end [09:27:16]Read from MH i2c: 01 07 00 [09:27:16]MH_I2C_Read... [09:27:16]Read from MH i2c: 01 07 00 42 6B 00 00 00 00 00 FF 0F C2 [09:27:16]process_action close_receipt done [09:27:16]requested_data is exist [09:27:16]produce_requested_data [09:27:16]requested_item fm.sn is exist - process it [09:27:16]wFMCommunicate request_size=4 [09:27:16]MH_SAM_APDU [09:27:16]CAPDU: 80 11 00 00 [09:27:16]Write to MH i2c: E2 08 00 43 6B 80 11 00 00 00 00 00 00 28 [09:27:16]Write i2c OK [09:27:16]MH_I2C_Read... [09:27:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:27:16]Read from MH i2c: E2 [09:27:16]MH_I2C_Read... [09:27:16]Read from MH i2c: E2 17 00 [09:27:16]MH_I2C_Read... [09:27:16]Read from MH i2c: E2 17 00 43 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 77 [09:27:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:27:16]wFMCommunicate OK [09:27:16]requested_item fd.num is exist - process it [09:27:16]SAM_PROTO_GetFieldsCounters [09:27:16]wFMCommunicate request_size=4 [09:27:16]MH_SAM_APDU [09:27:16]CAPDU: 80 13 00 00 [09:27:16]Write to MH i2c: E2 08 00 44 6B 80 13 00 00 00 00 00 00 2B [09:27:16]Write i2c OK [09:27:16]MH_I2C_Read... [09:27:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:27:17]Read from MH i2c: E2 [09:27:17]MH_I2C_Read... [09:27:17]Read from MH i2c: E2 62 00 [09:27:17]MH_I2C_Read... [09:27:17]Read from MH i2c: E2 62 00 44 6B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 C9 6F 00 00 0E 04 04 00 71 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 D8 [09:27:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 C9 6F 00 00 0E 04 04 00 71 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 [09:27:17]wFMCommunicate OK [09:27:17]SAM_PROTO_GetFieldsCounters done [09:27:17]requested_item shift.num is exist - process it [09:27:17]requested_item shift.opened is exist - process it [09:27:17]req_shift_opened [09:27:17]FM_GetShiftState [09:27:17]SAM_PROTO_GetShiftState [09:27:17]wFMCommunicate request_size=4 [09:27:17]MH_SAM_APDU [09:27:17]CAPDU: 80 13 01 00 [09:27:17]Write to MH i2c: E2 08 00 45 6B 80 13 01 00 00 00 00 00 2D [09:27:17]Write i2c OK [09:27:17]MH_I2C_Read... [09:27:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:27:17]Read from MH i2c: E2 [09:27:17]MH_I2C_Read... [09:27:17]Read from MH i2c: E2 0E 00 [09:27:17]MH_I2C_Read... [09:27:17]Read from MH i2c: E2 0E 00 45 6B 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 3E [09:27:17]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [09:27:17]wFMCommunicate OK [09:27:17]SAM_PROTO_GetShiftState done [09:27:17]FM_GetShiftState done [09:27:17]req_shift_opened done [09:27:17]requested_item shift.open_date is exist - process it [09:27:17]req_shift_open_date [09:27:17]req_shift_open_date done [09:27:17]produce_requested_data done [09:27:17]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28617,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [09:27:17]process_action_free close_receipt [09:27:17]json_value_free [09:27:17]json_value_free done [09:27:17]process_json_proto returns [09:27:17]Send response to host [09:27:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28617,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [09:27:17]free response buf [09:27:17]execute_script done [09:27:17]execute_script returns [09:27:17]free content buf [09:27:17]Sock 9.Close socket [09:27:17]Sock 9.Thread stoped [09:27:20]OFD Sender: No OFD packet to send [09:27:25]OFD Sender: No OFD packet to send [09:27:30]OFD Sender: No OFD packet to send [09:27:35]OFD Sender: No OFD packet to send [09:27:40]OFD Sender: No OFD packet to send [09:27:45]OFD Sender: No OFD packet to send [09:27:46]int [09:27:46]Write to MH i2c: 01 00 00 46 6B B1 [09:27:46]*** FLAG_PRN_KEY set [09:27:46]Write i2c OK [09:27:46]MH_I2C_Read... [09:27:46]Read from MH i2c: 01 [09:27:46]MH_I2C_Read... [09:27:46]Read from MH i2c: 01 07 00 [09:27:46]MH_I2C_Read... [09:27:46]Read from MH i2c: 01 07 00 46 6B 00 08 00 00 00 FF 0F CE [09:27:46]state=0 [09:27:46]Key pressed [09:27:46]Feed [09:27:46]Write to MH i2c: D8 00 00 47 6B 89 [09:27:46]Write i2c OK [09:27:46]MH_I2C_Read... [09:27:46]Read from MH i2c: D8 [09:27:46]MH_I2C_Read... [09:27:46]Read from MH i2c: D8 01 00 [09:27:46]MH_I2C_Read... [09:27:46]Read from MH i2c: D8 01 00 47 6B 00 8A [09:27:46]int [09:27:46]Write to MH i2c: 01 00 00 48 6B B3 [09:27:46]Write i2c OK [09:27:46]MH_I2C_Read... [09:27:46]Read from MH i2c: 01 [09:27:46]MH_I2C_Read... [09:27:46]Read from MH i2c: 01 07 00 [09:27:46]MH_I2C_Read... [09:27:46]Read from MH i2c: 01 07 00 48 6B 00 48 00 00 00 3C 00 3E [09:27:46]state=2 [09:27:46]Key pressed [09:27:46]int [09:27:46]Write to MH i2c: 01 00 00 49 6B B4 [09:27:46]*** FLAG_PRN_KEY reset [09:27:46]Write i2c OK [09:27:46]MH_I2C_Read... [09:27:46]Read from MH i2c: 01 [09:27:46]MH_I2C_Read... [09:27:46]Read from MH i2c: 01 07 00 [09:27:46]MH_I2C_Read... [09:27:46]Read from MH i2c: 01 07 00 49 6B 00 00 00 00 00 F7 0F C1 [09:27:46]state=2 [09:27:46]Stop feed [09:27:47]int [09:27:47]Write to MH i2c: 01 00 00 4A 6B B5 [09:27:47]*** FLAG_PRN_KEY set [09:27:47]Write i2c OK [09:27:47]MH_I2C_Read... [09:27:47]Read from MH i2c: 01 [09:27:47]MH_I2C_Read... [09:27:47]Read from MH i2c: 01 07 00 [09:27:47]MH_I2C_Read... [09:27:47]Read from MH i2c: 01 07 00 4A 6B 00 08 00 00 00 FF 0F D2 [09:27:47]state=0 [09:27:47]Key pressed [09:27:47]Feed [09:27:47]Write to MH i2c: D8 00 00 4B 6B 8D [09:27:47]Write i2c OK [09:27:47]MH_I2C_Read... [09:27:47]Read from MH i2c: D8 [09:27:47]MH_I2C_Read... [09:27:47]Read from MH i2c: D8 01 00 [09:27:47]MH_I2C_Read... [09:27:47]Read from MH i2c: D8 01 00 4B 6B 00 8E [09:27:47]int [09:27:47]Write to MH i2c: 01 00 00 4C 6B B7 [09:27:47]Write i2c OK [09:27:47]MH_I2C_Read... [09:27:47]Read from MH i2c: 01 [09:27:47]MH_I2C_Read... [09:27:47]Read from MH i2c: 01 07 00 [09:27:47]MH_I2C_Read... [09:27:47]Read from MH i2c: 01 07 00 4C 6B 00 48 00 00 00 3C 00 42 [09:27:47]state=2 [09:27:47]Key pressed [09:27:47]int [09:27:47]Write to MH i2c: 01 00 00 4D 6B B8 [09:27:47]*** FLAG_PRN_KEY reset [09:27:47]Write i2c OK [09:27:47]MH_I2C_Read... [09:27:47]Read from MH i2c: 01 [09:27:47]MH_I2C_Read... [09:27:47]Read from MH i2c: 01 07 00 [09:27:47]MH_I2C_Read... [09:27:47]Read from MH i2c: 01 07 00 4D 6B 00 00 00 00 00 F5 0F C3 [09:27:47]state=2 [09:27:47]Stop feed [09:27:48]int [09:27:48]Write to MH i2c: 01 00 00 4E 6B B9 [09:27:48]*** FLAG_PRN_PAP1 set [09:27:48]Write i2c OK [09:27:48]MH_I2C_Read... [09:27:48]Read from MH i2c: 01 [09:27:48]MH_I2C_Read... [09:27:48]Read from MH i2c: 01 07 00 [09:27:48]MH_I2C_Read... [09:27:48]Read from MH i2c: 01 07 00 4E 6B 00 01 00 00 00 FF 0F CF [09:27:48]state=0 [09:27:48]No paper [09:27:49]int [09:27:49]Write to MH i2c: 01 00 00 4F 6B BA [09:27:49]*** FLAG_PRN_PAP2 set [09:27:49]Write i2c OK [09:27:49]MH_I2C_Read... [09:27:49]Read from MH i2c: 01 [09:27:49]MH_I2C_Read... [09:27:49]Read from MH i2c: 01 07 00 [09:27:49]MH_I2C_Read... [09:27:49]Read from MH i2c: 01 07 00 4F 6B 00 03 00 00 00 FF 0F D2 [09:27:49]state=0 [09:27:49]No paper [09:27:49]Cover opened [09:27:50]int [09:27:50]Write to MH i2c: 01 00 00 50 6B BB [09:27:50]*** FLAG_PRN_PAP2 reset [09:27:50]Write i2c OK [09:27:50]MH_I2C_Read... [09:27:50]Read from MH i2c: 01 [09:27:50]MH_I2C_Read... [09:27:50]Read from MH i2c: 01 07 00 [09:27:50]MH_I2C_Read... [09:27:50]Read from MH i2c: 01 07 00 50 6B 00 01 00 00 00 FF 0F D1 [09:27:50]state=3 [09:27:50]No paper [09:27:50]Cover closed [09:27:50]int [09:27:50]Write to MH i2c: 01 00 00 51 6B BC [09:27:50]*** FLAG_PRN_PAP1 reset [09:27:50]Write i2c OK [09:27:50]MH_I2C_Read... [09:27:50]Read from MH i2c: 01 [09:27:50]MH_I2C_Read... [09:27:50]Read from MH i2c: 01 07 00 [09:27:50]MH_I2C_Read... [09:27:50]Read from MH i2c: 01 07 00 51 6B 00 00 00 00 00 FF 0F D1 [09:27:50]state=0 [09:27:50]OFD Sender: No OFD packet to send [09:27:55]OFD Sender: No OFD packet to send [09:28:00]OFD Sender: No OFD packet to send [09:28:05]OFD Sender: No OFD packet to send [09:28:10]OFD Sender: No OFD packet to send [09:28:15]OFD Sender: No OFD packet to send [09:28:20]OFD Sender: No OFD packet to send [09:28:25]OFD Sender: No OFD packet to send [09:28:30]OFD Sender: No OFD packet to send [09:28:35]OFD Sender: No OFD packet to send [09:28:40]OFD Sender: No OFD packet to send [09:28:45]OFD Sender: No OFD packet to send [09:28:50]OFD Sender: No OFD packet to send [09:28:55]OFD Sender: No OFD packet to send [09:29:00]OFD Sender: No OFD packet to send [09:29:05]OFD Sender: No OFD packet to send [09:29:10]OFD Sender: No OFD packet to send [09:29:15]OFD Sender: No OFD packet to send [09:29:20]OFD Sender: No OFD packet to send [09:29:25]OFD Sender: No OFD packet to send [09:29:30]OFD Sender: No OFD packet to send [09:29:35]OFD Sender: No OFD packet to send [09:29:40]OFD Sender: No OFD packet to send [09:29:45]OFD Sender: No OFD packet to send [09:29:50]OFD Sender: No OFD packet to send [09:29:55]OFD Sender: No OFD packet to send [09:30:00]OFD Sender: No OFD packet to send [09:30:05]OFD Sender: No OFD packet to send [09:30:10]OFD Sender: No OFD packet to send [09:30:15]OFD Sender: No OFD packet to send [09:30:20]OFD Sender: No OFD packet to send [09:30:25]OFD Sender: No OFD packet to send [09:30:30]OFD Sender: No OFD packet to send [09:30:35]OFD Sender: No OFD packet to send [09:30:40]OFD Sender: No OFD packet to send [09:30:45]OFD Sender: No OFD packet to send [09:30:50]OFD Sender: No OFD packet to send [09:30:55]OFD Sender: No OFD packet to send [09:31:00]OFD Sender: No OFD packet to send [09:31:05]OFD Sender: No OFD packet to send [09:31:10]OFD Sender: No OFD packet to send [09:31:15]OFD Sender: No OFD packet to send [09:31:20]OFD Sender: No OFD packet to send [09:31:25]OFD Sender: No OFD packet to send [09:31:30]OFD Sender: No OFD packet to send [09:31:35]OFD Sender: No OFD packet to send [09:31:40]OFD Sender: No OFD packet to send [09:31:41]accept exits with 7 [09:31:41]New connection [09:31:41]New thread 3066498404 created [09:31:41]Thread 3066641764 joined [09:31:41]Waiting for new connection... [09:31:41] Sock 7.Parse request [09:31:41]Sock 7.Check first char [09:31:41]Sock 7.First char is OK [09:31:41]request: POST /json_proto HTTP/1.0 [09:31:41]Method: POST [09:31:41]URL: /json_proto [09:31:41]Method is POST - this is cgi request [09:31:41]url: /json_proto [09:31:41]query_string will be loaded in cgi processing [09:31:41]execute_cgi json_proto POST (null) [09:31:41]execute_cgi path=json_proto method=POST [09:31:41]POST find Content-Length [09:31:41]Host: 172.17.33.3:8080 [09:31:41]Content-Length: 808 [09:31:41]Content-Type: application/json [09:31:41] [09:31:41]POST finish read [09:31:41]Found Content-Length = 808 [09:31:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346935", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 31.110, "sum" : 2000.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.37 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:31:41]execute_script... [09:31: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)346935", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 31.110, "sum" : 2000.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.37 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:31:41]POST & json_proto [09:31:41]process_json_proto [09:31:41]json parsed OK: [09:31:41]protocol is kg_v1.0 [09:31:41]action value=close_receipt [09:31:41]process_action close_receipt [09:31:41]cmd_close_receipt [09:31:41]MH_GetDate [09:31:41]Write to MH i2c: F0 00 00 52 6B AC [09:31:41]Write i2c OK [09:31:41]MH_I2C_Read... [09:31:41]Read from MH i2c: F0 [09:31:41]MH_I2C_Read... [09:31:41]Read from MH i2c: F0 09 00 [09:31:41]MH_I2C_Read... [09:31:41]Read from MH i2c: F0 09 00 52 6B 00 85 FF 18 66 23 5B 8F 65 29 [09:31:41]GetLastDocTimeStamp 1712914040 [09:31:41]current date 1712914309 [09:31:41]FM_GetShiftState [09:31:41]SAM_PROTO_GetShiftState [09:31:41]wFMCommunicate request_size=4 [09:31:41]MH_SAM_APDU [09:31:41]CAPDU: 80 13 01 00 [09:31:41]Write to MH i2c: E2 08 00 53 6B 80 13 01 00 00 00 00 00 3B [09:31:41]Write i2c OK [09:31:41]MH_I2C_Read... [09:31:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:31:41]Read from MH i2c: E2 [09:31:41]MH_I2C_Read... [09:31:41]Read from MH i2c: E2 0E 00 [09:31:41]MH_I2C_Read... [09:31:41]Read from MH i2c: E2 0E 00 53 6B 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 4C [09:31:41]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [09:31:41]wFMCommunicate OK [09:31:41]SAM_PROTO_GetShiftState done [09:31:41]FM_GetShiftState done [09:31:41]opened in 1712881416 [09:31:41]opened+sec_in_day 1712967816 [09:31:41]quantity*price = 200037 [09:31:41]sum+1 = 200038 [09:31:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.37 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 0.00 Безнал.: 2000.37 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 67 12.04.2024 09:31 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 28618 ФПД: 35384522391032 1/tax-web-control/client/api/v1/ticket?date=20240412T093149&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28618&fm=35384522391032&tin=02508201610067®Number=0000138879044617&sum=200037 [09:31:42]StoreToDocumentArchive [09:31:42]shift 113 fd 28618 [09:31:42]save to /storage/0113/doc_00028618 [09:31:42]save last doc name /storage/0113/doc_00028618 to /storage/kkm_last_doc_name [09:31:42]save OK [09:31:42]Clear old archive folders... [09:31:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:31:42]tlvbuf is 01AE20E0 [09:31:42]SAM_PROTO_ClearQueue [09:31:42]wFMCommunicate request_size=4 [09:31:42]MH_SAM_APDU [09:31:42]CAPDU: 80 09 00 00 [09:31:42]Write to MH i2c: E2 08 00 60 6B 80 09 00 00 00 00 00 00 3D [09:31:42]Write i2c OK [09:31:42]MH_I2C_Read... [09:31:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:31:42]Read from MH i2c: E2 [09:31:42]MH_I2C_Read... [09:31:42]Read from MH i2c: E2 03 00 [09:31:42]MH_I2C_Read... [09:31:42]Read from MH i2c: E2 03 00 60 6B 00 90 00 3F [09:31:42]RAPDU: 90 00 [09:31:42]wFMCommunicate OK [09:31:42]SAM_PROTO_ClearQueue done [09:31:42]KKMCreateOFDPacket [09:31:42]OFDProtocolAddRootSTLVToBuf [09:31:42]FM_MakeSignedData [09:31:42]FM_MakeSignedData [09:31:42]SAM_PROTO_SignData [09:31:42]wFMCommunicate request_size=4 [09:31:42]MH_SAM_APDU [09:31:42]CAPDU: 80 0D 01 02 [09:31:42]Write to MH i2c: E2 08 00 61 6B 80 0D 01 02 00 00 00 00 45 [09:31:42]Write i2c OK [09:31:42]MH_I2C_Read... [09:31:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:31:42]Read from MH i2c: E2 [09:31:42]MH_I2C_Read... [09:31:42]Read from MH i2c: E2 03 00 [09:31:42]MH_I2C_Read... [09:31:42]Read from MH i2c: E2 03 00 61 6B 00 90 00 40 [09:31:42]RAPDU: 90 00 [09:31:42]wFMCommunicate OK [09:31:42]wFMCommunicate request_size=255 [09:31:42]MH_SAM_APDU [09:31:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 79 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 65 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 65 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 65 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 85 FF 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CA 6F 00 00 35 04 06 00 20 [09:31:42]Write to MH i2c: E2 02 01 62 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 35 FF 03 08 00 03 86 79 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 65 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 65 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 65 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 85 FF 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CA 6F 00 00 35 04 06 00 20 00 00 4D [09:31:42]Write i2c OK [09:31:42]MH_I2C_Read... [09:31:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:31:43]Read from MH i2c: E2 [09:31:43]MH_I2C_Read... [09:31:43]Read from MH i2c: E2 03 00 [09:31:43]MH_I2C_Read... [09:31:43]Read from MH i2c: E2 03 00 62 6B 00 90 00 41 [09:31:43]RAPDU: 90 00 [09:31:43]wFMCommunicate OK [09:31:43]wFMCommunicate request_size=10 [09:31:43]MH_SAM_APDU [09:31:43]CAPDU: 80 0D 02 02 05 2E 99 E3 3D F8 [09:31:43]Write to MH i2c: E2 0D 00 63 6B 80 0D 02 02 05 00 2E 99 E3 3D F8 00 00 31 [09:31:43]Write i2c OK [09:31:43]MH_I2C_Read... [09:31:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:31:43]Read from MH i2c: E2 [09:31:43]MH_I2C_Read... [09:31:43]Read from MH i2c: E2 03 00 [09:31:43]MH_I2C_Read... [09:31:43]Read from MH i2c: E2 03 00 63 6B 00 90 00 42 [09:31:43]RAPDU: 90 00 [09:31:43]wFMCommunicate OK [09:31:43]wFMCommunicate request_size=4 [09:31:43]MH_SAM_APDU [09:31:43]CAPDU: 80 0D 03 02 [09:31:43]Write to MH i2c: E2 08 00 64 6B 80 0D 03 02 00 00 00 00 4A [09:31:43]Write i2c OK [09:31:43]MH_I2C_Read... [09:31:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:31:43]Read from MH i2c: E2 [09:31:43]MH_I2C_Read... [09:31:43]Read from MH i2c: E2 0B 00 [09:31:43]MH_I2C_Read... [09:31:43]Read from MH i2c: E2 0B 00 64 6B 00 4B 1D 01 66 A6 F0 C8 2E 90 00 A6 [09:31:43]RAPDU: 4B 1D 01 66 A6 F0 C8 2E 90 00 [09:31:43]wFMCommunicate OK [09:31:43]SAM_PROTO_SignData done [09:31:43]FM_MakeSignedData done [09:31:43]CreateOFDProtocolMessage [09:31:43]wFMCommunicate request_size=4 [09:31:43]MH_SAM_APDU [09:31:43]CAPDU: 80 11 00 00 [09:31:43]Write to MH i2c: E2 08 00 65 6B 80 11 00 00 00 00 00 00 4A [09:31:43]Write i2c OK [09:31:43]MH_I2C_Read... [09:31:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:31:43]Read from MH i2c: E2 [09:31:43]MH_I2C_Read... [09:31:43]Read from MH i2c: E2 17 00 [09:31:43]MH_I2C_Read... [09:31:43]Read from MH i2c: E2 17 00 65 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 99 [09:31:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:31:43]wFMCommunicate OK [09:31:43]CreateOFDProtocolMessage done [09:31:43]OFDSenderStorePacket 28618 [09:31:43]StoreOFDPacket docnum=28618 [09:31:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 4F B6 07 01 77 FE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 79 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 65 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 65 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 65 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 85 FF 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CA 6F 00 00 35 04 06 00 20 2E 99 E3 3D F8 4B 1D 01 66 A6 F0 C8 2E [09:31:43]CheckFolder [09:31:43]dirname=/storage/ofd_packets [09:31:43]CheckFolder done [09:31:43]ProducePacketName [09:31:43]name=ofd_packets/00028618 [09:31:43]NVStorageSaveData ofd_packets/00028618 [09:31:43]File name is /storage/ofd_packets/00028618 [09:31:43]Write 301 bytes [09:31:43]NVStorageSaveData done [09:31:43]OFDSenderStorePacket done [09:31:43]KKMCreateOFDPacket done [09:31:43]NVStorageSaveData kkm_last_timestamp [09:31:43]File name is /storage/kkm_last_timestamp [09:31:43]Write 4 bytes [09:31:43]NVStorageSaveData done [09:31:43]ExternCall_PrintAddStr [09:31:43]wPrintStart [09:31:43]Write to MH i2c: 01 00 00 66 6B D1 [09:31:43]Write i2c OK [09:31:43]MH_I2C_Read... [09:31:43]Read from MH i2c: 01 [09:31:43]MH_I2C_Read... [09:31:43]Read from MH i2c: 01 07 00 [09:31:43]MH_I2C_Read... [09:31:43]Read from MH i2c: 01 07 00 66 6B 00 00 00 00 00 FF 0F E6 [09:31:43]RasterBufferAndPrint [09:31:43]line Счет N : (1)346935 [09:31:43]line ИНН: 02508201610067 [09:31:43]line Контрольно-Кассовый Чек [09:31:43]line ПРОДАЖА [09:31:43]line ТРК (МРК, ГНК) : 42 [09:31:43]line Товар: 2710124130 [09:31:43]line Аи-92-К-5 [09:31:43]line 31.110 * 64.30 [09:31:43]line = 2000.37 [09:31:43]line НДС 12% НСП 1% [09:31:43]line > о реализуемом товаре [09:31:43]line ИТОГО: 2000.37 [09:31:43]line НСП 1% : 17.70 [09:31:43]line НДС 12% : 212.43 [09:31:43]line Наличными: 0.00 [09:31:43]line Безнал.: 2000.37 [09:31:43]line Место: АЗС № 108 "Партнер Нефть" [09:31:43]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [09:31:43]line СНО: Общий режим [09:31:43]line Чек 67 12.04.2024 09:31 [09:31:43]line Смена: 113 ФФД: 1.0 [09:31:43]line ЗНМ: 0300000027 [09:31:43]line РНМ: 0000138879044617 [09:31:43]line Версия ККМ: 001 [09:31:43]line Платежная система: О! деньги [09:31:43]line ФМ: 0000000000963154 [09:31:43]line ФД: 28618 [09:31:43]line ФПД: 35384522391032 [09:31:43]line 1/tax-web-control/client/api/v1/ticket?date=20240412T093149&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28618&fm=35384522391032&tin=02508201610067®Number=0000138879044617&sum=200037 [09:31:43]OFD Sender: Processing packet 28618 [packets to send 8, broken 7] [09:31:43]ProducePacketName [09:31:43]name=ofd_packets/00028618 [09:31:43]OFD Sender: To server: pG, [09:31:43]CommunicateWithHost lk.salyk.kg:30040 [09:31:43]ConnectInit lk.salyk.kg [09:31:43]written 0, free lines is 4095 [09:31:43]Connected sock=10 [09:31:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 4F B6 07 01 77 FE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 79 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 65 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 65 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 65 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 85 FF 18 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CA 6F 00 00 35 04 06 00 20 2E 99 E3 3D F8 4B 1D 01 66 A6 F0 C8 2E [09:31:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 91 02 47 00 63 44 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CA 6F 00 00 F4 03 04 00 2F AA 18 66 B6 04 01 00 00 BB 83 E3 4B 9E AF D7 33 [09:31:43]CommunicateWithHost err = 0 [09:31:43]CheckOFDResponse [09:31:43]1017 (14) - 77093643461234 [09:31:43]1041 (16) - 0000000000963154 [09:31:43]1040 (4) - 28618 [09:31:43]1012 (4) - 12.04.2024 03:27 [09:31:43]1206 (1) - 0 [09:31:43]OFD Sender: Remove packet 28618 [09:31:43]ProducePacketName [09:31:43]name=ofd_packets/00028618 [09:31:43]NVStorageDeleteData [09:31:44]Write to MH i2c: 01 00 00 8F 6B FA [09:31:44]Write i2c OK [09:31:44]MH_I2C_Read... [09:31:44]Read from MH i2c: 01 [09:31:44]MH_I2C_Read... [09:31:44]Read from MH i2c: 01 07 00 [09:31:44]MH_I2C_Read... [09:31:44]Read from MH i2c: 01 07 00 8F 6B 00 00 00 00 00 EE 0C FB [09:31:44]RasterBufferAndPrint [09:31:44]line [09:31:44]line [09:31:44]line [09:31:44]line [09:31:44]line [09:31:44]written 0, free lines is 3317 [09:31:44]MH_Cut [09:31:44]Write to MH i2c: D1 01 00 96 6B 01 D3 [09:31:44]Write i2c OK [09:31:44]MH_I2C_Read... [09:31:44]Read from MH i2c: D1 [09:31:44]MH_I2C_Read... [09:31:44]Read from MH i2c: D1 01 00 [09:31:44]MH_I2C_Read... [09:31:44]Read from MH i2c: D1 01 00 96 6B 00 D2 [09:31:44]Write to MH i2c: 01 00 00 97 6B 02 [09:31:44]Write i2c OK [09:31:44]MH_I2C_Read... [09:31:44]OFD Sender: No OFD packet to send [09:31:44]*** Cut start [09:31:44]*** Partial cut [09:31:44]*** CUTSNS_PIN = 1 [09:31:44]*** CUTSNS_PIN = 0 [09:31:45]*** Brake cut motor [09:31:45]Read from MH i2c: 01 [09:31:45]MH_I2C_Read... [09:31:45]*** Stop cut motor [09:31:45]*** Cut end [09:31:45]Read from MH i2c: 01 07 00 [09:31:45]MH_I2C_Read... [09:31:45]Read from MH i2c: 01 07 00 97 6B 00 00 00 00 00 FF 0F 17 [09:31:45]process_action close_receipt done [09:31:45]requested_data is exist [09:31:45]produce_requested_data [09:31:45]requested_item fm.sn is exist - process it [09:31:45]wFMCommunicate request_size=4 [09:31:45]MH_SAM_APDU [09:31:45]CAPDU: 80 11 00 00 [09:31:45]Write to MH i2c: E2 08 00 98 6B 80 11 00 00 00 00 00 00 7D [09:31:45]Write i2c OK [09:31:45]MH_I2C_Read... [09:31:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:31:45]Read from MH i2c: E2 [09:31:45]MH_I2C_Read... [09:31:45]Read from MH i2c: E2 17 00 [09:31:45]MH_I2C_Read... [09:31:45]Read from MH i2c: E2 17 00 98 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 CC [09:31:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:31:45]wFMCommunicate OK [09:31:45]requested_item fd.num is exist - process it [09:31:45]SAM_PROTO_GetFieldsCounters [09:31:45]wFMCommunicate request_size=4 [09:31:45]MH_SAM_APDU [09:31:45]CAPDU: 80 13 00 00 [09:31:45]Write to MH i2c: E2 08 00 99 6B 80 13 00 00 00 00 00 00 80 [09:31:45]Write i2c OK [09:31:45]MH_I2C_Read... [09:31:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:31:45]Read from MH i2c: E2 [09:31:45]MH_I2C_Read... [09:31:45]Read from MH i2c: E2 62 00 [09:31:45]MH_I2C_Read... [09:31:45]Read from MH i2c: E2 62 00 99 6B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 CA 6F 00 00 0E 04 04 00 71 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 31 [09:31:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 CA 6F 00 00 0E 04 04 00 71 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 [09:31:45]wFMCommunicate OK [09:31:45]SAM_PROTO_GetFieldsCounters done [09:31:45]requested_item shift.num is exist - process it [09:31:45]requested_item shift.opened is exist - process it [09:31:45]req_shift_opened [09:31:45]FM_GetShiftState [09:31:45]SAM_PROTO_GetShiftState [09:31:45]wFMCommunicate request_size=4 [09:31:45]MH_SAM_APDU [09:31:45]CAPDU: 80 13 01 00 [09:31:45]Write to MH i2c: E2 08 00 9A 6B 80 13 01 00 00 00 00 00 82 [09:31:45]Write i2c OK [09:31:45]MH_I2C_Read... [09:31:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:31:45]Read from MH i2c: E2 [09:31:45]MH_I2C_Read... [09:31:45]Read from MH i2c: E2 0E 00 [09:31:45]MH_I2C_Read... [09:31:45]Read from MH i2c: E2 0E 00 9A 6B 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 93 [09:31:45]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [09:31:45]wFMCommunicate OK [09:31:45]SAM_PROTO_GetShiftState done [09:31:45]FM_GetShiftState done [09:31:45]req_shift_opened done [09:31:45]requested_item shift.open_date is exist - process it [09:31:45]req_shift_open_date [09:31:45]req_shift_open_date done [09:31:45]produce_requested_data done [09:31:45]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28618,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [09:31:45]process_action_free close_receipt [09:31:45]json_value_free [09:31:45]json_value_free done [09:31:45]process_json_proto returns [09:31:45]Send response to host [09:31:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28618,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [09:31:45]free response buf [09:31:45]execute_script done [09:31:45]execute_script returns [09:31:45]free content buf [09:31:45]Sock 7.Close socket [09:31:45]Sock 7.Thread stoped [09:31:49]OFD Sender: No OFD packet to send [09:31:54]OFD Sender: No OFD packet to send [09:31:59]OFD Sender: No OFD packet to send [09:32:04]OFD Sender: No OFD packet to send [09:32:09]OFD Sender: No OFD packet to send [09:32:14]OFD Sender: No OFD packet to send [09:32:19]OFD Sender: No OFD packet to send [09:32:24]OFD Sender: No OFD packet to send [09:32:29]OFD Sender: No OFD packet to send [09:32:34]OFD Sender: No OFD packet to send [09:32:39]OFD Sender: No OFD packet to send [09:32:44]OFD Sender: No OFD packet to send [09:32:49]OFD Sender: No OFD packet to send [09:32:54]OFD Sender: No OFD packet to send [09:32:59]OFD Sender: No OFD packet to send [09:33:04]OFD Sender: No OFD packet to send [09:33:09]OFD Sender: No OFD packet to send [09:33:14]OFD Sender: No OFD packet to send [09:33:19]OFD Sender: No OFD packet to send [09:33:24]OFD Sender: No OFD packet to send [09:33:29]OFD Sender: No OFD packet to send [09:33:34]OFD Sender: No OFD packet to send [09:33:39]OFD Sender: No OFD packet to send [09:33:44]OFD Sender: No OFD packet to send [09:33:49]OFD Sender: No OFD packet to send [09:33:54]OFD Sender: No OFD packet to send [09:33:59]OFD Sender: No OFD packet to send [09:34:04]OFD Sender: No OFD packet to send [09:34:09]OFD Sender: No OFD packet to send [09:34:14]OFD Sender: No OFD packet to send [09:34:19]OFD Sender: No OFD packet to send [09:34:24]OFD Sender: No OFD packet to send [09:34:29]OFD Sender: No OFD packet to send [09:34:34]OFD Sender: No OFD packet to send [09:34:39]OFD Sender: No OFD packet to send [09:34:44]OFD Sender: No OFD packet to send [09:34:49]OFD Sender: No OFD packet to send [09:34:54]OFD Sender: No OFD packet to send [09:34:59]OFD Sender: No OFD packet to send [09:35:04]OFD Sender: No OFD packet to send [09:35:09]OFD Sender: No OFD packet to send [09:35:14]OFD Sender: No OFD packet to send [09:35:19]OFD Sender: No OFD packet to send [09:35:24]OFD Sender: No OFD packet to send [09:35:29]OFD Sender: No OFD packet to send [09:35:34]OFD Sender: No OFD packet to send [09:35:39]OFD Sender: No OFD packet to send [09:35:44]OFD Sender: No OFD packet to send [09:35:49]OFD Sender: No OFD packet to send [09:35:54]OFD Sender: No OFD packet to send [09:35:59]OFD Sender: No OFD packet to send [09:36:04]OFD Sender: No OFD packet to send [09:36:09]OFD Sender: No OFD packet to send [09:36:14]OFD Sender: No OFD packet to send [09:36:19]OFD Sender: No OFD packet to send [09:36:24]OFD Sender: No OFD packet to send [09:36:29]OFD Sender: No OFD packet to send [09:36:34]OFD Sender: No OFD packet to send [09:36:39]OFD Sender: No OFD packet to send [09:36:44]OFD Sender: No OFD packet to send [09:36:49]OFD Sender: No OFD packet to send [09:36:54]OFD Sender: No OFD packet to send [09:36:59]OFD Sender: No OFD packet to send [09:37:04]OFD Sender: No OFD packet to send [09:37:09]OFD Sender: No OFD packet to send [09:37:14]OFD Sender: No OFD packet to send [09:37:19]OFD Sender: No OFD packet to send [09:37:24]OFD Sender: No OFD packet to send [09:37:29]OFD Sender: No OFD packet to send [09:37:34]OFD Sender: No OFD packet to send [09:37:39]OFD Sender: No OFD packet to send [09:37:44]OFD Sender: No OFD packet to send [09:37:49]OFD Sender: No OFD packet to send [09:37:54]OFD Sender: No OFD packet to send [09:37:59]OFD Sender: No OFD packet to send [09:38:04]OFD Sender: No OFD packet to send [09:38:09]OFD Sender: No OFD packet to send [09:38:14]OFD Sender: No OFD packet to send [09:38:19]OFD Sender: No OFD packet to send [09:38:24]OFD Sender: No OFD packet to send [09:38:29]OFD Sender: No OFD packet to send [09:38:34]OFD Sender: No OFD packet to send [09:38:39]OFD Sender: No OFD packet to send [09:38:44]OFD Sender: No OFD packet to send [09:38:49]OFD Sender: No OFD packet to send [09:38:54]OFD Sender: No OFD packet to send [09:38:59]OFD Sender: No OFD packet to send [09:39:04]OFD Sender: No OFD packet to send [09:39:09]OFD Sender: No OFD packet to send [09:39:14]OFD Sender: No OFD packet to send [09:39:19]OFD Sender: No OFD packet to send [09:39:24]OFD Sender: No OFD packet to send [09:39:29]OFD Sender: No OFD packet to send [09:39:34]OFD Sender: No OFD packet to send [09:39:39]OFD Sender: No OFD packet to send [09:39:44]OFD Sender: No OFD packet to send [09:39:49]OFD Sender: No OFD packet to send [09:39:54]OFD Sender: No OFD packet to send [09:39:59]OFD Sender: No OFD packet to send [09:40:04]OFD Sender: No OFD packet to send [09:40:09]OFD Sender: No OFD packet to send [09:40:14]OFD Sender: No OFD packet to send [09:40:19]OFD Sender: No OFD packet to send [09:40:24]OFD Sender: No OFD packet to send [09:40:29]OFD Sender: No OFD packet to send [09:40:34]OFD Sender: No OFD packet to send [09:40:39]OFD Sender: No OFD packet to send [09:40:44]OFD Sender: No OFD packet to send [09:40:49]OFD Sender: No OFD packet to send [09:40:54]OFD Sender: No OFD packet to send [09:40:59]OFD Sender: No OFD packet to send [09:41:04]OFD Sender: No OFD packet to send [09:41:09]accept exits with 9 [09:41:09]New connection [09:41:09]New thread 3066641764 created [09:41:09]Thread 3066498404 joined [09:41:09]Waiting for new connection... [09:41:09] Sock 9.Parse request [09:41:09]Sock 9.Check first char [09:41:09]Sock 9.First char is OK [09:41:09]request: POST /json_proto HTTP/1.0 [09:41:09]Method: POST [09:41:09]URL: /json_proto [09:41:09]Method is POST - this is cgi request [09:41:09]url: /json_proto [09:41:09]query_string will be loaded in cgi processing [09:41:09]execute_cgi json_proto POST (null) [09:41:09]execute_cgi path=json_proto method=POST [09:41:09]POST find Content-Length [09:41:09]Host: 172.17.33.3:8080 [09:41:09]Content-Length: 682 [09:41:09]Content-Type: application/json [09:41:09] [09:41:09]POST finish read [09:41:09]Found Content-Length = 682 [09:41:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346936", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 15.560, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:41:09]execute_script... [09:41: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)346936", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 15.560, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:41:09]POST & json_proto [09:41:09]process_json_proto [09:41:09]json parsed OK: [09:41:09]protocol is kg_v1.0 [09:41:09]action value=close_receipt [09:41:09]process_action close_receipt [09:41:09]cmd_close_receipt [09:41:09]MH_GetDate [09:41:09]Write to MH i2c: F0 00 00 9B 6B F5 [09:41:09]Write i2c OK [09:41:09]MH_I2C_Read... [09:41:09]Read from MH i2c: F0 [09:41:09]MH_I2C_Read... [09:41:09]Read from MH i2c: F0 09 00 [09:41:09]MH_I2C_Read... [09:41:09]Read from MH i2c: F0 09 00 9B 6B 00 BC 01 19 66 23 5B 8F 65 AC [09:41:09]GetLastDocTimeStamp 1712914309 [09:41:09]current date 1712914876 [09:41:09]FM_GetShiftState [09:41:09]SAM_PROTO_GetShiftState [09:41:09]wFMCommunicate request_size=4 [09:41:09]MH_SAM_APDU [09:41:09]CAPDU: 80 13 01 00 [09:41:09]Write to MH i2c: E2 08 00 9C 6B 80 13 01 00 00 00 00 00 84 [09:41:09]Write i2c OK [09:41:09]MH_I2C_Read... [09:41:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:41:09]Read from MH i2c: E2 [09:41:09]MH_I2C_Read... [09:41:09]Read from MH i2c: E2 0E 00 [09:41:09]MH_I2C_Read... [09:41:09]Read from MH i2c: E2 0E 00 9C 6B 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 95 [09:41:09]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [09:41:09]wFMCommunicate OK [09:41:09]SAM_PROTO_GetShiftState done [09:41:09]FM_GetShiftState done [09:41:09]opened in 1712881416 [09:41:09]opened+sec_in_day 1712967816 [09:41:09]quantity*price = 100050 [09:41:09]sum+1 = 100052 [09:41:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 68 12.04.2024 09:41 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28619 ФПД: 65157467078552 1/tax-web-control/client/api/v1/ticket?date=20240412T094116&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28619&fm=65157467078552&tin=02508201610067®Number=0000138879044617&sum=100000 [09:41:10]StoreToDocumentArchive [09:41:10]shift 113 fd 28619 [09:41:10]save to /storage/0113/doc_00028619 [09:41:10]save last doc name /storage/0113/doc_00028619 to /storage/kkm_last_doc_name [09:41:10]save OK [09:41:10]Clear old archive folders... [09:41:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:41:10]tlvbuf is 01AE56E0 [09:41:10]SAM_PROTO_ClearQueue [09:41:10]wFMCommunicate request_size=4 [09:41:10]MH_SAM_APDU [09:41:10]CAPDU: 80 09 00 00 [09:41:10]Write to MH i2c: E2 08 00 A9 6B 80 09 00 00 00 00 00 00 86 [09:41:10]Write i2c OK [09:41:10]MH_I2C_Read... [09:41:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:41:10]Read from MH i2c: E2 [09:41:10]MH_I2C_Read... [09:41:10]Read from MH i2c: E2 03 00 [09:41:10]MH_I2C_Read... [09:41:10]Read from MH i2c: E2 03 00 A9 6B 00 90 00 88 [09:41:10]RAPDU: 90 00 [09:41:10]wFMCommunicate OK [09:41:10]SAM_PROTO_ClearQueue done [09:41:10]KKMCreateOFDPacket [09:41:10]OFDProtocolAddRootSTLVToBuf [09:41:10]FM_MakeSignedData [09:41:10]FM_MakeSignedData [09:41:10]SAM_PROTO_SignData [09:41:10]wFMCommunicate request_size=4 [09:41:10]MH_SAM_APDU [09:41:10]CAPDU: 80 0D 01 02 [09:41:10]Write to MH i2c: E2 08 00 AA 6B 80 0D 01 02 00 00 00 00 8E [09:41:10]Write i2c OK [09:41:10]MH_I2C_Read... [09:41:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:41:10]Read from MH i2c: E2 [09:41:10]MH_I2C_Read... [09:41:10]Read from MH i2c: E2 03 00 [09:41:10]MH_I2C_Read... [09:41:10]Read from MH i2c: E2 03 00 AA 6B 00 90 00 89 [09:41:10]RAPDU: 90 00 [09:41:10]wFMCommunicate OK [09:41:10]wFMCommunicate request_size=255 [09:41:10]MH_SAM_APDU [09:41:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 BC 01 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CB 6F 00 00 35 04 06 00 3B [09:41:10]Write to MH i2c: E2 02 01 AB 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 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 BC 01 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CB 6F 00 00 35 04 06 00 3B 00 00 20 [09:41:10]Write i2c OK [09:41:10]MH_I2C_Read... [09:41:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:41:10]Read from MH i2c: E2 [09:41:10]MH_I2C_Read... [09:41:10]Read from MH i2c: E2 03 00 [09:41:10]MH_I2C_Read... [09:41:10]Read from MH i2c: E2 03 00 AB 6B 00 90 00 8A [09:41:10]RAPDU: 90 00 [09:41:10]wFMCommunicate OK [09:41:10]wFMCommunicate request_size=10 [09:41:10]MH_SAM_APDU [09:41:10]CAPDU: 80 0D 02 02 05 42 A7 AD FF 98 [09:41:10]Write to MH i2c: E2 0D 00 AC 6B 80 0D 02 02 05 00 42 A7 AD FF 98 00 00 C8 [09:41:10]Write i2c OK [09:41:10]MH_I2C_Read... [09:41:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:41:11]Read from MH i2c: E2 [09:41:11]MH_I2C_Read... [09:41:11]Read from MH i2c: E2 03 00 [09:41:11]MH_I2C_Read... [09:41:11]Read from MH i2c: E2 03 00 AC 6B 00 90 00 8B [09:41:11]RAPDU: 90 00 [09:41:11]wFMCommunicate OK [09:41:11]wFMCommunicate request_size=4 [09:41:11]MH_SAM_APDU [09:41:11]CAPDU: 80 0D 03 02 [09:41:11]Write to MH i2c: E2 08 00 AD 6B 80 0D 03 02 00 00 00 00 93 [09:41:11]Write i2c OK [09:41:11]MH_I2C_Read... [09:41:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:41:11]Read from MH i2c: E2 [09:41:11]MH_I2C_Read... [09:41:11]Read from MH i2c: E2 0B 00 [09:41:11]MH_I2C_Read... [09:41:11]Read from MH i2c: E2 0B 00 AD 6B 00 D7 1C C8 D5 60 2F 18 7D 90 00 48 [09:41:11]RAPDU: D7 1C C8 D5 60 2F 18 7D 90 00 [09:41:11]wFMCommunicate OK [09:41:11]SAM_PROTO_SignData done [09:41:11]FM_MakeSignedData done [09:41:11]CreateOFDProtocolMessage [09:41:11]wFMCommunicate request_size=4 [09:41:11]MH_SAM_APDU [09:41:11]CAPDU: 80 11 00 00 [09:41:11]Write to MH i2c: E2 08 00 AE 6B 80 11 00 00 00 00 00 00 93 [09:41:11]Write i2c OK [09:41:11]MH_I2C_Read... [09:41:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:41:11]Read from MH i2c: E2 [09:41:11]MH_I2C_Read... [09:41:11]Read from MH i2c: E2 17 00 [09:41:11]MH_I2C_Read... [09:41:11]Read from MH i2c: E2 17 00 AE 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 E2 [09:41:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:41:11]wFMCommunicate OK [09:41:11]CreateOFDProtocolMessage done [09:41:11]OFDSenderStorePacket 28619 [09:41:11]StoreOFDPacket docnum=28619 [09:41:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 8B 1D 07 01 0E 00 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 BC 01 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CB 6F 00 00 35 04 06 00 3B 42 A7 AD FF 98 D7 1C C8 D5 60 2F 18 7D [09:41:11]CheckFolder [09:41:11]dirname=/storage/ofd_packets [09:41:11]CheckFolder done [09:41:11]ProducePacketName [09:41:11]name=ofd_packets/00028619 [09:41:11]NVStorageSaveData ofd_packets/00028619 [09:41:11]File name is /storage/ofd_packets/00028619 [09:41:11]Write 301 bytes [09:41:11]NVStorageSaveData done [09:41:11]OFDSenderStorePacket done [09:41:11]KKMCreateOFDPacket done [09:41:11]NVStorageSaveData kkm_last_timestamp [09:41:11]File name is /storage/kkm_last_timestamp [09:41:11]Write 4 bytes [09:41:11]NVStorageSaveData done [09:41:11]ExternCall_PrintAddStr [09:41:11]wPrintStart [09:41:11]Write to MH i2c: 01 00 00 AF 6B 1A [09:41:11]Write i2c OK [09:41:11]MH_I2C_Read... [09:41:11]Read from MH i2c: 01 [09:41:11]MH_I2C_Read... [09:41:11]Read from MH i2c: 01 07 00 [09:41:11]MH_I2C_Read... [09:41:11]Read from MH i2c: 01 07 00 AF 6B 00 00 00 00 00 FF 0F 2F [09:41:11]RasterBufferAndPrint [09:41:11]line Счет N : (1)346936 [09:41:11]line ИНН: 02508201610067 [09:41:11]line Контрольно-Кассовый Чек [09:41:11]line ПРОДАЖА [09:41:11]line ТРК (МРК, ГНК) : 42 [09:41:11]line Товар: 2710124130 [09:41:11]line Аи-92-К-5 [09:41:11]line 15.560 * 64.30 [09:41:11]line = 1000.51 [09:41:11]line НДС 12% НСП 1% [09:41:11]line > о реализуемом товаре [09:41:11]line ОКРУГЛЕНИЕ: -0.51 [09:41:11]line ИТОГО: 1000.00 [09:41:11]line Внесено: 1000.00 [09:41:11]line СДАЧА: 0.00 [09:41:11]line НСП 1% : 8.85 [09:41:11]line НДС 12% : 106.25 [09:41:11]line Наличными: 1000.00 [09:41:11]line Безнал.: 0.00 [09:41:11]line Место: АЗС № 108 "Партнер Нефть" [09:41:11]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [09:41:11]line СНО: Общий режим [09:41:11]line Чек 68 12.04.2024 09:41 [09:41:11]line Смена: 113 ФФД: 1.0 [09:41:11]line ЗНМ: 0300000027 [09:41:11]line РНМ: 0000138879044617 [09:41:11]line Версия ККМ: 001 [09:41:11]line ФМ: 0000000000963154 [09:41:11]line ФД: 28619 [09:41:11]line ФПД: 65157467078552 [09:41:11]line 1/tax-web-control/client/api/v1/ticket?date=20240412T094116&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28619&fm=65157467078552&tin=02508201610067®Number=0000138879044617&sum=100000 [09:41:11]OFD Sender: Processing packet 28619 [packets to send 8, broken 7] [09:41:11]ProducePacketName [09:41:11]name=ofd_packets/00028619 [09:41:11]OFD Sender: To server: pG, [09:41:11]CommunicateWithHost lk.salyk.kg:30040 [09:41:11]ConnectInit lk.salyk.kg [09:41:11]written 0, free lines is 4095 [09:41:11]Connected sock=11 [09:41:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 8B 1D 07 01 0E 00 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 BC 01 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CB 6F 00 00 35 04 06 00 3B 42 A7 AD FF 98 D7 1C C8 D5 60 2F 18 7D [09:41:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 FA 90 47 00 E4 F2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CB 6F 00 00 F4 03 04 00 67 AC 18 66 B6 04 01 00 00 0F 8D C5 67 9B 18 CF DF [09:41:11]CommunicateWithHost err = 0 [09:41:11]CheckOFDResponse [09:41:11]1017 (14) - 77093643461234 [09:41:11]1041 (16) - 0000000000963154 [09:41:11]1040 (4) - 28619 [09:41:11]1012 (4) - 12.04.2024 03:37 [09:41:11]1206 (1) - 0 [09:41:11]OFD Sender: Remove packet 28619 [09:41:11]ProducePacketName [09:41:11]name=ofd_packets/00028619 [09:41:11]NVStorageDeleteData [09:41:11]Write to MH i2c: 01 00 00 D9 6B 44 [09:41:11]Write i2c OK [09:41:11]MH_I2C_Read... [09:41:11]Read from MH i2c: 01 [09:41:11]MH_I2C_Read... [09:41:11]Read from MH i2c: 01 07 00 [09:41:11]MH_I2C_Read... [09:41:11]Read from MH i2c: 01 07 00 D9 6B 00 00 00 00 00 C6 0C 1D [09:41:11]RasterBufferAndPrint [09:41:11]line [09:41:11]line [09:41:11]line [09:41:11]line [09:41:11]line [09:41:11]written 0, free lines is 3274 [09:41:11]MH_Cut [09:41:11]Write to MH i2c: D1 01 00 E0 6B 01 1D [09:41:11]Write i2c OK [09:41:11]MH_I2C_Read... [09:41:11]Read from MH i2c: D1 [09:41:11]MH_I2C_Read... [09:41:11]Read from MH i2c: D1 01 00 [09:41:11]MH_I2C_Read... [09:41:11]Read from MH i2c: D1 01 00 E0 6B 00 1C [09:41:11]Write to MH i2c: 01 00 00 E1 6B 4C [09:41:11]Write i2c OK [09:41:11]MH_I2C_Read... [09:41:12]OFD Sender: No OFD packet to send [09:41:12]*** Cut start [09:41:12]*** Partial cut [09:41:12]*** CUTSNS_PIN = 1 [09:41:12]*** CUTSNS_PIN = 0 [09:41:13]*** Brake cut motor [09:41:13]Read from MH i2c: 01 [09:41:13]MH_I2C_Read... [09:41:13]*** Stop cut motor [09:41:13]*** Cut end [09:41:13]Read from MH i2c: 01 07 00 [09:41:13]MH_I2C_Read... [09:41:13]Read from MH i2c: 01 07 00 E1 6B 00 00 00 00 00 FF 0F 61 [09:41:13]process_action close_receipt done [09:41:13]requested_data is exist [09:41:13]produce_requested_data [09:41:13]requested_item fm.sn is exist - process it [09:41:13]wFMCommunicate request_size=4 [09:41:13]MH_SAM_APDU [09:41:13]CAPDU: 80 11 00 00 [09:41:13]Write to MH i2c: E2 08 00 E2 6B 80 11 00 00 00 00 00 00 C7 [09:41:13]Write i2c OK [09:41:13]MH_I2C_Read... [09:41:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:41:13]Read from MH i2c: E2 [09:41:13]MH_I2C_Read... [09:41:13]Read from MH i2c: E2 17 00 [09:41:13]MH_I2C_Read... [09:41:13]Read from MH i2c: E2 17 00 E2 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 16 [09:41:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:41:13]wFMCommunicate OK [09:41:13]requested_item fd.num is exist - process it [09:41:13]SAM_PROTO_GetFieldsCounters [09:41:13]wFMCommunicate request_size=4 [09:41:13]MH_SAM_APDU [09:41:13]CAPDU: 80 13 00 00 [09:41:13]Write to MH i2c: E2 08 00 E3 6B 80 13 00 00 00 00 00 00 CA [09:41:13]Write i2c OK [09:41:13]MH_I2C_Read... [09:41:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:41:13]Read from MH i2c: E2 [09:41:13]MH_I2C_Read... [09:41:13]Read from MH i2c: E2 62 00 [09:41:13]MH_I2C_Read... [09:41:13]Read from MH i2c: E2 62 00 E3 6B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 CB 6F 00 00 0E 04 04 00 71 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 7F [09:41:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 CB 6F 00 00 0E 04 04 00 71 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 [09:41:13]wFMCommunicate OK [09:41:13]SAM_PROTO_GetFieldsCounters done [09:41:13]requested_item shift.num is exist - process it [09:41:13]requested_item shift.opened is exist - process it [09:41:13]req_shift_opened [09:41:13]FM_GetShiftState [09:41:13]SAM_PROTO_GetShiftState [09:41:13]wFMCommunicate request_size=4 [09:41:13]MH_SAM_APDU [09:41:13]CAPDU: 80 13 01 00 [09:41:13]Write to MH i2c: E2 08 00 E4 6B 80 13 01 00 00 00 00 00 CC [09:41:13]Write i2c OK [09:41:13]MH_I2C_Read... [09:41:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:41:13]Read from MH i2c: E2 [09:41:13]MH_I2C_Read... [09:41:13]Read from MH i2c: E2 0E 00 [09:41:13]MH_I2C_Read... [09:41:13]Read from MH i2c: E2 0E 00 E4 6B 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 DD [09:41:13]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [09:41:13]wFMCommunicate OK [09:41:13]SAM_PROTO_GetShiftState done [09:41:13]FM_GetShiftState done [09:41:13]req_shift_opened done [09:41:13]requested_item shift.open_date is exist - process it [09:41:13]req_shift_open_date [09:41:13]req_shift_open_date done [09:41:13]produce_requested_data done [09:41:13]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28619,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [09:41:13]process_action_free close_receipt [09:41:13]json_value_free [09:41:13]json_value_free done [09:41:13]process_json_proto returns [09:41:13]Send response to host [09:41:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28619,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [09:41:13]free response buf [09:41:13]execute_script done [09:41:13]execute_script returns [09:41:13]free content buf [09:41:13]Sock 9.Close socket [09:41:13]Sock 9.Thread stoped [09:41:17]OFD Sender: No OFD packet to send [09:41:22]OFD Sender: No OFD packet to send [09:41:27]OFD Sender: No OFD packet to send [09:41:32]OFD Sender: No OFD packet to send [09:41:37]OFD Sender: No OFD packet to send [09:41:42]OFD Sender: No OFD packet to send [09:41:47]OFD Sender: No OFD packet to send [09:41:52]OFD Sender: No OFD packet to send [09:41:57]OFD Sender: No OFD packet to send [09:42:02]OFD Sender: No OFD packet to send [09:42:07]OFD Sender: No OFD packet to send [09:42:12]OFD Sender: No OFD packet to send [09:42:17]OFD Sender: No OFD packet to send [09:42:21]accept exits with 7 [09:42:21]New connection [09:42:21]New thread 3066498404 created [09:42:21]Thread 3066641764 joined [09:42:21]Waiting for new connection... [09:42:21] Sock 7.Parse request [09:42:21]Sock 7.Check first char [09:42:21]Sock 7.First char is OK [09:42:21]request: POST /json_proto HTTP/1.0 [09:42:21]Method: POST [09:42:21]URL: /json_proto [09:42:21]Method is POST - this is cgi request [09:42:21]url: /json_proto [09:42:21]query_string will be loaded in cgi processing [09:42:21]execute_cgi json_proto POST (null) [09:42:21]execute_cgi path=json_proto method=POST [09:42:21]POST find Content-Length [09:42:21]Host: 172.17.33.3:8080 [09:42:21]Content-Length: 808 [09:42:21]Content-Type: application/json [09:42:21] [09:42:21]POST finish read [09:42:21]Found Content-Length = 808 [09:42:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346937", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.50, "quantity" : 34.490, "sum" : 2500.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2500.53 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:42:21]execute_script... [09:42: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)346937", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.50, "quantity" : 34.490, "sum" : 2500.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2500.53 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:42:21]POST & json_proto [09:42:21]process_json_proto [09:42:21]json parsed OK: [09:42:21]protocol is kg_v1.0 [09:42:21]action value=close_receipt [09:42:21]process_action close_receipt [09:42:21]cmd_close_receipt [09:42:21]MH_GetDate [09:42:21]Write to MH i2c: F0 00 00 E5 6B 3F [09:42:21]Write i2c OK [09:42:21]MH_I2C_Read... [09:42:21]Read from MH i2c: F0 [09:42:21]MH_I2C_Read... [09:42:21]Read from MH i2c: F0 09 00 [09:42:21]MH_I2C_Read... [09:42:21]Read from MH i2c: F0 09 00 E5 6B 00 04 02 19 66 23 5B 8F 65 3F [09:42:21]GetLastDocTimeStamp 1712914876 [09:42:21]current date 1712914948 [09:42:21]FM_GetShiftState [09:42:21]SAM_PROTO_GetShiftState [09:42:21]wFMCommunicate request_size=4 [09:42:21]MH_SAM_APDU [09:42:21]CAPDU: 80 13 01 00 [09:42:21]Write to MH i2c: E2 08 00 E6 6B 80 13 01 00 00 00 00 00 CE [09:42:21]Write i2c OK [09:42:21]MH_I2C_Read... [09:42:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:42:21]Read from MH i2c: E2 [09:42:21]MH_I2C_Read... [09:42:21]Read from MH i2c: E2 0E 00 [09:42:21]MH_I2C_Read... [09:42:21]Read from MH i2c: E2 0E 00 E6 6B 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 DF [09:42:21]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [09:42:21]wFMCommunicate OK [09:42:21]SAM_PROTO_GetShiftState done [09:42:21]FM_GetShiftState done [09:42:21]opened in 1712881416 [09:42:21]opened+sec_in_day 1712967816 [09:42:21]quantity*price = 250052 [09:42:21]sum+1 = 250054 [09:42:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2500.53 НСП 1% : 22.13 НДС 12% : 265.54 Наличными: 0.00 Безнал.: 2500.53 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 69 12.04.2024 09:42 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 28620 ФПД: 132733864787898 1/tax-web-control/client/api/v1/ticket?date=20240412T094228&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28620&fm=132733864787898&tin=02508201610067®Number=0000138879044617&sum=250053 [09:42:22]StoreToDocumentArchive [09:42:22]shift 113 fd 28620 [09:42:22]save to /storage/0113/doc_00028620 [09:42:22]save last doc name /storage/0113/doc_00028620 to /storage/kkm_last_doc_name [09:42:22]save OK [09:42:22]Clear old archive folders... [09:42:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:42:22]tlvbuf is 01ACD0E0 [09:42:22]SAM_PROTO_ClearQueue [09:42:22]wFMCommunicate request_size=4 [09:42:22]MH_SAM_APDU [09:42:22]CAPDU: 80 09 00 00 [09:42:22]Write to MH i2c: E2 08 00 F3 6B 80 09 00 00 00 00 00 00 D0 [09:42:22]Write i2c OK [09:42:22]MH_I2C_Read... [09:42:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:42:22]Read from MH i2c: E2 [09:42:22]MH_I2C_Read... [09:42:22]Read from MH i2c: E2 03 00 [09:42:22]MH_I2C_Read... [09:42:22]Read from MH i2c: E2 03 00 F3 6B 00 90 00 D2 [09:42:22]RAPDU: 90 00 [09:42:22]wFMCommunicate OK [09:42:22]SAM_PROTO_ClearQueue done [09:42:22]KKMCreateOFDPacket [09:42:22]OFDProtocolAddRootSTLVToBuf [09:42:22]FM_MakeSignedData [09:42:22]FM_MakeSignedData [09:42:22]SAM_PROTO_SignData [09:42:22]wFMCommunicate request_size=4 [09:42:22]MH_SAM_APDU [09:42:22]CAPDU: 80 0D 01 02 [09:42:22]Write to MH i2c: E2 08 00 F4 6B 80 0D 01 02 00 00 00 00 D8 [09:42:22]Write i2c OK [09:42:22]MH_I2C_Read... [09:42:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:42:22]Read from MH i2c: E2 [09:42:22]MH_I2C_Read... [09:42:22]Read from MH i2c: E2 03 00 [09:42:22]MH_I2C_Read... [09:42:22]Read from MH i2c: E2 03 00 F4 6B 00 90 00 D3 [09:42:22]RAPDU: 90 00 [09:42:22]wFMCommunicate OK [09:42:22]wFMCommunicate request_size=255 [09:42:22]MH_SAM_APDU [09:42: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 35 FF 03 08 00 03 BA 86 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 C5 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C5 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 C5 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 04 02 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CC 6F 00 00 35 04 06 00 78 [09:42:22]Write to MH i2c: E2 02 01 F5 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 35 FF 03 08 00 03 BA 86 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 C5 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C5 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 C5 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 04 02 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CC 6F 00 00 35 04 06 00 78 00 00 35 [09:42:22]Write i2c OK [09:42:22]MH_I2C_Read... [09:42:22]OFD Sender: No OFD packet to send [09:42:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:42:22]Read from MH i2c: E2 [09:42:22]MH_I2C_Read... [09:42:22]Read from MH i2c: E2 03 00 [09:42:22]MH_I2C_Read... [09:42:22]Read from MH i2c: E2 03 00 F5 6B 00 90 00 D4 [09:42:22]RAPDU: 90 00 [09:42:22]wFMCommunicate OK [09:42:22]wFMCommunicate request_size=10 [09:42:22]MH_SAM_APDU [09:42:22]CAPDU: 80 0D 02 02 05 B8 82 DC 3F BA [09:42:22]Write to MH i2c: E2 0D 00 F6 6B 80 0D 02 02 05 00 B8 82 DC 3F BA 00 00 F4 [09:42:22]Write i2c OK [09:42:22]MH_I2C_Read... [09:42:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:42:22]Read from MH i2c: E2 [09:42:22]MH_I2C_Read... [09:42:22]Read from MH i2c: E2 03 00 [09:42:22]MH_I2C_Read... [09:42:22]Read from MH i2c: E2 03 00 F6 6B 00 90 00 D5 [09:42:22]RAPDU: 90 00 [09:42:22]wFMCommunicate OK [09:42:22]wFMCommunicate request_size=4 [09:42:22]MH_SAM_APDU [09:42:22]CAPDU: 80 0D 03 02 [09:42:22]Write to MH i2c: E2 08 00 F7 6B 80 0D 03 02 00 00 00 00 DD [09:42:22]Write i2c OK [09:42:22]MH_I2C_Read... [09:42:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:42:22]Read from MH i2c: E2 [09:42:22]MH_I2C_Read... [09:42:22]Read from MH i2c: E2 0B 00 [09:42:22]MH_I2C_Read... [09:42:22]Read from MH i2c: E2 0B 00 F7 6B 00 A2 43 A6 46 47 92 80 12 90 00 1A [09:42:22]RAPDU: A2 43 A6 46 47 92 80 12 90 00 [09:42:22]wFMCommunicate OK [09:42:22]SAM_PROTO_SignData done [09:42:22]FM_MakeSignedData done [09:42:22]CreateOFDProtocolMessage [09:42:22]wFMCommunicate request_size=4 [09:42:22]MH_SAM_APDU [09:42:22]CAPDU: 80 11 00 00 [09:42:22]Write to MH i2c: E2 08 00 F8 6B 80 11 00 00 00 00 00 00 DD [09:42:22]Write i2c OK [09:42:22]MH_I2C_Read... [09:42:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:42:22]Read from MH i2c: E2 [09:42:22]MH_I2C_Read... [09:42:22]Read from MH i2c: E2 17 00 [09:42:22]MH_I2C_Read... [09:42:22]Read from MH i2c: E2 17 00 F8 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 2C [09:42:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:42:22]wFMCommunicate OK [09:42:22]CreateOFDProtocolMessage done [09:42:22]OFDSenderStorePacket 28620 [09:42:22]StoreOFDPacket docnum=28620 [09:42:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 8B A3 07 01 67 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 BA 86 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 C5 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C5 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 C5 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 04 02 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CC 6F 00 00 35 04 06 00 78 B8 82 DC 3F BA A2 43 A6 46 47 92 80 12 [09:42:22]CheckFolder [09:42:22]dirname=/storage/ofd_packets [09:42:22]CheckFolder done [09:42:22]ProducePacketName [09:42:22]name=ofd_packets/00028620 [09:42:22]NVStorageSaveData ofd_packets/00028620 [09:42:22]File name is /storage/ofd_packets/00028620 [09:42:22]Write 301 bytes [09:42:22]NVStorageSaveData done [09:42:22]OFDSenderStorePacket done [09:42:22]KKMCreateOFDPacket done [09:42:22]NVStorageSaveData kkm_last_timestamp [09:42:22]File name is /storage/kkm_last_timestamp [09:42:22]Write 4 bytes [09:42:22]NVStorageSaveData done [09:42:22]ExternCall_PrintAddStr [09:42:22]wPrintStart [09:42:22]Write to MH i2c: 01 00 00 F9 6B 64 [09:42:22]Write i2c OK [09:42:22]MH_I2C_Read... [09:42:22]Read from MH i2c: 01 [09:42:22]MH_I2C_Read... [09:42:22]Read from MH i2c: 01 07 00 [09:42:22]MH_I2C_Read... [09:42:22]Read from MH i2c: 01 07 00 F9 6B 00 00 00 00 00 FF 0F 79 [09:42:22]RasterBufferAndPrint [09:42:22]line Счет N : (1)346937 [09:42:22]line ИНН: 02508201610067 [09:42:22]line Контрольно-Кассовый Чек [09:42:22]line ПРОДАЖА [09:42:22]line ТРК (МРК, ГНК) : 33 [09:42:22]line Товар: 2710124500 [09:42:22]line Аи-95-К-5 [09:42:22]line 34.490 * 72.50 [09:42:22]line = 2500.53 [09:42:22]line НДС 12% НСП 1% [09:42:22]line > о реализуемом товаре [09:42:22]line ИТОГО: 2500.53 [09:42:22]line НСП 1% : 22.13 [09:42:22]line НДС 12% : 265.54 [09:42:22]line Наличными: 0.00 [09:42:22]line Безнал.: 2500.53 [09:42:22]line Место: АЗС № 108 "Партнер Нефть" [09:42:22]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [09:42:22]line СНО: Общий режим [09:42:22]line Чек 69 12.04.2024 09:42 [09:42:22]line Смена: 113 ФФД: 1.0 [09:42:22]line ЗНМ: 0300000027 [09:42:22]line РНМ: 0000138879044617 [09:42:22]line Версия ККМ: 001 [09:42:22]line Платежная система: О! деньги [09:42:22]line ФМ: 0000000000963154 [09:42:22]line ФД: 28620 [09:42:22]line ФПД: 132733864787898 [09:42:22]line 1/tax-web-control/client/api/v1/ticket?date=20240412T094228&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28620&fm=132733864787898&tin=02508201610067®Number=0000138879044617&sum=250053 [09:42:23]OFD Sender: Processing packet 28620 [packets to send 8, broken 7] [09:42:23]ProducePacketName [09:42:23]name=ofd_packets/00028620 [09:42:23]OFD Sender: To server: pG, [09:42:23]CommunicateWithHost lk.salyk.kg:30040 [09:42:23]ConnectInit lk.salyk.kg [09:42:23]written 0, free lines is 4095 [09:42:23]Connected sock=10 [09:42:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 8B A3 07 01 67 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 BA 86 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 C5 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C5 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 C5 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 04 02 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CC 6F 00 00 35 04 06 00 78 B8 82 DC 3F BA A2 43 A6 46 47 92 80 12 [09:42:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 73 5B 47 00 A0 4D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CC 6F 00 00 F4 03 04 00 AF AC 18 66 B6 04 01 00 00 C2 43 01 0E F8 B0 A0 7E [09:42:23]CommunicateWithHost err = 0 [09:42:23]CheckOFDResponse [09:42:23]1017 (14) - 77093643461234 [09:42:23]1041 (16) - 0000000000963154 [09:42:23]1040 (4) - 28620 [09:42:23]1012 (4) - 12.04.2024 03:38 [09:42:23]1206 (1) - 0 [09:42:23]OFD Sender: Remove packet 28620 [09:42:23]ProducePacketName [09:42:23]name=ofd_packets/00028620 [09:42:23]NVStorageDeleteData [09:42:23]Write to MH i2c: 01 00 00 22 6C 8E [09:42:23]Write i2c OK [09:42:23]MH_I2C_Read... [09:42:23]Read from MH i2c: 01 [09:42:23]MH_I2C_Read... [09:42:23]Read from MH i2c: 01 07 00 [09:42:23]MH_I2C_Read... [09:42:23]Read from MH i2c: 01 07 00 22 6C 00 00 00 00 00 E9 0C 8A [09:42:23]RasterBufferAndPrint [09:42:23]line [09:42:23]line [09:42:23]line [09:42:23]line [09:42:23]line [09:42:23]written 0, free lines is 3315 [09:42:23]MH_Cut [09:42:23]Write to MH i2c: D1 01 00 29 6C 01 67 [09:42:23]Write i2c OK [09:42:23]MH_I2C_Read... [09:42:23]Read from MH i2c: D1 [09:42:23]MH_I2C_Read... [09:42:23]Read from MH i2c: D1 01 00 [09:42:23]MH_I2C_Read... [09:42:23]Read from MH i2c: D1 01 00 29 6C 00 66 [09:42:23]Write to MH i2c: 01 00 00 2A 6C 96 [09:42:23]Write i2c OK [09:42:23]MH_I2C_Read... [09:42:23]OFD Sender: No OFD packet to send [09:42:24]*** Cut start [09:42:24]*** Partial cut [09:42:24]*** CUTSNS_PIN = 1 [09:42:24]*** CUTSNS_PIN = 0 [09:42:24]*** Brake cut motor [09:42:24]Read from MH i2c: 01 [09:42:24]MH_I2C_Read... [09:42:24]*** Stop cut motor [09:42:24]*** Cut end [09:42:24]Read from MH i2c: 01 07 00 [09:42:24]MH_I2C_Read... [09:42:24]Read from MH i2c: 01 07 00 2A 6C 00 00 00 00 00 FF 0F AB [09:42:24]process_action close_receipt done [09:42:24]requested_data is exist [09:42:24]produce_requested_data [09:42:24]requested_item fm.sn is exist - process it [09:42:24]wFMCommunicate request_size=4 [09:42:24]MH_SAM_APDU [09:42:24]CAPDU: 80 11 00 00 [09:42:24]Write to MH i2c: E2 08 00 2B 6C 80 11 00 00 00 00 00 00 11 [09:42:24]Write i2c OK [09:42:24]MH_I2C_Read... [09:42:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:42:25]Read from MH i2c: E2 [09:42:25]MH_I2C_Read... [09:42:25]Read from MH i2c: E2 17 00 [09:42:25]MH_I2C_Read... [09:42:25]Read from MH i2c: E2 17 00 2B 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 60 [09:42:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:42:25]wFMCommunicate OK [09:42:25]requested_item fd.num is exist - process it [09:42:25]SAM_PROTO_GetFieldsCounters [09:42:25]wFMCommunicate request_size=4 [09:42:25]MH_SAM_APDU [09:42:25]CAPDU: 80 13 00 00 [09:42:25]Write to MH i2c: E2 08 00 2C 6C 80 13 00 00 00 00 00 00 14 [09:42:25]Write i2c OK [09:42:25]MH_I2C_Read... [09:42:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:42:25]Read from MH i2c: E2 [09:42:25]MH_I2C_Read... [09:42:25]Read from MH i2c: E2 62 00 [09:42:25]MH_I2C_Read... [09:42:25]Read from MH i2c: E2 62 00 2C 6C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 CC 6F 00 00 0E 04 04 00 71 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 CD [09:42:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 CC 6F 00 00 0E 04 04 00 71 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 [09:42:25]wFMCommunicate OK [09:42:25]SAM_PROTO_GetFieldsCounters done [09:42:25]requested_item shift.num is exist - process it [09:42:25]requested_item shift.opened is exist - process it [09:42:25]req_shift_opened [09:42:25]FM_GetShiftState [09:42:25]SAM_PROTO_GetShiftState [09:42:25]wFMCommunicate request_size=4 [09:42:25]MH_SAM_APDU [09:42:25]CAPDU: 80 13 01 00 [09:42:25]Write to MH i2c: E2 08 00 2D 6C 80 13 01 00 00 00 00 00 16 [09:42:25]Write i2c OK [09:42:25]MH_I2C_Read... [09:42:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:42:25]Read from MH i2c: E2 [09:42:25]MH_I2C_Read... [09:42:25]Read from MH i2c: E2 0E 00 [09:42:25]MH_I2C_Read... [09:42:25]Read from MH i2c: E2 0E 00 2D 6C 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 27 [09:42:25]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [09:42:25]wFMCommunicate OK [09:42:25]SAM_PROTO_GetShiftState done [09:42:25]FM_GetShiftState done [09:42:25]req_shift_opened done [09:42:25]requested_item shift.open_date is exist - process it [09:42:25]req_shift_open_date [09:42:25]req_shift_open_date done [09:42:25]produce_requested_data done [09:42:25]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28620,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [09:42:25]process_action_free close_receipt [09:42:25]json_value_free [09:42:25]json_value_free done [09:42:25]process_json_proto returns [09:42:25]Send response to host [09:42:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28620,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [09:42:25]free response buf [09:42:25]execute_script done [09:42:25]execute_script returns [09:42:25]free content buf [09:42:25]Sock 7.Close socket [09:42:25]Sock 7.Thread stoped [09:42:28]OFD Sender: No OFD packet to send [09:42:33]OFD Sender: No OFD packet to send [09:42:38]OFD Sender: No OFD packet to send [09:42:39]accept exits with 9 [09:42:39]New connection [09:42:39]New thread 3066641764 created [09:42:39]Thread 3066498404 joined [09:42:39]Waiting for new connection... [09:42:39] Sock 9.Parse request [09:42:39]Sock 9.Check first char [09:42:39]Sock 9.First char is OK [09:42:39]request: POST /json_proto HTTP/1.0 [09:42:39]Method: POST [09:42:39]URL: /json_proto [09:42:39]Method is POST - this is cgi request [09:42:39]url: /json_proto [09:42:39]query_string will be loaded in cgi processing [09:42:39]execute_cgi json_proto POST (null) [09:42:39]execute_cgi path=json_proto method=POST [09:42:39]POST find Content-Length [09:42:39]Host: 172.17.33.3:8080 [09:42:39]Content-Length: 1208 [09:42:39]Content-Type: application/json [09:42:39] [09:42:39]POST finish read [09:42:39]Found Content-Length = 1208 [09:42:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)346938\u000A12.04.2024 09:24\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.720 x 72.40\u000A\u0418\u0422\u041E\u0413: 1500.13\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3729626;3729627\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:42:39]execute_script... [09:42:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)346938\u000A12.04.2024 09:24\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.720 x 72.40\u000A\u0418\u0422\u041E\u0413: 1500.13\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3729626;3729627\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:42:39]POST & json_proto [09:42:39]process_json_proto [09:42:39]json parsed OK: [09:42:39]protocol is kg_v1.0 [09:42:39]action value=print_text [09:42:39]process_action print_text [09:42:39]cmd_print_text [09:42:39]ExternCall_PrintAddStr [09:42:39]wPrintStart [09:42:39]Write to MH i2c: 01 00 00 2E 6C 9A [09:42:39]Write i2c OK [09:42:39]MH_I2C_Read... [09:42:39]Read from MH i2c: 01 [09:42:39]MH_I2C_Read... [09:42:39]Read from MH i2c: 01 07 00 [09:42:39]MH_I2C_Read... [09:42:39]Read from MH i2c: 01 07 00 2E 6C 00 00 00 00 00 FF 0F AF [09:42:39]RasterBufferAndPrint [09:42:39]line *****ТОВАРНЫЙ ЧЕК***** [09:42:39]line АЗС 108 [09:42:39]line Партнер нефть [09:42:39]line 02508201610067 [09:42:39]line Кассир : Джумагулова Н. [09:42:39]line Счет N : (1)346938 [09:42:39]line 12.04.2024 09:24 [09:42:39]line ПРОДАЖА [09:42:39]line ТРК (МРК, ГНК): 11 [09:42:39]line Вид ГСМ : 2710194210 [09:42:39]line ДТ-К-5 [09:42:39]line 20.720 x 72.40 [09:42:39]line ИТОГ: 1500.13 [09:42:39]line Тип оплаты: Талоны: Партнер нефть [09:42:39]line 3729626;3729627 [09:42:39]line ______________________ [09:42:39]line (подпись) [09:42:39]written 0, free lines is 4095 [09:42:40]Write to MH i2c: 01 00 00 43 6C AF [09:42:40]Write i2c OK [09:42:40]MH_I2C_Read... [09:42:40]Read from MH i2c: 01 [09:42:40]MH_I2C_Read... [09:42:40]Read from MH i2c: 01 07 00 [09:42:40]MH_I2C_Read... [09:42:40]Read from MH i2c: 01 07 00 43 6C 00 00 00 00 00 FC 0D BF [09:42:40]RasterBufferAndPrint [09:42:40]line [09:42:40]line [09:42:40]line [09:42:40]line [09:42:40]line [09:42:40]written 0, free lines is 3582 [09:42:40]MH_Cut [09:42:40]Write to MH i2c: D1 01 00 4A 6C 01 88 [09:42:40]Write i2c OK [09:42:40]MH_I2C_Read... [09:42:40]Read from MH i2c: D1 [09:42:40]MH_I2C_Read... [09:42:40]Read from MH i2c: D1 01 00 [09:42:40]MH_I2C_Read... [09:42:40]Read from MH i2c: D1 01 00 4A 6C 00 87 [09:42:40]Write to MH i2c: 01 00 00 4B 6C B7 [09:42:40]Write i2c OK [09:42:40]MH_I2C_Read... [09:42:40]*** Cut start [09:42:40]*** Partial cut [09:42:40]*** CUTSNS_PIN = 1 [09:42:40]*** CUTSNS_PIN = 0 [09:42:40]*** Brake cut motor [09:42:41]Read from MH i2c: 01 [09:42:41]MH_I2C_Read... [09:42:41]*** Stop cut motor [09:42:41]*** Cut end [09:42:41]Read from MH i2c: 01 07 00 [09:42:41]MH_I2C_Read... [09:42:41]Read from MH i2c: 01 07 00 4B 6C 00 00 00 00 00 FF 0F CC [09:42:41]process_action print_text done [09:42:41]requested_data is exist [09:42:41]produce_requested_data [09:42:41]requested_item fm.sn is exist - process it [09:42:41]wFMCommunicate request_size=4 [09:42:41]MH_SAM_APDU [09:42:41]CAPDU: 80 11 00 00 [09:42:41]Write to MH i2c: E2 08 00 4C 6C 80 11 00 00 00 00 00 00 32 [09:42:41]Write i2c OK [09:42:41]MH_I2C_Read... [09:42:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:42:41]Read from MH i2c: E2 [09:42:41]MH_I2C_Read... [09:42:41]Read from MH i2c: E2 17 00 [09:42:41]MH_I2C_Read... [09:42:41]Read from MH i2c: E2 17 00 4C 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 81 [09:42:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:42:41]wFMCommunicate OK [09:42:41]requested_item fd.num is exist - process it [09:42:41]SAM_PROTO_GetFieldsCounters [09:42:41]wFMCommunicate request_size=4 [09:42:41]MH_SAM_APDU [09:42:41]CAPDU: 80 13 00 00 [09:42:41]Write to MH i2c: E2 08 00 4D 6C 80 13 00 00 00 00 00 00 35 [09:42:41]Write i2c OK [09:42:41]MH_I2C_Read... [09:42:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:42:41]Read from MH i2c: E2 [09:42:41]MH_I2C_Read... [09:42:41]Read from MH i2c: E2 62 00 [09:42:41]MH_I2C_Read... [09:42:41]Read from MH i2c: E2 62 00 4D 6C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 CC 6F 00 00 0E 04 04 00 71 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 EE [09:42:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 CC 6F 00 00 0E 04 04 00 71 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 [09:42:41]wFMCommunicate OK [09:42:41]SAM_PROTO_GetFieldsCounters done [09:42:41]requested_item shift.num is exist - process it [09:42:41]requested_item shift.opened is exist - process it [09:42:41]req_shift_opened [09:42:41]FM_GetShiftState [09:42:41]SAM_PROTO_GetShiftState [09:42:41]wFMCommunicate request_size=4 [09:42:41]MH_SAM_APDU [09:42:41]CAPDU: 80 13 01 00 [09:42:41]Write to MH i2c: E2 08 00 4E 6C 80 13 01 00 00 00 00 00 37 [09:42:41]Write i2c OK [09:42:41]MH_I2C_Read... [09:42:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:42:41]Read from MH i2c: E2 [09:42:41]MH_I2C_Read... [09:42:41]Read from MH i2c: E2 0E 00 [09:42:41]MH_I2C_Read... [09:42:41]Read from MH i2c: E2 0E 00 4E 6C 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 48 [09:42:41]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [09:42:41]wFMCommunicate OK [09:42:41]SAM_PROTO_GetShiftState done [09:42:41]FM_GetShiftState done [09:42:41]req_shift_opened done [09:42:41]requested_item shift.open_date is exist - process it [09:42:41]req_shift_open_date [09:42:41]req_shift_open_date done [09:42:41]produce_requested_data done [09:42:41]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28620,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [09:42:41]process_action_free print_text [09:42:41]json_value_free [09:42:41]json_value_free done [09:42:41]process_json_proto returns [09:42:41]Send response to host [09:42:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28620,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [09:42:41]free response buf [09:42:41]execute_script done [09:42:41]execute_script returns [09:42:41]free content buf [09:42:41]Sock 9.Close socket [09:42:41]Sock 9.Thread stoped [09:42:43]OFD Sender: No OFD packet to send [09:42:48]OFD Sender: No OFD packet to send [09:42:53]OFD Sender: No OFD packet to send [09:42:58]OFD Sender: No OFD packet to send [09:43:03]OFD Sender: No OFD packet to send [09:43:08]OFD Sender: No OFD packet to send [09:43:13]OFD Sender: No OFD packet to send [09:43:18]OFD Sender: No OFD packet to send [09:43:23]OFD Sender: No OFD packet to send [09:43:28]OFD Sender: No OFD packet to send [09:43:33]OFD Sender: No OFD packet to send [09:43:37]accept exits with 7 [09:43:37]New connection [09:43:37]New thread 3066498404 created [09:43:37]Thread 3066641764 joined [09:43:37]Waiting for new connection... [09:43:37] Sock 7.Parse request [09:43:37]Sock 7.Check first char [09:43:37]Sock 7.First char is OK [09:43:37]request: POST /json_proto HTTP/1.0 [09:43:37]Method: POST [09:43:37]URL: /json_proto [09:43:37]Method is POST - this is cgi request [09:43:37]url: /json_proto [09:43:37]query_string will be loaded in cgi processing [09:43:37]execute_cgi json_proto POST (null) [09:43:37]execute_cgi path=json_proto method=POST [09:43:37]POST find Content-Length [09:43:37]Host: 172.17.33.3:8080 [09:43:37]Content-Length: 670 [09:43:37]Content-Type: application/json [09:43:37] [09:43:37]POST finish read [09:43:37]Found Content-Length = 670 [09:43:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346939", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 7.360, "sum" : 480.61, "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" ] } } [09:43:37]execute_script... [09:43: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)346939", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 7.360, "sum" : 480.61, "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" ] } } [09:43:37]POST & json_proto [09:43:37]process_json_proto [09:43:37]json parsed OK: [09:43:37]protocol is kg_v1.0 [09:43:37]action value=close_receipt [09:43:37]process_action close_receipt [09:43:37]cmd_close_receipt [09:43:37]MH_GetDate [09:43:37]Write to MH i2c: F0 00 00 4F 6C AA [09:43:37]Write i2c OK [09:43:37]MH_I2C_Read... [09:43:37]Read from MH i2c: F0 [09:43:37]MH_I2C_Read... [09:43:37]Read from MH i2c: F0 09 00 [09:43:37]MH_I2C_Read... [09:43:37]Read from MH i2c: F0 09 00 4F 6C 00 51 02 19 66 23 5B 8F 65 F7 [09:43:37]GetLastDocTimeStamp 1712914948 [09:43:37]current date 1712915025 [09:43:37]FM_GetShiftState [09:43:37]SAM_PROTO_GetShiftState [09:43:37]wFMCommunicate request_size=4 [09:43:37]MH_SAM_APDU [09:43:37]CAPDU: 80 13 01 00 [09:43:37]Write to MH i2c: E2 08 00 50 6C 80 13 01 00 00 00 00 00 39 [09:43:37]Write i2c OK [09:43:37]MH_I2C_Read... [09:43:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:43:37]Read from MH i2c: E2 [09:43:37]MH_I2C_Read... [09:43:37]Read from MH i2c: E2 0E 00 [09:43:37]MH_I2C_Read... [09:43:37]Read from MH i2c: E2 0E 00 50 6C 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 4A [09:43:37]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [09:43:37]wFMCommunicate OK [09:43:37]SAM_PROTO_GetShiftState done [09:43:37]FM_GetShiftState done [09:43:37]opened in 1712881416 [09:43:37]opened+sec_in_day 1712967816 [09:43:37]quantity*price = 48060 [09:43:37]sum+1 = 48062 [09:43:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 480.00 Внесено: 480.00 СДАЧА: 0.00 НСП 1% : 4.25 НДС 12% : 51.04 Наличными: 480.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 70 12.04.2024 09:43 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28621 ФПД: 236115727096269 1/tax-web-control/client/api/v1/ticket?date=20240412T094345&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28621&fm=236115727096269&tin=02508201610067®Number=0000138879044617&sum=48000 [09:43:38]StoreToDocumentArchive [09:43:38]shift 113 fd 28621 [09:43:38]save to /storage/0113/doc_00028621 [09:43:38]save last doc name /storage/0113/doc_00028621 to /storage/kkm_last_doc_name [09:43:38]save OK [09:43:38]Clear old archive folders... [09:43:38]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:43:38]tlvbuf is 01ABC0F0 [09:43:38]SAM_PROTO_ClearQueue [09:43:38]wFMCommunicate request_size=4 [09:43:38]MH_SAM_APDU [09:43:38]CAPDU: 80 09 00 00 [09:43:38]Write to MH i2c: E2 08 00 5D 6C 80 09 00 00 00 00 00 00 3B [09:43:38]Write i2c OK [09:43:38]MH_I2C_Read... [09:43:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:43:38]Read from MH i2c: E2 [09:43:38]MH_I2C_Read... [09:43:38]Read from MH i2c: E2 03 00 [09:43:38]MH_I2C_Read... [09:43:38]Read from MH i2c: E2 03 00 5D 6C 00 90 00 3D [09:43:38]RAPDU: 90 00 [09:43:38]wFMCommunicate OK [09:43:38]SAM_PROTO_ClearQueue done [09:43:38]KKMCreateOFDPacket [09:43:38]OFDProtocolAddRootSTLVToBuf [09:43:38]FM_MakeSignedData [09:43:38]FM_MakeSignedData [09:43:38]SAM_PROTO_SignData [09:43:38]wFMCommunicate request_size=4 [09:43:38]MH_SAM_APDU [09:43:38]CAPDU: 80 0D 01 02 [09:43:38]Write to MH i2c: E2 08 00 5E 6C 80 0D 01 02 00 00 00 00 43 [09:43:38]Write i2c OK [09:43:38]MH_I2C_Read... [09:43:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:43:38]Read from MH i2c: E2 [09:43:38]MH_I2C_Read... [09:43:38]Read from MH i2c: E2 03 00 [09:43:38]MH_I2C_Read... [09:43:38]Read from MH i2c: E2 03 00 5E 6C 00 90 00 3E [09:43:38]RAPDU: 90 00 [09:43:38]wFMCommunicate OK [09:43:38]wFMCommunicate request_size=255 [09:43:38]MH_SAM_APDU [09:43:38]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 1C 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 BD 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 F0 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 46 00 00 00 F4 03 04 00 51 02 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CD 6F 00 00 35 04 06 00 [09:43:38]Write to MH i2c: E2 02 01 5F 6C 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 1C 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 BD 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 F0 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 46 00 00 00 F4 03 04 00 51 02 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CD 6F 00 00 35 04 06 00 00 00 EB [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]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:43:39]Read from MH i2c: E2 [09:43:39]MH_I2C_Read... [09:43:39]Read from MH i2c: E2 03 00 [09:43:39]MH_I2C_Read... [09:43:39]Read from MH i2c: E2 03 00 5F 6C 00 90 00 3F [09:43:39]RAPDU: 90 00 [09:43:39]wFMCommunicate OK [09:43:39]wFMCommunicate request_size=11 [09:43:39]MH_SAM_APDU [09:43:39]CAPDU: 80 0D 02 02 06 D6 BE FA 0A 19 CD [09:43:39]Write to MH i2c: E2 0E 00 60 6C 80 0D 02 02 06 00 D6 BE FA 0A 19 CD 00 00 D0 [09:43:39]Write i2c OK [09:43:39]MH_I2C_Read... [09:43:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:43:39]Read from MH i2c: E2 [09:43:39]MH_I2C_Read... [09:43:39]Read from MH i2c: E2 03 00 [09:43:39]MH_I2C_Read... [09:43:39]Read from MH i2c: E2 03 00 60 6C 00 90 00 40 [09:43:39]RAPDU: 90 00 [09:43:39]wFMCommunicate OK [09:43:39]wFMCommunicate request_size=4 [09:43:39]MH_SAM_APDU [09:43:39]CAPDU: 80 0D 03 02 [09:43:39]Write to MH i2c: E2 08 00 61 6C 80 0D 03 02 00 00 00 00 48 [09:43:39]Write i2c OK [09:43:39]MH_I2C_Read... [09:43:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:43:39]Read from MH i2c: E2 [09:43:39]MH_I2C_Read... [09:43:39]Read from MH i2c: E2 0B 00 [09:43:39]MH_I2C_Read... [09:43:39]Read from MH i2c: E2 0B 00 61 6C 00 38 04 2B 52 7E 3B 03 02 90 00 C0 [09:43:39]RAPDU: 38 04 2B 52 7E 3B 03 02 90 00 [09:43:39]wFMCommunicate OK [09:43:39]SAM_PROTO_SignData done [09:43:39]FM_MakeSignedData done [09:43:39]CreateOFDProtocolMessage [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 62 6C 80 11 00 00 00 00 00 00 48 [09:43:39]Write i2c OK [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 [09:43:39]MH_I2C_Read... [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 62 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 97 [09:43:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:43:39]wFMCommunicate OK [09:43:39]CreateOFDProtocolMessage done [09:43:39]OFDSenderStorePacket 28621 [09:43:39]StoreOFDPacket docnum=28621 [09:43:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 7C 4E 08 01 60 92 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 1C 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 BD 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 F0 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 46 00 00 00 F4 03 04 00 51 02 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CD 6F 00 00 35 04 06 00 D6 BE FA 0A 19 CD 38 04 2B 52 7E 3B 03 02 [09:43:39]CheckFolder [09:43:39]dirname=/storage/ofd_packets [09:43:39]CheckFolder done [09:43:39]ProducePacketName [09:43:39]name=ofd_packets/00028621 [09:43:39]NVStorageSaveData ofd_packets/00028621 [09:43:39]File name is /storage/ofd_packets/00028621 [09:43:39]Write 302 bytes [09:43:39]NVStorageSaveData done [09:43:39]OFDSenderStorePacket done [09:43:39]KKMCreateOFDPacket done [09:43:39]NVStorageSaveData kkm_last_timestamp [09:43:39]File name is /storage/kkm_last_timestamp [09:43:39]Write 4 bytes [09:43:39]NVStorageSaveData done [09:43:39]ExternCall_PrintAddStr [09:43:39]wPrintStart [09:43:39]Write to MH i2c: 01 00 00 63 6C CF [09:43:39]Write i2c OK [09:43:39]MH_I2C_Read... [09:43:39]Read from MH i2c: 01 [09:43:39]MH_I2C_Read... [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 63 6C 00 00 00 00 00 FF 0F E4 [09:43:39]RasterBufferAndPrint [09:43:39]line Счет N : (1)346939 [09:43:39]line ИНН: 02508201610067 [09:43:39]line Контрольно-Кассовый Чек [09:43:39]line ПРОДАЖА [09:43:39]line ТРК (МРК, ГНК) : 22 [09:43:39]line Товар: 2710124130 [09:43:39]line SUPER-92-К-5 [09:43:39]line 7.360 * 65.30 [09:43:39]line = 480.61 [09:43:39]line НДС 12% НСП 1% [09:43:39]line > о реализуемом товаре [09:43:39]line ОКРУГЛЕНИЕ: -0.61 [09:43:39]line ИТОГО: 480.00 [09:43:39]line Внесено: 480.00 [09:43:39]line СДАЧА: 0.00 [09:43:39]line НСП 1% : 4.25 [09:43:39]line НДС 12% : 51.04 [09:43:39]line Наличными: 480.00 [09:43:39]line Безнал.: 0.00 [09:43:39]line Место: АЗС № 108 "Партнер Нефть" [09:43:39]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [09:43:39]line СНО: Общий режим [09:43:39]line Чек 70 12.04.2024 09:43 [09:43:39]line Смена: 113 ФФД: 1.0 [09:43:39]line ЗНМ: 0300000027 [09:43:39]line РНМ: 0000138879044617 [09:43:39]line Версия ККМ: 001 [09:43:39]line ФМ: 0000000000963154 [09:43:39]line ФД: 28621 [09:43:39]line ФПД: 236115727096269 [09:43:39]line 1/tax-web-control/client/api/v1/ticket?date=20240412T094345&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28621&fm=236115727096269&tin=02508201610067®Number=0000138879044617&sum=48000 [09:43:39]OFD Sender: Processing packet 28621 [packets to send 8, broken 7] [09:43:39]ProducePacketName [09:43:39]name=ofd_packets/00028621 [09:43:39]OFD Sender: To server: pG, [09:43:39]CommunicateWithHost lk.salyk.kg:30040 [09:43:39]ConnectInit lk.salyk.kg [09:43:39]written 0, free lines is 4095 [09:43:39]Connected sock=10 [09:43:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 7C 4E 08 01 60 92 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 1C 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 BD 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 F0 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 46 00 00 00 F4 03 04 00 51 02 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CD 6F 00 00 35 04 06 00 D6 BE FA 0A 19 CD 38 04 2B 52 7E 3B 03 02 [09:43:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 9A DE 47 00 33 F4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CD 6F 00 00 F4 03 04 00 FB AC 18 66 B6 04 01 00 00 D0 72 0D D8 A8 ED 60 5C [09:43:39]CommunicateWithHost err = 0 [09:43:39]CheckOFDResponse [09:43:39]1017 (14) - 77093643461234 [09:43:39]1041 (16) - 0000000000963154 [09:43:39]1040 (4) - 28621 [09:43:39]1012 (4) - 12.04.2024 03:39 [09:43:39]1206 (1) - 0 [09:43:39]OFD Sender: Remove packet 28621 [09:43:39]ProducePacketName [09:43:39]name=ofd_packets/00028621 [09:43:39]NVStorageDeleteData [09:43:40]Write to MH i2c: 01 00 00 8D 6C F9 [09:43:40]Write i2c OK [09:43:40]MH_I2C_Read... [09:43:40]Read from MH i2c: 01 [09:43:40]MH_I2C_Read... [09:43:40]Read from MH i2c: 01 07 00 [09:43:40]MH_I2C_Read... [09:43:40]Read from MH i2c: 01 07 00 8D 6C 00 00 00 00 00 CA 0C D6 [09:43:40]RasterBufferAndPrint [09:43:40]line [09:43:40]line [09:43:40]line [09:43:40]line [09:43:40]line [09:43:40]written 0, free lines is 3280 [09:43:40]MH_Cut [09:43:40]Write to MH i2c: D1 01 00 94 6C 01 D2 [09:43:40]Write i2c OK [09:43:40]MH_I2C_Read... [09:43:40]Read from MH i2c: D1 [09:43:40]MH_I2C_Read... [09:43:40]Read from MH i2c: D1 01 00 [09:43:40]MH_I2C_Read... [09:43:40]Read from MH i2c: D1 01 00 94 6C 00 D1 [09:43:40]Write to MH i2c: 01 00 00 95 6C 01 [09:43:40]Write i2c OK [09:43:40]MH_I2C_Read... [09:43:40]OFD Sender: No OFD packet to send [09:43:40]*** Cut start [09:43:40]*** Partial cut [09:43:40]*** CUTSNS_PIN = 1 [09:43:40]*** CUTSNS_PIN = 0 [09:43:41]*** Brake cut motor [09:43:41]Read from MH i2c: 01 [09:43:41]MH_I2C_Read... [09:43:41]*** Stop cut motor [09:43:41]*** Cut end [09:43:41]Read from MH i2c: 01 07 00 [09:43:41]MH_I2C_Read... [09:43:41]Read from MH i2c: 01 07 00 95 6C 00 00 00 00 00 FF 0F 16 [09:43:41]process_action close_receipt done [09:43:41]requested_data is exist [09:43:41]produce_requested_data [09:43:41]requested_item fm.sn is exist - process it [09:43:41]wFMCommunicate request_size=4 [09:43:41]MH_SAM_APDU [09:43:41]CAPDU: 80 11 00 00 [09:43:41]Write to MH i2c: E2 08 00 96 6C 80 11 00 00 00 00 00 00 7C [09:43:41]Write i2c OK [09:43:41]MH_I2C_Read... [09:43:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:43:41]Read from MH i2c: E2 [09:43:41]MH_I2C_Read... [09:43:41]Read from MH i2c: E2 17 00 [09:43:41]MH_I2C_Read... [09:43:41]Read from MH i2c: E2 17 00 96 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 CB [09:43:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:43:41]wFMCommunicate OK [09:43:41]requested_item fd.num is exist - process it [09:43:41]SAM_PROTO_GetFieldsCounters [09:43:41]wFMCommunicate request_size=4 [09:43:41]MH_SAM_APDU [09:43:41]CAPDU: 80 13 00 00 [09:43:41]Write to MH i2c: E2 08 00 97 6C 80 13 00 00 00 00 00 00 7F [09:43:41]Write i2c OK [09:43:41]MH_I2C_Read... [09:43:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:43:41]Read from MH i2c: E2 [09:43:41]MH_I2C_Read... [09:43:41]Read from MH i2c: E2 62 00 [09:43:41]MH_I2C_Read... [09:43:41]Read from MH i2c: E2 62 00 97 6C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 CD 6F 00 00 0E 04 04 00 71 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 3C [09:43:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 CD 6F 00 00 0E 04 04 00 71 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 [09:43:41]wFMCommunicate OK [09:43:41]SAM_PROTO_GetFieldsCounters done [09:43:41]requested_item shift.num is exist - process it [09:43:41]requested_item shift.opened is exist - process it [09:43:41]req_shift_opened [09:43:41]FM_GetShiftState [09:43:41]SAM_PROTO_GetShiftState [09:43:41]wFMCommunicate request_size=4 [09:43:41]MH_SAM_APDU [09:43:41]CAPDU: 80 13 01 00 [09:43:41]Write to MH i2c: E2 08 00 98 6C 80 13 01 00 00 00 00 00 81 [09:43:41]Write i2c OK [09:43:41]MH_I2C_Read... [09:43:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:43:41]*** FLAG_PRN_PAP1 set [09:43:41]int [09:43:41]*** FLAG_PRN_PAP2 set [09:43:41]Read from MH i2c: E2 [09:43:41]MH_I2C_Read... [09:43:41]Read from MH i2c: E2 0E 00 [09:43:41]MH_I2C_Read... [09:43:41]Read from MH i2c: E2 0E 00 98 6C 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 92 [09:43:41]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [09:43:41]wFMCommunicate OK [09:43:41]SAM_PROTO_GetShiftState done [09:43:41]FM_GetShiftState done [09:43:41]req_shift_opened done [09:43:41]requested_item shift.open_date is exist - process it [09:43:41]req_shift_open_date [09:43:41]req_shift_open_date done [09:43:41]produce_requested_data done [09:43:41]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28621,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [09:43:41]process_action_free close_receipt [09:43:41]json_value_free [09:43:41]json_value_free done [09:43:41]process_json_proto returns [09:43:41]Send response to host [09:43:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28621,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [09:43:41]free response buf [09:43:41]execute_script done [09:43:41]execute_script returns [09:43:41]free content buf [09:43:41]Sock 7.Close socket [09:43:41]Sock 7.Thread stoped [09:43:41]Write to MH i2c: 01 00 00 99 6C 05 [09:43:41]Write i2c OK [09:43:41]MH_I2C_Read... [09:43:41]Read from MH i2c: 01 [09:43:41]MH_I2C_Read... [09:43:41]Read from MH i2c: 01 07 00 [09:43:41]MH_I2C_Read... [09:43:41]Read from MH i2c: 01 07 00 99 6C 00 03 00 00 00 FF 0F 1D [09:43:41]state=0 [09:43:41]No paper [09:43:41]Cover opened [09:43:41]int [09:43:41]Write to MH i2c: 01 00 00 9A 6C 06 [09:43:41]*** FLAG_PRN_PAP2 reset [09:43:41]Write i2c OK [09:43:41]MH_I2C_Read... [09:43:41]Read from MH i2c: 01 [09:43:41]MH_I2C_Read... [09:43:41]Read from MH i2c: 01 07 00 [09:43:41]MH_I2C_Read... [09:43:41]Read from MH i2c: 01 07 00 9A 6C 00 01 00 00 00 FF 0F 1C [09:43:41]state=3 [09:43:41]No paper [09:43:41]Cover closed [09:43:41]int [09:43:41]Write to MH i2c: 01 00 00 9B 6C 07 [09:43:41]*** FLAG_PRN_PAP2 set [09:43:41]Write i2c OK [09:43:41]MH_I2C_Read... [09:43:41]Read from MH i2c: 01 [09:43:41]MH_I2C_Read... [09:43:41]Read from MH i2c: 01 07 00 [09:43:41]MH_I2C_Read... [09:43:41]Read from MH i2c: 01 07 00 9B 6C 00 03 00 00 00 FF 0F 1F [09:43:41]state=0 [09:43:41]No paper [09:43:41]Cover opened [09:43:42]int [09:43:42]Write to MH i2c: 01 00 00 9C 6C 08 [09:43:42]*** FLAG_PRN_PAP2 reset [09:43:42]Write i2c OK [09:43:42]MH_I2C_Read... [09:43:42]Read from MH i2c: 01 [09:43:42]MH_I2C_Read... [09:43:42]Read from MH i2c: 01 07 00 [09:43:42]MH_I2C_Read... [09:43:42]Read from MH i2c: 01 07 00 9C 6C 00 01 00 00 00 FF 0F 1E [09:43:42]state=3 [09:43:42]No paper [09:43:42]Cover closed [09:43:45]OFD Sender: No OFD packet to send [09:43:45]int [09:43:45]Write to MH i2c: 01 00 00 9D 6C 09 [09:43:45]*** FLAG_PRN_PAP1 reset [09:43:45]Write i2c OK [09:43:45]MH_I2C_Read... [09:43:45]Read from MH i2c: 01 [09:43:45]MH_I2C_Read... [09:43:45]Read from MH i2c: 01 07 00 [09:43:45]MH_I2C_Read... [09:43:45]Read from MH i2c: 01 07 00 9D 6C 00 00 00 00 00 FF 0F 1E [09:43:45]state=0 [09:43:50]OFD Sender: No OFD packet to send [09:43:55]OFD Sender: No OFD packet to send [09:44:00]OFD Sender: No OFD packet to send [09:44:05]OFD Sender: No OFD packet to send [09:44:10]OFD Sender: No OFD packet to send [09:44:15]OFD Sender: No OFD packet to send [09:44:20]OFD Sender: No OFD packet to send [09:44:25]OFD Sender: No OFD packet to send [09:44:30]OFD Sender: No OFD packet to send [09:44:35]OFD Sender: No OFD packet to send [09:44:40]OFD Sender: No OFD packet to send [09:44:45]OFD Sender: No OFD packet to send [09:44:50]OFD Sender: No OFD packet to send [09:44:55]OFD Sender: No OFD packet to send [09:45:00]OFD Sender: No OFD packet to send [09:45:05]OFD Sender: No OFD packet to send [09:45:10]OFD Sender: No OFD packet to send [09:45:15]OFD Sender: No OFD packet to send [09:45:20]OFD Sender: No OFD packet to send [09:45:25]OFD Sender: No OFD packet to send [09:45:30]OFD Sender: No OFD packet to send [09:45:35]OFD Sender: No OFD packet to send [09:45:40]OFD Sender: No OFD packet to send [09:45:45]OFD Sender: No OFD packet to send [09:45:50]OFD Sender: No OFD packet to send [09:45:55]OFD Sender: No OFD packet to send [09:46:00]OFD Sender: No OFD packet to send [09:46:05]OFD Sender: No OFD packet to send [09:46:10]OFD Sender: No OFD packet to send [09:46:15]OFD Sender: No OFD packet to send [09:46:20]OFD Sender: No OFD packet to send [09:46:25]OFD Sender: No OFD packet to send [09:46:30]OFD Sender: No OFD packet to send [09:46:35]OFD Sender: No OFD packet to send [09:46:40]OFD Sender: No OFD packet to send [09:46:45]OFD Sender: No OFD packet to send [09:46:50]OFD Sender: No OFD packet to send [09:46:55]OFD Sender: No OFD packet to send [09:47:00]OFD Sender: No OFD packet to send [09:47:05]OFD Sender: No OFD packet to send [09:47:10]OFD Sender: No OFD packet to send [09:47:15]OFD Sender: No OFD packet to send [09:47:20]OFD Sender: No OFD packet to send [09:47:25]OFD Sender: No OFD packet to send [09:47:30]OFD Sender: No OFD packet to send [09:47:35]OFD Sender: No OFD packet to send [09:47:40]OFD Sender: No OFD packet to send [09:47:45]OFD Sender: No OFD packet to send [09:47:50]OFD Sender: No OFD packet to send [09:47:55]OFD Sender: No OFD packet to send [09:48:00]OFD Sender: No OFD packet to send [09:48:05]OFD Sender: No OFD packet to send [09:48:10]OFD Sender: No OFD packet to send [09:48:15]OFD Sender: No OFD packet to send [09:48:20]OFD Sender: No OFD packet to send [09:48:25]OFD Sender: No OFD packet to send [09:48:30]OFD Sender: No OFD packet to send [09:48:35]OFD Sender: No OFD packet to send [09:48:40]OFD Sender: No OFD packet to send [09:48:45]OFD Sender: No OFD packet to send [09:48:50]OFD Sender: No OFD packet to send [09:48:55]OFD Sender: No OFD packet to send [09:49:00]OFD Sender: No OFD packet to send [09:49:05]OFD Sender: No OFD packet to send [09:49:10]OFD Sender: No OFD packet to send [09:49:15]OFD Sender: No OFD packet to send [09:49:20]OFD Sender: No OFD packet to send [09:49:25]OFD Sender: No OFD packet to send [09:49:30]OFD Sender: No OFD packet to send [09:49:35]OFD Sender: No OFD packet to send [09:49:37]accept exits with 9 [09:49:37]New connection [09:49:37]New thread 3066641764 created [09:49:37]Thread 3066498404 joined [09:49:37]Waiting for new connection... [09:49:37] Sock 9.Parse request [09:49:37]Sock 9.Check first char [09:49:37]Sock 9.First char is OK [09:49:37]request: POST /json_proto HTTP/1.0 [09:49:37]Method: POST [09:49:37]URL: /json_proto [09:49:37]Method is POST - this is cgi request [09:49:37]url: /json_proto [09:49:37]query_string will be loaded in cgi processing [09:49:37]execute_cgi json_proto POST (null) [09:49:37]execute_cgi path=json_proto method=POST [09:49:37]POST find Content-Length [09:49:37]Host: 172.17.33.3:8080 [09:49:37]Content-Length: 677 [09:49:37]Content-Type: application/json [09:49:37] [09:49:37]POST finish read [09:49:37]Found Content-Length = 677 [09:49:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346940", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 4.670, "sum" : 300.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:49:37]execute_script... [09:49: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)346940", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 4.670, "sum" : 300.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:49:37]POST & json_proto [09:49:37]process_json_proto [09:49:37]json parsed OK: [09:49:37]protocol is kg_v1.0 [09:49:37]action value=close_receipt [09:49:37]process_action close_receipt [09:49:37]cmd_close_receipt [09:49:37]MH_GetDate [09:49:37]Write to MH i2c: F0 00 00 9E 6C F9 [09:49:37]Write i2c OK [09:49:37]MH_I2C_Read... [09:49:37]Read from MH i2c: F0 [09:49:37]MH_I2C_Read... [09:49:37]Read from MH i2c: F0 09 00 [09:49:37]MH_I2C_Read... [09:49:37]Read from MH i2c: F0 09 00 9E 6C 00 B9 03 19 66 23 5B 8F 65 AF [09:49:37]GetLastDocTimeStamp 1712915025 [09:49:37]current date 1712915385 [09:49:37]FM_GetShiftState [09:49:37]SAM_PROTO_GetShiftState [09:49:37]wFMCommunicate request_size=4 [09:49:37]MH_SAM_APDU [09:49:37]CAPDU: 80 13 01 00 [09:49:37]Write to MH i2c: E2 08 00 9F 6C 80 13 01 00 00 00 00 00 88 [09:49:37]Write i2c OK [09:49:37]MH_I2C_Read... [09:49:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:49:37]Read from MH i2c: E2 [09:49:37]MH_I2C_Read... [09:49:37]Read from MH i2c: E2 0E 00 [09:49:37]MH_I2C_Read... [09:49:37]Read from MH i2c: E2 0E 00 9F 6C 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 99 [09:49:37]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [09:49:37]wFMCommunicate OK [09:49:37]SAM_PROTO_GetShiftState done [09:49:37]FM_GetShiftState done [09:49:37]opened in 1712881416 [09:49:37]opened+sec_in_day 1712967816 [09:49:37]quantity*price = 30028 [09:49:37]sum+1 = 30029 [09:49:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 71 12.04.2024 09:49 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28622 ФПД: 71321460512669 1/tax-web-control/client/api/v1/ticket?date=20240412T094945&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28622&fm=71321460512669&tin=02508201610067®Number=0000138879044617&sum=30000 [09:49:38]StoreToDocumentArchive [09:49:38]shift 113 fd 28622 [09:49:38]save to /storage/0113/doc_00028622 [09:49:38]save last doc name /storage/0113/doc_00028622 to /storage/kkm_last_doc_name [09:49:38]save OK [09:49:38]Clear old archive folders... [09:49:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:49:38]tlvbuf is 01AE52B0 [09:49:38]SAM_PROTO_ClearQueue [09:49:38]wFMCommunicate request_size=4 [09:49:38]MH_SAM_APDU [09:49:38]CAPDU: 80 09 00 00 [09:49:38]Write to MH i2c: E2 08 00 AC 6C 80 09 00 00 00 00 00 00 8A [09:49:38]Write i2c OK [09:49:38]MH_I2C_Read... [09:49:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:49:38]Read from MH i2c: E2 [09:49:38]MH_I2C_Read... [09:49:38]Read from MH i2c: E2 03 00 [09:49:38]MH_I2C_Read... [09:49:38]Read from MH i2c: E2 03 00 AC 6C 00 90 00 8C [09:49:38]RAPDU: 90 00 [09:49:38]wFMCommunicate OK [09:49:38]SAM_PROTO_ClearQueue done [09:49:38]KKMCreateOFDPacket [09:49:38]OFDProtocolAddRootSTLVToBuf [09:49:38]FM_MakeSignedData [09:49:38]FM_MakeSignedData [09:49:38]SAM_PROTO_SignData [09:49:38]wFMCommunicate request_size=4 [09:49:38]MH_SAM_APDU [09:49:38]CAPDU: 80 0D 01 02 [09:49:38]Write to MH i2c: E2 08 00 AD 6C 80 0D 01 02 00 00 00 00 92 [09:49:38]Write i2c OK [09:49:38]MH_I2C_Read... [09:49:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:49:38]Read from MH i2c: E2 [09:49:38]MH_I2C_Read... [09:49:38]Read from MH i2c: E2 03 00 [09:49:38]MH_I2C_Read... [09:49:38]Read from MH i2c: E2 03 00 AD 6C 00 90 00 8D [09:49:38]RAPDU: 90 00 [09:49:38]wFMCommunicate OK [09:49:38]wFMCommunicate request_size=255 [09:49:38]MH_SAM_APDU [09:49:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3E 12 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 B9 03 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CE 6F 00 00 35 04 06 00 40 [09:49:38]Write to MH i2c: E2 02 01 AE 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 35 FF 03 08 00 03 3E 12 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 B9 03 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CE 6F 00 00 35 04 06 00 40 00 00 47 [09:49:38]Write i2c OK [09:49:38]MH_I2C_Read... [09:49:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:49:39]Read from MH i2c: E2 [09:49:39]MH_I2C_Read... [09:49:39]Read from MH i2c: E2 03 00 [09:49:39]MH_I2C_Read... [09:49:39]Read from MH i2c: E2 03 00 AE 6C 00 90 00 8E [09:49:39]RAPDU: 90 00 [09:49:39]wFMCommunicate OK [09:49:39]wFMCommunicate request_size=10 [09:49:39]MH_SAM_APDU [09:49:39]CAPDU: 80 0D 02 02 05 DD D2 51 97 9D [09:49:39]Write to MH i2c: E2 0D 00 AF 6C 80 0D 02 02 05 00 DD D2 51 97 9D 00 00 D3 [09:49:39]Write i2c OK [09:49:39]MH_I2C_Read... [09:49:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:49:39]Read from MH i2c: E2 [09:49:39]MH_I2C_Read... [09:49:39]Read from MH i2c: E2 03 00 [09:49:39]MH_I2C_Read... [09:49:39]Read from MH i2c: E2 03 00 AF 6C 00 90 00 8F [09:49:39]RAPDU: 90 00 [09:49:39]wFMCommunicate OK [09:49:39]wFMCommunicate request_size=4 [09:49:39]MH_SAM_APDU [09:49:39]CAPDU: 80 0D 03 02 [09:49:39]Write to MH i2c: E2 08 00 B0 6C 80 0D 03 02 00 00 00 00 97 [09:49:39]Write i2c OK [09:49:39]MH_I2C_Read... [09:49:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:49:39]Read from MH i2c: E2 [09:49:39]MH_I2C_Read... [09:49:39]Read from MH i2c: E2 0B 00 [09:49:39]MH_I2C_Read... [09:49:39]Read from MH i2c: E2 0B 00 B0 6C 00 62 EB 47 7F 72 FF 2B AA 90 00 F1 [09:49:39]RAPDU: 62 EB 47 7F 72 FF 2B AA 90 00 [09:49:39]wFMCommunicate OK [09:49:39]SAM_PROTO_SignData done [09:49:39]FM_MakeSignedData done [09:49:39]CreateOFDProtocolMessage [09:49:39]wFMCommunicate request_size=4 [09:49:39]MH_SAM_APDU [09:49:39]CAPDU: 80 11 00 00 [09:49:39]Write to MH i2c: E2 08 00 B1 6C 80 11 00 00 00 00 00 00 97 [09:49:39]Write i2c OK [09:49:39]MH_I2C_Read... [09:49:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:49:39]Read from MH i2c: E2 [09:49:39]MH_I2C_Read... [09:49:39]Read from MH i2c: E2 17 00 [09:49:39]MH_I2C_Read... [09:49:39]Read from MH i2c: E2 17 00 B1 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 E6 [09:49:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:49:39]wFMCommunicate OK [09:49:39]CreateOFDProtocolMessage done [09:49:39]OFDSenderStorePacket 28622 [09:49:39]StoreOFDPacket docnum=28622 [09:49:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 08 BA 07 01 3B F0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3E 12 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 B9 03 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CE 6F 00 00 35 04 06 00 40 DD D2 51 97 9D 62 EB 47 7F 72 FF 2B AA [09:49:39]CheckFolder [09:49:39]dirname=/storage/ofd_packets [09:49:39]CheckFolder done [09:49:39]ProducePacketName [09:49:39]name=ofd_packets/00028622 [09:49:39]NVStorageSaveData ofd_packets/00028622 [09:49:39]File name is /storage/ofd_packets/00028622 [09:49:39]Write 301 bytes [09:49:39]NVStorageSaveData done [09:49:39]OFDSenderStorePacket done [09:49:39]KKMCreateOFDPacket done [09:49:39]NVStorageSaveData kkm_last_timestamp [09:49:39]File name is /storage/kkm_last_timestamp [09:49:39]Write 4 bytes [09:49:39]NVStorageSaveData done [09:49:39]ExternCall_PrintAddStr [09:49:39]wPrintStart [09:49:39]Write to MH i2c: 01 00 00 B2 6C 1E [09:49:39]Write i2c OK [09:49:39]MH_I2C_Read... [09:49:39]Read from MH i2c: 01 [09:49:39]MH_I2C_Read... [09:49:39]Read from MH i2c: 01 07 00 [09:49:39]MH_I2C_Read... [09:49:39]Read from MH i2c: 01 07 00 B2 6C 00 00 00 00 00 FF 0F 33 [09:49:39]RasterBufferAndPrint [09:49:39]line Счет N : (1)346940 [09:49:39]line ИНН: 02508201610067 [09:49:39]line Контрольно-Кассовый Чек [09:49:39]line ПРОДАЖА [09:49:39]line ТРК (МРК, ГНК) : 13 [09:49:39]line Товар: 2710124130 [09:49:39]line Аи-92-К-5 [09:49:39]line 4.670 * 64.30 [09:49:39]line = 300.28 [09:49:39]line НДС 12% НСП 1% [09:49:39]line > о реализуемом товаре [09:49:39]line ОКРУГЛЕНИЕ: -0.28 [09:49:39]line ИТОГО: 300.00 [09:49:39]line Внесено: 300.00 [09:49:39]line СДАЧА: 0.00 [09:49:39]line НСП 1% : 2.66 [09:49:39]line НДС 12% : 31.89 [09:49:39]line Наличными: 300.00 [09:49:39]line Безнал.: 0.00 [09:49:39]line Место: АЗС № 108 "Партнер Нефть" [09:49:39]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [09:49:39]line СНО: Общий режим [09:49:39]line Чек 71 12.04.2024 09:49 [09:49:39]line Смена: 113 ФФД: 1.0 [09:49:39]line ЗНМ: 0300000027 [09:49:39]line РНМ: 0000138879044617 [09:49:39]line Версия ККМ: 001 [09:49:39]line ФМ: 0000000000963154 [09:49:39]line ФД: 28622 [09:49:39]line ФПД: 71321460512669 [09:49:39]line 1/tax-web-control/client/api/v1/ticket?date=20240412T094945&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28622&fm=71321460512669&tin=02508201610067®Number=0000138879044617&sum=30000 [09:49:39]OFD Sender: Processing packet 28622 [packets to send 8, broken 7] [09:49:39]ProducePacketName [09:49:39]name=ofd_packets/00028622 [09:49:39]OFD Sender: To server: pG, [09:49:39]CommunicateWithHost lk.salyk.kg:30040 [09:49:39]ConnectInit lk.salyk.kg [09:49:39]written 0, free lines is 4095 [09:49:39]Connected sock=10 [09:49:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 08 BA 07 01 3B F0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3E 12 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 B9 03 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CE 6F 00 00 35 04 06 00 40 DD D2 51 97 9D 62 EB 47 7F 72 FF 2B AA [09:49:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 A7 C4 47 00 6B 94 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CE 6F 00 00 F4 03 04 00 63 AE 18 66 B6 04 01 00 00 9F 12 BA 05 DE 89 38 89 [09:49:39]CommunicateWithHost err = 0 [09:49:39]CheckOFDResponse [09:49:39]1017 (14) - 77093643461234 [09:49:39]1041 (16) - 0000000000963154 [09:49:39]1040 (4) - 28622 [09:49:39]1012 (4) - 12.04.2024 03:45 [09:49:39]1206 (1) - 0 [09:49:39]OFD Sender: Remove packet 28622 [09:49:39]ProducePacketName [09:49:39]name=ofd_packets/00028622 [09:49:39]NVStorageDeleteData [09:49:40]Write to MH i2c: 01 00 00 DC 6C 48 [09:49:40]Write i2c OK [09:49:40]MH_I2C_Read... [09:49:40]Read from MH i2c: 01 [09:49:40]MH_I2C_Read... [09:49:40]Read from MH i2c: 01 07 00 [09:49:40]MH_I2C_Read... [09:49:40]Read from MH i2c: 01 07 00 DC 6C 00 00 00 00 00 C6 0C 21 [09:49:40]RasterBufferAndPrint [09:49:40]line [09:49:40]line [09:49:40]line [09:49:40]line [09:49:40]line [09:49:40]written 0, free lines is 3274 [09:49:40]MH_Cut [09:49:40]Write to MH i2c: D1 01 00 E3 6C 01 21 [09:49:40]Write i2c OK [09:49:40]MH_I2C_Read... [09:49:40]Read from MH i2c: D1 [09:49:40]MH_I2C_Read... [09:49:40]Read from MH i2c: D1 01 00 [09:49:40]MH_I2C_Read... [09:49:40]Read from MH i2c: D1 01 00 E3 6C 00 20 [09:49:40]Write to MH i2c: 01 00 00 E4 6C 50 [09:49:40]Write i2c OK [09:49:40]MH_I2C_Read... [09:49:40]OFD Sender: No OFD packet to send [09:49:40]*** Cut start [09:49:40]*** Partial cut [09:49:40]*** CUTSNS_PIN = 1 [09:49:40]*** CUTSNS_PIN = 0 [09:49:41]*** Brake cut motor [09:49:41]Read from MH i2c: 01 [09:49:41]MH_I2C_Read... [09:49:41]*** Stop cut motor [09:49:41]*** Cut end [09:49:41]Read from MH i2c: 01 07 00 [09:49:41]MH_I2C_Read... [09:49:41]Read from MH i2c: 01 07 00 E4 6C 00 00 00 00 00 FF 0F 65 [09:49:41]process_action close_receipt done [09:49:41]requested_data is exist [09:49:41]produce_requested_data [09:49:41]requested_item fm.sn is exist - process it [09:49:41]wFMCommunicate request_size=4 [09:49:41]MH_SAM_APDU [09:49:41]CAPDU: 80 11 00 00 [09:49:41]Write to MH i2c: E2 08 00 E5 6C 80 11 00 00 00 00 00 00 CB [09:49:41]Write i2c OK [09:49:41]MH_I2C_Read... [09:49:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:49:41]Read from MH i2c: E2 [09:49:41]MH_I2C_Read... [09:49:41]Read from MH i2c: E2 17 00 [09:49:41]MH_I2C_Read... [09:49:41]Read from MH i2c: E2 17 00 E5 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 1A [09:49:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:49:41]wFMCommunicate OK [09:49:41]requested_item fd.num is exist - process it [09:49:41]SAM_PROTO_GetFieldsCounters [09:49:41]wFMCommunicate request_size=4 [09:49:41]MH_SAM_APDU [09:49:41]CAPDU: 80 13 00 00 [09:49:41]Write to MH i2c: E2 08 00 E6 6C 80 13 00 00 00 00 00 00 CE [09:49:41]Write i2c OK [09:49:41]MH_I2C_Read... [09:49:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:49:41]Read from MH i2c: E2 [09:49:41]MH_I2C_Read... [09:49:41]Read from MH i2c: E2 62 00 [09:49:41]MH_I2C_Read... [09:49:41]Read from MH i2c: E2 62 00 E6 6C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 CE 6F 00 00 0E 04 04 00 71 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 8F [09:49:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 CE 6F 00 00 0E 04 04 00 71 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 [09:49:41]wFMCommunicate OK [09:49:41]SAM_PROTO_GetFieldsCounters done [09:49:41]requested_item shift.num is exist - process it [09:49:41]requested_item shift.opened is exist - process it [09:49:41]req_shift_opened [09:49:41]FM_GetShiftState [09:49:41]SAM_PROTO_GetShiftState [09:49:41]wFMCommunicate request_size=4 [09:49:41]MH_SAM_APDU [09:49:41]CAPDU: 80 13 01 00 [09:49:41]Write to MH i2c: E2 08 00 E7 6C 80 13 01 00 00 00 00 00 D0 [09:49:41]Write i2c OK [09:49:41]MH_I2C_Read... [09:49:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:49:41]Read from MH i2c: E2 [09:49:41]MH_I2C_Read... [09:49:41]Read from MH i2c: E2 0E 00 [09:49:41]MH_I2C_Read... [09:49:41]Read from MH i2c: E2 0E 00 E7 6C 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 E1 [09:49:41]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [09:49:41]wFMCommunicate OK [09:49:41]SAM_PROTO_GetShiftState done [09:49:41]FM_GetShiftState done [09:49:41]req_shift_opened done [09:49:41]requested_item shift.open_date is exist - process it [09:49:41]req_shift_open_date [09:49:41]req_shift_open_date done [09:49:41]produce_requested_data done [09:49:41]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28622,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [09:49:41]process_action_free close_receipt [09:49:41]json_value_free [09:49:41]json_value_free done [09:49:41]process_json_proto returns [09:49:41]Send response to host [09:49:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28622,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [09:49:41]free response buf [09:49:41]execute_script done [09:49:41]execute_script returns [09:49:41]free content buf [09:49:41]Sock 9.Close socket [09:49:41]Sock 9.Thread stoped [09:49:45]OFD Sender: No OFD packet to send [09:49:50]OFD Sender: No OFD packet to send [09:49:55]OFD Sender: No OFD packet to send [09:50:00]OFD Sender: No OFD packet to send [09:50:05]OFD Sender: No OFD packet to send [09:50:10]OFD Sender: No OFD packet to send [09:50:15]OFD Sender: No OFD packet to send [09:50:20]OFD Sender: No OFD packet to send [09:50:25]OFD Sender: No OFD packet to send [09:50:30]OFD Sender: No OFD packet to send [09:50:35]OFD Sender: No OFD packet to send [09:50:40]OFD Sender: No OFD packet to send [09:50:45]OFD Sender: No OFD packet to send [09:50:50]OFD Sender: No OFD packet to send [09:50:55]OFD Sender: No OFD packet to send [09:51:00]OFD Sender: No OFD packet to send [09:51:05]OFD Sender: No OFD packet to send [09:51:10]OFD Sender: No OFD packet to send [09:51:15]OFD Sender: No OFD packet to send [09:51:20]OFD Sender: No OFD packet to send [09:51:25]OFD Sender: No OFD packet to send [09:51:30]OFD Sender: No OFD packet to send [09:51:35]OFD Sender: No OFD packet to send [09:51:40]OFD Sender: No OFD packet to send [09:51:45]OFD Sender: No OFD packet to send [09:51:50]OFD Sender: No OFD packet to send [09:51:55]OFD Sender: No OFD packet to send [09:52:00]OFD Sender: No OFD packet to send [09:52:05]OFD Sender: No OFD packet to send [09:52:10]OFD Sender: No OFD packet to send [09:52:15]OFD Sender: No OFD packet to send [09:52:20]OFD Sender: No OFD packet to send [09:52:25]OFD Sender: No OFD packet to send [09:52:30]OFD Sender: No OFD packet to send [09:52:35]OFD Sender: No OFD packet to send [09:52:40]OFD Sender: No OFD packet to send [09:52:45]OFD Sender: No OFD packet to send [09:52:50]OFD Sender: No OFD packet to send [09:52:55]OFD Sender: No OFD packet to send [09:53:00]OFD Sender: No OFD packet to send [09:53:05]OFD Sender: No OFD packet to send [09:53:10]OFD Sender: No OFD packet to send [09:53:15]OFD Sender: No OFD packet to send [09:53:20]OFD Sender: No OFD packet to send [09:53:25]OFD Sender: No OFD packet to send [09:53:30]OFD Sender: No OFD packet to send [09:53:35]OFD Sender: No OFD packet to send [09:53:40]OFD Sender: No OFD packet to send [09:53:45]OFD Sender: No OFD packet to send [09:53:50]OFD Sender: No OFD packet to send [09:53:55]OFD Sender: No OFD packet to send [09:54:00]OFD Sender: No OFD packet to send [09:54:05]OFD Sender: No OFD packet to send [09:54:10]OFD Sender: No OFD packet to send [09:54:15]OFD Sender: No OFD packet to send [09:54:20]OFD Sender: No OFD packet to send [09:54:25]OFD Sender: No OFD packet to send [09:54:30]OFD Sender: No OFD packet to send [09:54:35]OFD Sender: No OFD packet to send [09:54:40]OFD Sender: No OFD packet to send [09:54:45]OFD Sender: No OFD packet to send [09:54:50]OFD Sender: No OFD packet to send [09:54:55]OFD Sender: No OFD packet to send [09:55:00]OFD Sender: No OFD packet to send [09:55:05]OFD Sender: No OFD packet to send [09:55:10]OFD Sender: No OFD packet to send [09:55:15]OFD Sender: No OFD packet to send [09:55:20]OFD Sender: No OFD packet to send [09:55:25]OFD Sender: No OFD packet to send [09:55:30]OFD Sender: No OFD packet to send [09:55:35]OFD Sender: No OFD packet to send [09:55:40]OFD Sender: No OFD packet to send [09:55:45]OFD Sender: No OFD packet to send [09:55:50]OFD Sender: No OFD packet to send [09:55:55]OFD Sender: No OFD packet to send [09:56:00]OFD Sender: No OFD packet to send [09:56:05]OFD Sender: No OFD packet to send [09:56:10]OFD Sender: No OFD packet to send [09:56:15]OFD Sender: No OFD packet to send [09:56:20]OFD Sender: No OFD packet to send [09:56:25]OFD Sender: No OFD packet to send [09:56:30]OFD Sender: No OFD packet to send [09:56:35]OFD Sender: No OFD packet to send [09:56:40]OFD Sender: No OFD packet to send [09:56:45]OFD Sender: No OFD packet to send [09:56:50]OFD Sender: No OFD packet to send [09:56:55]OFD Sender: No OFD packet to send [09:57:00]OFD Sender: No OFD packet to send [09:57:05]OFD Sender: No OFD packet to send [09:57:10]OFD Sender: No OFD packet to send [09:57:15]OFD Sender: No OFD packet to send [09:57:20]OFD Sender: No OFD packet to send [09:57:25]OFD Sender: No OFD packet to send [09:57:30]OFD Sender: No OFD packet to send [09:57:35]OFD Sender: No OFD packet to send [09:57:40]accept exits with 7 [09:57:40]New connection [09:57:40]New thread 3066498404 created [09:57:40]Thread 3066641764 joined [09:57:40]Waiting for new connection... [09:57:40] Sock 7.Parse request [09:57:40]Sock 7.Check first char [09:57:40]Sock 7.First char is OK [09:57:40]request: POST /json_proto HTTP/1.0 [09:57:40]Method: POST [09:57:40]URL: /json_proto [09:57:40]Method is POST - this is cgi request [09:57:40]url: /json_proto [09:57:40]query_string will be loaded in cgi processing [09:57:40]execute_cgi json_proto POST (null) [09:57:40]execute_cgi path=json_proto method=POST [09:57:40]POST find Content-Length [09:57:40]Host: 172.17.33.3:8080 [09:57:40]Content-Length: 819 [09:57:40]Content-Type: application/json [09:57:40] [09:57:40]POST finish read [09:57:40]Found Content-Length = 819 [09:57:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346941", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 28.960, "sum" : 1862.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1862.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:57:40]execute_script... [09:57:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346941", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 28.960, "sum" : 1862.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1862.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:57:40]POST & json_proto [09:57:40]process_json_proto [09:57:40]json parsed OK: [09:57:40]protocol is kg_v1.0 [09:57:40]action value=close_receipt [09:57:40]process_action close_receipt [09:57:40]cmd_close_receipt [09:57:40]MH_GetDate [09:57:40]Write to MH i2c: F0 00 00 E8 6C 43 [09:57:40]Write i2c OK [09:57:40]MH_I2C_Read... [09:57:40]Read from MH i2c: F0 [09:57:40]MH_I2C_Read... [09:57:40]Read from MH i2c: F0 09 00 [09:57:40]MH_I2C_Read... [09:57:40]Read from MH i2c: F0 09 00 E8 6C 00 9C 05 19 66 23 5B 8F 65 DE [09:57:40]GetLastDocTimeStamp 1712915385 [09:57:40]current date 1712915868 [09:57:40]FM_GetShiftState [09:57:40]SAM_PROTO_GetShiftState [09:57:40]wFMCommunicate request_size=4 [09:57:40]MH_SAM_APDU [09:57:40]CAPDU: 80 13 01 00 [09:57:40]Write to MH i2c: E2 08 00 E9 6C 80 13 01 00 00 00 00 00 D2 [09:57:40]Write i2c OK [09:57:40]MH_I2C_Read... [09:57:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:57:40]Read from MH i2c: E2 [09:57:40]MH_I2C_Read... [09:57:40]Read from MH i2c: E2 0E 00 [09:57:40]MH_I2C_Read... [09:57:40]Read from MH i2c: E2 0E 00 E9 6C 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 E3 [09:57:40]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [09:57:40]wFMCommunicate OK [09:57:40]SAM_PROTO_GetShiftState done [09:57:40]FM_GetShiftState done [09:57:40]opened in 1712881416 [09:57:40]opened+sec_in_day 1712967816 [09:57:40]quantity*price = 186212 [09:57:40]sum+1 = 186214 [09:57:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1862.13 НСП 1% : 16.48 НДС 12% : 197.75 Наличными: 0.00 Безнал.: 1862.13 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 72 12.04.2024 09:57 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000963154 ФД: 28623 ФПД: 45936770762024 1/tax-web-control/client/api/v1/ticket?date=20240412T095748&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28623&fm=45936770762024&tin=02508201610067®Number=0000138879044617&sum=186213 [09:57:41]StoreToDocumentArchive [09:57:41]shift 113 fd 28623 [09:57:41]save to /storage/0113/doc_00028623 [09:57:41]save last doc name /storage/0113/doc_00028623 to /storage/kkm_last_doc_name [09:57:41]save OK [09:57:41]Clear old archive folders... [09:57:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:57:41]tlvbuf is 01AD45B0 [09:57:41]SAM_PROTO_ClearQueue [09:57:41]wFMCommunicate request_size=4 [09:57:41]MH_SAM_APDU [09:57:41]CAPDU: 80 09 00 00 [09:57:41]Write to MH i2c: E2 08 00 F6 6C 80 09 00 00 00 00 00 00 D4 [09:57:41]Write i2c OK [09:57:41]MH_I2C_Read... [09:57:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:57:41]Read from MH i2c: E2 [09:57:41]MH_I2C_Read... [09:57:41]Read from MH i2c: E2 03 00 [09:57:41]MH_I2C_Read... [09:57:41]Read from MH i2c: E2 03 00 F6 6C 00 90 00 D6 [09:57:41]RAPDU: 90 00 [09:57:41]wFMCommunicate OK [09:57:41]SAM_PROTO_ClearQueue done [09:57:41]KKMCreateOFDPacket [09:57:41]OFDProtocolAddRootSTLVToBuf [09:57:41]FM_MakeSignedData [09:57:41]FM_MakeSignedData [09:57:41]SAM_PROTO_SignData [09:57:41]wFMCommunicate request_size=4 [09:57:41]MH_SAM_APDU [09:57:41]CAPDU: 80 0D 01 02 [09:57:41]Write to MH i2c: E2 08 00 F7 6C 80 0D 01 02 00 00 00 00 DC [09:57:41]Write i2c OK [09:57:41]MH_I2C_Read... [09:57:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:57:41]Read from MH i2c: E2 [09:57:41]MH_I2C_Read... [09:57:41]Read from MH i2c: E2 03 00 [09:57:41]MH_I2C_Read... [09:57:41]Read from MH i2c: E2 03 00 F7 6C 00 90 00 D7 [09:57:41]RAPDU: 90 00 [09:57:41]wFMCommunicate OK [09:57:41]wFMCommunicate request_size=255 [09:57:41]MH_SAM_APDU [09:57:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 71 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 65 D7 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 65 D7 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 70 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 4D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 65 D7 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 9C 05 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CF 6F 00 00 35 04 06 00 29 [09:57:41]Write to MH i2c: E2 02 01 F8 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 35 FF 03 08 00 03 20 71 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 65 D7 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 65 D7 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 70 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 4D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 65 D7 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 9C 05 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CF 6F 00 00 35 04 06 00 29 00 00 C7 [09:57:41]Write i2c OK [09:57:41]MH_I2C_Read... [09:57:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:57:42]Read from MH i2c: E2 [09:57:42]MH_I2C_Read... [09:57:42]Read from MH i2c: E2 03 00 [09:57:42]MH_I2C_Read... [09:57:42]Read from MH i2c: E2 03 00 F8 6C 00 90 00 D8 [09:57:42]RAPDU: 90 00 [09:57:42]wFMCommunicate OK [09:57:42]wFMCommunicate request_size=10 [09:57:42]MH_SAM_APDU [09:57:42]CAPDU: 80 0D 02 02 05 C7 7C E7 45 28 [09:57:42]Write to MH i2c: E2 0D 00 F9 6C 80 0D 02 02 05 00 C7 7C E7 45 28 00 00 80 [09:57:42]Write i2c OK [09:57:42]MH_I2C_Read... [09:57:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:57:42]Read from MH i2c: E2 [09:57:42]MH_I2C_Read... [09:57:42]Read from MH i2c: E2 03 00 [09:57:42]MH_I2C_Read... [09:57:42]Read from MH i2c: E2 03 00 F9 6C 00 90 00 D9 [09:57:42]RAPDU: 90 00 [09:57:42]wFMCommunicate OK [09:57:42]wFMCommunicate request_size=4 [09:57:42]MH_SAM_APDU [09:57:42]CAPDU: 80 0D 03 02 [09:57:42]Write to MH i2c: E2 08 00 FA 6C 80 0D 03 02 00 00 00 00 E1 [09:57:42]Write i2c OK [09:57:42]MH_I2C_Read... [09:57:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:57:42]Read from MH i2c: E2 [09:57:42]MH_I2C_Read... [09:57:42]Read from MH i2c: E2 0B 00 [09:57:42]MH_I2C_Read... [09:57:42]Read from MH i2c: E2 0B 00 FA 6C 00 21 31 6C 9E EF 55 01 E4 90 00 67 [09:57:42]RAPDU: 21 31 6C 9E EF 55 01 E4 90 00 [09:57:42]wFMCommunicate OK [09:57:42]SAM_PROTO_SignData done [09:57:42]FM_MakeSignedData done [09:57:42]CreateOFDProtocolMessage [09:57:42]wFMCommunicate request_size=4 [09:57:42]MH_SAM_APDU [09:57:42]CAPDU: 80 11 00 00 [09:57:42]Write to MH i2c: E2 08 00 FB 6C 80 11 00 00 00 00 00 00 E1 [09:57:42]Write i2c OK [09:57:42]MH_I2C_Read... [09:57:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:57:42]Read from MH i2c: E2 [09:57:42]MH_I2C_Read... [09:57:42]Read from MH i2c: E2 17 00 [09:57:42]MH_I2C_Read... [09:57:42]Read from MH i2c: E2 17 00 FB 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 30 [09:57:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:57:42]wFMCommunicate OK [09:57:42]CreateOFDProtocolMessage done [09:57:42]OFDSenderStorePacket 28623 [09:57:42]StoreOFDPacket docnum=28623 [09:57:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 27 24 07 01 08 93 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 71 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 65 D7 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 65 D7 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 70 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 4D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 65 D7 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 9C 05 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CF 6F 00 00 35 04 06 00 29 C7 7C E7 45 28 21 31 6C 9E EF 55 01 E4 [09:57:42]CheckFolder [09:57:42]dirname=/storage/ofd_packets [09:57:42]CheckFolder done [09:57:42]ProducePacketName [09:57:42]name=ofd_packets/00028623 [09:57:42]NVStorageSaveData ofd_packets/00028623 [09:57:42]File name is /storage/ofd_packets/00028623 [09:57:42]Write 301 bytes [09:57:42]NVStorageSaveData done [09:57:42]OFDSenderStorePacket done [09:57:42]KKMCreateOFDPacket done [09:57:42]NVStorageSaveData kkm_last_timestamp [09:57:42]File name is /storage/kkm_last_timestamp [09:57:42]Write 4 bytes [09:57:42]NVStorageSaveData done [09:57:42]ExternCall_PrintAddStr [09:57:42]wPrintStart [09:57:42]Write to MH i2c: 01 00 00 FC 6C 68 [09:57:42]Write i2c OK [09:57:42]MH_I2C_Read... [09:57:42]Read from MH i2c: 01 [09:57:42]MH_I2C_Read... [09:57:42]Read from MH i2c: 01 07 00 [09:57:42]MH_I2C_Read... [09:57:42]Read from MH i2c: 01 07 00 FC 6C 00 00 00 00 00 FF 0F 7D [09:57:42]RasterBufferAndPrint [09:57:42]line Счет N : (1)346941 [09:57:42]line ИНН: 02508201610067 [09:57:42]line Контрольно-Кассовый Чек [09:57:42]line ПРОДАЖА [09:57:42]line ТРК (МРК, ГНК) : 32 [09:57:42]line Товар: 2710124130 [09:57:42]line Аи-92-К-5 [09:57:42]line 28.960 * 64.30 [09:57:42]line = 1862.13 [09:57:42]line НДС 12% НСП 1% [09:57:42]line > о реализуемом товаре [09:57:42]line ИТОГО: 1862.13 [09:57:42]line НСП 1% : 16.48 [09:57:42]line НДС 12% : 197.75 [09:57:42]line Наличными: 0.00 [09:57:42]line Безнал.: 1862.13 [09:57:42]line Место: АЗС № 108 "Партнер Нефть" [09:57:42]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [09:57:42]line СНО: Общий режим [09:57:42]line Чек 72 12.04.2024 09:57 [09:57:42]line Смена: 113 ФФД: 1.0 [09:57:42]line ЗНМ: 0300000027 [09:57:42]line РНМ: 0000138879044617 [09:57:42]line Версия ККМ: 001 [09:57:42]line Платежная система: Бакай Банк [09:57:42]line ФМ: 0000000000963154 [09:57:42]line ФД: 28623 [09:57:42]line ФПД: 45936770762024 [09:57:42]line 1/tax-web-control/client/api/v1/ticket?date=20240412T095748&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28623&fm=45936770762024&tin=02508201610067®Number=0000138879044617&sum=186213 [09:57:42]OFD Sender: Processing packet 28623 [packets to send 8, broken 7] [09:57:42]ProducePacketName [09:57:42]name=ofd_packets/00028623 [09:57:42]OFD Sender: To server: pG, [09:57:42]CommunicateWithHost lk.salyk.kg:30040 [09:57:42]ConnectInit lk.salyk.kg [09:57:42]written 0, free lines is 4095 [09:57:42]Connected sock=10 [09:57:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 27 24 07 01 08 93 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 71 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 65 D7 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 65 D7 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 70 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 4D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 65 D7 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 9C 05 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CF 6F 00 00 35 04 06 00 29 C7 7C E7 45 28 21 31 6C 9E EF 55 01 E4 [09:57:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 9E 1C 47 00 88 ED A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CF 6F 00 00 F4 03 04 00 46 B0 18 66 B6 04 01 00 00 69 45 15 1D 5C 29 DF C6 [09:57:42]CommunicateWithHost err = 0 [09:57:42]CheckOFDResponse [09:57:42]1017 (14) - 77093643461234 [09:57:42]1041 (16) - 0000000000963154 [09:57:42]1040 (4) - 28623 [09:57:42]1012 (4) - 12.04.2024 03:53 [09:57:42]1206 (1) - 0 [09:57:42]OFD Sender: Remove packet 28623 [09:57:42]ProducePacketName [09:57:42]name=ofd_packets/00028623 [09:57:42]NVStorageDeleteData [09:57:42]Write to MH i2c: 01 00 00 25 6D 92 [09:57:42]Write i2c OK [09:57:42]MH_I2C_Read... [09:57:42]Read from MH i2c: 01 [09:57:42]MH_I2C_Read... [09:57:42]Read from MH i2c: 01 07 00 [09:57:42]MH_I2C_Read... [09:57:42]Read from MH i2c: 01 07 00 25 6D 00 00 00 00 00 E2 0C 87 [09:57:42]RasterBufferAndPrint [09:57:42]line [09:57:42]line [09:57:42]line [09:57:42]line [09:57:42]line [09:57:42]written 0, free lines is 3302 [09:57:43]MH_Cut [09:57:43]Write to MH i2c: D1 01 00 2C 6D 01 6B [09:57:43]Write i2c OK [09:57:43]MH_I2C_Read... [09:57:43]Read from MH i2c: D1 [09:57:43]MH_I2C_Read... [09:57:43]Read from MH i2c: D1 01 00 [09:57:43]MH_I2C_Read... [09:57:43]Read from MH i2c: D1 01 00 2C 6D 00 6A [09:57:43]Write to MH i2c: 01 00 00 2D 6D 9A [09:57:43]Write i2c OK [09:57:43]MH_I2C_Read... [09:57:43]OFD Sender: No OFD packet to send [09:57:43]*** Cut start [09:57:43]*** Partial cut [09:57:43]*** CUTSNS_PIN = 1 [09:57:43]*** CUTSNS_PIN = 0 [09:57:44]*** Brake cut motor [09:57:44]Read from MH i2c: 01 [09:57:44]MH_I2C_Read... [09:57:44]*** Stop cut motor [09:57:44]*** Cut end [09:57:44]Read from MH i2c: 01 07 00 [09:57:44]MH_I2C_Read... [09:57:44]Read from MH i2c: 01 07 00 2D 6D 00 00 00 00 00 FF 0F AF [09:57:44]process_action close_receipt done [09:57:44]requested_data is exist [09:57:44]produce_requested_data [09:57:44]requested_item fm.sn is exist - process it [09:57:44]wFMCommunicate request_size=4 [09:57:44]MH_SAM_APDU [09:57:44]CAPDU: 80 11 00 00 [09:57:44]Write to MH i2c: E2 08 00 2E 6D 80 11 00 00 00 00 00 00 15 [09:57:44]Write i2c OK [09:57:44]MH_I2C_Read... [09:57:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:57:44]Read from MH i2c: E2 [09:57:44]MH_I2C_Read... [09:57:44]Read from MH i2c: E2 17 00 [09:57:44]MH_I2C_Read... [09:57:44]Read from MH i2c: E2 17 00 2E 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 64 [09:57:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:57:44]wFMCommunicate OK [09:57:44]requested_item fd.num is exist - process it [09:57:44]SAM_PROTO_GetFieldsCounters [09:57:44]wFMCommunicate request_size=4 [09:57:44]MH_SAM_APDU [09:57:44]CAPDU: 80 13 00 00 [09:57:44]Write to MH i2c: E2 08 00 2F 6D 80 13 00 00 00 00 00 00 18 [09:57:44]Write i2c OK [09:57:44]MH_I2C_Read... [09:57:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:57:44]Read from MH i2c: E2 [09:57:44]MH_I2C_Read... [09:57:44]Read from MH i2c: E2 62 00 [09:57:44]MH_I2C_Read... [09:57:44]Read from MH i2c: E2 62 00 2F 6D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 CF 6F 00 00 0E 04 04 00 71 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 DD [09:57:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 CF 6F 00 00 0E 04 04 00 71 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 [09:57:44]wFMCommunicate OK [09:57:44]SAM_PROTO_GetFieldsCounters done [09:57:44]requested_item shift.num is exist - process it [09:57:44]requested_item shift.opened is exist - process it [09:57:44]req_shift_opened [09:57:44]FM_GetShiftState [09:57:44]SAM_PROTO_GetShiftState [09:57:44]wFMCommunicate request_size=4 [09:57:44]MH_SAM_APDU [09:57:44]CAPDU: 80 13 01 00 [09:57:44]Write to MH i2c: E2 08 00 30 6D 80 13 01 00 00 00 00 00 1A [09:57:44]Write i2c OK [09:57:44]MH_I2C_Read... [09:57:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:57:44]Read from MH i2c: E2 [09:57:44]MH_I2C_Read... [09:57:44]Read from MH i2c: E2 0E 00 [09:57:44]MH_I2C_Read... [09:57:44]Read from MH i2c: E2 0E 00 30 6D 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 2B [09:57:44]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [09:57:44]wFMCommunicate OK [09:57:44]SAM_PROTO_GetShiftState done [09:57:44]FM_GetShiftState done [09:57:44]req_shift_opened done [09:57:44]requested_item shift.open_date is exist - process it [09:57:44]req_shift_open_date [09:57:44]req_shift_open_date done [09:57:44]produce_requested_data done [09:57:44]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28623,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [09:57:44]process_action_free close_receipt [09:57:44]json_value_free [09:57:44]json_value_free done [09:57:44]process_json_proto returns [09:57:44]Send response to host [09:57:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28623,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [09:57:44]free response buf [09:57:44]execute_script done [09:57:44]execute_script returns [09:57:44]free content buf [09:57:44]Sock 7.Close socket [09:57:44]Sock 7.Thread stoped [09:57:48]OFD Sender: No OFD packet to send [09:57:53]OFD Sender: No OFD packet to send [09:57:58]OFD Sender: No OFD packet to send [09:58:03]OFD Sender: No OFD packet to send [09:58:08]OFD Sender: No OFD packet to send [09:58:13]OFD Sender: No OFD packet to send [09:58:18]OFD Sender: No OFD packet to send [09:58:23]OFD Sender: No OFD packet to send [09:58:28]OFD Sender: No OFD packet to send [09:58:33]OFD Sender: No OFD packet to send [09:58:38]OFD Sender: No OFD packet to send [09:58:43]OFD Sender: No OFD packet to send [09:58:48]OFD Sender: No OFD packet to send [09:58:53]OFD Sender: No OFD packet to send [09:58:58]OFD Sender: No OFD packet to send [09:59:03]OFD Sender: No OFD packet to send [09:59:08]OFD Sender: No OFD packet to send [09:59:08]accept exits with 9 [09:59:08]New connection [09:59:08]New thread 3066641764 created [09:59:08]Thread 3066498404 joined [09:59:08]Waiting for new connection... [09:59:08] Sock 9.Parse request [09:59:08]Sock 9.Check first char [09:59:08]Sock 9.First char is OK [09:59:08]request: POST /json_proto HTTP/1.0 [09:59:08]Method: POST [09:59:08]URL: /json_proto [09:59:08]Method is POST - this is cgi request [09:59:08]url: /json_proto [09:59:08]query_string will be loaded in cgi processing [09:59:08]execute_cgi json_proto POST (null) [09:59:08]execute_cgi path=json_proto method=POST [09:59:08]POST find Content-Length [09:59:08]Host: 172.17.33.3:8080 [09:59:08]Content-Length: 1216 [09:59:08]Content-Type: application/json [09:59:08] [09:59:08]POST finish read [09:59:08]Found Content-Length = 1216 [09:59:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)346943\u000A12.04.2024 09:41\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 34.540 x 72.40\u000A\u0418\u0422\u041E\u0413: 2500.70\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3729628;3729629;3729630\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:59:08]execute_script... [09:59:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)346943\u000A12.04.2024 09:41\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 34.540 x 72.40\u000A\u0418\u0422\u041E\u0413: 2500.70\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3729628;3729629;3729630\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:59:08]POST & json_proto [09:59:08]process_json_proto [09:59:08]json parsed OK: [09:59:08]protocol is kg_v1.0 [09:59:08]action value=print_text [09:59:08]process_action print_text [09:59:08]cmd_print_text [09:59:08]ExternCall_PrintAddStr [09:59:08]wPrintStart [09:59:08]Write to MH i2c: 01 00 00 31 6D 9E [09:59:08]Write i2c OK [09:59:08]MH_I2C_Read... [09:59:08]Read from MH i2c: 01 [09:59:08]MH_I2C_Read... [09:59:08]Read from MH i2c: 01 07 00 [09:59:08]MH_I2C_Read... [09:59:08]Read from MH i2c: 01 07 00 31 6D 00 00 00 00 00 FF 0F B3 [09:59:08]RasterBufferAndPrint [09:59:08]line *****ТОВАРНЫЙ ЧЕК***** [09:59:08]line АЗС 108 [09:59:08]line Партнер нефть [09:59:08]line 02508201610067 [09:59:08]line Кассир : Джумагулова Н. [09:59:08]line Счет N : (1)346943 [09:59:08]line 12.04.2024 09:41 [09:59:08]line ПРОДАЖА [09:59:08]line ТРК (МРК, ГНК): 11 [09:59:08]line Вид ГСМ : 2710194210 [09:59:08]line ДТ-К-5 [09:59:08]line 34.540 x 72.40 [09:59:08]line ИТОГ: 2500.70 [09:59:08]line Тип оплаты: Талоны: Партнер нефть [09:59:08]line 3729628;3729629;3729630 [09:59:08]line ______________________ [09:59:08]line (подпись) [09:59:08]written 0, free lines is 4095 [09:59:08]Write to MH i2c: 01 00 00 46 6D B3 [09:59:08]Write i2c OK [09:59:08]MH_I2C_Read... [09:59:08]Read from MH i2c: 01 [09:59:08]MH_I2C_Read... [09:59:08]Read from MH i2c: 01 07 00 [09:59:08]MH_I2C_Read... [09:59:08]Read from MH i2c: 01 07 00 46 6D 00 00 00 00 00 01 0E C9 [09:59:08]RasterBufferAndPrint [09:59:08]line [09:59:08]line [09:59:08]line [09:59:08]line [09:59:08]line [09:59:08]written 0, free lines is 3587 [09:59:08]MH_Cut [09:59:08]Write to MH i2c: D1 01 00 4D 6D 01 8C [09:59:08]Write i2c OK [09:59:08]MH_I2C_Read... [09:59:08]Read from MH i2c: D1 [09:59:08]MH_I2C_Read... [09:59:08]Read from MH i2c: D1 01 00 [09:59:08]MH_I2C_Read... [09:59:08]Read from MH i2c: D1 01 00 4D 6D 00 8B [09:59:08]Write to MH i2c: 01 00 00 4E 6D BB [09:59:08]Write i2c OK [09:59:08]MH_I2C_Read... [09:59:09]*** Cut start [09:59:09]*** Partial cut [09:59:09]*** CUTSNS_PIN = 1 [09:59:09]*** CUTSNS_PIN = 0 [09:59:09]*** Brake cut motor [09:59:10]Read from MH i2c: 01 [09:59:10]MH_I2C_Read... [09:59:10]*** Stop cut motor [09:59:10]*** Cut end [09:59:10]Read from MH i2c: 01 07 00 [09:59:10]MH_I2C_Read... [09:59:10]Read from MH i2c: 01 07 00 4E 6D 00 00 00 00 00 FF 0F D0 [09:59:10]process_action print_text done [09:59:10]requested_data is exist [09:59:10]produce_requested_data [09:59:10]requested_item fm.sn is exist - process it [09:59:10]wFMCommunicate request_size=4 [09:59:10]MH_SAM_APDU [09:59:10]CAPDU: 80 11 00 00 [09:59:10]Write to MH i2c: E2 08 00 4F 6D 80 11 00 00 00 00 00 00 36 [09:59:10]Write i2c OK [09:59:10]MH_I2C_Read... [09:59:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:59:10]Read from MH i2c: E2 [09:59:10]MH_I2C_Read... [09:59:10]Read from MH i2c: E2 17 00 [09:59:10]MH_I2C_Read... [09:59:10]Read from MH i2c: E2 17 00 4F 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 85 [09:59:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:59:10]wFMCommunicate OK [09:59:10]requested_item fd.num is exist - process it [09:59:10]SAM_PROTO_GetFieldsCounters [09:59:10]wFMCommunicate request_size=4 [09:59:10]MH_SAM_APDU [09:59:10]CAPDU: 80 13 00 00 [09:59:10]Write to MH i2c: E2 08 00 50 6D 80 13 00 00 00 00 00 00 39 [09:59:10]Write i2c OK [09:59:10]MH_I2C_Read... [09:59:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:59:10]Read from MH i2c: E2 [09:59:10]MH_I2C_Read... [09:59:10]Read from MH i2c: E2 62 00 [09:59:10]MH_I2C_Read... [09:59:10]Read from MH i2c: E2 62 00 50 6D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 CF 6F 00 00 0E 04 04 00 71 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 FE [09:59:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 CF 6F 00 00 0E 04 04 00 71 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 [09:59:10]wFMCommunicate OK [09:59:10]SAM_PROTO_GetFieldsCounters done [09:59:10]requested_item shift.num is exist - process it [09:59:10]requested_item shift.opened is exist - process it [09:59:10]req_shift_opened [09:59:10]FM_GetShiftState [09:59:10]SAM_PROTO_GetShiftState [09:59:10]wFMCommunicate request_size=4 [09:59:10]MH_SAM_APDU [09:59:10]CAPDU: 80 13 01 00 [09:59:10]Write to MH i2c: E2 08 00 51 6D 80 13 01 00 00 00 00 00 3B [09:59:10]Write i2c OK [09:59:10]MH_I2C_Read... [09:59:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:59:10]Read from MH i2c: E2 [09:59:10]MH_I2C_Read... [09:59:10]Read from MH i2c: E2 0E 00 [09:59:10]MH_I2C_Read... [09:59:10]Read from MH i2c: E2 0E 00 51 6D 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 4C [09:59:10]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [09:59:10]wFMCommunicate OK [09:59:10]SAM_PROTO_GetShiftState done [09:59:10]FM_GetShiftState done [09:59:10]req_shift_opened done [09:59:10]requested_item shift.open_date is exist - process it [09:59:10]req_shift_open_date [09:59:10]req_shift_open_date done [09:59:10]produce_requested_data done [09:59:10]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28623,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [09:59:10]process_action_free print_text [09:59:10]json_value_free [09:59:10]json_value_free done [09:59:10]process_json_proto returns [09:59:10]Send response to host [09:59:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28623,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [09:59:10]free response buf [09:59:10]execute_script done [09:59:10]execute_script returns [09:59:10]free content buf [09:59:10]Sock 9.Close socket [09:59:10]Sock 9.Thread stoped [09:59:13]OFD Sender: No OFD packet to send [09:59:18]OFD Sender: No OFD packet to send [09:59:23]OFD Sender: No OFD packet to send [09:59:28]OFD Sender: No OFD packet to send [09:59:33]OFD Sender: No OFD packet to send [09:59:38]OFD Sender: No OFD packet to send [09:59:43]OFD Sender: No OFD packet to send [09:59:46]accept exits with 7 [09:59:46]New connection [09:59:46]New thread 3066498404 created [09:59:46]Thread 3066641764 joined [09:59:46]Waiting for new connection... [09:59:46] Sock 7.Parse request [09:59:46]Sock 7.Check first char [09:59:46]Sock 7.First char is OK [09:59:46]request: POST /json_proto HTTP/1.0 [09:59:46]Method: POST [09:59:46]URL: /json_proto [09:59:46]Method is POST - this is cgi request [09:59:46]url: /json_proto [09:59:46]query_string will be loaded in cgi processing [09:59:46]execute_cgi json_proto POST (null) [09:59:46]execute_cgi path=json_proto method=POST [09:59:46]POST find Content-Length [09:59:46]Host: 172.17.33.3:8080 [09:59:46]Content-Length: 678 [09:59:46]Content-Type: application/json [09:59:46] [09:59:46]POST finish read [09:59:46]Found Content-Length = 678 [09:59:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346944", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 10.890, "sum" : 700.23, "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:59:46]execute_script... [09:59:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346944", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 10.890, "sum" : 700.23, "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:59:46]POST & json_proto [09:59:46]process_json_proto [09:59:46]json parsed OK: [09:59:46]protocol is kg_v1.0 [09:59:46]action value=close_receipt [09:59:46]process_action close_receipt [09:59:46]cmd_close_receipt [09:59:46]MH_GetDate [09:59:46]Write to MH i2c: F0 00 00 52 6D AE [09:59:46]Write i2c OK [09:59:46]MH_I2C_Read... [09:59:46]Read from MH i2c: F0 [09:59:46]MH_I2C_Read... [09:59:46]Read from MH i2c: F0 09 00 [09:59:46]MH_I2C_Read... [09:59:46]Read from MH i2c: F0 09 00 52 6D 00 1A 06 19 66 23 5B 8F 65 C8 [09:59:46]GetLastDocTimeStamp 1712915868 [09:59:46]current date 1712915994 [09:59:46]FM_GetShiftState [09:59:46]SAM_PROTO_GetShiftState [09:59:46]wFMCommunicate request_size=4 [09:59:46]MH_SAM_APDU [09:59:46]CAPDU: 80 13 01 00 [09:59:46]Write to MH i2c: E2 08 00 53 6D 80 13 01 00 00 00 00 00 3D [09:59:46]Write i2c OK [09:59:46]MH_I2C_Read... [09:59:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:59:46]Read from MH i2c: E2 [09:59:46]MH_I2C_Read... [09:59:46]Read from MH i2c: E2 0E 00 [09:59:46]MH_I2C_Read... [09:59:46]Read from MH i2c: E2 0E 00 53 6D 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 4E [09:59:46]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [09:59:46]wFMCommunicate OK [09:59:46]SAM_PROTO_GetShiftState done [09:59:46]FM_GetShiftState done [09:59:46]opened in 1712881416 [09:59:46]opened+sec_in_day 1712967816 [09:59:46]quantity*price = 70022 [09:59:46]sum+1 = 70024 [09:59:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.36 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 73 12.04.2024 09:59 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28624 ФПД: 72649970706118 1/tax-web-control/client/api/v1/ticket?date=20240412T095954&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28624&fm=72649970706118&tin=02508201610067®Number=0000138879044617&sum=70000 [09:59:47]StoreToDocumentArchive [09:59:47]shift 113 fd 28624 [09:59:47]save to /storage/0113/doc_00028624 [09:59:47]save last doc name /storage/0113/doc_00028624 to /storage/kkm_last_doc_name [09:59:47]save OK [09:59:47]Clear old archive folders... [09:59:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:59:47]tlvbuf is 01AEF1B0 [09:59:47]SAM_PROTO_ClearQueue [09:59:47]wFMCommunicate request_size=4 [09:59:47]MH_SAM_APDU [09:59:47]CAPDU: 80 09 00 00 [09:59:47]Write to MH i2c: E2 08 00 60 6D 80 09 00 00 00 00 00 00 3F [09:59:47]Write i2c OK [09:59:47]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 60 6D 00 90 00 41 [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 61 6D 80 0D 01 02 00 00 00 00 47 [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 61 6D 00 90 00 42 [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 35 FF 03 08 00 03 8A 2A 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 87 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 49 00 00 00 F4 03 04 00 1A 06 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D0 6F 00 00 35 04 06 00 42 [09:59:47]Write to MH i2c: E2 02 01 62 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 35 FF 03 08 00 03 8A 2A 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 87 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 49 00 00 00 F4 03 04 00 1A 06 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D0 6F 00 00 35 04 06 00 42 00 00 67 [09:59:47]Write i2c OK [09:59:47]MH_I2C_Read... [09:59:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:59:48]Read from MH i2c: E2 [09:59:48]MH_I2C_Read... [09:59:48]Read from MH i2c: E2 03 00 [09:59:48]MH_I2C_Read... [09:59:48]Read from MH i2c: E2 03 00 62 6D 00 90 00 43 [09:59:48]RAPDU: 90 00 [09:59:48]wFMCommunicate OK [09:59:48]wFMCommunicate request_size=10 [09:59:48]MH_SAM_APDU [09:59:48]CAPDU: 80 0D 02 02 05 13 23 B2 66 C6 [09:59:48]Write to MH i2c: E2 0D 00 63 6D 80 0D 02 02 05 00 13 23 B2 66 C6 00 00 68 [09:59:48]Write i2c OK [09:59:48]MH_I2C_Read... [09:59:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:59:48]Read from MH i2c: E2 [09:59:48]MH_I2C_Read... [09:59:48]Read from MH i2c: E2 03 00 [09:59:48]MH_I2C_Read... [09:59:48]Read from MH i2c: E2 03 00 63 6D 00 90 00 44 [09:59:48]RAPDU: 90 00 [09:59:48]wFMCommunicate OK [09:59:48]wFMCommunicate request_size=4 [09:59:48]MH_SAM_APDU [09:59:48]CAPDU: 80 0D 03 02 [09:59:48]Write to MH i2c: E2 08 00 64 6D 80 0D 03 02 00 00 00 00 4C [09:59:48]Write i2c OK [09:59:48]MH_I2C_Read... [09:59:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:59:48]Read from MH i2c: E2 [09:59:48]MH_I2C_Read... [09:59:48]Read from MH i2c: E2 0B 00 [09:59:48]MH_I2C_Read... [09:59:48]Read from MH i2c: E2 0B 00 64 6D 00 92 B3 7C EE B2 CF 4B 4C 90 00 14 [09:59:48]RAPDU: 92 B3 7C EE B2 CF 4B 4C 90 00 [09:59:48]wFMCommunicate OK [09:59:48]SAM_PROTO_SignData done [09:59:48]FM_MakeSignedData done [09:59:48]CreateOFDProtocolMessage [09:59:48]wFMCommunicate request_size=4 [09:59:48]MH_SAM_APDU [09:59:48]CAPDU: 80 11 00 00 [09:59:48]Write to MH i2c: E2 08 00 65 6D 80 11 00 00 00 00 00 00 4C [09:59:48]Write i2c OK [09:59:48]MH_I2C_Read... [09:59:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:59:48]Read from MH i2c: E2 [09:59:48]MH_I2C_Read... [09:59:48]Read from MH i2c: E2 17 00 [09:59:48]MH_I2C_Read... [09:59:48]Read from MH i2c: E2 17 00 65 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 9B [09:59:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:59:48]wFMCommunicate OK [09:59:48]CreateOFDProtocolMessage done [09:59:48]OFDSenderStorePacket 28624 [09:59:48]StoreOFDPacket docnum=28624 [09:59:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 FA 5A 07 01 F7 6F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 2A 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 87 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 49 00 00 00 F4 03 04 00 1A 06 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D0 6F 00 00 35 04 06 00 42 13 23 B2 66 C6 92 B3 7C EE B2 CF 4B 4C [09:59:48]CheckFolder [09:59:48]dirname=/storage/ofd_packets [09:59:48]CheckFolder done [09:59:48]ProducePacketName [09:59:48]name=ofd_packets/00028624 [09:59:48]NVStorageSaveData ofd_packets/00028624 [09:59:48]File name is /storage/ofd_packets/00028624 [09:59:48]Write 301 bytes [09:59:48]NVStorageSaveData done [09:59:48]OFDSenderStorePacket done [09:59:48]KKMCreateOFDPacket done [09:59:48]NVStorageSaveData kkm_last_timestamp [09:59:48]File name is /storage/kkm_last_timestamp [09:59:48]Write 4 bytes [09:59:48]NVStorageSaveData done [09:59:48]ExternCall_PrintAddStr [09:59:48]wPrintStart [09:59:48]Write to MH i2c: 01 00 00 66 6D D3 [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 66 6D 00 00 00 00 00 FF 0F E8 [09:59:48]RasterBufferAndPrint [09:59:48]line Счет N : (1)346944 [09:59:48]line ИНН: 02508201610067 [09:59:48]line Контрольно-Кассовый Чек [09:59:48]line ПРОДАЖА [09:59:48]line ТРК (МРК, ГНК) : 42 [09:59:48]line Товар: 2710124130 [09:59:48]line Аи-92-К-5 [09:59:48]line 10.890 * 64.30 [09:59:48]line = 700.23 [09:59:48]line НДС 12% НСП 1% [09:59:48]line > о реализуемом товаре [09:59:48]line ОКРУГЛЕНИЕ: -0.23 [09:59:48]line ИТОГО: 700.00 [09:59:48]line Внесено: 700.00 [09:59:48]line СДАЧА: 0.00 [09:59:48]line НСП 1% : 6.20 [09:59:48]line НДС 12% : 74.36 [09:59:48]line Наличными: 700.00 [09:59:48]line Безнал.: 0.00 [09:59:48]line Место: АЗС № 108 "Партнер Нефть" [09:59:48]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [09:59:48]line СНО: Общий режим [09:59:48]line Чек 73 12.04.2024 09:59 [09:59:48]line Смена: 113 ФФД: 1.0 [09:59:48]line ЗНМ: 0300000027 [09:59:48]line РНМ: 0000138879044617 [09:59:48]line Версия ККМ: 001 [09:59:48]line ФМ: 0000000000963154 [09:59:48]line ФД: 28624 [09:59:48]line ФПД: 72649970706118 [09:59:48]line 1/tax-web-control/client/api/v1/ticket?date=20240412T095954&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28624&fm=72649970706118&tin=02508201610067®Number=0000138879044617&sum=70000 [09:59:48]OFD Sender: Processing packet 28624 [packets to send 8, broken 7] [09:59:48]ProducePacketName [09:59:48]name=ofd_packets/00028624 [09:59:48]OFD Sender: To server: pG, [09:59:48]CommunicateWithHost lk.salyk.kg:30040 [09:59:48]ConnectInit lk.salyk.kg [09:59:48]written 0, free lines is 4095 [09:59:48]Connected sock=10 [09:59:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 FA 5A 07 01 F7 6F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 2A 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 87 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 49 00 00 00 F4 03 04 00 1A 06 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D0 6F 00 00 35 04 06 00 42 13 23 B2 66 C6 92 B3 7C EE B2 CF 4B 4C [09:59:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 78 E4 47 00 B9 5A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D0 6F 00 00 F4 03 04 00 C4 B0 18 66 B6 04 01 00 00 F6 E2 26 D5 8D 26 69 9D [09:59:48]CommunicateWithHost err = 0 [09:59:48]CheckOFDResponse [09:59:48]1017 (14) - 77093643461234 [09:59:48]1041 (16) - 0000000000963154 [09:59:48]1040 (4) - 28624 [09:59:48]1012 (4) - 12.04.2024 03:55 [09:59:48]1206 (1) - 0 [09:59:48]OFD Sender: Remove packet 28624 [09:59:48]ProducePacketName [09:59:48]name=ofd_packets/00028624 [09:59:48]NVStorageDeleteData [09:59:48]Write to MH i2c: 01 00 00 90 6D FD [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 90 6D 00 00 00 00 00 CC 0C DC [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 3280 [09:59:48]MH_Cut [09:59:48]Write to MH i2c: D1 01 00 97 6D 01 D6 [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 97 6D 00 D5 [09:59:48]Write to MH i2c: 01 00 00 98 6D 05 [09:59:48]Write i2c OK [09:59:48]MH_I2C_Read... [09:59:49]OFD Sender: No OFD packet to send [09:59:49]*** Cut start [09:59:49]*** Partial cut [09:59:49]*** CUTSNS_PIN = 1 [09:59:49]*** CUTSNS_PIN = 0 [09:59:50]*** Brake cut motor [09:59:50]Read from MH i2c: 01 [09:59:50]MH_I2C_Read... [09:59:50]*** Stop cut motor [09:59:50]*** Cut end [09:59:50]Read from MH i2c: 01 07 00 [09:59:50]MH_I2C_Read... [09:59:50]Read from MH i2c: 01 07 00 98 6D 00 00 00 00 00 FF 0F 1A [09:59:50]process_action close_receipt done [09:59:50]requested_data is exist [09:59:50]produce_requested_data [09:59:50]requested_item fm.sn is exist - process it [09:59:50]wFMCommunicate request_size=4 [09:59:50]MH_SAM_APDU [09:59:50]CAPDU: 80 11 00 00 [09:59:50]Write to MH i2c: E2 08 00 99 6D 80 11 00 00 00 00 00 00 80 [09:59:50]Write i2c OK [09:59:50]MH_I2C_Read... [09:59:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:59:50]Read from MH i2c: E2 [09:59:50]MH_I2C_Read... [09:59:50]Read from MH i2c: E2 17 00 [09:59:50]MH_I2C_Read... [09:59:50]Read from MH i2c: E2 17 00 99 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 CF [09:59:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:59:50]wFMCommunicate OK [09:59:50]requested_item fd.num is exist - process it [09:59:50]SAM_PROTO_GetFieldsCounters [09:59:50]wFMCommunicate request_size=4 [09:59:50]MH_SAM_APDU [09:59:50]CAPDU: 80 13 00 00 [09:59:50]Write to MH i2c: E2 08 00 9A 6D 80 13 00 00 00 00 00 00 83 [09:59:50]Write i2c OK [09:59:50]MH_I2C_Read... [09:59:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:59:50]Read from MH i2c: E2 [09:59:50]MH_I2C_Read... [09:59:50]Read from MH i2c: E2 62 00 [09:59:50]MH_I2C_Read... [09:59:50]Read from MH i2c: E2 62 00 9A 6D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 D0 6F 00 00 0E 04 04 00 71 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 4C [09:59:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 D0 6F 00 00 0E 04 04 00 71 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 [09:59:50]wFMCommunicate OK [09:59:50]SAM_PROTO_GetFieldsCounters done [09:59:50]requested_item shift.num is exist - process it [09:59:50]requested_item shift.opened is exist - process it [09:59:50]req_shift_opened [09:59:50]FM_GetShiftState [09:59:50]SAM_PROTO_GetShiftState [09:59:50]wFMCommunicate request_size=4 [09:59:50]MH_SAM_APDU [09:59:50]CAPDU: 80 13 01 00 [09:59:50]Write to MH i2c: E2 08 00 9B 6D 80 13 01 00 00 00 00 00 85 [09:59:50]Write i2c OK [09:59:50]MH_I2C_Read... [09:59:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:59:50]Read from MH i2c: E2 [09:59:50]MH_I2C_Read... [09:59:50]Read from MH i2c: E2 0E 00 [09:59:50]MH_I2C_Read... [09:59:50]Read from MH i2c: E2 0E 00 9B 6D 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 96 [09:59:50]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [09:59:50]wFMCommunicate OK [09:59:50]SAM_PROTO_GetShiftState done [09:59:50]FM_GetShiftState done [09:59:50]req_shift_opened done [09:59:50]requested_item shift.open_date is exist - process it [09:59:50]req_shift_open_date [09:59:50]req_shift_open_date done [09:59:50]produce_requested_data done [09:59:50]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28624,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [09:59:50]process_action_free close_receipt [09:59:50]json_value_free [09:59:50]json_value_free done [09:59:50]process_json_proto returns [09:59:50]Send response to host [09:59:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28624,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [09:59:50]free response buf [09:59:50]execute_script done [09:59:50]execute_script returns [09:59:50]free content buf [09:59:50]Sock 7.Close socket [09:59:50]Sock 7.Thread stoped [09:59:54]OFD Sender: No OFD packet to send [09:59:54]int [09:59:54]Write to MH i2c: 01 00 00 9C 6D 09 [09:59:54]*** FLAG_PRN_KEY set [09:59:54]Write i2c OK [09:59:54]MH_I2C_Read... [09:59:54]Read from MH i2c: 01 [09:59:54]MH_I2C_Read... [09:59:54]Read from MH i2c: 01 07 00 [09:59:54]MH_I2C_Read... [09:59:54]Read from MH i2c: 01 07 00 9C 6D 00 08 00 00 00 FF 0F 26 [09:59:54]state=0 [09:59:54]Key pressed [09:59:54]Feed [09:59:54]Write to MH i2c: D8 00 00 9D 6D E1 [09:59:54]Write i2c OK [09:59:54]MH_I2C_Read... [09:59:54]Read from MH i2c: D8 [09:59:54]MH_I2C_Read... [09:59:54]Read from MH i2c: D8 01 00 [09:59:54]MH_I2C_Read... [09:59:54]Read from MH i2c: D8 01 00 9D 6D 00 E2 [09:59:54]int [09:59:54]Write to MH i2c: 01 00 00 9E 6D 0B [09:59:54]Write i2c OK [09:59:54]MH_I2C_Read... [09:59:54]Read from MH i2c: 01 [09:59:54]MH_I2C_Read... [09:59:54]Read from MH i2c: 01 07 00 [09:59:54]MH_I2C_Read... [09:59:54]Read from MH i2c: 01 07 00 9E 6D 00 48 00 00 00 3C 00 96 [09:59:54]state=2 [09:59:54]Key pressed [09:59:55]int [09:59:55]Write to MH i2c: 01 00 00 9F 6D 0C [09:59:55]*** FLAG_PRN_KEY reset [09:59:55]Write i2c OK [09:59:55]MH_I2C_Read... [09:59:55]Read from MH i2c: 01 [09:59:55]MH_I2C_Read... [09:59:55]Read from MH i2c: 01 07 00 [09:59:55]MH_I2C_Read... [09:59:55]Read from MH i2c: 01 07 00 9F 6D 00 00 00 00 00 FD 0F 1F [09:59:55]state=2 [09:59:55]Stop feed [09:59:55]int [09:59:55]Write to MH i2c: 01 00 00 A0 6D 0D [09:59:55]*** FLAG_PRN_KEY set [09:59:55]Write i2c OK [09:59:55]MH_I2C_Read... [09:59:55]Read from MH i2c: 01 [09:59:55]MH_I2C_Read... [09:59:55]Read from MH i2c: 01 07 00 [09:59:55]MH_I2C_Read... [09:59:55]Read from MH i2c: 01 07 00 A0 6D 00 08 00 00 00 FF 0F 2A [09:59:55]state=0 [09:59:55]Key pressed [09:59:55]Feed [09:59:55]Write to MH i2c: D8 00 00 A1 6D E5 [09:59:55]Write i2c OK [09:59:55]MH_I2C_Read... [09:59:55]Read from MH i2c: D8 [09:59:55]MH_I2C_Read... [09:59:55]Read from MH i2c: D8 01 00 [09:59:55]MH_I2C_Read... [09:59:55]Read from MH i2c: D8 01 00 A1 6D 00 E6 [09:59:55]int [09:59:55]Write to MH i2c: 01 00 00 A2 6D 0F [09:59:55]Write i2c OK [09:59:55]MH_I2C_Read... [09:59:55]Read from MH i2c: 01 [09:59:55]MH_I2C_Read... [09:59:55]Read from MH i2c: 01 07 00 [09:59:55]MH_I2C_Read... [09:59:55]Read from MH i2c: 01 07 00 A2 6D 00 48 00 00 00 3C 00 9A [09:59:55]state=2 [09:59:55]Key pressed [09:59:55]int [09:59:55]Write to MH i2c: 01 00 00 A3 6D 10 [09:59:55]*** FLAG_PRN_KEY reset [09:59:55]Write i2c OK [09:59:55]MH_I2C_Read... [09:59:55]Read from MH i2c: 01 [09:59:55]MH_I2C_Read... [09:59:55]Read from MH i2c: 01 07 00 [09:59:55]MH_I2C_Read... [09:59:55]Read from MH i2c: 01 07 00 A3 6D 00 00 00 00 00 F5 0F 1B [09:59:55]state=2 [09:59:55]Stop feed [09:59:55]int [09:59:55]Write to MH i2c: 01 00 00 A4 6D 11 [09:59:55]*** FLAG_PRN_PAP1 set [09:59:55]Write i2c OK [09:59:55]MH_I2C_Read... [09:59:55]Read from MH i2c: 01 [09:59:55]MH_I2C_Read... [09:59:55]Read from MH i2c: 01 07 00 [09:59:55]MH_I2C_Read... [09:59:55]Read from MH i2c: 01 07 00 A4 6D 00 01 00 00 00 FF 0F 27 [09:59:55]state=0 [09:59:55]No paper [09:59:56]int [09:59:56]Write to MH i2c: 01 00 00 A5 6D 12 [09:59:56]*** FLAG_PRN_PAP2 set [09:59:56]Write i2c OK [09:59:56]MH_I2C_Read... [09:59:56]Read from MH i2c: 01 [09:59:56]MH_I2C_Read... [09:59:56]Read from MH i2c: 01 07 00 [09:59:56]MH_I2C_Read... [09:59:56]Read from MH i2c: 01 07 00 A5 6D 00 03 00 00 00 FF 0F 2A [09:59:56]state=0 [09:59:56]No paper [09:59:56]Cover opened [09:59:57]int [09:59:57]Write to MH i2c: 01 00 00 A6 6D 13 [09:59:57]*** FLAG_PRN_PAP2 reset [09:59:57]Write i2c OK [09:59:57]MH_I2C_Read... [09:59:57]Read from MH i2c: 01 [09:59:57]MH_I2C_Read... [09:59:57]Read from MH i2c: 01 07 00 [09:59:57]MH_I2C_Read... [09:59:57]Read from MH i2c: 01 07 00 A6 6D 00 01 00 00 00 FF 0F 29 [09:59:57]state=3 [09:59:57]No paper [09:59:57]Cover closed [09:59:57]int [09:59:57]Write to MH i2c: 01 00 00 A7 6D 14 [09:59:57]*** FLAG_PRN_PAP1 reset [09:59:57]Write i2c OK [09:59:57]MH_I2C_Read... [09:59:57]Read from MH i2c: 01 [09:59:57]MH_I2C_Read... [09:59:57]Read from MH i2c: 01 07 00 [09:59:57]MH_I2C_Read... [09:59:57]Read from MH i2c: 01 07 00 A7 6D 00 00 00 00 00 FF 0F 29 [09:59:57]state=0 [09:59:59]OFD Sender: No OFD packet to send [10:00:04]OFD Sender: No OFD packet to send [10:00:09]OFD Sender: No OFD packet to send [10:00:13]int [10:00:13]Write to MH i2c: 01 00 00 A8 6D 15 [10:00:13]*** FLAG_PRN_KEY set [10:00:13]Write i2c OK [10:00:13]MH_I2C_Read... [10:00:13]Read from MH i2c: 01 [10:00:13]MH_I2C_Read... [10:00:13]Read from MH i2c: 01 07 00 [10:00:13]MH_I2C_Read... [10:00:13]Read from MH i2c: 01 07 00 A8 6D 00 08 00 00 00 FF 0F 32 [10:00:13]state=0 [10:00:13]Key pressed [10:00:13]Feed [10:00:13]Write to MH i2c: D8 00 00 A9 6D ED [10:00:13]Write i2c OK [10:00:13]MH_I2C_Read... [10:00:13]Read from MH i2c: D8 [10:00:13]MH_I2C_Read... [10:00:13]Read from MH i2c: D8 01 00 [10:00:13]MH_I2C_Read... [10:00:13]Read from MH i2c: D8 01 00 A9 6D 00 EE [10:00:13]int [10:00:13]Write to MH i2c: 01 00 00 AA 6D 17 [10:00:13]Write i2c OK [10:00:13]MH_I2C_Read... [10:00:13]Read from MH i2c: 01 [10:00:13]MH_I2C_Read... [10:00:13]Read from MH i2c: 01 07 00 [10:00:13]MH_I2C_Read... [10:00:13]Read from MH i2c: 01 07 00 AA 6D 00 48 00 00 00 3D 00 A3 [10:00:13]state=2 [10:00:13]Key pressed [10:00:13]int [10:00:13]Write to MH i2c: 01 00 00 AB 6D 18 [10:00:13]*** FLAG_PRN_KEY reset [10:00:13]Write i2c OK [10:00:13]MH_I2C_Read... [10:00:13]Read from MH i2c: 01 [10:00:13]MH_I2C_Read... [10:00:13]Read from MH i2c: 01 07 00 [10:00:13]MH_I2C_Read... [10:00:13]Read from MH i2c: 01 07 00 AB 6D 00 00 00 00 00 F6 0F 24 [10:00:13]state=2 [10:00:13]Stop feed [10:00:14]int [10:00:14]Write to MH i2c: 01 00 00 AC 6D 19 [10:00:14]*** FLAG_PRN_KEY set [10:00:14]Write i2c OK [10:00:14]MH_I2C_Read... [10:00:14]Read from MH i2c: 01 [10:00:14]MH_I2C_Read... [10:00:14]Read from MH i2c: 01 07 00 [10:00:14]MH_I2C_Read... [10:00:14]Read from MH i2c: 01 07 00 AC 6D 00 08 00 00 00 FF 0F 36 [10:00:14]state=0 [10:00:14]Key pressed [10:00:14]Feed [10:00:14]Write to MH i2c: D8 00 00 AD 6D F1 [10:00:14]Write i2c OK [10:00:14]MH_I2C_Read... [10:00:14]Read from MH i2c: D8 [10:00:14]MH_I2C_Read... [10:00:14]Read from MH i2c: D8 01 00 [10:00:14]MH_I2C_Read... [10:00:14]Read from MH i2c: D8 01 00 AD 6D 00 F2 [10:00:14]int [10:00:14]Write to MH i2c: 01 00 00 AE 6D 1B [10:00:14]Write i2c OK [10:00:14]MH_I2C_Read... [10:00:14]Read from MH i2c: 01 [10:00:14]MH_I2C_Read... [10:00:14]Read from MH i2c: 01 07 00 [10:00:14]MH_I2C_Read... [10:00:14]Read from MH i2c: 01 07 00 AE 6D 00 48 00 00 00 3C 00 A6 [10:00:14]state=2 [10:00:14]Key pressed [10:00:14]int [10:00:14]Write to MH i2c: 01 00 00 AF 6D 1C [10:00:14]*** FLAG_PRN_KEY reset [10:00:14]Write i2c OK [10:00:14]MH_I2C_Read... [10:00:14]Read from MH i2c: 01 [10:00:14]MH_I2C_Read... [10:00:14]Read from MH i2c: 01 07 00 [10:00:14]MH_I2C_Read... [10:00:14]Read from MH i2c: 01 07 00 AF 6D 00 00 00 00 00 F6 0F 28 [10:00:14]state=2 [10:00:14]Stop feed [10:00:14]OFD Sender: No OFD packet to send [10:00:14]int [10:00:14]Write to MH i2c: 01 00 00 B0 6D 1D [10:00:14]*** FLAG_PRN_KEY set [10:00:14]Write i2c OK [10:00:14]MH_I2C_Read... [10:00:14]Read from MH i2c: 01 [10:00:14]MH_I2C_Read... [10:00:14]Read from MH i2c: 01 07 00 [10:00:14]MH_I2C_Read... [10:00:14]Read from MH i2c: 01 07 00 B0 6D 00 08 00 00 00 FF 0F 3A [10:00:14]state=0 [10:00:14]Key pressed [10:00:14]Feed [10:00:14]Write to MH i2c: D8 00 00 B1 6D F5 [10:00:14]Write i2c OK [10:00:14]MH_I2C_Read... [10:00:14]Read from MH i2c: D8 [10:00:14]MH_I2C_Read... [10:00:14]Read from MH i2c: D8 01 00 [10:00:14]MH_I2C_Read... [10:00:14]Read from MH i2c: D8 01 00 B1 6D 00 F6 [10:00:14]int [10:00:14]Write to MH i2c: 01 00 00 B2 6D 1F [10:00:14]Write i2c OK [10:00:14]MH_I2C_Read... [10:00:14]Read from MH i2c: 01 [10:00:14]MH_I2C_Read... [10:00:14]Read from MH i2c: 01 07 00 [10:00:14]MH_I2C_Read... [10:00:14]Read from MH i2c: 01 07 00 B2 6D 00 48 00 00 00 3C 00 AA [10:00:14]state=2 [10:00:14]Key pressed [10:00:14]int [10:00:14]Write to MH i2c: 01 00 00 B3 6D 20 [10:00:14]*** FLAG_PRN_KEY reset [10:00:14]Write i2c OK [10:00:14]MH_I2C_Read... [10:00:14]Read from MH i2c: 01 [10:00:14]MH_I2C_Read... [10:00:14]Read from MH i2c: 01 07 00 [10:00:14]MH_I2C_Read... [10:00:14]Read from MH i2c: 01 07 00 B3 6D 00 00 00 00 00 F6 0F 2C [10:00:14]state=2 [10:00:14]Stop feed [10:00:14]int [10:00:14]Write to MH i2c: 01 00 00 B4 6D 21 [10:00:14]*** FLAG_PRN_KEY set [10:00:14]Write i2c OK [10:00:14]MH_I2C_Read... [10:00:14]Read from MH i2c: 01 [10:00:14]MH_I2C_Read... [10:00:14]Read from MH i2c: 01 07 00 [10:00:14]MH_I2C_Read... [10:00:14]Read from MH i2c: 01 07 00 B4 6D 00 08 00 00 00 FF 0F 3E [10:00:14]state=0 [10:00:14]Key pressed [10:00:14]Feed [10:00:14]Write to MH i2c: D8 00 00 B5 6D F9 [10:00:14]Write i2c OK [10:00:14]MH_I2C_Read... [10:00:14]Read from MH i2c: D8 [10:00:14]MH_I2C_Read... [10:00:14]Read from MH i2c: D8 01 00 [10:00:14]MH_I2C_Read... [10:00:14]Read from MH i2c: D8 01 00 B5 6D 00 FA [10:00:14]int [10:00:14]Write to MH i2c: 01 00 00 B6 6D 23 [10:00:14]Write i2c OK [10:00:14]MH_I2C_Read... [10:00:14]Read from MH i2c: 01 [10:00:14]MH_I2C_Read... [10:00:14]Read from MH i2c: 01 07 00 [10:00:14]MH_I2C_Read... [10:00:14]Read from MH i2c: 01 07 00 B6 6D 00 48 00 00 00 3C 00 AE [10:00:14]state=2 [10:00:14]Key pressed [10:00:14]int [10:00:14]Write to MH i2c: 01 00 00 B7 6D 24 [10:00:14]*** FLAG_PRN_KEY reset [10:00:14]Write i2c OK [10:00:14]MH_I2C_Read... [10:00:14]Read from MH i2c: 01 [10:00:14]MH_I2C_Read... [10:00:14]Read from MH i2c: 01 07 00 [10:00:14]MH_I2C_Read... [10:00:14]Read from MH i2c: 01 07 00 B7 6D 00 00 00 00 00 F5 0F 2F [10:00:14]state=2 [10:00:14]Stop feed [10:00:15]int [10:00:15]Write to MH i2c: 01 00 00 B8 6D 25 [10:00:15]*** FLAG_PRN_KEY set [10:00:15]Write i2c OK [10:00:15]MH_I2C_Read... [10:00:15]Read from MH i2c: 01 [10:00:15]MH_I2C_Read... [10:00:15]Read from MH i2c: 01 07 00 [10:00:15]MH_I2C_Read... [10:00:15]Read from MH i2c: 01 07 00 B8 6D 00 08 00 00 00 FF 0F 42 [10:00:15]state=0 [10:00:15]Key pressed [10:00:15]Feed [10:00:15]Write to MH i2c: D8 00 00 B9 6D FD [10:00:15]Write i2c OK [10:00:15]MH_I2C_Read... [10:00:15]Read from MH i2c: D8 [10:00:15]MH_I2C_Read... [10:00:15]Read from MH i2c: D8 01 00 [10:00:15]MH_I2C_Read... [10:00:15]Read from MH i2c: D8 01 00 B9 6D 00 FE [10:00:15]int [10:00:15]Write to MH i2c: 01 00 00 BA 6D 27 [10:00:15]Write i2c OK [10:00:15]MH_I2C_Read... [10:00:15]Read from MH i2c: 01 [10:00:15]MH_I2C_Read... [10:00:15]Read from MH i2c: 01 07 00 [10:00:15]MH_I2C_Read... [10:00:15]Read from MH i2c: 01 07 00 BA 6D 00 48 00 00 00 3C 00 B2 [10:00:15]state=2 [10:00:15]Key pressed [10:00:15]int [10:00:15]Write to MH i2c: 01 00 00 BB 6D 28 [10:00:15]*** FLAG_PRN_KEY reset [10:00:15]Write i2c OK [10:00:15]MH_I2C_Read... [10:00:15]Read from MH i2c: 01 [10:00:15]MH_I2C_Read... [10:00:15]Read from MH i2c: 01 07 00 [10:00:15]MH_I2C_Read... [10:00:15]Read from MH i2c: 01 07 00 BB 6D 00 00 00 00 00 F6 0F 34 [10:00:15]state=2 [10:00:15]Stop feed [10:00:19]OFD Sender: No OFD packet to send [10:00:24]OFD Sender: No OFD packet to send [10:00:29]OFD Sender: No OFD packet to send [10:00:34]OFD Sender: No OFD packet to send [10:00:39]OFD Sender: No OFD packet to send [10:00:44]OFD Sender: No OFD packet to send [10:00:49]OFD Sender: No OFD packet to send [10:00:54]OFD Sender: No OFD packet to send [10:00:59]OFD Sender: No OFD packet to send [10:01:04]OFD Sender: No OFD packet to send [10:01:09]OFD Sender: No OFD packet to send [10:01:14]OFD Sender: No OFD packet to send [10:01:19]OFD Sender: No OFD packet to send [10:01:24]OFD Sender: No OFD packet to send [10:01:29]OFD Sender: No OFD packet to send [10:01:34]OFD Sender: No OFD packet to send [10:01:34]accept exits with 9 [10:01:34]New connection [10:01:34]New thread 3066641764 created [10:01:34]Thread 3066498404 joined [10:01:34]Waiting for new connection... [10:01:34] Sock 9.Parse request [10:01:34]Sock 9.Check first char [10:01:34]Sock 9.First char is OK [10:01:34]request: POST /json_proto HTTP/1.0 [10:01:34]Method: POST [10:01:34]URL: /json_proto [10:01:34]Method is POST - this is cgi request [10:01:34]url: /json_proto [10:01:34]query_string will be loaded in cgi processing [10:01:34]execute_cgi json_proto POST (null) [10:01:34]execute_cgi path=json_proto method=POST [10:01:34]POST find Content-Length [10:01:34]Host: 172.17.33.3:8080 [10:01:34]Content-Length: 806 [10:01:34]Content-Type: application/json [10:01:34] [10:01:34]POST finish read [10:01:34]Found Content-Length = 806 [10:01:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346942", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 112.080, "sum" : 8114.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 8114.59 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:01:34]execute_script... [10:01: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)346942", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 112.080, "sum" : 8114.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 8114.59 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:01:34]POST & json_proto [10:01:34]process_json_proto [10:01:34]json parsed OK: [10:01:34]protocol is kg_v1.0 [10:01:34]action value=close_receipt [10:01:34]process_action close_receipt [10:01:34]cmd_close_receipt [10:01:34]MH_GetDate [10:01:34]Write to MH i2c: F0 00 00 BC 6D 18 [10:01:34]Write i2c OK [10:01:34]MH_I2C_Read... [10:01:34]Read from MH i2c: F0 [10:01:34]MH_I2C_Read... [10:01:34]Read from MH i2c: F0 09 00 [10:01:34]MH_I2C_Read... [10:01:34]Read from MH i2c: F0 09 00 BC 6D 00 86 06 19 66 23 5B 8F 65 9E [10:01:34]GetLastDocTimeStamp 1712915994 [10:01:34]current date 1712916102 [10:01:34]FM_GetShiftState [10:01:34]SAM_PROTO_GetShiftState [10:01:34]wFMCommunicate request_size=4 [10:01:34]MH_SAM_APDU [10:01:34]CAPDU: 80 13 01 00 [10:01:34]Write to MH i2c: E2 08 00 BD 6D 80 13 01 00 00 00 00 00 A7 [10:01:34]Write i2c OK [10:01:34]MH_I2C_Read... [10:01:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:01:34]Read from MH i2c: E2 [10:01:34]MH_I2C_Read... [10:01:34]Read from MH i2c: E2 0E 00 [10:01:34]MH_I2C_Read... [10:01:34]Read from MH i2c: E2 0E 00 BD 6D 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 B8 [10:01:34]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [10:01:34]wFMCommunicate OK [10:01:34]SAM_PROTO_GetShiftState done [10:01:34]FM_GetShiftState done [10:01:34]opened in 1712881416 [10:01:34]opened+sec_in_day 1712967816 [10:01:34]quantity*price = 811459 [10:01:34]sum+1 = 811460 [10:01:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 8114.59 НСП 1% : 71.81 НДС 12% : 861.73 Наличными: 0.00 Безнал.: 8114.59 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 74 12.04.2024 10:01 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 28625 ФПД: 232900944541835 1/tax-web-control/client/api/v1/ticket?date=20240412T100142&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28625&fm=232900944541835&tin=02508201610067®Number=0000138879044617&sum=811459 [10:01:36]StoreToDocumentArchive [10:01:36]shift 113 fd 28625 [10:01:36]save to /storage/0113/doc_00028625 [10:01:36]save last doc name /storage/0113/doc_00028625 to /storage/kkm_last_doc_name [10:01:36]Write to MH i2c: 01 00 00 CA 6D 37 [10:01:36]save OK [10:01:36]Clear old archive folders... [10:01:36]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:01:36]tlvbuf is 01BB4780 [10:01:36]SAM_PROTO_ClearQueue [10:01:36]wFMCommunicate request_size=4 [10:01:36]MH_SAM_APDU [10:01:36]CAPDU: 80 09 00 00 [10:01:36]Write i2c OK [10:01:36]MH_I2C_Read... [10:01:36]Read from MH i2c: 01 [10:01:36]MH_I2C_Read... [10:01:36]Read from MH i2c: 01 07 00 [10:01:36]MH_I2C_Read... [10:01:36]Read from MH i2c: 01 07 00 CA 6D 00 00 00 00 00 FF 0F 4C [10:01:36]state=0 [10:01:36]Write to MH i2c: E2 08 00 CB 6D 80 09 00 00 00 00 00 00 AA [10:01:36]Write i2c OK [10:01:36]MH_I2C_Read... [10:01:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:01:36]Read from MH i2c: E2 [10:01:36]MH_I2C_Read... [10:01:36]Read from MH i2c: E2 03 00 [10:01:36]MH_I2C_Read... [10:01:36]Read from MH i2c: E2 03 00 CB 6D 00 90 00 AC [10:01:36]RAPDU: 90 00 [10:01:36]wFMCommunicate OK [10:01:36]SAM_PROTO_ClearQueue done [10:01:36]KKMCreateOFDPacket [10:01:36]OFDProtocolAddRootSTLVToBuf [10:01:36]FM_MakeSignedData [10:01:36]FM_MakeSignedData [10:01:36]SAM_PROTO_SignData [10:01:36]wFMCommunicate request_size=4 [10:01:36]MH_SAM_APDU [10:01:36]CAPDU: 80 0D 01 02 [10:01:36]Write to MH i2c: E2 08 00 CC 6D 80 0D 01 02 00 00 00 00 B2 [10:01:36]Write i2c OK [10:01:36]MH_I2C_Read... [10:01:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:01:36]Read from MH i2c: E2 [10:01:36]MH_I2C_Read... [10:01:36]Read from MH i2c: E2 03 00 [10:01:36]MH_I2C_Read... [10:01:36]Read from MH i2c: E2 03 00 CC 6D 00 90 00 AD [10:01:36]RAPDU: 90 00 [10:01:36]wFMCommunicate OK [10:01:36]wFMCommunicate request_size=255 [10:01:36]MH_SAM_APDU [10:01: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 35 FF 03 08 00 03 D0 B5 01 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 C3 61 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C3 61 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 1C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 50 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C3 61 0C 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 86 06 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D1 6F 00 00 35 04 06 00 D3 D2 7A 11 [10:01:36]Write to MH i2c: E2 02 01 CD 6D 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 35 FF 03 08 00 03 D0 B5 01 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 C3 61 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C3 61 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 1C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 50 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C3 61 0C 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 86 06 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D1 6F 00 00 35 04 06 00 D3 D2 7A 11 00 00 F3 [10:01:36]Write i2c OK [10:01:36]MH_I2C_Read... [10:01:36]int [10:01:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:01:36]*** FLAG_PRN_KEY set [10:01:36]Read from MH i2c: E2 [10:01:36]MH_I2C_Read... [10:01:36]Read from MH i2c: E2 03 00 [10:01:36]MH_I2C_Read... [10:01:36]Read from MH i2c: E2 03 00 CD 6D 00 90 00 AE [10:01:36]RAPDU: 90 00 [10:01:36]wFMCommunicate OK [10:01:36]wFMCommunicate request_size=7 [10:01:36]MH_SAM_APDU [10:01:36]CAPDU: 80 0D 02 02 02 38 8B [10:01:36]Write to MH i2c: E2 0A 00 CE 6D 80 0D 02 02 02 00 38 8B 00 00 7C [10:01:36]Write i2c OK [10:01:36]MH_I2C_Read... [10:01:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:01:36]Read from MH i2c: E2 [10:01:36]MH_I2C_Read... [10:01:36]Read from MH i2c: E2 03 00 [10:01:36]MH_I2C_Read... [10:01:36]Read from MH i2c: E2 03 00 CE 6D 00 90 00 AF [10:01:36]RAPDU: 90 00 [10:01:36]wFMCommunicate OK [10:01:36]wFMCommunicate request_size=4 [10:01:36]MH_SAM_APDU [10:01:36]CAPDU: 80 0D 03 02 [10:01:36]Write to MH i2c: E2 08 00 CF 6D 80 0D 03 02 00 00 00 00 B7 [10:01:36]Write i2c OK [10:01:36]MH_I2C_Read... [10:01:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:01:36]Read from MH i2c: E2 [10:01:36]MH_I2C_Read... [10:01:36]Read from MH i2c: E2 0B 00 [10:01:36]MH_I2C_Read... [10:01:36]Read from MH i2c: E2 0B 00 CF 6D 00 D2 BD 4E 6D F1 47 7B B9 90 00 6E [10:01:36]RAPDU: D2 BD 4E 6D F1 47 7B B9 90 00 [10:01:36]wFMCommunicate OK [10:01:36]SAM_PROTO_SignData done [10:01:36]FM_MakeSignedData done [10:01:36]CreateOFDProtocolMessage [10:01:36]wFMCommunicate request_size=4 [10:01:36]MH_SAM_APDU [10:01:36]CAPDU: 80 11 00 00 [10:01:36]Write to MH i2c: E2 08 00 D0 6D 80 11 00 00 00 00 00 00 B7 [10:01:36]Write i2c OK [10:01:36]MH_I2C_Read... [10:01:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:01:36]*** FLAG_PRN_KEY reset [10:01:36]Read from MH i2c: E2 [10:01:36]MH_I2C_Read... [10:01:36]Read from MH i2c: E2 17 00 [10:01:36]MH_I2C_Read... [10:01:36]Read from MH i2c: E2 17 00 D0 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 06 [10:01:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:01:36]wFMCommunicate OK [10:01:36]CreateOFDProtocolMessage done [10:01:36]OFDSenderStorePacket 28625 [10:01:36]StoreOFDPacket docnum=28625 [10:01:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 55 74 04 01 B7 F5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D0 B5 01 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 C3 61 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C3 61 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 1C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 50 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C3 61 0C 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 86 06 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D1 6F 00 00 35 04 06 00 D3 D2 7A 11 38 8B D2 BD 4E 6D F1 47 7B B9 [10:01:36]CheckFolder [10:01:36]dirname=/storage/ofd_packets [10:01:36]CheckFolder done [10:01:36]ProducePacketName [10:01:36]name=ofd_packets/00028625 [10:01:36]NVStorageSaveData ofd_packets/00028625 [10:01:36]File name is /storage/ofd_packets/00028625 [10:01:36]Write 298 bytes [10:01:36]NVStorageSaveData done [10:01:36]OFDSenderStorePacket done [10:01:36]KKMCreateOFDPacket done [10:01:36]NVStorageSaveData kkm_last_timestamp [10:01:36]File name is /storage/kkm_last_timestamp [10:01:36]Write 4 bytes [10:01:36]NVStorageSaveData done [10:01:36]ExternCall_PrintAddStr [10:01:36]wPrintStart [10:01:36]Write to MH i2c: 01 00 00 D1 6D 3E [10:01:36]Write i2c OK [10:01:36]MH_I2C_Read... [10:01:36]Read from MH i2c: 01 [10:01:36]MH_I2C_Read... [10:01:36]Read from MH i2c: 01 07 00 [10:01:36]MH_I2C_Read... [10:01:36]Read from MH i2c: 01 07 00 D1 6D 00 00 00 00 00 FF 0F 53 [10:01:36]RasterBufferAndPrint [10:01:36]line Счет N : (1)346942 [10:01:36]line ИНН: 02508201610067 [10:01:36]line Контрольно-Кассовый Чек [10:01:36]line ПРОДАЖА [10:01:36]line ТРК (МРК, ГНК) : 51 [10:01:36]line Товар: 2710194210 [10:01:36]line ДТ-К-5 [10:01:36]line 112.080 * 72.40 [10:01:36]line = 8114.59 [10:01:36]line НДС 12% НСП 1% [10:01:36]line > о реализуемом товаре [10:01:36]line ИТОГО: 8114.59 [10:01:36]line НСП 1% : 71.81 [10:01:36]line НДС 12% : 861.73 [10:01:36]line Наличными: 0.00 [10:01:36]line Безнал.: 8114.59 [10:01:36]line Место: АЗС № 108 "Партнер Нефть" [10:01:36]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [10:01:36]line СНО: Общий режим [10:01:36]line Чек 74 12.04.2024 10:01 [10:01:36]line Смена: 113 ФФД: 1.0 [10:01:36]line ЗНМ: 0300000027 [10:01:36]line РНМ: 0000138879044617 [10:01:36]line Версия ККМ: 001 [10:01:36]line Платежная система: О! деньги [10:01:36]line ФМ: 0000000000963154 [10:01:36]line ФД: 28625 [10:01:36]line ФПД: 232900944541835 [10:01:36]line 1/tax-web-control/client/api/v1/ticket?date=20240412T100142&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28625&fm=232900944541835&tin=02508201610067®Number=0000138879044617&sum=811459 [10:01:36]written 0, free lines is 4095 [10:01:36]OFD Sender: Processing packet 28625 [packets to send 8, broken 7] [10:01:36]ProducePacketName [10:01:36]name=ofd_packets/00028625 [10:01:36]OFD Sender: To server: pG, [10:01:36]CommunicateWithHost lk.salyk.kg:30040 [10:01:36]ConnectInit lk.salyk.kg [10:01:36]answer for other command [DD] [10:01:36]MH Int Process stopped [10:01:36]answer with wrong packet_num 6DD4 - expected 6DD5 [10:01:36]process_action_free close_receipt [10:01:36]json_value_free [10:01:36]json_value_free done [10:01:36]process_json_proto returns [10:01:36]Send response to host [10:01:36]{"protocol":"kg_v1.0","response":{"error":1039,"error_desc":"CoCPU protocol format"}} [10:01:36]free response buf [10:01:36]execute_script done [10:01:36]execute_script returns [10:01:36]free content buf [10:01:36]Sock 9.Close socket [10:01:36]Sock 9.Thread stoped [10:01:36]Connected sock=5 [10:01:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 55 74 04 01 B7 F5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D0 B5 01 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 C3 61 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C3 61 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 1C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 50 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C3 61 0C 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 86 06 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D1 6F 00 00 35 04 06 00 D3 D2 7A 11 38 8B D2 BD 4E 6D F1 47 7B B9 [10:01:37]*** FLAG_PRN_KEY set [10:01:37]*** FLAG_PRN_KEY reset [10:01:37]*** FLAG_PRN_KEY set [10:01:37]*** FLAG_PRN_KEY reset [10:01:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 1B C5 47 00 DE AA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D1 6F 00 00 F4 03 04 00 30 B1 18 66 B6 04 01 00 00 E2 E3 D4 74 90 06 C7 ED [10:01:37]CommunicateWithHost err = 0 [10:01:37]CheckOFDResponse [10:01:37]1017 (14) - 77093643461234 [10:01:37]1041 (16) - 0000000000963154 [10:01:37]1040 (4) - 28625 [10:01:37]1012 (4) - 12.04.2024 03:57 [10:01:37]1206 (1) - 0 [10:01:37]OFD Sender: Remove packet 28625 [10:01:37]ProducePacketName [10:01:37]name=ofd_packets/00028625 [10:01:37]NVStorageDeleteData [10:01:37]*** FLAG_PRN_KEY set [10:01:37]*** FLAG_PRN_KEY reset [10:01:37]OFD Sender: No OFD packet to send [10:01:37]*** FLAG_PRN_KEY set [10:01:38]*** FLAG_PRN_KEY reset [10:01:38]*** FLAG_PRN_KEY set [10:01:38]*** FLAG_PRN_KEY reset [10:01:38]*** FLAG_PRN_KEY set [10:01:39]*** FLAG_PRN_KEY reset [10:01:42]OFD Sender: No OFD packet to send [10:01:47]OFD Sender: No OFD packet to send [10:01:52]OFD Sender: No OFD packet to send [10:01:53]*** FLAG_PRN_PAP1 set [10:01:53]*** FLAG_PRN_PAP2 set [10:01:54]*** FLAG_PRN_PAP2 reset [10:01:54]*** FLAG_PRN_PAP1 reset [10:01:57]accept exits with 7 [10:01:57]New connection [10:01:57]New thread 3066498404 created [10:01:57]Thread 3066641764 joined [10:01:57]Waiting for new connection... [10:01:57] Sock 7.Parse request [10:01:57]Sock 7.Check first char [10:01:57]Sock 7.First char is OK [10:01:57]request: POST /json_proto HTTP/1.0 [10:01:57]Method: POST [10:01:57]URL: /json_proto [10:01:57]Method is POST - this is cgi request [10:01:57]url: /json_proto [10:01:57]query_string will be loaded in cgi processing [10:01:57]execute_cgi json_proto POST (null) [10:01:57]execute_cgi path=json_proto method=POST [10:01:57]POST find Content-Length [10:01:57]Host: 172.17.33.3:8080 [10:01:57]Content-Length: 215 [10:01:57]Content-Type: application/json [10:01:57] [10:01:57]POST finish read [10:01:57]Found Content-Length = 215 [10:01:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:01:57]execute_script... [10:01:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:01:57]POST & json_proto [10:01:57]process_json_proto [10:01:57]json parsed OK: [10:01:57]protocol is kg_v1.0 [10:01:57]action value=get_value [10:01:57]process_action get_value [10:01:57]cmd_get_value [10:01:57]process_action get_value done [10:01:57]requested_data is exist [10:01:57]produce_requested_data [10:01:57]requested_item kkm.sn is exist - process it [10:01:57]requested_item kkm.ver is exist - process it [10:01:57]requested_item fm.sn is exist - process it [10:01:57]wFMCommunicate request_size=4 [10:01:57]MH_SAM_APDU [10:01:57]CAPDU: 80 11 00 00 [10:01:57]Write to MH i2c: E2 08 00 D6 6D 80 11 00 00 00 00 00 00 BD [10:01:57]Write i2c OK [10:01:57]MH_I2C_Read... [10:01:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:01:57]Read from MH i2c: E2 [10:01:57]MH_I2C_Read... [10:01:57]Read from MH i2c: E2 17 00 [10:01:57]MH_I2C_Read... [10:01:57]Read from MH i2c: E2 17 00 D6 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 0C [10:01:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:01:57]wFMCommunicate OK [10:01:57]requested_item fd.num is exist - process it [10:01:57]SAM_PROTO_GetFieldsCounters [10:01:57]wFMCommunicate request_size=4 [10:01:57]MH_SAM_APDU [10:01:57]CAPDU: 80 13 00 00 [10:01:57]Write to MH i2c: E2 08 00 D7 6D 80 13 00 00 00 00 00 00 C0 [10:01:57]Write i2c OK [10:01:57]MH_I2C_Read... [10:01:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:01:57]Read from MH i2c: E2 [10:01:57]MH_I2C_Read... [10:01:57]Read from MH i2c: E2 62 00 [10:01:57]MH_I2C_Read... [10:01:57]Read from MH i2c: E2 62 00 D7 6D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 D1 6F 00 00 0E 04 04 00 71 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 8D [10:01:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 D1 6F 00 00 0E 04 04 00 71 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 [10:01:57]wFMCommunicate OK [10:01:57]SAM_PROTO_GetFieldsCounters done [10:01:57]requested_item shift.num is exist - process it [10:01:57]requested_item shift.opened is exist - process it [10:01:57]req_shift_opened [10:01:57]FM_GetShiftState [10:01:57]SAM_PROTO_GetShiftState [10:01:57]wFMCommunicate request_size=4 [10:01:57]MH_SAM_APDU [10:01:57]CAPDU: 80 13 01 00 [10:01:57]Write to MH i2c: E2 08 00 D8 6D 80 13 01 00 00 00 00 00 C2 [10:01:57]Write i2c OK [10:01:57]MH_I2C_Read... [10:01:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:01:57]Read from MH i2c: E2 [10:01:57]MH_I2C_Read... [10:01:57]Read from MH i2c: E2 0E 00 [10:01:57]MH_I2C_Read... [10:01:57]Read from MH i2c: E2 0E 00 D8 6D 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 D3 [10:01:57]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [10:01:57]wFMCommunicate OK [10:01:57]SAM_PROTO_GetShiftState done [10:01:57]FM_GetShiftState done [10:01:57]req_shift_opened done [10:01:57]requested_item shift.open_date is exist - process it [10:01:57]req_shift_open_date [10:01:57]req_shift_open_date done [10:01:57]produce_requested_data done [10:01:57]produce_requested_data return {"kkm.sn":"0300000027","kkm.ver":"001","fm.sn":"0000000000963154","fd.num":28625,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [10:01:57]process_action_free get_value [10:01:57]json_value_free [10:01:57]json_value_free done [10:01:57]process_json_proto returns [10:01:57]Send response to host [10:01:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000027","kkm.ver":"001","fm.sn":"0000000000963154","fd.num":28625,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [10:01:57]free response buf [10:01:57]execute_script done [10:01:57]execute_script returns [10:01:57]free content buf [10:01:57]Sock 7.Close socket [10:01:57]Sock 7.Thread stoped [10:01:57]accept exits with 5 [10:01:57]New connection [10:01:57]New thread 3066641764 created [10:01:57]Thread 3066498404 joined [10:01:57]Waiting for new connection... [10:01:57] Sock 5.Parse request [10:01:57]Sock 5.Check first char [10:01:57]Sock 5.First char is OK [10:01:57]request: POST /json_proto HTTP/1.0 [10:01:57]Method: POST [10:01:57]URL: /json_proto [10:01:57]Method is POST - this is cgi request [10:01:57]url: /json_proto [10:01:57]query_string will be loaded in cgi processing [10:01:57]execute_cgi json_proto POST (null) [10:01:57]execute_cgi path=json_proto method=POST [10:01:57]POST find Content-Length [10:01:57]Host: 172.17.33.3:8080 [10:01:57]Content-Length: 331 [10:01:57]Content-Type: application/json [10:01:57] [10:01:57]POST finish read [10:01:57]Found Content-Length = 331 [10:01:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [10:01:57]execute_script... [10:01:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [10:01:57]POST & json_proto [10:01:57]process_json_proto [10:01:57]json parsed OK: [10:01:57]protocol is kg_v1.0 [10:01:57]action value=get_value [10:01:57]process_action get_value [10:01:57]cmd_get_value [10:01:57]process_action get_value done [10:01:57]requested_data is exist [10:01:57]produce_requested_data [10:01:57]requested_item fm.sale.total is exist - process it [10:01:57]SAM_PROTO_GetFMData [10:01:57]wFMCommunicate request_size=4 [10:01:57]MH_SAM_APDU [10:01:57]CAPDU: 80 13 03 00 [10:01:57]Write to MH i2c: E2 08 00 D9 6D 80 13 03 00 00 00 00 00 C5 [10:01:57]OFD Sender: No OFD packet to send [10:01:57]Write i2c OK [10:01:57]MH_I2C_Read... [10:01:58]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [10:01:58]Read from MH i2c: E2 [10:01:58]MH_I2C_Read... [10:01:58]Read from MH i2c: E2 FD 00 [10:01:58]MH_I2C_Read... [10:01:58]Read from MH i2c: E2 FD 00 D9 6D 00 C3 04 85 04 BF 04 6E 04 04 00 EF 6E 00 00 69 04 A1 00 6F 04 04 00 98 6B 00 00 B1 04 04 00 A7 DC DB AE 70 04 04 00 1C 93 E0 6F 72 04 04 00 8B 49 FB 3E 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 DE 9E 92 12 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 0E 2F 8C 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 9C 00 6F 04 04 00 57 03 00 00 B1 04 04 00 48 D4 7C 0C 70 04 04 00 48 D4 7C 0C 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 2B 86 53 01 EF 03 09 00 F6 90 00 DF [10:01:58]RAPDU: C3 04 85 04 BF 04 6E 04 04 00 EF 6E 00 00 69 04 A1 00 6F 04 04 00 98 6B 00 00 B1 04 04 00 A7 DC DB AE 70 04 04 00 1C 93 E0 6F 72 04 04 00 8B 49 FB 3E 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 DE 9E 92 12 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 0E 2F 8C 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 9C 00 6F 04 04 00 57 03 00 00 B1 04 04 00 48 D4 7C 0C 70 04 04 00 48 D4 7C 0C 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 2B 86 53 01 EF 03 09 00 F6 90 00 [10:01:58]wFMCommunicate OK [10:01:58]wFMCommunicate request_size=4 [10:01:58]MH_SAM_APDU [10:01:58]CAPDU: 80 17 00 00 [10:01:58]Write to MH i2c: E2 08 00 DA 6D 80 17 00 00 00 00 00 00 C7 [10:01:58]Write i2c OK [10:01:58]MH_I2C_Read... [10:01:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:01:58]Read from MH i2c: E2 [10:01:58]MH_I2C_Read... [10:01:58]Read from MH i2c: E2 FD 00 [10:01:58]MH_I2C_Read... [10:01:58]Read from MH i2c: E2 FD 00 DA 6D 00 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 BF 4A 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 AC [10:01:58]RAPDU: 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 BF 4A 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [10:01:58]wFMCommunicate OK [10:01:58]wFMCommunicate request_size=4 [10:01:58]MH_SAM_APDU [10:01:58]CAPDU: 80 17 00 00 [10:01:58]Write to MH i2c: E2 08 00 DB 6D 80 17 00 00 00 00 00 00 C8 [10:01:58]Write i2c OK [10:01:58]MH_I2C_Read... [10:01:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:01:58]Read from MH i2c: E2 [10:01:58]MH_I2C_Read... [10:01:58]Read from MH i2c: E2 FD 00 [10:01:58]MH_I2C_Read... [10:01:58]Read from MH i2c: E2 FD 00 DB 6D 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 E6 [10:01:58]RAPDU: 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [10:01:58]wFMCommunicate OK [10:01:58]wFMCommunicate request_size=4 [10:01:58]MH_SAM_APDU [10:01:58]CAPDU: 80 17 00 00 [10:01:58]Write to MH i2c: E2 08 00 DC 6D 80 17 00 00 00 00 00 00 C9 [10:01:58]Write i2c OK [10:01:58]MH_I2C_Read... [10:01:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:01:59]Read from MH i2c: E2 [10:01:59]MH_I2C_Read... [10:01:59]Read from MH i2c: E2 FD 00 [10:01:59]MH_I2C_Read... [10:01:59]Read from MH i2c: E2 FD 00 DC 6D 00 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 3B [10:01:59]RAPDU: 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [10:01:59]wFMCommunicate OK [10:01:59]wFMCommunicate request_size=4 [10:01:59]MH_SAM_APDU [10:01:59]CAPDU: 80 17 00 00 [10:01:59]Write to MH i2c: E2 08 00 DD 6D 80 17 00 00 00 00 00 00 CA [10:01:59]Write i2c OK [10:01:59]MH_I2C_Read... [10:01:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 221! [10:01:59]Read from MH i2c: E2 [10:01:59]MH_I2C_Read... [10:01:59]Read from MH i2c: E2 E0 00 [10:01:59]MH_I2C_Read... [10:01:59]Read from MH i2c: E2 E0 00 DD 6D 00 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 B4 [10:01:59]RAPDU: 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [10:01:59]wFMCommunicate OK [10:01:59]SAM_PROTO_GetFMData done [10:01:59]requested_item fm.sale_refund.total is exist - process it [10:01:59]requested_item fm.buy.total is exist - process it [10:01:59]requested_item shift.sale.total is exist - process it [10:01:59]SAM_PROTO_GetShiftData [10:01:59]wFMCommunicate request_size=4 [10:01:59]MH_SAM_APDU [10:01:59]CAPDU: 80 13 02 00 [10:01:59]Write to MH i2c: E2 08 00 DE 6D 80 13 02 00 00 00 00 00 C9 [10:01:59]Write i2c OK [10:01:59]MH_I2C_Read... [10:01:59]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [10:01:59]Read from MH i2c: E2 [10:01:59]MH_I2C_Read... [10:01:59]Read from MH i2c: E2 FD 00 [10:01:59]MH_I2C_Read... [10:01:59]Read from MH i2c: E2 FD 00 DE 6D 00 B9 04 AA 04 B5 04 6E 04 04 00 4A 00 00 00 69 04 9C 00 6F 04 04 00 49 00 00 00 B1 04 03 00 84 D1 7E 70 04 03 00 9C 71 51 72 04 03 00 E8 5F 2D 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 86 78 0D 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 59 1F 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 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 70 50 03 70 04 03 00 70 50 03 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 19 5A EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 74 [10:01:59]RAPDU: B9 04 AA 04 B5 04 6E 04 04 00 4A 00 00 00 69 04 9C 00 6F 04 04 00 49 00 00 00 B1 04 03 00 84 D1 7E 70 04 03 00 9C 71 51 72 04 03 00 E8 5F 2D 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 86 78 0D 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 59 1F 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 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 70 50 03 70 04 03 00 70 50 03 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 19 5A EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [10:01:59]wFMCommunicate OK [10:01:59]wFMCommunicate request_size=4 [10:01:59]MH_SAM_APDU [10:01:59]CAPDU: 80 17 00 00 [10:01:59]Write to MH i2c: E2 08 00 DF 6D 80 17 00 00 00 00 00 00 CC [10:01:59]Write i2c OK [10:01:59]MH_I2C_Read... [10:02:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:02:00]Read from MH i2c: E2 [10:02:00]MH_I2C_Read... [10:02:00]Read from MH i2c: E2 FD 00 [10:02:00]MH_I2C_Read... [10:02:00]Read from MH i2c: E2 FD 00 DF 6D 00 03 0B 00 F6 03 01 00 01 F7 03 02 00 82 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 14 [10:02:00]RAPDU: 03 0B 00 F6 03 01 00 01 F7 03 02 00 82 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [10:02:00]wFMCommunicate OK [10:02:00]wFMCommunicate request_size=4 [10:02:00]MH_SAM_APDU [10:02:00]CAPDU: 80 17 00 00 [10:02:00]Write to MH i2c: E2 08 00 E0 6D 80 17 00 00 00 00 00 00 CD [10:02:00]Write i2c OK [10:02:00]MH_I2C_Read... [10:02:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:02:00]Read from MH i2c: E2 [10:02:00]MH_I2C_Read... [10:02:00]Read from MH i2c: E2 FD 00 [10:02:00]MH_I2C_Read... [10:02:00]Read from MH i2c: E2 FD 00 E0 6D 00 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 F5 [10:02:00]RAPDU: 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [10:02:00]wFMCommunicate OK [10:02:00]wFMCommunicate request_size=4 [10:02:00]MH_SAM_APDU [10:02:00]CAPDU: 80 17 00 00 [10:02:00]Write to MH i2c: E2 08 00 E1 6D 80 17 00 00 00 00 00 00 CE [10:02:00]Write i2c OK [10:02:00]MH_I2C_Read... [10:02:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:02:00]Read from MH i2c: E2 [10:02:00]MH_I2C_Read... [10:02:00]Read from MH i2c: E2 FD 00 [10:02:00]MH_I2C_Read... [10:02:00]Read from MH i2c: E2 FD 00 E1 6D 00 EF 03 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 90 00 46 [10:02:00]RAPDU: EF 03 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 90 00 [10:02:00]wFMCommunicate OK [10:02:00]wFMCommunicate request_size=4 [10:02:00]MH_SAM_APDU [10:02:00]CAPDU: 80 17 00 00 [10:02:00]Write to MH i2c: E2 08 00 E2 6D 80 17 00 00 00 00 00 00 CF [10:02:00]Write i2c OK [10:02:00]MH_I2C_Read... [10:02:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 211! [10:02:00]Read from MH i2c: E2 [10:02:00]MH_I2C_Read... [10:02:00]Read from MH i2c: E2 D6 00 [10:02:00]MH_I2C_Read... [10:02:00]Read from MH i2c: E2 D6 00 E2 6D 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 B1 [10:02:00]RAPDU: 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [10:02:00]wFMCommunicate OK [10:02:00]SAM_PROTO_GetShiftData done [10:02:00]requested_item shift.sale.total_cash is exist - process it [10:02:00]requested_item shift.sale_refund.total is exist - process it [10:02:00]requested_item shift.sale_refund.total_cash is exist - process it [10:02:00]requested_item shift.buy.total is exist - process it [10:02:00]requested_item shift.buy.total_cash is exist - process it [10:02:00]produce_requested_data done [10:02:00]produce_requested_data return {"fm.sale.total":29336444.55,"fm.sale_refund.total":2095074.00,"fm.buy.total":0.00,"shift.sale.total":83111.72,"shift.sale.total_cash":53375.00,"shift.sale_refund.total":2172.00,"shift.sale_refund.total_cash":2172.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [10:02:00]process_action_free get_value [10:02:00]json_value_free [10:02:00]json_value_free done [10:02:00]process_json_proto returns [10:02:00]Send response to host [10:02:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":29336444.55,"fm.sale_refund.total":2095074.00,"fm.buy.total":0.00,"shift.sale.total":83111.72,"shift.sale.total_cash":53375.00,"shift.sale_refund.total":2172.00,"shift.sale_refund.total_cash":2172.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [10:02:00]free response buf [10:02:00]execute_script done [10:02:00]execute_script returns [10:02:00]free content buf [10:02:00]Sock 5.Close socket [10:02:00]Sock 5.Thread stoped [10:02:01]accept exits with 6 [10:02:01]New connection [10:02:01]New thread 3066498404 created [10:02:01]Thread 3066641764 joined [10:02:01]Waiting for new connection... [10:02:01] Sock 6.Parse request [10:02:01]Sock 6.Check first char [10:02:01]Sock 6.First char is OK [10:02:01]request: POST /json_proto HTTP/1.0 [10:02:01]Method: POST [10:02:01]URL: /json_proto [10:02:01]Method is POST - this is cgi request [10:02:01]url: /json_proto [10:02:01]query_string will be loaded in cgi processing [10:02:01]execute_cgi json_proto POST (null) [10:02:01]execute_cgi path=json_proto method=POST [10:02:01]POST find Content-Length [10:02:01]Host: 172.17.33.3:8080 [10:02:01]Content-Length: 144 [10:02:01]Content-Type: application/json [10:02:01] [10:02:01]POST finish read [10:02:01]Found Content-Length = 144 [10:02:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [10:02:01]execute_script... [10:02:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [10:02:01]POST & json_proto [10:02:01]process_json_proto [10:02:01]json parsed OK: [10:02:01]protocol is kg_v1.0 [10:02:01]action value=print_doc [10:02:01]process_action print_doc [10:02:01]ExternCall_PrintAddStr [10:02:01]wPrintStart [10:02:01]Write to MH i2c: 01 00 00 E3 6D 50 [10:02:01]Write i2c OK [10:02:01]MH_I2C_Read... [10:02:01]Read from MH i2c: 01 [10:02:01]MH_I2C_Read... [10:02:01]Read from MH i2c: 01 07 00 [10:02:01]MH_I2C_Read... [10:02:01]Read from MH i2c: 01 07 00 E3 6D 00 00 00 00 00 FF 0F 65 [10:02:01]RasterBufferAndPrint [10:02:01]line Счет N : (1)346942 [10:02:01]line ИНН: 02508201610067 [10:02:01]line Контрольно-Кассовый Чек [10:02:01]line ПРОДАЖА [10:02:01]line ТРК (МРК, ГНК) : 51 [10:02:01]line Товар: 2710194210 [10:02:01]line ДТ-К-5 [10:02:01]line 112.080 * 72.40 [10:02:01]line = 8114.59 [10:02:01]line НДС 12% НСП 1% [10:02:01]line > о реализуемом товаре [10:02:01]line ИТОГО: 8114.59 [10:02:01]line НСП 1% : 71.81 [10:02:01]line НДС 12% : 861.73 [10:02:01]line Наличными: 0.00 [10:02:01]line Безнал.: 8114.59 [10:02:01]line Место: АЗС № 108 "Партнер Нефть" [10:02:01]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [10:02:01]line СНО: Общий режим [10:02:01]line Чек 74 12.04.2024 10:01 [10:02:01]line Смена: 113 ФФД: 1.0 [10:02:01]line ЗНМ: 0300000027 [10:02:01]line РНМ: 0000138879044617 [10:02:01]line Версия ККМ: 001 [10:02:01]line Платежная система: О! деньги [10:02:01]line ФМ: 0000000000963154 [10:02:01]line ФД: 28625 [10:02:01]line ФПД: 232900944541835 [10:02:01]line 1/tax-web-control/client/api/v1/ticket?date=20240412T100142&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28625&fm=232900944541835&tin=02508201610067®Number=0000138879044617&sum=811459 [10:02:01]written 0, free lines is 4095 [10:02:01]Write to MH i2c: 01 00 00 0C 6E 7A [10:02:01]Write i2c OK [10:02:01]MH_I2C_Read... [10:02:01]Read from MH i2c: 01 [10:02:01]MH_I2C_Read... [10:02:01]Read from MH i2c: 01 07 00 [10:02:01]MH_I2C_Read... [10:02:01]Read from MH i2c: 01 07 00 0C 6E 00 00 00 00 00 D4 0C 61 [10:02:01]RasterBufferAndPrint [10:02:01]line [10:02:01]line [10:02:01]line [10:02:01]line [10:02:01]line [10:02:01]written 0, free lines is 3296 [10:02:01]MH_Cut [10:02:01]Write to MH i2c: D1 01 00 13 6E 01 53 [10:02:01]Write i2c OK [10:02:01]MH_I2C_Read... [10:02:01]Read from MH i2c: D1 [10:02:01]MH_I2C_Read... [10:02:01]Read from MH i2c: D1 01 00 [10:02:01]MH_I2C_Read... [10:02:01]Read from MH i2c: D1 01 00 13 6E 00 52 [10:02:01]Write to MH i2c: 01 00 00 14 6E 82 [10:02:01]Write i2c OK [10:02:01]MH_I2C_Read... [10:02:02]*** Cut start [10:02:02]*** Partial cut [10:02:02]*** CUTSNS_PIN = 1 [10:02:02]*** CUTSNS_PIN = 0 [10:02:02]*** Brake cut motor [10:02:02]OFD Sender: No OFD packet to send [10:02:02]Read from MH i2c: 01 [10:02:03]MH_I2C_Read... [10:02:03]*** Stop cut motor [10:02:03]*** Cut end [10:02:03]Read from MH i2c: 01 07 00 [10:02:03]MH_I2C_Read... [10:02:03]Read from MH i2c: 01 07 00 14 6E 00 00 00 00 00 FF 0F 97 [10:02:03]process_action print_doc done [10:02:03]requested_data is exist [10:02:03]produce_requested_data [10:02:03]produce_requested_data return (null) [10:02:03]process_action_free print_doc [10:02:03]json_value_free [10:02:03]json_value_free done [10:02:03]process_json_proto returns [10:02:03]Send response to host [10:02:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK"}} [10:02:03]free response buf [10:02:03]execute_script done [10:02:03]execute_script returns [10:02:03]free content buf [10:02:03]Sock 6.Close socket [10:02:03]Sock 6.Thread stoped [10:02:07]OFD Sender: No OFD packet to send [10:02:11]accept exits with 5 [10:02:11]New connection [10:02:11]New thread 3066641764 created [10:02:11]Thread 3066498404 joined [10:02:11]Waiting for new connection... [10:02:11] Sock 5.Parse request [10:02:11]Sock 5.Check first char [10:02:11]Sock 5.First char is OK [10:02:11]request: POST /json_proto HTTP/1.0 [10:02:11]Method: POST [10:02:11]URL: /json_proto [10:02:11]Method is POST - this is cgi request [10:02:11]url: /json_proto [10:02:11]query_string will be loaded in cgi processing [10:02:11]execute_cgi json_proto POST (null) [10:02:11]execute_cgi path=json_proto method=POST [10:02:11]POST find Content-Length [10:02:11]Host: 172.17.33.3:8080 [10:02:11]Content-Length: 680 [10:02:11]Content-Type: application/json [10:02:11] [10:02:11]POST finish read [10:02:11]Found Content-Length = 680 [10:02:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346946", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 112.080, "sum" : 8114.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 8114.00, "total" : 8114.00, "payments": [ { "type": 0, "sum" : 8114.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:02:11]execute_script... [10:02:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346946", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 112.080, "sum" : 8114.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 8114.00, "total" : 8114.00, "payments": [ { "type": 0, "sum" : 8114.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:02:11]POST & json_proto [10:02:11]process_json_proto [10:02:11]json parsed OK: [10:02:11]protocol is kg_v1.0 [10:02:11]action value=close_receipt [10:02:11]process_action close_receipt [10:02:11]cmd_close_receipt [10:02:11]MH_GetDate [10:02:11]Write to MH i2c: F0 00 00 15 6E 72 [10:02:11]Write i2c OK [10:02:11]MH_I2C_Read... [10:02:11]Read from MH i2c: F0 [10:02:11]MH_I2C_Read... [10:02:11]Read from MH i2c: F0 09 00 [10:02:11]MH_I2C_Read... [10:02:11]Read from MH i2c: F0 09 00 15 6E 00 AB 06 19 66 23 5B 8F 65 1D [10:02:11]GetLastDocTimeStamp 1712916102 [10:02:11]current date 1712916139 [10:02:11]FM_GetShiftState [10:02:11]SAM_PROTO_GetShiftState [10:02:11]wFMCommunicate request_size=4 [10:02:11]MH_SAM_APDU [10:02:11]CAPDU: 80 13 01 00 [10:02:11]Write to MH i2c: E2 08 00 16 6E 80 13 01 00 00 00 00 00 01 [10:02:11]Write i2c OK [10:02:11]MH_I2C_Read... [10:02:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:02:11]Read from MH i2c: E2 [10:02:11]MH_I2C_Read... [10:02:11]Read from MH i2c: E2 0E 00 [10:02:11]MH_I2C_Read... [10:02:11]Read from MH i2c: E2 0E 00 16 6E 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 12 [10:02:11]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [10:02:11]wFMCommunicate OK [10:02:11]SAM_PROTO_GetShiftState done [10:02:11]FM_GetShiftState done [10:02:11]opened in 1712881416 [10:02:11]opened+sec_in_day 1712967816 [10:02:11]quantity*price = 811459 [10:02:11]sum+1 = 811460 [10:02:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 8114.00 Внесено: 8114.00 СДАЧА: 0.00 НСП 1% : 71.81 НДС 12% : 861.73 Наличными: 8114.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 75 12.04.2024 10:02 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28626 ФПД: 200025428264618 1/tax-web-control/client/api/v1/ticket?date=20240412T100219&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28626&fm=200025428264618&tin=02508201610067®Number=0000138879044617&sum=811400 [10:02:12]StoreToDocumentArchive [10:02:12]shift 113 fd 28626 [10:02:12]save to /storage/0113/doc_00028626 [10:02:12]save last doc name /storage/0113/doc_00028626 to /storage/kkm_last_doc_name [10:02:12]save OK [10:02:12]Clear old archive folders... [10:02:12]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:02:12]tlvbuf is 01AA96A0 [10:02:12]SAM_PROTO_ClearQueue [10:02:12]wFMCommunicate request_size=4 [10:02:12]MH_SAM_APDU [10:02:12]CAPDU: 80 09 00 00 [10:02:12]Write to MH i2c: E2 08 00 23 6E 80 09 00 00 00 00 00 00 03 [10:02:12]Write i2c OK [10:02:12]MH_I2C_Read... [10:02:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:02:12]Read from MH i2c: E2 [10:02:12]MH_I2C_Read... [10:02:12]Read from MH i2c: E2 03 00 [10:02:12]MH_I2C_Read... [10:02:12]Read from MH i2c: E2 03 00 23 6E 00 90 00 05 [10:02:12]RAPDU: 90 00 [10:02:12]wFMCommunicate OK [10:02:12]SAM_PROTO_ClearQueue done [10:02:12]KKMCreateOFDPacket [10:02:12]OFDProtocolAddRootSTLVToBuf [10:02:12]FM_MakeSignedData [10:02:12]FM_MakeSignedData [10:02:12]SAM_PROTO_SignData [10:02:12]wFMCommunicate request_size=4 [10:02:12]MH_SAM_APDU [10:02:12]CAPDU: 80 0D 01 02 [10:02:12]Write to MH i2c: E2 08 00 24 6E 80 0D 01 02 00 00 00 00 0B [10:02:12]Write i2c OK [10:02:12]MH_I2C_Read... [10:02:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:02:12]Read from MH i2c: E2 [10:02:12]MH_I2C_Read... [10:02:12]Read from MH i2c: E2 03 00 [10:02:12]MH_I2C_Read... [10:02:12]Read from MH i2c: E2 03 00 24 6E 00 90 00 06 [10:02:12]RAPDU: 90 00 [10:02:12]wFMCommunicate OK [10:02:12]wFMCommunicate request_size=255 [10:02:12]MH_SAM_APDU [10:02:12]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D0 B5 01 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 C3 61 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 61 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 1C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 50 01 00 00 00 07 04 06 00 88 61 0C 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 AB 06 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D2 6F 00 00 35 04 06 00 B5 EC 0C 99 [10:02:12]Write to MH i2c: E2 02 01 25 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 35 FF 03 08 00 03 D0 B5 01 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 C3 61 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 61 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 1C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 50 01 00 00 00 07 04 06 00 88 61 0C 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 AB 06 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D2 6F 00 00 35 04 06 00 B5 EC 0C 99 00 00 13 [10:02:12]Write i2c OK [10:02:12]MH_I2C_Read... [10:02:12]OFD Sender: No OFD packet to send [10:02:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:02:13]Read from MH i2c: E2 [10:02:13]MH_I2C_Read... [10:02:13]Read from MH i2c: E2 03 00 [10:02:13]MH_I2C_Read... [10:02:13]Read from MH i2c: E2 03 00 25 6E 00 90 00 07 [10:02:13]RAPDU: 90 00 [10:02:13]wFMCommunicate OK [10:02:13]wFMCommunicate request_size=7 [10:02:13]MH_SAM_APDU [10:02:13]CAPDU: 80 0D 02 02 02 06 AA [10:02:13]Write to MH i2c: E2 0A 00 26 6E 80 0D 02 02 02 00 06 AA 00 00 C2 [10:02:13]Write i2c OK [10:02:13]MH_I2C_Read... [10:02:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:02:13]Read from MH i2c: E2 [10:02:13]MH_I2C_Read... [10:02:13]Read from MH i2c: E2 03 00 [10:02:13]MH_I2C_Read... [10:02:13]Read from MH i2c: E2 03 00 26 6E 00 90 00 08 [10:02:13]RAPDU: 90 00 [10:02:13]wFMCommunicate OK [10:02:13]wFMCommunicate request_size=4 [10:02:13]MH_SAM_APDU [10:02:13]CAPDU: 80 0D 03 02 [10:02:13]Write to MH i2c: E2 08 00 27 6E 80 0D 03 02 00 00 00 00 10 [10:02:13]Write i2c OK [10:02:13]MH_I2C_Read... [10:02:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:02:13]Read from MH i2c: E2 [10:02:13]MH_I2C_Read... [10:02:13]Read from MH i2c: E2 0B 00 [10:02:13]MH_I2C_Read... [10:02:13]Read from MH i2c: E2 0B 00 27 6E 00 1F 62 5D BE 83 11 9C 27 90 00 04 [10:02:13]RAPDU: 1F 62 5D BE 83 11 9C 27 90 00 [10:02:13]wFMCommunicate OK [10:02:13]SAM_PROTO_SignData done [10:02:13]FM_MakeSignedData done [10:02:13]CreateOFDProtocolMessage [10:02:13]wFMCommunicate request_size=4 [10:02:13]MH_SAM_APDU [10:02:13]CAPDU: 80 11 00 00 [10:02:13]Write to MH i2c: E2 08 00 28 6E 80 11 00 00 00 00 00 00 10 [10:02:13]Write i2c OK [10:02:13]MH_I2C_Read... [10:02:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:02:13]Read from MH i2c: E2 [10:02:13]MH_I2C_Read... [10:02:13]Read from MH i2c: E2 17 00 [10:02:13]MH_I2C_Read... [10:02:13]Read from MH i2c: E2 17 00 28 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 5F [10:02:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:02:13]wFMCommunicate OK [10:02:13]CreateOFDProtocolMessage done [10:02:13]OFDSenderStorePacket 28626 [10:02:13]StoreOFDPacket docnum=28626 [10:02:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 0E 70 04 01 2E 02 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D0 B5 01 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 C3 61 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 61 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 1C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 50 01 00 00 00 07 04 06 00 88 61 0C 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 AB 06 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D2 6F 00 00 35 04 06 00 B5 EC 0C 99 06 AA 1F 62 5D BE 83 11 9C 27 [10:02:13]CheckFolder [10:02:13]dirname=/storage/ofd_packets [10:02:13]CheckFolder done [10:02:13]ProducePacketName [10:02:13]name=ofd_packets/00028626 [10:02:13]NVStorageSaveData ofd_packets/00028626 [10:02:13]File name is /storage/ofd_packets/00028626 [10:02:13]Write 298 bytes [10:02:13]NVStorageSaveData done [10:02:13]OFDSenderStorePacket done [10:02:13]KKMCreateOFDPacket done [10:02:13]NVStorageSaveData kkm_last_timestamp [10:02:13]File name is /storage/kkm_last_timestamp [10:02:13]Write 4 bytes [10:02:13]NVStorageSaveData done [10:02:13]ExternCall_PrintAddStr [10:02:13]wPrintStart [10:02:13]Write to MH i2c: 01 00 00 29 6E 97 [10:02:13]Write i2c OK [10:02:13]MH_I2C_Read... [10:02:13]Read from MH i2c: 01 [10:02:13]MH_I2C_Read... [10:02:13]Read from MH i2c: 01 07 00 [10:02:13]MH_I2C_Read... [10:02:13]Read from MH i2c: 01 07 00 29 6E 00 00 00 00 00 FF 0F AC [10:02:13]RasterBufferAndPrint [10:02:13]line Счет N : (1)346946 [10:02:13]line ИНН: 02508201610067 [10:02:13]line Контрольно-Кассовый Чек [10:02:13]line ПРОДАЖА [10:02:13]line ТРК (МРК, ГНК) : 21 [10:02:13]line Товар: 2710194210 [10:02:13]line ДТ-К-5 [10:02:13]line 112.080 * 72.40 [10:02:13]line = 8114.59 [10:02:13]line НДС 12% НСП 1% [10:02:13]line > о реализуемом товаре [10:02:13]line ОКРУГЛЕНИЕ: -0.59 [10:02:13]line ИТОГО: 8114.00 [10:02:13]line Внесено: 8114.00 [10:02:13]line СДАЧА: 0.00 [10:02:13]line НСП 1% : 71.81 [10:02:13]line НДС 12% : 861.73 [10:02:13]line Наличными: 8114.00 [10:02:13]line Безнал.: 0.00 [10:02:13]line Место: АЗС № 108 "Партнер Нефть" [10:02:13]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [10:02:13]line СНО: Общий режим [10:02:13]line Чек 75 12.04.2024 10:02 [10:02:13]line Смена: 113 ФФД: 1.0 [10:02:13]line ЗНМ: 0300000027 [10:02:13]line РНМ: 0000138879044617 [10:02:13]line Версия ККМ: 001 [10:02:13]line ФМ: 0000000000963154 [10:02:13]line ФД: 28626 [10:02:13]line ФПД: 200025428264618 [10:02:13]line 1/tax-web-control/client/api/v1/ticket?date=20240412T100219&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28626&fm=200025428264618&tin=02508201610067®Number=0000138879044617&sum=811400 [10:02:13]OFD Sender: Processing packet 28626 [packets to send 8, broken 7] [10:02:13]ProducePacketName [10:02:13]name=ofd_packets/00028626 [10:02:13]OFD Sender: To server: pG, [10:02:13]CommunicateWithHost lk.salyk.kg:30040 [10:02:13]ConnectInit lk.salyk.kg [10:02:13]written 0, free lines is 4095 [10:02:13]Connected sock=7 [10:02:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 0E 70 04 01 2E 02 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D0 B5 01 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 C3 61 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 61 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 1C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 50 01 00 00 00 07 04 06 00 88 61 0C 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 AB 06 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D2 6F 00 00 35 04 06 00 B5 EC 0C 99 06 AA 1F 62 5D BE 83 11 9C 27 [10:02:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 E8 90 47 00 F7 FF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D2 6F 00 00 F4 03 04 00 55 B1 18 66 B6 04 01 00 00 DC 75 20 E8 B6 E7 F7 69 [10:02:13]CommunicateWithHost err = 0 [10:02:13]CheckOFDResponse [10:02:13]1017 (14) - 77093643461234 [10:02:13]1041 (16) - 0000000000963154 [10:02:13]1040 (4) - 28626 [10:02:13]1012 (4) - 12.04.2024 03:58 [10:02:13]1206 (1) - 0 [10:02:13]OFD Sender: Remove packet 28626 [10:02:13]ProducePacketName [10:02:13]name=ofd_packets/00028626 [10:02:13]NVStorageDeleteData [10:02:14]Write to MH i2c: 01 00 00 53 6E C1 [10:02:14]Write i2c OK [10:02:14]MH_I2C_Read... [10:02:14]Read from MH i2c: 01 [10:02:14]MH_I2C_Read... [10:02:14]Read from MH i2c: 01 07 00 [10:02:14]MH_I2C_Read... [10:02:14]Read from MH i2c: 01 07 00 53 6E 00 00 00 00 00 CD 0C A1 [10:02:14]RasterBufferAndPrint [10:02:14]line [10:02:14]line [10:02:14]line [10:02:14]line [10:02:14]line [10:02:14]written 0, free lines is 3286 [10:02:14]MH_Cut [10:02:14]Write to MH i2c: D1 01 00 5A 6E 01 9A [10:02:14]Write i2c OK [10:02:14]MH_I2C_Read... [10:02:14]Read from MH i2c: D1 [10:02:14]MH_I2C_Read... [10:02:14]Read from MH i2c: D1 01 00 [10:02:14]MH_I2C_Read... [10:02:14]Read from MH i2c: D1 01 00 5A 6E 00 99 [10:02:14]Write to MH i2c: 01 00 00 5B 6E C9 [10:02:14]Write i2c OK [10:02:14]MH_I2C_Read... [10:02:14]OFD Sender: No OFD packet to send [10:02:14]*** Cut start [10:02:14]*** Partial cut [10:02:14]*** CUTSNS_PIN = 1 [10:02:14]*** CUTSNS_PIN = 0 [10:02:15]*** Brake cut motor [10:02:15]Read from MH i2c: 01 [10:02:15]MH_I2C_Read... [10:02:15]*** Stop cut motor [10:02:15]*** Cut end [10:02:15]Read from MH i2c: 01 07 00 [10:02:15]MH_I2C_Read... [10:02:15]Read from MH i2c: 01 07 00 5B 6E 00 00 00 00 00 FF 0F DE [10:02:15]process_action close_receipt done [10:02:15]requested_data is exist [10:02:15]produce_requested_data [10:02:15]requested_item fm.sn is exist - process it [10:02:15]wFMCommunicate request_size=4 [10:02:15]MH_SAM_APDU [10:02:15]CAPDU: 80 11 00 00 [10:02:15]Write to MH i2c: E2 08 00 5C 6E 80 11 00 00 00 00 00 00 44 [10:02:15]Write i2c OK [10:02:15]MH_I2C_Read... [10:02:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:02:15]Read from MH i2c: E2 [10:02:15]MH_I2C_Read... [10:02:15]Read from MH i2c: E2 17 00 [10:02:15]MH_I2C_Read... [10:02:15]Read from MH i2c: E2 17 00 5C 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 93 [10:02:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:02:15]wFMCommunicate OK [10:02:15]requested_item fd.num is exist - process it [10:02:15]SAM_PROTO_GetFieldsCounters [10:02:15]wFMCommunicate request_size=4 [10:02:15]MH_SAM_APDU [10:02:15]CAPDU: 80 13 00 00 [10:02:15]Write to MH i2c: E2 08 00 5D 6E 80 13 00 00 00 00 00 00 47 [10:02:15]Write i2c OK [10:02:15]MH_I2C_Read... [10:02:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:02:15]Read from MH i2c: E2 [10:02:15]MH_I2C_Read... [10:02:15]Read from MH i2c: E2 62 00 [10:02:15]MH_I2C_Read... [10:02:15]Read from MH i2c: E2 62 00 5D 6E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 D2 6F 00 00 0E 04 04 00 71 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 18 [10:02:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 D2 6F 00 00 0E 04 04 00 71 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 [10:02:15]wFMCommunicate OK [10:02:15]SAM_PROTO_GetFieldsCounters done [10:02:15]requested_item shift.num is exist - process it [10:02:15]requested_item shift.opened is exist - process it [10:02:15]req_shift_opened [10:02:15]FM_GetShiftState [10:02:15]SAM_PROTO_GetShiftState [10:02:15]wFMCommunicate request_size=4 [10:02:15]MH_SAM_APDU [10:02:15]CAPDU: 80 13 01 00 [10:02:15]Write to MH i2c: E2 08 00 5E 6E 80 13 01 00 00 00 00 00 49 [10:02:15]Write i2c OK [10:02:15]MH_I2C_Read... [10:02:15]Read from MH i2c: E2 [10:02:15]MH_I2C_Read... [10:02:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:02:15]Read from MH i2c: E2 0E 00 [10:02:15]MH_I2C_Read... [10:02:15]Read from MH i2c: E2 0E 00 5E 6E 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 5A [10:02:15]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [10:02:15]wFMCommunicate OK [10:02:15]SAM_PROTO_GetShiftState done [10:02:15]FM_GetShiftState done [10:02:15]req_shift_opened done [10:02:15]requested_item shift.open_date is exist - process it [10:02:15]req_shift_open_date [10:02:15]req_shift_open_date done [10:02:15]produce_requested_data done [10:02:15]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28626,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [10:02:15]process_action_free close_receipt [10:02:15]json_value_free [10:02:15]json_value_free done [10:02:15]process_json_proto returns [10:02:15]Send response to host [10:02:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28626,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [10:02:15]free response buf [10:02:15]execute_script done [10:02:15]execute_script returns [10:02:15]free content buf [10:02:15]Sock 5.Close socket [10:02:15]Sock 5.Thread stoped [10:02:19]OFD Sender: No OFD packet to send [10:02:24]OFD Sender: No OFD packet to send [10:02:29]OFD Sender: No OFD packet to send [10:02:34]OFD Sender: No OFD packet to send [10:02:39]OFD Sender: No OFD packet to send [10:02:41]accept exits with 6 [10:02:41]New connection [10:02:41]New thread 3066498404 created [10:02:41]Thread 3066641764 joined [10:02:41]Waiting for new connection... [10:02:41] Sock 6.Parse request [10:02:41]Sock 6.Check first char [10:02:41]Sock 6.First char is OK [10:02:41]request: POST /json_proto HTTP/1.0 [10:02:41]Method: POST [10:02:41]URL: /json_proto [10:02:41]Method is POST - this is cgi request [10:02:41]url: /json_proto [10:02:41]query_string will be loaded in cgi processing [10:02:41]execute_cgi json_proto POST (null) [10:02:41]execute_cgi path=json_proto method=POST [10:02:41]POST find Content-Length [10:02:41]Host: 172.17.33.3:8080 [10:02:41]Content-Length: 736 [10:02:41]Content-Type: application/json [10:02:41] [10:02:41]POST finish read [10:02:41]Found Content-Length = 736 [10:02:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 28626, "base_FM": "0000000000963154", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346946", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 112.080, "sum" : 8114.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 8114.00, "total" : 8114.00, "payments": [ { "type": 0, "sum" : 8114.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:02:41]execute_script... [10:02:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 28626, "base_FM": "0000000000963154", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346946", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 112.080, "sum" : 8114.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 8114.00, "total" : 8114.00, "payments": [ { "type": 0, "sum" : 8114.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:02:41]POST & json_proto [10:02:41]process_json_proto [10:02:41]json parsed OK: [10:02:41]protocol is kg_v1.0 [10:02:41]action value=close_receipt [10:02:41]process_action close_receipt [10:02:41]cmd_close_receipt [10:02:41]MH_GetDate [10:02:41]Write to MH i2c: F0 00 00 5F 6E BC [10:02:41]Write i2c OK [10:02:41]MH_I2C_Read... [10:02:41]Read from MH i2c: F0 [10:02:41]MH_I2C_Read... [10:02:41]Read from MH i2c: F0 09 00 [10:02:41]MH_I2C_Read... [10:02:41]Read from MH i2c: F0 09 00 5F 6E 00 C9 06 19 66 23 5B 8F 65 85 [10:02:41]GetLastDocTimeStamp 1712916139 [10:02:41]current date 1712916169 [10:02:41]FM_GetShiftState [10:02:41]SAM_PROTO_GetShiftState [10:02:41]wFMCommunicate request_size=4 [10:02:41]MH_SAM_APDU [10:02:41]CAPDU: 80 13 01 00 [10:02:41]Write to MH i2c: E2 08 00 60 6E 80 13 01 00 00 00 00 00 4B [10:02:41]Write i2c OK [10:02:41]MH_I2C_Read... [10:02:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:02:41]Read from MH i2c: E2 [10:02:41]MH_I2C_Read... [10:02:41]Read from MH i2c: E2 0E 00 [10:02:41]MH_I2C_Read... [10:02:41]Read from MH i2c: E2 0E 00 60 6E 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 5C [10:02:41]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [10:02:41]wFMCommunicate OK [10:02:41]SAM_PROTO_GetShiftState done [10:02:41]FM_GetShiftState done [10:02:41]opened in 1712881416 [10:02:41]opened+sec_in_day 1712967816 [10:02:41]quantity*price = 811459 [10:02:41]sum+1 = 811460 [10:02:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 8114.00 НСП 1% : 71.81 НДС 12% : 861.73 Наличными: 8114.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 76 12.04.2024 10:02 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФД осн.: 28626 ФМ осн.: 0000000000963154 ФМ: 0000000000963154 ФД: 28627 ФПД: 226585570450757 1/tax-web-control/client/api/v1/ticket?date=20240412T100249&type=2&operation_type=1&fn_number=0000000000963154&fd_number=28627&fm=226585570450757&tin=02508201610067®Number=0000138879044617&sum=811400 [10:02:43]StoreToDocumentArchive [10:02:43]shift 113 fd 28627 [10:02:43]save to /storage/0113/doc_00028627 [10:02:43]save last doc name /storage/0113/doc_00028627 to /storage/kkm_last_doc_name [10:02:43]save OK [10:02:43]Clear old archive folders... [10:02:43]ProcessDocumentItem done err = 0, tmpTLVsize=276 [10:02:43]tlvbuf is 01B554D0 [10:02:43]SAM_PROTO_ClearQueue [10:02:43]wFMCommunicate request_size=4 [10:02:43]MH_SAM_APDU [10:02:43]CAPDU: 80 09 00 00 [10:02:43]Write to MH i2c: E2 08 00 6F 6E 80 09 00 00 00 00 00 00 4F [10:02:43]Write i2c OK [10:02:43]MH_I2C_Read... [10:02:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:02:43]Read from MH i2c: E2 [10:02:43]MH_I2C_Read... [10:02:43]Read from MH i2c: E2 03 00 [10:02:43]MH_I2C_Read... [10:02:43]Read from MH i2c: E2 03 00 6F 6E 00 90 00 51 [10:02:43]RAPDU: 90 00 [10:02:43]wFMCommunicate OK [10:02:43]SAM_PROTO_ClearQueue done [10:02:43]KKMCreateOFDPacket [10:02:43]OFDProtocolAddRootSTLVToBuf [10:02:43]FM_MakeSignedData [10:02:43]FM_MakeSignedData [10:02:43]SAM_PROTO_SignData [10:02:43]wFMCommunicate request_size=4 [10:02:43]MH_SAM_APDU [10:02:43]CAPDU: 80 0D 01 02 [10:02:43]Write to MH i2c: E2 08 00 70 6E 80 0D 01 02 00 00 00 00 57 [10:02:43]Write i2c OK [10:02:43]MH_I2C_Read... [10:02:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:02:43]Read from MH i2c: E2 [10:02:43]MH_I2C_Read... [10:02:43]Read from MH i2c: E2 03 00 [10:02:43]MH_I2C_Read... [10:02:43]Read from MH i2c: E2 03 00 70 6E 00 90 00 52 [10:02:43]RAPDU: 90 00 [10:02:43]wFMCommunicate OK [10:02:43]wFMCommunicate request_size=255 [10:02:43]MH_SAM_APDU [10:02:43]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D0 B5 01 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 C3 61 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 61 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 1C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 50 01 00 00 00 07 04 06 00 88 61 0C 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 C9 06 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 27 04 04 00 D2 6F 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 11 04 10 00 30 30 30 30 [10:02:43]Write to MH i2c: E2 02 01 71 6E 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D0 B5 01 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 C3 61 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 61 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 1C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 50 01 00 00 00 07 04 06 00 88 61 0C 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 C9 06 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 27 04 04 00 D2 6F 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 11 04 10 00 30 30 30 30 00 00 2A [10:02:43]Write i2c OK [10:02:43]MH_I2C_Read... [10:02:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:02:43]Read from MH i2c: E2 [10:02:43]MH_I2C_Read... [10:02:43]Read from MH i2c: E2 03 00 [10:02:43]MH_I2C_Read... [10:02:43]Read from MH i2c: E2 03 00 71 6E 00 90 00 53 [10:02:43]RAPDU: 90 00 [10:02:43]wFMCommunicate OK [10:02:43]wFMCommunicate request_size=35 [10:02:43]MH_SAM_APDU [10:02:43]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D3 6F 00 00 35 04 06 00 CE 14 10 70 1D 45 [10:02:43]Write to MH i2c: E2 26 00 72 6E 80 0D 02 02 1E 00 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D3 6F 00 00 35 04 06 00 CE 14 10 70 1D 45 00 00 4F [10:02:43]Write i2c OK [10:02:43]MH_I2C_Read... [10:02:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:02:43]Read from MH i2c: E2 [10:02:43]MH_I2C_Read... [10:02:43]Read from MH i2c: E2 03 00 [10:02:43]MH_I2C_Read... [10:02:43]Read from MH i2c: E2 03 00 72 6E 00 90 00 54 [10:02:43]RAPDU: 90 00 [10:02:43]wFMCommunicate OK [10:02:43]wFMCommunicate request_size=4 [10:02:43]MH_SAM_APDU [10:02:43]CAPDU: 80 0D 03 02 [10:02:43]Write to MH i2c: E2 08 00 73 6E 80 0D 03 02 00 00 00 00 5C [10:02:43]Write i2c OK [10:02:43]MH_I2C_Read... [10:02:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:02:43]Read from MH i2c: E2 [10:02:43]MH_I2C_Read... [10:02:43]Read from MH i2c: E2 0B 00 [10:02:43]MH_I2C_Read... [10:02:43]Read from MH i2c: E2 0B 00 73 6E 00 C9 45 F5 3E D1 5D 6A F3 90 00 29 [10:02:43]RAPDU: C9 45 F5 3E D1 5D 6A F3 90 00 [10:02:43]wFMCommunicate OK [10:02:43]SAM_PROTO_SignData done [10:02:43]FM_MakeSignedData done [10:02:43]CreateOFDProtocolMessage [10:02:43]wFMCommunicate request_size=4 [10:02:43]MH_SAM_APDU [10:02:43]CAPDU: 80 11 00 00 [10:02:43]Write to MH i2c: E2 08 00 74 6E 80 11 00 00 00 00 00 00 5C [10:02:43]Write i2c OK [10:02:43]MH_I2C_Read... [10:02:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:02:43]Read from MH i2c: E2 [10:02:43]MH_I2C_Read... [10:02:43]Read from MH i2c: E2 17 00 [10:02:43]MH_I2C_Read... [10:02:43]Read from MH i2c: E2 17 00 74 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 AB [10:02:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:02:43]wFMCommunicate OK [10:02:43]CreateOFDProtocolMessage done [10:02:43]OFDSenderStorePacket 28627 [10:02:43]StoreOFDPacket docnum=28627 [10:02:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 28 01 00 00 B3 DA 20 01 76 17 5A 03 01 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D0 B5 01 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 C3 61 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 61 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 1C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 50 01 00 00 00 07 04 06 00 88 61 0C 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 C9 06 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 27 04 04 00 D2 6F 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D3 6F 00 00 35 04 06 00 CE 14 10 70 1D 45 C9 45 F5 3E D1 5D 6A F3 [10:02:43]CheckFolder [10:02:43]dirname=/storage/ofd_packets [10:02:43]CheckFolder done [10:02:43]ProducePacketName [10:02:43]name=ofd_packets/00028627 [10:02:43]NVStorageSaveData ofd_packets/00028627 [10:02:43]File name is /storage/ofd_packets/00028627 [10:02:43]Write 326 bytes [10:02:43]NVStorageSaveData done [10:02:43]OFDSenderStorePacket done [10:02:43]KKMCreateOFDPacket done [10:02:43]NVStorageSaveData kkm_last_timestamp [10:02:43]File name is /storage/kkm_last_timestamp [10:02:43]Write 4 bytes [10:02:43]NVStorageSaveData done [10:02:43]ExternCall_PrintAddStr [10:02:43]wPrintStart [10:02:43]Write to MH i2c: 01 00 00 75 6E E3 [10:02:43]Write i2c OK [10:02:43]MH_I2C_Read... [10:02:43]Read from MH i2c: 01 [10:02:43]MH_I2C_Read... [10:02:43]Read from MH i2c: 01 07 00 [10:02:43]MH_I2C_Read... [10:02:43]Read from MH i2c: 01 07 00 75 6E 00 00 00 00 00 FF 0F F8 [10:02:43]RasterBufferAndPrint [10:02:43]line Счет N : (1)346946 [10:02:43]line ИНН: 02508201610067 [10:02:43]line Контрольно-Кассовый Чек [10:02:43]line ВОЗВРАТ ПРОДАЖИ [10:02:43]line ТРК (МРК, ГНК) : 21 [10:02:43]line Товар: 2710194210 [10:02:43]line ДТ-К-5 [10:02:43]line 112.080 * 72.40 [10:02:43]line = 8114.59 [10:02:43]line НДС 12% НСП 1% [10:02:43]line > о реализуемом товаре [10:02:43]line ОКРУГЛЕНИЕ: -0.59 [10:02:43]line ИТОГО: 8114.00 [10:02:43]line НСП 1% : 71.81 [10:02:43]line НДС 12% : 861.73 [10:02:43]line Наличными: 8114.00 [10:02:43]line Безнал.: 0.00 [10:02:43]line Место: АЗС № 108 "Партнер Нефть" [10:02:43]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [10:02:43]line СНО: Общий режим [10:02:43]line Чек 76 12.04.2024 10:02 [10:02:43]line Смена: 113 ФФД: 1.0 [10:02:43]line ЗНМ: 0300000027 [10:02:43]line РНМ: 0000138879044617 [10:02:43]line Версия ККМ: 001 [10:02:43]line ФД осн.: 28626 [10:02:43]line ФМ осн.: 0000000000963154 [10:02:43]line ФМ: 0000000000963154 [10:02:43]line ФД: 28627 [10:02:43]line ФПД: 226585570450757 [10:02:44]line 1/tax-web-control/client/api/v1/ticket?date=20240412T100249&type=2&operation_type=1&fn_number=0000000000963154&fd_number=28627&fm=226585570450757&tin=02508201610067®Number=0000138879044617&sum=811400 [10:02:44]OFD Sender: Processing packet 28627 [packets to send 8, broken 7] [10:02:44]ProducePacketName [10:02:44]name=ofd_packets/00028627 [10:02:44]OFD Sender: To server: pG, [10:02:44]CommunicateWithHost lk.salyk.kg:30040 [10:02:44]ConnectInit lk.salyk.kg [10:02:44]written 0, free lines is 4095 [10:02:44]Connected sock=5 [10:02:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 28 01 00 00 B3 DA 20 01 76 17 5A 03 01 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D0 B5 01 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 C3 61 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 61 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 1C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 50 01 00 00 00 07 04 06 00 88 61 0C 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 C9 06 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 27 04 04 00 D2 6F 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D3 6F 00 00 35 04 06 00 CE 14 10 70 1D 45 C9 45 F5 3E D1 5D 6A F3 [10:02:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 D0 BF 47 00 10 8F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D3 6F 00 00 F4 03 04 00 74 B1 18 66 B6 04 01 00 00 40 D4 4F D6 6B DD 43 05 [10:02:44]CommunicateWithHost err = 0 [10:02:44]CheckOFDResponse [10:02:44]1017 (14) - 77093643461234 [10:02:44]1041 (16) - 0000000000963154 [10:02:44]1040 (4) - 28627 [10:02:44]1012 (4) - 12.04.2024 03:58 [10:02:44]1206 (1) - 0 [10:02:44]OFD Sender: Remove packet 28627 [10:02:44]ProducePacketName [10:02:44]name=ofd_packets/00028627 [10:02:44]NVStorageDeleteData [10:02:44]Write to MH i2c: 01 00 00 9F 6E 0D [10:02:44]Write i2c OK [10:02:44]MH_I2C_Read... [10:02:44]Read from MH i2c: 01 [10:02:44]MH_I2C_Read... [10:02:44]Read from MH i2c: 01 07 00 [10:02:44]MH_I2C_Read... [10:02:44]Read from MH i2c: 01 07 00 9F 6E 00 00 00 00 00 DB 0C FB [10:02:44]RasterBufferAndPrint [10:02:44]line [10:02:44]line [10:02:44]line [10:02:44]line [10:02:44]line [10:02:44]written 0, free lines is 3301 [10:02:44]MH_Cut [10:02:44]Write to MH i2c: D1 01 00 A6 6E 01 E6 [10:02:44]Write i2c OK [10:02:44]MH_I2C_Read... [10:02:44]Read from MH i2c: D1 [10:02:44]MH_I2C_Read... [10:02:44]Read from MH i2c: D1 01 00 [10:02:44]MH_I2C_Read... [10:02:44]Read from MH i2c: D1 01 00 A6 6E 00 E5 [10:02:44]Write to MH i2c: 01 00 00 A7 6E 15 [10:02:44]Write i2c OK [10:02:44]MH_I2C_Read... [10:02:44]OFD Sender: No OFD packet to send [10:02:45]*** Cut start [10:02:45]*** Partial cut [10:02:45]*** CUTSNS_PIN = 1 [10:02:45]*** CUTSNS_PIN = 0 [10:02:45]*** Brake cut motor [10:02:45]Read from MH i2c: 01 [10:02:45]MH_I2C_Read... [10:02:45]*** Stop cut motor [10:02:45]*** Cut end [10:02:45]Read from MH i2c: 01 07 00 [10:02:45]MH_I2C_Read... [10:02:45]Read from MH i2c: 01 07 00 A7 6E 00 00 00 00 00 FF 0F 2A [10:02:45]process_action close_receipt done [10:02:45]requested_data is exist [10:02:45]produce_requested_data [10:02:45]requested_item fm.sn is exist - process it [10:02:45]wFMCommunicate request_size=4 [10:02:45]MH_SAM_APDU [10:02:45]CAPDU: 80 11 00 00 [10:02:45]Write to MH i2c: E2 08 00 A8 6E 80 11 00 00 00 00 00 00 90 [10:02:45]Write i2c OK [10:02:45]MH_I2C_Read... [10:02:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:02:46]Read from MH i2c: E2 [10:02:46]MH_I2C_Read... [10:02:46]Read from MH i2c: E2 17 00 [10:02:46]MH_I2C_Read... [10:02:46]Read from MH i2c: E2 17 00 A8 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 DF [10:02:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:02:46]wFMCommunicate OK [10:02:46]requested_item fd.num is exist - process it [10:02:46]SAM_PROTO_GetFieldsCounters [10:02:46]wFMCommunicate request_size=4 [10:02:46]MH_SAM_APDU [10:02:46]CAPDU: 80 13 00 00 [10:02:46]Write to MH i2c: E2 08 00 A9 6E 80 13 00 00 00 00 00 00 93 [10:02:46]Write i2c OK [10:02:46]MH_I2C_Read... [10:02:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:02:46]*** FLAG_PRN_PAP1 set [10:02:46]Read from MH i2c: E2 [10:02:46]MH_I2C_Read... [10:02:46]Read from MH i2c: E2 62 00 [10:02:46]MH_I2C_Read... [10:02:46]Read from MH i2c: E2 62 00 A9 6E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 D3 6F 00 00 0E 04 04 00 71 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 68 [10:02:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 D3 6F 00 00 0E 04 04 00 71 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 [10:02:46]wFMCommunicate OK [10:02:46]SAM_PROTO_GetFieldsCounters done [10:02:46]requested_item shift.num is exist - process it [10:02:46]requested_item shift.opened is exist - process it [10:02:46]req_shift_opened [10:02:46]FM_GetShiftState [10:02:46]SAM_PROTO_GetShiftState [10:02:46]wFMCommunicate request_size=4 [10:02:46]MH_SAM_APDU [10:02:46]CAPDU: 80 13 01 00 [10:02:46]Write to MH i2c: E2 08 00 AA 6E 80 13 01 00 00 00 00 00 95 [10:02:46]*** FLAG_PRN_PAP2 set [10:02:46]Write i2c OK [10:02:46]MH_I2C_Read... [10:02:46]Read from MH i2c: E2 [10:02:46]MH_I2C_Read... [10:02:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:02:46]Read from MH i2c: E2 0E 00 [10:02:46]MH_I2C_Read... [10:02:46]Read from MH i2c: E2 0E 00 AA 6E 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 A6 [10:02:46]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [10:02:46]wFMCommunicate OK [10:02:46]SAM_PROTO_GetShiftState done [10:02:46]FM_GetShiftState done [10:02:46]req_shift_opened done [10:02:46]requested_item shift.open_date is exist - process it [10:02:46]req_shift_open_date [10:02:46]req_shift_open_date done [10:02:46]produce_requested_data done [10:02:46]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28627,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [10:02:46]process_action_free close_receipt [10:02:46]json_value_free [10:02:46]json_value_free done [10:02:46]process_json_proto returns [10:02:46]Send response to host [10:02:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28627,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [10:02:46]free response buf [10:02:46]execute_script done [10:02:46]execute_script returns [10:02:46]free content buf [10:02:46]Sock 6.Close socket [10:02:46]Sock 6.Thread stoped [10:02:49]OFD Sender: No OFD packet to send [10:02:54]OFD Sender: No OFD packet to send [10:02:59]OFD Sender: No OFD packet to send [10:03:00]*** FLAG_PRN_PAP2 reset [10:03:00]*** FLAG_PRN_PAP1 reset [10:03:03]accept exits with 7 [10:03:03]New connection [10:03:03]New thread 3066641764 created [10:03:03]Thread 3066498404 joined [10:03:03]Waiting for new connection... [10:03:03] Sock 7.Parse request [10:03:03]Sock 7.Check first char [10:03:03]Sock 7.First char is OK [10:03:03]request: POST /json_proto HTTP/1.0 [10:03:03]Method: POST [10:03:03]URL: /json_proto [10:03:03]Method is POST - this is cgi request [10:03:03]url: /json_proto [10:03:03]query_string will be loaded in cgi processing [10:03:03]execute_cgi json_proto POST (null) [10:03:03]execute_cgi path=json_proto method=POST [10:03:03]POST find Content-Length [10:03:03]Host: 172.17.33.3:8080 [10:03:03]Content-Length: 215 [10:03:03]Content-Type: application/json [10:03:03] [10:03:03]POST finish read [10:03:03]Found Content-Length = 215 [10:03:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:03:03]execute_script... [10:03:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:03:03]POST & json_proto [10:03:03]process_json_proto [10:03:03]json parsed OK: [10:03:03]protocol is kg_v1.0 [10:03:03]action value=get_value [10:03:03]process_action get_value [10:03:03]cmd_get_value [10:03:03]process_action get_value done [10:03:03]requested_data is exist [10:03:03]produce_requested_data [10:03:03]requested_item kkm.sn is exist - process it [10:03:03]requested_item kkm.ver is exist - process it [10:03:03]requested_item fm.sn is exist - process it [10:03:03]wFMCommunicate request_size=4 [10:03:03]MH_SAM_APDU [10:03:03]CAPDU: 80 11 00 00 [10:03:03]Write to MH i2c: E2 08 00 AB 6E 80 11 00 00 00 00 00 00 93 [10:03:03]Write i2c OK [10:03:03]MH_I2C_Read... [10:03:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:03:03]Read from MH i2c: E2 [10:03:03]MH_I2C_Read... [10:03:03]Read from MH i2c: E2 17 00 [10:03:03]MH_I2C_Read... [10:03:03]Read from MH i2c: E2 17 00 AB 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 E2 [10:03:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:03:03]wFMCommunicate OK [10:03:03]requested_item fd.num is exist - process it [10:03:03]SAM_PROTO_GetFieldsCounters [10:03:03]wFMCommunicate request_size=4 [10:03:03]MH_SAM_APDU [10:03:03]CAPDU: 80 13 00 00 [10:03:03]Write to MH i2c: E2 08 00 AC 6E 80 13 00 00 00 00 00 00 96 [10:03:03]Write i2c OK [10:03:03]MH_I2C_Read... [10:03:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:03:03]Read from MH i2c: E2 [10:03:03]MH_I2C_Read... [10:03:03]Read from MH i2c: E2 62 00 [10:03:03]MH_I2C_Read... [10:03:03]Read from MH i2c: E2 62 00 AC 6E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 D3 6F 00 00 0E 04 04 00 71 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 6B [10:03:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 D3 6F 00 00 0E 04 04 00 71 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 [10:03:03]wFMCommunicate OK [10:03:03]SAM_PROTO_GetFieldsCounters done [10:03:03]requested_item shift.num is exist - process it [10:03:03]requested_item shift.opened is exist - process it [10:03:03]req_shift_opened [10:03:03]FM_GetShiftState [10:03:03]SAM_PROTO_GetShiftState [10:03:03]wFMCommunicate request_size=4 [10:03:03]MH_SAM_APDU [10:03:03]CAPDU: 80 13 01 00 [10:03:03]Write to MH i2c: E2 08 00 AD 6E 80 13 01 00 00 00 00 00 98 [10:03:03]Write i2c OK [10:03:03]MH_I2C_Read... [10:03:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:03:03]Read from MH i2c: E2 [10:03:03]MH_I2C_Read... [10:03:03]Read from MH i2c: E2 0E 00 [10:03:03]MH_I2C_Read... [10:03:03]Read from MH i2c: E2 0E 00 AD 6E 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 A9 [10:03:03]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [10:03:03]wFMCommunicate OK [10:03:03]SAM_PROTO_GetShiftState done [10:03:03]FM_GetShiftState done [10:03:03]req_shift_opened done [10:03:03]requested_item shift.open_date is exist - process it [10:03:03]req_shift_open_date [10:03:03]req_shift_open_date done [10:03:03]produce_requested_data done [10:03:03]produce_requested_data return {"kkm.sn":"0300000027","kkm.ver":"001","fm.sn":"0000000000963154","fd.num":28627,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [10:03:03]process_action_free get_value [10:03:03]json_value_free [10:03:03]json_value_free done [10:03:03]process_json_proto returns [10:03:03]Send response to host [10:03:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000027","kkm.ver":"001","fm.sn":"0000000000963154","fd.num":28627,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [10:03:03]free response buf [10:03:03]execute_script done [10:03:03]execute_script returns [10:03:03]free content buf [10:03:03]Sock 7.Close socket [10:03:03]Sock 7.Thread stoped [10:03:03]accept exits with 5 [10:03:03]New connection [10:03:03]New thread 3066498404 created [10:03:03]Thread 3066641764 joined [10:03:03]Waiting for new connection... [10:03:03] Sock 5.Parse request [10:03:03]Sock 5.Check first char [10:03:03]Sock 5.First char is OK [10:03:03]request: POST /json_proto HTTP/1.0 [10:03:03]Method: POST [10:03:03]URL: /json_proto [10:03:03]Method is POST - this is cgi request [10:03:03]url: /json_proto [10:03:03]query_string will be loaded in cgi processing [10:03:03]execute_cgi json_proto POST (null) [10:03:03]execute_cgi path=json_proto method=POST [10:03:03]POST find Content-Length [10:03:03]Host: 172.17.33.3:8080 [10:03:03]Content-Length: 331 [10:03:03]Content-Type: application/json [10:03:03] [10:03:03]POST finish read [10:03:03]Found Content-Length = 331 [10:03:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [10:03:03]execute_script... [10:03:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [10:03:03]POST & json_proto [10:03:03]process_json_proto [10:03:03]json parsed OK: [10:03:03]protocol is kg_v1.0 [10:03:03]action value=get_value [10:03:03]process_action get_value [10:03:03]cmd_get_value [10:03:03]process_action get_value done [10:03:03]requested_data is exist [10:03:03]produce_requested_data [10:03:03]requested_item fm.sale.total is exist - process it [10:03:03]SAM_PROTO_GetFMData [10:03:03]wFMCommunicate request_size=4 [10:03:03]MH_SAM_APDU [10:03:03]CAPDU: 80 13 03 00 [10:03:03]Write to MH i2c: E2 08 00 AE 6E 80 13 03 00 00 00 00 00 9B [10:03:03]Write i2c OK [10:03:03]MH_I2C_Read... [10:03:04]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [10:03:04]Read from MH i2c: E2 [10:03:04]MH_I2C_Read... [10:03:04]Read from MH i2c: E2 FD 00 [10:03:04]MH_I2C_Read... [10:03:04]Read from MH i2c: E2 FD 00 AE 6E 00 C3 04 85 04 BF 04 6E 04 04 00 F1 6E 00 00 69 04 A1 00 6F 04 04 00 99 6B 00 00 B1 04 04 00 2F 3E E8 AE 70 04 04 00 A4 F4 EC 6F 72 04 04 00 8B 49 FB 3E 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 7B EF 93 12 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 1B 4B 8C 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 9C 00 6F 04 04 00 58 03 00 00 B1 04 04 00 D0 35 89 0C 70 04 04 00 D0 35 89 0C 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 C8 D6 54 01 EF 03 09 00 F6 90 00 97 [10:03:04]RAPDU: C3 04 85 04 BF 04 6E 04 04 00 F1 6E 00 00 69 04 A1 00 6F 04 04 00 99 6B 00 00 B1 04 04 00 2F 3E E8 AE 70 04 04 00 A4 F4 EC 6F 72 04 04 00 8B 49 FB 3E 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 7B EF 93 12 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 1B 4B 8C 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 9C 00 6F 04 04 00 58 03 00 00 B1 04 04 00 D0 35 89 0C 70 04 04 00 D0 35 89 0C 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 C8 D6 54 01 EF 03 09 00 F6 90 00 [10:03:04]wFMCommunicate OK [10:03:04]wFMCommunicate request_size=4 [10:03:04]MH_SAM_APDU [10:03:04]CAPDU: 80 17 00 00 [10:03:04]Write to MH i2c: E2 08 00 AF 6E 80 17 00 00 00 00 00 00 9D [10:03:04]Write i2c OK [10:03:04]MH_I2C_Read... [10:03:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:03:04]Read from MH i2c: E2 [10:03:04]MH_I2C_Read... [10:03:04]Read from MH i2c: E2 FD 00 [10:03:04]MH_I2C_Read... [10:03:04]Read from MH i2c: E2 FD 00 AF 6E 00 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CC 66 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 AB [10:03:04]RAPDU: 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CC 66 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [10:03:04]wFMCommunicate OK [10:03:04]wFMCommunicate request_size=4 [10:03:04]MH_SAM_APDU [10:03:04]CAPDU: 80 17 00 00 [10:03:04]Write to MH i2c: E2 08 00 B0 6E 80 17 00 00 00 00 00 00 9E [10:03:04]Write i2c OK [10:03:04]MH_I2C_Read... [10:03:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:03:04]Read from MH i2c: E2 [10:03:04]MH_I2C_Read... [10:03:04]Read from MH i2c: E2 FD 00 [10:03:04]MH_I2C_Read... [10:03:04]Read from MH i2c: E2 FD 00 B0 6E 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 BC [10:03:04]RAPDU: 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [10:03:04]wFMCommunicate OK [10:03:04]wFMCommunicate request_size=4 [10:03:04]MH_SAM_APDU [10:03:04]CAPDU: 80 17 00 00 [10:03:04]Write to MH i2c: E2 08 00 B1 6E 80 17 00 00 00 00 00 00 9F [10:03:04]Write i2c OK [10:03:04]MH_I2C_Read... [10:03:04]OFD Sender: No OFD packet to send [10:03:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:03:05]Read from MH i2c: E2 [10:03:05]MH_I2C_Read... [10:03:05]Read from MH i2c: E2 FD 00 [10:03:05]MH_I2C_Read... [10:03:05]Read from MH i2c: E2 FD 00 B1 6E 00 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 11 [10:03:05]RAPDU: 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [10:03:05]wFMCommunicate OK [10:03:05]wFMCommunicate request_size=4 [10:03:05]MH_SAM_APDU [10:03:05]CAPDU: 80 17 00 00 [10:03:05]Write to MH i2c: E2 08 00 B2 6E 80 17 00 00 00 00 00 00 A0 [10:03:05]Write i2c OK [10:03:05]MH_I2C_Read... [10:03:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 221! [10:03:05]Read from MH i2c: E2 [10:03:05]MH_I2C_Read... [10:03:05]Read from MH i2c: E2 E0 00 [10:03:05]MH_I2C_Read... [10:03:05]Read from MH i2c: E2 E0 00 B2 6E 00 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 8A [10:03:05]RAPDU: 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [10:03:05]wFMCommunicate OK [10:03:05]SAM_PROTO_GetFMData done [10:03:05]requested_item fm.sale_refund.total is exist - process it [10:03:05]requested_item fm.buy.total is exist - process it [10:03:05]requested_item shift.sale.total is exist - process it [10:03:05]SAM_PROTO_GetShiftData [10:03:05]wFMCommunicate request_size=4 [10:03:05]MH_SAM_APDU [10:03:05]CAPDU: 80 13 02 00 [10:03:05]Write to MH i2c: E2 08 00 B3 6E 80 13 02 00 00 00 00 00 9F [10:03:05]Write i2c OK [10:03:05]MH_I2C_Read... [10:03:05]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [10:03:05]Read from MH i2c: E2 [10:03:05]MH_I2C_Read... [10:03:05]Read from MH i2c: E2 FD 00 [10:03:05]MH_I2C_Read... [10:03:05]Read from MH i2c: E2 FD 00 B3 6E 00 BA 04 AA 04 B6 04 6E 04 04 00 4C 00 00 00 69 04 9C 00 6F 04 04 00 4A 00 00 00 B1 04 03 00 0C 33 8B 70 04 03 00 24 D3 5D 72 04 03 00 E8 5F 2D 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 23 C9 0E 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 3B 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 02 00 00 00 B1 04 03 00 F8 B1 0F 70 04 03 00 F8 B1 0F 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 B6 AA 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 42 [10:03:05]RAPDU: BA 04 AA 04 B6 04 6E 04 04 00 4C 00 00 00 69 04 9C 00 6F 04 04 00 4A 00 00 00 B1 04 03 00 0C 33 8B 70 04 03 00 24 D3 5D 72 04 03 00 E8 5F 2D 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 23 C9 0E 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 3B 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 02 00 00 00 B1 04 03 00 F8 B1 0F 70 04 03 00 F8 B1 0F 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 B6 AA 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [10:03:05]wFMCommunicate OK [10:03:05]wFMCommunicate request_size=4 [10:03:05]MH_SAM_APDU [10:03:05]CAPDU: 80 17 00 00 [10:03:05]Write to MH i2c: E2 08 00 B4 6E 80 17 00 00 00 00 00 00 A2 [10:03:05]Write i2c OK [10:03:05]MH_I2C_Read... [10:03:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:03:06]Read from MH i2c: E2 [10:03:06]MH_I2C_Read... [10:03:06]Read from MH i2c: E2 FD 00 [10:03:06]MH_I2C_Read... [10:03:06]Read from MH i2c: E2 FD 00 B4 6E 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 8F 23 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 FE [10:03:06]RAPDU: EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 8F 23 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [10:03:06]wFMCommunicate OK [10:03:06]wFMCommunicate request_size=4 [10:03:06]MH_SAM_APDU [10:03:06]CAPDU: 80 17 00 00 [10:03:06]Write to MH i2c: E2 08 00 B5 6E 80 17 00 00 00 00 00 00 A3 [10:03:06]Write i2c OK [10:03:06]MH_I2C_Read... [10:03:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:03:06]Read from MH i2c: E2 [10:03:06]MH_I2C_Read... [10:03:06]Read from MH i2c: E2 FD 00 [10:03:06]MH_I2C_Read... [10:03:06]Read from MH i2c: E2 FD 00 B5 6E 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 CF [10:03:06]RAPDU: 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [10:03:06]wFMCommunicate OK [10:03:06]wFMCommunicate request_size=4 [10:03:06]MH_SAM_APDU [10:03:06]CAPDU: 80 17 00 00 [10:03:06]Write to MH i2c: E2 08 00 B6 6E 80 17 00 00 00 00 00 00 A4 [10:03:06]Write i2c OK [10:03:06]MH_I2C_Read... [10:03:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:03:06]Read from MH i2c: E2 [10:03:06]MH_I2C_Read... [10:03:06]Read from MH i2c: E2 FD 00 [10:03:06]MH_I2C_Read... [10:03:06]Read from MH i2c: E2 FD 00 B6 6E 00 00 EF 03 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 90 00 1C [10:03:06]RAPDU: 00 EF 03 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 90 00 [10:03:06]wFMCommunicate OK [10:03:06]wFMCommunicate request_size=4 [10:03:06]MH_SAM_APDU [10:03:06]CAPDU: 80 17 00 00 [10:03:06]Write to MH i2c: E2 08 00 B7 6E 80 17 00 00 00 00 00 00 A5 [10:03:06]Write i2c OK [10:03:06]MH_I2C_Read... [10:03:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [10:03:06]Read from MH i2c: E2 [10:03:06]MH_I2C_Read... [10:03:06]Read from MH i2c: E2 D7 00 [10:03:06]MH_I2C_Read... [10:03:06]Read from MH i2c: E2 D7 00 B7 6E 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 88 [10:03:07]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [10:03:07]wFMCommunicate OK [10:03:07]SAM_PROTO_GetShiftData done [10:03:07]requested_item shift.sale.total_cash is exist - process it [10:03:07]requested_item shift.sale_refund.total is exist - process it [10:03:07]requested_item shift.sale_refund.total_cash is exist - process it [10:03:07]requested_item shift.buy.total is exist - process it [10:03:07]requested_item shift.buy.total_cash is exist - process it [10:03:07]produce_requested_data done [10:03:07]produce_requested_data return {"fm.sale.total":29344558.55,"fm.sale_refund.total":2103188.00,"fm.buy.total":0.00,"shift.sale.total":91225.72,"shift.sale.total_cash":61489.00,"shift.sale_refund.total":10286.00,"shift.sale_refund.total_cash":10286.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [10:03:07]process_action_free get_value [10:03:07]json_value_free [10:03:07]json_value_free done [10:03:07]process_json_proto returns [10:03:07]Send response to host [10:03:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":29344558.55,"fm.sale_refund.total":2103188.00,"fm.buy.total":0.00,"shift.sale.total":91225.72,"shift.sale.total_cash":61489.00,"shift.sale_refund.total":10286.00,"shift.sale_refund.total_cash":10286.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [10:03:07]free response buf [10:03:07]execute_script done [10:03:07]execute_script returns [10:03:07]free content buf [10:03:07]Sock 5.Close socket [10:03:07]Sock 5.Thread stoped [10:03:09]OFD Sender: No OFD packet to send [10:03:14]OFD Sender: No OFD packet to send [10:03:19]OFD Sender: No OFD packet to send [10:03:24]OFD Sender: No OFD packet to send [10:03:29]OFD Sender: No OFD packet to send [10:03:34]OFD Sender: No OFD packet to send [10:03:39]OFD Sender: No OFD packet to send [10:03:44]OFD Sender: No OFD packet to send [10:03:49]OFD Sender: No OFD packet to send [10:03:54]OFD Sender: No OFD packet to send [10:03:59]OFD Sender: No OFD packet to send [10:04:04]OFD Sender: No OFD packet to send [10:04:09]OFD Sender: No OFD packet to send [10:04:14]OFD Sender: No OFD packet to send [10:04:20]OFD Sender: No OFD packet to send [10:04:25]OFD Sender: No OFD packet to send [10:04:30]OFD Sender: No OFD packet to send [10:04:35]OFD Sender: No OFD packet to send [10:04:40]OFD Sender: No OFD packet to send [10:04:45]OFD Sender: No OFD packet to send [10:04:48]accept exits with 6 [10:04:48]New connection [10:04:48]New thread 3066641764 created [10:04:48]Thread 3066498404 joined [10:04:48]Waiting for new connection... [10:04:48] Sock 6.Parse request [10:04:48]Sock 6.Check first char [10:04:48]Sock 6.First char is OK [10:04:48]request: POST /json_proto HTTP/1.0 [10:04:48]Method: POST [10:04:48]URL: /json_proto [10:04:48]Method is POST - this is cgi request [10:04:48]url: /json_proto [10:04:48]query_string will be loaded in cgi processing [10:04:48]execute_cgi json_proto POST (null) [10:04:48]execute_cgi path=json_proto method=POST [10:04:48]POST find Content-Length [10:04:48]Host: 172.17.33.3:8080 [10:04:48]Content-Length: 679 [10:04:48]Content-Type: application/json [10:04:48] [10:04:48]POST finish read [10:04:48]Found Content-Length = 679 [10:04:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346947", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 20.720, "sum" : 1500.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:04:48]execute_script... [10:04: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)346947", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 20.720, "sum" : 1500.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:04:48]POST & json_proto [10:04:48]process_json_proto [10:04:48]json parsed OK: [10:04:48]protocol is kg_v1.0 [10:04:48]action value=close_receipt [10:04:48]process_action close_receipt [10:04:48]cmd_close_receipt [10:04:48]MH_GetDate [10:04:48]Write to MH i2c: F0 00 00 B8 6E 15 [10:04:48]Write i2c OK [10:04:48]MH_I2C_Read... [10:04:48]Read from MH i2c: F0 [10:04:48]MH_I2C_Read... [10:04:48]Read from MH i2c: F0 09 00 [10:04:48]MH_I2C_Read... [10:04:48]Read from MH i2c: F0 09 00 B8 6E 00 47 07 19 66 23 5B 8F 65 5D [10:04:48]GetLastDocTimeStamp 1712916169 [10:04:48]current date 1712916295 [10:04:48]FM_GetShiftState [10:04:48]SAM_PROTO_GetShiftState [10:04:48]wFMCommunicate request_size=4 [10:04:48]MH_SAM_APDU [10:04:48]CAPDU: 80 13 01 00 [10:04:48]Write to MH i2c: E2 08 00 B9 6E 80 13 01 00 00 00 00 00 A4 [10:04:48]Write i2c OK [10:04:48]MH_I2C_Read... [10:04:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:04:48]Read from MH i2c: E2 [10:04:48]MH_I2C_Read... [10:04:48]Read from MH i2c: E2 0E 00 [10:04:48]MH_I2C_Read... [10:04:48]Read from MH i2c: E2 0E 00 B9 6E 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 B5 [10:04:48]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [10:04:48]wFMCommunicate OK [10:04:48]SAM_PROTO_GetShiftState done [10:04:48]FM_GetShiftState done [10:04:48]opened in 1712881416 [10:04:48]opened+sec_in_day 1712967816 [10:04:48]quantity*price = 150012 [10:04:48]sum+1 = 150014 [10:04:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.27 НДС 12% : 159.31 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 77 12.04.2024 10:04 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28628 ФПД: 205548700725790 1/tax-web-control/client/api/v1/ticket?date=20240412T100455&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28628&fm=205548700725790&tin=02508201610067®Number=0000138879044617&sum=150000 [10:04:49]StoreToDocumentArchive [10:04:49]shift 113 fd 28628 [10:04:49]save to /storage/0113/doc_00028628 [10:04:49]save last doc name /storage/0113/doc_00028628 to /storage/kkm_last_doc_name [10:04:49]save OK [10:04:49]Clear old archive folders... [10:04:49]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:04:49]tlvbuf is 01AE5880 [10:04:49]SAM_PROTO_ClearQueue [10:04:49]wFMCommunicate request_size=4 [10:04:49]MH_SAM_APDU [10:04:49]CAPDU: 80 09 00 00 [10:04:49]Write to MH i2c: E2 08 00 C6 6E 80 09 00 00 00 00 00 00 A6 [10:04:49]Write i2c OK [10:04:49]MH_I2C_Read... [10:04:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:04:49]Read from MH i2c: E2 [10:04:49]MH_I2C_Read... [10:04:49]Read from MH i2c: E2 03 00 [10:04:49]MH_I2C_Read... [10:04:49]Read from MH i2c: E2 03 00 C6 6E 00 90 00 A8 [10:04:49]RAPDU: 90 00 [10:04:49]wFMCommunicate OK [10:04:49]SAM_PROTO_ClearQueue done [10:04:49]KKMCreateOFDPacket [10:04:49]OFDProtocolAddRootSTLVToBuf [10:04:49]FM_MakeSignedData [10:04:49]FM_MakeSignedData [10:04:49]SAM_PROTO_SignData [10:04:49]wFMCommunicate request_size=4 [10:04:49]MH_SAM_APDU [10:04:49]CAPDU: 80 0D 01 02 [10:04:49]Write to MH i2c: E2 08 00 C7 6E 80 0D 01 02 00 00 00 00 AE [10:04:49]Write i2c OK [10:04:49]MH_I2C_Read... [10:04:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:04:49]Read from MH i2c: E2 [10:04:49]MH_I2C_Read... [10:04:49]Read from MH i2c: E2 03 00 [10:04:49]MH_I2C_Read... [10:04:49]Read from MH i2c: E2 03 00 C7 6E 00 90 00 A9 [10:04:49]RAPDU: 90 00 [10:04:49]wFMCommunicate OK [10:04:49]wFMCommunicate request_size=255 [10:04:49]MH_SAM_APDU [10:04: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 35 FF 03 08 00 03 F0 50 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 FD 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 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 4D 00 00 00 F4 03 04 00 47 07 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D4 6F 00 00 35 04 06 00 BA F2 09 4A [10:04:49]Write to MH i2c: E2 02 01 C8 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 35 FF 03 08 00 03 F0 50 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 FD 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 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 4D 00 00 00 F4 03 04 00 47 07 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D4 6F 00 00 35 04 06 00 BA F2 09 4A 00 00 04 [10:04:49]Write i2c OK [10:04:49]MH_I2C_Read... [10:04:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:04:49]Read from MH i2c: E2 [10:04:49]MH_I2C_Read... [10:04:49]Read from MH i2c: E2 03 00 [10:04:49]MH_I2C_Read... [10:04:49]Read from MH i2c: E2 03 00 C8 6E 00 90 00 AA [10:04:49]RAPDU: 90 00 [10:04:49]wFMCommunicate OK [10:04:49]wFMCommunicate request_size=7 [10:04:49]MH_SAM_APDU [10:04:49]CAPDU: 80 0D 02 02 02 72 1E [10:04:49]Write to MH i2c: E2 0A 00 C9 6E 80 0D 02 02 02 00 72 1E 00 00 45 [10:04:49]Write i2c OK [10:04:49]MH_I2C_Read... [10:04:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:04:49]Read from MH i2c: E2 [10:04:49]MH_I2C_Read... [10:04:49]Read from MH i2c: E2 03 00 [10:04:49]MH_I2C_Read... [10:04:49]Read from MH i2c: E2 03 00 C9 6E 00 90 00 AB [10:04:49]RAPDU: 90 00 [10:04:49]wFMCommunicate OK [10:04:49]wFMCommunicate request_size=4 [10:04:49]MH_SAM_APDU [10:04:49]CAPDU: 80 0D 03 02 [10:04:49]Write to MH i2c: E2 08 00 CA 6E 80 0D 03 02 00 00 00 00 B3 [10:04:49]Write i2c OK [10:04:49]MH_I2C_Read... [10:04:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:04:49]Read from MH i2c: E2 [10:04:49]MH_I2C_Read... [10:04:49]Read from MH i2c: E2 0B 00 [10:04:49]MH_I2C_Read... [10:04:49]Read from MH i2c: E2 0B 00 CA 6E 00 DA 1B 1A D6 64 4A DD C2 90 00 E6 [10:04:49]RAPDU: DA 1B 1A D6 64 4A DD C2 90 00 [10:04:49]wFMCommunicate OK [10:04:49]SAM_PROTO_SignData done [10:04:49]FM_MakeSignedData done [10:04:49]CreateOFDProtocolMessage [10:04:49]wFMCommunicate request_size=4 [10:04:49]MH_SAM_APDU [10:04:49]CAPDU: 80 11 00 00 [10:04:49]Write to MH i2c: E2 08 00 CB 6E 80 11 00 00 00 00 00 00 B3 [10:04:49]Write i2c OK [10:04:49]MH_I2C_Read... [10:04:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:04:49]Read from MH i2c: E2 [10:04:49]MH_I2C_Read... [10:04:49]Read from MH i2c: E2 17 00 [10:04:49]MH_I2C_Read... [10:04:49]Read from MH i2c: E2 17 00 CB 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 02 [10:04:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:04:49]wFMCommunicate OK [10:04:49]CreateOFDProtocolMessage done [10:04:49]OFDSenderStorePacket 28628 [10:04:49]StoreOFDPacket docnum=28628 [10:04:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 75 51 04 01 60 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 35 FF 03 08 00 03 F0 50 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 FD 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 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 4D 00 00 00 F4 03 04 00 47 07 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D4 6F 00 00 35 04 06 00 BA F2 09 4A 72 1E DA 1B 1A D6 64 4A DD C2 [10:04:49]CheckFolder [10:04:49]dirname=/storage/ofd_packets [10:04:49]CheckFolder done [10:04:49]ProducePacketName [10:04:49]name=ofd_packets/00028628 [10:04:49]NVStorageSaveData ofd_packets/00028628 [10:04:49]File name is /storage/ofd_packets/00028628 [10:04:49]Write 298 bytes [10:04:49]NVStorageSaveData done [10:04:49]OFDSenderStorePacket done [10:04:49]KKMCreateOFDPacket done [10:04:49]NVStorageSaveData kkm_last_timestamp [10:04:49]File name is /storage/kkm_last_timestamp [10:04:49]Write 4 bytes [10:04:49]NVStorageSaveData done [10:04:49]ExternCall_PrintAddStr [10:04:49]wPrintStart [10:04:49]Write to MH i2c: 01 00 00 CC 6E 3A [10:04:49]OFD Sender: Processing packet 28628 [packets to send 8, broken 7] [10:04:49]ProducePacketName [10:04:49]name=ofd_packets/00028628 [10:04:49]OFD Sender: To server: pG, [10:04:49]CommunicateWithHost lk.salyk.kg:30040 [10:04:49]ConnectInit lk.salyk.kg [10:04:49]Write i2c OK [10:04:49]MH_I2C_Read... [10:04:49]Read from MH i2c: 01 [10:04:49]MH_I2C_Read... [10:04:49]Read from MH i2c: 01 07 00 [10:04:49]MH_I2C_Read... [10:04:49]Read from MH i2c: 01 07 00 CC 6E 00 00 00 00 00 FF 0F 4F [10:04:49]RasterBufferAndPrint [10:04:49]line Счет N : (1)346947 [10:04:49]line ИНН: 02508201610067 [10:04:49]line Контрольно-Кассовый Чек [10:04:49]line ПРОДАЖА [10:04:49]line ТРК (МРК, ГНК) : 51 [10:04:49]line Товар: 2710194210 [10:04:49]line ДТ-К-5 [10:04:49]line 20.720 * 72.40 [10:04:49]line = 1500.13 [10:04:49]line НДС 12% НСП 1% [10:04:49]line > о реализуемом товаре [10:04:49]line ОКРУГЛЕНИЕ: -0.13 [10:04:49]line ИТОГО: 1500.00 [10:04:49]line Внесено: 1500.00 [10:04:49]line СДАЧА: 0.00 [10:04:49]line НСП 1% : 13.27 [10:04:49]line НДС 12% : 159.31 [10:04:49]line Наличными: 1500.00 [10:04:49]line Безнал.: 0.00 [10:04:49]line Место: АЗС № 108 "Партнер Нефть" [10:04:49]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [10:04:49]line СНО: Общий режим [10:04:49]line Чек 77 12.04.2024 10:04 [10:04:49]line Смена: 113 ФФД: 1.0 [10:04:49]line ЗНМ: 0300000027 [10:04:49]line РНМ: 0000138879044617 [10:04:49]line Версия ККМ: 001 [10:04:49]line ФМ: 0000000000963154 [10:04:49]line ФД: 28628 [10:04:49]line ФПД: 205548700725790 [10:04:50]line 1/tax-web-control/client/api/v1/ticket?date=20240412T100455&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28628&fm=205548700725790&tin=02508201610067®Number=0000138879044617&sum=150000 [10:04:50]Connected sock=7 [10:04:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 75 51 04 01 60 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 35 FF 03 08 00 03 F0 50 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 FD 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 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 4D 00 00 00 F4 03 04 00 47 07 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D4 6F 00 00 35 04 06 00 BA F2 09 4A 72 1E DA 1B 1A D6 64 4A DD C2 [10:04:50]written 0, free lines is 4095 [10:04:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 10 5D 47 00 17 EA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D4 6F 00 00 F4 03 04 00 F2 B1 18 66 B6 04 01 00 00 28 8C 4A 15 30 00 8F 22 [10:04:50]CommunicateWithHost err = 0 [10:04:50]CheckOFDResponse [10:04:50]1017 (14) - 77093643461234 [10:04:50]1041 (16) - 0000000000963154 [10:04:50]1040 (4) - 28628 [10:04:50]1012 (4) - 12.04.2024 04:00 [10:04:50]1206 (1) - 0 [10:04:50]OFD Sender: Remove packet 28628 [10:04:50]ProducePacketName [10:04:50]name=ofd_packets/00028628 [10:04:50]NVStorageDeleteData [10:04:50]Write to MH i2c: 01 00 00 F6 6E 64 [10:04:50]Write i2c OK [10:04:50]MH_I2C_Read... [10:04:50]Read from MH i2c: 01 [10:04:50]MH_I2C_Read... [10:04:50]Read from MH i2c: 01 07 00 [10:04:50]MH_I2C_Read... [10:04:50]Read from MH i2c: 01 07 00 F6 6E 00 00 00 00 00 BC 0C 33 [10:04:50]RasterBufferAndPrint [10:04:50]line [10:04:50]line [10:04:50]line [10:04:50]line [10:04:50]line [10:04:50]written 0, free lines is 3267 [10:04:50]MH_Cut [10:04:50]Write to MH i2c: D1 01 00 FD 6E 01 3D [10:04:50]Write i2c OK [10:04:50]MH_I2C_Read... [10:04:50]Read from MH i2c: D1 [10:04:50]MH_I2C_Read... [10:04:50]Read from MH i2c: D1 01 00 [10:04:50]MH_I2C_Read... [10:04:50]Read from MH i2c: D1 01 00 FD 6E 00 3C [10:04:50]Write to MH i2c: 01 00 00 FE 6E 6C [10:04:50]Write i2c OK [10:04:50]MH_I2C_Read... [10:04:50]OFD Sender: No OFD packet to send [10:04:51]*** Cut start [10:04:51]*** Partial cut [10:04:51]*** CUTSNS_PIN = 1 [10:04:51]*** CUTSNS_PIN = 0 [10:04:51]*** Brake cut motor [10:04:52]Read from MH i2c: 01 [10:04:52]MH_I2C_Read... [10:04:52]*** Stop cut motor [10:04:52]*** Cut end [10:04:52]Read from MH i2c: 01 07 00 [10:04:52]MH_I2C_Read... [10:04:52]Read from MH i2c: 01 07 00 FE 6E 00 00 00 00 00 FF 0F 81 [10:04:52]process_action close_receipt done [10:04:52]requested_data is exist [10:04:52]produce_requested_data [10:04:52]requested_item fm.sn is exist - process it [10:04:52]wFMCommunicate request_size=4 [10:04:52]MH_SAM_APDU [10:04:52]CAPDU: 80 11 00 00 [10:04:52]Write to MH i2c: E2 08 00 FF 6E 80 11 00 00 00 00 00 00 E7 [10:04:52]Write i2c OK [10:04:52]MH_I2C_Read... [10:04:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:04:52]Read from MH i2c: E2 [10:04:52]MH_I2C_Read... [10:04:52]Read from MH i2c: E2 17 00 [10:04:52]MH_I2C_Read... [10:04:52]Read from MH i2c: E2 17 00 FF 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 36 [10:04:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:04:52]wFMCommunicate OK [10:04:52]requested_item fd.num is exist - process it [10:04:52]SAM_PROTO_GetFieldsCounters [10:04:52]wFMCommunicate request_size=4 [10:04:52]MH_SAM_APDU [10:04:52]CAPDU: 80 13 00 00 [10:04:52]Write to MH i2c: E2 08 00 00 6F 80 13 00 00 00 00 00 00 EB [10:04:52]Write i2c OK [10:04:52]MH_I2C_Read... [10:04:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:04:52]Read from MH i2c: E2 [10:04:52]MH_I2C_Read... [10:04:52]Read from MH i2c: E2 62 00 [10:04:52]MH_I2C_Read... [10:04:52]Read from MH i2c: E2 62 00 00 6F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 D4 6F 00 00 0E 04 04 00 71 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 C4 [10:04:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 D4 6F 00 00 0E 04 04 00 71 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 [10:04:52]wFMCommunicate OK [10:04:52]SAM_PROTO_GetFieldsCounters done [10:04:52]requested_item shift.num is exist - process it [10:04:52]requested_item shift.opened is exist - process it [10:04:52]req_shift_opened [10:04:52]FM_GetShiftState [10:04:52]SAM_PROTO_GetShiftState [10:04:52]wFMCommunicate request_size=4 [10:04:52]MH_SAM_APDU [10:04:52]CAPDU: 80 13 01 00 [10:04:52]Write to MH i2c: E2 08 00 01 6F 80 13 01 00 00 00 00 00 ED [10:04:52]Write i2c OK [10:04:52]MH_I2C_Read... [10:04:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:04:52]Read from MH i2c: E2 [10:04:52]MH_I2C_Read... [10:04:52]Read from MH i2c: E2 0E 00 [10:04:52]MH_I2C_Read... [10:04:52]Read from MH i2c: E2 0E 00 01 6F 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 FE [10:04:52]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [10:04:52]wFMCommunicate OK [10:04:52]SAM_PROTO_GetShiftState done [10:04:52]FM_GetShiftState done [10:04:52]req_shift_opened done [10:04:52]requested_item shift.open_date is exist - process it [10:04:52]req_shift_open_date [10:04:52]req_shift_open_date done [10:04:52]produce_requested_data done [10:04:52]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28628,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [10:04:52]process_action_free close_receipt [10:04:52]json_value_free [10:04:52]json_value_free done [10:04:52]process_json_proto returns [10:04:52]Send response to host [10:04:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28628,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [10:04:52]free response buf [10:04:52]execute_script done [10:04:52]execute_script returns [10:04:52]free content buf [10:04:52]Sock 6.Close socket [10:04:52]Sock 6.Thread stoped [10:04:55]OFD Sender: No OFD packet to send [10:05:00]OFD Sender: No OFD packet to send [10:05:05]OFD Sender: No OFD packet to send [10:05:10]OFD Sender: No OFD packet to send [10:05:15]OFD Sender: No OFD packet to send [10:05:20]OFD Sender: No OFD packet to send [10:05:25]OFD Sender: No OFD packet to send [10:05:30]OFD Sender: No OFD packet to send [10:05:35]OFD Sender: No OFD packet to send [10:05:40]OFD Sender: No OFD packet to send [10:05:41]accept exits with 5 [10:05:41]New connection [10:05:41]New thread 3066498404 created [10:05:41]Thread 3066641764 joined [10:05:41]Waiting for new connection... [10:05:41] Sock 5.Parse request [10:05:41]Sock 5.Check first char [10:05:41]Sock 5.First char is OK [10:05:41]request: POST /json_proto HTTP/1.0 [10:05:41]Method: POST [10:05:41]URL: /json_proto [10:05:41]Method is POST - this is cgi request [10:05:41]url: /json_proto [10:05:41]query_string will be loaded in cgi processing [10:05:41]execute_cgi json_proto POST (null) [10:05:41]execute_cgi path=json_proto method=POST [10:05:41]POST find Content-Length [10:05:41]Host: 172.17.33.3:8080 [10:05:41]Content-Length: 677 [10:05:41]Content-Type: application/json [10:05:41] [10:05:41]POST finish read [10:05:41]Found Content-Length = 677 [10:05:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346948", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 6.230, "sum" : 400.59, "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:05:41]execute_script... [10:05: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)346948", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 6.230, "sum" : 400.59, "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:05:41]POST & json_proto [10:05:41]process_json_proto [10:05:41]json parsed OK: [10:05:41]protocol is kg_v1.0 [10:05:41]action value=close_receipt [10:05:41]process_action close_receipt [10:05:41]cmd_close_receipt [10:05:41]MH_GetDate [10:05:41]Write to MH i2c: F0 00 00 02 6F 60 [10:05:41]Write i2c OK [10:05:41]MH_I2C_Read... [10:05:41]Read from MH i2c: F0 [10:05:41]MH_I2C_Read... [10:05:41]Read from MH i2c: F0 09 00 [10:05:41]MH_I2C_Read... [10:05:41]Read from MH i2c: F0 09 00 02 6F 00 7C 07 19 66 23 5B 8F 65 DD [10:05:41]GetLastDocTimeStamp 1712916295 [10:05:41]current date 1712916348 [10:05:41]FM_GetShiftState [10:05:41]SAM_PROTO_GetShiftState [10:05:41]wFMCommunicate request_size=4 [10:05:41]MH_SAM_APDU [10:05:41]CAPDU: 80 13 01 00 [10:05:41]Write to MH i2c: E2 08 00 03 6F 80 13 01 00 00 00 00 00 EF [10:05:41]Write i2c OK [10:05:41]MH_I2C_Read... [10:05:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:05:41]Read from MH i2c: E2 [10:05:41]MH_I2C_Read... [10:05:41]Read from MH i2c: E2 0E 00 [10:05:41]MH_I2C_Read... [10:05:41]Read from MH i2c: E2 0E 00 03 6F 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 00 [10:05:41]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [10:05:41]wFMCommunicate OK [10:05:41]SAM_PROTO_GetShiftState done [10:05:41]FM_GetShiftState done [10:05:41]opened in 1712881416 [10:05:41]opened+sec_in_day 1712967816 [10:05:41]quantity*price = 40058 [10:05:41]sum+1 = 40060 [10:05:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.54 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 78 12.04.2024 10:05 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28629 ФПД: 96335378310831 1/tax-web-control/client/api/v1/ticket?date=20240412T100548&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28629&fm=96335378310831&tin=02508201610067®Number=0000138879044617&sum=40000 [10:05:42]StoreToDocumentArchive [10:05:42]shift 113 fd 28629 [10:05:42]save to /storage/0113/doc_00028629 [10:05:42]save last doc name /storage/0113/doc_00028629 to /storage/kkm_last_doc_name [10:05:42]save OK [10:05:42]Clear old archive folders... [10:05:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:05:42]tlvbuf is 01ABC270 [10:05:42]SAM_PROTO_ClearQueue [10:05:42]wFMCommunicate request_size=4 [10:05:42]MH_SAM_APDU [10:05:42]CAPDU: 80 09 00 00 [10:05:42]Write to MH i2c: E2 08 00 10 6F 80 09 00 00 00 00 00 00 F1 [10:05:42]Write i2c OK [10:05:42]MH_I2C_Read... [10:05:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:05:42]Read from MH i2c: E2 [10:05:42]MH_I2C_Read... [10:05:42]Read from MH i2c: E2 03 00 [10:05:42]MH_I2C_Read... [10:05:42]Read from MH i2c: E2 03 00 10 6F 00 90 00 F3 [10:05:42]RAPDU: 90 00 [10:05:42]wFMCommunicate OK [10:05:42]SAM_PROTO_ClearQueue done [10:05:42]KKMCreateOFDPacket [10:05:42]OFDProtocolAddRootSTLVToBuf [10:05:42]FM_MakeSignedData [10:05:42]FM_MakeSignedData [10:05:42]SAM_PROTO_SignData [10:05:42]wFMCommunicate request_size=4 [10:05:42]MH_SAM_APDU [10:05:42]CAPDU: 80 0D 01 02 [10:05:42]Write to MH i2c: E2 08 00 11 6F 80 0D 01 02 00 00 00 00 F9 [10:05:42]Write i2c OK [10:05:42]MH_I2C_Read... [10:05:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:05:42]Read from MH i2c: E2 [10:05:42]MH_I2C_Read... [10:05:42]Read from MH i2c: E2 03 00 [10:05:42]MH_I2C_Read... [10:05:42]Read from MH i2c: E2 03 00 11 6F 00 90 00 F4 [10:05:42]RAPDU: 90 00 [10:05:42]wFMCommunicate OK [10:05:42]wFMCommunicate request_size=255 [10:05:42]MH_SAM_APDU [10:05:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 56 18 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 7B 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 9E 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 7C 07 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D5 6F 00 00 35 04 06 00 57 [10:05:42]Write to MH i2c: E2 02 01 12 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 35 FF 03 08 00 03 56 18 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 7B 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 9E 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 7C 07 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D5 6F 00 00 35 04 06 00 57 00 00 01 [10:05:42]Write i2c OK [10:05:42]MH_I2C_Read... [10:05:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:05:42]Read from MH i2c: E2 [10:05:42]MH_I2C_Read... [10:05:42]Read from MH i2c: E2 03 00 [10:05:42]MH_I2C_Read... [10:05:42]Read from MH i2c: E2 03 00 12 6F 00 90 00 F5 [10:05:42]RAPDU: 90 00 [10:05:42]wFMCommunicate OK [10:05:42]wFMCommunicate request_size=10 [10:05:42]MH_SAM_APDU [10:05:42]CAPDU: 80 0D 02 02 05 9D D4 00 E6 AF [10:05:42]Write to MH i2c: E2 0D 00 13 6F 80 0D 02 02 05 00 9D D4 00 E6 AF 00 00 0C [10:05:42]Write i2c OK [10:05:42]MH_I2C_Read... [10:05:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:05:42]Read from MH i2c: E2 [10:05:42]MH_I2C_Read... [10:05:42]Read from MH i2c: E2 03 00 [10:05:42]MH_I2C_Read... [10:05:42]Read from MH i2c: E2 03 00 13 6F 00 90 00 F6 [10:05:42]RAPDU: 90 00 [10:05:42]wFMCommunicate OK [10:05:42]wFMCommunicate request_size=4 [10:05:42]MH_SAM_APDU [10:05:42]CAPDU: 80 0D 03 02 [10:05:42]Write to MH i2c: E2 08 00 14 6F 80 0D 03 02 00 00 00 00 FE [10:05:42]Write i2c OK [10:05:42]MH_I2C_Read... [10:05:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:05:43]Read from MH i2c: E2 [10:05:43]MH_I2C_Read... [10:05:43]Read from MH i2c: E2 0B 00 [10:05:43]MH_I2C_Read... [10:05:43]Read from MH i2c: E2 0B 00 14 6F 00 D5 46 40 F0 66 3D 27 EF 90 00 03 [10:05:43]RAPDU: D5 46 40 F0 66 3D 27 EF 90 00 [10:05:43]wFMCommunicate OK [10:05:43]SAM_PROTO_SignData done [10:05:43]FM_MakeSignedData done [10:05:43]CreateOFDProtocolMessage [10:05:43]wFMCommunicate request_size=4 [10:05:43]MH_SAM_APDU [10:05:43]CAPDU: 80 11 00 00 [10:05:43]Write to MH i2c: E2 08 00 15 6F 80 11 00 00 00 00 00 00 FE [10:05:43]Write i2c OK [10:05:43]MH_I2C_Read... [10:05:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:05:43]Read from MH i2c: E2 [10:05:43]MH_I2C_Read... [10:05:43]Read from MH i2c: E2 17 00 [10:05:43]MH_I2C_Read... [10:05:43]Read from MH i2c: E2 17 00 15 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 4D [10:05:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:05:43]wFMCommunicate OK [10:05:43]CreateOFDProtocolMessage done [10:05:43]OFDSenderStorePacket 28629 [10:05:43]StoreOFDPacket docnum=28629 [10:05:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 66 3F 07 01 5E 2E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 56 18 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 7B 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 9E 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 7C 07 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D5 6F 00 00 35 04 06 00 57 9D D4 00 E6 AF D5 46 40 F0 66 3D 27 EF [10:05:43]CheckFolder [10:05:43]dirname=/storage/ofd_packets [10:05:43]CheckFolder done [10:05:43]ProducePacketName [10:05:43]name=ofd_packets/00028629 [10:05:43]NVStorageSaveData ofd_packets/00028629 [10:05:43]File name is /storage/ofd_packets/00028629 [10:05:43]Write 301 bytes [10:05:43]NVStorageSaveData done [10:05:43]OFDSenderStorePacket done [10:05:43]KKMCreateOFDPacket done [10:05:43]NVStorageSaveData kkm_last_timestamp [10:05:43]File name is /storage/kkm_last_timestamp [10:05:43]Write 4 bytes [10:05:43]NVStorageSaveData done [10:05:43]ExternCall_PrintAddStr [10:05:43]wPrintStart [10:05:43]Write to MH i2c: 01 00 00 16 6F 85 [10:05:43]Write i2c OK [10:05:43]MH_I2C_Read... [10:05:43]Read from MH i2c: 01 [10:05:43]MH_I2C_Read... [10:05:43]Read from MH i2c: 01 07 00 [10:05:43]MH_I2C_Read... [10:05:43]Read from MH i2c: 01 07 00 16 6F 00 00 00 00 00 FF 0F 9A [10:05:43]RasterBufferAndPrint [10:05:43]line Счет N : (1)346948 [10:05:43]line ИНН: 02508201610067 [10:05:43]line Контрольно-Кассовый Чек [10:05:43]line ПРОДАЖА [10:05:43]line ТРК (МРК, ГНК) : 42 [10:05:43]line Товар: 2710124130 [10:05:43]line Аи-92-К-5 [10:05:43]line 6.230 * 64.30 [10:05:43]line = 400.59 [10:05:43]line НДС 12% НСП 1% [10:05:43]line > о реализуемом товаре [10:05:43]line ОКРУГЛЕНИЕ: -0.59 [10:05:43]line ИТОГО: 400.00 [10:05:43]line Внесено: 400.00 [10:05:43]line СДАЧА: 0.00 [10:05:43]line НСП 1% : 3.54 [10:05:43]line НДС 12% : 42.54 [10:05:43]line Наличными: 400.00 [10:05:43]line Безнал.: 0.00 [10:05:43]line Место: АЗС № 108 "Партнер Нефть" [10:05:43]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [10:05:43]line СНО: Общий режим [10:05:43]line Чек 78 12.04.2024 10:05 [10:05:43]line Смена: 113 ФФД: 1.0 [10:05:43]line ЗНМ: 0300000027 [10:05:43]line РНМ: 0000138879044617 [10:05:43]line Версия ККМ: 001 [10:05:43]line ФМ: 0000000000963154 [10:05:43]line ФД: 28629 [10:05:43]line ФПД: 96335378310831 [10:05:43]line 1/tax-web-control/client/api/v1/ticket?date=20240412T100548&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28629&fm=96335378310831&tin=02508201610067®Number=0000138879044617&sum=40000 [10:05:43]OFD Sender: Processing packet 28629 [packets to send 8, broken 7] [10:05:43]ProducePacketName [10:05:43]name=ofd_packets/00028629 [10:05:43]OFD Sender: To server: pG, [10:05:43]CommunicateWithHost lk.salyk.kg:30040 [10:05:43]ConnectInit lk.salyk.kg [10:05:43]written 0, free lines is 4095 [10:05:43]Connected sock=7 [10:05:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 66 3F 07 01 5E 2E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 56 18 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 7B 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 9E 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 7C 07 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D5 6F 00 00 35 04 06 00 57 9D D4 00 E6 AF D5 46 40 F0 66 3D 27 EF [10:05:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 C0 03 47 00 D5 70 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D5 6F 00 00 F4 03 04 00 27 B2 18 66 B6 04 01 00 00 A2 F2 9B C2 75 09 5B CD [10:05:43]CommunicateWithHost err = 0 [10:05:43]CheckOFDResponse [10:05:43]1017 (14) - 77093643461234 [10:05:43]1041 (16) - 0000000000963154 [10:05:43]1040 (4) - 28629 [10:05:43]1012 (4) - 12.04.2024 04:01 [10:05:43]1206 (1) - 0 [10:05:43]OFD Sender: Remove packet 28629 [10:05:43]ProducePacketName [10:05:43]name=ofd_packets/00028629 [10:05:43]NVStorageDeleteData [10:05:43]Write to MH i2c: 01 00 00 40 6F AF [10:05:43]Write i2c OK [10:05:43]MH_I2C_Read... [10:05:43]Read from MH i2c: 01 [10:05:43]MH_I2C_Read... [10:05:43]Read from MH i2c: 01 07 00 [10:05:43]MH_I2C_Read... [10:05:43]Read from MH i2c: 01 07 00 40 6F 00 00 00 00 00 D3 0C 95 [10:05:43]RasterBufferAndPrint [10:05:43]line [10:05:43]line [10:05:43]line [10:05:43]line [10:05:43]line [10:05:43]written 0, free lines is 3288 [10:05:43]MH_Cut [10:05:43]Write to MH i2c: D1 01 00 47 6F 01 88 [10:05:43]Write i2c OK [10:05:43]MH_I2C_Read... [10:05:43]Read from MH i2c: D1 [10:05:43]MH_I2C_Read... [10:05:43]Read from MH i2c: D1 01 00 [10:05:43]MH_I2C_Read... [10:05:43]Read from MH i2c: D1 01 00 47 6F 00 87 [10:05:43]Write to MH i2c: 01 00 00 48 6F B7 [10:05:43]Write i2c OK [10:05:43]MH_I2C_Read... [10:05:44]OFD Sender: No OFD packet to send [10:05:44]*** Cut start [10:05:44]*** Partial cut [10:05:44]*** CUTSNS_PIN = 1 [10:05:44]*** CUTSNS_PIN = 0 [10:05:44]*** Brake cut motor [10:05:45]Read from MH i2c: 01 [10:05:45]MH_I2C_Read... [10:05:45]*** Stop cut motor [10:05:45]*** Cut end [10:05:45]Read from MH i2c: 01 07 00 [10:05:45]MH_I2C_Read... [10:05:45]Read from MH i2c: 01 07 00 48 6F 00 00 00 00 00 FF 0F CC [10:05:45]process_action close_receipt done [10:05:45]requested_data is exist [10:05:45]produce_requested_data [10:05:45]requested_item fm.sn is exist - process it [10:05:45]wFMCommunicate request_size=4 [10:05:45]MH_SAM_APDU [10:05:45]CAPDU: 80 11 00 00 [10:05:45]Write to MH i2c: E2 08 00 49 6F 80 11 00 00 00 00 00 00 32 [10:05:45]Write i2c OK [10:05:45]MH_I2C_Read... [10:05:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:05:45]Read from MH i2c: E2 [10:05:45]MH_I2C_Read... [10:05:45]Read from MH i2c: E2 17 00 [10:05:45]MH_I2C_Read... [10:05:45]Read from MH i2c: E2 17 00 49 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 81 [10:05:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:05:45]wFMCommunicate OK [10:05:45]requested_item fd.num is exist - process it [10:05:45]SAM_PROTO_GetFieldsCounters [10:05:45]wFMCommunicate request_size=4 [10:05:45]MH_SAM_APDU [10:05:45]CAPDU: 80 13 00 00 [10:05:45]Write to MH i2c: E2 08 00 4A 6F 80 13 00 00 00 00 00 00 35 [10:05:45]Write i2c OK [10:05:45]MH_I2C_Read... [10:05:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:05:45]Read from MH i2c: E2 [10:05:45]MH_I2C_Read... [10:05:45]Read from MH i2c: E2 62 00 [10:05:45]MH_I2C_Read... [10:05:45]Read from MH i2c: E2 62 00 4A 6F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 D5 6F 00 00 0E 04 04 00 71 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 12 [10:05:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 D5 6F 00 00 0E 04 04 00 71 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 [10:05:45]wFMCommunicate OK [10:05:45]SAM_PROTO_GetFieldsCounters done [10:05:45]requested_item shift.num is exist - process it [10:05:45]requested_item shift.opened is exist - process it [10:05:45]req_shift_opened [10:05:45]FM_GetShiftState [10:05:45]SAM_PROTO_GetShiftState [10:05:45]wFMCommunicate request_size=4 [10:05:45]MH_SAM_APDU [10:05:45]CAPDU: 80 13 01 00 [10:05:45]Write to MH i2c: E2 08 00 4B 6F 80 13 01 00 00 00 00 00 37 [10:05:45]Write i2c OK [10:05:45]MH_I2C_Read... [10:05:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:05:45]Read from MH i2c: E2 [10:05:45]MH_I2C_Read... [10:05:45]Read from MH i2c: E2 0E 00 [10:05:45]MH_I2C_Read... [10:05:45]Read from MH i2c: E2 0E 00 4B 6F 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 48 [10:05:45]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [10:05:45]wFMCommunicate OK [10:05:45]SAM_PROTO_GetShiftState done [10:05:45]FM_GetShiftState done [10:05:45]req_shift_opened done [10:05:45]requested_item shift.open_date is exist - process it [10:05:45]req_shift_open_date [10:05:45]req_shift_open_date done [10:05:45]produce_requested_data done [10:05:45]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28629,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [10:05:45]process_action_free close_receipt [10:05:45]json_value_free [10:05:45]json_value_free done [10:05:45]process_json_proto returns [10:05:45]Send response to host [10:05:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28629,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [10:05:45]free response buf [10:05:45]execute_script done [10:05:45]execute_script returns [10:05:45]free content buf [10:05:45]Sock 5.Close socket [10:05:45]Sock 5.Thread stoped [10:05:49]OFD Sender: No OFD packet to send [10:05:54]OFD Sender: No OFD packet to send [10:05:59]OFD Sender: No OFD packet to send [10:06:04]OFD Sender: No OFD packet to send [10:06:09]OFD Sender: No OFD packet to send [10:06:14]OFD Sender: No OFD packet to send [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:04]OFD Sender: No OFD packet to send [10:07:09]OFD Sender: No OFD packet to send [10:07:14]OFD Sender: No OFD packet to send [10:07:19]OFD Sender: No OFD packet to send [10:07:24]OFD Sender: No OFD packet to send [10:07:29]OFD Sender: No OFD packet to send [10:07:34]OFD Sender: No OFD packet to send [10:07:39]OFD Sender: No OFD packet to send [10:07:44]OFD Sender: No OFD packet to send [10:07:49]OFD Sender: No OFD packet to send [10:07:54]OFD Sender: No OFD packet to send [10:07:59]OFD Sender: No OFD packet to send [10:08:04]OFD Sender: No OFD packet to send [10:08:09]OFD Sender: No OFD packet to send [10:08:14]OFD Sender: No OFD packet to send [10:08:19]OFD Sender: No OFD packet to send [10:08:24]OFD Sender: No OFD packet to send [10:08:29]OFD Sender: No OFD packet to send [10:08:34]OFD Sender: No OFD packet to send [10:08:39]OFD Sender: No OFD packet to send [10:08:44]OFD Sender: No OFD packet to send [10:08:49]OFD Sender: No OFD packet to send [10:08:54]OFD Sender: No OFD packet to send [10:08:59]OFD Sender: No OFD packet to send [10:09:04]OFD Sender: No OFD packet to send [10:09:09]OFD Sender: No OFD packet to send [10:09:14]OFD Sender: No OFD packet to send [10:09:19]OFD Sender: No OFD packet to send [10:09:24]OFD Sender: No OFD packet to send [10:09:29]OFD Sender: No OFD packet to send [10:09:34]OFD Sender: No OFD packet to send [10:09:38]accept exits with 6 [10:09:38]New connection [10:09:38]New thread 3066641764 created [10:09:38]Thread 3066498404 joined [10:09:38]Waiting for new connection... [10:09:38] Sock 6.Parse request [10:09:38]Sock 6.Check first char [10:09:38]Sock 6.First char is OK [10:09:38]request: POST /json_proto HTTP/1.0 [10:09:38]Method: POST [10:09:38]URL: /json_proto [10:09:38]Method is POST - this is cgi request [10:09:38]url: /json_proto [10:09:38]query_string will be loaded in cgi processing [10:09:38]execute_cgi json_proto POST (null) [10:09:38]execute_cgi path=json_proto method=POST [10:09:38]POST find Content-Length [10:09:38]Host: 172.17.33.3:8080 [10:09:38]Content-Length: 841 [10:09:38]Content-Type: application/json [10:09:38] [10:09:38]POST finish read [10:09:38]Found Content-Length = 841 [10:09:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346949", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 10.000, "sum" : 643.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 643.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:09:38]execute_script... [10:09: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)346949", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 10.000, "sum" : 643.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 643.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:09:38]POST & json_proto [10:09:38]process_json_proto [10:09:38]json parsed OK: [10:09:38]protocol is kg_v1.0 [10:09:38]action value=close_receipt [10:09:38]process_action close_receipt [10:09:38]cmd_close_receipt [10:09:38]MH_GetDate [10:09:38]Write to MH i2c: F0 00 00 4C 6F AA [10:09:38]Write i2c OK [10:09:38]MH_I2C_Read... [10:09:38]Read from MH i2c: F0 [10:09:38]MH_I2C_Read... [10:09:38]Read from MH i2c: F0 09 00 [10:09:38]MH_I2C_Read... [10:09:38]Read from MH i2c: F0 09 00 4C 6F 00 69 08 19 66 23 5B 8F 65 15 [10:09:38]GetLastDocTimeStamp 1712916348 [10:09:38]current date 1712916585 [10:09:38]FM_GetShiftState [10:09:38]SAM_PROTO_GetShiftState [10:09:38]wFMCommunicate request_size=4 [10:09:38]MH_SAM_APDU [10:09:38]CAPDU: 80 13 01 00 [10:09:38]Write to MH i2c: E2 08 00 4D 6F 80 13 01 00 00 00 00 00 39 [10:09:38]Write i2c OK [10:09:38]MH_I2C_Read... [10:09:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:09:38]Read from MH i2c: E2 [10:09:38]MH_I2C_Read... [10:09:38]Read from MH i2c: E2 0E 00 [10:09:38]MH_I2C_Read... [10:09:38]Read from MH i2c: E2 0E 00 4D 6F 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 4A [10:09:38]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [10:09:38]wFMCommunicate OK [10:09:38]SAM_PROTO_GetShiftState done [10:09:38]FM_GetShiftState done [10:09:38]opened in 1712881416 [10:09:38]opened+sec_in_day 1712967816 [10:09:38]quantity*price = 64300 [10:09:38]sum+1 = 64301 [10:09:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 643.00 НСП 1% : 5.69 НДС 12% : 68.28 Наличными: 0.00 Безнал.: 643.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 79 12.04.2024 10:09 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 28630 ФПД: 226970834922267 1/tax-web-control/client/api/v1/ticket?date=20240412T100945&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28630&fm=226970834922267&tin=02508201610067®Number=0000138879044617&sum=64300 [10:09:39]StoreToDocumentArchive [10:09:39]shift 113 fd 28630 [10:09:39]save to /storage/0113/doc_00028630 [10:09:39]save last doc name /storage/0113/doc_00028630 to /storage/kkm_last_doc_name [10:09:39]save OK [10:09:39]Clear old archive folders... [10:09:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:09:39]tlvbuf is 01ABC030 [10:09:39]SAM_PROTO_ClearQueue [10:09:39]wFMCommunicate request_size=4 [10:09:39]MH_SAM_APDU [10:09:39]CAPDU: 80 09 00 00 [10:09:39]Write to MH i2c: E2 08 00 5A 6F 80 09 00 00 00 00 00 00 3B [10:09:39]Write i2c OK [10:09:39]MH_I2C_Read... [10:09:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:09:39]Read from MH i2c: E2 [10:09:39]MH_I2C_Read... [10:09:39]Read from MH i2c: E2 03 00 [10:09:39]MH_I2C_Read... [10:09:39]Read from MH i2c: E2 03 00 5A 6F 00 90 00 3D [10:09:39]RAPDU: 90 00 [10:09:39]wFMCommunicate OK [10:09:39]SAM_PROTO_ClearQueue done [10:09:39]KKMCreateOFDPacket [10:09:39]OFDProtocolAddRootSTLVToBuf [10:09:39]FM_MakeSignedData [10:09:39]FM_MakeSignedData [10:09:39]SAM_PROTO_SignData [10:09:39]wFMCommunicate request_size=4 [10:09:39]MH_SAM_APDU [10:09:39]CAPDU: 80 0D 01 02 [10:09:39]Write to MH i2c: E2 08 00 5B 6F 80 0D 01 02 00 00 00 00 43 [10:09:39]Write i2c OK [10:09:39]MH_I2C_Read... [10:09:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:09:39]Read from MH i2c: E2 [10:09:39]MH_I2C_Read... [10:09:39]Read from MH i2c: E2 03 00 [10:09:39]MH_I2C_Read... [10:09:39]Read from MH i2c: E2 03 00 5B 6F 00 90 00 3E [10:09:39]RAPDU: 90 00 [10:09:39]wFMCommunicate OK [10:09:39]wFMCommunicate request_size=255 [10:09:39]MH_SAM_APDU [10:09:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 2C FB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C FB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C FB 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 69 08 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D6 6F 00 00 35 04 06 00 CE [10:09:39]Write to MH i2c: E2 02 01 5C 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 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 2C FB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C FB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C FB 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 69 08 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D6 6F 00 00 35 04 06 00 CE 00 00 11 [10:09:39]Write i2c OK [10:09:39]MH_I2C_Read... [10:09:39]OFD Sender: No OFD packet to send [10:09:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:09:39]Read from MH i2c: E2 [10:09:39]MH_I2C_Read... [10:09:39]Read from MH i2c: E2 03 00 [10:09:39]MH_I2C_Read... [10:09:39]Read from MH i2c: E2 03 00 5C 6F 00 90 00 3F [10:09:39]RAPDU: 90 00 [10:09:39]wFMCommunicate OK [10:09:39]wFMCommunicate request_size=10 [10:09:39]MH_SAM_APDU [10:09:39]CAPDU: 80 0D 02 02 05 6D C3 FD 6B 1B [10:09:39]Write to MH i2c: E2 0D 00 5D 6F 80 0D 02 02 05 00 6D C3 FD 6B 1B 00 00 03 [10:09:39]Write i2c OK [10:09:39]MH_I2C_Read... [10:09:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:09:39]Read from MH i2c: E2 [10:09:39]MH_I2C_Read... [10:09:39]Read from MH i2c: E2 03 00 [10:09:39]MH_I2C_Read... [10:09:39]Read from MH i2c: E2 03 00 5D 6F 00 90 00 40 [10:09:39]RAPDU: 90 00 [10:09:39]wFMCommunicate OK [10:09:39]wFMCommunicate request_size=4 [10:09:39]MH_SAM_APDU [10:09:39]CAPDU: 80 0D 03 02 [10:09:39]Write to MH i2c: E2 08 00 5E 6F 80 0D 03 02 00 00 00 00 48 [10:09:39]Write i2c OK [10:09:39]MH_I2C_Read... [10:09:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:09:39]Read from MH i2c: E2 [10:09:39]MH_I2C_Read... [10:09:39]Read from MH i2c: E2 0B 00 [10:09:39]MH_I2C_Read... [10:09:39]Read from MH i2c: E2 0B 00 5E 6F 00 CF 53 9A E4 C8 59 07 1E 90 00 2F [10:09:39]RAPDU: CF 53 9A E4 C8 59 07 1E 90 00 [10:09:39]wFMCommunicate OK [10:09:39]SAM_PROTO_SignData done [10:09:39]FM_MakeSignedData done [10:09:39]CreateOFDProtocolMessage [10:09:39]wFMCommunicate request_size=4 [10:09:39]MH_SAM_APDU [10:09:39]CAPDU: 80 11 00 00 [10:09:39]Write to MH i2c: E2 08 00 5F 6F 80 11 00 00 00 00 00 00 48 [10:09:39]Write i2c OK [10:09:39]MH_I2C_Read... [10:09:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:09:39]Read from MH i2c: E2 [10:09:39]MH_I2C_Read... [10:09:39]Read from MH i2c: E2 17 00 [10:09:39]MH_I2C_Read... [10:09:39]Read from MH i2c: E2 17 00 5F 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 97 [10:09:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:09:39]wFMCommunicate OK [10:09:39]CreateOFDProtocolMessage done [10:09:39]OFDSenderStorePacket 28630 [10:09:39]StoreOFDPacket docnum=28630 [10:09:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 22 84 07 01 F6 D4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 2C FB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C FB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C FB 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 69 08 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D6 6F 00 00 35 04 06 00 CE 6D C3 FD 6B 1B CF 53 9A E4 C8 59 07 1E [10:09:39]CheckFolder [10:09:39]dirname=/storage/ofd_packets [10:09:39]CheckFolder done [10:09:39]ProducePacketName [10:09:39]name=ofd_packets/00028630 [10:09:39]NVStorageSaveData ofd_packets/00028630 [10:09:39]File name is /storage/ofd_packets/00028630 [10:09:39]Write 301 bytes [10:09:39]NVStorageSaveData done [10:09:39]OFDSenderStorePacket done [10:09:39]KKMCreateOFDPacket done [10:09:39]NVStorageSaveData kkm_last_timestamp [10:09:39]File name is /storage/kkm_last_timestamp [10:09:39]Write 4 bytes [10:09:39]NVStorageSaveData done [10:09:39]ExternCall_PrintAddStr [10:09:39]wPrintStart [10:09:39]Write to MH i2c: 01 00 00 60 6F CF [10:09:39]Write i2c OK [10:09:39]MH_I2C_Read... [10:09:39]Read from MH i2c: 01 [10:09:39]MH_I2C_Read... [10:09:39]Read from MH i2c: 01 07 00 [10:09:39]MH_I2C_Read... [10:09:39]Read from MH i2c: 01 07 00 60 6F 00 00 00 00 00 FF 0F E4 [10:09:39]RasterBufferAndPrint [10:09:39]line Счет N : (1)346949 [10:09:39]line ИНН: 02508201610067 [10:09:39]line Контрольно-Кассовый Чек [10:09:39]line ПРОДАЖА [10:09:39]line ТРК (МРК, ГНК) : 32 [10:09:39]line Товар: 2710124130 [10:09:39]line Аи-92-К-5 [10:09:39]line 10.000 * 64.30 [10:09:39]line = 643.00 [10:09:39]line НДС 12% НСП 1% [10:09:39]line > о реализуемом товаре [10:09:39]line ИТОГО: 643.00 [10:09:39]line НСП 1% : 5.69 [10:09:39]line НДС 12% : 68.28 [10:09:39]line Наличными: 0.00 [10:09:39]line Безнал.: 643.00 [10:09:39]line Место: АЗС № 108 "Партнер Нефть" [10:09:39]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [10:09:39]line СНО: Общий режим [10:09:39]line Чек 79 12.04.2024 10:09 [10:09:39]line Смена: 113 ФФД: 1.0 [10:09:39]line ЗНМ: 0300000027 [10:09:39]line РНМ: 0000138879044617 [10:09:39]line Версия ККМ: 001 [10:09:39]line Платежная система: АКБ Кыргызстан [10:09:39]line ФМ: 0000000000963154 [10:09:39]line ФД: 28630 [10:09:39]line ФПД: 226970834922267 [10:09:40]line 1/tax-web-control/client/api/v1/ticket?date=20240412T100945&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28630&fm=226970834922267&tin=02508201610067®Number=0000138879044617&sum=64300 [10:09:40]OFD Sender: Processing packet 28630 [packets to send 8, broken 7] [10:09:40]ProducePacketName [10:09:40]name=ofd_packets/00028630 [10:09:40]OFD Sender: To server: pG, [10:09:40]CommunicateWithHost lk.salyk.kg:30040 [10:09:40]ConnectInit lk.salyk.kg [10:09:40]written 0, free lines is 4095 [10:09:40]Connected sock=7 [10:09:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 22 84 07 01 F6 D4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 2C FB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C FB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C FB 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 69 08 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D6 6F 00 00 35 04 06 00 CE 6D C3 FD 6B 1B CF 53 9A E4 C8 59 07 1E [10:09:40]Write to MH i2c: 01 00 00 89 6F F8 [10:09:40]Write i2c OK [10:09:40]MH_I2C_Read... [10:09:40]Read from MH i2c: 01 [10:09:40]MH_I2C_Read... [10:09:40]Read from MH i2c: 01 07 00 [10:09:40]MH_I2C_Read... [10:09:40]Read from MH i2c: 01 07 00 89 6F 00 00 00 00 00 EF 0C FA [10:09:40]RasterBufferAndPrint [10:09:40]line [10:09:40]line [10:09:40]line [10:09:40]line [10:09:40]line [10:09:40]written 0, free lines is 3317 [10:09:40]MH_Cut [10:09:40]Write to MH i2c: D1 01 00 90 6F 01 D1 [10:09:40]Write i2c OK [10:09:40]MH_I2C_Read... [10:09:40]Read from MH i2c: D1 [10:09:40]MH_I2C_Read... [10:09:40]Read from MH i2c: D1 01 00 [10:09:40]MH_I2C_Read... [10:09:40]Read from MH i2c: D1 01 00 90 6F 00 D0 [10:09:40]Write to MH i2c: 01 00 00 91 6F 00 [10:09:40]Write i2c OK [10:09:40]MH_I2C_Read... [10:09:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 10 E0 47 00 13 50 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D6 6F 00 00 F4 03 04 00 14 B3 18 66 B6 04 01 00 00 51 75 D6 A0 54 83 46 58 [10:09:40]CommunicateWithHost err = 0 [10:09:40]CheckOFDResponse [10:09:40]1017 (14) - 77093643461234 [10:09:40]1041 (16) - 0000000000963154 [10:09:40]1040 (4) - 28630 [10:09:40]1012 (4) - 12.04.2024 04:05 [10:09:40]1206 (1) - 0 [10:09:40]OFD Sender: Remove packet 28630 [10:09:40]ProducePacketName [10:09:40]name=ofd_packets/00028630 [10:09:40]NVStorageDeleteData [10:09:41]OFD Sender: No OFD packet to send [10:09:41]*** Cut start [10:09:41]*** Partial cut [10:09:41]*** CUTSNS_PIN = 1 [10:09:41]*** CUTSNS_PIN = 0 [10:09:41]*** Brake cut motor [10:09:41]Read from MH i2c: 01 [10:09:41]MH_I2C_Read... [10:09:41]*** Stop cut motor [10:09:41]*** Cut end [10:09:41]Read from MH i2c: 01 07 00 [10:09:41]MH_I2C_Read... [10:09:41]Read from MH i2c: 01 07 00 91 6F 00 00 00 00 00 FF 0F 15 [10:09:41]process_action close_receipt done [10:09:41]requested_data is exist [10:09:41]produce_requested_data [10:09:41]requested_item fm.sn is exist - process it [10:09:41]wFMCommunicate request_size=4 [10:09:41]MH_SAM_APDU [10:09:41]CAPDU: 80 11 00 00 [10:09:41]Write to MH i2c: E2 08 00 92 6F 80 11 00 00 00 00 00 00 7B [10:09:41]Write i2c OK [10:09:41]MH_I2C_Read... [10:09:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:09:42]Read from MH i2c: E2 [10:09:42]MH_I2C_Read... [10:09:42]Read from MH i2c: E2 17 00 [10:09:42]MH_I2C_Read... [10:09:42]Read from MH i2c: E2 17 00 92 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 CA [10:09:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:09:42]wFMCommunicate OK [10:09:42]requested_item fd.num is exist - process it [10:09:42]SAM_PROTO_GetFieldsCounters [10:09:42]wFMCommunicate request_size=4 [10:09:42]MH_SAM_APDU [10:09:42]CAPDU: 80 13 00 00 [10:09:42]Write to MH i2c: E2 08 00 93 6F 80 13 00 00 00 00 00 00 7E [10:09:42]Write i2c OK [10:09:42]MH_I2C_Read... [10:09:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:09:42]Read from MH i2c: E2 [10:09:42]MH_I2C_Read... [10:09:42]Read from MH i2c: E2 62 00 [10:09:42]MH_I2C_Read... [10:09:42]Read from MH i2c: E2 62 00 93 6F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 D6 6F 00 00 0E 04 04 00 71 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 5F [10:09:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 D6 6F 00 00 0E 04 04 00 71 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 [10:09:42]wFMCommunicate OK [10:09:42]SAM_PROTO_GetFieldsCounters done [10:09:42]requested_item shift.num is exist - process it [10:09:42]requested_item shift.opened is exist - process it [10:09:42]req_shift_opened [10:09:42]FM_GetShiftState [10:09:42]SAM_PROTO_GetShiftState [10:09:42]wFMCommunicate request_size=4 [10:09:42]MH_SAM_APDU [10:09:42]CAPDU: 80 13 01 00 [10:09:42]Write to MH i2c: E2 08 00 94 6F 80 13 01 00 00 00 00 00 80 [10:09:42]Write i2c OK [10:09:42]MH_I2C_Read... [10:09:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:09:42]Read from MH i2c: E2 [10:09:42]MH_I2C_Read... [10:09:42]Read from MH i2c: E2 0E 00 [10:09:42]MH_I2C_Read... [10:09:42]Read from MH i2c: E2 0E 00 94 6F 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 91 [10:09:42]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [10:09:42]wFMCommunicate OK [10:09:42]SAM_PROTO_GetShiftState done [10:09:42]FM_GetShiftState done [10:09:42]req_shift_opened done [10:09:42]requested_item shift.open_date is exist - process it [10:09:42]req_shift_open_date [10:09:42]req_shift_open_date done [10:09:42]produce_requested_data done [10:09:42]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28630,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [10:09:42]process_action_free close_receipt [10:09:42]json_value_free [10:09:42]json_value_free done [10:09:42]process_json_proto returns [10:09:42]Send response to host [10:09:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28630,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [10:09:42]free response buf [10:09:42]execute_script done [10:09:42]execute_script returns [10:09:42]free content buf [10:09:42]Sock 6.Close socket [10:09:42]Sock 6.Thread stoped [10:09:46]OFD Sender: No OFD packet to send [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:34]accept exits with 5 [10:10:34]New connection [10:10:34]New thread 3066498404 created [10:10:34]Thread 3066641764 joined [10:10:34]Waiting for new connection... [10:10:34] Sock 5.Parse request [10:10:34]Sock 5.Check first char [10:10:34]Sock 5.First char is OK [10:10:34]request: POST /json_proto HTTP/1.0 [10:10:34]Method: POST [10:10:34]URL: /json_proto [10:10:34]Method is POST - this is cgi request [10:10:34]url: /json_proto [10:10:34]query_string will be loaded in cgi processing [10:10:34]execute_cgi json_proto POST (null) [10:10:34]execute_cgi path=json_proto method=POST [10:10:34]POST find Content-Length [10:10:34]Host: 172.17.33.3:8080 [10:10:34]Content-Length: 682 [10:10:34]Content-Type: application/json [10:10:34] [10:10:34]POST finish read [10:10:34]Found Content-Length = 682 [10:10:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346952", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 15.560, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:10:34]execute_script... [10:10:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346952", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 15.560, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:10:34]POST & json_proto [10:10:34]process_json_proto [10:10:34]json parsed OK: [10:10:34]protocol is kg_v1.0 [10:10:34]action value=close_receipt [10:10:34]process_action close_receipt [10:10:34]cmd_close_receipt [10:10:34]MH_GetDate [10:10:34]Write to MH i2c: F0 00 00 95 6F F3 [10:10:34]Write i2c OK [10:10:34]MH_I2C_Read... [10:10:34]Read from MH i2c: F0 [10:10:34]MH_I2C_Read... [10:10:34]Read from MH i2c: F0 09 00 [10:10:34]MH_I2C_Read... [10:10:34]Read from MH i2c: F0 09 00 95 6F 00 A2 08 19 66 23 5B 8F 65 97 [10:10:34]GetLastDocTimeStamp 1712916585 [10:10:34]current date 1712916642 [10:10:34]FM_GetShiftState [10:10:34]SAM_PROTO_GetShiftState [10:10:34]wFMCommunicate request_size=4 [10:10:34]MH_SAM_APDU [10:10:34]CAPDU: 80 13 01 00 [10:10:34]Write to MH i2c: E2 08 00 96 6F 80 13 01 00 00 00 00 00 82 [10:10:34]Write i2c OK [10:10:34]MH_I2C_Read... [10:10:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:10:34]Read from MH i2c: E2 [10:10:34]MH_I2C_Read... [10:10:34]Read from MH i2c: E2 0E 00 [10:10:34]MH_I2C_Read... [10:10:34]Read from MH i2c: E2 0E 00 96 6F 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 93 [10:10:34]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [10:10:34]wFMCommunicate OK [10:10:34]SAM_PROTO_GetShiftState done [10:10:34]FM_GetShiftState done [10:10:34]opened in 1712881416 [10:10:34]opened+sec_in_day 1712967816 [10:10:34]quantity*price = 100050 [10:10:34]sum+1 = 100052 [10:10:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 80 12.04.2024 10:10 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28631 ФПД: 14345754313996 1/tax-web-control/client/api/v1/ticket?date=20240412T101042&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28631&fm=14345754313996&tin=02508201610067®Number=0000138879044617&sum=100000 [10:10:36]StoreToDocumentArchive [10:10:36]shift 113 fd 28631 [10:10:36]save to /storage/0113/doc_00028631 [10:10:36]save last doc name /storage/0113/doc_00028631 to /storage/kkm_last_doc_name [10:10:36]save OK [10:10:36]Clear old archive folders... [10:10:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:10:36]tlvbuf is 01B30430 [10:10:36]SAM_PROTO_ClearQueue [10:10:36]wFMCommunicate request_size=4 [10:10:36]MH_SAM_APDU [10:10:36]CAPDU: 80 09 00 00 [10:10:36]Write to MH i2c: E2 08 00 A3 6F 80 09 00 00 00 00 00 00 84 [10:10:36]Write i2c OK [10:10:36]MH_I2C_Read... [10:10:36]OFD Sender: No OFD packet to send [10:10:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:10:36]Read from MH i2c: E2 [10:10:36]MH_I2C_Read... [10:10:36]Read from MH i2c: E2 03 00 [10:10:36]MH_I2C_Read... [10:10:36]Read from MH i2c: E2 03 00 A3 6F 00 90 00 86 [10:10:36]RAPDU: 90 00 [10:10:36]wFMCommunicate OK [10:10:36]SAM_PROTO_ClearQueue done [10:10:36]KKMCreateOFDPacket [10:10:36]OFDProtocolAddRootSTLVToBuf [10:10:36]FM_MakeSignedData [10:10:36]FM_MakeSignedData [10:10:36]SAM_PROTO_SignData [10:10:36]wFMCommunicate request_size=4 [10:10:36]MH_SAM_APDU [10:10:36]CAPDU: 80 0D 01 02 [10:10:36]Write to MH i2c: E2 08 00 A4 6F 80 0D 01 02 00 00 00 00 8C [10:10:36]Write i2c OK [10:10:36]MH_I2C_Read... [10:10:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:10:36]Read from MH i2c: E2 [10:10:36]MH_I2C_Read... [10:10:36]Read from MH i2c: E2 03 00 [10:10:36]MH_I2C_Read... [10:10:36]Read from MH i2c: E2 03 00 A4 6F 00 90 00 87 [10:10:36]RAPDU: 90 00 [10:10:36]wFMCommunicate OK [10:10:36]wFMCommunicate request_size=255 [10:10:36]MH_SAM_APDU [10:10:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 50 00 00 00 F4 03 04 00 A2 08 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D7 6F 00 00 35 04 06 00 0D [10:10:36]Write to MH i2c: E2 02 01 A5 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 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 50 00 00 00 F4 03 04 00 A2 08 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D7 6F 00 00 35 04 06 00 0D 00 00 F5 [10:10:36]Write i2c OK [10:10:36]MH_I2C_Read... [10:10:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:10:36]Read from MH i2c: E2 [10:10:36]MH_I2C_Read... [10:10:36]Read from MH i2c: E2 03 00 [10:10:36]MH_I2C_Read... [10:10:36]Read from MH i2c: E2 03 00 A5 6F 00 90 00 88 [10:10:36]RAPDU: 90 00 [10:10:36]wFMCommunicate OK [10:10:36]wFMCommunicate request_size=10 [10:10:36]MH_SAM_APDU [10:10:36]CAPDU: 80 0D 02 02 05 0C 21 97 05 0C [10:10:36]Write to MH i2c: E2 0D 00 A6 6F 80 0D 02 02 05 00 0C 21 97 05 0C 00 00 6E [10:10:36]Write i2c OK [10:10:36]MH_I2C_Read... [10:10:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:10:36]Read from MH i2c: E2 [10:10:36]MH_I2C_Read... [10:10:36]Read from MH i2c: E2 03 00 [10:10:36]MH_I2C_Read... [10:10:36]Read from MH i2c: E2 03 00 A6 6F 00 90 00 89 [10:10:36]RAPDU: 90 00 [10:10:36]wFMCommunicate OK [10:10:36]wFMCommunicate request_size=4 [10:10:36]MH_SAM_APDU [10:10:36]CAPDU: 80 0D 03 02 [10:10:36]Write to MH i2c: E2 08 00 A7 6F 80 0D 03 02 00 00 00 00 91 [10:10:36]Write i2c OK [10:10:36]MH_I2C_Read... [10:10:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:10:36]Read from MH i2c: E2 [10:10:36]MH_I2C_Read... [10:10:36]Read from MH i2c: E2 0B 00 [10:10:36]MH_I2C_Read... [10:10:36]Read from MH i2c: E2 0B 00 A7 6F 00 9E F7 92 80 02 C4 3A F4 90 00 2D [10:10:36]RAPDU: 9E F7 92 80 02 C4 3A F4 90 00 [10:10:36]wFMCommunicate OK [10:10:36]SAM_PROTO_SignData done [10:10:36]FM_MakeSignedData done [10:10:36]CreateOFDProtocolMessage [10:10:36]wFMCommunicate request_size=4 [10:10:36]MH_SAM_APDU [10:10:36]CAPDU: 80 11 00 00 [10:10:36]Write to MH i2c: E2 08 00 A8 6F 80 11 00 00 00 00 00 00 91 [10:10:36]Write i2c OK [10:10:36]MH_I2C_Read... [10:10:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:10:36]Read from MH i2c: E2 [10:10:36]MH_I2C_Read... [10:10:36]Read from MH i2c: E2 17 00 [10:10:36]MH_I2C_Read... [10:10:36]Read from MH i2c: E2 17 00 A8 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 E0 [10:10:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:10:36]wFMCommunicate OK [10:10:36]CreateOFDProtocolMessage done [10:10:36]OFDSenderStorePacket 28631 [10:10:36]StoreOFDPacket docnum=28631 [10:10:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 E9 F7 07 01 17 32 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 50 00 00 00 F4 03 04 00 A2 08 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D7 6F 00 00 35 04 06 00 0D 0C 21 97 05 0C 9E F7 92 80 02 C4 3A F4 [10:10:36]CheckFolder [10:10:36]dirname=/storage/ofd_packets [10:10:36]CheckFolder done [10:10:36]ProducePacketName [10:10:36]name=ofd_packets/00028631 [10:10:36]NVStorageSaveData ofd_packets/00028631 [10:10:36]File name is /storage/ofd_packets/00028631 [10:10:36]Write 301 bytes [10:10:36]NVStorageSaveData done [10:10:36]OFDSenderStorePacket done [10:10:36]KKMCreateOFDPacket done [10:10:36]NVStorageSaveData kkm_last_timestamp [10:10:36]File name is /storage/kkm_last_timestamp [10:10:36]Write 4 bytes [10:10:36]NVStorageSaveData done [10:10:36]ExternCall_PrintAddStr [10:10:36]wPrintStart [10:10:36]Write to MH i2c: 01 00 00 A9 6F 18 [10:10:36]Write i2c OK [10:10:36]MH_I2C_Read... [10:10:36]Read from MH i2c: 01 [10:10:36]MH_I2C_Read... [10:10:36]Read from MH i2c: 01 07 00 [10:10:36]MH_I2C_Read... [10:10:36]Read from MH i2c: 01 07 00 A9 6F 00 00 00 00 00 FF 0F 2D [10:10:36]RasterBufferAndPrint [10:10:36]line Счет N : (1)346952 [10:10:36]line ИНН: 02508201610067 [10:10:36]line Контрольно-Кассовый Чек [10:10:36]line ПРОДАЖА [10:10:36]line ТРК (МРК, ГНК) : 23 [10:10:36]line Товар: 2710124130 [10:10:36]line Аи-92-К-5 [10:10:36]line 15.560 * 64.30 [10:10:36]line = 1000.51 [10:10:36]line НДС 12% НСП 1% [10:10:36]line > о реализуемом товаре [10:10:36]line ОКРУГЛЕНИЕ: -0.51 [10:10:36]line ИТОГО: 1000.00 [10:10:36]line Внесено: 1000.00 [10:10:36]line СДАЧА: 0.00 [10:10:36]line НСП 1% : 8.85 [10:10:36]line НДС 12% : 106.25 [10:10:36]line Наличными: 1000.00 [10:10:36]line Безнал.: 0.00 [10:10:36]line Место: АЗС № 108 "Партнер Нефть" [10:10:36]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [10:10:36]line СНО: Общий режим [10:10:36]line Чек 80 12.04.2024 10:10 [10:10:36]line Смена: 113 ФФД: 1.0 [10:10:36]line ЗНМ: 0300000027 [10:10:36]line РНМ: 0000138879044617 [10:10:36]line Версия ККМ: 001 [10:10:36]line ФМ: 0000000000963154 [10:10:36]line ФД: 28631 [10:10:36]line ФПД: 14345754313996 [10:10:36]line 1/tax-web-control/client/api/v1/ticket?date=20240412T101042&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28631&fm=14345754313996&tin=02508201610067®Number=0000138879044617&sum=100000 [10:10:36]OFD Sender: Processing packet 28631 [packets to send 8, broken 7] [10:10:36]ProducePacketName [10:10:36]name=ofd_packets/00028631 [10:10:36]OFD Sender: To server: pG, [10:10:36]CommunicateWithHost lk.salyk.kg:30040 [10:10:36]ConnectInit lk.salyk.kg [10:10:36]written 0, free lines is 4095 [10:10:37]Connected sock=9 [10:10:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 E9 F7 07 01 17 32 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 50 00 00 00 F4 03 04 00 A2 08 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D7 6F 00 00 35 04 06 00 0D 0C 21 97 05 0C 9E F7 92 80 02 C4 3A F4 [10:10:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 0A 77 47 00 82 16 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D7 6F 00 00 F4 03 04 00 4D B3 18 66 B6 04 01 00 00 30 EC D5 5D 4B BF C0 D8 [10:10:37]CommunicateWithHost err = 0 [10:10:37]CheckOFDResponse [10:10:37]1017 (14) - 77093643461234 [10:10:37]1041 (16) - 0000000000963154 [10:10:37]1040 (4) - 28631 [10:10:37]1012 (4) - 12.04.2024 04:06 [10:10:37]1206 (1) - 0 [10:10:37]OFD Sender: Remove packet 28631 [10:10:37]ProducePacketName [10:10:37]name=ofd_packets/00028631 [10:10:37]NVStorageDeleteData [10:10:37]Write to MH i2c: 01 00 00 D3 6F 42 [10:10:37]Write i2c OK [10:10:37]MH_I2C_Read... [10:10:37]Read from MH i2c: 01 [10:10:37]MH_I2C_Read... [10:10:37]Read from MH i2c: 01 07 00 [10:10:37]MH_I2C_Read... [10:10:37]Read from MH i2c: 01 07 00 D3 6F 00 00 00 00 00 C0 0C 15 [10:10:37]RasterBufferAndPrint [10:10:37]line [10:10:37]line [10:10:37]line [10:10:37]line [10:10:37]line [10:10:37]written 0, free lines is 3269 [10:10:37]MH_Cut [10:10:37]Write to MH i2c: D1 01 00 DA 6F 01 1B [10:10:37]Write i2c OK [10:10:37]MH_I2C_Read... [10:10:37]Read from MH i2c: D1 [10:10:37]MH_I2C_Read... [10:10:37]Read from MH i2c: D1 01 00 [10:10:37]MH_I2C_Read... [10:10:37]Read from MH i2c: D1 01 00 DA 6F 00 1A [10:10:37]Write to MH i2c: 01 00 00 DB 6F 4A [10:10:37]Write i2c OK [10:10:37]MH_I2C_Read... [10:10:37]OFD Sender: No OFD packet to send [10:10:38]*** Cut start [10:10:38]*** Partial cut [10:10:38]*** CUTSNS_PIN = 1 [10:10:38]*** CUTSNS_PIN = 0 [10:10:38]*** Brake cut motor [10:10:38]Read from MH i2c: 01 [10:10:38]MH_I2C_Read... [10:10:38]*** Stop cut motor [10:10:38]*** Cut end [10:10:38]Read from MH i2c: 01 07 00 [10:10:38]MH_I2C_Read... [10:10:38]Read from MH i2c: 01 07 00 DB 6F 00 00 00 00 00 FF 0F 5F [10:10:38]process_action close_receipt done [10:10:38]requested_data is exist [10:10:38]produce_requested_data [10:10:38]requested_item fm.sn is exist - process it [10:10:38]wFMCommunicate request_size=4 [10:10:38]MH_SAM_APDU [10:10:38]CAPDU: 80 11 00 00 [10:10:38]Write to MH i2c: E2 08 00 DC 6F 80 11 00 00 00 00 00 00 C5 [10:10:38]Write i2c OK [10:10:38]MH_I2C_Read... [10:10:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:10:38]Read from MH i2c: E2 [10:10:38]MH_I2C_Read... [10:10:38]Read from MH i2c: E2 17 00 [10:10:38]MH_I2C_Read... [10:10:38]Read from MH i2c: E2 17 00 DC 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 14 [10:10:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:10:38]wFMCommunicate OK [10:10:38]requested_item fd.num is exist - process it [10:10:38]SAM_PROTO_GetFieldsCounters [10:10:38]wFMCommunicate request_size=4 [10:10:38]MH_SAM_APDU [10:10:38]CAPDU: 80 13 00 00 [10:10:38]Write to MH i2c: E2 08 00 DD 6F 80 13 00 00 00 00 00 00 C8 [10:10:38]Write i2c OK [10:10:38]MH_I2C_Read... [10:10:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:10:39]Read from MH i2c: E2 [10:10:39]MH_I2C_Read... [10:10:39]Read from MH i2c: E2 62 00 [10:10:39]MH_I2C_Read... [10:10:39]Read from MH i2c: E2 62 00 DD 6F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 D7 6F 00 00 0E 04 04 00 71 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 AD [10:10:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 D7 6F 00 00 0E 04 04 00 71 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 [10:10:39]wFMCommunicate OK [10:10:39]SAM_PROTO_GetFieldsCounters done [10:10:39]requested_item shift.num is exist - process it [10:10:39]requested_item shift.opened is exist - process it [10:10:39]req_shift_opened [10:10:39]FM_GetShiftState [10:10:39]SAM_PROTO_GetShiftState [10:10:39]wFMCommunicate request_size=4 [10:10:39]MH_SAM_APDU [10:10:39]CAPDU: 80 13 01 00 [10:10:39]Write to MH i2c: E2 08 00 DE 6F 80 13 01 00 00 00 00 00 CA [10:10:39]Write i2c OK [10:10:39]MH_I2C_Read... [10:10:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:10:39]Read from MH i2c: E2 [10:10:39]MH_I2C_Read... [10:10:39]Read from MH i2c: E2 0E 00 [10:10:39]MH_I2C_Read... [10:10:39]Read from MH i2c: E2 0E 00 DE 6F 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 DB [10:10:39]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [10:10:39]wFMCommunicate OK [10:10:39]SAM_PROTO_GetShiftState done [10:10:39]FM_GetShiftState done [10:10:39]req_shift_opened done [10:10:39]requested_item shift.open_date is exist - process it [10:10:39]req_shift_open_date [10:10:39]req_shift_open_date done [10:10:39]produce_requested_data done [10:10:39]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28631,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [10:10:39]process_action_free close_receipt [10:10:39]json_value_free [10:10:39]json_value_free done [10:10:39]process_json_proto returns [10:10:39]Send response to host [10:10:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28631,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [10:10:39]free response buf [10:10:39]execute_script done [10:10:39]execute_script returns [10:10:39]free content buf [10:10:39]Sock 5.Close socket [10:10:39]Sock 5.Thread stoped [10:10:42]OFD Sender: No OFD packet to send [10:10:47]OFD Sender: No OFD packet to send [10:10:52]OFD Sender: No OFD packet to send [10:10:57]OFD Sender: No OFD packet to send [10:10:59]accept exits with 6 [10:10:59]New connection [10:10:59]New thread 3066641764 created [10:10:59]Thread 3066498404 joined [10:10:59]Waiting for new connection... [10:10:59] Sock 6.Parse request [10:10:59]Sock 6.Check first char [10:10:59]Sock 6.First char is OK [10:10:59]request: POST /json_proto HTTP/1.0 [10:10:59]Method: POST [10:10:59]URL: /json_proto [10:10:59]Method is POST - this is cgi request [10:10:59]url: /json_proto [10:10:59]query_string will be loaded in cgi processing [10:10:59]execute_cgi json_proto POST (null) [10:10:59]execute_cgi path=json_proto method=POST [10:10:59]POST find Content-Length [10:10:59]Host: 172.17.33.3:8080 [10:10:59]Content-Length: 738 [10:10:59]Content-Type: application/json [10:10:59] [10:10:59]POST finish read [10:10:59]Found Content-Length = 738 [10:10:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 28631, "base_FM": "0000000000963154", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346952", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 15.560, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:10:59]execute_script... [10:10:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 28631, "base_FM": "0000000000963154", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346952", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 15.560, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:10:59]POST & json_proto [10:10:59]process_json_proto [10:10:59]json parsed OK: [10:10:59]protocol is kg_v1.0 [10:10:59]action value=close_receipt [10:10:59]process_action close_receipt [10:10:59]cmd_close_receipt [10:10:59]MH_GetDate [10:10:59]Write to MH i2c: F0 00 00 DF 6F 3D [10:10:59]Write i2c OK [10:10:59]MH_I2C_Read... [10:10:59]Read from MH i2c: F0 [10:10:59]MH_I2C_Read... [10:10:59]Read from MH i2c: F0 09 00 [10:10:59]MH_I2C_Read... [10:10:59]Read from MH i2c: F0 09 00 DF 6F 00 BA 08 19 66 23 5B 8F 65 F9 [10:10:59]GetLastDocTimeStamp 1712916642 [10:10:59]current date 1712916666 [10:10:59]FM_GetShiftState [10:10:59]SAM_PROTO_GetShiftState [10:10:59]wFMCommunicate request_size=4 [10:10:59]MH_SAM_APDU [10:10:59]CAPDU: 80 13 01 00 [10:10:59]Write to MH i2c: E2 08 00 E0 6F 80 13 01 00 00 00 00 00 CC [10:10:59]Write i2c OK [10:10:59]MH_I2C_Read... [10:10:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:10:59]Read from MH i2c: E2 [10:10:59]MH_I2C_Read... [10:10:59]Read from MH i2c: E2 0E 00 [10:10:59]MH_I2C_Read... [10:10:59]Read from MH i2c: E2 0E 00 E0 6F 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 DD [10:10:59]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [10:10:59]wFMCommunicate OK [10:10:59]SAM_PROTO_GetShiftState done [10:10:59]FM_GetShiftState done [10:10:59]opened in 1712881416 [10:10:59]opened+sec_in_day 1712967816 [10:10:59]quantity*price = 100050 [10:10:59]sum+1 = 100052 [10:10:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 81 12.04.2024 10:11 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФД осн.: 28631 ФМ осн.: 0000000000963154 ФМ: 0000000000963154 ФД: 28632 ФПД: 159851081792676 1/tax-web-control/client/api/v1/ticket?date=20240412T101106&type=2&operation_type=1&fn_number=0000000000963154&fd_number=28632&fm=159851081792676&tin=02508201610067®Number=0000138879044617&sum=100000 [10:11:00]StoreToDocumentArchive [10:11:00]shift 113 fd 28632 [10:11:00]save to /storage/0113/doc_00028632 [10:11:00]save last doc name /storage/0113/doc_00028632 to /storage/kkm_last_doc_name [10:11:00]save OK [10:11:00]Clear old archive folders... [10:11:00]ProcessDocumentItem done err = 0, tmpTLVsize=279 [10:11:00]tlvbuf is 01BBD950 [10:11:00]SAM_PROTO_ClearQueue [10:11:00]wFMCommunicate request_size=4 [10:11:00]MH_SAM_APDU [10:11:00]CAPDU: 80 09 00 00 [10:11:00]Write to MH i2c: E2 08 00 EF 6F 80 09 00 00 00 00 00 00 D0 [10:11:00]Write i2c OK [10:11:00]MH_I2C_Read... [10:11:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:11:00]Read from MH i2c: E2 [10:11:00]MH_I2C_Read... [10:11:00]Read from MH i2c: E2 03 00 [10:11:00]MH_I2C_Read... [10:11:00]Read from MH i2c: E2 03 00 EF 6F 00 90 00 D2 [10:11:00]RAPDU: 90 00 [10:11:00]wFMCommunicate OK [10:11:00]SAM_PROTO_ClearQueue done [10:11:00]KKMCreateOFDPacket [10:11:00]OFDProtocolAddRootSTLVToBuf [10:11:00]FM_MakeSignedData [10:11:00]FM_MakeSignedData [10:11:00]SAM_PROTO_SignData [10:11:00]wFMCommunicate request_size=4 [10:11:00]MH_SAM_APDU [10:11:00]CAPDU: 80 0D 01 02 [10:11:00]Write to MH i2c: E2 08 00 F0 6F 80 0D 01 02 00 00 00 00 D8 [10:11:00]Write i2c OK [10:11:00]MH_I2C_Read... [10:11:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:11:00]Read from MH i2c: E2 [10:11:00]MH_I2C_Read... [10:11:00]Read from MH i2c: E2 03 00 [10:11:00]MH_I2C_Read... [10:11:00]Read from MH i2c: E2 03 00 F0 6F 00 90 00 D3 [10:11:00]RAPDU: 90 00 [10:11:00]wFMCommunicate OK [10:11:00]wFMCommunicate request_size=255 [10:11:00]MH_SAM_APDU [10:11:00]CAPDU: 80 0D 02 02 FA 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 BA 08 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 27 04 04 00 D7 6F 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 11 04 10 00 30 [10:11:00]Write to MH i2c: E2 02 01 F1 6F 80 0D 02 02 FA 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 BA 08 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 27 04 04 00 D7 6F 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 11 04 10 00 30 00 00 AF [10:11:00]Write i2c OK [10:11:00]MH_I2C_Read... [10:11:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:11:00]Read from MH i2c: E2 [10:11:00]MH_I2C_Read... [10:11:00]Read from MH i2c: E2 03 00 [10:11:00]MH_I2C_Read... [10:11:00]Read from MH i2c: E2 03 00 F1 6F 00 90 00 D4 [10:11:00]RAPDU: 90 00 [10:11:00]wFMCommunicate OK [10:11:00]wFMCommunicate request_size=38 [10:11:00]MH_SAM_APDU [10:11:00]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D8 6F 00 00 35 04 06 00 91 62 3A F2 7C A4 [10:11:00]Write to MH i2c: E2 29 00 F2 6F 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D8 6F 00 00 35 04 06 00 91 62 3A F2 7C A4 00 00 E6 [10:11:00]Write i2c OK [10:11:00]MH_I2C_Read... [10:11:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:11:00]Read from MH i2c: E2 [10:11:00]MH_I2C_Read... [10:11:00]Read from MH i2c: E2 03 00 [10:11:00]MH_I2C_Read... [10:11:00]Read from MH i2c: E2 03 00 F2 6F 00 90 00 D5 [10:11:00]RAPDU: 90 00 [10:11:00]wFMCommunicate OK [10:11:00]wFMCommunicate request_size=4 [10:11:00]MH_SAM_APDU [10:11:00]CAPDU: 80 0D 03 02 [10:11:00]Write to MH i2c: E2 08 00 F3 6F 80 0D 03 02 00 00 00 00 DD [10:11:00]Write i2c OK [10:11:00]MH_I2C_Read... [10:11:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:11:00]Read from MH i2c: E2 [10:11:00]MH_I2C_Read... [10:11:00]Read from MH i2c: E2 0B 00 [10:11:00]MH_I2C_Read... [10:11:00]Read from MH i2c: E2 0B 00 F3 6F 00 F3 F3 4F 1B 9A 28 86 FA 90 00 70 [10:11:00]RAPDU: F3 F3 4F 1B 9A 28 86 FA 90 00 [10:11:00]wFMCommunicate OK [10:11:00]SAM_PROTO_SignData done [10:11:00]FM_MakeSignedData done [10:11:00]CreateOFDProtocolMessage [10:11:00]wFMCommunicate request_size=4 [10:11:00]MH_SAM_APDU [10:11:00]CAPDU: 80 11 00 00 [10:11:00]Write to MH i2c: E2 08 00 F4 6F 80 11 00 00 00 00 00 00 DD [10:11:00]Write i2c OK [10:11:00]MH_I2C_Read... [10:11:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:11:00]Read from MH i2c: E2 [10:11:00]MH_I2C_Read... [10:11:00]Read from MH i2c: E2 17 00 [10:11:00]MH_I2C_Read... [10:11:00]Read from MH i2c: E2 17 00 F4 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 2C [10:11:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:11:00]wFMCommunicate OK [10:11:00]CreateOFDProtocolMessage done [10:11:00]OFDSenderStorePacket 28632 [10:11:00]StoreOFDPacket docnum=28632 [10:11:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 2B 01 00 00 59 8E 23 01 4F C7 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 BA 08 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 27 04 04 00 D7 6F 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D8 6F 00 00 35 04 06 00 91 62 3A F2 7C A4 F3 F3 4F 1B 9A 28 86 FA [10:11:00]CheckFolder [10:11:00]dirname=/storage/ofd_packets [10:11:00]CheckFolder done [10:11:00]ProducePacketName [10:11:00]name=ofd_packets/00028632 [10:11:00]NVStorageSaveData ofd_packets/00028632 [10:11:00]File name is /storage/ofd_packets/00028632 [10:11:00]Write 329 bytes [10:11:00]NVStorageSaveData done [10:11:00]OFDSenderStorePacket done [10:11:00]KKMCreateOFDPacket done [10:11:00]NVStorageSaveData kkm_last_timestamp [10:11:00]File name is /storage/kkm_last_timestamp [10:11:00]Write 4 bytes [10:11:00]NVStorageSaveData done [10:11:00]ExternCall_PrintAddStr [10:11:00]wPrintStart [10:11:00]Write to MH i2c: 01 00 00 F5 6F 64 [10:11:00]Write i2c OK [10:11:00]MH_I2C_Read... [10:11:00]Read from MH i2c: 01 [10:11:00]MH_I2C_Read... [10:11:00]Read from MH i2c: 01 07 00 [10:11:00]MH_I2C_Read... [10:11:00]Read from MH i2c: 01 07 00 F5 6F 00 00 00 00 00 FF 0F 79 [10:11:00]RasterBufferAndPrint [10:11:00]line Счет N : (1)346952 [10:11:00]line ИНН: 02508201610067 [10:11:00]line Контрольно-Кассовый Чек [10:11:00]line ВОЗВРАТ ПРОДАЖИ [10:11:00]line ТРК (МРК, ГНК) : 23 [10:11:00]line Товар: 2710124130 [10:11:00]line Аи-92-К-5 [10:11:00]line 15.560 * 64.30 [10:11:00]line = 1000.51 [10:11:00]line НДС 12% НСП 1% [10:11:00]line > о реализуемом товаре [10:11:00]line ОКРУГЛЕНИЕ: -0.51 [10:11:00]line ИТОГО: 1000.00 [10:11:00]line НСП 1% : 8.85 [10:11:00]line НДС 12% : 106.25 [10:11:00]line Наличными: 1000.00 [10:11:00]line Безнал.: 0.00 [10:11:00]line Место: АЗС № 108 "Партнер Нефть" [10:11:00]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [10:11:00]line СНО: Общий режим [10:11:00]line Чек 81 12.04.2024 10:11 [10:11:00]line Смена: 113 ФФД: 1.0 [10:11:00]line ЗНМ: 0300000027 [10:11:00]line РНМ: 0000138879044617 [10:11:00]line Версия ККМ: 001 [10:11:00]line ФД осн.: 28631 [10:11:00]line ФМ осн.: 0000000000963154 [10:11:00]line ФМ: 0000000000963154 [10:11:00]line ФД: 28632 [10:11:00]line ФПД: 159851081792676 [10:11:01]line 1/tax-web-control/client/api/v1/ticket?date=20240412T101106&type=2&operation_type=1&fn_number=0000000000963154&fd_number=28632&fm=159851081792676&tin=02508201610067®Number=0000138879044617&sum=100000 [10:11:01]OFD Sender: Processing packet 28632 [packets to send 8, broken 7] [10:11:01]ProducePacketName [10:11:01]name=ofd_packets/00028632 [10:11:01]OFD Sender: To server: pG, [10:11:01]CommunicateWithHost lk.salyk.kg:30040 [10:11:01]ConnectInit lk.salyk.kg [10:11:01]written 0, free lines is 4095 [10:11:01]Connected sock=7 [10:11:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 2B 01 00 00 59 8E 23 01 4F C7 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 BA 08 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 27 04 04 00 D7 6F 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D8 6F 00 00 35 04 06 00 91 62 3A F2 7C A4 F3 F3 4F 1B 9A 28 86 FA [10:11:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 ED 33 47 00 E2 95 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D8 6F 00 00 F4 03 04 00 65 B3 18 66 B6 04 01 00 00 74 EC F8 EF E8 79 23 78 [10:11:01]CommunicateWithHost err = 0 [10:11:01]CheckOFDResponse [10:11:01]1017 (14) - 77093643461234 [10:11:01]1041 (16) - 0000000000963154 [10:11:01]1040 (4) - 28632 [10:11:01]1012 (4) - 12.04.2024 04:07 [10:11:01]1206 (1) - 0 [10:11:01]OFD Sender: Remove packet 28632 [10:11:01]ProducePacketName [10:11:01]name=ofd_packets/00028632 [10:11:01]NVStorageDeleteData [10:11:01]Write to MH i2c: 01 00 00 1F 70 8F [10:11:01]Write i2c OK [10:11:01]MH_I2C_Read... [10:11:01]Read from MH i2c: 01 [10:11:01]MH_I2C_Read... [10:11:01]Read from MH i2c: 01 07 00 [10:11:01]MH_I2C_Read... [10:11:01]Read from MH i2c: 01 07 00 1F 70 00 00 00 00 00 DA 0C 7C [10:11:01]RasterBufferAndPrint [10:11:01]line [10:11:01]line [10:11:01]line [10:11:01]line [10:11:01]line [10:11:01]written 0, free lines is 3300 [10:11:01]MH_Cut [10:11:01]Write to MH i2c: D1 01 00 26 70 01 68 [10:11:01]Write i2c OK [10:11:01]MH_I2C_Read... [10:11:01]Read from MH i2c: D1 [10:11:01]MH_I2C_Read... [10:11:01]Read from MH i2c: D1 01 00 [10:11:01]MH_I2C_Read... [10:11:01]Read from MH i2c: D1 01 00 26 70 00 67 [10:11:01]Write to MH i2c: 01 00 00 27 70 97 [10:11:01]Write i2c OK [10:11:01]MH_I2C_Read... [10:11:02]OFD Sender: No OFD packet to send [10:11:02]*** Cut start [10:11:02]*** Partial cut [10:11:02]*** CUTSNS_PIN = 1 [10:11:02]*** CUTSNS_PIN = 0 [10:11:02]*** Brake cut motor [10:11:03]Read from MH i2c: 01 [10:11:03]MH_I2C_Read... [10:11:03]*** Stop cut motor [10:11:03]*** Cut end [10:11:03]Read from MH i2c: 01 07 00 [10:11:03]MH_I2C_Read... [10:11:03]Read from MH i2c: 01 07 00 27 70 00 00 00 00 00 FF 0F AC [10:11:03]process_action close_receipt done [10:11:03]requested_data is exist [10:11:03]produce_requested_data [10:11:03]requested_item fm.sn is exist - process it [10:11:03]wFMCommunicate request_size=4 [10:11:03]MH_SAM_APDU [10:11:03]CAPDU: 80 11 00 00 [10:11:03]Write to MH i2c: E2 08 00 28 70 80 11 00 00 00 00 00 00 12 [10:11:03]Write i2c OK [10:11:03]MH_I2C_Read... [10:11:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:11:03]Read from MH i2c: E2 [10:11:03]MH_I2C_Read... [10:11:03]Read from MH i2c: E2 17 00 [10:11:03]MH_I2C_Read... [10:11:03]Read from MH i2c: E2 17 00 28 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 61 [10:11:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:11:03]wFMCommunicate OK [10:11:03]requested_item fd.num is exist - process it [10:11:03]SAM_PROTO_GetFieldsCounters [10:11:03]wFMCommunicate request_size=4 [10:11:03]MH_SAM_APDU [10:11:03]CAPDU: 80 13 00 00 [10:11:03]Write to MH i2c: E2 08 00 29 70 80 13 00 00 00 00 00 00 15 [10:11:03]Write i2c OK [10:11:03]MH_I2C_Read... [10:11:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:11:03]Read from MH i2c: E2 [10:11:03]MH_I2C_Read... [10:11:03]Read from MH i2c: E2 62 00 [10:11:03]MH_I2C_Read... [10:11:03]Read from MH i2c: E2 62 00 29 70 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 D8 6F 00 00 0E 04 04 00 71 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 FE [10:11:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 D8 6F 00 00 0E 04 04 00 71 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 [10:11:03]wFMCommunicate OK [10:11:03]SAM_PROTO_GetFieldsCounters done [10:11:03]requested_item shift.num is exist - process it [10:11:03]requested_item shift.opened is exist - process it [10:11:03]req_shift_opened [10:11:03]FM_GetShiftState [10:11:03]SAM_PROTO_GetShiftState [10:11:03]wFMCommunicate request_size=4 [10:11:03]MH_SAM_APDU [10:11:03]CAPDU: 80 13 01 00 [10:11:03]Write to MH i2c: E2 08 00 2A 70 80 13 01 00 00 00 00 00 17 [10:11:03]Write i2c OK [10:11:03]MH_I2C_Read... [10:11:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:11:03]Read from MH i2c: E2 [10:11:03]MH_I2C_Read... [10:11:03]Read from MH i2c: E2 0E 00 [10:11:03]MH_I2C_Read... [10:11:03]Read from MH i2c: E2 0E 00 2A 70 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 28 [10:11:03]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [10:11:03]wFMCommunicate OK [10:11:03]SAM_PROTO_GetShiftState done [10:11:03]FM_GetShiftState done [10:11:03]req_shift_opened done [10:11:03]requested_item shift.open_date is exist - process it [10:11:03]req_shift_open_date [10:11:03]req_shift_open_date done [10:11:03]produce_requested_data done [10:11:03]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28632,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [10:11:03]process_action_free close_receipt [10:11:03]json_value_free [10:11:03]json_value_free done [10:11:03]process_json_proto returns [10:11:03]Send response to host [10:11:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28632,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [10:11:03]free response buf [10:11:03]execute_script done [10:11:03]execute_script returns [10:11:03]free content buf [10:11:03]Sock 6.Close socket [10:11:03]Sock 6.Thread stoped [10:11:03]accept exits with 5 [10:11:03]New connection [10:11:03]New thread 3066498404 created [10:11:03]Thread 3066641764 joined [10:11:03]Waiting for new connection... [10:11:03] Sock 5.Parse request [10:11:03]Sock 5.Check first char [10:11:03]Sock 5.First char is OK [10:11:03]request: POST /json_proto HTTP/1.0 [10:11:03]Method: POST [10:11:03]URL: /json_proto [10:11:03]Method is POST - this is cgi request [10:11:03]url: /json_proto [10:11:03]query_string will be loaded in cgi processing [10:11:03]execute_cgi json_proto POST (null) [10:11:03]execute_cgi path=json_proto method=POST [10:11:03]POST find Content-Length [10:11:03]Host: 172.17.33.3:8080 [10:11:03]Content-Length: 840 [10:11:03]Content-Type: application/json [10:11:03] [10:11:03]POST finish read [10:11:03]Found Content-Length = 840 [10:11:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346951", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 7.780, "sum" : 500.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:11:03]execute_script... [10:11: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)346951", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 7.780, "sum" : 500.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:11:03]POST & json_proto [10:11:03]process_json_proto [10:11:03]json parsed OK: [10:11:03]protocol is kg_v1.0 [10:11:03]action value=close_receipt [10:11:03]process_action close_receipt [10:11:03]cmd_close_receipt [10:11:03]MH_GetDate [10:11:03]Write to MH i2c: F0 00 00 2B 70 8A [10:11:03]Write i2c OK [10:11:03]MH_I2C_Read... [10:11:03]Read from MH i2c: F0 [10:11:03]MH_I2C_Read... [10:11:03]Read from MH i2c: F0 09 00 [10:11:03]MH_I2C_Read... [10:11:03]Read from MH i2c: F0 09 00 2B 70 00 BF 08 19 66 23 5B 8F 65 4B [10:11:03]GetLastDocTimeStamp 1712916666 [10:11:03]current date 1712916671 [10:11:03]FM_GetShiftState [10:11:03]SAM_PROTO_GetShiftState [10:11:03]wFMCommunicate request_size=4 [10:11:03]MH_SAM_APDU [10:11:03]CAPDU: 80 13 01 00 [10:11:03]Write to MH i2c: E2 08 00 2C 70 80 13 01 00 00 00 00 00 19 [10:11:03]Write i2c OK [10:11:03]MH_I2C_Read... [10:11:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:11:03]Read from MH i2c: E2 [10:11:03]MH_I2C_Read... [10:11:03]Read from MH i2c: E2 0E 00 [10:11:03]MH_I2C_Read... [10:11:03]Read from MH i2c: E2 0E 00 2C 70 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 2A [10:11:03]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [10:11:03]wFMCommunicate OK [10:11:03]SAM_PROTO_GetShiftState done [10:11:03]FM_GetShiftState done [10:11:03]opened in 1712881416 [10:11:03]opened+sec_in_day 1712967816 [10:11:03]quantity*price = 50025 [10:11:03]sum+1 = 50026 [10:11:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.25 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 0.00 Безнал.: 500.25 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 82 12.04.2024 10:11 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 28633 ФПД: 110369042700947 1/tax-web-control/client/api/v1/ticket?date=20240412T101111&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28633&fm=110369042700947&tin=02508201610067®Number=0000138879044617&sum=50025 [10:11:05]StoreToDocumentArchive [10:11:05]shift 113 fd 28633 [10:11:05]save to /storage/0113/doc_00028633 [10:11:05]save last doc name /storage/0113/doc_00028633 to /storage/kkm_last_doc_name [10:11:05]save OK [10:11:05]Clear old archive folders... [10:11:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:11:05]tlvbuf is 01B4F3D0 [10:11:05]SAM_PROTO_ClearQueue [10:11:05]wFMCommunicate request_size=4 [10:11:05]MH_SAM_APDU [10:11:05]CAPDU: 80 09 00 00 [10:11:05]Write to MH i2c: E2 08 00 39 70 80 09 00 00 00 00 00 00 1B [10:11:05]Write i2c OK [10:11:05]MH_I2C_Read... [10:11:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:11:05]Read from MH i2c: E2 [10:11:05]MH_I2C_Read... [10:11:05]Read from MH i2c: E2 03 00 [10:11:05]MH_I2C_Read... [10:11:05]Read from MH i2c: E2 03 00 39 70 00 90 00 1D [10:11:05]RAPDU: 90 00 [10:11:05]wFMCommunicate OK [10:11:05]SAM_PROTO_ClearQueue done [10:11:05]KKMCreateOFDPacket [10:11:05]OFDProtocolAddRootSTLVToBuf [10:11:05]FM_MakeSignedData [10:11:05]FM_MakeSignedData [10:11:05]SAM_PROTO_SignData [10:11:05]wFMCommunicate request_size=4 [10:11:05]MH_SAM_APDU [10:11:05]CAPDU: 80 0D 01 02 [10:11:05]Write to MH i2c: E2 08 00 3A 70 80 0D 01 02 00 00 00 00 23 [10:11:05]Write i2c OK [10:11:05]MH_I2C_Read... [10:11:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:11:05]Read from MH i2c: E2 [10:11:05]MH_I2C_Read... [10:11:05]Read from MH i2c: E2 03 00 [10:11:05]MH_I2C_Read... [10:11:05]Read from MH i2c: E2 03 00 3A 70 00 90 00 1E [10:11:05]RAPDU: 90 00 [10:11:05]wFMCommunicate OK [10:11:05]wFMCommunicate request_size=255 [10:11:05]MH_SAM_APDU [10:11: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 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 69 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 BF 08 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D9 6F 00 00 35 04 06 00 64 [10:11:05]Write to MH i2c: E2 02 01 3B 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 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 69 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 BF 08 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D9 6F 00 00 35 04 06 00 64 00 00 CC [10:11:05]Write i2c OK [10:11:05]MH_I2C_Read... [10:11:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:11:05]Read from MH i2c: E2 [10:11:05]MH_I2C_Read... [10:11:05]Read from MH i2c: E2 03 00 [10:11:05]MH_I2C_Read... [10:11:05]Read from MH i2c: E2 03 00 3B 70 00 90 00 1F [10:11:05]RAPDU: 90 00 [10:11:05]wFMCommunicate OK [10:11:05]wFMCommunicate request_size=10 [10:11:05]MH_SAM_APDU [10:11:05]CAPDU: 80 0D 02 02 05 61 4B 95 9A 93 [10:11:05]Write to MH i2c: E2 0D 00 3C 70 80 0D 02 02 05 00 61 4B 95 9A 93 00 00 9E [10:11:05]Write i2c OK [10:11:05]MH_I2C_Read... [10:11:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:11:05]Read from MH i2c: E2 [10:11:05]MH_I2C_Read... [10:11:05]Read from MH i2c: E2 03 00 [10:11:05]MH_I2C_Read... [10:11:05]Read from MH i2c: E2 03 00 3C 70 00 90 00 20 [10:11:05]RAPDU: 90 00 [10:11:05]wFMCommunicate OK [10:11:05]wFMCommunicate request_size=4 [10:11:05]MH_SAM_APDU [10:11:05]CAPDU: 80 0D 03 02 [10:11:05]Write to MH i2c: E2 08 00 3D 70 80 0D 03 02 00 00 00 00 28 [10:11:05]Write i2c OK [10:11:05]MH_I2C_Read... [10:11:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:11:05]Read from MH i2c: E2 [10:11:05]MH_I2C_Read... [10:11:05]Read from MH i2c: E2 0B 00 [10:11:05]MH_I2C_Read... [10:11:05]Read from MH i2c: E2 0B 00 3D 70 00 D6 9A 27 B5 CF 7E 89 27 90 00 72 [10:11:05]RAPDU: D6 9A 27 B5 CF 7E 89 27 90 00 [10:11:05]wFMCommunicate OK [10:11:05]SAM_PROTO_SignData done [10:11:05]FM_MakeSignedData done [10:11:05]CreateOFDProtocolMessage [10:11:05]wFMCommunicate request_size=4 [10:11:05]MH_SAM_APDU [10:11:05]CAPDU: 80 11 00 00 [10:11:05]Write to MH i2c: E2 08 00 3E 70 80 11 00 00 00 00 00 00 28 [10:11:05]Write i2c OK [10:11:05]MH_I2C_Read... [10:11:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:11:05]Read from MH i2c: E2 [10:11:05]MH_I2C_Read... [10:11:05]Read from MH i2c: E2 17 00 [10:11:05]MH_I2C_Read... [10:11:05]Read from MH i2c: E2 17 00 3E 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 77 [10:11:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:11:05]wFMCommunicate OK [10:11:05]CreateOFDProtocolMessage done [10:11:05]OFDSenderStorePacket 28633 [10:11:05]StoreOFDPacket docnum=28633 [10:11:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 C2 CB 07 01 FE E2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 69 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 BF 08 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D9 6F 00 00 35 04 06 00 64 61 4B 95 9A 93 D6 9A 27 B5 CF 7E 89 27 [10:11:05]CheckFolder [10:11:05]dirname=/storage/ofd_packets [10:11:05]CheckFolder done [10:11:05]ProducePacketName [10:11:05]name=ofd_packets/00028633 [10:11:05]NVStorageSaveData ofd_packets/00028633 [10:11:05]File name is /storage/ofd_packets/00028633 [10:11:05]Write 301 bytes [10:11:05]NVStorageSaveData done [10:11:05]OFDSenderStorePacket done [10:11:05]KKMCreateOFDPacket done [10:11:05]NVStorageSaveData kkm_last_timestamp [10:11:05]File name is /storage/kkm_last_timestamp [10:11:05]Write 4 bytes [10:11:05]NVStorageSaveData done [10:11:05]ExternCall_PrintAddStr [10:11:05]wPrintStart [10:11:05]Write to MH i2c: 01 00 00 3F 70 AF [10:11:05]Write i2c OK [10:11:05]MH_I2C_Read... [10:11:05]Read from MH i2c: 01 [10:11:05]MH_I2C_Read... [10:11:05]Read from MH i2c: 01 07 00 [10:11:05]MH_I2C_Read... [10:11:05]Read from MH i2c: 01 07 00 3F 70 00 00 00 00 00 FF 0F C4 [10:11:05]RasterBufferAndPrint [10:11:05]line Счет N : (1)346951 [10:11:05]OFD Sender: Processing packet 28633 [packets to send 8, broken 7] [10:11:05]ProducePacketName [10:11:05]name=ofd_packets/00028633 [10:11:05]OFD Sender: To server: pG, [10:11:05]CommunicateWithHost lk.salyk.kg:30040 [10:11:05]ConnectInit lk.salyk.kg [10:11:05]line ИНН: 02508201610067 [10:11:05]line Контрольно-Кассовый Чек [10:11:05]line ПРОДАЖА [10:11:05]line ТРК (МРК, ГНК) : 42 [10:11:05]line Товар: 2710124130 [10:11:05]line Аи-92-К-5 [10:11:05]line 7.780 * 64.30 [10:11:05]line = 500.25 [10:11:05]line НДС 12% НСП 1% [10:11:05]line > о реализуемом товаре [10:11:05]line ИТОГО: 500.25 [10:11:05]line НСП 1% : 4.43 [10:11:05]line НДС 12% : 53.12 [10:11:05]line Наличными: 0.00 [10:11:05]line Безнал.: 500.25 [10:11:05]line Место: АЗС № 108 "Партнер Нефть" [10:11:05]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [10:11:05]line СНО: Общий режим [10:11:05]line Чек 82 12.04.2024 10:11 [10:11:05]line Смена: 113 ФФД: 1.0 [10:11:05]line ЗНМ: 0300000027 [10:11:05]line РНМ: 0000138879044617 [10:11:05]line Версия ККМ: 001 [10:11:05]line Платежная система: АКБ Кыргызстан [10:11:05]line ФМ: 0000000000963154 [10:11:05]line ФД: 28633 [10:11:05]line ФПД: 110369042700947 [10:11:05]line 1/tax-web-control/client/api/v1/ticket?date=20240412T101111&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28633&fm=110369042700947&tin=02508201610067®Number=0000138879044617&sum=50025 [10:11:05]written 0, free lines is 4095 [10:11:05]Connected sock=7 [10:11:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 C2 CB 07 01 FE E2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 69 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 BF 08 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D9 6F 00 00 35 04 06 00 64 61 4B 95 9A 93 D6 9A 27 B5 CF 7E 89 27 [10:11:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 BD 47 47 00 D7 E2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D9 6F 00 00 F4 03 04 00 69 B3 18 66 B6 04 01 00 00 25 A0 40 C0 94 BA B3 D3 [10:11:06]CommunicateWithHost err = 0 [10:11:06]CheckOFDResponse [10:11:06]1017 (14) - 77093643461234 [10:11:06]1041 (16) - 0000000000963154 [10:11:06]1040 (4) - 28633 [10:11:06]1012 (4) - 12.04.2024 04:07 [10:11:06]1206 (1) - 0 [10:11:06]OFD Sender: Remove packet 28633 [10:11:06]ProducePacketName [10:11:06]name=ofd_packets/00028633 [10:11:06]NVStorageDeleteData [10:11:06]Write to MH i2c: 01 00 00 68 70 D8 [10:11:06]Write i2c OK [10:11:06]MH_I2C_Read... [10:11:06]Read from MH i2c: 01 [10:11:06]MH_I2C_Read... [10:11:06]Read from MH i2c: 01 07 00 [10:11:06]MH_I2C_Read... [10:11:06]Read from MH i2c: 01 07 00 68 70 00 00 00 00 00 EE 0C D9 [10:11:06]RasterBufferAndPrint [10:11:06]line [10:11:06]line [10:11:06]line [10:11:06]line [10:11:06]line [10:11:06]written 0, free lines is 3325 [10:11:06]MH_Cut [10:11:06]Write to MH i2c: D1 01 00 6F 70 01 B1 [10:11:06]Write i2c OK [10:11:06]MH_I2C_Read... [10:11:06]Read from MH i2c: D1 [10:11:06]MH_I2C_Read... [10:11:06]Read from MH i2c: D1 01 00 [10:11:06]MH_I2C_Read... [10:11:06]Read from MH i2c: D1 01 00 6F 70 00 B0 [10:11:06]Write to MH i2c: 01 00 00 70 70 E0 [10:11:06]Write i2c OK [10:11:06]MH_I2C_Read... [10:11:06]OFD Sender: No OFD packet to send [10:11:07]*** Cut start [10:11:07]*** Partial cut [10:11:07]*** CUTSNS_PIN = 1 [10:11:07]*** CUTSNS_PIN = 0 [10:11:07]*** Brake cut motor [10:11:07]Read from MH i2c: 01 [10:11:07]MH_I2C_Read... [10:11:07]*** Stop cut motor [10:11:07]*** Cut end [10:11:07]Read from MH i2c: 01 07 00 [10:11:07]MH_I2C_Read... [10:11:07]Read from MH i2c: 01 07 00 70 70 00 00 00 00 00 FF 0F F5 [10:11:07]process_action close_receipt done [10:11:07]requested_data is exist [10:11:07]produce_requested_data [10:11:07]requested_item fm.sn is exist - process it [10:11:07]wFMCommunicate request_size=4 [10:11:07]MH_SAM_APDU [10:11:07]CAPDU: 80 11 00 00 [10:11:07]Write to MH i2c: E2 08 00 71 70 80 11 00 00 00 00 00 00 5B [10:11:07]Write i2c OK [10:11:07]MH_I2C_Read... [10:11:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:11:07]Read from MH i2c: E2 [10:11:07]MH_I2C_Read... [10:11:07]Read from MH i2c: E2 17 00 [10:11:07]MH_I2C_Read... [10:11:07]Read from MH i2c: E2 17 00 71 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 AA [10:11:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:11:07]wFMCommunicate OK [10:11:07]requested_item fd.num is exist - process it [10:11:07]SAM_PROTO_GetFieldsCounters [10:11:07]wFMCommunicate request_size=4 [10:11:07]MH_SAM_APDU [10:11:07]CAPDU: 80 13 00 00 [10:11:07]Write to MH i2c: E2 08 00 72 70 80 13 00 00 00 00 00 00 5E [10:11:07]Write i2c OK [10:11:07]MH_I2C_Read... [10:11:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:11:07]Read from MH i2c: E2 [10:11:07]MH_I2C_Read... [10:11:07]Read from MH i2c: E2 62 00 [10:11:07]MH_I2C_Read... [10:11:07]Read from MH i2c: E2 62 00 72 70 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 D9 6F 00 00 0E 04 04 00 71 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 4B [10:11:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 D9 6F 00 00 0E 04 04 00 71 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 [10:11:08]wFMCommunicate OK [10:11:08]SAM_PROTO_GetFieldsCounters done [10:11:08]requested_item shift.num is exist - process it [10:11:08]requested_item shift.opened is exist - process it [10:11:08]req_shift_opened [10:11:08]FM_GetShiftState [10:11:08]SAM_PROTO_GetShiftState [10:11:08]wFMCommunicate request_size=4 [10:11:08]MH_SAM_APDU [10:11:08]CAPDU: 80 13 01 00 [10:11:08]Write to MH i2c: E2 08 00 73 70 80 13 01 00 00 00 00 00 60 [10:11:08]Write i2c OK [10:11:08]MH_I2C_Read... [10:11:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:11:08]Read from MH i2c: E2 [10:11:08]MH_I2C_Read... [10:11:08]Read from MH i2c: E2 0E 00 [10:11:08]MH_I2C_Read... [10:11:08]Read from MH i2c: E2 0E 00 73 70 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 71 [10:11:08]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [10:11:08]wFMCommunicate OK [10:11:08]SAM_PROTO_GetShiftState done [10:11:08]FM_GetShiftState done [10:11:08]req_shift_opened done [10:11:08]requested_item shift.open_date is exist - process it [10:11:08]req_shift_open_date [10:11:08]req_shift_open_date done [10:11:08]produce_requested_data done [10:11:08]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28633,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [10:11:08]process_action_free close_receipt [10:11:08]json_value_free [10:11:08]json_value_free done [10:11:08]process_json_proto returns [10:11:08]Send response to host [10:11:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28633,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [10:11:08]free response buf [10:11:08]execute_script done [10:11:08]execute_script returns [10:11:08]free content buf [10:11:08]Sock 5.Close socket [10:11:08]Sock 5.Thread stoped [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:46]OFD Sender: No OFD packet to send [10:11:51]OFD Sender: No OFD packet to send [10:11:55]accept exits with 6 [10:11:55]New connection [10:11:55]New thread 3066641764 created [10:11:55]Thread 3066498404 joined [10:11:55]Waiting for new connection... [10:11:55] Sock 6.Parse request [10:11:55]Sock 6.Check first char [10:11:55]Sock 6.First char is OK [10:11:55]request: POST /json_proto HTTP/1.0 [10:11:55]Method: POST [10:11:55]URL: /json_proto [10:11:55]Method is POST - this is cgi request [10:11:55]url: /json_proto [10:11:55]query_string will be loaded in cgi processing [10:11:55]execute_cgi json_proto POST (null) [10:11:55]execute_cgi path=json_proto method=POST [10:11:55]POST find Content-Length [10:11:55]Host: 172.17.33.3:8080 [10:11:55]Content-Length: 805 [10:11:55]Content-Type: application/json [10:11:55] [10:11:55]POST finish read [10:11:55]Found Content-Length = 805 [10:11:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346950", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 69.070, "sum" : 5000.67, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 5000.67 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:11:55]execute_script... [10:11: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)346950", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 69.070, "sum" : 5000.67, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 5000.67 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:11:55]POST & json_proto [10:11:55]process_json_proto [10:11:55]json parsed OK: [10:11:55]protocol is kg_v1.0 [10:11:55]action value=close_receipt [10:11:55]process_action close_receipt [10:11:55]cmd_close_receipt [10:11:55]MH_GetDate [10:11:55]Write to MH i2c: F0 00 00 74 70 D3 [10:11:55]Write i2c OK [10:11:55]MH_I2C_Read... [10:11:55]Read from MH i2c: F0 [10:11:55]MH_I2C_Read... [10:11:55]Read from MH i2c: F0 09 00 [10:11:55]MH_I2C_Read... [10:11:55]Read from MH i2c: F0 09 00 74 70 00 F2 08 19 66 23 5B 8F 65 C7 [10:11:55]GetLastDocTimeStamp 1712916671 [10:11:55]current date 1712916722 [10:11:55]FM_GetShiftState [10:11:55]SAM_PROTO_GetShiftState [10:11:55]wFMCommunicate request_size=4 [10:11:55]MH_SAM_APDU [10:11:55]CAPDU: 80 13 01 00 [10:11:55]Write to MH i2c: E2 08 00 75 70 80 13 01 00 00 00 00 00 62 [10:11:55]Write i2c OK [10:11:55]MH_I2C_Read... [10:11:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:11:55]Read from MH i2c: E2 [10:11:55]MH_I2C_Read... [10:11:55]Read from MH i2c: E2 0E 00 [10:11:55]MH_I2C_Read... [10:11:55]Read from MH i2c: E2 0E 00 75 70 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 73 [10:11:55]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [10:11:55]wFMCommunicate OK [10:11:55]SAM_PROTO_GetShiftState done [10:11:55]FM_GetShiftState done [10:11:55]opened in 1712881416 [10:11:55]opened+sec_in_day 1712967816 [10:11:55]quantity*price = 500066 [10:11:55]sum+1 = 500068 [10:11:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 5000.67 НСП 1% : 44.25 НДС 12% : 531.04 Наличными: 0.00 Безнал.: 5000.67 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 83 12.04.2024 10:12 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 28634 ФПД: 197340858446751 1/tax-web-control/client/api/v1/ticket?date=20240412T101202&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28634&fm=197340858446751&tin=02508201610067®Number=0000138879044617&sum=500067 [10:11:56]StoreToDocumentArchive [10:11:56]shift 113 fd 28634 [10:11:56]save to /storage/0113/doc_00028634 [10:11:56]save last doc name /storage/0113/doc_00028634 to /storage/kkm_last_doc_name [10:11:56]save OK [10:11:56]Clear old archive folders... [10:11:56]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:11:56]tlvbuf is 01A9D7C0 [10:11:56]SAM_PROTO_ClearQueue [10:11:56]wFMCommunicate request_size=4 [10:11:56]MH_SAM_APDU [10:11:56]CAPDU: 80 09 00 00 [10:11:56]Write to MH i2c: E2 08 00 82 70 80 09 00 00 00 00 00 00 64 [10:11:56]Write i2c OK [10:11:56]MH_I2C_Read... [10:11:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:11:56]Read from MH i2c: E2 [10:11:56]MH_I2C_Read... [10:11:56]Read from MH i2c: E2 03 00 [10:11:56]MH_I2C_Read... [10:11:56]Read from MH i2c: E2 03 00 82 70 00 90 00 66 [10:11:56]RAPDU: 90 00 [10:11:56]wFMCommunicate OK [10:11:56]SAM_PROTO_ClearQueue done [10:11:56]KKMCreateOFDPacket [10:11:56]OFDProtocolAddRootSTLVToBuf [10:11:56]FM_MakeSignedData [10:11:56]FM_MakeSignedData [10:11:56]SAM_PROTO_SignData [10:11:56]wFMCommunicate request_size=4 [10:11:56]MH_SAM_APDU [10:11:56]CAPDU: 80 0D 01 02 [10:11:56]Write to MH i2c: E2 08 00 83 70 80 0D 01 02 00 00 00 00 6C [10:11:56]Write i2c OK [10:11:56]MH_I2C_Read... [10:11:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:11:56]Read from MH i2c: E2 [10:11:56]MH_I2C_Read... [10:11:56]Read from MH i2c: E2 03 00 [10:11:56]MH_I2C_Read... [10:11:56]Read from MH i2c: E2 03 00 83 70 00 90 00 67 [10:11:56]RAPDU: 90 00 [10:11:56]wFMCommunicate OK [10:11:56]wFMCommunicate request_size=255 [10:11:56]MH_SAM_APDU [10:11: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 35 FF 03 08 00 03 CE 0D 01 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 63 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 63 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 70 CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 63 A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 F2 08 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DA 6F 00 00 35 04 06 00 B3 7A FF C4 [10:11:56]Write to MH i2c: E2 02 01 84 70 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 35 FF 03 08 00 03 CE 0D 01 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 63 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 63 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 70 CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 63 A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 F2 08 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DA 6F 00 00 35 04 06 00 B3 7A FF C4 00 00 56 [10:11:56]Write i2c OK [10:11:56]MH_I2C_Read... [10:11:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:11:56]Read from MH i2c: E2 [10:11:56]MH_I2C_Read... [10:11:56]Read from MH i2c: E2 03 00 [10:11:56]MH_I2C_Read... [10:11:56]Read from MH i2c: E2 03 00 84 70 00 90 00 68 [10:11:56]RAPDU: 90 00 [10:11:56]wFMCommunicate OK [10:11:56]wFMCommunicate request_size=7 [10:11:56]MH_SAM_APDU [10:11:56]CAPDU: 80 0D 02 02 02 73 9F [10:11:56]Write to MH i2c: E2 0A 00 85 70 80 0D 02 02 02 00 73 9F 00 00 85 [10:11:56]Write i2c OK [10:11:56]MH_I2C_Read... [10:11:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:11:56]Read from MH i2c: E2 [10:11:56]MH_I2C_Read... [10:11:56]Read from MH i2c: E2 03 00 [10:11:56]MH_I2C_Read... [10:11:56]Read from MH i2c: E2 03 00 85 70 00 90 00 69 [10:11:56]RAPDU: 90 00 [10:11:56]wFMCommunicate OK [10:11:56]wFMCommunicate request_size=4 [10:11:56]MH_SAM_APDU [10:11:56]CAPDU: 80 0D 03 02 [10:11:56]Write to MH i2c: E2 08 00 86 70 80 0D 03 02 00 00 00 00 71 [10:11:56]Write i2c OK [10:11:56]MH_I2C_Read... [10:11:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:11:56]Read from MH i2c: E2 [10:11:56]MH_I2C_Read... [10:11:56]Read from MH i2c: E2 0B 00 [10:11:56]MH_I2C_Read... [10:11:56]Read from MH i2c: E2 0B 00 86 70 00 7C 0E 07 39 1A 4F AF 7B 90 00 CF [10:11:56]RAPDU: 7C 0E 07 39 1A 4F AF 7B 90 00 [10:11:56]wFMCommunicate OK [10:11:56]SAM_PROTO_SignData done [10:11:56]FM_MakeSignedData done [10:11:56]CreateOFDProtocolMessage [10:11:56]wFMCommunicate request_size=4 [10:11:56]MH_SAM_APDU [10:11:56]CAPDU: 80 11 00 00 [10:11:56]Write to MH i2c: E2 08 00 87 70 80 11 00 00 00 00 00 00 71 [10:11:56]Write i2c OK [10:11:56]MH_I2C_Read... [10:11:56]OFD Sender: No OFD packet to send [10:11:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:11:56]Read from MH i2c: E2 [10:11:56]MH_I2C_Read... [10:11:56]Read from MH i2c: E2 17 00 [10:11:56]MH_I2C_Read... [10:11:56]Read from MH i2c: E2 17 00 87 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 C0 [10:11:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:11:56]wFMCommunicate OK [10:11:56]CreateOFDProtocolMessage done [10:11:56]OFDSenderStorePacket 28634 [10:11:56]StoreOFDPacket docnum=28634 [10:11:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 06 81 04 01 E4 E3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CE 0D 01 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 63 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 63 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 70 CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 63 A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 F2 08 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DA 6F 00 00 35 04 06 00 B3 7A FF C4 73 9F 7C 0E 07 39 1A 4F AF 7B [10:11:56]CheckFolder [10:11:56]dirname=/storage/ofd_packets [10:11:56]CheckFolder done [10:11:56]ProducePacketName [10:11:56]name=ofd_packets/00028634 [10:11:56]NVStorageSaveData ofd_packets/00028634 [10:11:56]File name is /storage/ofd_packets/00028634 [10:11:56]Write 298 bytes [10:11:56]NVStorageSaveData done [10:11:56]OFDSenderStorePacket done [10:11:56]KKMCreateOFDPacket done [10:11:56]NVStorageSaveData kkm_last_timestamp [10:11:56]File name is /storage/kkm_last_timestamp [10:11:56]Write 4 bytes [10:11:56]NVStorageSaveData done [10:11:56]ExternCall_PrintAddStr [10:11:56]wPrintStart [10:11:56]Write to MH i2c: 01 00 00 88 70 F8 [10:11:56]Write i2c OK [10:11:56]MH_I2C_Read... [10:11:56]Read from MH i2c: 01 [10:11:56]MH_I2C_Read... [10:11:56]Read from MH i2c: 01 07 00 [10:11:56]MH_I2C_Read... [10:11:56]Read from MH i2c: 01 07 00 88 70 00 00 00 00 00 FF 0F 0D [10:11:56]RasterBufferAndPrint [10:11:56]line Счет N : (1)346950 [10:11:56]line ИНН: 02508201610067 [10:11:56]line Контрольно-Кассовый Чек [10:11:56]line ПРОДАЖА [10:11:56]line ТРК (МРК, ГНК) : 61 [10:11:56]line Товар: 2710194210 [10:11:56]line ДТ-К-5 [10:11:56]line 69.070 * 72.40 [10:11:56]line = 5000.67 [10:11:56]line НДС 12% НСП 1% [10:11:56]line > о реализуемом товаре [10:11:56]line ИТОГО: 5000.67 [10:11:56]line НСП 1% : 44.25 [10:11:56]line НДС 12% : 531.04 [10:11:56]line Наличными: 0.00 [10:11:56]line Безнал.: 5000.67 [10:11:56]line Место: АЗС № 108 "Партнер Нефть" [10:11:56]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [10:11:56]line СНО: Общий режим [10:11:56]line Чек 83 12.04.2024 10:12 [10:11:56]line Смена: 113 ФФД: 1.0 [10:11:56]line ЗНМ: 0300000027 [10:11:56]line РНМ: 0000138879044617 [10:11:56]line Версия ККМ: 001 [10:11:56]line Платежная система: О! деньги [10:11:56]line ФМ: 0000000000963154 [10:11:56]line ФД: 28634 [10:11:56]line ФПД: 197340858446751 [10:11:57]line 1/tax-web-control/client/api/v1/ticket?date=20240412T101202&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28634&fm=197340858446751&tin=02508201610067®Number=0000138879044617&sum=500067 [10:11:57]OFD Sender: Processing packet 28634 [packets to send 8, broken 7] [10:11:57]ProducePacketName [10:11:57]name=ofd_packets/00028634 [10:11:57]OFD Sender: To server: pG, [10:11:57]CommunicateWithHost lk.salyk.kg:30040 [10:11:57]ConnectInit lk.salyk.kg [10:11:57]written 0, free lines is 4095 [10:11:57]Connected sock=7 [10:11:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 06 81 04 01 E4 E3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CE 0D 01 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 63 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 63 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 70 CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 63 A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 F2 08 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DA 6F 00 00 35 04 06 00 B3 7A FF C4 73 9F 7C 0E 07 39 1A 4F AF 7B [10:11:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 51 DC 47 00 30 0C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DA 6F 00 00 F4 03 04 00 9D B3 18 66 B6 04 01 00 00 2E 69 4A 0F 01 99 B8 01 [10:11:57]CommunicateWithHost err = 0 [10:11:57]CheckOFDResponse [10:11:57]1017 (14) - 77093643461234 [10:11:57]1041 (16) - 0000000000963154 [10:11:57]1040 (4) - 28634 [10:11:57]1012 (4) - 12.04.2024 04:07 [10:11:57]1206 (1) - 0 [10:11:57]OFD Sender: Remove packet 28634 [10:11:57]ProducePacketName [10:11:57]name=ofd_packets/00028634 [10:11:57]NVStorageDeleteData [10:11:57]Write to MH i2c: 01 00 00 B1 70 21 [10:11:57]Write i2c OK [10:11:57]MH_I2C_Read... [10:11:57]Read from MH i2c: 01 [10:11:57]MH_I2C_Read... [10:11:57]Read from MH i2c: 01 07 00 [10:11:57]MH_I2C_Read... [10:11:57]Read from MH i2c: 01 07 00 B1 70 00 00 00 00 00 E8 0C 1C [10:11:57]RasterBufferAndPrint [10:11:57]line [10:11:57]line [10:11:57]line [10:11:57]line [10:11:57]line [10:11:57]written 0, free lines is 3311 [10:11:57]MH_Cut [10:11:57]Write to MH i2c: D1 01 00 B8 70 01 FA [10:11:57]Write i2c OK [10:11:57]MH_I2C_Read... [10:11:57]Read from MH i2c: D1 [10:11:57]MH_I2C_Read... [10:11:57]Read from MH i2c: D1 01 00 [10:11:57]MH_I2C_Read... [10:11:57]Read from MH i2c: D1 01 00 B8 70 00 F9 [10:11:57]Write to MH i2c: 01 00 00 B9 70 29 [10:11:57]Write i2c OK [10:11:57]MH_I2C_Read... [10:11:57]OFD Sender: No OFD packet to send [10:11:58]*** Cut start [10:11:58]*** Partial cut [10:11:58]*** CUTSNS_PIN = 1 [10:11:58]*** CUTSNS_PIN = 0 [10:11:58]*** Brake cut motor [10:11:59]Read from MH i2c: 01 [10:11:59]MH_I2C_Read... [10:11:59]*** Stop cut motor [10:11:59]*** Cut end [10:11:59]Read from MH i2c: 01 07 00 [10:11:59]MH_I2C_Read... [10:11:59]Read from MH i2c: 01 07 00 B9 70 00 00 00 00 00 FF 0F 3E [10:11:59]process_action close_receipt done [10:11:59]requested_data is exist [10:11:59]produce_requested_data [10:11:59]requested_item fm.sn is exist - process it [10:11:59]wFMCommunicate request_size=4 [10:11:59]MH_SAM_APDU [10:11:59]CAPDU: 80 11 00 00 [10:11:59]Write to MH i2c: E2 08 00 BA 70 80 11 00 00 00 00 00 00 A4 [10:11:59]Write i2c OK [10:11:59]MH_I2C_Read... [10:11:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:11:59]Read from MH i2c: E2 [10:11:59]MH_I2C_Read... [10:11:59]Read from MH i2c: E2 17 00 [10:11:59]MH_I2C_Read... [10:11:59]Read from MH i2c: E2 17 00 BA 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 F3 [10:11:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:11:59]wFMCommunicate OK [10:11:59]requested_item fd.num is exist - process it [10:11:59]SAM_PROTO_GetFieldsCounters [10:11:59]wFMCommunicate request_size=4 [10:11:59]MH_SAM_APDU [10:11:59]CAPDU: 80 13 00 00 [10:11:59]Write to MH i2c: E2 08 00 BB 70 80 13 00 00 00 00 00 00 A7 [10:11:59]Write i2c OK [10:11:59]MH_I2C_Read... [10:11:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:11:59]Read from MH i2c: E2 [10:11:59]MH_I2C_Read... [10:11:59]Read from MH i2c: E2 62 00 [10:11:59]MH_I2C_Read... [10:11:59]Read from MH i2c: E2 62 00 BB 70 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 DA 6F 00 00 0E 04 04 00 71 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 98 [10:11:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 DA 6F 00 00 0E 04 04 00 71 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 [10:11:59]wFMCommunicate OK [10:11:59]SAM_PROTO_GetFieldsCounters done [10:11:59]requested_item shift.num is exist - process it [10:11:59]requested_item shift.opened is exist - process it [10:11:59]req_shift_opened [10:11:59]FM_GetShiftState [10:11:59]SAM_PROTO_GetShiftState [10:11:59]wFMCommunicate request_size=4 [10:11:59]MH_SAM_APDU [10:11:59]CAPDU: 80 13 01 00 [10:11:59]Write to MH i2c: E2 08 00 BC 70 80 13 01 00 00 00 00 00 A9 [10:11:59]Write i2c OK [10:11:59]MH_I2C_Read... [10:11:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:11:59]Read from MH i2c: E2 [10:11:59]MH_I2C_Read... [10:11:59]Read from MH i2c: E2 0E 00 [10:11:59]MH_I2C_Read... [10:11:59]Read from MH i2c: E2 0E 00 BC 70 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 BA [10:11:59]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [10:11:59]wFMCommunicate OK [10:11:59]SAM_PROTO_GetShiftState done [10:11:59]FM_GetShiftState done [10:11:59]req_shift_opened done [10:11:59]requested_item shift.open_date is exist - process it [10:11:59]req_shift_open_date [10:11:59]req_shift_open_date done [10:11:59]produce_requested_data done [10:11:59]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28634,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [10:11:59]process_action_free close_receipt [10:11:59]json_value_free [10:11:59]json_value_free done [10:11:59]process_json_proto returns [10:11:59]Send response to host [10:11:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28634,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [10:11:59]free response buf [10:11:59]execute_script done [10:11:59]execute_script returns [10:11:59]free content buf [10:11:59]Sock 6.Close socket [10:11:59]Sock 6.Thread stoped [10:11:59]accept exits with 5 [10:11:59]New connection [10:11:59]New thread 3066498404 created [10:11:59]Thread 3066641764 joined [10:11:59]Waiting for new connection... [10:11:59] Sock 5.Parse request [10:11:59]Sock 5.Check first char [10:11:59]Sock 5.First char is OK [10:11:59]request: POST /json_proto HTTP/1.0 [10:11:59]Method: POST [10:11:59]URL: /json_proto [10:11:59]Method is POST - this is cgi request [10:11:59]url: /json_proto [10:11:59]query_string will be loaded in cgi processing [10:11:59]execute_cgi json_proto POST (null) [10:11:59]execute_cgi path=json_proto method=POST [10:11:59]POST find Content-Length [10:11:59]Host: 172.17.33.3:8080 [10:11:59]Content-Length: 840 [10:11:59]Content-Type: application/json [10:11:59] [10:11:59]POST finish read [10:11:59]Found Content-Length = 840 [10:11:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346953", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 6.230, "sum" : 400.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.59 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:11:59]execute_script... [10:11: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)346953", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 6.230, "sum" : 400.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.59 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:11:59]POST & json_proto [10:11:59]process_json_proto [10:11:59]json parsed OK: [10:11:59]protocol is kg_v1.0 [10:11:59]action value=close_receipt [10:11:59]process_action close_receipt [10:11:59]cmd_close_receipt [10:11:59]MH_GetDate [10:11:59]Write to MH i2c: F0 00 00 BD 70 1C [10:11:59]Write i2c OK [10:11:59]MH_I2C_Read... [10:11:59]Read from MH i2c: F0 [10:11:59]MH_I2C_Read... [10:11:59]Read from MH i2c: F0 09 00 [10:11:59]MH_I2C_Read... [10:11:59]Read from MH i2c: F0 09 00 BD 70 00 F7 08 19 66 23 5B 8F 65 15 [10:11:59]GetLastDocTimeStamp 1712916722 [10:11:59]current date 1712916727 [10:11:59]FM_GetShiftState [10:11:59]SAM_PROTO_GetShiftState [10:11:59]wFMCommunicate request_size=4 [10:11:59]MH_SAM_APDU [10:11:59]CAPDU: 80 13 01 00 [10:11:59]Write to MH i2c: E2 08 00 BE 70 80 13 01 00 00 00 00 00 AB [10:11:59]Write i2c OK [10:11:59]MH_I2C_Read... [10:11:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:11:59]Read from MH i2c: E2 [10:11:59]MH_I2C_Read... [10:11:59]Read from MH i2c: E2 0E 00 [10:11:59]MH_I2C_Read... [10:11:59]Read from MH i2c: E2 0E 00 BE 70 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 BC [10:11:59]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [10:11:59]wFMCommunicate OK [10:11:59]SAM_PROTO_GetShiftState done [10:11:59]FM_GetShiftState done [10:11:59]opened in 1712881416 [10:11:59]opened+sec_in_day 1712967816 [10:11:59]quantity*price = 40058 [10:11:59]sum+1 = 40060 [10:11:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.59 НСП 1% : 3.54 НДС 12% : 42.54 Наличными: 0.00 Безнал.: 400.59 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 84 12.04.2024 10:12 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 28635 ФПД: 107876134613351 1/tax-web-control/client/api/v1/ticket?date=20240412T101207&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28635&fm=107876134613351&tin=02508201610067®Number=0000138879044617&sum=40059 [10:12:00]StoreToDocumentArchive [10:12:00]shift 113 fd 28635 [10:12:00]save to /storage/0113/doc_00028635 [10:12:00]save last doc name /storage/0113/doc_00028635 to /storage/kkm_last_doc_name [10:12:00]save OK [10:12:00]Clear old archive folders... [10:12:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:12:00]tlvbuf is 01B5AE00 [10:12:00]SAM_PROTO_ClearQueue [10:12:00]wFMCommunicate request_size=4 [10:12:00]MH_SAM_APDU [10:12:00]CAPDU: 80 09 00 00 [10:12:00]Write to MH i2c: E2 08 00 CB 70 80 09 00 00 00 00 00 00 AD [10:12:00]Write i2c OK [10:12:00]MH_I2C_Read... [10:12:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:12:00]Read from MH i2c: E2 [10:12:00]MH_I2C_Read... [10:12:00]Read from MH i2c: E2 03 00 [10:12:00]MH_I2C_Read... [10:12:00]Read from MH i2c: E2 03 00 CB 70 00 90 00 AF [10:12:00]RAPDU: 90 00 [10:12:00]wFMCommunicate OK [10:12:00]SAM_PROTO_ClearQueue done [10:12:00]KKMCreateOFDPacket [10:12:00]OFDProtocolAddRootSTLVToBuf [10:12:00]FM_MakeSignedData [10:12:00]FM_MakeSignedData [10:12:00]SAM_PROTO_SignData [10:12:00]wFMCommunicate request_size=4 [10:12:00]MH_SAM_APDU [10:12:00]CAPDU: 80 0D 01 02 [10:12:00]Write to MH i2c: E2 08 00 CC 70 80 0D 01 02 00 00 00 00 B5 [10:12:00]Write i2c OK [10:12:00]MH_I2C_Read... [10:12:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:12:01]Read from MH i2c: E2 [10:12:01]MH_I2C_Read... [10:12:01]Read from MH i2c: E2 03 00 [10:12:01]MH_I2C_Read... [10:12:01]Read from MH i2c: E2 03 00 CC 70 00 90 00 B0 [10:12:01]RAPDU: 90 00 [10:12:01]wFMCommunicate OK [10:12:01]wFMCommunicate request_size=255 [10:12:01]MH_SAM_APDU [10:12:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 56 18 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 7B 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7B 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7B 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 F7 08 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DB 6F 00 00 35 04 06 00 62 [10:12:01]Write to MH i2c: E2 02 01 CD 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 35 FF 03 08 00 03 56 18 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 7B 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7B 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7B 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 F7 08 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DB 6F 00 00 35 04 06 00 62 00 00 C6 [10:12:01]Write i2c OK [10:12:01]MH_I2C_Read... [10:12:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:12:01]Read from MH i2c: E2 [10:12:01]MH_I2C_Read... [10:12:01]Read from MH i2c: E2 03 00 [10:12:01]MH_I2C_Read... [10:12:01]Read from MH i2c: E2 03 00 CD 70 00 90 00 B1 [10:12:01]RAPDU: 90 00 [10:12:01]wFMCommunicate OK [10:12:01]wFMCommunicate request_size=10 [10:12:01]MH_SAM_APDU [10:12:01]CAPDU: 80 0D 02 02 05 1C DE AE F1 67 [10:12:01]Write to MH i2c: E2 0D 00 CE 70 80 0D 02 02 05 00 1C DE AE F1 67 00 00 C2 [10:12:01]Write i2c OK [10:12:01]MH_I2C_Read... [10:12:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:12:01]Read from MH i2c: E2 [10:12:01]MH_I2C_Read... [10:12:01]Read from MH i2c: E2 03 00 [10:12:01]MH_I2C_Read... [10:12:01]Read from MH i2c: E2 03 00 CE 70 00 90 00 B2 [10:12:01]RAPDU: 90 00 [10:12:01]wFMCommunicate OK [10:12:01]wFMCommunicate request_size=4 [10:12:01]MH_SAM_APDU [10:12:01]CAPDU: 80 0D 03 02 [10:12:01]Write to MH i2c: E2 08 00 CF 70 80 0D 03 02 00 00 00 00 BA [10:12:01]Write i2c OK [10:12:01]MH_I2C_Read... [10:12:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:12:01]Read from MH i2c: E2 [10:12:01]MH_I2C_Read... [10:12:01]Read from MH i2c: E2 0B 00 [10:12:01]MH_I2C_Read... [10:12:01]Read from MH i2c: E2 0B 00 CF 70 00 70 F4 A2 B3 90 F3 D2 3B 90 00 04 [10:12:01]RAPDU: 70 F4 A2 B3 90 F3 D2 3B 90 00 [10:12:01]wFMCommunicate OK [10:12:01]SAM_PROTO_SignData done [10:12:01]FM_MakeSignedData done [10:12:01]CreateOFDProtocolMessage [10:12:01]wFMCommunicate request_size=4 [10:12:01]MH_SAM_APDU [10:12:01]CAPDU: 80 11 00 00 [10:12:01]Write to MH i2c: E2 08 00 D0 70 80 11 00 00 00 00 00 00 BA [10:12:01]Write i2c OK [10:12:01]MH_I2C_Read... [10:12:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:12:01]Read from MH i2c: E2 [10:12:01]MH_I2C_Read... [10:12:01]Read from MH i2c: E2 17 00 [10:12:01]MH_I2C_Read... [10:12:01]Read from MH i2c: E2 17 00 D0 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 09 [10:12:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:12:01]wFMCommunicate OK [10:12:01]CreateOFDProtocolMessage done [10:12:01]OFDSenderStorePacket 28635 [10:12:01]StoreOFDPacket docnum=28635 [10:12:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 06 6A 07 01 EF A9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 56 18 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 7B 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7B 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7B 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 F7 08 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DB 6F 00 00 35 04 06 00 62 1C DE AE F1 67 70 F4 A2 B3 90 F3 D2 3B [10:12:01]CheckFolder [10:12:01]dirname=/storage/ofd_packets [10:12:01]CheckFolder done [10:12:01]ProducePacketName [10:12:01]name=ofd_packets/00028635 [10:12:01]NVStorageSaveData ofd_packets/00028635 [10:12:01]File name is /storage/ofd_packets/00028635 [10:12:01]Write 301 bytes [10:12:01]NVStorageSaveData done [10:12:01]OFDSenderStorePacket done [10:12:01]KKMCreateOFDPacket done [10:12:01]NVStorageSaveData kkm_last_timestamp [10:12:01]File name is /storage/kkm_last_timestamp [10:12:01]Write 4 bytes [10:12:01]NVStorageSaveData done [10:12:01]ExternCall_PrintAddStr [10:12:01]wPrintStart [10:12:01]Write to MH i2c: 01 00 00 D1 70 41 [10:12:01]Write i2c OK [10:12:01]MH_I2C_Read... [10:12:01]Read from MH i2c: 01 [10:12:01]MH_I2C_Read... [10:12:01]Read from MH i2c: 01 07 00 [10:12:01]MH_I2C_Read... [10:12:01]Read from MH i2c: 01 07 00 D1 70 00 00 00 00 00 FF 0F 56 [10:12:01]RasterBufferAndPrint [10:12:01]line Счет N : (1)346953 [10:12:01]line ИНН: 02508201610067 [10:12:01]line Контрольно-Кассовый Чек [10:12:01]line ПРОДАЖА [10:12:01]line ТРК (МРК, ГНК) : 32 [10:12:01]line Товар: 2710124130 [10:12:01]line Аи-92-К-5 [10:12:02]line 6.230 * 64.30 [10:12:02]line = 400.59 [10:12:02]line НДС 12% НСП 1% [10:12:02]line > о реализуемом товаре [10:12:02]line ИТОГО: 400.59 [10:12:02]line НСП 1% : 3.54 [10:12:02]line НДС 12% : 42.54 [10:12:02]line Наличными: 0.00 [10:12:02]line Безнал.: 400.59 [10:12:02]line Место: АЗС № 108 "Партнер Нефть" [10:12:02]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [10:12:02]line СНО: Общий режим [10:12:02]line Чек 84 12.04.2024 10:12 [10:12:02]line Смена: 113 ФФД: 1.0 [10:12:02]line ЗНМ: 0300000027 [10:12:02]line РНМ: 0000138879044617 [10:12:02]line Версия ККМ: 001 [10:12:02]line Платежная система: АКБ Кыргызстан [10:12:02]line ФМ: 0000000000963154 [10:12:02]line ФД: 28635 [10:12:02]line ФПД: 107876134613351 [10:12:02]line 1/tax-web-control/client/api/v1/ticket?date=20240412T101207&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28635&fm=107876134613351&tin=02508201610067®Number=0000138879044617&sum=40059 [10:12:02]OFD Sender: Processing packet 28635 [packets to send 8, broken 7] [10:12:02]ProducePacketName [10:12:02]name=ofd_packets/00028635 [10:12:02]OFD Sender: To server: pG, [10:12:02]CommunicateWithHost lk.salyk.kg:30040 [10:12:02]ConnectInit lk.salyk.kg [10:12:02]written 0, free lines is 4095 [10:12:02]Connected sock=7 [10:12:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 06 6A 07 01 EF A9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 56 18 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 7B 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7B 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7B 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 F7 08 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DB 6F 00 00 35 04 06 00 62 1C DE AE F1 67 70 F4 A2 B3 90 F3 D2 3B [10:12:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 4B F9 47 00 0C BA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DB 6F 00 00 F4 03 04 00 A2 B3 18 66 B6 04 01 00 00 D1 0A B2 8B 7D 0B A4 83 [10:12:02]CommunicateWithHost err = 0 [10:12:02]CheckOFDResponse [10:12:02]1017 (14) - 77093643461234 [10:12:02]1041 (16) - 0000000000963154 [10:12:02]1040 (4) - 28635 [10:12:02]1012 (4) - 12.04.2024 04:08 [10:12:02]1206 (1) - 0 [10:12:02]OFD Sender: Remove packet 28635 [10:12:02]ProducePacketName [10:12:02]name=ofd_packets/00028635 [10:12:02]NVStorageDeleteData [10:12:02]Write to MH i2c: 01 00 00 FA 70 6A [10:12:02]Write i2c OK [10:12:02]MH_I2C_Read... [10:12:02]Read from MH i2c: 01 [10:12:02]MH_I2C_Read... [10:12:02]Read from MH i2c: 01 07 00 [10:12:02]MH_I2C_Read... [10:12:02]Read from MH i2c: 01 07 00 FA 70 00 00 00 00 00 ED 0C 6A [10:12:02]RasterBufferAndPrint [10:12:02]line [10:12:02]line [10:12:02]line [10:12:02]line [10:12:02]line [10:12:02]written 0, free lines is 3324 [10:12:02]MH_Cut [10:12:02]Write to MH i2c: D1 01 00 01 71 01 44 [10:12:02]Write i2c OK [10:12:02]MH_I2C_Read... [10:12:02]Read from MH i2c: D1 [10:12:02]MH_I2C_Read... [10:12:02]Read from MH i2c: D1 01 00 [10:12:02]MH_I2C_Read... [10:12:02]Read from MH i2c: D1 01 00 01 71 00 43 [10:12:02]Write to MH i2c: 01 00 00 02 71 73 [10:12:02]Write i2c OK [10:12:02]MH_I2C_Read... [10:12:02]OFD Sender: No OFD packet to send [10:12:03]*** Cut start [10:12:03]*** Partial cut [10:12:03]*** CUTSNS_PIN = 1 [10:12:03]*** CUTSNS_PIN = 0 [10:12:03]*** Brake cut motor [10:12:03]Read from MH i2c: 01 *** Stop cut motor [10:12:03] [10:12:03]*** Cut end [10:12:03]MH_I2C_Read... [10:12:03]Read from MH i2c: 01 07 00 [10:12:03]MH_I2C_Read... [10:12:03]Read from MH i2c: 01 07 00 02 71 00 00 00 00 00 FF 0F 88 [10:12:03]process_action close_receipt done [10:12:03]requested_data is exist [10:12:03]produce_requested_data [10:12:03]requested_item fm.sn is exist - process it [10:12:03]wFMCommunicate request_size=4 [10:12:03]MH_SAM_APDU [10:12:03]CAPDU: 80 11 00 00 [10:12:03]Write to MH i2c: E2 08 00 03 71 80 11 00 00 00 00 00 00 EE [10:12:03]Write i2c OK [10:12:03]MH_I2C_Read... [10:12:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:12:03]Read from MH i2c: E2 [10:12:03]MH_I2C_Read... [10:12:03]Read from MH i2c: E2 17 00 [10:12:03]MH_I2C_Read... [10:12:03]Read from MH i2c: E2 17 00 03 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 3D [10:12:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:12:03]wFMCommunicate OK [10:12:03]requested_item fd.num is exist - process it [10:12:03]SAM_PROTO_GetFieldsCounters [10:12:03]wFMCommunicate request_size=4 [10:12:03]MH_SAM_APDU [10:12:03]CAPDU: 80 13 00 00 [10:12:03]Write to MH i2c: E2 08 00 04 71 80 13 00 00 00 00 00 00 F1 [10:12:03]Write i2c OK [10:12:03]MH_I2C_Read... [10:12:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:12:04]Read from MH i2c: E2 [10:12:04]MH_I2C_Read... [10:12:04]Read from MH i2c: E2 62 00 [10:12:04]MH_I2C_Read... [10:12:04]Read from MH i2c: E2 62 00 04 71 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 DB 6F 00 00 0E 04 04 00 71 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 E6 [10:12:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 DB 6F 00 00 0E 04 04 00 71 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 [10:12:04]wFMCommunicate OK [10:12:04]SAM_PROTO_GetFieldsCounters done [10:12:04]requested_item shift.num is exist - process it [10:12:04]requested_item shift.opened is exist - process it [10:12:04]req_shift_opened [10:12:04]FM_GetShiftState [10:12:04]SAM_PROTO_GetShiftState [10:12:04]wFMCommunicate request_size=4 [10:12:04]MH_SAM_APDU [10:12:04]CAPDU: 80 13 01 00 [10:12:04]Write to MH i2c: E2 08 00 05 71 80 13 01 00 00 00 00 00 F3 [10:12:04]Write i2c OK [10:12:04]MH_I2C_Read... [10:12:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:12:04]Read from MH i2c: E2 [10:12:04]MH_I2C_Read... [10:12:04]Read from MH i2c: E2 0E 00 [10:12:04]MH_I2C_Read... [10:12:04]Read from MH i2c: E2 0E 00 05 71 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 04 [10:12:04]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [10:12:04]wFMCommunicate OK [10:12:04]SAM_PROTO_GetShiftState done [10:12:04]FM_GetShiftState done [10:12:04]req_shift_opened done [10:12:04]requested_item shift.open_date is exist - process it [10:12:04]req_shift_open_date [10:12:04]req_shift_open_date done [10:12:04]produce_requested_data done [10:12:04]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28635,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [10:12:04]process_action_free close_receipt [10:12:04]json_value_free [10:12:04]json_value_free done [10:12:04]process_json_proto returns [10:12:04]Send response to host [10:12:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28635,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [10:12:04]free response buf [10:12:04]execute_script done [10:12:04]execute_script returns [10:12:04]free content buf [10:12:04]Sock 5.Close socket [10:12:04]Sock 5.Thread stoped [10:12:07]OFD Sender: No OFD packet to send [10:12:12]OFD Sender: No OFD packet to send [10:12:17]OFD Sender: No OFD packet to send [10:12:22]OFD Sender: No OFD packet to send [10:12:27]OFD Sender: No OFD packet to send [10:12:32]OFD Sender: No OFD packet to send [10:12:37]OFD Sender: No OFD packet to send [10:12:42]OFD Sender: No OFD packet to send [10:12:47]OFD Sender: No OFD packet to send [10:12:52]OFD Sender: No OFD packet to send [10:12:57]OFD Sender: No OFD packet to send [10:13:02]OFD Sender: No OFD packet to send [10:13:07]OFD Sender: No OFD packet to send [10:13:12]OFD Sender: No OFD packet to send [10:13:17]OFD Sender: No OFD packet to send [10:13:22]OFD Sender: No OFD packet to send [10:13:27]OFD Sender: No OFD packet to send [10:13:32]OFD Sender: No OFD packet to send [10:13:37]OFD Sender: No OFD packet to send [10:13:42]OFD Sender: No OFD packet to send [10:13:47]OFD Sender: No OFD packet to send [10:13:52]OFD Sender: No OFD packet to send [10:13:57]OFD Sender: No OFD packet to send [10:14:02]OFD Sender: No OFD packet to send [10:14:07]OFD Sender: No OFD packet to send [10:14:12]OFD Sender: No OFD packet to send [10:14:17]OFD Sender: No OFD packet to send [10:14:22]OFD Sender: No OFD packet to send [10:14:28]OFD Sender: No OFD packet to send [10:14:33]OFD Sender: No OFD packet to send [10:14:38]OFD Sender: No OFD packet to send [10:14:43]OFD Sender: No OFD packet to send [10:14:48]OFD Sender: No OFD packet to send [10:14:53]OFD Sender: No OFD packet to send [10:14:58]OFD Sender: No OFD packet to send [10:15:03]OFD Sender: No OFD packet to send [10:15:08]OFD Sender: No OFD packet to send [10:15:13]OFD Sender: No OFD packet to send [10:15:18]OFD Sender: No OFD packet to send [10:15:23]OFD Sender: No OFD packet to send [10:15:28]OFD Sender: No OFD packet to send [10:15:33]OFD Sender: No OFD packet to send [10:15:38]OFD Sender: No OFD packet to send [10:15:43]OFD Sender: No OFD packet to send [10:15:48]OFD Sender: No OFD packet to send [10:15:53]OFD Sender: No OFD packet to send [10:15:58]OFD Sender: No OFD packet to send [10:16:03]OFD Sender: No OFD packet to send [10:16:08]OFD Sender: No OFD packet to send [10:16:13]OFD Sender: No OFD packet to send [10:16:18]OFD Sender: No OFD packet to send [10:16:23]OFD Sender: No OFD packet to send [10:16:28]OFD Sender: No OFD packet to send [10:16:33]OFD Sender: No OFD packet to send [10:16:38]OFD Sender: No OFD packet to send [10:16:43]OFD Sender: No OFD packet to send [10:16:48]OFD Sender: No OFD packet to send [10:16:53]OFD Sender: No OFD packet to send [10:16:58]OFD Sender: No OFD packet to send [10:17:03]OFD Sender: No OFD packet to send [10:17:08]OFD Sender: No OFD packet to send [10:17:08]accept exits with 6 [10:17:08]New connection [10:17:08]New thread 3066641764 created [10:17:08]Thread 3066498404 joined [10:17:08]Waiting for new connection... [10:17:08] Sock 6.Parse request [10:17:08]Sock 6.Check first char [10:17:08]Sock 6.First char is OK [10:17:08]request: POST /json_proto HTTP/1.0 [10:17:08]Method: POST [10:17:08]URL: /json_proto [10:17:08]Method is POST - this is cgi request [10:17:08]url: /json_proto [10:17:08]query_string will be loaded in cgi processing [10:17:08]execute_cgi json_proto POST (null) [10:17:08]execute_cgi path=json_proto method=POST [10:17:08]POST find Content-Length [10:17:08]Host: 172.17.33.3:8080 [10:17:08]Content-Length: 1208 [10:17:08]Content-Type: application/json [10:17:08] [10:17:08]POST finish read [10:17:08]Found Content-Length = 1208 [10:17:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)346954\u000A12.04.2024 09:59\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 13.820 x 72.40\u000A\u0418\u0422\u041E\u0413: 1000.57\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3699822;3698324\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:17:08]execute_script... [10:17:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)346954\u000A12.04.2024 09:59\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 13.820 x 72.40\u000A\u0418\u0422\u041E\u0413: 1000.57\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3699822;3698324\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:17:08]POST & json_proto [10:17:08]process_json_proto [10:17:08]json parsed OK: [10:17:08]protocol is kg_v1.0 [10:17:08]action value=print_text [10:17:08]process_action print_text [10:17:08]cmd_print_text [10:17:08]ExternCall_PrintAddStr [10:17:08]wPrintStart [10:17:08]Write to MH i2c: 01 00 00 06 71 77 [10:17:08]Write i2c OK [10:17:08]MH_I2C_Read... [10:17:08]Read from MH i2c: 01 [10:17:08]MH_I2C_Read... [10:17:08]Read from MH i2c: 01 07 00 [10:17:08]MH_I2C_Read... [10:17:08]Read from MH i2c: 01 07 00 06 71 00 00 00 00 00 FF 0F 8C [10:17:08]RasterBufferAndPrint [10:17:08]line *****ТОВАРНЫЙ ЧЕК***** [10:17:08]line АЗС 108 [10:17:08]line Партнер нефть [10:17:08]line 02508201610067 [10:17:08]line Кассир : Джумагулова Н. [10:17:08]line Счет N : (1)346954 [10:17:08]line 12.04.2024 09:59 [10:17:08]line ПРОДАЖА [10:17:08]line ТРК (МРК, ГНК): 11 [10:17:08]line Вид ГСМ : 2710194210 [10:17:08]line ДТ-К-5 [10:17:08]line 13.820 x 72.40 [10:17:08]line ИТОГ: 1000.57 [10:17:08]line Тип оплаты: Талоны: Партнер нефть [10:17:08]line 3699822;3698324 [10:17:08]line ______________________ [10:17:08]line (подпись) [10:17:08]written 0, free lines is 4095 [10:17:08]Write to MH i2c: 01 00 00 1B 71 8C [10:17:08]Write i2c OK [10:17:08]MH_I2C_Read... [10:17:08]Read from MH i2c: 01 [10:17:08]MH_I2C_Read... [10:17:08]Read from MH i2c: 01 07 00 [10:17:08]MH_I2C_Read... [10:17:08]Read from MH i2c: 01 07 00 1B 71 00 00 00 00 00 FC 0D 9C [10:17:08]RasterBufferAndPrint [10:17:08]line [10:17:08]line [10:17:08]line [10:17:08]line [10:17:08]line [10:17:08]written 0, free lines is 3582 [10:17:08]MH_Cut [10:17:08]Write to MH i2c: D1 01 00 22 71 01 65 [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 22 71 00 64 [10:17:08]Write to MH i2c: 01 00 00 23 71 94 [10:17:08]Write i2c OK [10:17:08]MH_I2C_Read... [10:17:09]*** Cut start [10:17:09]*** Partial cut [10:17:09]*** CUTSNS_PIN = 1 [10:17:09]*** CUTSNS_PIN = 0 [10:17:09]*** Brake cut motor [10:17:10]Read from MH i2c: 01 [10:17:10]MH_I2C_Read... [10:17:10]Read from MH i2c: 01 07 00 [10:17:10]MH_I2C_Read... [10:17:10]*** Stop cut motor [10:17:10]*** Cut end [10:17:10]Read from MH i2c: 01 07 00 23 71 00 00 00 00 00 FF 0F A9 [10:17:10]process_action print_text done [10:17:10]requested_data is exist [10:17:10]produce_requested_data [10:17:10]requested_item fm.sn is exist - process it [10:17:10]wFMCommunicate request_size=4 [10:17:10]MH_SAM_APDU [10:17:10]CAPDU: 80 11 00 00 [10:17:10]Write to MH i2c: E2 08 00 24 71 80 11 00 00 00 00 00 00 0F [10:17:10]Write i2c OK [10:17:10]MH_I2C_Read... [10:17:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:17:10]Read from MH i2c: E2 [10:17:10]MH_I2C_Read... [10:17:10]Read from MH i2c: E2 17 00 [10:17:10]MH_I2C_Read... [10:17:10]Read from MH i2c: E2 17 00 24 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 5E [10:17:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:17:10]wFMCommunicate OK [10:17:10]requested_item fd.num is exist - process it [10:17:10]SAM_PROTO_GetFieldsCounters [10:17:10]wFMCommunicate request_size=4 [10:17:10]MH_SAM_APDU [10:17:10]CAPDU: 80 13 00 00 [10:17:10]Write to MH i2c: E2 08 00 25 71 80 13 00 00 00 00 00 00 12 [10:17:10]Write i2c OK [10:17:10]MH_I2C_Read... [10:17:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:17:10]Read from MH i2c: E2 [10:17:10]MH_I2C_Read... [10:17:10]Read from MH i2c: E2 62 00 [10:17:10]MH_I2C_Read... [10:17:10]Read from MH i2c: E2 62 00 25 71 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 DB 6F 00 00 0E 04 04 00 71 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 07 [10:17:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 DB 6F 00 00 0E 04 04 00 71 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 [10:17:10]wFMCommunicate OK [10:17:10]SAM_PROTO_GetFieldsCounters done [10:17:10]requested_item shift.num is exist - process it [10:17:10]requested_item shift.opened is exist - process it [10:17:10]req_shift_opened [10:17:10]FM_GetShiftState [10:17:10]SAM_PROTO_GetShiftState [10:17:10]wFMCommunicate request_size=4 [10:17:10]MH_SAM_APDU [10:17:10]CAPDU: 80 13 01 00 [10:17:10]Write to MH i2c: E2 08 00 26 71 80 13 01 00 00 00 00 00 14 [10:17:10]Write i2c OK [10:17:10]MH_I2C_Read... [10:17:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:17:10]Read from MH i2c: E2 [10:17:10]MH_I2C_Read... [10:17:10]Read from MH i2c: E2 0E 00 [10:17:10]MH_I2C_Read... [10:17:10]Read from MH i2c: E2 0E 00 26 71 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 25 [10:17:10]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [10:17:10]wFMCommunicate OK [10:17:10]SAM_PROTO_GetShiftState done [10:17:10]FM_GetShiftState done [10:17:10]req_shift_opened done [10:17:10]requested_item shift.open_date is exist - process it [10:17:10]req_shift_open_date [10:17:10]req_shift_open_date done [10:17:10]produce_requested_data done [10:17:10]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28635,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [10:17:10]process_action_free print_text [10:17:10]json_value_free [10:17:10]json_value_free done [10:17:10]process_json_proto returns [10:17:10]Send response to host [10:17:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28635,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [10:17:10]free response buf [10:17:10]execute_script done [10:17:10]execute_script returns [10:17:10]free content buf [10:17:10]Sock 6.Close socket [10:17:10]Sock 6.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:28]OFD Sender: No OFD packet to send [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:26]accept exits with 5 [10:28:26]New connection [10:28:26]New thread 3066498404 created [10:28:26]Thread 3066641764 joined [10:28:26]Waiting for new connection... [10:28:26] Sock 5.Parse request [10:28:26]Sock 5.Check first char [10:28:26]Sock 5.First char is OK [10:28:26]request: POST /json_proto HTTP/1.0 [10:28:26]Method: POST [10:28:26]URL: /json_proto [10:28:26]Method is POST - this is cgi request [10:28:26]url: /json_proto [10:28:26]query_string will be loaded in cgi processing [10:28:26]execute_cgi json_proto POST (null) [10:28:26]execute_cgi path=json_proto method=POST [10:28:26]POST find Content-Length [10:28:26]Host: 172.17.33.3:8080 [10:28:26]Content-Length: 843 [10:28:26]Content-Type: application/json [10:28:26] [10:28:26]POST finish read [10:28:26]Found Content-Length = 843 [10:28:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346955", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 18.670, "sum" : 1200.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1200.48 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:28:26]execute_script... [10:28: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)346955", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 18.670, "sum" : 1200.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1200.48 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:28:26]POST & json_proto [10:28:26]process_json_proto [10:28:26]json parsed OK: [10:28:26]protocol is kg_v1.0 [10:28:26]action value=close_receipt [10:28:26]process_action close_receipt [10:28:26]cmd_close_receipt [10:28:26]MH_GetDate [10:28:26]Write to MH i2c: F0 00 00 27 71 87 [10:28:26]Write i2c OK [10:28:26]MH_I2C_Read... [10:28:26]Read from MH i2c: F0 [10:28:26]MH_I2C_Read... [10:28:26]Read from MH i2c: F0 09 00 [10:28:26]MH_I2C_Read... [10:28:26]Read from MH i2c: F0 09 00 27 71 00 D2 0C 19 66 23 5B 8F 65 5F [10:28:26]GetLastDocTimeStamp 1712916727 [10:28:26]current date 1712917714 [10:28:26]FM_GetShiftState [10:28:26]SAM_PROTO_GetShiftState [10:28:26]wFMCommunicate request_size=4 [10:28:26]MH_SAM_APDU [10:28:26]CAPDU: 80 13 01 00 [10:28:26]Write to MH i2c: E2 08 00 28 71 80 13 01 00 00 00 00 00 16 [10:28:26]Write i2c OK [10:28:26]MH_I2C_Read... [10:28:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:28:26]Read from MH i2c: E2 [10:28:26]MH_I2C_Read... [10:28:26]Read from MH i2c: E2 0E 00 [10:28:26]MH_I2C_Read... [10:28:26]Read from MH i2c: E2 0E 00 28 71 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 27 [10:28:26]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [10:28:26]wFMCommunicate OK [10:28:26]SAM_PROTO_GetShiftState done [10:28:26]FM_GetShiftState done [10:28:26]opened in 1712881416 [10:28:26]opened+sec_in_day 1712967816 [10:28:26]quantity*price = 120048 [10:28:26]sum+1 = 120049 [10:28:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1200.48 НСП 1% : 10.62 НДС 12% : 127.48 Наличными: 0.00 Безнал.: 1200.48 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 85 12.04.2024 10:28 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 28636 ФПД: 332382129884 1/tax-web-control/client/api/v1/ticket?date=20240412T102834&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28636&fm=332382129884&tin=02508201610067®Number=0000138879044617&sum=120048 [10:28:27]StoreToDocumentArchive [10:28:27]shift 113 fd 28636 [10:28:27]save to /storage/0113/doc_00028636 [10:28:27]save last doc name /storage/0113/doc_00028636 to /storage/kkm_last_doc_name [10:28:27]save OK [10:28:27]Clear old archive folders... [10:28:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:28:27]tlvbuf is 01AD4620 [10:28:27]SAM_PROTO_ClearQueue [10:28:27]wFMCommunicate request_size=4 [10:28:27]MH_SAM_APDU [10:28:27]CAPDU: 80 09 00 00 [10:28:27]Write to MH i2c: E2 08 00 35 71 80 09 00 00 00 00 00 00 18 [10:28:27]Write i2c OK [10:28:27]MH_I2C_Read... [10:28:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:28:27]Read from MH i2c: E2 [10:28:27]MH_I2C_Read... [10:28:27]Read from MH i2c: E2 03 00 [10:28:27]MH_I2C_Read... [10:28:27]Read from MH i2c: E2 03 00 35 71 00 90 00 1A [10:28:27]RAPDU: 90 00 [10:28:27]wFMCommunicate OK [10:28:27]SAM_PROTO_ClearQueue done [10:28:27]KKMCreateOFDPacket [10:28:27]OFDProtocolAddRootSTLVToBuf [10:28:27]FM_MakeSignedData [10:28:27]FM_MakeSignedData [10:28:27]SAM_PROTO_SignData [10:28:27]wFMCommunicate request_size=4 [10:28:27]MH_SAM_APDU [10:28:27]CAPDU: 80 0D 01 02 [10:28:27]Write to MH i2c: E2 08 00 36 71 80 0D 01 02 00 00 00 00 20 [10:28:27]Write i2c OK [10:28:27]MH_I2C_Read... [10:28:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:28:27]Read from MH i2c: E2 [10:28:27]MH_I2C_Read... [10:28:27]Read from MH i2c: E2 03 00 [10:28:27]MH_I2C_Read... [10:28:27]Read from MH i2c: E2 03 00 36 71 00 90 00 1B [10:28:27]RAPDU: 90 00 [10:28:27]wFMCommunicate OK [10:28:27]wFMCommunicate request_size=255 [10:28:27]MH_SAM_APDU [10:28:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EE 48 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 F0 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 D2 0C 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DC 6F 00 00 35 04 06 00 00 [10:28:27]Write to MH i2c: E2 02 01 37 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 35 FF 03 08 00 03 EE 48 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 F0 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 D2 0C 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DC 6F 00 00 35 04 06 00 00 00 00 98 [10:28:27]Write i2c OK [10:28:27]MH_I2C_Read... [10:28:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:28:28]Read from MH i2c: E2 [10:28:28]MH_I2C_Read... [10:28:28]Read from MH i2c: E2 03 00 [10:28:28]MH_I2C_Read... [10:28:28]Read from MH i2c: E2 03 00 37 71 00 90 00 1C [10:28:28]RAPDU: 90 00 [10:28:28]wFMCommunicate OK [10:28:28]wFMCommunicate request_size=10 [10:28:28]MH_SAM_APDU [10:28:28]CAPDU: 80 0D 02 02 05 4D 63 84 CE DC [10:28:28]Write to MH i2c: E2 0D 00 38 71 80 0D 02 02 05 00 4D 63 84 CE DC 00 00 0B [10:28:28]Write i2c OK [10:28:28]MH_I2C_Read... [10:28:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:28:28]Read from MH i2c: E2 [10:28:28]MH_I2C_Read... [10:28:28]Read from MH i2c: E2 03 00 [10:28:28]MH_I2C_Read... [10:28:28]Read from MH i2c: E2 03 00 38 71 00 90 00 1D [10:28:28]RAPDU: 90 00 [10:28:28]wFMCommunicate OK [10:28:28]wFMCommunicate request_size=4 [10:28:28]MH_SAM_APDU [10:28:28]CAPDU: 80 0D 03 02 [10:28:28]Write to MH i2c: E2 08 00 39 71 80 0D 03 02 00 00 00 00 25 [10:28:28]Write i2c OK [10:28:28]MH_I2C_Read... [10:28:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:28:28]Read from MH i2c: E2 [10:28:28]MH_I2C_Read... [10:28:28]Read from MH i2c: E2 0B 00 [10:28:28]MH_I2C_Read... [10:28:28]Read from MH i2c: E2 0B 00 39 71 00 4E 6B 6B 47 5D 73 87 6D 90 00 55 [10:28:28]RAPDU: 4E 6B 6B 47 5D 73 87 6D 90 00 [10:28:28]wFMCommunicate OK [10:28:28]SAM_PROTO_SignData done [10:28:28]FM_MakeSignedData done [10:28:28]CreateOFDProtocolMessage [10:28:28]wFMCommunicate request_size=4 [10:28:28]MH_SAM_APDU [10:28:28]CAPDU: 80 11 00 00 [10:28:28]Write to MH i2c: E2 08 00 3A 71 80 11 00 00 00 00 00 00 25 [10:28:28]Write i2c OK [10:28:28]MH_I2C_Read... [10:28:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:28:28]Read from MH i2c: E2 [10:28:28]MH_I2C_Read... [10:28:28]Read from MH i2c: E2 17 00 [10:28:28]MH_I2C_Read... [10:28:28]Read from MH i2c: E2 17 00 3A 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 74 [10:28:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:28:28]wFMCommunicate OK [10:28:28]CreateOFDProtocolMessage done [10:28:28]OFDSenderStorePacket 28636 [10:28:28]StoreOFDPacket docnum=28636 [10:28:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 E0 85 07 01 65 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 35 FF 03 08 00 03 EE 48 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 F0 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 D2 0C 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DC 6F 00 00 35 04 06 00 00 4D 63 84 CE DC 4E 6B 6B 47 5D 73 87 6D [10:28:28]CheckFolder [10:28:28]dirname=/storage/ofd_packets [10:28:28]CheckFolder done [10:28:28]ProducePacketName [10:28:28]name=ofd_packets/00028636 [10:28:28]NVStorageSaveData ofd_packets/00028636 [10:28:28]File name is /storage/ofd_packets/00028636 [10:28:28]Write 301 bytes [10:28:28]NVStorageSaveData done [10:28:28]OFDSenderStorePacket done [10:28:28]KKMCreateOFDPacket done [10:28:28]NVStorageSaveData kkm_last_timestamp [10:28:28]File name is /storage/kkm_last_timestamp [10:28:28]Write 4 bytes [10:28:28]NVStorageSaveData done [10:28:28]ExternCall_PrintAddStr [10:28:28]wPrintStart [10:28:28]Write to MH i2c: 01 00 00 3B 71 AC [10:28:28]Write i2c OK [10:28:28]MH_I2C_Read... [10:28:28]Read from MH i2c: 01 [10:28:28]MH_I2C_Read... [10:28:28]Read from MH i2c: 01 07 00 [10:28:28]MH_I2C_Read... [10:28:28]Read from MH i2c: 01 07 00 3B 71 00 00 00 00 00 FF 0F C1 [10:28:28]RasterBufferAndPrint [10:28:28]line Счет N : (1)346955 [10:28:28]line ИНН: 02508201610067 [10:28:28]line Контрольно-Кассовый Чек [10:28:28]line ПРОДАЖА [10:28:28]line ТРК (МРК, ГНК) : 32 [10:28:28]line Товар: 2710124130 [10:28:28]line Аи-92-К-5 [10:28:28]line 18.670 * 64.30 [10:28:28]line = 1200.48 [10:28:28]line НДС 12% НСП 1% [10:28:28]line > о реализуемом товаре [10:28:28]line ИТОГО: 1200.48 [10:28:28]line НСП 1% : 10.62 [10:28:28]line НДС 12% : 127.48 [10:28:28]line Наличными: 0.00 [10:28:28]line Безнал.: 1200.48 [10:28:28]line Место: АЗС № 108 "Партнер Нефть" [10:28:28]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [10:28:28]line СНО: Общий режим [10:28:28]line Чек 85 12.04.2024 10:28 [10:28:28]line Смена: 113 ФФД: 1.0 [10:28:28]line ЗНМ: 0300000027 [10:28:28]line РНМ: 0000138879044617 [10:28:28]line Версия ККМ: 001 [10:28:28]line Платежная система: АКБ Кыргызстан [10:28:28]line ФМ: 0000000000963154 [10:28:28]line ФД: 28636 [10:28:28]line ФПД: 332382129884 [10:28:28]line 1/tax-web-control/client/api/v1/ticket?date=20240412T102834&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28636&fm=332382129884&tin=02508201610067®Number=0000138879044617&sum=120048 [10:28:28]OFD Sender: Processing packet 28636 [packets to send 8, broken 7] [10:28:28]ProducePacketName [10:28:28]name=ofd_packets/00028636 [10:28:28]OFD Sender: To server: pG, [10:28:28]CommunicateWithHost lk.salyk.kg:30040 [10:28:28]ConnectInit lk.salyk.kg [10:28:28]written 0, free lines is 4095 [10:28:28]Connected sock=7 [10:28:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 E0 85 07 01 65 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 35 FF 03 08 00 03 EE 48 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 F0 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 D2 0C 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DC 6F 00 00 35 04 06 00 00 4D 63 84 CE DC 4E 6B 6B 47 5D 73 87 6D [10:28:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 0F 39 47 00 04 7B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DC 6F 00 00 F4 03 04 00 7C B7 18 66 B6 04 01 00 00 A4 10 76 3F 38 83 0A 33 [10:28:29]CommunicateWithHost err = 0 [10:28:29]CheckOFDResponse [10:28:29]1017 (14) - 77093643461234 [10:28:29]1041 (16) - 0000000000963154 [10:28:29]1040 (4) - 28636 [10:28:29]1012 (4) - 12.04.2024 04:24 [10:28:29]1206 (1) - 0 [10:28:29]OFD Sender: Remove packet 28636 [10:28:29]ProducePacketName [10:28:29]name=ofd_packets/00028636 [10:28:29]NVStorageDeleteData [10:28:29]Write to MH i2c: 01 00 00 64 71 D5 [10:28:29]Write i2c OK [10:28:29]MH_I2C_Read... [10:28:29]Read from MH i2c: 01 [10:28:29]MH_I2C_Read... [10:28:29]Read from MH i2c: 01 07 00 [10:28:29]MH_I2C_Read... [10:28:29]Read from MH i2c: 01 07 00 64 71 00 00 00 00 00 E0 0C C8 [10:28:29]RasterBufferAndPrint [10:28:29]line [10:28:29]line [10:28:29]line [10:28:29]line [10:28:29]line [10:28:29]written 0, free lines is 3304 [10:28:29]MH_Cut [10:28:29]Write to MH i2c: D1 01 00 6B 71 01 AE [10:28:29]Write i2c OK [10:28:29]MH_I2C_Read... [10:28:29]Read from MH i2c: D1 [10:28:29]MH_I2C_Read... [10:28:29]Read from MH i2c: D1 01 00 [10:28:29]MH_I2C_Read... [10:28:29]Read from MH i2c: D1 01 00 6B 71 00 AD [10:28:29]Write to MH i2c: 01 00 00 6C 71 DD [10:28:29]Write i2c OK [10:28:29]MH_I2C_Read... [10:28:29]OFD Sender: No OFD packet to send [10:28:29]*** Cut start [10:28:29]*** Partial cut [10:28:29]*** CUTSNS_PIN = 1 [10:28:30]*** CUTSNS_PIN = 0 [10:28:30]*** Brake cut motor [10:28:30]Read from MH i2c: 01 [10:28:30]MH_I2C_Read... [10:28:30]*** Stop cut motor [10:28:30]*** Cut end [10:28:30]Read from MH i2c: 01 07 00 [10:28:30]MH_I2C_Read... [10:28:30]Read from MH i2c: 01 07 00 6C 71 00 00 00 00 00 FF 0F F2 [10:28:30]process_action close_receipt done [10:28:30]requested_data is exist [10:28:30]produce_requested_data [10:28:30]requested_item fm.sn is exist - process it [10:28:30]wFMCommunicate request_size=4 [10:28:30]MH_SAM_APDU [10:28:30]CAPDU: 80 11 00 00 [10:28:30]Write to MH i2c: E2 08 00 6D 71 80 11 00 00 00 00 00 00 58 [10:28:30]Write i2c OK [10:28:30]MH_I2C_Read... [10:28:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:28:30]Read from MH i2c: E2 [10:28:30]MH_I2C_Read... [10:28:30]Read from MH i2c: E2 17 00 [10:28:30]MH_I2C_Read... [10:28:30]Read from MH i2c: E2 17 00 6D 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 A7 [10:28:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:28:30]wFMCommunicate OK [10:28:30]requested_item fd.num is exist - process it [10:28:30]SAM_PROTO_GetFieldsCounters [10:28:30]wFMCommunicate request_size=4 [10:28:30]MH_SAM_APDU [10:28:30]CAPDU: 80 13 00 00 [10:28:30]Write to MH i2c: E2 08 00 6E 71 80 13 00 00 00 00 00 00 5B [10:28:30]Write i2c OK [10:28:30]MH_I2C_Read... [10:28:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:28:30]Read from MH i2c: E2 [10:28:30]MH_I2C_Read... [10:28:30]Read from MH i2c: E2 62 00 [10:28:30]MH_I2C_Read... [10:28:30]Read from MH i2c: E2 62 00 6E 71 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 DC 6F 00 00 0E 04 04 00 71 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 54 [10:28:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 DC 6F 00 00 0E 04 04 00 71 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 [10:28:30]wFMCommunicate OK [10:28:30]SAM_PROTO_GetFieldsCounters done [10:28:30]requested_item shift.num is exist - process it [10:28:30]requested_item shift.opened is exist - process it [10:28:30]req_shift_opened [10:28:30]FM_GetShiftState [10:28:30]SAM_PROTO_GetShiftState [10:28:30]wFMCommunicate request_size=4 [10:28:30]MH_SAM_APDU [10:28:30]CAPDU: 80 13 01 00 [10:28:30]Write to MH i2c: E2 08 00 6F 71 80 13 01 00 00 00 00 00 5D [10:28:30]Write i2c OK [10:28:30]MH_I2C_Read... [10:28:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:28:30]Read from MH i2c: E2 [10:28:30]MH_I2C_Read... [10:28:30]Read from MH i2c: E2 0E 00 [10:28:30]MH_I2C_Read... [10:28:30]Read from MH i2c: E2 0E 00 6F 71 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 6E [10:28:30]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [10:28:30]wFMCommunicate OK [10:28:30]SAM_PROTO_GetShiftState done [10:28:30]FM_GetShiftState done [10:28:30]req_shift_opened done [10:28:30]requested_item shift.open_date is exist - process it [10:28:30]req_shift_open_date [10:28:30]req_shift_open_date done [10:28:30]produce_requested_data done [10:28:30]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28636,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [10:28:30]process_action_free close_receipt [10:28:30]json_value_free [10:28:30]json_value_free done [10:28:30]process_json_proto returns [10:28:30]Send response to host [10:28:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28636,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [10:28:30]free response buf [10:28:30]execute_script done [10:28:30]execute_script returns [10:28:30]free content buf [10:28:30]Sock 5.Close socket [10:28:30]Sock 5.Thread stoped [10:28:34]OFD Sender: No OFD packet to send [10:28:39]OFD Sender: No OFD packet to send [10:28:44]OFD Sender: No OFD packet to send [10:28:49]OFD Sender: No OFD packet to send [10:28:54]OFD Sender: No OFD packet to send [10:28:59]OFD Sender: No OFD packet to send [10:29:04]OFD Sender: No OFD packet to send [10:29:09]OFD Sender: No OFD packet to send [10:29:14]OFD Sender: No OFD packet to send [10:29:19]OFD Sender: No OFD packet to send [10:29:24]OFD Sender: No OFD packet to send [10:29:29]OFD Sender: No OFD packet to send [10:29:34]OFD Sender: No OFD packet to send [10:29:39]OFD Sender: No OFD packet to send [10:29:44]OFD Sender: No OFD packet to send [10:29:49]OFD Sender: No OFD packet to send [10:29:54]OFD Sender: No OFD packet to send [10:29:59]OFD Sender: No OFD packet to send [10:30:04]OFD Sender: No OFD packet to send [10:30:09]OFD Sender: No OFD packet to send [10:30:14]OFD Sender: No OFD packet to send [10:30:19]OFD Sender: No OFD packet to send [10:30:24]OFD Sender: No OFD packet to send [10:30:29]OFD Sender: No OFD packet to send [10:30:34]OFD Sender: No OFD packet to send [10:30:39]OFD Sender: No OFD packet to send [10:30:44]OFD Sender: No OFD packet to send [10:30:49]OFD Sender: No OFD packet to send [10:30:54]OFD Sender: No OFD packet to send [10:30:59]OFD Sender: No OFD packet to send [10:31:04]OFD Sender: No OFD packet to send [10:31:09]OFD Sender: No OFD packet to send [10:31:14]OFD Sender: No OFD packet to send [10:31:19]OFD Sender: No OFD packet to send [10:31:24]OFD Sender: No OFD packet to send [10:31:29]OFD Sender: No OFD packet to send [10:31:34]OFD Sender: No OFD packet to send [10:31:39]OFD Sender: No OFD packet to send [10:31:44]OFD Sender: No OFD packet to send [10:31:49]OFD Sender: No OFD packet to send [10:31:54]OFD Sender: No OFD packet to send [10:31:59]OFD Sender: No OFD packet to send [10:32:04]OFD Sender: No OFD packet to send [10:32:06]accept exits with 6 [10:32:06]New connection [10:32:06]New thread 3066641764 created [10:32:06]Thread 3066498404 joined [10:32:06]Waiting for new connection... [10:32:06] Sock 6.Parse request [10:32:06]Sock 6.Check first char [10:32:06]Sock 6.First char is OK [10:32:06]request: POST /json_proto HTTP/1.0 [10:32:06]Method: POST [10:32:06]URL: /json_proto [10:32:06]Method is POST - this is cgi request [10:32:06]url: /json_proto [10:32:06]query_string will be loaded in cgi processing [10:32:06]execute_cgi json_proto POST (null) [10:32:06]execute_cgi path=json_proto method=POST [10:32:06]POST find Content-Length [10:32:06]Host: 172.17.33.3:8080 [10:32:06]Content-Length: 837 [10:32:06]Content-Type: application/json [10:32:06] [10:32:06]POST finish read [10:32:06]Found Content-Length = 837 [10:32:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346956", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 6.910, "sum" : 500.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.28 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:32:06]execute_script... [10:32: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)346956", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 6.910, "sum" : 500.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.28 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:32:06]POST & json_proto [10:32:06]process_json_proto [10:32:06]json parsed OK: [10:32:06]protocol is kg_v1.0 [10:32:06]action value=close_receipt [10:32:06]process_action close_receipt [10:32:06]cmd_close_receipt [10:32:06]MH_GetDate [10:32:06]Write to MH i2c: F0 00 00 70 71 D0 [10:32:06]Write i2c OK [10:32:06]MH_I2C_Read... [10:32:06]Read from MH i2c: F0 [10:32:06]MH_I2C_Read... [10:32:06]Read from MH i2c: F0 09 00 [10:32:06]MH_I2C_Read... [10:32:06]Read from MH i2c: F0 09 00 70 71 00 AE 0D 19 66 23 5B 8F 65 85 [10:32:06]GetLastDocTimeStamp 1712917714 [10:32:06]current date 1712917934 [10:32:06]FM_GetShiftState [10:32:06]SAM_PROTO_GetShiftState [10:32:06]wFMCommunicate request_size=4 [10:32:06]MH_SAM_APDU [10:32:06]CAPDU: 80 13 01 00 [10:32:06]Write to MH i2c: E2 08 00 71 71 80 13 01 00 00 00 00 00 5F [10:32:06]Write i2c OK [10:32:06]MH_I2C_Read... [10:32:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:32:06]Read from MH i2c: E2 [10:32:06]MH_I2C_Read... [10:32:06]Read from MH i2c: E2 0E 00 [10:32:06]MH_I2C_Read... [10:32:06]Read from MH i2c: E2 0E 00 71 71 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 70 [10:32:06]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [10:32:06]wFMCommunicate OK [10:32:06]SAM_PROTO_GetShiftState done [10:32:06]FM_GetShiftState done [10:32:06]opened in 1712881416 [10:32:06]opened+sec_in_day 1712967816 [10:32:06]quantity*price = 50028 [10:32:06]sum+1 = 50029 [10:32:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.28 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 0.00 Безнал.: 500.28 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 86 12.04.2024 10:32 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 28637 ФПД: 105667702439 1/tax-web-control/client/api/v1/ticket?date=20240412T103214&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28637&fm=105667702439&tin=02508201610067®Number=0000138879044617&sum=50028 [10:32:07]StoreToDocumentArchive [10:32:07]shift 113 fd 28637 [10:32:07]save to /storage/0113/doc_00028637 [10:32:07]save last doc name /storage/0113/doc_00028637 to /storage/kkm_last_doc_name [10:32:07]save OK [10:32:07]Clear old archive folders... [10:32:07]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:32:07]tlvbuf is 01B305B0 [10:32:07]SAM_PROTO_ClearQueue [10:32:07]wFMCommunicate request_size=4 [10:32:07]MH_SAM_APDU [10:32:07]CAPDU: 80 09 00 00 [10:32:07]Write to MH i2c: E2 08 00 7E 71 80 09 00 00 00 00 00 00 61 [10:32:07]Write i2c OK [10:32:07]MH_I2C_Read... [10:32:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:32:07]Read from MH i2c: E2 [10:32:07]MH_I2C_Read... [10:32:07]Read from MH i2c: E2 03 00 [10:32:07]MH_I2C_Read... [10:32:07]Read from MH i2c: E2 03 00 7E 71 00 90 00 63 [10:32:07]RAPDU: 90 00 [10:32:07]wFMCommunicate OK [10:32:07]SAM_PROTO_ClearQueue done [10:32:07]KKMCreateOFDPacket [10:32:07]OFDProtocolAddRootSTLVToBuf [10:32:07]FM_MakeSignedData [10:32:07]FM_MakeSignedData [10:32:07]SAM_PROTO_SignData [10:32:07]wFMCommunicate request_size=4 [10:32:07]MH_SAM_APDU [10:32:07]CAPDU: 80 0D 01 02 [10:32:07]Write to MH i2c: E2 08 00 7F 71 80 0D 01 02 00 00 00 00 69 [10:32:07]Write i2c OK [10:32:07]MH_I2C_Read... [10:32:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:32:08]Read from MH i2c: E2 [10:32:08]MH_I2C_Read... [10:32:08]Read from MH i2c: E2 03 00 [10:32:08]MH_I2C_Read... [10:32:08]Read from MH i2c: E2 03 00 7F 71 00 90 00 64 [10:32:08]RAPDU: 90 00 [10:32:08]wFMCommunicate OK [10:32:08]wFMCommunicate request_size=255 [10:32:08]MH_SAM_APDU [10:32: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 35 FF 03 08 00 03 FE 1A 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 6C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 AE 0D 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DD 6F 00 00 35 04 06 00 00 18 9A 49 [10:32:08]Write to MH i2c: E2 02 01 80 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 35 FF 03 08 00 03 FE 1A 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 6C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 AE 0D 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DD 6F 00 00 35 04 06 00 00 18 9A 49 00 00 C5 [10:32:08]Write i2c OK [10:32:08]MH_I2C_Read... [10:32:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:32:08]Read from MH i2c: E2 [10:32:08]MH_I2C_Read... [10:32:08]Read from MH i2c: E2 03 00 [10:32:08]MH_I2C_Read... [10:32:08]Read from MH i2c: E2 03 00 80 71 00 90 00 65 [10:32:08]RAPDU: 90 00 [10:32:08]wFMCommunicate OK [10:32:08]wFMCommunicate request_size=7 [10:32:08]MH_SAM_APDU [10:32:08]CAPDU: 80 0D 02 02 02 2E A7 [10:32:08]Write to MH i2c: E2 0A 00 81 71 80 0D 02 02 02 00 2E A7 00 00 45 [10:32:08]Write i2c OK [10:32:08]MH_I2C_Read... [10:32:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:32:08]Read from MH i2c: E2 [10:32:08]MH_I2C_Read... [10:32:08]Read from MH i2c: E2 03 00 [10:32:08]MH_I2C_Read... [10:32:08]Read from MH i2c: E2 03 00 81 71 00 90 00 66 [10:32:08]RAPDU: 90 00 [10:32:08]wFMCommunicate OK [10:32:08]wFMCommunicate request_size=4 [10:32:08]MH_SAM_APDU [10:32:08]CAPDU: 80 0D 03 02 [10:32:08]Write to MH i2c: E2 08 00 82 71 80 0D 03 02 00 00 00 00 6E [10:32:08]Write i2c OK [10:32:08]MH_I2C_Read... [10:32:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:32:08]Read from MH i2c: E2 [10:32:08]MH_I2C_Read... [10:32:08]Read from MH i2c: E2 0B 00 [10:32:08]MH_I2C_Read... [10:32:08]Read from MH i2c: E2 0B 00 82 71 00 3D B6 BC B9 EA 67 55 D9 90 00 56 [10:32:08]RAPDU: 3D B6 BC B9 EA 67 55 D9 90 00 [10:32:08]wFMCommunicate OK [10:32:08]SAM_PROTO_SignData done [10:32:08]FM_MakeSignedData done [10:32:08]CreateOFDProtocolMessage [10:32:08]wFMCommunicate request_size=4 [10:32:08]MH_SAM_APDU [10:32:08]CAPDU: 80 11 00 00 [10:32:08]Write to MH i2c: E2 08 00 83 71 80 11 00 00 00 00 00 00 6E [10:32:08]Write i2c OK [10:32:08]MH_I2C_Read... [10:32:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:08]Read from MH i2c: E2 [10:32:08]MH_I2C_Read... [10:32:08]Read from MH i2c: E2 17 00 [10:32:08]MH_I2C_Read... [10:32:08]Read from MH i2c: E2 17 00 83 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 BD [10:32:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:32:08]wFMCommunicate OK [10:32:08]CreateOFDProtocolMessage done [10:32:08]OFDSenderStorePacket 28637 [10:32:08]StoreOFDPacket docnum=28637 [10:32:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 31 58 04 01 BF B1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FE 1A 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 6C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 AE 0D 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DD 6F 00 00 35 04 06 00 00 18 9A 49 2E A7 3D B6 BC B9 EA 67 55 D9 [10:32:08]CheckFolder [10:32:08]dirname=/storage/ofd_packets [10:32:08]CheckFolder done [10:32:08]ProducePacketName [10:32:08]name=ofd_packets/00028637 [10:32:08]NVStorageSaveData ofd_packets/00028637 [10:32:08]File name is /storage/ofd_packets/00028637 [10:32:08]Write 298 bytes [10:32:08]NVStorageSaveData done [10:32:08]OFDSenderStorePacket done [10:32:08]KKMCreateOFDPacket done [10:32:08]NVStorageSaveData kkm_last_timestamp [10:32:08]File name is /storage/kkm_last_timestamp [10:32:08]Write 4 bytes [10:32:08]NVStorageSaveData done [10:32:08]ExternCall_PrintAddStr [10:32:08]wPrintStart [10:32:08]Write to MH i2c: 01 00 00 84 71 F5 [10:32:08]Write i2c OK [10:32:08]MH_I2C_Read... [10:32:08]Read from MH i2c: 01 [10:32:08]MH_I2C_Read... [10:32:08]Read from MH i2c: 01 07 00 [10:32:08]MH_I2C_Read... [10:32:08]Read from MH i2c: 01 07 00 84 71 00 00 00 00 00 FF 0F 0A [10:32:08]RasterBufferAndPrint [10:32:08]line Счет N : (1)346956 [10:32:08]line ИНН: 02508201610067 [10:32:08]line Контрольно-Кассовый Чек [10:32:08]line ПРОДАЖА [10:32:08]line ТРК (МРК, ГНК) : 11 [10:32:08]line Товар: 2710194210 [10:32:08]line ДТ-К-5 [10:32:08]line 6.910 * 72.40 [10:32:08]line = 500.28 [10:32:08]line НДС 12% НСП 1% [10:32:08]line > о реализуемом товаре [10:32:08]line ИТОГО: 500.28 [10:32:08]line НСП 1% : 4.43 [10:32:08]line НДС 12% : 53.13 [10:32:08]line Наличными: 0.00 [10:32:08]line Безнал.: 500.28 [10:32:08]line Место: АЗС № 108 "Партнер Нефть" [10:32:08]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [10:32:08]line СНО: Общий режим [10:32:08]line Чек 86 12.04.2024 10:32 [10:32:08]line Смена: 113 ФФД: 1.0 [10:32:08]line ЗНМ: 0300000027 [10:32:08]line РНМ: 0000138879044617 [10:32:08]line Версия ККМ: 001 [10:32:08]line Платежная система: АКБ Кыргызстан [10:32:08]line ФМ: 0000000000963154 [10:32:08]line ФД: 28637 [10:32:08]line ФПД: 105667702439 [10:32:08]line 1/tax-web-control/client/api/v1/ticket?date=20240412T103214&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28637&fm=105667702439&tin=02508201610067®Number=0000138879044617&sum=50028 [10:32:08]OFD Sender: Processing packet 28637 [packets to send 8, broken 7] [10:32:08]ProducePacketName [10:32:08]name=ofd_packets/00028637 [10:32:08]OFD Sender: To server: pG, [10:32:08]CommunicateWithHost lk.salyk.kg:30040 [10:32:08]ConnectInit lk.salyk.kg [10:32:08]written 0, free lines is 4095 [10:32:08]Connected sock=7 [10:32:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 31 58 04 01 BF B1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FE 1A 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 6C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 AE 0D 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DD 6F 00 00 35 04 06 00 00 18 9A 49 2E A7 3D B6 BC B9 EA 67 55 D9 [10:32:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 9F D8 47 00 52 FE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DD 6F 00 00 F4 03 04 00 58 B8 18 66 B6 04 01 00 00 71 E6 BD 4D 74 F9 7D D7 [10:32:09]CommunicateWithHost err = 0 [10:32:09]CheckOFDResponse [10:32:09]1017 (14) - 77093643461234 [10:32:09]1041 (16) - 0000000000963154 [10:32:09]1040 (4) - 28637 [10:32:09]1012 (4) - 12.04.2024 04:28 [10:32:09]1206 (1) - 0 [10:32:09]OFD Sender: Remove packet 28637 [10:32:09]ProducePacketName [10:32:09]name=ofd_packets/00028637 [10:32:09]NVStorageDeleteData [10:32:09]Write to MH i2c: 01 00 00 AD 71 1E [10:32:09]Write i2c OK [10:32:09]MH_I2C_Read... [10:32:09]Read from MH i2c: 01 [10:32:09]MH_I2C_Read... [10:32:09]Read from MH i2c: 01 07 00 [10:32:09]MH_I2C_Read... [10:32:09]Read from MH i2c: 01 07 00 AD 71 00 00 00 00 00 D3 0C 04 [10:32:09]RasterBufferAndPrint [10:32:09]line [10:32:09]line [10:32:09]line [10:32:09]line [10:32:09]line [10:32:09]written 0, free lines is 3288 [10:32:09]MH_Cut [10:32:09]Write to MH i2c: D1 01 00 B4 71 01 F7 [10:32:09]Write i2c OK [10:32:09]MH_I2C_Read... [10:32:09]Read from MH i2c: D1 [10:32:09]MH_I2C_Read... [10:32:09]Read from MH i2c: D1 01 00 [10:32:09]MH_I2C_Read... [10:32:09]Read from MH i2c: D1 01 00 B4 71 00 F6 [10:32:09]Write to MH i2c: 01 00 00 B5 71 26 [10:32:09]Write i2c OK [10:32:09]MH_I2C_Read... [10:32:09]OFD Sender: No OFD packet to send [10:32:10]*** Cut start [10:32:10]*** Partial cut [10:32:10]*** CUTSNS_PIN = 1 [10:32:10]*** CUTSNS_PIN = 0 [10:32:10]*** Brake cut motor [10:32:10]Read from MH i2c: 01 [10:32:10]MH_I2C_Read... [10:32:10]Read from MH i2c: 01 07 00 [10:32:10]MH_I2C_Read... [10:32:10]Read from MH i2c: 01 07 00 B5 71 00 00 00 00 00 FF 0F 3B [10:32:10]process_action close_receipt done [10:32:10]requested_data is exist [10:32:10]produce_requested_data [10:32:10]requested_item fm.sn is exist - process it [10:32:10]wFMCommunicate request_size=4 [10:32:10]MH_SAM_APDU [10:32:10]CAPDU: 80 11 00 00 [10:32:10]Write to MH i2c: E2 08 00 B6 71 80 11 00 00 00 00 00 00 A1 [10:32:10]*** Stop cut motor [10:32:10]*** Cut end [10:32:10]*** FLAG_PRN_KEY set [10:32:10]Write i2c OK [10:32:10]MH_I2C_Read... [10:32:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:10]Read from MH i2c: E2 [10:32:10]MH_I2C_Read... [10:32:10]Read from MH i2c: E2 17 00 [10:32:10]MH_I2C_Read... [10:32:10]Read from MH i2c: E2 17 00 B6 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 F0 [10:32:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:32:10]wFMCommunicate OK [10:32:10]requested_item fd.num is exist - process it [10:32:10]SAM_PROTO_GetFieldsCounters [10:32:10]wFMCommunicate request_size=4 [10:32:10]MH_SAM_APDU [10:32:10]CAPDU: 80 13 00 00 [10:32:10]Write to MH i2c: E2 08 00 B7 71 80 13 00 00 00 00 00 00 A4 [10:32:10]Write i2c OK [10:32:10]MH_I2C_Read... [10:32:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:32:10]Read from MH i2c: E2 [10:32:10]MH_I2C_Read... [10:32:10]Read from MH i2c: E2 62 00 [10:32:10]MH_I2C_Read... [10:32:10]Read from MH i2c: E2 62 00 B7 71 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 DD 6F 00 00 0E 04 04 00 71 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 A1 [10:32:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 DD 6F 00 00 0E 04 04 00 71 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 [10:32:10]wFMCommunicate OK [10:32:10]SAM_PROTO_GetFieldsCounters done [10:32:10]requested_item shift.num is exist - process it [10:32:10]requested_item shift.opened is exist - process it [10:32:10]req_shift_opened [10:32:10]FM_GetShiftState [10:32:10]SAM_PROTO_GetShiftState [10:32:10]wFMCommunicate request_size=4 [10:32:10]MH_SAM_APDU [10:32:10]CAPDU: 80 13 01 00 [10:32:10]Write to MH i2c: E2 08 00 B8 71 80 13 01 00 00 00 00 00 A6 [10:32:10]*** FLAG_PRN_KEY reset [10:32:10]Write i2c OK [10:32:10]MH_I2C_Read... [10:32:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:32:10]Read from MH i2c: E2 [10:32:10]MH_I2C_Read... [10:32:10]Read from MH i2c: E2 0E 00 [10:32:10]MH_I2C_Read... [10:32:10]Read from MH i2c: E2 0E 00 B8 71 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 B7 [10:32:10]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [10:32:10]wFMCommunicate OK [10:32:10]SAM_PROTO_GetShiftState done [10:32:10]FM_GetShiftState done [10:32:10]req_shift_opened done [10:32:10]requested_item shift.open_date is exist - process it [10:32:10]req_shift_open_date [10:32:10]req_shift_open_date done [10:32:10]produce_requested_data done [10:32:10]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28637,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [10:32:10]process_action_free close_receipt [10:32:10]json_value_free [10:32:10]json_value_free done [10:32:10]process_json_proto returns [10:32:10]Send response to host [10:32:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28637,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [10:32:10]free response buf [10:32:10]execute_script done [10:32:10]execute_script returns [10:32:10]free content buf [10:32:10]Sock 6.Close socket [10:32:10]Sock 6.Thread stoped [10:32:11]*** FLAG_PRN_KEY set [10:32:11]*** FLAG_PRN_KEY reset [10:32:11]*** FLAG_PRN_KEY set [10:32:11]*** FLAG_PRN_KEY reset [10:32:11]*** FLAG_PRN_KEY set [10:32:11]*** FLAG_PRN_KEY reset [10:32:12]*** FLAG_PRN_KEY set [10:32:12]*** FLAG_PRN_KEY reset [10:32:12]*** FLAG_PRN_KEY set [10:32:12]*** FLAG_PRN_KEY reset [10:32:12]*** FLAG_PRN_KEY set [10:32:12]*** FLAG_PRN_KEY reset [10:32:12]*** FLAG_PRN_KEY set [10:32:12]*** FLAG_PRN_KEY reset [10:32:12]*** FLAG_PRN_KEY set [10:32:12]*** FLAG_PRN_KEY reset [10:32:13]*** FLAG_PRN_KEY set [10:32:13]*** FLAG_PRN_KEY reset [10:32:13]*** FLAG_PRN_KEY set [10:32:13]*** FLAG_PRN_KEY reset [10:32:13]*** FLAG_PRN_KEY set [10:32:13]*** FLAG_PRN_KEY reset [10:32:14]*** FLAG_PRN_KEY set [10:32:14]*** FLAG_PRN_KEY reset [10:32:14]*** FLAG_PRN_KEY set [10:32:14]*** FLAG_PRN_KEY reset [10:32:14]OFD Sender: No OFD packet to send [10:32:14]*** FLAG_PRN_KEY set [10:32:14]*** FLAG_PRN_KEY reset [10:32:19]OFD Sender: No OFD packet to send [10:32:24]OFD Sender: No OFD packet to send [10:32:29]OFD Sender: No OFD packet to send [10:32:34]OFD Sender: No OFD packet to send [10:32:39]OFD Sender: No OFD packet to send [10:32:44]OFD Sender: No OFD packet to send [10:32:49]OFD Sender: No OFD packet to send [10:32:54]OFD Sender: No OFD packet to send [10:32:59]OFD Sender: No OFD packet to send [10:33:04]OFD Sender: No OFD packet to send [10:33:09]OFD Sender: No OFD packet to send [10:33:14]OFD Sender: No OFD packet to send [10:33:19]OFD Sender: No OFD packet to send [10:33:24]OFD Sender: No OFD packet to send [10:33:29]OFD Sender: No OFD packet to send [10:33:34]OFD Sender: No OFD packet to send [10:33:39]OFD Sender: No OFD packet to send [10:33:44]OFD Sender: No OFD packet to send [10:33:49]OFD Sender: No OFD packet to send [10:33:54]OFD Sender: No OFD packet to send [10:33:59]OFD Sender: No OFD packet to send [10:34:04]OFD Sender: No OFD packet to send [10:34:05]accept exits with 5 [10:34:05]New connection [10:34:05]New thread 3066498404 created [10:34:05]Thread 3066641764 joined [10:34:05]Waiting for new connection... [10:34:05] Sock 5.Parse request [10:34:05]Sock 5.Check first char [10:34:05]Sock 5.First char is OK [10:34:05]request: POST /json_proto HTTP/1.0 [10:34:05]Method: POST [10:34:05]URL: /json_proto [10:34:05]Method is POST - this is cgi request [10:34:05]url: /json_proto [10:34:05]query_string will be loaded in cgi processing [10:34:05]execute_cgi json_proto POST (null) [10:34:05]execute_cgi path=json_proto method=POST [10:34:05]POST find Content-Length [10:34:05]Host: 172.17.33.3:8080 [10:34:05]Content-Length: 1210 [10:34:05]Content-Type: application/json [10:34:05] [10:34:05]POST finish read [10:34:05]Found Content-Length = 1210 [10:34:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)346957\u000A12.04.2024 10:16\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 51\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 30.000 x 72.40\u000A\u0418\u0422\u041E\u0413: 2172.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A68971\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:34:05]execute_script... [10:34:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)346957\u000A12.04.2024 10:16\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 51\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 30.000 x 72.40\u000A\u0418\u0422\u041E\u0413: 2172.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A68971\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:34:05]POST & json_proto [10:34:05]process_json_proto [10:34:05]json parsed OK: [10:34:05]protocol is kg_v1.0 [10:34:05]action value=print_text [10:34:05]process_action print_text [10:34:05]cmd_print_text [10:34:05]ExternCall_PrintAddStr [10:34:05]wPrintStart [10:34:05]Write to MH i2c: 01 00 00 B9 71 2A [10:34:05]Write i2c OK [10:34:05]MH_I2C_Read... [10:34:05]Read from MH i2c: 01 [10:34:05]MH_I2C_Read... [10:34:05]Read from MH i2c: 01 07 00 [10:34:05]MH_I2C_Read... [10:34:05]Read from MH i2c: 01 07 00 B9 71 00 00 00 00 00 FF 0F 3F [10:34:05]RasterBufferAndPrint [10:34:05]line *****ТОВАРНЫЙ ЧЕК***** [10:34:05]line АЗС 108 [10:34:05]line Партнер нефть [10:34:05]line 02508201610067 [10:34:05]line Кассир : Джумагулова Н. [10:34:05]line Счет N : (1)346957 [10:34:05]line 12.04.2024 10:16 [10:34:05]line ПРОДАЖА [10:34:05]line ТРК (МРК, ГНК): 51 [10:34:05]line Вид ГСМ : 2710194210 [10:34:05]line ДТ-К-5 [10:34:05]line 30.000 x 72.40 [10:34:05]line ИТОГ: 2172.00 [10:34:05]line Тип оплаты: Талоны: Топливная Карта [10:34:05]line 68971 [10:34:05]line ______________________ [10:34:05]line (подпись) [10:34:05]written 0, free lines is 4095 [10:34:05]Write to MH i2c: 01 00 00 CE 71 3F [10:34:05]Write i2c OK [10:34:05]MH_I2C_Read... [10:34:05]Read from MH i2c: 01 [10:34:05]MH_I2C_Read... [10:34:05]Read from MH i2c: 01 07 00 [10:34:05]MH_I2C_Read... [10:34:05]Read from MH i2c: 01 07 00 CE 71 00 00 00 00 00 F3 0D 46 [10:34:05]RasterBufferAndPrint [10:34:05]line [10:34:05]line [10:34:05]line [10:34:05]line [10:34:05]line [10:34:05]written 0, free lines is 3573 [10:34:05]MH_Cut [10:34:05]Write to MH i2c: D1 01 00 D5 71 01 18 [10:34:05]Write i2c OK [10:34:05]MH_I2C_Read... [10:34:05]Read from MH i2c: D1 [10:34:05]MH_I2C_Read... [10:34:05]Read from MH i2c: D1 01 00 [10:34:05]MH_I2C_Read... [10:34:05]Read from MH i2c: D1 01 00 D5 71 00 17 [10:34:05]Write to MH i2c: 01 00 00 D6 71 47 [10:34:05]Write i2c OK [10:34:05]MH_I2C_Read... [10:34:05]*** Cut start [10:34:05]*** Partial cut [10:34:05]*** CUTSNS_PIN = 1 [10:34:05]*** CUTSNS_PIN = 0 [10:34:06]*** Brake cut motor [10:34:06]Read from MH i2c: 01 [10:34:06]MH_I2C_Read... [10:34:06]Read from MH i2c: 01 07 00 [10:34:06]MH_I2C_Read... [10:34:06]*** Stop cut motor [10:34:06]*** Cut end [10:34:06]Read from MH i2c: 01 07 00 D6 71 00 00 00 00 00 FF 0F 5C [10:34:06]process_action print_text done [10:34:06]requested_data is exist [10:34:06]produce_requested_data [10:34:06]requested_item fm.sn is exist - process it [10:34:06]wFMCommunicate request_size=4 [10:34:06]MH_SAM_APDU [10:34:06]CAPDU: 80 11 00 00 [10:34:06]Write to MH i2c: E2 08 00 D7 71 80 11 00 00 00 00 00 00 C2 [10:34:06]Write i2c OK [10:34:06]MH_I2C_Read... [10:34:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:34:06]Read from MH i2c: E2 [10:34:06]MH_I2C_Read... [10:34:06]Read from MH i2c: E2 17 00 [10:34:06]MH_I2C_Read... [10:34:06]Read from MH i2c: E2 17 00 D7 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 11 [10:34:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:34:06]wFMCommunicate OK [10:34:06]requested_item fd.num is exist - process it [10:34:06]SAM_PROTO_GetFieldsCounters [10:34:06]wFMCommunicate request_size=4 [10:34:06]MH_SAM_APDU [10:34:06]CAPDU: 80 13 00 00 [10:34:06]Write to MH i2c: E2 08 00 D8 71 80 13 00 00 00 00 00 00 C5 [10:34:06]Write i2c OK [10:34:06]MH_I2C_Read... [10:34:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:34:06]Read from MH i2c: E2 [10:34:06]MH_I2C_Read... [10:34:06]Read from MH i2c: E2 62 00 [10:34:06]MH_I2C_Read... [10:34:06]Read from MH i2c: E2 62 00 D8 71 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 DD 6F 00 00 0E 04 04 00 71 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 C2 [10:34:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 DD 6F 00 00 0E 04 04 00 71 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 [10:34:06]wFMCommunicate OK [10:34:06]SAM_PROTO_GetFieldsCounters done [10:34:06]requested_item shift.num is exist - process it [10:34:06]requested_item shift.opened is exist - process it [10:34:06]req_shift_opened [10:34:06]FM_GetShiftState [10:34:06]SAM_PROTO_GetShiftState [10:34:06]wFMCommunicate request_size=4 [10:34:06]MH_SAM_APDU [10:34:06]CAPDU: 80 13 01 00 [10:34:06]Write to MH i2c: E2 08 00 D9 71 80 13 01 00 00 00 00 00 C7 [10:34:06]Write i2c OK [10:34:06]MH_I2C_Read... [10:34:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:34:06]Read from MH i2c: E2 [10:34:06]MH_I2C_Read... [10:34:06]Read from MH i2c: E2 0E 00 [10:34:06]MH_I2C_Read... [10:34:06]Read from MH i2c: E2 0E 00 D9 71 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 D8 [10:34:06]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [10:34:06]wFMCommunicate OK [10:34:06]SAM_PROTO_GetShiftState done [10:34:06]FM_GetShiftState done [10:34:06]req_shift_opened done [10:34:06]requested_item shift.open_date is exist - process it [10:34:06]req_shift_open_date [10:34:06]req_shift_open_date done [10:34:06]produce_requested_data done [10:34:06]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28637,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [10:34:06]process_action_free print_text [10:34:06]json_value_free [10:34:06]json_value_free done [10:34:06]process_json_proto returns [10:34:06]Send response to host [10:34:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28637,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [10:34:06]free response buf [10:34:06]execute_script done [10:34:06]execute_script returns [10:34:06]free content buf [10:34:06]Sock 5.Close socket [10:34:06]Sock 5.Thread stoped [10:34:09]OFD Sender: No OFD packet to send [10:34:14]OFD Sender: No OFD packet to send [10:34:19]OFD Sender: No OFD packet to send [10:34:24]OFD Sender: No OFD packet to send [10:34:29]OFD Sender: No OFD packet to send [10:34:34]OFD Sender: No OFD packet to send [10:34:39]OFD Sender: No OFD packet to send [10:34:44]OFD Sender: No OFD packet to send [10:34:49]OFD Sender: No OFD packet to send [10:34:54]OFD Sender: No OFD packet to send [10:34:59]OFD Sender: No OFD packet to send [10:35:04]OFD Sender: No OFD packet to send [10:35:09]OFD Sender: No OFD packet to send [10:35:14]OFD Sender: No OFD packet to send [10:35:19]OFD Sender: No OFD packet to send [10:35:24]OFD Sender: No OFD packet to send [10:35:29]OFD Sender: No OFD packet to send [10:35:34]OFD Sender: No OFD packet to send [10:35:39]OFD Sender: No OFD packet to send [10:35:44]OFD Sender: No OFD packet to send [10:35:49]OFD Sender: No OFD packet to send [10:35:54]OFD Sender: No OFD packet to send [10:35:59]OFD Sender: No OFD packet to send [10:36:04]OFD Sender: No OFD packet to send [10:36:09]OFD Sender: No OFD packet to send [10:36:14]OFD Sender: No OFD packet to send [10:36:19]OFD Sender: No OFD packet to send [10:36:24]OFD Sender: No OFD packet to send [10:36:29]OFD Sender: No OFD packet to send [10:36:34]OFD Sender: No OFD packet to send [10:36:39]OFD Sender: No OFD packet to send [10:36:44]OFD Sender: No OFD packet to send [10:36:49]OFD Sender: No OFD packet to send [10:36:54]OFD Sender: No OFD packet to send [10:36:59]OFD Sender: No OFD packet to send [10:37:04]OFD Sender: No OFD packet to send [10:37:09]OFD Sender: No OFD packet to send [10:37:14]OFD Sender: No OFD packet to send [10:37:19]OFD Sender: No OFD packet to send [10:37:24]OFD Sender: No OFD packet to send [10:37:29]OFD Sender: No OFD packet to send [10:37:34]OFD Sender: No OFD packet to send [10:37:39]OFD Sender: No OFD packet to send [10:37:44]OFD Sender: No OFD packet to send [10:37:49]OFD Sender: No OFD packet to send [10:37:54]OFD Sender: No OFD packet to send [10:37:59]OFD Sender: No OFD packet to send [10:38:04]OFD Sender: No OFD packet to send [10:38:09]OFD Sender: No OFD packet to send [10:38:14]OFD Sender: No OFD packet to send [10:38:19]OFD Sender: No OFD packet to send [10:38:24]OFD Sender: No OFD packet to send [10:38:29]OFD Sender: No OFD packet to send [10:38:34]OFD Sender: No OFD packet to send [10:38:39]OFD Sender: No OFD packet to send [10:38:44]OFD Sender: No OFD packet to send [10:38:49]OFD Sender: No OFD packet to send [10:38:54]OFD Sender: No OFD packet to send [10:38:59]OFD Sender: No OFD packet to send [10:39:04]OFD Sender: No OFD packet to send [10:39:09]OFD Sender: No OFD packet to send [10:39:14]OFD Sender: No OFD packet to send [10:39:19]OFD Sender: No OFD packet to send [10:39:24]OFD Sender: No OFD packet to send [10:39:29]OFD Sender: No OFD packet to send [10:39:34]OFD Sender: No OFD packet to send [10:39:39]OFD Sender: No OFD packet to send [10:39:44]OFD Sender: No OFD packet to send [10:39:49]OFD Sender: No OFD packet to send [10:39:54]OFD Sender: No OFD packet to send [10:39:59]OFD Sender: No OFD packet to send [10:40:04]OFD Sender: No OFD packet to send [10:40:09]OFD Sender: No OFD packet to send [10:40:14]OFD Sender: No OFD packet to send [10:40:19]OFD Sender: No OFD packet to send [10:40:24]OFD Sender: No OFD packet to send [10:40:29]OFD Sender: No OFD packet to send [10:40:34]OFD Sender: No OFD packet to send [10:40:39]OFD Sender: No OFD packet to send [10:40:44]OFD Sender: No OFD packet to send [10:40:49]OFD Sender: No OFD packet to send [10:40:54]OFD Sender: No OFD packet to send [10:40:59]OFD Sender: No OFD packet to send [10:41:04]OFD Sender: No OFD packet to send [10:41:09]OFD Sender: No OFD packet to send [10:41:14]OFD Sender: No OFD packet to send [10:41:19]OFD Sender: No OFD packet to send [10:41:24]OFD Sender: No OFD packet to send [10:41:29]OFD Sender: No OFD packet to send [10:41:34]OFD Sender: No OFD packet to send [10:41:39]accept exits with 6 [10:41:39]New connection [10:41:39]New thread 3066641764 created [10:41:39]Thread 3066498404 joined [10:41:39]Waiting for new connection... [10:41:39] Sock 6.Parse request [10:41:39]Sock 6.Check first char [10:41:39]Sock 6.First char is OK [10:41:39]request: POST /json_proto HTTP/1.0 [10:41:39]Method: POST [10:41:39]URL: /json_proto [10:41:39]Method is POST - this is cgi request [10:41:39]url: /json_proto [10:41:39]query_string will be loaded in cgi processing [10:41:39]execute_cgi json_proto POST (null) [10:41:39]execute_cgi path=json_proto method=POST [10:41:39]POST find Content-Length [10:41:39]Host: 172.17.33.3:8080 [10:41:39]Content-Length: 674 [10:41:39]Content-Type: application/json [10:41:39] [10:41:39]POST finish read [10:41:39]Found Content-Length = 674 [10:41:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346959", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 6.910, "sum" : 500.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:41:39]execute_script... [10:41: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)346959", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 6.910, "sum" : 500.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:41:39]POST & json_proto [10:41:39]process_json_proto [10:41:39]json parsed OK: [10:41:39]protocol is kg_v1.0 [10:41:39]action value=close_receipt [10:41:39]process_action close_receipt [10:41:39]cmd_close_receipt [10:41:39]MH_GetDate [10:41:39]Write to MH i2c: F0 00 00 DA 71 3A [10:41:39]Write i2c OK [10:41:39]MH_I2C_Read... [10:41:39]Read from MH i2c: F0 [10:41:39]MH_I2C_Read... [10:41:39]Read from MH i2c: F0 09 00 [10:41:39]MH_I2C_Read... [10:41:39]Read from MH i2c: F0 09 00 DA 71 00 EB 0F 19 66 23 5B 8F 65 2E [10:41:39]GetLastDocTimeStamp 1712917934 [10:41:39]current date 1712918507 [10:41:39]FM_GetShiftState [10:41:39]SAM_PROTO_GetShiftState [10:41:39]wFMCommunicate request_size=4 [10:41:39]MH_SAM_APDU [10:41:39]CAPDU: 80 13 01 00 [10:41:39]Write to MH i2c: E2 08 00 DB 71 80 13 01 00 00 00 00 00 C9 [10:41:39]Write i2c OK [10:41:39]MH_I2C_Read... [10:41:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:41:39]Read from MH i2c: E2 [10:41:39]MH_I2C_Read... [10:41:39]Read from MH i2c: E2 0E 00 [10:41:39]MH_I2C_Read... [10:41:39]Read from MH i2c: E2 0E 00 DB 71 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 DA [10:41:39]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [10:41:39]wFMCommunicate OK [10:41:39]SAM_PROTO_GetShiftState done [10:41:39]FM_GetShiftState done [10:41:39]opened in 1712881416 [10:41:39]opened+sec_in_day 1712967816 [10:41:39]quantity*price = 50028 [10:41:39]sum+1 = 50029 [10:41:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 87 12.04.2024 10:41 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28638 ФПД: 226401684797809 1/tax-web-control/client/api/v1/ticket?date=20240412T104147&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28638&fm=226401684797809&tin=02508201610067®Number=0000138879044617&sum=50000 [10:41:40]StoreToDocumentArchive [10:41:40]shift 113 fd 28638 [10:41:40]save to /storage/0113/doc_00028638 [10:41:40]save last doc name /storage/0113/doc_00028638 to /storage/kkm_last_doc_name [10:41:40]save OK [10:41:40]Clear old archive folders... [10:41:40]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:41:40]tlvbuf is 01A9D3D0 [10:41:40]SAM_PROTO_ClearQueue [10:41:40]wFMCommunicate request_size=4 [10:41:40]MH_SAM_APDU [10:41:40]CAPDU: 80 09 00 00 [10:41:40]Write to MH i2c: E2 08 00 E8 71 80 09 00 00 00 00 00 00 CB [10:41:40]Write i2c OK [10:41:40]MH_I2C_Read... [10:41:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:41:40]Read from MH i2c: E2 [10:41:40]MH_I2C_Read... [10:41:40]Read from MH i2c: E2 03 00 [10:41:40]MH_I2C_Read... [10:41:40]Read from MH i2c: E2 03 00 E8 71 00 90 00 CD [10:41:40]RAPDU: 90 00 [10:41:40]wFMCommunicate OK [10:41:40]SAM_PROTO_ClearQueue done [10:41:40]KKMCreateOFDPacket [10:41:40]OFDProtocolAddRootSTLVToBuf [10:41:40]FM_MakeSignedData [10:41:40]FM_MakeSignedData [10:41:40]SAM_PROTO_SignData [10:41:40]wFMCommunicate request_size=4 [10:41:40]MH_SAM_APDU [10:41:40]CAPDU: 80 0D 01 02 [10:41:40]Write to MH i2c: E2 08 00 E9 71 80 0D 01 02 00 00 00 00 D3 [10:41:40]Write i2c OK [10:41:40]MH_I2C_Read... [10:41:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:41:40]Read from MH i2c: E2 [10:41:40]MH_I2C_Read... [10:41:40]Read from MH i2c: E2 03 00 [10:41:40]MH_I2C_Read... [10:41:40]Read from MH i2c: E2 03 00 E9 71 00 90 00 CE [10:41:40]RAPDU: 90 00 [10:41:40]wFMCommunicate OK [10:41:40]wFMCommunicate request_size=255 [10:41:40]MH_SAM_APDU [10:41:40]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FE 1A 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 6C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 EB 0F 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DE 6F 00 00 35 04 06 00 CD E9 3F FF [10:41:40]Write to MH i2c: E2 02 01 EA 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 35 FF 03 08 00 03 FE 1A 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 6C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 EB 0F 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DE 6F 00 00 35 04 06 00 CD E9 3F FF 00 00 31 [10:41:40]Write i2c OK [10:41:40]MH_I2C_Read... [10:41:40]Read from MH i2c: E2 [10:41:40]MH_I2C_Read... [10:41:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:41:40]Read from MH i2c: E2 03 00 [10:41:40]MH_I2C_Read... [10:41:40]Read from MH i2c: E2 03 00 EA 71 00 90 00 CF [10:41:40]RAPDU: 90 00 [10:41:40]wFMCommunicate OK [10:41:40]wFMCommunicate request_size=7 [10:41:40]MH_SAM_APDU [10:41:40]CAPDU: 80 0D 02 02 02 B9 71 [10:41:40]Write to MH i2c: E2 0A 00 EB 71 80 0D 02 02 02 00 B9 71 00 00 04 [10:41:40]Write i2c OK [10:41:40]MH_I2C_Read... [10:41:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:41:41]Read from MH i2c: E2 [10:41:41]MH_I2C_Read... [10:41:41]Read from MH i2c: E2 03 00 [10:41:41]MH_I2C_Read... [10:41:41]Read from MH i2c: E2 03 00 EB 71 00 90 00 D0 [10:41:41]RAPDU: 90 00 [10:41:41]wFMCommunicate OK [10:41:41]wFMCommunicate request_size=4 [10:41:41]MH_SAM_APDU [10:41:41]CAPDU: 80 0D 03 02 [10:41:41]Write to MH i2c: E2 08 00 EC 71 80 0D 03 02 00 00 00 00 D8 [10:41:41]Write i2c OK [10:41:41]MH_I2C_Read... [10:41:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:41:41]Read from MH i2c: E2 [10:41:41]MH_I2C_Read... [10:41:41]Read from MH i2c: E2 0B 00 [10:41:41]MH_I2C_Read... [10:41:41]Read from MH i2c: E2 0B 00 EC 71 00 E2 1D 8F 26 47 41 D7 CE 90 00 BA [10:41:41]RAPDU: E2 1D 8F 26 47 41 D7 CE 90 00 [10:41:41]wFMCommunicate OK [10:41:41]SAM_PROTO_SignData done [10:41:41]FM_MakeSignedData done [10:41:41]CreateOFDProtocolMessage [10:41:41]wFMCommunicate request_size=4 [10:41:41]MH_SAM_APDU [10:41:41]CAPDU: 80 11 00 00 [10:41:41]Write to MH i2c: E2 08 00 ED 71 80 11 00 00 00 00 00 00 D8 [10:41:41]Write i2c OK [10:41:41]MH_I2C_Read... [10:41:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:41:41]Read from MH i2c: E2 [10:41:41]MH_I2C_Read... [10:41:41]Read from MH i2c: E2 17 00 [10:41:41]MH_I2C_Read... [10:41:41]Read from MH i2c: E2 17 00 ED 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 27 [10:41:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:41:41]wFMCommunicate OK [10:41:41]CreateOFDProtocolMessage done [10:41:41]OFDSenderStorePacket 28638 [10:41:41]StoreOFDPacket docnum=28638 [10:41:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 AF 93 04 01 47 1F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FE 1A 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 6C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 EB 0F 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DE 6F 00 00 35 04 06 00 CD E9 3F FF B9 71 E2 1D 8F 26 47 41 D7 CE [10:41:41]CheckFolder [10:41:41]dirname=/storage/ofd_packets [10:41:41]CheckFolder done [10:41:41]ProducePacketName [10:41:41]name=ofd_packets/00028638 [10:41:41]NVStorageSaveData ofd_packets/00028638 [10:41:41]File name is /storage/ofd_packets/00028638 [10:41:41]Write 298 bytes [10:41:41]NVStorageSaveData done [10:41:41]OFDSenderStorePacket done [10:41:41]KKMCreateOFDPacket done [10:41:41]NVStorageSaveData kkm_last_timestamp [10:41:41]File name is /storage/kkm_last_timestamp [10:41:41]Write 4 bytes [10:41:41]NVStorageSaveData done [10:41:41]ExternCall_PrintAddStr [10:41:41]wPrintStart [10:41:41]Write to MH i2c: 01 00 00 EE 71 5F [10:41:41]Write i2c OK [10:41:41]MH_I2C_Read... [10:41:41]Read from MH i2c: 01 [10:41:41]MH_I2C_Read... [10:41:41]Read from MH i2c: 01 07 00 [10:41:41]MH_I2C_Read... [10:41:41]Read from MH i2c: 01 07 00 EE 71 00 00 00 00 00 FF 0F 74 [10:41:41]RasterBufferAndPrint [10:41:41]line Счет N : (1)346959 [10:41:41]line ИНН: 02508201610067 [10:41:41]line Контрольно-Кассовый Чек [10:41:41]line ПРОДАЖА [10:41:41]line ТРК (МРК, ГНК) : 21 [10:41:41]line Товар: 2710194210 [10:41:41]line ДТ-К-5 [10:41:41]line 6.910 * 72.40 [10:41:41]line = 500.28 [10:41:41]line НДС 12% НСП 1% [10:41:41]line > о реализуемом товаре [10:41:41]line ОКРУГЛЕНИЕ: -0.28 [10:41:41]line ИТОГО: 500.00 [10:41:41]line Внесено: 500.00 [10:41:41]line СДАЧА: 0.00 [10:41:41]line НСП 1% : 4.43 [10:41:41]line НДС 12% : 53.13 [10:41:41]line Наличными: 500.00 [10:41:41]line Безнал.: 0.00 [10:41:41]line Место: АЗС № 108 "Партнер Нефть" [10:41:41]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [10:41:41]line СНО: Общий режим [10:41:41]line Чек 87 12.04.2024 10:41 [10:41:41]line Смена: 113 ФФД: 1.0 [10:41:41]line ЗНМ: 0300000027 [10:41:41]line РНМ: 0000138879044617 [10:41:41]line Версия ККМ: 001 [10:41:41]line ФМ: 0000000000963154 [10:41:41]line ФД: 28638 [10:41:41]line ФПД: 226401684797809 [10:41:41]line 1/tax-web-control/client/api/v1/ticket?date=20240412T104147&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28638&fm=226401684797809&tin=02508201610067®Number=0000138879044617&sum=50000 [10:41:41]OFD Sender: Processing packet 28638 [packets to send 8, broken 7] [10:41:41]ProducePacketName [10:41:41]name=ofd_packets/00028638 [10:41:41]OFD Sender: To server: pG, [10:41:41]CommunicateWithHost lk.salyk.kg:30040 [10:41:41]ConnectInit lk.salyk.kg [10:41:41]written 0, free lines is 4095 [10:41:41]Connected sock=7 [10:41:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 AF 93 04 01 47 1F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FE 1A 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 6C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 EB 0F 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DE 6F 00 00 35 04 06 00 CD E9 3F FF B9 71 E2 1D 8F 26 47 41 D7 CE [10:41:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 9B 25 47 00 49 6A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DE 6F 00 00 F4 03 04 00 95 BA 18 66 B6 04 01 00 00 8A 6A D0 69 C2 99 1E 67 [10:41:41]CommunicateWithHost err = 0 [10:41:41]CheckOFDResponse [10:41:41]1017 (14) - 77093643461234 [10:41:41]1041 (16) - 0000000000963154 [10:41:41]1040 (4) - 28638 [10:41:41]1012 (4) - 12.04.2024 04:37 [10:41:41]1206 (1) - 0 [10:41:41]OFD Sender: Remove packet 28638 [10:41:41]ProducePacketName [10:41:41]name=ofd_packets/00028638 [10:41:41]NVStorageDeleteData [10:41:41]Write to MH i2c: 01 00 00 18 72 8A [10:41:41]Write i2c OK [10:41:41]MH_I2C_Read... [10:41:41]Read from MH i2c: 01 [10:41:41]MH_I2C_Read... [10:41:41]Read from MH i2c: 01 07 00 [10:41:41]MH_I2C_Read... [10:41:41]Read from MH i2c: 01 07 00 18 72 00 00 00 00 00 CA 0C 67 [10:41:41]RasterBufferAndPrint [10:41:41]line [10:41:41]line [10:41:41]line [10:41:41]line [10:41:41]line [10:41:41]written 0, free lines is 3280 [10:41:41]MH_Cut [10:41:41]Write to MH i2c: D1 01 00 1F 72 01 63 [10:41:41]Write i2c OK [10:41:41]MH_I2C_Read... [10:41:41]Read from MH i2c: D1 [10:41:41]MH_I2C_Read... [10:41:41]Read from MH i2c: D1 01 00 [10:41:41]MH_I2C_Read... [10:41:41]Read from MH i2c: D1 01 00 1F 72 00 62 [10:41:41]Write to MH i2c: 01 00 00 20 72 92 [10:41:41]Write i2c OK [10:41:41]MH_I2C_Read... [10:41:42]OFD Sender: No OFD packet to send [10:41:42]*** Cut start [10:41:42]*** Partial cut [10:41:42]*** CUTSNS_PIN = 1 [10:41:42]*** CUTSNS_PIN = 0 [10:41:43]*** Brake cut motor [10:41:43]Read from MH i2c: 01 [10:41:43]MH_I2C_Read... [10:41:43]*** Stop cut motor [10:41:43]*** Cut end [10:41:43]Read from MH i2c: 01 07 00 [10:41:43]MH_I2C_Read... [10:41:43]Read from MH i2c: 01 07 00 20 72 00 00 00 00 00 FF 0F A7 [10:41:43]process_action close_receipt done [10:41:43]requested_data is exist [10:41:43]produce_requested_data [10:41:43]requested_item fm.sn is exist - process it [10:41:43]wFMCommunicate request_size=4 [10:41:43]MH_SAM_APDU [10:41:43]CAPDU: 80 11 00 00 [10:41:43]Write to MH i2c: E2 08 00 21 72 80 11 00 00 00 00 00 00 0D [10:41:43]Write i2c OK [10:41:43]MH_I2C_Read... [10:41:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:41:43]Read from MH i2c: E2 [10:41:43]MH_I2C_Read... [10:41:43]Read from MH i2c: E2 17 00 [10:41:43]MH_I2C_Read... [10:41:43]Read from MH i2c: E2 17 00 21 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 5C [10:41:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:41:43]wFMCommunicate OK [10:41:43]requested_item fd.num is exist - process it [10:41:43]SAM_PROTO_GetFieldsCounters [10:41:43]wFMCommunicate request_size=4 [10:41:43]MH_SAM_APDU [10:41:43]CAPDU: 80 13 00 00 [10:41:43]Write to MH i2c: E2 08 00 22 72 80 13 00 00 00 00 00 00 10 [10:41:43]Write i2c OK [10:41:43]MH_I2C_Read... [10:41:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:41:43]Read from MH i2c: E2 [10:41:43]MH_I2C_Read... [10:41:43]Read from MH i2c: E2 62 00 [10:41:43]MH_I2C_Read... [10:41:43]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 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 DE 6F 00 00 0E 04 04 00 71 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 [10:41:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 DE 6F 00 00 0E 04 04 00 71 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 [10:41:43]wFMCommunicate OK [10:41:43]SAM_PROTO_GetFieldsCounters done [10:41:43]requested_item shift.num is exist - process it [10:41:43]requested_item shift.opened is exist - process it [10:41:43]req_shift_opened [10:41:43]FM_GetShiftState [10:41:43]SAM_PROTO_GetShiftState [10:41:43]wFMCommunicate request_size=4 [10:41:43]MH_SAM_APDU [10:41:43]CAPDU: 80 13 01 00 [10:41:43]Write to MH i2c: E2 08 00 23 72 80 13 01 00 00 00 00 00 12 [10:41:43]Write i2c OK [10:41:43]MH_I2C_Read... [10:41:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:41:43]Read from MH i2c: E2 [10:41:43]MH_I2C_Read... [10:41:43]Read from MH i2c: E2 0E 00 [10:41:43]MH_I2C_Read... [10:41:43]Read from MH i2c: E2 0E 00 23 72 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 23 [10:41:43]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [10:41:43]wFMCommunicate OK [10:41:43]SAM_PROTO_GetShiftState done [10:41:43]FM_GetShiftState done [10:41:43]req_shift_opened done [10:41:43]requested_item shift.open_date is exist - process it [10:41:43]req_shift_open_date [10:41:43]req_shift_open_date done [10:41:43]produce_requested_data done [10:41:43]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28638,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [10:41:43]process_action_free close_receipt [10:41:43]json_value_free [10:41:43]json_value_free done [10:41:43]process_json_proto returns [10:41:43]Send response to host [10:41:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28638,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [10:41:43]free response buf [10:41:43]execute_script done [10:41:43]execute_script returns [10:41:43]free content buf [10:41:43]Sock 6.Close socket [10:41:43]Sock 6.Thread stoped [10:41:47]OFD Sender: No OFD packet to send [10:41:52]OFD Sender: No OFD packet to send [10:41:57]OFD Sender: No OFD packet to send [10:42:02]OFD Sender: No OFD packet to send [10:42:07]OFD Sender: No OFD packet to send [10:42:12]OFD Sender: No OFD packet to send [10:42:17]OFD Sender: No OFD packet to send [10:42:22]OFD Sender: No OFD packet to send [10:42:27]OFD Sender: No OFD packet to send [10:42:32]OFD Sender: No OFD packet to send [10:42:37]OFD Sender: No OFD packet to send [10:42:42]OFD Sender: No OFD packet to send [10:42:47]OFD Sender: No OFD packet to send [10:42:52]OFD Sender: No OFD packet to send [10:42:57]OFD Sender: No OFD packet to send [10:43:02]OFD Sender: No OFD packet to send [10:43:07]OFD Sender: No OFD packet to send [10:43:12]OFD Sender: No OFD packet to send [10:43:17]OFD Sender: No OFD packet to send [10:43:22]OFD Sender: No OFD packet to send [10:43:27]OFD Sender: No OFD packet to send [10:43:32]OFD Sender: No OFD packet to send [10:43:37]OFD Sender: No OFD packet to send [10:43:42]OFD Sender: No OFD packet to send [10:43:47]OFD Sender: No OFD packet to send [10:43:52]OFD Sender: No OFD packet to send [10:43:57]OFD Sender: No OFD packet to send [10:44:02]OFD Sender: No OFD packet to send [10:44:07]OFD Sender: No OFD packet to send [10:44:12]OFD Sender: No OFD packet to send [10:44:17]OFD Sender: No OFD packet to send [10:44:22]OFD Sender: No OFD packet to send [10:44:27]OFD Sender: No OFD packet to send [10:44:32]OFD Sender: No OFD packet to send [10:44:37]OFD Sender: No OFD packet to send [10:44:42]OFD Sender: No OFD packet to send [10:44:47]OFD Sender: No OFD packet to send [10:44:51]accept exits with 5 [10:44:51]New connection [10:44:51]New thread 3066498404 created [10:44:51]Thread 3066641764 joined [10:44:51]Waiting for new connection... [10:44:51] Sock 5.Parse request [10:44:51]Sock 5.Check first char [10:44:51]Sock 5.First char is OK [10:44:51]request: POST /json_proto HTTP/1.0 [10:44:51]Method: POST [10:44:51]URL: /json_proto [10:44:51]Method is POST - this is cgi request [10:44:51]url: /json_proto [10:44:51]query_string will be loaded in cgi processing [10:44:51]execute_cgi json_proto POST (null) [10:44:51]execute_cgi path=json_proto method=POST [10:44:51]POST find Content-Length [10:44:51]Host: 172.17.33.3:8080 [10:44:51]Content-Length: 1210 [10:44:51]Content-Type: application/json [10:44:51] [10:44:51]POST finish read [10:44:51]Found Content-Length = 1210 [10:44:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)346961\u000A12.04.2024 10:26\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 40.000 x 72.40\u000A\u0418\u0422\u041E\u0413: 2896.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A68994\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:44:51]execute_script... [10:44:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)346961\u000A12.04.2024 10:26\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 40.000 x 72.40\u000A\u0418\u0422\u041E\u0413: 2896.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A68994\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:44:51]POST & json_proto [10:44:51]process_json_proto [10:44:51]json parsed OK: [10:44:51]protocol is kg_v1.0 [10:44:51]action value=print_text [10:44:51]process_action print_text [10:44:51]cmd_print_text [10:44:51]ExternCall_PrintAddStr [10:44:51]wPrintStart [10:44:51]Write to MH i2c: 01 00 00 24 72 96 [10:44:51]Write i2c OK [10:44:51]MH_I2C_Read... [10:44:51]Read from MH i2c: 01 [10:44:51]MH_I2C_Read... [10:44:51]Read from MH i2c: 01 07 00 [10:44:51]MH_I2C_Read... [10:44:51]Read from MH i2c: 01 07 00 24 72 00 00 00 00 00 FF 0F AB [10:44:51]RasterBufferAndPrint [10:44:51]line *****ТОВАРНЫЙ ЧЕК***** [10:44:51]line АЗС 108 [10:44:51]line Партнер нефть [10:44:51]line 02508201610067 [10:44:51]line Кассир : Джумагулова Н. [10:44:51]line Счет N : (1)346961 [10:44:51]line 12.04.2024 10:26 [10:44:51]line ПРОДАЖА [10:44:51]line ТРК (МРК, ГНК): 11 [10:44:51]line Вид ГСМ : 2710194210 [10:44:51]line ДТ-К-5 [10:44:51]line 40.000 x 72.40 [10:44:51]line ИТОГ: 2896.00 [10:44:51]line Тип оплаты: Талоны: Топливная Карта [10:44:51]line 68994 [10:44:51]line ______________________ [10:44:51]line (подпись) [10:44:51]written 0, free lines is 4095 [10:44:51]Write to MH i2c: 01 00 00 39 72 AB [10:44:51]Write i2c OK [10:44:51]MH_I2C_Read... [10:44:51]Read from MH i2c: 01 [10:44:51]MH_I2C_Read... [10:44:51]Read from MH i2c: 01 07 00 [10:44:51]MH_I2C_Read... [10:44:51]Read from MH i2c: 01 07 00 39 72 00 00 00 00 00 F6 0D B5 [10:44:51]RasterBufferAndPrint [10:44:51]line [10:44:51]line [10:44:51]line [10:44:51]line [10:44:51]line [10:44:51]written 0, free lines is 3575 [10:44:51]MH_Cut [10:44:51]Write to MH i2c: D1 01 00 40 72 01 84 [10:44:51]Write i2c OK [10:44:51]MH_I2C_Read... [10:44:51]Read from MH i2c: D1 [10:44:51]MH_I2C_Read... [10:44:51]Read from MH i2c: D1 01 00 [10:44:51]MH_I2C_Read... [10:44:51]Read from MH i2c: D1 01 00 40 72 00 83 [10:44:51]Write to MH i2c: 01 00 00 41 72 B3 [10:44:51]Write i2c OK [10:44:51]MH_I2C_Read... [10:44:52]*** Cut start [10:44:52]*** Partial cut [10:44:52]*** CUTSNS_PIN = 1 [10:44:52]OFD Sender: No OFD packet to send [10:44:52]*** CUTSNS_PIN = 0 [10:44:52]*** Brake cut motor [10:44:52]Read from MH i2c: 01 [10:44:52]MH_I2C_Read... [10:44:52]*** Stop cut motor [10:44:52]*** Cut end [10:44:52]Read from MH i2c: 01 07 00 [10:44:52]MH_I2C_Read... [10:44:52]Read from MH i2c: 01 07 00 41 72 00 00 00 00 00 FF 0F C8 [10:44:52]process_action print_text done [10:44:52]requested_data is exist [10:44:52]produce_requested_data [10:44:52]requested_item fm.sn is exist - process it [10:44:52]wFMCommunicate request_size=4 [10:44:52]MH_SAM_APDU [10:44:52]CAPDU: 80 11 00 00 [10:44:52]Write to MH i2c: E2 08 00 42 72 80 11 00 00 00 00 00 00 2E [10:44:52]Write i2c OK [10:44:52]MH_I2C_Read... [10:44:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:44:53]Read from MH i2c: E2 [10:44:53]MH_I2C_Read... [10:44:53]Read from MH i2c: E2 17 00 [10:44:53]MH_I2C_Read... [10:44:53]Read from MH i2c: E2 17 00 42 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 7D [10:44:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:44:53]wFMCommunicate OK [10:44:53]requested_item fd.num is exist - process it [10:44:53]SAM_PROTO_GetFieldsCounters [10:44:53]wFMCommunicate request_size=4 [10:44:53]MH_SAM_APDU [10:44:53]CAPDU: 80 13 00 00 [10:44:53]Write to MH i2c: E2 08 00 43 72 80 13 00 00 00 00 00 00 31 [10:44:53]Write i2c OK [10:44:53]MH_I2C_Read... [10:44:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:44:53]Read from MH i2c: E2 [10:44:53]MH_I2C_Read... [10:44:53]Read from MH i2c: E2 62 00 [10:44:53]MH_I2C_Read... [10:44:53]Read from MH i2c: E2 62 00 43 72 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 DE 6F 00 00 0E 04 04 00 71 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 32 [10:44:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 DE 6F 00 00 0E 04 04 00 71 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 [10:44:53]wFMCommunicate OK [10:44:53]SAM_PROTO_GetFieldsCounters done [10:44:53]requested_item shift.num is exist - process it [10:44:53]requested_item shift.opened is exist - process it [10:44:53]req_shift_opened [10:44:53]FM_GetShiftState [10:44:53]SAM_PROTO_GetShiftState [10:44:53]wFMCommunicate request_size=4 [10:44:53]MH_SAM_APDU [10:44:53]CAPDU: 80 13 01 00 [10:44:53]Write to MH i2c: E2 08 00 44 72 80 13 01 00 00 00 00 00 33 [10:44:53]Write i2c OK [10:44:53]MH_I2C_Read... [10:44:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:44:53]Read from MH i2c: E2 [10:44:53]MH_I2C_Read... [10:44:53]Read from MH i2c: E2 0E 00 [10:44:53]MH_I2C_Read... [10:44:53]Read from MH i2c: E2 0E 00 44 72 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 44 [10:44:53]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [10:44:53]wFMCommunicate OK [10:44:53]SAM_PROTO_GetShiftState done [10:44:53]FM_GetShiftState done [10:44:53]req_shift_opened done [10:44:53]requested_item shift.open_date is exist - process it [10:44:53]req_shift_open_date [10:44:53]req_shift_open_date done [10:44:53]produce_requested_data done [10:44:53]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28638,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [10:44:53]process_action_free print_text [10:44:53]json_value_free [10:44:53]json_value_free done [10:44:53]process_json_proto returns [10:44:53]Send response to host [10:44:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28638,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [10:44:53]free response buf [10:44:53]execute_script done [10:44:53]execute_script returns [10:44:53]free content buf [10:44:53]Sock 5.Close socket [10:44:53]Sock 5.Thread stoped [10:44:57]OFD Sender: No OFD packet to send [10:45:02]OFD Sender: No OFD packet to send [10:45:07]OFD Sender: No OFD packet to send [10:45:12]OFD Sender: No OFD packet to send [10:45:17]OFD Sender: No OFD packet to send [10:45:22]OFD Sender: No OFD packet to send [10:45:27]OFD Sender: No OFD packet to send [10:45:32]OFD Sender: No OFD packet to send [10:45:37]OFD Sender: No OFD packet to send [10:45:42]OFD Sender: No OFD packet to send [10:45:47]OFD Sender: No OFD packet to send [10:45:52]OFD Sender: No OFD packet to send [10:45:57]OFD Sender: No OFD packet to send [10:46:02]OFD Sender: No OFD packet to send [10:46:05]accept exits with 6 [10:46:05]New connection [10:46:05]New thread 3066641764 created [10:46:05]Thread 3066498404 joined [10:46:05]Waiting for new connection... [10:46:05] Sock 6.Parse request [10:46:05]Sock 6.Check first char [10:46:05]Sock 6.First char is OK [10:46:05]request: POST /json_proto HTTP/1.0 [10:46:05]Method: POST [10:46:05]URL: /json_proto [10:46:05]Method is POST - this is cgi request [10:46:05]url: /json_proto [10:46:05]query_string will be loaded in cgi processing [10:46:05]execute_cgi json_proto POST (null) [10:46:05]execute_cgi path=json_proto method=POST [10:46:05]POST find Content-Length [10:46:05]Host: 172.17.33.3:8080 [10:46:05]Content-Length: 805 [10:46:05]Content-Type: application/json [10:46:05] [10:46:05]POST finish read [10:46:05]Found Content-Length = 805 [10:46:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346962", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 27.630, "sum" : 2000.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:46:05]execute_script... [10:46:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346962", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 27.630, "sum" : 2000.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:46:05]POST & json_proto [10:46:05]process_json_proto [10:46:05]json parsed OK: [10:46:05]protocol is kg_v1.0 [10:46:05]action value=close_receipt [10:46:05]process_action close_receipt [10:46:05]cmd_close_receipt [10:46:05]MH_GetDate [10:46:05]Write to MH i2c: F0 00 00 45 72 A6 [10:46:05]Write i2c OK [10:46:05]MH_I2C_Read... [10:46:05]Read from MH i2c: F0 [10:46:05]MH_I2C_Read... [10:46:05]Read from MH i2c: F0 09 00 [10:46:05]MH_I2C_Read... [10:46:05]Read from MH i2c: F0 09 00 45 72 00 F4 10 19 66 23 5B 8F 65 A4 [10:46:05]GetLastDocTimeStamp 1712918507 [10:46:05]current date 1712918772 [10:46:05]FM_GetShiftState [10:46:05]SAM_PROTO_GetShiftState [10:46:05]wFMCommunicate request_size=4 [10:46:05]MH_SAM_APDU [10:46:05]CAPDU: 80 13 01 00 [10:46:05]Write to MH i2c: E2 08 00 46 72 80 13 01 00 00 00 00 00 35 [10:46:05]Write i2c OK [10:46:05]MH_I2C_Read... [10:46:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:46:05]Read from MH i2c: E2 [10:46:05]MH_I2C_Read... [10:46:05]Read from MH i2c: E2 0E 00 [10:46:05]MH_I2C_Read... [10:46:05]Read from MH i2c: E2 0E 00 46 72 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 46 [10:46:05]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [10:46:05]wFMCommunicate OK [10:46:05]SAM_PROTO_GetShiftState done [10:46:05]FM_GetShiftState done [10:46:05]opened in 1712881416 [10:46:05]opened+sec_in_day 1712967816 [10:46:05]quantity*price = 200041 [10:46:05]sum+1 = 200042 [10:46:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.41 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 0.00 Безнал.: 2000.41 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 88 12.04.2024 10:46 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 28639 ФПД: 31197564238917 1/tax-web-control/client/api/v1/ticket?date=20240412T104612&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28639&fm=31197564238917&tin=02508201610067®Number=0000138879044617&sum=200041 [10:46:06]StoreToDocumentArchive [10:46:06]shift 113 fd 28639 [10:46:06]save to /storage/0113/doc_00028639 [10:46:06]save last doc name /storage/0113/doc_00028639 to /storage/kkm_last_doc_name [10:46:06]save OK [10:46:06]Clear old archive folders... [10:46:06]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:46:06]tlvbuf is 01ABC050 [10:46:06]SAM_PROTO_ClearQueue [10:46:06]wFMCommunicate request_size=4 [10:46:06]MH_SAM_APDU [10:46:06]CAPDU: 80 09 00 00 [10:46:06]Write to MH i2c: E2 08 00 53 72 80 09 00 00 00 00 00 00 37 [10:46:06]Write i2c OK [10:46:06]MH_I2C_Read... [10:46:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:46:06]Read from MH i2c: E2 [10:46:06]MH_I2C_Read... [10:46:06]Read from MH i2c: E2 03 00 [10:46:06]MH_I2C_Read... [10:46:06]Read from MH i2c: E2 03 00 53 72 00 90 00 39 [10:46:06]RAPDU: 90 00 [10:46:06]wFMCommunicate OK [10:46:06]SAM_PROTO_ClearQueue done [10:46:06]KKMCreateOFDPacket [10:46:06]OFDProtocolAddRootSTLVToBuf [10:46:06]FM_MakeSignedData [10:46:06]FM_MakeSignedData [10:46:06]SAM_PROTO_SignData [10:46:06]wFMCommunicate request_size=4 [10:46:06]MH_SAM_APDU [10:46:06]CAPDU: 80 0D 01 02 [10:46:06]Write to MH i2c: E2 08 00 54 72 80 0D 01 02 00 00 00 00 3F [10:46:06]Write i2c OK [10:46:06]MH_I2C_Read... [10:46:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:46:06]Read from MH i2c: E2 [10:46:06]MH_I2C_Read... [10:46:06]Read from MH i2c: E2 03 00 [10:46:06]MH_I2C_Read... [10:46:06]Read from MH i2c: E2 03 00 54 72 00 90 00 3A [10:46:06]RAPDU: 90 00 [10:46:06]wFMCommunicate OK [10:46:06]wFMCommunicate request_size=255 [10:46:06]MH_SAM_APDU [10:46: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 35 FF 03 08 00 03 EE 6B 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 69 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 69 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 F4 10 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DF 6F 00 00 35 04 06 00 1C 5F BF BB [10:46:06]Write to MH i2c: E2 02 01 55 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 35 FF 03 08 00 03 EE 6B 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 69 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 69 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 F4 10 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DF 6F 00 00 35 04 06 00 1C 5F BF BB 00 00 AD [10:46:06]Write i2c OK [10:46:06]MH_I2C_Read... [10:46:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:46:06]Read from MH i2c: E2 [10:46:06]MH_I2C_Read... [10:46:06]Read from MH i2c: E2 03 00 [10:46:06]MH_I2C_Read... [10:46:06]Read from MH i2c: E2 03 00 55 72 00 90 00 3B [10:46:06]RAPDU: 90 00 [10:46:06]wFMCommunicate OK [10:46:06]wFMCommunicate request_size=7 [10:46:06]MH_SAM_APDU [10:46:06]CAPDU: 80 0D 02 02 02 FC 45 [10:46:06]Write to MH i2c: E2 0A 00 56 72 80 0D 02 02 02 00 FC 45 00 00 87 [10:46:06]Write i2c OK [10:46:06]MH_I2C_Read... [10:46:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:46:06]Read from MH i2c: E2 [10:46:06]MH_I2C_Read... [10:46:06]Read from MH i2c: E2 03 00 [10:46:06]MH_I2C_Read... [10:46:06]Read from MH i2c: E2 03 00 56 72 00 90 00 3C [10:46:06]RAPDU: 90 00 [10:46:06]wFMCommunicate OK [10:46:06]wFMCommunicate request_size=4 [10:46:06]MH_SAM_APDU [10:46:06]CAPDU: 80 0D 03 02 [10:46:06]Write to MH i2c: E2 08 00 57 72 80 0D 03 02 00 00 00 00 44 [10:46:06]Write i2c OK [10:46:06]MH_I2C_Read... [10:46:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:46:06]Read from MH i2c: E2 [10:46:06]MH_I2C_Read... [10:46:06]Read from MH i2c: E2 0B 00 [10:46:06]MH_I2C_Read... [10:46:06]Read from MH i2c: E2 0B 00 57 72 00 A5 D4 1C AC 20 96 05 C2 90 00 03 [10:46:06]RAPDU: A5 D4 1C AC 20 96 05 C2 90 00 [10:46:06]wFMCommunicate OK [10:46:06]SAM_PROTO_SignData done [10:46:06]FM_MakeSignedData done [10:46:06]CreateOFDProtocolMessage [10:46:06]wFMCommunicate request_size=4 [10:46:06]MH_SAM_APDU [10:46:06]CAPDU: 80 11 00 00 [10:46:06]Write to MH i2c: E2 08 00 58 72 80 11 00 00 00 00 00 00 44 [10:46:06]Write i2c OK [10:46:06]MH_I2C_Read... [10:46:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:46:06]Read from MH i2c: E2 [10:46:06]MH_I2C_Read... [10:46:06]Read from MH i2c: E2 17 00 [10:46:06]MH_I2C_Read... [10:46:06]Read from MH i2c: E2 17 00 58 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 93 [10:46:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:46:06]wFMCommunicate OK [10:46:06]CreateOFDProtocolMessage done [10:46:06]OFDSenderStorePacket 28639 [10:46:06]StoreOFDPacket docnum=28639 [10:46:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 55 65 04 01 55 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 35 FF 03 08 00 03 EE 6B 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 69 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 69 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 F4 10 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DF 6F 00 00 35 04 06 00 1C 5F BF BB FC 45 A5 D4 1C AC 20 96 05 C2 [10:46:06]CheckFolder [10:46:06]dirname=/storage/ofd_packets [10:46:06]CheckFolder done [10:46:06]ProducePacketName [10:46:06]name=ofd_packets/00028639 [10:46:06]NVStorageSaveData ofd_packets/00028639 [10:46:06]File name is /storage/ofd_packets/00028639 [10:46:06]Write 298 bytes [10:46:06]NVStorageSaveData done [10:46:06]OFDSenderStorePacket done [10:46:06]KKMCreateOFDPacket done [10:46:06]NVStorageSaveData kkm_last_timestamp [10:46:06]File name is /storage/kkm_last_timestamp [10:46:06]Write 4 bytes [10:46:06]NVStorageSaveData done [10:46:06]ExternCall_PrintAddStr [10:46:06]wPrintStart [10:46:06]Write to MH i2c: 01 00 00 59 72 CB [10:46:06]Write i2c OK [10:46:06]MH_I2C_Read... [10:46:06]Read from MH i2c: 01 [10:46:06]MH_I2C_Read... [10:46:06]Read from MH i2c: 01 07 00 [10:46:06]MH_I2C_Read... [10:46:06]Read from MH i2c: 01 07 00 59 72 00 00 00 00 00 FF 0F E0 [10:46:06]RasterBufferAndPrint [10:46:06]line Счет N : (1)346962 [10:46:06]line ИНН: 02508201610067 [10:46:06]line Контрольно-Кассовый Чек [10:46:06]line ПРОДАЖА [10:46:06]line ТРК (МРК, ГНК) : 51 [10:46:06]line Товар: 2710194210 [10:46:06]line ДТ-К-5 [10:46:06]line 27.630 * 72.40 [10:46:06]line = 2000.41 [10:46:06]line НДС 12% НСП 1% [10:46:06]line > о реализуемом товаре [10:46:06]line ИТОГО: 2000.41 [10:46:06]line НСП 1% : 17.70 [10:46:06]line НДС 12% : 212.43 [10:46:06]line Наличными: 0.00 [10:46:06]line Безнал.: 2000.41 [10:46:06]line Место: АЗС № 108 "Партнер Нефть" [10:46:06]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [10:46:06]line СНО: Общий режим [10:46:06]line Чек 88 12.04.2024 10:46 [10:46:06]line Смена: 113 ФФД: 1.0 [10:46:06]line ЗНМ: 0300000027 [10:46:06]line РНМ: 0000138879044617 [10:46:06]line Версия ККМ: 001 [10:46:06]line Платежная система: О! деньги [10:46:06]line ФМ: 0000000000963154 [10:46:06]line ФД: 28639 [10:46:06]line ФПД: 31197564238917 [10:46:07]line 1/tax-web-control/client/api/v1/ticket?date=20240412T104612&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28639&fm=31197564238917&tin=02508201610067®Number=0000138879044617&sum=200041 [10:46:07]OFD Sender: Processing packet 28639 [packets to send 8, broken 7] [10:46:07]ProducePacketName [10:46:07]name=ofd_packets/00028639 [10:46:07]OFD Sender: To server: pG, [10:46:07]CommunicateWithHost lk.salyk.kg:30040 [10:46:07]ConnectInit lk.salyk.kg [10:46:07]written 0, free lines is 4095 [10:46:07]Connected sock=7 [10:46:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 55 65 04 01 55 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 35 FF 03 08 00 03 EE 6B 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 69 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 69 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 F4 10 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DF 6F 00 00 35 04 06 00 1C 5F BF BB FC 45 A5 D4 1C AC 20 96 05 C2 [10:46:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 5A B1 47 00 5C 6B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DF 6F 00 00 F4 03 04 00 9F BB 18 66 B6 04 01 00 00 DF 0E AF BA 6E 98 86 69 [10:46:07]CommunicateWithHost err = 0 [10:46:07]CheckOFDResponse [10:46:07]1017 (14) - 77093643461234 [10:46:07]1041 (16) - 0000000000963154 [10:46:07]1040 (4) - 28639 [10:46:07]1012 (4) - 12.04.2024 04:42 [10:46:07]1206 (1) - 0 [10:46:07]OFD Sender: Remove packet 28639 [10:46:07]ProducePacketName [10:46:07]name=ofd_packets/00028639 [10:46:07]NVStorageDeleteData [10:46:07]Write to MH i2c: 01 00 00 82 72 F4 [10:46:07]Write i2c OK [10:46:07]MH_I2C_Read... [10:46:07]Read from MH i2c: 01 [10:46:07]MH_I2C_Read... [10:46:07]Read from MH i2c: 01 07 00 [10:46:07]MH_I2C_Read... [10:46:07]Read from MH i2c: 01 07 00 82 72 00 00 00 00 00 E6 0C ED [10:46:07]RasterBufferAndPrint [10:46:07]line [10:46:07]line [10:46:07]line [10:46:07]line [10:46:07]line [10:46:07]written 0, free lines is 3311 [10:46:07]MH_Cut [10:46:07]Write to MH i2c: D1 01 00 89 72 01 CD [10:46:07]Write i2c OK [10:46:07]MH_I2C_Read... [10:46:07]Read from MH i2c: D1 [10:46:07]MH_I2C_Read... [10:46:07]Read from MH i2c: D1 01 00 [10:46:07]MH_I2C_Read... [10:46:07]Read from MH i2c: D1 01 00 89 72 00 CC [10:46:07]Write to MH i2c: 01 00 00 8A 72 FC [10:46:07]Write i2c OK [10:46:07]MH_I2C_Read... [10:46:07]OFD Sender: No OFD packet to send [10:46:08]*** Cut start [10:46:08]*** Partial cut [10:46:08]*** CUTSNS_PIN = 1 [10:46:08]*** CUTSNS_PIN = 0 [10:46:08]*** Brake cut motor [10:46:08]Read from MH i2c: 01 [10:46:09]MH_I2C_Read... [10:46:09]*** Stop cut motor [10:46:09]*** Cut end [10:46:09]Read from MH i2c: 01 07 00 [10:46:09]MH_I2C_Read... [10:46:09]Read from MH i2c: 01 07 00 8A 72 00 00 00 00 00 FF 0F 11 [10:46:09]process_action close_receipt done [10:46:09]requested_data is exist [10:46:09]produce_requested_data [10:46:09]requested_item fm.sn is exist - process it [10:46:09]wFMCommunicate request_size=4 [10:46:09]MH_SAM_APDU [10:46:09]CAPDU: 80 11 00 00 [10:46:09]Write to MH i2c: E2 08 00 8B 72 80 11 00 00 00 00 00 00 77 [10:46:09]Write i2c OK [10:46:09]MH_I2C_Read... [10:46:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:46:09]Read from MH i2c: E2 [10:46:09]MH_I2C_Read... [10:46:09]Read from MH i2c: E2 17 00 [10:46:09]MH_I2C_Read... [10:46:09]Read from MH i2c: E2 17 00 8B 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 C6 [10:46:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:46:09]wFMCommunicate OK [10:46:09]requested_item fd.num is exist - process it [10:46:09]SAM_PROTO_GetFieldsCounters [10:46:09]wFMCommunicate request_size=4 [10:46:09]MH_SAM_APDU [10:46:09]CAPDU: 80 13 00 00 [10:46:09]Write to MH i2c: E2 08 00 8C 72 80 13 00 00 00 00 00 00 7A [10:46:09]Write i2c OK [10:46:09]MH_I2C_Read... [10:46:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:46:09]Read from MH i2c: E2 [10:46:09]MH_I2C_Read... [10:46:09]Read from MH i2c: E2 62 00 [10:46:09]MH_I2C_Read... [10:46:09]Read from MH i2c: E2 62 00 8C 72 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 DF 6F 00 00 0E 04 04 00 71 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 7F [10:46:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 DF 6F 00 00 0E 04 04 00 71 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 [10:46:09]wFMCommunicate OK [10:46:09]SAM_PROTO_GetFieldsCounters done [10:46:09]requested_item shift.num is exist - process it [10:46:09]requested_item shift.opened is exist - process it [10:46:09]req_shift_opened [10:46:09]FM_GetShiftState [10:46:09]SAM_PROTO_GetShiftState [10:46:09]wFMCommunicate request_size=4 [10:46:09]MH_SAM_APDU [10:46:09]CAPDU: 80 13 01 00 [10:46:09]Write to MH i2c: E2 08 00 8D 72 80 13 01 00 00 00 00 00 7C [10:46:09]Write i2c OK [10:46:09]MH_I2C_Read... [10:46:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:46:09]Read from MH i2c: E2 [10:46:09]MH_I2C_Read... [10:46:09]Read from MH i2c: E2 0E 00 [10:46:09]MH_I2C_Read... [10:46:09]Read from MH i2c: E2 0E 00 8D 72 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 8D [10:46:09]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [10:46:09]wFMCommunicate OK [10:46:09]SAM_PROTO_GetShiftState done [10:46:09]FM_GetShiftState done [10:46:09]req_shift_opened done [10:46:09]requested_item shift.open_date is exist - process it [10:46:09]req_shift_open_date [10:46:09]req_shift_open_date done [10:46:09]produce_requested_data done [10:46:09]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28639,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [10:46:09]process_action_free close_receipt [10:46:09]json_value_free [10:46:09]json_value_free done [10:46:09]process_json_proto returns [10:46:09]Send response to host [10:46:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28639,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [10:46:09]free response buf [10:46:09]execute_script done [10:46:09]execute_script returns [10:46:09]free content buf [10:46:09]Sock 6.Close socket [10:46:09]Sock 6.Thread stoped [10:46:12]OFD Sender: No OFD packet to send [10:46:13]accept exits with 5 [10:46:13]New connection [10:46:13]New thread 3066498404 created [10:46:13]Thread 3066641764 joined [10:46:13]Waiting for new connection... [10:46:13] Sock 5.Parse request [10:46:13]Sock 5.Check first char [10:46:13]Sock 5.First char is OK [10:46:13]request: POST /json_proto HTTP/1.0 [10:46:13]Method: POST [10:46:13]URL: /json_proto [10:46:13]Method is POST - this is cgi request [10:46:13]url: /json_proto [10:46:13]query_string will be loaded in cgi processing [10:46:13]execute_cgi json_proto POST (null) [10:46:13]execute_cgi path=json_proto method=POST [10:46:13]POST find Content-Length [10:46:13]Host: 172.17.33.3:8080 [10:46:13]Content-Length: 808 [10:46:13]Content-Type: application/json [10:46:13] [10:46:13]POST finish read [10:46:13]Found Content-Length = 808 [10:46:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346963", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 18.670, "sum" : 1200.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1200.48 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:46:13]execute_script... [10:46: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)346963", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 18.670, "sum" : 1200.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1200.48 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:46:13]POST & json_proto [10:46:13]process_json_proto [10:46:13]json parsed OK: [10:46:13]protocol is kg_v1.0 [10:46:13]action value=close_receipt [10:46:13]process_action close_receipt [10:46:13]cmd_close_receipt [10:46:13]MH_GetDate [10:46:13]Write to MH i2c: F0 00 00 8E 72 EF [10:46:13]Write i2c OK [10:46:13]MH_I2C_Read... [10:46:13]Read from MH i2c: F0 [10:46:13]MH_I2C_Read... [10:46:13]Read from MH i2c: F0 09 00 [10:46:13]MH_I2C_Read... [10:46:13]Read from MH i2c: F0 09 00 8E 72 00 FD 10 19 66 23 5B 8F 65 F6 [10:46:13]GetLastDocTimeStamp 1712918772 [10:46:13]current date 1712918781 [10:46:13]FM_GetShiftState [10:46:13]SAM_PROTO_GetShiftState [10:46:13]wFMCommunicate request_size=4 [10:46:13]MH_SAM_APDU [10:46:13]CAPDU: 80 13 01 00 [10:46:13]Write to MH i2c: E2 08 00 8F 72 80 13 01 00 00 00 00 00 7E [10:46:13]Write i2c OK [10:46:13]MH_I2C_Read... [10:46:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:46:13]Read from MH i2c: E2 [10:46:13]MH_I2C_Read... [10:46:13]Read from MH i2c: E2 0E 00 [10:46:13]MH_I2C_Read... [10:46:13]Read from MH i2c: E2 0E 00 8F 72 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 8F [10:46:13]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [10:46:13]wFMCommunicate OK [10:46:13]SAM_PROTO_GetShiftState done [10:46:13]FM_GetShiftState done [10:46:13]opened in 1712881416 [10:46:13]opened+sec_in_day 1712967816 [10:46:13]quantity*price = 120048 [10:46:13]sum+1 = 120049 [10:46:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1200.48 НСП 1% : 10.62 НДС 12% : 127.48 Наличными: 0.00 Безнал.: 1200.48 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 89 12.04.2024 10:46 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 28640 ФПД: 225980090961018 1/tax-web-control/client/api/v1/ticket?date=20240412T104621&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28640&fm=225980090961018&tin=02508201610067®Number=0000138879044617&sum=120048 [10:46:14]StoreToDocumentArchive [10:46:14]shift 113 fd 28640 [10:46:14]save to /storage/0113/doc_00028640 [10:46:14]save last doc name /storage/0113/doc_00028640 to /storage/kkm_last_doc_name [10:46:14]save OK [10:46:14]Clear old archive folders... [10:46:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:46:14]tlvbuf is 01AB6D70 [10:46:14]SAM_PROTO_ClearQueue [10:46:14]wFMCommunicate request_size=4 [10:46:14]MH_SAM_APDU [10:46:14]CAPDU: 80 09 00 00 [10:46:14]Write to MH i2c: E2 08 00 9C 72 80 09 00 00 00 00 00 00 80 [10:46:14]Write i2c OK [10:46:14]MH_I2C_Read... [10:46:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:46:14]Read from MH i2c: E2 [10:46:14]MH_I2C_Read... [10:46:14]Read from MH i2c: E2 03 00 [10:46:14]MH_I2C_Read... [10:46:14]Read from MH i2c: E2 03 00 9C 72 00 90 00 82 [10:46:14]RAPDU: 90 00 [10:46:14]wFMCommunicate OK [10:46:14]SAM_PROTO_ClearQueue done [10:46:14]KKMCreateOFDPacket [10:46:14]OFDProtocolAddRootSTLVToBuf [10:46:14]FM_MakeSignedData [10:46:14]FM_MakeSignedData [10:46:14]SAM_PROTO_SignData [10:46:14]wFMCommunicate request_size=4 [10:46:14]MH_SAM_APDU [10:46:14]CAPDU: 80 0D 01 02 [10:46:14]Write to MH i2c: E2 08 00 9D 72 80 0D 01 02 00 00 00 00 88 [10:46:14]Write i2c OK [10:46:14]MH_I2C_Read... [10:46:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:46:14]Read from MH i2c: E2 [10:46:14]MH_I2C_Read... [10:46:14]Read from MH i2c: E2 03 00 [10:46:14]MH_I2C_Read... [10:46:14]Read from MH i2c: E2 03 00 9D 72 00 90 00 83 [10:46:14]RAPDU: 90 00 [10:46:14]wFMCommunicate OK [10:46:14]wFMCommunicate request_size=255 [10:46:14]MH_SAM_APDU [10:46:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EE 48 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 F0 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 FD 10 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E0 6F 00 00 35 04 06 00 CD [10:46:15]Write to MH i2c: E2 02 01 9E 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 35 FF 03 08 00 03 EE 48 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 F0 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 FD 10 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E0 6F 00 00 35 04 06 00 CD 00 00 04 [10:46:15]Write i2c OK [10:46:15]MH_I2C_Read... [10:46:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:46:15]Read from MH i2c: E2 [10:46:15]MH_I2C_Read... [10:46:15]Read from MH i2c: E2 03 00 [10:46:15]MH_I2C_Read... [10:46:15]Read from MH i2c: E2 03 00 9E 72 00 90 00 84 [10:46:15]RAPDU: 90 00 [10:46:15]wFMCommunicate OK [10:46:15]wFMCommunicate request_size=10 [10:46:15]MH_SAM_APDU [10:46:15]CAPDU: 80 0D 02 02 05 87 17 0C 4C 7A [10:46:15]Write to MH i2c: E2 0D 00 9F 72 80 0D 02 02 05 00 87 17 0C 4C 7A 00 00 05 [10:46:15]Write i2c OK [10:46:15]MH_I2C_Read... [10:46:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:46:15]Read from MH i2c: E2 [10:46:15]MH_I2C_Read... [10:46:15]Read from MH i2c: E2 03 00 [10:46:15]MH_I2C_Read... [10:46:15]Read from MH i2c: E2 03 00 9F 72 00 90 00 85 [10:46:15]RAPDU: 90 00 [10:46:15]wFMCommunicate OK [10:46:15]wFMCommunicate request_size=4 [10:46:15]MH_SAM_APDU [10:46:15]CAPDU: 80 0D 03 02 [10:46:15]Write to MH i2c: E2 08 00 A0 72 80 0D 03 02 00 00 00 00 8D [10:46:15]Write i2c OK [10:46:15]MH_I2C_Read... [10:46:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:46:15]Read from MH i2c: E2 [10:46:15]MH_I2C_Read... [10:46:15]Read from MH i2c: E2 0B 00 [10:46:15]MH_I2C_Read... [10:46:15]Read from MH i2c: E2 0B 00 A0 72 00 E3 EA 46 19 58 65 DF B5 90 00 0B [10:46:15]RAPDU: E3 EA 46 19 58 65 DF B5 90 00 [10:46:15]wFMCommunicate OK [10:46:15]SAM_PROTO_SignData done [10:46:15]FM_MakeSignedData done [10:46:15]CreateOFDProtocolMessage [10:46:15]wFMCommunicate request_size=4 [10:46:15]MH_SAM_APDU [10:46:15]CAPDU: 80 11 00 00 [10:46:15]Write to MH i2c: E2 08 00 A1 72 80 11 00 00 00 00 00 00 8D [10:46:15]Write i2c OK [10:46:15]MH_I2C_Read... [10:46:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:46:15]Read from MH i2c: E2 [10:46:15]MH_I2C_Read... [10:46:15]Read from MH i2c: E2 17 00 [10:46:15]MH_I2C_Read... [10:46:15]Read from MH i2c: E2 17 00 A1 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 DC [10:46:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:46:15]wFMCommunicate OK [10:46:15]CreateOFDProtocolMessage done [10:46:15]OFDSenderStorePacket 28640 [10:46:15]StoreOFDPacket docnum=28640 [10:46:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 B9 6E 07 01 86 82 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EE 48 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 F0 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 FD 10 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E0 6F 00 00 35 04 06 00 CD 87 17 0C 4C 7A E3 EA 46 19 58 65 DF B5 [10:46:15]CheckFolder [10:46:15]dirname=/storage/ofd_packets [10:46:15]CheckFolder done [10:46:15]ProducePacketName [10:46:15]name=ofd_packets/00028640 [10:46:15]NVStorageSaveData ofd_packets/00028640 [10:46:15]File name is /storage/ofd_packets/00028640 [10:46:15]Write 301 bytes [10:46:15]NVStorageSaveData done [10:46:15]OFDSenderStorePacket done [10:46:15]KKMCreateOFDPacket done [10:46:15]NVStorageSaveData kkm_last_timestamp [10:46:15]File name is /storage/kkm_last_timestamp [10:46:15]Write 4 bytes [10:46:15]NVStorageSaveData done [10:46:15]ExternCall_PrintAddStr [10:46:15]wPrintStart [10:46:15]Write to MH i2c: 01 00 00 A2 72 14 [10:46:15]Write i2c OK [10:46:15]MH_I2C_Read... [10:46:15]Read from MH i2c: 01 [10:46:15]MH_I2C_Read... [10:46:15]Read from MH i2c: 01 07 00 [10:46:15]MH_I2C_Read... [10:46:15]Read from MH i2c: 01 07 00 A2 72 00 00 00 00 00 FF 0F 29 [10:46:15]RasterBufferAndPrint [10:46:15]line Счет N : (1)346963 [10:46:15]line ИНН: 02508201610067 [10:46:15]line Контрольно-Кассовый Чек [10:46:15]line ПРОДАЖА [10:46:15]line ТРК (МРК, ГНК) : 23 [10:46:15]line Товар: 2710124130 [10:46:15]line Аи-92-К-5 [10:46:15]line 18.670 * 64.30 [10:46:15]line = 1200.48 [10:46:15]line НДС 12% НСП 1% [10:46:15]line > о реализуемом товаре [10:46:15]line ИТОГО: 1200.48 [10:46:15]line НСП 1% : 10.62 [10:46:15]line НДС 12% : 127.48 [10:46:15]line Наличными: 0.00 [10:46:15]line Безнал.: 1200.48 [10:46:15]line Место: АЗС № 108 "Партнер Нефть" [10:46:15]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [10:46:15]line СНО: Общий режим [10:46:15]line Чек 89 12.04.2024 10:46 [10:46:15]line Смена: 113 ФФД: 1.0 [10:46:15]line ЗНМ: 0300000027 [10:46:15]line РНМ: 0000138879044617 [10:46:15]line Версия ККМ: 001 [10:46:15]line Платежная система: О! деньги [10:46:15]line ФМ: 0000000000963154 [10:46:15]line ФД: 28640 [10:46:15]line ФПД: 225980090961018 [10:46:15]line 1/tax-web-control/client/api/v1/ticket?date=20240412T104621&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28640&fm=225980090961018&tin=02508201610067®Number=0000138879044617&sum=120048 [10:46:15]written 0, free lines is 4095 [10:46:15]OFD Sender: Processing packet 28640 [packets to send 8, broken 7] [10:46:15]ProducePacketName [10:46:15]name=ofd_packets/00028640 [10:46:15]OFD Sender: To server: pG, [10:46:15]CommunicateWithHost lk.salyk.kg:30040 [10:46:15]ConnectInit lk.salyk.kg [10:46:15]Connected sock=9 [10:46:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 B9 6E 07 01 86 82 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EE 48 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 F0 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 FD 10 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E0 6F 00 00 35 04 06 00 CD 87 17 0C 4C 7A E3 EA 46 19 58 65 DF B5 [10:46:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 F6 ED 47 00 A4 BD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E0 6F 00 00 F4 03 04 00 A7 BB 18 66 B6 04 01 00 00 89 33 65 12 E0 2D AE 53 [10:46:15]CommunicateWithHost err = 0 [10:46:15]CheckOFDResponse [10:46:15]1017 (14) - 77093643461234 [10:46:15]1041 (16) - 0000000000963154 [10:46:15]1040 (4) - 28640 [10:46:15]1012 (4) - 12.04.2024 04:42 [10:46:15]1206 (1) - 0 [10:46:15]OFD Sender: Remove packet 28640 [10:46:15]ProducePacketName [10:46:15]name=ofd_packets/00028640 [10:46:15]NVStorageDeleteData [10:46:15]Write to MH i2c: 01 00 00 CB 72 3D [10:46:15]Write i2c OK [10:46:15]MH_I2C_Read... [10:46:15]Read from MH i2c: 01 [10:46:15]MH_I2C_Read... [10:46:15]Read from MH i2c: 01 07 00 [10:46:15]MH_I2C_Read... [10:46:15]Read from MH i2c: 01 07 00 CB 72 00 00 00 00 00 E2 0C 32 [10:46:15]RasterBufferAndPrint [10:46:15]line [10:46:15]line [10:46:15]line [10:46:15]line [10:46:15]line [10:46:15]written 0, free lines is 3310 [10:46:15]MH_Cut [10:46:15]Write to MH i2c: D1 01 00 D2 72 01 16 [10:46:15]Write i2c OK [10:46:15]MH_I2C_Read... [10:46:15]Read from MH i2c: D1 [10:46:15]MH_I2C_Read... [10:46:15]Read from MH i2c: D1 01 00 [10:46:15]MH_I2C_Read... [10:46:15]Read from MH i2c: D1 01 00 D2 72 00 15 [10:46:15]Write to MH i2c: 01 00 00 D3 72 45 [10:46:15]Write i2c OK [10:46:15]MH_I2C_Read... [10:46:16]OFD Sender: No OFD packet to send [10:46:16]*** Cut start [10:46:16]*** Partial cut [10:46:16]*** CUTSNS_PIN = 1 [10:46:16]*** CUTSNS_PIN = 0 [10:46:17]*** Brake cut motor [10:46:17]Read from MH i2c: 01 [10:46:17]MH_I2C_Read... [10:46:17]*** Stop cut motor [10:46:17]*** Cut end [10:46:17]Read from MH i2c: 01 07 00 [10:46:17]MH_I2C_Read... [10:46:17]Read from MH i2c: 01 07 00 D3 72 00 00 00 00 00 FF 0F 5A [10:46:17]process_action close_receipt done [10:46:17]requested_data is exist [10:46:17]produce_requested_data [10:46:17]requested_item fm.sn is exist - process it [10:46:17]wFMCommunicate request_size=4 [10:46:17]MH_SAM_APDU [10:46:17]CAPDU: 80 11 00 00 [10:46:17]Write to MH i2c: E2 08 00 D4 72 80 11 00 00 00 00 00 00 C0 [10:46:17]Write i2c OK [10:46:17]MH_I2C_Read... [10:46:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:46:17]Read from MH i2c: E2 [10:46:17]MH_I2C_Read... [10:46:17]Read from MH i2c: E2 17 00 [10:46:17]MH_I2C_Read... [10:46:17]Read from MH i2c: E2 17 00 D4 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 0F [10:46:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:46:17]wFMCommunicate OK [10:46:17]requested_item fd.num is exist - process it [10:46:17]SAM_PROTO_GetFieldsCounters [10:46:17]wFMCommunicate request_size=4 [10:46:17]MH_SAM_APDU [10:46:17]CAPDU: 80 13 00 00 [10:46:17]Write to MH i2c: E2 08 00 D5 72 80 13 00 00 00 00 00 00 C3 [10:46:17]Write i2c OK [10:46:17]MH_I2C_Read... [10:46:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:46:17]Read from MH i2c: E2 [10:46:17]MH_I2C_Read... [10:46:17]Read from MH i2c: E2 62 00 [10:46:17]MH_I2C_Read... [10:46:17]Read from MH i2c: E2 62 00 D5 72 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E0 6F 00 00 0E 04 04 00 71 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 CC [10:46:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E0 6F 00 00 0E 04 04 00 71 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 [10:46:17]wFMCommunicate OK [10:46:17]SAM_PROTO_GetFieldsCounters done [10:46:17]requested_item shift.num is exist - process it [10:46:17]requested_item shift.opened is exist - process it [10:46:17]req_shift_opened [10:46:17]FM_GetShiftState [10:46:17]SAM_PROTO_GetShiftState [10:46:17]wFMCommunicate request_size=4 [10:46:17]MH_SAM_APDU [10:46:17]CAPDU: 80 13 01 00 [10:46:17]Write to MH i2c: E2 08 00 D6 72 80 13 01 00 00 00 00 00 C5 [10:46:17]Write i2c OK [10:46:17]MH_I2C_Read... [10:46:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:46:17]Read from MH i2c: E2 [10:46:17]MH_I2C_Read... [10:46:17]Read from MH i2c: E2 0E 00 [10:46:17]MH_I2C_Read... [10:46:17]Read from MH i2c: E2 0E 00 D6 72 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 D6 [10:46:17]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [10:46:17]wFMCommunicate OK [10:46:17]SAM_PROTO_GetShiftState done [10:46:17]FM_GetShiftState done [10:46:17]req_shift_opened done [10:46:17]requested_item shift.open_date is exist - process it [10:46:17]req_shift_open_date [10:46:17]req_shift_open_date done [10:46:17]produce_requested_data done [10:46:17]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28640,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [10:46:17]process_action_free close_receipt [10:46:17]json_value_free [10:46:17]json_value_free done [10:46:17]process_json_proto returns [10:46:17]Send response to host [10:46:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28640,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [10:46:17]free response buf [10:46:17]execute_script done [10:46:17]execute_script returns [10:46:17]free content buf [10:46:17]Sock 5.Close socket [10:46:17]Sock 5.Thread stoped [10:46:21]OFD Sender: No OFD packet to send [10:46:26]OFD Sender: No OFD packet to send [10:46:31]OFD Sender: No OFD packet to send [10:46:36]OFD Sender: No OFD packet to send [10:46:41]OFD Sender: No OFD packet to send [10:46:46]OFD Sender: No OFD packet to send [10:46:51]OFD Sender: No OFD packet to send [10:46:56]OFD Sender: No OFD packet to send [10:47:01]OFD Sender: No OFD packet to send [10:47:06]OFD Sender: No OFD packet to send [10:47:11]OFD Sender: No OFD packet to send [10:47:16]OFD Sender: No OFD packet to send [10:47:21]OFD Sender: No OFD packet to send [10:47:26]OFD Sender: No OFD packet to send [10:47:31]OFD Sender: No OFD packet to send [10:47:36]OFD Sender: No OFD packet to send [10:47:41]OFD Sender: No OFD packet to send [10:47:46]OFD Sender: No OFD packet to send [10:47:51]OFD Sender: No OFD packet to send [10:47:56]OFD Sender: No OFD packet to send [10:48:01]OFD Sender: No OFD packet to send [10:48:06]OFD Sender: No OFD packet to send [10:48:11]OFD Sender: No OFD packet to send [10:48:16]OFD Sender: No OFD packet to send [10:48:21]OFD Sender: No OFD packet to send [10:48:26]OFD Sender: No OFD packet to send [10:48:31]OFD Sender: No OFD packet to send [10:48:36]OFD Sender: No OFD packet to send [10:48:41]OFD Sender: No OFD packet to send [10:48:46]OFD Sender: No OFD packet to send [10:48:51]OFD Sender: No OFD packet to send [10:48:56]OFD Sender: No OFD packet to send [10:49:01]OFD Sender: No OFD packet to send [10:49:06]OFD Sender: No OFD packet to send [10:49:11]OFD Sender: No OFD packet to send [10:49:16]OFD Sender: No OFD packet to send [10:49:21]OFD Sender: No OFD packet to send [10:49:26]OFD Sender: No OFD packet to send [10:49:31]OFD Sender: No OFD packet to send [10:49:36]OFD Sender: No OFD packet to send [10:49:41]OFD Sender: No OFD packet to send [10:49:46]OFD Sender: No OFD packet to send [10:49:51]OFD Sender: No OFD packet to send [10:49:56]OFD Sender: No OFD packet to send [10:50:01]OFD Sender: No OFD packet to send [10:50:06]OFD Sender: No OFD packet to send [10:50:11]OFD Sender: No OFD packet to send [10:50:16]OFD Sender: No OFD packet to send [10:50:21]OFD Sender: No OFD packet to send [10:50:26]OFD Sender: No OFD packet to send [10:50:31]OFD Sender: No OFD packet to send [10:50:36]OFD Sender: No OFD packet to send [10:50:41]OFD Sender: No OFD packet to send [10:50:43]accept exits with 6 [10:50:43]New connection [10:50:43]New thread 3066641764 created [10:50:43]Thread 3066498404 joined [10:50:43]Waiting for new connection... [10:50:43] Sock 6.Parse request [10:50:43]Sock 6.Check first char [10:50:43]Sock 6.First char is OK [10:50:43]request: POST /json_proto HTTP/1.0 [10:50:43]Method: POST [10:50:43]URL: /json_proto [10:50:43]Method is POST - this is cgi request [10:50:43]url: /json_proto [10:50:43]query_string will be loaded in cgi processing [10:50:43]execute_cgi json_proto POST (null) [10:50:43]execute_cgi path=json_proto method=POST [10:50:43]POST find Content-Length [10:50:43]Host: 172.17.33.3:8080 [10:50:43]Content-Length: 1202 [10:50:43]Content-Type: application/json [10:50:43] [10:50:43]POST finish read [10:50:43]Found Content-Length = 1202 [10:50:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)346964\u000A12.04.2024 10:32\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 64.30\u000A\u0418\u0422\u041E\u0413: 643.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3824402\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:50:43]execute_script... [10:50:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)346964\u000A12.04.2024 10:32\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 64.30\u000A\u0418\u0422\u041E\u0413: 643.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3824402\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:50:43]POST & json_proto [10:50:43]process_json_proto [10:50:43]json parsed OK: [10:50:43]protocol is kg_v1.0 [10:50:43]action value=print_text [10:50:43]process_action print_text [10:50:43]cmd_print_text [10:50:43]ExternCall_PrintAddStr [10:50:43]wPrintStart [10:50:43]Write to MH i2c: 01 00 00 D7 72 49 [10:50:43]Write i2c OK [10:50:43]MH_I2C_Read... [10:50:43]Read from MH i2c: 01 [10:50:43]MH_I2C_Read... [10:50:43]Read from MH i2c: 01 07 00 [10:50:43]MH_I2C_Read... [10:50:43]Read from MH i2c: 01 07 00 D7 72 00 00 00 00 00 FF 0F 5E [10:50:43]RasterBufferAndPrint [10:50:43]line *****ТОВАРНЫЙ ЧЕК***** [10:50:43]line АЗС 108 [10:50:43]line Партнер нефть [10:50:43]line 02508201610067 [10:50:43]line Кассир : Джумагулова Н. [10:50:43]line Счет N : (1)346964 [10:50:43]line 12.04.2024 10:32 [10:50:43]line ПРОДАЖА [10:50:43]line ТРК (МРК, ГНК): 32 [10:50:43]line Вид ГСМ : 2710124130 [10:50:43]line Аи-92-К-5 [10:50:43]line 10.000 x 64.30 [10:50:43]line ИТОГ: 643.00 [10:50:43]line Тип оплаты: Талоны: Партнер нефть [10:50:43]line 3824402 [10:50:43]line ______________________ [10:50:43]line (подпись) [10:50:43]written 0, free lines is 4095 [10:50:43]Write to MH i2c: 01 00 00 EC 72 5E [10:50:43]Write i2c OK [10:50:43]MH_I2C_Read... [10:50:43]Read from MH i2c: 01 [10:50:43]MH_I2C_Read... [10:50:43]Read from MH i2c: 01 07 00 [10:50:43]MH_I2C_Read... [10:50:43]Read from MH i2c: 01 07 00 EC 72 00 00 00 00 00 F8 0D 6A [10:50:43]RasterBufferAndPrint [10:50:43]line [10:50:43]line [10:50:43]line [10:50:43]line [10:50:43]line [10:50:43]written 0, free lines is 3578 [10:50:43]MH_Cut [10:50:43]Write to MH i2c: D1 01 00 F3 72 01 37 [10:50:43]Write i2c OK [10:50:43]MH_I2C_Read... [10:50:43]Read from MH i2c: D1 [10:50:43]MH_I2C_Read... [10:50:43]Read from MH i2c: D1 01 00 [10:50:43]MH_I2C_Read... [10:50:43]Read from MH i2c: D1 01 00 F3 72 00 36 [10:50:43]Write to MH i2c: 01 00 00 F4 72 66 [10:50:43]Write i2c OK [10:50:43]MH_I2C_Read... [10:50:44]*** Cut start [10:50:44]*** Partial cut [10:50:44]*** CUTSNS_PIN = 1 [10:50:44]*** CUTSNS_PIN = 0 [10:50:44]*** Brake cut motor [10:50:45]Read from MH i2c: 01 [10:50:45]MH_I2C_Read... [10:50:45]*** Stop cut motor [10:50:45]*** Cut end [10:50:45]Read from MH i2c: 01 07 00 [10:50:45]MH_I2C_Read... [10:50:45]Read from MH i2c: 01 07 00 F4 72 00 00 00 00 00 FF 0F 7B [10:50:45]process_action print_text done [10:50:45]requested_data is exist [10:50:45]produce_requested_data [10:50:45]requested_item fm.sn is exist - process it [10:50:45]wFMCommunicate request_size=4 [10:50:45]MH_SAM_APDU [10:50:45]CAPDU: 80 11 00 00 [10:50:45]Write to MH i2c: E2 08 00 F5 72 80 11 00 00 00 00 00 00 E1 [10:50:45]Write i2c OK [10:50:45]MH_I2C_Read... [10:50:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:50:45]Read from MH i2c: E2 [10:50:45]MH_I2C_Read... [10:50:45]Read from MH i2c: E2 17 00 [10:50:45]MH_I2C_Read... [10:50:45]Read from MH i2c: E2 17 00 F5 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 30 [10:50:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:50:45]wFMCommunicate OK [10:50:45]requested_item fd.num is exist - process it [10:50:45]SAM_PROTO_GetFieldsCounters [10:50:45]wFMCommunicate request_size=4 [10:50:45]MH_SAM_APDU [10:50:45]CAPDU: 80 13 00 00 [10:50:45]Write to MH i2c: E2 08 00 F6 72 80 13 00 00 00 00 00 00 E4 [10:50:45]Write i2c OK [10:50:45]MH_I2C_Read... [10:50:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:50:45]Read from MH i2c: E2 [10:50:45]MH_I2C_Read... [10:50:45]Read from MH i2c: E2 62 00 [10:50:45]MH_I2C_Read... [10:50:45]Read from MH i2c: E2 62 00 F6 72 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E0 6F 00 00 0E 04 04 00 71 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 ED [10:50:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E0 6F 00 00 0E 04 04 00 71 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 [10:50:45]wFMCommunicate OK [10:50:45]SAM_PROTO_GetFieldsCounters done [10:50:45]requested_item shift.num is exist - process it [10:50:45]requested_item shift.opened is exist - process it [10:50:45]req_shift_opened [10:50:45]FM_GetShiftState [10:50:45]SAM_PROTO_GetShiftState [10:50:45]wFMCommunicate request_size=4 [10:50:45]MH_SAM_APDU [10:50:45]CAPDU: 80 13 01 00 [10:50:45]Write to MH i2c: E2 08 00 F7 72 80 13 01 00 00 00 00 00 E6 [10:50:45]Write i2c OK [10:50:45]MH_I2C_Read... [10:50:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:50:45]Read from MH i2c: E2 [10:50:45]MH_I2C_Read... [10:50:45]Read from MH i2c: E2 0E 00 [10:50:45]MH_I2C_Read... [10:50:45]Read from MH i2c: E2 0E 00 F7 72 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 F7 [10:50:45]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [10:50:45]wFMCommunicate OK [10:50:45]SAM_PROTO_GetShiftState done [10:50:45]FM_GetShiftState done [10:50:45]req_shift_opened done [10:50:45]requested_item shift.open_date is exist - process it [10:50:45]req_shift_open_date [10:50:45]req_shift_open_date done [10:50:45]produce_requested_data done [10:50:45]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28640,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [10:50:45]process_action_free print_text [10:50:45]json_value_free [10:50:45]json_value_free done [10:50:45]process_json_proto returns [10:50:45]Send response to host [10:50:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28640,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [10:50:45]free response buf [10:50:45]execute_script done [10:50:45]execute_script returns [10:50:45]free content buf [10:50:45]Sock 6.Close socket [10:50:45]Sock 6.Thread stoped [10:50:46]OFD Sender: No OFD packet to send [10:50:51]OFD Sender: No OFD packet to send [10:50:56]OFD Sender: No OFD packet to send [10:51:01]OFD Sender: No OFD packet to send [10:51:06]OFD Sender: No OFD packet to send [10:51:11]OFD Sender: No OFD packet to send [10:51:16]OFD Sender: No OFD packet to send [10:51:21]OFD Sender: No OFD packet to send [10:51:26]OFD Sender: No OFD packet to send [10:51:31]OFD Sender: No OFD packet to send [10:51:36]OFD Sender: No OFD packet to send [10:51:41]OFD Sender: No OFD packet to send [10:51:46]OFD Sender: No OFD packet to send [10:51:51]OFD Sender: No OFD packet to send [10:51:56]OFD Sender: No OFD packet to send [10:52:01]OFD Sender: No OFD packet to send [10:52:01]accept exits with 5 [10:52:01]New connection [10:52:01]New thread 3066498404 created [10:52:01]Thread 3066641764 joined [10:52:01]Waiting for new connection... [10:52:01] Sock 5.Parse request [10:52:01]Sock 5.Check first char [10:52:01]Sock 5.First char is OK [10:52:01]request: POST /json_proto HTTP/1.0 [10:52:01]Method: POST [10:52:01]URL: /json_proto [10:52:01]Method is POST - this is cgi request [10:52:01]url: /json_proto [10:52:01]query_string will be loaded in cgi processing [10:52:01]execute_cgi json_proto POST (null) [10:52:01]execute_cgi path=json_proto method=POST [10:52:01]POST find Content-Length [10:52:01]Host: 172.17.33.3:8080 [10:52:01]Content-Length: 671 [10:52:01]Content-Type: application/json [10:52:01] [10:52:01]POST finish read [10:52:01]Found Content-Length = 671 [10:52:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346966", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 10.040, "sum" : 655.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 655.00, "total" : 655.00, "payments": [ { "type": 0, "sum" : 655.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:52:01]execute_script... [10:52: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)346966", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 10.040, "sum" : 655.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 655.00, "total" : 655.00, "payments": [ { "type": 0, "sum" : 655.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:52:01]POST & json_proto [10:52:01]process_json_proto [10:52:01]json parsed OK: [10:52:01]protocol is kg_v1.0 [10:52:01]action value=close_receipt [10:52:01]process_action close_receipt [10:52:01]cmd_close_receipt [10:52:01]MH_GetDate [10:52:01]Write to MH i2c: F0 00 00 F8 72 59 [10:52:01]Write i2c OK [10:52:01]MH_I2C_Read... [10:52:01]Read from MH i2c: F0 [10:52:01]MH_I2C_Read... [10:52:01]Read from MH i2c: F0 09 00 [10:52:01]MH_I2C_Read... [10:52:01]Read from MH i2c: F0 09 00 F8 72 00 59 12 19 66 23 5B 8F 65 BE [10:52:01]GetLastDocTimeStamp 1712918781 [10:52:01]current date 1712919129 [10:52:01]FM_GetShiftState [10:52:01]SAM_PROTO_GetShiftState [10:52:01]wFMCommunicate request_size=4 [10:52:01]MH_SAM_APDU [10:52:01]CAPDU: 80 13 01 00 [10:52:01]Write to MH i2c: E2 08 00 F9 72 80 13 01 00 00 00 00 00 E8 [10:52:01]Write i2c OK [10:52:01]MH_I2C_Read... [10:52:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:52:01]Read from MH i2c: E2 [10:52:01]MH_I2C_Read... [10:52:01]Read from MH i2c: E2 0E 00 [10:52:01]MH_I2C_Read... [10:52:01]Read from MH i2c: E2 0E 00 F9 72 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 F9 [10:52:01]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [10:52:01]wFMCommunicate OK [10:52:01]SAM_PROTO_GetShiftState done [10:52:01]FM_GetShiftState done [10:52:01]opened in 1712881416 [10:52:01]opened+sec_in_day 1712967816 [10:52:01]quantity*price = 65561 [10:52:01]sum+1 = 65562 [10:52:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 655.00 Внесено: 655.00 СДАЧА: 0.00 НСП 1% : 5.80 НДС 12% : 69.62 Наличными: 655.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 90 12.04.2024 10:52 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28641 ФПД: 277831943727810 1/tax-web-control/client/api/v1/ticket?date=20240412T105209&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28641&fm=277831943727810&tin=02508201610067®Number=0000138879044617&sum=65500 [10:52:03]StoreToDocumentArchive [10:52:03]shift 113 fd 28641 [10:52:03]save to /storage/0113/doc_00028641 [10:52:03]save last doc name /storage/0113/doc_00028641 to /storage/kkm_last_doc_name [10:52:03]save OK [10:52:03]Clear old archive folders... [10:52:03]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:52:03]tlvbuf is 01AE5800 [10:52:03]SAM_PROTO_ClearQueue [10:52:03]wFMCommunicate request_size=4 [10:52:03]MH_SAM_APDU [10:52:03]CAPDU: 80 09 00 00 [10:52:03]Write to MH i2c: E2 08 00 06 73 80 09 00 00 00 00 00 00 EB [10:52:03]Write i2c OK [10:52:03]MH_I2C_Read... [10:52:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:52:03]Read from MH i2c: E2 [10:52:03]MH_I2C_Read... [10:52:03]Read from MH i2c: E2 03 00 [10:52:03]MH_I2C_Read... [10:52:03]Read from MH i2c: E2 03 00 06 73 00 90 00 ED [10:52:03]RAPDU: 90 00 [10:52:03]wFMCommunicate OK [10:52:03]SAM_PROTO_ClearQueue done [10:52:03]KKMCreateOFDPacket [10:52:03]OFDProtocolAddRootSTLVToBuf [10:52:03]FM_MakeSignedData [10:52:03]FM_MakeSignedData [10:52:03]SAM_PROTO_SignData [10:52:03]wFMCommunicate request_size=4 [10:52:03]MH_SAM_APDU [10:52:03]CAPDU: 80 0D 01 02 [10:52:03]Write to MH i2c: E2 08 00 07 73 80 0D 01 02 00 00 00 00 F3 [10:52:03]Write i2c OK [10:52:03]MH_I2C_Read... [10:52:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:52:03]Read from MH i2c: E2 [10:52:03]MH_I2C_Read... [10:52:03]Read from MH i2c: E2 03 00 [10:52:03]MH_I2C_Read... [10:52:03]Read from MH i2c: E2 03 00 07 73 00 90 00 EE [10:52:03]RAPDU: 90 00 [10:52:03]wFMCommunicate OK [10:52:03]wFMCommunicate request_size=255 [10:52:03]MH_SAM_APDU [10:52:03]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 27 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 19 00 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC FF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 1B 00 00 00 00 07 04 06 00 DC FF 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 59 12 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E1 6F 00 00 35 04 06 00 [10:52:03]Write to MH i2c: E2 02 01 08 73 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 27 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 19 00 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC FF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 1B 00 00 00 00 07 04 06 00 DC FF 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 59 12 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E1 6F 00 00 35 04 06 00 00 00 26 [10:52:03]Write i2c OK [10:52:03]MH_I2C_Read... [10:52:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:52:03]Read from MH i2c: E2 [10:52:03]MH_I2C_Read... [10:52:03]Read from MH i2c: E2 03 00 [10:52:03]MH_I2C_Read... [10:52:03]Read from MH i2c: E2 03 00 08 73 00 90 00 EF [10:52:03]RAPDU: 90 00 [10:52:03]wFMCommunicate OK [10:52:03]wFMCommunicate request_size=11 [10:52:03]MH_SAM_APDU [10:52:03]CAPDU: 80 0D 02 02 06 FC AF CA 50 2A C2 [10:52:03]Write to MH i2c: E2 0E 00 09 73 80 0D 02 02 06 00 FC AF CA 50 2A C2 00 00 B3 [10:52:03]Write i2c OK [10:52:03]MH_I2C_Read... [10:52:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:52:03]Read from MH i2c: E2 [10:52:03]MH_I2C_Read... [10:52:03]Read from MH i2c: E2 03 00 [10:52:03]MH_I2C_Read... [10:52:03]Read from MH i2c: E2 03 00 09 73 00 90 00 F0 [10:52:03]RAPDU: 90 00 [10:52:03]wFMCommunicate OK [10:52:03]wFMCommunicate request_size=4 [10:52:03]MH_SAM_APDU [10:52:03]CAPDU: 80 0D 03 02 [10:52:03]Write to MH i2c: E2 08 00 0A 73 80 0D 03 02 00 00 00 00 F8 [10:52:03]Write i2c OK [10:52:03]MH_I2C_Read... [10:52:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:52:03]Read from MH i2c: E2 [10:52:03]MH_I2C_Read... [10:52:03]Read from MH i2c: E2 0B 00 [10:52:03]MH_I2C_Read... [10:52:03]Read from MH i2c: E2 0B 00 0A 73 00 93 9C C5 B4 31 E7 47 F2 90 00 F2 [10:52:03]RAPDU: 93 9C C5 B4 31 E7 47 F2 90 00 [10:52:03]wFMCommunicate OK [10:52:03]SAM_PROTO_SignData done [10:52:03]FM_MakeSignedData done [10:52:03]CreateOFDProtocolMessage [10:52:03]wFMCommunicate request_size=4 [10:52:03]MH_SAM_APDU [10:52:03]CAPDU: 80 11 00 00 [10:52:03]Write to MH i2c: E2 08 00 0B 73 80 11 00 00 00 00 00 00 F8 [10:52:03]Write i2c OK [10:52:03]MH_I2C_Read... [10:52:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:52:03]Read from MH i2c: E2 [10:52:03]MH_I2C_Read... [10:52:03]Read from MH i2c: E2 17 00 [10:52:03]MH_I2C_Read... [10:52:03]Read from MH i2c: E2 17 00 0B 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 47 [10:52:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:52:03]wFMCommunicate OK [10:52:03]CreateOFDProtocolMessage done [10:52:03]OFDSenderStorePacket 28641 [10:52:03]StoreOFDPacket docnum=28641 [10:52:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 4B 10 08 01 7A 48 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 27 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 19 00 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC FF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 1B 00 00 00 00 07 04 06 00 DC FF 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 59 12 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E1 6F 00 00 35 04 06 00 FC AF CA 50 2A C2 93 9C C5 B4 31 E7 47 F2 [10:52:03]CheckFolder [10:52:03]dirname=/storage/ofd_packets [10:52:03]CheckFolder done [10:52:03]ProducePacketName [10:52:03]name=ofd_packets/00028641 [10:52:03]NVStorageSaveData ofd_packets/00028641 [10:52:03]File name is /storage/ofd_packets/00028641 [10:52:03]Write 302 bytes [10:52:03]NVStorageSaveData done [10:52:03]OFDSenderStorePacket done [10:52:03]KKMCreateOFDPacket done [10:52:03]NVStorageSaveData kkm_last_timestamp [10:52:03]File name is /storage/kkm_last_timestamp [10:52:03]Write 4 bytes [10:52:03]NVStorageSaveData done [10:52:03]ExternCall_PrintAddStr [10:52:03]wPrintStart [10:52:03]Write to MH i2c: 01 00 00 0C 73 7F [10:52:03]Write i2c OK [10:52:03]MH_I2C_Read... [10:52:03]Read from MH i2c: 01 [10:52:03]MH_I2C_Read... [10:52:03]Read from MH i2c: 01 07 00 [10:52:03]MH_I2C_Read... [10:52:03]Read from MH i2c: 01 07 00 0C 73 00 00 00 00 00 FF 0F 94 [10:52:03]RasterBufferAndPrint [10:52:03]line Счет N : (1)346966 [10:52:03]line ИНН: 02508201610067 [10:52:03]line Контрольно-Кассовый Чек [10:52:03]line ПРОДАЖА [10:52:03]line ТРК (МРК, ГНК) : 41 [10:52:03]line Товар: 2710124130 [10:52:03]line SUPER-92-К-5 [10:52:03]line 10.040 * 65.30 [10:52:03]line = 655.61 [10:52:03]line НДС 12% НСП 1% [10:52:03]line > о реализуемом товаре [10:52:03]line ОКРУГЛЕНИЕ: -0.61 [10:52:03]line ИТОГО: 655.00 [10:52:03]line Внесено: 655.00 [10:52:03]line СДАЧА: 0.00 [10:52:03]line НСП 1% : 5.80 [10:52:03]line НДС 12% : 69.62 [10:52:03]line Наличными: 655.00 [10:52:03]line Безнал.: 0.00 [10:52:03]line Место: АЗС № 108 "Партнер Нефть" [10:52:03]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [10:52:03]line СНО: Общий режим [10:52:03]line Чек 90 12.04.2024 10:52 [10:52:03]line Смена: 113 ФФД: 1.0 [10:52:03]line ЗНМ: 0300000027 [10:52:03]line РНМ: 0000138879044617 [10:52:03]line Версия ККМ: 001 [10:52:03]line ФМ: 0000000000963154 [10:52:03]line ФД: 28641 [10:52:03]line ФПД: 277831943727810 [10:52:03]line 1/tax-web-control/client/api/v1/ticket?date=20240412T105209&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28641&fm=277831943727810&tin=02508201610067®Number=0000138879044617&sum=65500 [10:52:03]OFD Sender: Processing packet 28641 [packets to send 8, broken 7] [10:52:03]ProducePacketName [10:52:03]name=ofd_packets/00028641 [10:52:03]OFD Sender: To server: pG, [10:52:03]CommunicateWithHost lk.salyk.kg:30040 [10:52:03]ConnectInit lk.salyk.kg [10:52:03]written 0, free lines is 4095 [10:52:03]Connected sock=7 [10:52:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 4B 10 08 01 7A 48 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 27 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 19 00 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC FF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 1B 00 00 00 00 07 04 06 00 DC FF 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 59 12 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E1 6F 00 00 35 04 06 00 FC AF CA 50 2A C2 93 9C C5 B4 31 E7 47 F2 [10:52:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 8C C2 47 00 D6 FD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E1 6F 00 00 F4 03 04 00 03 BD 18 66 B6 04 01 00 00 BF 00 40 8C D4 6D 17 39 [10:52:04]CommunicateWithHost err = 0 [10:52:04]CheckOFDResponse [10:52:04]1017 (14) - 77093643461234 [10:52:04]1041 (16) - 0000000000963154 [10:52:04]1040 (4) - 28641 [10:52:04]1012 (4) - 12.04.2024 04:48 [10:52:04]1206 (1) - 0 [10:52:04]OFD Sender: Remove packet 28641 [10:52:04]ProducePacketName [10:52:04]name=ofd_packets/00028641 [10:52:04]NVStorageDeleteData [10:52:04]Write to MH i2c: 01 00 00 36 73 A9 [10:52:04]Write i2c OK [10:52:04]MH_I2C_Read... [10:52:04]Read from MH i2c: 01 [10:52:04]MH_I2C_Read... [10:52:04]Read from MH i2c: 01 07 00 [10:52:04]MH_I2C_Read... [10:52:04]Read from MH i2c: 01 07 00 36 73 00 00 00 00 00 C0 0C 7C [10:52:04]RasterBufferAndPrint [10:52:04]line [10:52:04]line [10:52:04]line [10:52:04]line [10:52:04]line [10:52:04]written 0, free lines is 3268 [10:52:04]MH_Cut [10:52:04]Write to MH i2c: D1 01 00 3D 73 01 82 [10:52:04]Write i2c OK [10:52:04]MH_I2C_Read... [10:52:04]Read from MH i2c: D1 [10:52:04]MH_I2C_Read... [10:52:04]Read from MH i2c: D1 01 00 [10:52:04]MH_I2C_Read... [10:52:04]Read from MH i2c: D1 01 00 3D 73 00 81 [10:52:04]Write to MH i2c: 01 00 00 3E 73 B1 [10:52:04]Write i2c OK [10:52:04]MH_I2C_Read... [10:52:04]OFD Sender: No OFD packet to send [10:52:05]*** Cut start [10:52:05]*** Partial cut [10:52:05]*** CUTSNS_PIN = 1 [10:52:05]*** CUTSNS_PIN = 0 [10:52:05]*** Brake cut motor [10:52:05]Read from MH i2c: 01 [10:52:05]MH_I2C_Read... [10:52:05]*** Stop cut motor [10:52:05]*** Cut end [10:52:05]Read from MH i2c: 01 07 00 [10:52:05]MH_I2C_Read... [10:52:05]Read from MH i2c: 01 07 00 3E 73 00 00 00 00 00 FF 0F C6 [10:52:05]process_action close_receipt done [10:52:05]requested_data is exist [10:52:05]produce_requested_data [10:52:05]requested_item fm.sn is exist - process it [10:52:05]wFMCommunicate request_size=4 [10:52:05]MH_SAM_APDU [10:52:05]CAPDU: 80 11 00 00 [10:52:05]Write to MH i2c: E2 08 00 3F 73 80 11 00 00 00 00 00 00 2C [10:52:05]Write i2c OK [10:52:05]MH_I2C_Read... [10:52:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:52:05]Read from MH i2c: E2 [10:52:05]MH_I2C_Read... [10:52:05]Read from MH i2c: E2 17 00 [10:52:05]MH_I2C_Read... [10:52:05]Read from MH i2c: E2 17 00 3F 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 7B [10:52:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:52:05]wFMCommunicate OK [10:52:05]requested_item fd.num is exist - process it [10:52:05]SAM_PROTO_GetFieldsCounters [10:52:05]wFMCommunicate request_size=4 [10:52:05]MH_SAM_APDU [10:52:05]CAPDU: 80 13 00 00 [10:52:05]Write to MH i2c: E2 08 00 40 73 80 13 00 00 00 00 00 00 2F [10:52:05]Write i2c OK [10:52:05]MH_I2C_Read... [10:52:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:52:05]Read from MH i2c: E2 [10:52:05]MH_I2C_Read... [10:52:05]Read from MH i2c: E2 62 00 [10:52:05]MH_I2C_Read... [10:52:05]Read from MH i2c: E2 62 00 40 73 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E1 6F 00 00 0E 04 04 00 71 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 3C [10:52:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E1 6F 00 00 0E 04 04 00 71 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 [10:52:05]wFMCommunicate OK [10:52:05]SAM_PROTO_GetFieldsCounters done [10:52:05]requested_item shift.num is exist - process it [10:52:05]requested_item shift.opened is exist - process it [10:52:05]req_shift_opened [10:52:05]FM_GetShiftState [10:52:05]SAM_PROTO_GetShiftState [10:52:05]wFMCommunicate request_size=4 [10:52:05]MH_SAM_APDU [10:52:05]CAPDU: 80 13 01 00 [10:52:05]Write to MH i2c: E2 08 00 41 73 80 13 01 00 00 00 00 00 31 [10:52:05]Write i2c OK [10:52:05]MH_I2C_Read... [10:52:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:52:06]Read from MH i2c: E2 [10:52:06]MH_I2C_Read... [10:52:06]Read from MH i2c: E2 0E 00 [10:52:06]MH_I2C_Read... [10:52:06]Read from MH i2c: E2 0E 00 41 73 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 42 [10:52:06]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [10:52:06]wFMCommunicate OK [10:52:06]SAM_PROTO_GetShiftState done [10:52:06]FM_GetShiftState done [10:52:06]req_shift_opened done [10:52:06]requested_item shift.open_date is exist - process it [10:52:06]req_shift_open_date [10:52:06]req_shift_open_date done [10:52:06]produce_requested_data done [10:52:06]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28641,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [10:52:06]process_action_free close_receipt [10:52:06]json_value_free [10:52:06]json_value_free done [10:52:06]process_json_proto returns [10:52:06]Send response to host [10:52:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28641,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [10:52:06]free response buf [10:52:06]execute_script done [10:52:06]execute_script returns [10:52:06]free content buf [10:52:06]Sock 5.Close socket [10:52:06]Sock 5.Thread stoped [10:52:09]OFD Sender: No OFD packet to send [10:52:14]OFD Sender: No OFD packet to send [10:52:19]OFD Sender: No OFD packet to send [10:52:24]OFD Sender: No OFD packet to send [10:52:29]OFD Sender: No OFD packet to send [10:52:34]OFD Sender: No OFD packet to send [10:52:39]OFD Sender: No OFD packet to send [10:52:40]accept exits with 6 [10:52:40]New connection [10:52:40]New thread 3066641764 created [10:52:40]Thread 3066498404 joined [10:52:40]Waiting for new connection... [10:52:40] Sock 6.Parse request [10:52:40]Sock 6.Check first char [10:52:40]Sock 6.First char is OK [10:52:40]request: POST /json_proto HTTP/1.0 [10:52:40]Method: POST [10:52:40]URL: /json_proto [10:52:40]Method is POST - this is cgi request [10:52:40]url: /json_proto [10:52:40]query_string will be loaded in cgi processing [10:52:40]execute_cgi json_proto POST (null) [10:52:40]execute_cgi path=json_proto method=POST [10:52:40]POST find Content-Length [10:52:40]Host: 172.17.33.3:8080 [10:52:40]Content-Length: 677 [10:52:40]Content-Type: application/json [10:52:40] [10:52:40]POST finish read [10:52:40]Found Content-Length = 677 [10:52:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346967", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 9.340, "sum" : 600.56, "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:52:40]execute_script... [10:52: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)346967", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 9.340, "sum" : 600.56, "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:52:40]POST & json_proto [10:52:40]process_json_proto [10:52:40]json parsed OK: [10:52:40]protocol is kg_v1.0 [10:52:40]action value=close_receipt [10:52:40]process_action close_receipt [10:52:40]cmd_close_receipt [10:52:40]MH_GetDate [10:52:40]Write to MH i2c: F0 00 00 42 73 A4 [10:52:40]Write i2c OK [10:52:40]MH_I2C_Read... [10:52:40]Read from MH i2c: F0 [10:52:40]MH_I2C_Read... [10:52:40]Read from MH i2c: F0 09 00 [10:52:40]MH_I2C_Read... [10:52:40]Read from MH i2c: F0 09 00 42 73 00 80 12 19 66 23 5B 8F 65 30 [10:52:40]GetLastDocTimeStamp 1712919129 [10:52:40]current date 1712919168 [10:52:40]FM_GetShiftState [10:52:40]SAM_PROTO_GetShiftState [10:52:40]wFMCommunicate request_size=4 [10:52:40]MH_SAM_APDU [10:52:40]CAPDU: 80 13 01 00 [10:52:40]Write to MH i2c: E2 08 00 43 73 80 13 01 00 00 00 00 00 33 [10:52:40]Write i2c OK [10:52:40]MH_I2C_Read... [10:52:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:52:40]Read from MH i2c: E2 [10:52:40]MH_I2C_Read... [10:52:40]Read from MH i2c: E2 0E 00 [10:52:40]MH_I2C_Read... [10:52:40]Read from MH i2c: E2 0E 00 43 73 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 44 [10:52:40]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [10:52:40]wFMCommunicate OK [10:52:40]SAM_PROTO_GetShiftState done [10:52:40]FM_GetShiftState done [10:52:40]opened in 1712881416 [10:52:40]opened+sec_in_day 1712967816 [10:52:40]quantity*price = 60056 [10:52:40]sum+1 = 60057 [10:52:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.78 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 91 12.04.2024 10:52 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28642 ФПД: 157694798774775 1/tax-web-control/client/api/v1/ticket?date=20240412T105248&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28642&fm=157694798774775&tin=02508201610067®Number=0000138879044617&sum=60000 [10:52:41]StoreToDocumentArchive [10:52:41]shift 113 fd 28642 [10:52:41]save to /storage/0113/doc_00028642 [10:52:41]save last doc name /storage/0113/doc_00028642 to /storage/kkm_last_doc_name [10:52:41]save OK [10:52:41]Clear old archive folders... [10:52:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:52:41]tlvbuf is 01AE9500 [10:52:41]SAM_PROTO_ClearQueue [10:52:41]wFMCommunicate request_size=4 [10:52:41]MH_SAM_APDU [10:52:41]CAPDU: 80 09 00 00 [10:52:41]Write to MH i2c: E2 08 00 50 73 80 09 00 00 00 00 00 00 35 [10:52:41]Write i2c OK [10:52:41]MH_I2C_Read... [10:52:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:52:41]Read from MH i2c: E2 [10:52:41]MH_I2C_Read... [10:52:41]Read from MH i2c: E2 03 00 [10:52:41]MH_I2C_Read... [10:52:41]Read from MH i2c: E2 03 00 50 73 00 90 00 37 [10:52:41]RAPDU: 90 00 [10:52:41]wFMCommunicate OK [10:52:41]SAM_PROTO_ClearQueue done [10:52:41]KKMCreateOFDPacket [10:52:41]OFDProtocolAddRootSTLVToBuf [10:52:41]FM_MakeSignedData [10:52:41]FM_MakeSignedData [10:52:41]SAM_PROTO_SignData [10:52:41]wFMCommunicate request_size=4 [10:52:41]MH_SAM_APDU [10:52:41]CAPDU: 80 0D 01 02 [10:52:41]Write to MH i2c: E2 08 00 51 73 80 0D 01 02 00 00 00 00 3D [10:52:41]Write i2c OK [10:52:41]MH_I2C_Read... [10:52:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:52:41]Read from MH i2c: E2 [10:52:41]MH_I2C_Read... [10:52:41]Read from MH i2c: E2 03 00 [10:52:41]MH_I2C_Read... [10:52:41]Read from MH i2c: E2 03 00 51 73 00 90 00 38 [10:52:41]RAPDU: 90 00 [10:52:41]wFMCommunicate OK [10:52:41]wFMCommunicate request_size=255 [10:52:41]MH_SAM_APDU [10:52:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7C 24 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 98 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 EA 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 5B 00 00 00 F4 03 04 00 80 12 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E2 6F 00 00 35 04 06 00 8F [10:52:41]Write to MH i2c: E2 02 01 52 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 35 FF 03 08 00 03 7C 24 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 98 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 EA 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 5B 00 00 00 F4 03 04 00 80 12 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E2 6F 00 00 35 04 06 00 8F 00 00 25 [10:52:41]Write i2c OK [10:52:41]MH_I2C_Read... [10:52:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:52:42]Read from MH i2c: E2 [10:52:42]MH_I2C_Read... [10:52:42]Read from MH i2c: E2 03 00 [10:52:42]MH_I2C_Read... [10:52:42]Read from MH i2c: E2 03 00 52 73 00 90 00 39 [10:52:42]RAPDU: 90 00 [10:52:42]wFMCommunicate OK [10:52:42]wFMCommunicate request_size=10 [10:52:42]MH_SAM_APDU [10:52:42]CAPDU: 80 0D 02 02 05 6C 2E 76 C1 F7 [10:52:42]Write to MH i2c: E2 0D 00 53 73 80 0D 02 02 05 00 6C 2E 76 C1 F7 00 00 12 [10:52:42]Write i2c OK [10:52:42]MH_I2C_Read... [10:52:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:52:42]Read from MH i2c: E2 [10:52:42]MH_I2C_Read... [10:52:42]Read from MH i2c: E2 03 00 [10:52:42]MH_I2C_Read... [10:52:42]Read from MH i2c: E2 03 00 53 73 00 90 00 3A [10:52:42]RAPDU: 90 00 [10:52:42]wFMCommunicate OK [10:52:42]wFMCommunicate request_size=4 [10:52:42]MH_SAM_APDU [10:52:42]CAPDU: 80 0D 03 02 [10:52:42]Write to MH i2c: E2 08 00 54 73 80 0D 03 02 00 00 00 00 42 [10:52:42]Write i2c OK [10:52:42]MH_I2C_Read... [10:52:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:52:42]Read from MH i2c: E2 [10:52:42]MH_I2C_Read... [10:52:42]Read from MH i2c: E2 0B 00 [10:52:42]MH_I2C_Read... [10:52:42]Read from MH i2c: E2 0B 00 54 73 00 52 52 B0 3E 04 BE CA 0F 90 00 70 [10:52:42]RAPDU: 52 52 B0 3E 04 BE CA 0F 90 00 [10:52:42]wFMCommunicate OK [10:52:42]SAM_PROTO_SignData done [10:52:42]FM_MakeSignedData done [10:52:42]CreateOFDProtocolMessage [10:52:42]wFMCommunicate request_size=4 [10:52:42]MH_SAM_APDU [10:52:42]CAPDU: 80 11 00 00 [10:52:42]Write to MH i2c: E2 08 00 55 73 80 11 00 00 00 00 00 00 42 [10:52:42]Write i2c OK [10:52:42]MH_I2C_Read... [10:52:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:52:42]Read from MH i2c: E2 [10:52:42]MH_I2C_Read... [10:52:42]Read from MH i2c: E2 17 00 [10:52:42]MH_I2C_Read... [10:52:42]Read from MH i2c: E2 17 00 55 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 91 [10:52:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:52:42]wFMCommunicate OK [10:52:42]CreateOFDProtocolMessage done [10:52:42]OFDSenderStorePacket 28642 [10:52:42]StoreOFDPacket docnum=28642 [10:52:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 F4 5B 07 01 C8 A0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7C 24 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 98 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 EA 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 5B 00 00 00 F4 03 04 00 80 12 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E2 6F 00 00 35 04 06 00 8F 6C 2E 76 C1 F7 52 52 B0 3E 04 BE CA 0F [10:52:42]CheckFolder [10:52:42]dirname=/storage/ofd_packets [10:52:42]CheckFolder done [10:52:42]ProducePacketName [10:52:42]name=ofd_packets/00028642 [10:52:42]NVStorageSaveData ofd_packets/00028642 [10:52:42]File name is /storage/ofd_packets/00028642 [10:52:42]Write 301 bytes [10:52:42]NVStorageSaveData done [10:52:42]OFDSenderStorePacket done [10:52:42]KKMCreateOFDPacket done [10:52:42]NVStorageSaveData kkm_last_timestamp [10:52:42]File name is /storage/kkm_last_timestamp [10:52:42]Write 4 bytes [10:52:42]NVStorageSaveData done [10:52:42]ExternCall_PrintAddStr [10:52:42]wPrintStart [10:52:42]Write to MH i2c: 01 00 00 56 73 C9 [10:52:42]Write i2c OK [10:52:42]MH_I2C_Read... [10:52:42]Read from MH i2c: 01 [10:52:42]MH_I2C_Read... [10:52:42]Read from MH i2c: 01 07 00 [10:52:42]MH_I2C_Read... [10:52:42]Read from MH i2c: 01 07 00 56 73 00 00 00 00 00 FF 0F DE [10:52:42]RasterBufferAndPrint [10:52:42]line Счет N : (1)346967 [10:52:42]line ИНН: 02508201610067 [10:52:42]line Контрольно-Кассовый Чек [10:52:42]line ПРОДАЖА [10:52:42]line ТРК (МРК, ГНК) : 32 [10:52:42]line Товар: 2710124130 [10:52:42]line Аи-92-К-5 [10:52:42]line 9.340 * 64.30 [10:52:42]line = 600.56 [10:52:42]line НДС 12% НСП 1% [10:52:42]line > о реализуемом товаре [10:52:42]line ОКРУГЛЕНИЕ: -0.56 [10:52:42]line ИТОГО: 600.00 [10:52:42]line Внесено: 600.00 [10:52:42]line СДАЧА: 0.00 [10:52:42]line НСП 1% : 5.31 [10:52:42]line НДС 12% : 63.78 [10:52:42]line Наличными: 600.00 [10:52:42]line Безнал.: 0.00 [10:52:42]line Место: АЗС № 108 "Партнер Нефть" [10:52:42]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [10:52:42]line СНО: Общий режим [10:52:42]line Чек 91 12.04.2024 10:52 [10:52:42]line Смена: 113 ФФД: 1.0 [10:52:42]line ЗНМ: 0300000027 [10:52:42]line РНМ: 0000138879044617 [10:52:42]line Версия ККМ: 001 [10:52:42]line ФМ: 0000000000963154 [10:52:42]line ФД: 28642 [10:52:42]line ФПД: 157694798774775 [10:52:42]line 1/tax-web-control/client/api/v1/ticket?date=20240412T105248&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28642&fm=157694798774775&tin=02508201610067®Number=0000138879044617&sum=60000 [10:52:42]OFD Sender: Processing packet 28642 [packets to send 8, broken 7] [10:52:42]ProducePacketName [10:52:42]name=ofd_packets/00028642 [10:52:42]OFD Sender: To server: pG, [10:52:42]CommunicateWithHost lk.salyk.kg:30040 [10:52:42]ConnectInit lk.salyk.kg [10:52:42]written 0, free lines is 4095 [10:52:42]Connected sock=7 [10:52:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 F4 5B 07 01 C8 A0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7C 24 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 98 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 EA 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 5B 00 00 00 F4 03 04 00 80 12 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E2 6F 00 00 35 04 06 00 8F 6C 2E 76 C1 F7 52 52 B0 3E 04 BE CA 0F [10:52:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 A1 D5 47 00 77 B5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E2 6F 00 00 F4 03 04 00 2A BD 18 66 B6 04 01 00 00 A8 48 FE 91 41 07 59 42 [10:52:43]CommunicateWithHost err = 0 [10:52:43]CheckOFDResponse [10:52:43]1017 (14) - 77093643461234 [10:52:43]1041 (16) - 0000000000963154 [10:52:43]1040 (4) - 28642 [10:52:43]1012 (4) - 12.04.2024 04:48 [10:52:43]1206 (1) - 0 [10:52:43]OFD Sender: Remove packet 28642 [10:52:43]ProducePacketName [10:52:43]name=ofd_packets/00028642 [10:52:43]NVStorageDeleteData [10:52:43]Write to MH i2c: 01 00 00 80 73 F3 [10:52:43]Write i2c OK [10:52:43]MH_I2C_Read... [10:52:43]Read from MH i2c: 01 [10:52:43]MH_I2C_Read... [10:52:43]Read from MH i2c: 01 07 00 [10:52:43]MH_I2C_Read... [10:52:43]Read from MH i2c: 01 07 00 80 73 00 00 00 00 00 D0 0C D6 [10:52:43]RasterBufferAndPrint [10:52:43]line [10:52:43]line [10:52:43]line [10:52:43]line [10:52:43]line [10:52:43]written 0, free lines is 3287 [10:52:43]MH_Cut [10:52:43]Write to MH i2c: D1 01 00 87 73 01 CC [10:52:43]Write i2c OK [10:52:43]MH_I2C_Read... [10:52:43]Read from MH i2c: D1 [10:52:43]MH_I2C_Read... [10:52:43]Read from MH i2c: D1 01 00 [10:52:43]MH_I2C_Read... [10:52:43]Read from MH i2c: D1 01 00 87 73 00 CB [10:52:43]Write to MH i2c: 01 00 00 88 73 FB [10:52:43]Write i2c OK [10:52:43]MH_I2C_Read... [10:52:43]OFD Sender: No OFD packet to send [10:52:43]*** Cut start [10:52:43]*** Partial cut [10:52:43]*** CUTSNS_PIN = 1 [10:52:44]*** CUTSNS_PIN = 0 [10:52:44]*** Brake cut motor [10:52:44]Read from MH i2c: 01 [10:52:44]MH_I2C_Read... [10:52:44]*** Stop cut motor [10:52:44]*** Cut end [10:52:44]Read from MH i2c: 01 07 00 [10:52:44]MH_I2C_Read... [10:52:44]Read from MH i2c: 01 07 00 88 73 00 00 00 00 00 FF 0F 10 [10:52:44]process_action close_receipt done [10:52:44]requested_data is exist [10:52:44]produce_requested_data [10:52:44]requested_item fm.sn is exist - process it [10:52:44]wFMCommunicate request_size=4 [10:52:44]MH_SAM_APDU [10:52:44]CAPDU: 80 11 00 00 [10:52:44]Write to MH i2c: E2 08 00 89 73 80 11 00 00 00 00 00 00 76 [10:52:44]Write i2c OK [10:52:44]MH_I2C_Read... [10:52:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:52:44]Read from MH i2c: E2 [10:52:44]MH_I2C_Read... [10:52:44]Read from MH i2c: E2 17 00 [10:52:44]MH_I2C_Read... [10:52:44]Read from MH i2c: E2 17 00 89 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 C5 [10:52:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:52:44]wFMCommunicate OK [10:52:44]requested_item fd.num is exist - process it [10:52:44]SAM_PROTO_GetFieldsCounters [10:52:44]wFMCommunicate request_size=4 [10:52:44]MH_SAM_APDU [10:52:44]CAPDU: 80 13 00 00 [10:52:44]Write to MH i2c: E2 08 00 8A 73 80 13 00 00 00 00 00 00 79 [10:52:44]Write i2c OK [10:52:44]MH_I2C_Read... [10:52:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:52:44]Read from MH i2c: E2 [10:52:44]MH_I2C_Read... [10:52:44]Read from MH i2c: E2 62 00 [10:52:44]MH_I2C_Read... [10:52:44]Read from MH i2c: E2 62 00 8A 73 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E2 6F 00 00 0E 04 04 00 71 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 8A [10:52:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E2 6F 00 00 0E 04 04 00 71 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 [10:52:44]wFMCommunicate OK [10:52:44]SAM_PROTO_GetFieldsCounters done [10:52:44]requested_item shift.num is exist - process it [10:52:44]requested_item shift.opened is exist - process it [10:52:44]req_shift_opened [10:52:44]FM_GetShiftState [10:52:44]SAM_PROTO_GetShiftState [10:52:44]wFMCommunicate request_size=4 [10:52:44]MH_SAM_APDU [10:52:44]CAPDU: 80 13 01 00 [10:52:44]Write to MH i2c: E2 08 00 8B 73 80 13 01 00 00 00 00 00 7B [10:52:44]Write i2c OK [10:52:44]MH_I2C_Read... [10:52:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:52:44]Read from MH i2c: E2 [10:52:44]MH_I2C_Read... [10:52:44]Read from MH i2c: E2 0E 00 [10:52:44]MH_I2C_Read... [10:52:44]Read from MH i2c: E2 0E 00 8B 73 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 8C [10:52:44]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [10:52:44]wFMCommunicate OK [10:52:44]SAM_PROTO_GetShiftState done [10:52:44]FM_GetShiftState done [10:52:44]req_shift_opened done [10:52:44]requested_item shift.open_date is exist - process it [10:52:44]req_shift_open_date [10:52:44]req_shift_open_date done [10:52:44]produce_requested_data done [10:52:44]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28642,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [10:52:44]process_action_free close_receipt [10:52:44]json_value_free [10:52:44]json_value_free done [10:52:44]process_json_proto returns [10:52:44]Send response to host [10:52:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28642,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [10:52:44]free response buf [10:52:44]execute_script done [10:52:44]execute_script returns [10:52:44]free content buf [10:52:44]Sock 6.Close socket [10:52:44]Sock 6.Thread stoped [10:52:48]OFD Sender: No OFD packet to send [10:52:53]OFD Sender: No OFD packet to send [10:52:58]OFD Sender: No OFD packet to send [10:53:03]OFD Sender: No OFD packet to send [10:53:08]OFD Sender: No OFD packet to send [10:53:13]OFD Sender: No OFD packet to send [10:53:18]OFD Sender: No OFD packet to send [10:53:23]OFD Sender: No OFD packet to send [10:53:28]OFD Sender: No OFD packet to send [10:53:33]OFD Sender: No OFD packet to send [10:53:38]OFD Sender: No OFD packet to send [10:53:43]OFD Sender: No OFD packet to send [10:53:48]OFD Sender: No OFD packet to send [10:53:53]OFD Sender: No OFD packet to send [10:53:58]OFD Sender: No OFD packet to send [10:54:00]accept exits with 5 [10:54:00]New connection [10:54:00]New thread 3066498404 created [10:54:00]Thread 3066641764 joined [10:54:00]Waiting for new connection... [10:54:00] Sock 5.Parse request [10:54:00]Sock 5.Check first char [10:54:00]Sock 5.First char is OK [10:54:00]request: POST /json_proto HTTP/1.0 [10:54:00]Method: POST [10:54:00]URL: /json_proto [10:54:00]Method is POST - this is cgi request [10:54:00]url: /json_proto [10:54:00]query_string will be loaded in cgi processing [10:54:00]execute_cgi json_proto POST (null) [10:54:00]execute_cgi path=json_proto method=POST [10:54:00]POST find Content-Length [10:54:00]Host: 172.17.33.3:8080 [10:54:00]Content-Length: 805 [10:54:00]Content-Type: application/json [10:54:00] [10:54:00]POST finish read [10:54:00]Found Content-Length = 805 [10:54:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346965", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 60.090, "sum" : 4350.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 4350.52 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:54:00]execute_script... [10:54: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)346965", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 60.090, "sum" : 4350.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 4350.52 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:54:00]POST & json_proto [10:54:00]process_json_proto [10:54:00]json parsed OK: [10:54:00]protocol is kg_v1.0 [10:54:00]action value=close_receipt [10:54:00]process_action close_receipt [10:54:00]cmd_close_receipt [10:54:00]MH_GetDate [10:54:00]Write to MH i2c: F0 00 00 8C 73 EE [10:54:00]Write i2c OK [10:54:00]MH_I2C_Read... [10:54:00]Read from MH i2c: F0 [10:54:00]MH_I2C_Read... [10:54:00]Read from MH i2c: F0 09 00 [10:54:00]MH_I2C_Read... [10:54:00]Read from MH i2c: F0 09 00 8C 73 00 D0 12 19 66 23 5B 8F 65 CA [10:54:00]GetLastDocTimeStamp 1712919168 [10:54:00]current date 1712919248 [10:54:00]FM_GetShiftState [10:54:00]SAM_PROTO_GetShiftState [10:54:00]wFMCommunicate request_size=4 [10:54:00]MH_SAM_APDU [10:54:00]CAPDU: 80 13 01 00 [10:54:00]Write to MH i2c: E2 08 00 8D 73 80 13 01 00 00 00 00 00 7D [10:54:00]Write i2c OK [10:54:00]MH_I2C_Read... [10:54:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:54:00]Read from MH i2c: E2 [10:54:00]MH_I2C_Read... [10:54:00]Read from MH i2c: E2 0E 00 [10:54:00]MH_I2C_Read... [10:54:00]Read from MH i2c: E2 0E 00 8D 73 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 8E [10:54:00]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [10:54:00]wFMCommunicate OK [10:54:00]SAM_PROTO_GetShiftState done [10:54:00]FM_GetShiftState done [10:54:00]opened in 1712881416 [10:54:00]opened+sec_in_day 1712967816 [10:54:00]quantity*price = 435051 [10:54:00]sum+1 = 435053 [10:54:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 4350.52 НСП 1% : 38.50 НДС 12% : 462.00 Наличными: 0.00 Безнал.: 4350.52 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 92 12.04.2024 10:54 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 28643 ФПД: 73553545467820 1/tax-web-control/client/api/v1/ticket?date=20240412T105408&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28643&fm=73553545467820&tin=02508201610067®Number=0000138879044617&sum=435052 [10:54:01]StoreToDocumentArchive [10:54:01]shift 113 fd 28643 [10:54:01]save to /storage/0113/doc_00028643 [10:54:01]save last doc name /storage/0113/doc_00028643 to /storage/kkm_last_doc_name [10:54:01]save OK [10:54:01]Clear old archive folders... [10:54:01]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:54:01]tlvbuf is 01ACCB30 [10:54:01]SAM_PROTO_ClearQueue [10:54:01]wFMCommunicate request_size=4 [10:54:01]MH_SAM_APDU [10:54:01]CAPDU: 80 09 00 00 [10:54:01]Write to MH i2c: E2 08 00 9A 73 80 09 00 00 00 00 00 00 7F [10:54:01]Write i2c OK [10:54:01]MH_I2C_Read... [10:54:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:54:01]Read from MH i2c: E2 [10:54:01]MH_I2C_Read... [10:54:01]Read from MH i2c: E2 03 00 [10:54:01]MH_I2C_Read... [10:54:01]Read from MH i2c: E2 03 00 9A 73 00 90 00 81 [10:54:01]RAPDU: 90 00 [10:54:01]wFMCommunicate OK [10:54:01]SAM_PROTO_ClearQueue done [10:54:01]KKMCreateOFDPacket [10:54:01]OFDProtocolAddRootSTLVToBuf [10:54:01]FM_MakeSignedData [10:54:01]FM_MakeSignedData [10:54:01]SAM_PROTO_SignData [10:54:01]wFMCommunicate request_size=4 [10:54:01]MH_SAM_APDU [10:54:01]CAPDU: 80 0D 01 02 [10:54:01]Write to MH i2c: E2 08 00 9B 73 80 0D 01 02 00 00 00 00 87 [10:54:01]Write i2c OK [10:54:01]MH_I2C_Read... [10:54:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:54:01]Read from MH i2c: E2 [10:54:01]MH_I2C_Read... [10:54:01]Read from MH i2c: E2 03 00 [10:54:01]MH_I2C_Read... [10:54:01]Read from MH i2c: E2 03 00 9B 73 00 90 00 82 [10:54:01]RAPDU: 90 00 [10:54:01]wFMCommunicate OK [10:54:01]wFMCommunicate request_size=255 [10:54:01]MH_SAM_APDU [10:54:01]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BA EA 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 6C A3 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C A3 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 B4 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C A3 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 D0 12 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E3 6F 00 00 35 04 06 00 42 E5 84 F3 [10:54:01]Write to MH i2c: E2 02 01 9C 73 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 35 FF 03 08 00 03 BA EA 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 6C A3 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C A3 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 B4 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C A3 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 D0 12 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E3 6F 00 00 35 04 06 00 42 E5 84 F3 00 00 AB [10:54:01]Write i2c OK [10:54:01]MH_I2C_Read... [10:54:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:54:01]Read from MH i2c: E2 [10:54:01]MH_I2C_Read... [10:54:01]Read from MH i2c: E2 03 00 [10:54:01]MH_I2C_Read... [10:54:01]Read from MH i2c: E2 03 00 9C 73 00 90 00 83 [10:54:01]RAPDU: 90 00 [10:54:01]wFMCommunicate OK [10:54:01]wFMCommunicate request_size=7 [10:54:01]MH_SAM_APDU [10:54:01]CAPDU: 80 0D 02 02 02 17 AC [10:54:01]Write to MH i2c: E2 0A 00 9D 73 80 0D 02 02 02 00 17 AC 00 00 51 [10:54:01]Write i2c OK [10:54:01]MH_I2C_Read... [10:54:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:54:01]Read from MH i2c: E2 [10:54:01]MH_I2C_Read... [10:54:01]Read from MH i2c: E2 03 00 [10:54:01]MH_I2C_Read... [10:54:01]Read from MH i2c: E2 03 00 9D 73 00 90 00 84 [10:54:01]RAPDU: 90 00 [10:54:01]wFMCommunicate OK [10:54:01]wFMCommunicate request_size=4 [10:54:01]MH_SAM_APDU [10:54:01]CAPDU: 80 0D 03 02 [10:54:01]Write to MH i2c: E2 08 00 9E 73 80 0D 03 02 00 00 00 00 8C [10:54:01]Write i2c OK [10:54:01]MH_I2C_Read... [10:54:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:54:01]Read from MH i2c: E2 [10:54:01]MH_I2C_Read... [10:54:01]Read from MH i2c: E2 0B 00 [10:54:01]MH_I2C_Read... [10:54:01]Read from MH i2c: E2 0B 00 9E 73 00 B8 E7 42 50 00 F5 E9 89 90 00 25 [10:54:01]RAPDU: B8 E7 42 50 00 F5 E9 89 90 00 [10:54:01]wFMCommunicate OK [10:54:01]SAM_PROTO_SignData done [10:54:01]FM_MakeSignedData done [10:54:01]CreateOFDProtocolMessage [10:54:01]wFMCommunicate request_size=4 [10:54:01]MH_SAM_APDU [10:54:01]CAPDU: 80 11 00 00 [10:54:01]Write to MH i2c: E2 08 00 9F 73 80 11 00 00 00 00 00 00 8C [10:54:01]Write i2c OK [10:54:01]MH_I2C_Read... [10:54:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:54:01]Read from MH i2c: E2 [10:54:01]MH_I2C_Read... [10:54:01]Read from MH i2c: E2 17 00 [10:54:01]MH_I2C_Read... [10:54:01]Read from MH i2c: E2 17 00 9F 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 DB [10:54:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:54:01]wFMCommunicate OK [10:54:01]CreateOFDProtocolMessage done [10:54:01]OFDSenderStorePacket 28643 [10:54:01]StoreOFDPacket docnum=28643 [10:54:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 54 62 04 01 DD 61 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BA EA 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 6C A3 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C A3 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 B4 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C A3 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 D0 12 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E3 6F 00 00 35 04 06 00 42 E5 84 F3 17 AC B8 E7 42 50 00 F5 E9 89 [10:54:01]CheckFolder [10:54:01]dirname=/storage/ofd_packets [10:54:01]CheckFolder done [10:54:01]ProducePacketName [10:54:01]name=ofd_packets/00028643 [10:54:01]NVStorageSaveData ofd_packets/00028643 [10:54:01]File name is /storage/ofd_packets/00028643 [10:54:01]Write 298 bytes [10:54:01]NVStorageSaveData done [10:54:01]OFDSenderStorePacket done [10:54:01]KKMCreateOFDPacket done [10:54:01]NVStorageSaveData kkm_last_timestamp [10:54:01]File name is /storage/kkm_last_timestamp [10:54:01]Write 4 bytes [10:54:01]NVStorageSaveData done [10:54:01]ExternCall_PrintAddStr [10:54:01]wPrintStart [10:54:01]Write to MH i2c: 01 00 00 A0 73 13 [10:54:01]Write i2c OK [10:54:01]MH_I2C_Read... [10:54:01]Read from MH i2c: 01 [10:54:01]MH_I2C_Read... [10:54:01]Read from MH i2c: 01 07 00 [10:54:01]MH_I2C_Read... [10:54:01]Read from MH i2c: 01 07 00 A0 73 00 00 00 00 00 FF 0F 28 [10:54:01]RasterBufferAndPrint [10:54:01]line Счет N : (1)346965 [10:54:01]line ИНН: 02508201610067 [10:54:01]line Контрольно-Кассовый Чек [10:54:01]line ПРОДАЖА [10:54:01]line ТРК (МРК, ГНК) : 21 [10:54:01]line Товар: 2710194210 [10:54:01]line ДТ-К-5 [10:54:01]line 60.090 * 72.40 [10:54:01]line = 4350.52 [10:54:01]line НДС 12% НСП 1% [10:54:01]line > о реализуемом товаре [10:54:01]line ИТОГО: 4350.52 [10:54:01]line НСП 1% : 38.50 [10:54:01]line НДС 12% : 462.00 [10:54:01]line Наличными: 0.00 [10:54:01]line Безнал.: 4350.52 [10:54:01]line Место: АЗС № 108 "Партнер Нефть" [10:54:01]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [10:54:01]line СНО: Общий режим [10:54:01]line Чек 92 12.04.2024 10:54 [10:54:01]line Смена: 113 ФФД: 1.0 [10:54:01]line ЗНМ: 0300000027 [10:54:01]line РНМ: 0000138879044617 [10:54:01]line Версия ККМ: 001 [10:54:01]line Платежная система: О! деньги [10:54:01]line ФМ: 0000000000963154 [10:54:01]line ФД: 28643 [10:54:01]line ФПД: 73553545467820 [10:54:02]line 1/tax-web-control/client/api/v1/ticket?date=20240412T105408&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28643&fm=73553545467820&tin=02508201610067®Number=0000138879044617&sum=435052 [10:54:02]OFD Sender: Processing packet 28643 [packets to send 8, broken 7] [10:54:02]ProducePacketName [10:54:02]name=ofd_packets/00028643 [10:54:02]OFD Sender: To server: pG, [10:54:02]CommunicateWithHost lk.salyk.kg:30040 [10:54:02]ConnectInit lk.salyk.kg [10:54:02]written 0, free lines is 4095 [10:54:02]Connected sock=7 [10:54:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 54 62 04 01 DD 61 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BA EA 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 6C A3 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C A3 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 B4 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C A3 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 D0 12 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E3 6F 00 00 35 04 06 00 42 E5 84 F3 17 AC B8 E7 42 50 00 F5 E9 89 [10:54:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 39 E8 47 00 B0 BC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E3 6F 00 00 F4 03 04 00 7A BD 18 66 B6 04 01 00 00 73 D2 F6 D9 9C F9 D3 73 [10:54:02]CommunicateWithHost err = 0 [10:54:02]CheckOFDResponse [10:54:02]1017 (14) - 77093643461234 [10:54:02]1041 (16) - 0000000000963154 [10:54:02]1040 (4) - 28643 [10:54:02]1012 (4) - 12.04.2024 04:50 [10:54:02]1206 (1) - 0 [10:54:02]OFD Sender: Remove packet 28643 [10:54:02]ProducePacketName [10:54:02]name=ofd_packets/00028643 [10:54:02]NVStorageDeleteData [10:54:02]Write to MH i2c: 01 00 00 C9 73 3C [10:54:02]Write i2c OK [10:54:02]MH_I2C_Read... [10:54:02]Read from MH i2c: 01 [10:54:02]MH_I2C_Read... [10:54:02]Read from MH i2c: 01 07 00 [10:54:02]MH_I2C_Read... [10:54:02]Read from MH i2c: 01 07 00 C9 73 00 00 00 00 00 E2 0C 31 [10:54:02]RasterBufferAndPrint [10:54:02]line [10:54:02]line [10:54:02]line [10:54:02]line [10:54:02]line [10:54:02]written 0, free lines is 3304 [10:54:02]MH_Cut [10:54:02]Write to MH i2c: D1 01 00 D0 73 01 15 [10:54:02]Write i2c OK [10:54:02]MH_I2C_Read... [10:54:02]Read from MH i2c: D1 [10:54:02]MH_I2C_Read... [10:54:02]Read from MH i2c: D1 01 00 [10:54:02]MH_I2C_Read... [10:54:02]Read from MH i2c: D1 01 00 D0 73 00 14 [10:54:02]Write to MH i2c: 01 00 00 D1 73 44 [10:54:02]Write i2c OK [10:54:02]MH_I2C_Read... [10:54:03]OFD Sender: No OFD packet to send [10:54:03]*** Cut start [10:54:03]*** Partial cut [10:54:03]*** CUTSNS_PIN = 1 [10:54:03]*** CUTSNS_PIN = 0 [10:54:03]*** Brake cut motor [10:54:04]Read from MH i2c: 01 [10:54:04]MH_I2C_Read... [10:54:04]*** Stop cut motor [10:54:04]*** Cut end [10:54:04]Read from MH i2c: 01 07 00 [10:54:04]MH_I2C_Read... [10:54:04]Read from MH i2c: 01 07 00 D1 73 00 00 00 00 00 FF 0F 59 [10:54:04]process_action close_receipt done [10:54:04]requested_data is exist [10:54:04]produce_requested_data [10:54:04]requested_item fm.sn is exist - process it [10:54:04]wFMCommunicate request_size=4 [10:54:04]MH_SAM_APDU [10:54:04]CAPDU: 80 11 00 00 [10:54:04]Write to MH i2c: E2 08 00 D2 73 80 11 00 00 00 00 00 00 BF [10:54:04]Write i2c OK [10:54:04]MH_I2C_Read... [10:54:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:54:04]Read from MH i2c: E2 [10:54:04]MH_I2C_Read... [10:54:04]Read from MH i2c: E2 17 00 [10:54:04]MH_I2C_Read... [10:54:04]Read from MH i2c: E2 17 00 D2 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 0E [10:54:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:54:04]wFMCommunicate OK [10:54:04]requested_item fd.num is exist - process it [10:54:04]SAM_PROTO_GetFieldsCounters [10:54:04]wFMCommunicate request_size=4 [10:54:04]MH_SAM_APDU [10:54:04]CAPDU: 80 13 00 00 [10:54:04]Write to MH i2c: E2 08 00 D3 73 80 13 00 00 00 00 00 00 C2 [10:54:04]Write i2c OK [10:54:04]MH_I2C_Read... [10:54:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:54:04]Read from MH i2c: E2 [10:54:04]MH_I2C_Read... [10:54:04]Read from MH i2c: E2 62 00 [10:54:04]MH_I2C_Read... [10:54:04]Read from MH i2c: E2 62 00 D3 73 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E3 6F 00 00 0E 04 04 00 71 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 D7 [10:54:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E3 6F 00 00 0E 04 04 00 71 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 [10:54:04]wFMCommunicate OK [10:54:04]SAM_PROTO_GetFieldsCounters done [10:54:04]requested_item shift.num is exist - process it [10:54:04]requested_item shift.opened is exist - process it [10:54:04]req_shift_opened [10:54:04]FM_GetShiftState [10:54:04]SAM_PROTO_GetShiftState [10:54:04]wFMCommunicate request_size=4 [10:54:04]MH_SAM_APDU [10:54:04]CAPDU: 80 13 01 00 [10:54:04]Write to MH i2c: E2 08 00 D4 73 80 13 01 00 00 00 00 00 C4 [10:54:04]Write i2c OK [10:54:04]MH_I2C_Read... [10:54:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:54:04]Read from MH i2c: E2 [10:54:04]MH_I2C_Read... [10:54:04]Read from MH i2c: E2 0E 00 [10:54:04]MH_I2C_Read... [10:54:04]Read from MH i2c: E2 0E 00 D4 73 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 D5 [10:54:04]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [10:54:04]wFMCommunicate OK [10:54:04]SAM_PROTO_GetShiftState done [10:54:04]FM_GetShiftState done [10:54:04]req_shift_opened done [10:54:04]requested_item shift.open_date is exist - process it [10:54:04]req_shift_open_date [10:54:04]req_shift_open_date done [10:54:04]produce_requested_data done [10:54:04]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28643,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [10:54:04]process_action_free close_receipt [10:54:04]json_value_free [10:54:04]json_value_free done [10:54:04]process_json_proto returns [10:54:04]Send response to host [10:54:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28643,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [10:54:04]free response buf [10:54:04]execute_script done [10:54:04]execute_script returns [10:54:04]free content buf [10:54:04]Sock 5.Close socket [10:54:04]Sock 5.Thread stoped [10:54:08]OFD Sender: No OFD packet to send [10:54:13]OFD Sender: No OFD packet to send [10:54:18]OFD Sender: No OFD packet to send [10:54:21]accept exits with 6 [10:54:21]New connection [10:54:21]New thread 3066641764 created [10:54:21]Thread 3066498404 joined [10:54:21]Waiting for new connection... [10:54:21] Sock 6.Parse request [10:54:21]Sock 6.Check first char [10:54:21]Sock 6.First char is OK [10:54:21]request: POST /json_proto HTTP/1.0 [10:54:21]Method: POST [10:54:21]URL: /json_proto [10:54:21]Method is POST - this is cgi request [10:54:21]url: /json_proto [10:54:21]query_string will be loaded in cgi processing [10:54:21]execute_cgi json_proto POST (null) [10:54:21]execute_cgi path=json_proto method=POST [10:54:21]POST find Content-Length [10:54:21]Host: 172.17.33.3:8080 [10:54:21]Content-Length: 679 [10:54:21]Content-Type: application/json [10:54:21] [10:54:21]POST finish read [10:54:21]Found Content-Length = 679 [10:54:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346968", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 60.090, "sum" : 4350.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4350.00, "total" : 4350.00, "payments": [ { "type": 0, "sum" : 4350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:54:21]execute_script... [10:54: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)346968", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 60.090, "sum" : 4350.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4350.00, "total" : 4350.00, "payments": [ { "type": 0, "sum" : 4350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:54:21]POST & json_proto [10:54:21]process_json_proto [10:54:21]json parsed OK: [10:54:21]protocol is kg_v1.0 [10:54:21]action value=close_receipt [10:54:21]process_action close_receipt [10:54:21]cmd_close_receipt [10:54:21]MH_GetDate [10:54:21]Write to MH i2c: F0 00 00 D5 73 37 [10:54:21]Write i2c OK [10:54:21]MH_I2C_Read... [10:54:21]Read from MH i2c: F0 [10:54:21]MH_I2C_Read... [10:54:21]Read from MH i2c: F0 09 00 [10:54:21]MH_I2C_Read... [10:54:21]Read from MH i2c: F0 09 00 D5 73 00 E5 12 19 66 23 5B 8F 65 28 [10:54:21]GetLastDocTimeStamp 1712919248 [10:54:21]current date 1712919269 [10:54:21]FM_GetShiftState [10:54:21]SAM_PROTO_GetShiftState [10:54:21]wFMCommunicate request_size=4 [10:54:21]MH_SAM_APDU [10:54:21]CAPDU: 80 13 01 00 [10:54:21]Write to MH i2c: E2 08 00 D6 73 80 13 01 00 00 00 00 00 C6 [10:54:21]Write i2c OK [10:54:21]MH_I2C_Read... [10:54:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:54:21]Read from MH i2c: E2 [10:54:21]MH_I2C_Read... [10:54:21]Read from MH i2c: E2 0E 00 [10:54:21]MH_I2C_Read... [10:54:21]Read from MH i2c: E2 0E 00 D6 73 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 D7 [10:54:21]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [10:54:21]wFMCommunicate OK [10:54:21]SAM_PROTO_GetShiftState done [10:54:21]FM_GetShiftState done [10:54:21]opened in 1712881416 [10:54:21]opened+sec_in_day 1712967816 [10:54:21]quantity*price = 435051 [10:54:21]sum+1 = 435053 [10:54:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 4350.00 Внесено: 4350.00 СДАЧА: 0.00 НСП 1% : 38.50 НДС 12% : 462.00 Наличными: 4350.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 93 12.04.2024 10:54 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28644 ФПД: 79242551738366 1/tax-web-control/client/api/v1/ticket?date=20240412T105429&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28644&fm=79242551738366&tin=02508201610067®Number=0000138879044617&sum=435000 [10:54:22]StoreToDocumentArchive [10:54:22]shift 113 fd 28644 [10:54:22]save to /storage/0113/doc_00028644 [10:54:22]save last doc name /storage/0113/doc_00028644 to /storage/kkm_last_doc_name [10:54:22]save OK [10:54:22]Clear old archive folders... [10:54:22]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:54:22]tlvbuf is 01ACCAE0 [10:54:22]SAM_PROTO_ClearQueue [10:54:22]wFMCommunicate request_size=4 [10:54:22]MH_SAM_APDU [10:54:22]CAPDU: 80 09 00 00 [10:54:22]Write to MH i2c: E2 08 00 E3 73 80 09 00 00 00 00 00 00 C8 [10:54:22]Write i2c OK [10:54:22]MH_I2C_Read... [10:54:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:54:22]Read from MH i2c: E2 [10:54:22]MH_I2C_Read... [10:54:22]Read from MH i2c: E2 03 00 [10:54:22]MH_I2C_Read... [10:54:22]Read from MH i2c: E2 03 00 E3 73 00 90 00 CA [10:54:22]RAPDU: 90 00 [10:54:22]wFMCommunicate OK [10:54:22]SAM_PROTO_ClearQueue done [10:54:22]KKMCreateOFDPacket [10:54:22]OFDProtocolAddRootSTLVToBuf [10:54:22]FM_MakeSignedData [10:54:22]FM_MakeSignedData [10:54:22]SAM_PROTO_SignData [10:54:22]wFMCommunicate request_size=4 [10:54:22]MH_SAM_APDU [10:54:22]CAPDU: 80 0D 01 02 [10:54:22]Write to MH i2c: E2 08 00 E4 73 80 0D 01 02 00 00 00 00 D0 [10:54:22]Write i2c OK [10:54:22]MH_I2C_Read... [10:54:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:54:22]Read from MH i2c: E2 [10:54:22]MH_I2C_Read... [10:54:22]Read from MH i2c: E2 03 00 [10:54:22]MH_I2C_Read... [10:54:22]Read from MH i2c: E2 03 00 E4 73 00 90 00 CB [10:54:22]RAPDU: 90 00 [10:54:22]wFMCommunicate OK [10:54:22]wFMCommunicate request_size=255 [10:54:22]MH_SAM_APDU [10:54: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 35 FF 03 08 00 03 BA EA 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 6C A3 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 A3 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 B4 00 00 00 00 07 04 06 00 38 A3 06 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 E5 12 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E4 6F 00 00 35 04 06 00 48 12 18 25 [10:54:22]Write to MH i2c: E2 02 01 E5 73 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 35 FF 03 08 00 03 BA EA 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 6C A3 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 A3 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 B4 00 00 00 00 07 04 06 00 38 A3 06 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 E5 12 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E4 6F 00 00 35 04 06 00 48 12 18 25 00 00 9C [10:54:22]Write i2c OK [10:54:22]MH_I2C_Read... [10:54:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:54:22]Read from MH i2c: E2 [10:54:22]MH_I2C_Read... [10:54:22]Read from MH i2c: E2 03 00 [10:54:22]MH_I2C_Read... [10:54:22]Read from MH i2c: E2 03 00 E5 73 00 90 00 CC [10:54:22]RAPDU: 90 00 [10:54:22]wFMCommunicate OK [10:54:22]wFMCommunicate request_size=7 [10:54:22]MH_SAM_APDU [10:54:22]CAPDU: 80 0D 02 02 02 BF FE [10:54:22]Write to MH i2c: E2 0A 00 E6 73 80 0D 02 02 02 00 BF FE 00 00 94 [10:54:22]Write i2c OK [10:54:22]MH_I2C_Read... [10:54:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:54:22]Read from MH i2c: E2 [10:54:22]MH_I2C_Read... [10:54:22]Read from MH i2c: E2 03 00 [10:54:22]MH_I2C_Read... [10:54:22]Read from MH i2c: E2 03 00 E6 73 00 90 00 CD [10:54:22]RAPDU: 90 00 [10:54:22]wFMCommunicate OK [10:54:22]wFMCommunicate request_size=4 [10:54:22]MH_SAM_APDU [10:54:22]CAPDU: 80 0D 03 02 [10:54:22]Write to MH i2c: E2 08 00 E7 73 80 0D 03 02 00 00 00 00 D5 [10:54:22]Write i2c OK [10:54:22]MH_I2C_Read... [10:54:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:54:22]Read from MH i2c: E2 [10:54:22]MH_I2C_Read... [10:54:22]Read from MH i2c: E2 0B 00 [10:54:22]MH_I2C_Read... [10:54:22]Read from MH i2c: E2 0B 00 E7 73 00 68 B4 DB 17 D5 3C 36 13 90 00 3E [10:54:22]RAPDU: 68 B4 DB 17 D5 3C 36 13 90 00 [10:54:22]wFMCommunicate OK [10:54:22]SAM_PROTO_SignData done [10:54:22]FM_MakeSignedData done [10:54:22]CreateOFDProtocolMessage [10:54:22]wFMCommunicate request_size=4 [10:54:22]MH_SAM_APDU [10:54:22]CAPDU: 80 11 00 00 [10:54:22]Write to MH i2c: E2 08 00 E8 73 80 11 00 00 00 00 00 00 D5 [10:54:22]Write i2c OK [10:54:22]MH_I2C_Read... [10:54:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:54:22]Read from MH i2c: E2 [10:54:22]MH_I2C_Read... [10:54:22]Read from MH i2c: E2 17 00 [10:54:22]MH_I2C_Read... [10:54:22]Read from MH i2c: E2 17 00 E8 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 24 [10:54:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:54:22]wFMCommunicate OK [10:54:22]CreateOFDProtocolMessage done [10:54:22]OFDSenderStorePacket 28644 [10:54:22]StoreOFDPacket docnum=28644 [10:54:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 55 B1 04 01 BA 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 35 FF 03 08 00 03 BA EA 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 6C A3 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 A3 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 B4 00 00 00 00 07 04 06 00 38 A3 06 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 E5 12 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E4 6F 00 00 35 04 06 00 48 12 18 25 BF FE 68 B4 DB 17 D5 3C 36 13 [10:54:22]CheckFolder [10:54:22]dirname=/storage/ofd_packets [10:54:22]CheckFolder done [10:54:22]ProducePacketName [10:54:22]name=ofd_packets/00028644 [10:54:22]NVStorageSaveData ofd_packets/00028644 [10:54:22]File name is /storage/ofd_packets/00028644 [10:54:22]Write 298 bytes [10:54:22]NVStorageSaveData done [10:54:22]OFDSenderStorePacket done [10:54:22]KKMCreateOFDPacket done [10:54:22]NVStorageSaveData kkm_last_timestamp [10:54:22]File name is /storage/kkm_last_timestamp [10:54:22]Write 4 bytes [10:54:22]NVStorageSaveData done [10:54:22]ExternCall_PrintAddStr [10:54:22]wPrintStart [10:54:22]Write to MH i2c: 01 00 00 E9 73 5C [10:54:22]Write i2c OK [10:54:22]MH_I2C_Read... [10:54:22]Read from MH i2c: 01 [10:54:22]MH_I2C_Read... [10:54:22]Read from MH i2c: 01 07 00 [10:54:22]MH_I2C_Read... [10:54:22]Read from MH i2c: 01 07 00 E9 73 00 00 00 00 00 FF 0F 71 [10:54:22]RasterBufferAndPrint [10:54:22]line Счет N : (1)346968 [10:54:22]line ИНН: 02508201610067 [10:54:22]line Контрольно-Кассовый Чек [10:54:22]line ПРОДАЖА [10:54:22]line ТРК (МРК, ГНК) : 21 [10:54:22]line Товар: 2710194210 [10:54:22]line ДТ-К-5 [10:54:22]line 60.090 * 72.40 [10:54:22]line = 4350.52 [10:54:22]line НДС 12% НСП 1% [10:54:22]line > о реализуемом товаре [10:54:22]line ОКРУГЛЕНИЕ: -0.52 [10:54:22]line ИТОГО: 4350.00 [10:54:22]line Внесено: 4350.00 [10:54:22]line СДАЧА: 0.00 [10:54:22]line НСП 1% : 38.50 [10:54:22]line НДС 12% : 462.00 [10:54:22]line Наличными: 4350.00 [10:54:22]line Безнал.: 0.00 [10:54:22]line Место: АЗС № 108 "Партнер Нефть" [10:54:22]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [10:54:22]line СНО: Общий режим [10:54:22]line Чек 93 12.04.2024 10:54 [10:54:22]line Смена: 113 ФФД: 1.0 [10:54:22]line ЗНМ: 0300000027 [10:54:22]line РНМ: 0000138879044617 [10:54:22]line Версия ККМ: 001 [10:54:22]line ФМ: 0000000000963154 [10:54:22]line ФД: 28644 [10:54:22]line ФПД: 79242551738366 [10:54:23]line 1/tax-web-control/client/api/v1/ticket?date=20240412T105429&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28644&fm=79242551738366&tin=02508201610067®Number=0000138879044617&sum=435000 [10:54:23]OFD Sender: Processing packet 28644 [packets to send 8, broken 7] [10:54:23]ProducePacketName [10:54:23]name=ofd_packets/00028644 [10:54:23]OFD Sender: To server: pG, [10:54:23]CommunicateWithHost lk.salyk.kg:30040 [10:54:23]ConnectInit lk.salyk.kg [10:54:23]written 0, free lines is 4095 [10:54:23]Connected sock=7 [10:54:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 55 B1 04 01 BA 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 35 FF 03 08 00 03 BA EA 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 6C A3 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 A3 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 B4 00 00 00 00 07 04 06 00 38 A3 06 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 E5 12 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E4 6F 00 00 35 04 06 00 48 12 18 25 BF FE 68 B4 DB 17 D5 3C 36 13 [10:54:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 D0 2A 47 00 2B D2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E4 6F 00 00 F4 03 04 00 8F BD 18 66 B6 04 01 00 00 5E 9C 6F 4E 4F DB A6 CE [10:54:23]CommunicateWithHost err = 0 [10:54:23]CheckOFDResponse [10:54:23]1017 (14) - 77093643461234 [10:54:23]1041 (16) - 0000000000963154 [10:54:23]1040 (4) - 28644 [10:54:23]1012 (4) - 12.04.2024 04:50 [10:54:23]1206 (1) - 0 [10:54:23]OFD Sender: Remove packet 28644 [10:54:23]ProducePacketName [10:54:23]name=ofd_packets/00028644 [10:54:23]NVStorageDeleteData [10:54:23]Write to MH i2c: 01 00 00 13 74 87 [10:54:23]Write i2c OK [10:54:23]MH_I2C_Read... [10:54:23]Read from MH i2c: 01 [10:54:23]MH_I2C_Read... [10:54:23]Read from MH i2c: 01 07 00 [10:54:23]MH_I2C_Read... [10:54:23]Read from MH i2c: 01 07 00 13 74 00 00 00 00 00 C4 0C 5E [10:54:23]RasterBufferAndPrint [10:54:23]line [10:54:23]line [10:54:23]line [10:54:23]line [10:54:23]line [10:54:23]written 0, free lines is 3274 [10:54:23]MH_Cut [10:54:23]Write to MH i2c: D1 01 00 1A 74 01 60 [10:54:23]Write i2c OK [10:54:23]MH_I2C_Read... [10:54:23]Read from MH i2c: D1 [10:54:23]MH_I2C_Read... [10:54:23]Read from MH i2c: D1 01 00 [10:54:23]MH_I2C_Read... [10:54:23]Read from MH i2c: D1 01 00 1A 74 00 5F [10:54:23]Write to MH i2c: 01 00 00 1B 74 8F [10:54:23]Write i2c OK [10:54:23]MH_I2C_Read... [10:54:24]OFD Sender: No OFD packet to send [10:54:24]*** Cut start [10:54:24]*** Partial cut [10:54:24]*** CUTSNS_PIN = 1 [10:54:24]*** CUTSNS_PIN = 0 [10:54:24]*** Brake cut motor [10:54:25]Read from MH i2c: 01 [10:54:25]MH_I2C_Read... [10:54:25]*** Stop cut motor [10:54:25]*** Cut end [10:54:25]Read from MH i2c: 01 07 00 [10:54:25]MH_I2C_Read... [10:54:25]Read from MH i2c: 01 07 00 1B 74 00 00 00 00 00 FF 0F A4 [10:54:25]process_action close_receipt done [10:54:25]requested_data is exist [10:54:25]produce_requested_data [10:54:25]requested_item fm.sn is exist - process it [10:54:25]wFMCommunicate request_size=4 [10:54:25]MH_SAM_APDU [10:54:25]CAPDU: 80 11 00 00 [10:54:25]Write to MH i2c: E2 08 00 1C 74 80 11 00 00 00 00 00 00 0A [10:54:25]Write i2c OK [10:54:25]MH_I2C_Read... [10:54:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:54:25]Read from MH i2c: E2 [10:54:25]MH_I2C_Read... [10:54:25]Read from MH i2c: E2 17 00 [10:54:25]MH_I2C_Read... [10:54:25]Read from MH i2c: E2 17 00 1C 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 59 [10:54:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:54:25]wFMCommunicate OK [10:54:25]requested_item fd.num is exist - process it [10:54:25]SAM_PROTO_GetFieldsCounters [10:54:25]wFMCommunicate request_size=4 [10:54:25]MH_SAM_APDU [10:54:25]CAPDU: 80 13 00 00 [10:54:25]Write to MH i2c: E2 08 00 1D 74 80 13 00 00 00 00 00 00 0D [10:54:25]Write i2c OK [10:54:25]MH_I2C_Read... [10:54:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:54:25]Read from MH i2c: E2 [10:54:25]MH_I2C_Read... [10:54:25]Read from MH i2c: E2 62 00 [10:54:25]MH_I2C_Read... [10:54:25]Read from MH i2c: E2 62 00 1D 74 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E4 6F 00 00 0E 04 04 00 71 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 26 [10:54:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E4 6F 00 00 0E 04 04 00 71 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 [10:54:25]wFMCommunicate OK [10:54:25]SAM_PROTO_GetFieldsCounters done [10:54:25]requested_item shift.num is exist - process it [10:54:25]requested_item shift.opened is exist - process it [10:54:25]req_shift_opened [10:54:25]FM_GetShiftState [10:54:25]SAM_PROTO_GetShiftState [10:54:25]wFMCommunicate request_size=4 [10:54:25]MH_SAM_APDU [10:54:25]CAPDU: 80 13 01 00 [10:54:25]Write to MH i2c: E2 08 00 1E 74 80 13 01 00 00 00 00 00 0F [10:54:25]Write i2c OK [10:54:25]MH_I2C_Read... [10:54:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:54:25]Read from MH i2c: E2 [10:54:25]MH_I2C_Read... [10:54:25]Read from MH i2c: E2 0E 00 [10:54:25]MH_I2C_Read... [10:54:25]Read from MH i2c: E2 0E 00 1E 74 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 20 [10:54:25]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [10:54:25]wFMCommunicate OK [10:54:25]SAM_PROTO_GetShiftState done [10:54:25]FM_GetShiftState done [10:54:25]req_shift_opened done [10:54:25]requested_item shift.open_date is exist - process it [10:54:25]req_shift_open_date [10:54:25]req_shift_open_date done [10:54:25]produce_requested_data done [10:54:25]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28644,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [10:54:25]process_action_free close_receipt [10:54:25]json_value_free [10:54:25]json_value_free done [10:54:25]process_json_proto returns [10:54:25]Send response to host [10:54:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28644,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [10:54:25]free response buf [10:54:25]execute_script done [10:54:25]execute_script returns [10:54:25]free content buf [10:54:25]Sock 6.Close socket [10:54:25]Sock 6.Thread stoped [10:54:28]accept exits with 5 [10:54:28]New connection [10:54:28]New thread 3066498404 created [10:54:28]Thread 3066641764 joined [10:54:28]Waiting for new connection... [10:54:28] Sock 5.Parse request [10:54:28]Sock 5.Check first char [10:54:28]Sock 5.First char is OK [10:54:28]request: POST /json_proto HTTP/1.0 [10:54:28]Method: POST [10:54:28]URL: /json_proto [10:54:28]Method is POST - this is cgi request [10:54:28]url: /json_proto [10:54:28]query_string will be loaded in cgi processing [10:54:28]execute_cgi json_proto POST (null) [10:54:28]execute_cgi path=json_proto method=POST [10:54:28]POST find Content-Length [10:54:28]Host: 172.17.33.3:8080 [10:54:28]Content-Length: 735 [10:54:28]Content-Type: application/json [10:54:28] [10:54:28]POST finish read [10:54:28]Found Content-Length = 735 [10:54:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 28644, "base_FM": "0000000000963154", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346968", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 60.090, "sum" : 4350.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4350.00, "total" : 4350.00, "payments": [ { "type": 0, "sum" : 4350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:54:28]execute_script... [10:54:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 28644, "base_FM": "0000000000963154", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346968", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 60.090, "sum" : 4350.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4350.00, "total" : 4350.00, "payments": [ { "type": 0, "sum" : 4350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:54:28]POST & json_proto [10:54:28]process_json_proto [10:54:28]json parsed OK: [10:54:28]protocol is kg_v1.0 [10:54:28]action value=close_receipt [10:54:28]process_action close_receipt [10:54:28]cmd_close_receipt [10:54:28]MH_GetDate [10:54:28]Write to MH i2c: F0 00 00 1F 74 82 [10:54:28]Write i2c OK [10:54:28]MH_I2C_Read... [10:54:28]Read from MH i2c: F0 [10:54:28]MH_I2C_Read... [10:54:28]Read from MH i2c: F0 09 00 [10:54:28]MH_I2C_Read... [10:54:28]Read from MH i2c: F0 09 00 1F 74 00 EC 12 19 66 23 5B 8F 65 7A [10:54:28]GetLastDocTimeStamp 1712919269 [10:54:28]current date 1712919276 [10:54:28]FM_GetShiftState [10:54:28]SAM_PROTO_GetShiftState [10:54:28]wFMCommunicate request_size=4 [10:54:28]MH_SAM_APDU [10:54:28]CAPDU: 80 13 01 00 [10:54:28]Write to MH i2c: E2 08 00 20 74 80 13 01 00 00 00 00 00 11 [10:54:28]Write i2c OK [10:54:28]MH_I2C_Read... [10:54:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:54:28]Read from MH i2c: E2 [10:54:28]MH_I2C_Read... [10:54:28]Read from MH i2c: E2 0E 00 [10:54:28]MH_I2C_Read... [10:54:28]Read from MH i2c: E2 0E 00 20 74 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 22 [10:54:28]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [10:54:28]wFMCommunicate OK [10:54:28]SAM_PROTO_GetShiftState done [10:54:28]FM_GetShiftState done [10:54:28]opened in 1712881416 [10:54:28]opened+sec_in_day 1712967816 [10:54:28]quantity*price = 435051 [10:54:28]sum+1 = 435053 [10:54:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 4350.00 НСП 1% : 38.50 НДС 12% : 462.00 Наличными: 4350.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 94 12.04.2024 10:54 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФД осн.: 28644 ФМ осн.: 0000000000963154 ФМ: 0000000000963154 ФД: 28645 ФПД: 257522427396226 1/tax-web-control/client/api/v1/ticket?date=20240412T105436&type=2&operation_type=1&fn_number=0000000000963154&fd_number=28645&fm=257522427396226&tin=02508201610067®Number=0000138879044617&sum=435000 [10:54:29]StoreToDocumentArchive [10:54:29]shift 113 fd 28645 [10:54:29]save to /storage/0113/doc_00028645 [10:54:29]save last doc name /storage/0113/doc_00028645 to /storage/kkm_last_doc_name [10:54:29]save OK [10:54:29]Clear old archive folders... [10:54:29]ProcessDocumentItem done err = 0, tmpTLVsize=276 [10:54:29]tlvbuf is 01AE5390 [10:54:29]SAM_PROTO_ClearQueue [10:54:29]wFMCommunicate request_size=4 [10:54:29]MH_SAM_APDU [10:54:29]CAPDU: 80 09 00 00 [10:54:29]Write to MH i2c: E2 08 00 2F 74 80 09 00 00 00 00 00 00 15 [10:54:29]Write i2c OK [10:54:29]MH_I2C_Read... [10:54:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:54:29]Read from MH i2c: E2 [10:54:29]MH_I2C_Read... [10:54:29]Read from MH i2c: E2 03 00 [10:54:29]MH_I2C_Read... [10:54:29]Read from MH i2c: E2 03 00 2F 74 00 90 00 17 [10:54:29]RAPDU: 90 00 [10:54:29]wFMCommunicate OK [10:54:29]SAM_PROTO_ClearQueue done [10:54:29]KKMCreateOFDPacket [10:54:29]OFDProtocolAddRootSTLVToBuf [10:54:29]FM_MakeSignedData [10:54:29]FM_MakeSignedData [10:54:29]SAM_PROTO_SignData [10:54:29]wFMCommunicate request_size=4 [10:54:29]MH_SAM_APDU [10:54:29]CAPDU: 80 0D 01 02 [10:54:29]Write to MH i2c: E2 08 00 30 74 80 0D 01 02 00 00 00 00 1D [10:54:29]Write i2c OK [10:54:29]MH_I2C_Read... [10:54:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:54:29]Read from MH i2c: E2 [10:54:29]MH_I2C_Read... [10:54:29]Read from MH i2c: E2 03 00 [10:54:29]MH_I2C_Read... [10:54:29]Read from MH i2c: E2 03 00 30 74 00 90 00 18 [10:54:29]RAPDU: 90 00 [10:54:29]wFMCommunicate OK [10:54:29]wFMCommunicate request_size=255 [10:54:29]MH_SAM_APDU [10:54:29]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BA EA 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 6C A3 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 A3 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 B4 00 00 00 00 07 04 06 00 38 A3 06 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 EC 12 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 27 04 04 00 E4 6F 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 11 04 10 00 30 30 30 30 [10:54:29]Write to MH i2c: E2 02 01 31 74 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BA EA 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 6C A3 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 A3 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 B4 00 00 00 00 07 04 06 00 38 A3 06 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 EC 12 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 27 04 04 00 E4 6F 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 11 04 10 00 30 30 30 30 00 00 4C [10:54:29]Write i2c OK [10:54:29]MH_I2C_Read... [10:54:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:54:30]Read from MH i2c: E2 [10:54:30]MH_I2C_Read... [10:54:30]Read from MH i2c: E2 03 00 [10:54:30]MH_I2C_Read... [10:54:30]Read from MH i2c: E2 03 00 31 74 00 90 00 19 [10:54:30]RAPDU: 90 00 [10:54:30]wFMCommunicate OK [10:54:30]wFMCommunicate request_size=35 [10:54:30]MH_SAM_APDU [10:54:30]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E5 6F 00 00 35 04 06 00 EA 37 1C CE 80 82 [10:54:30]Write to MH i2c: E2 26 00 32 74 80 0D 02 02 1E 00 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E5 6F 00 00 35 04 06 00 EA 37 1C CE 80 82 00 00 70 [10:54:30]Write i2c OK [10:54:30]MH_I2C_Read... [10:54:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:54:30]Read from MH i2c: E2 [10:54:30]MH_I2C_Read... [10:54:30]Read from MH i2c: E2 03 00 [10:54:30]MH_I2C_Read... [10:54:30]Read from MH i2c: E2 03 00 32 74 00 90 00 1A [10:54:30]RAPDU: 90 00 [10:54:30]wFMCommunicate OK [10:54:30]wFMCommunicate request_size=4 [10:54:30]MH_SAM_APDU [10:54:30]CAPDU: 80 0D 03 02 [10:54:30]Write to MH i2c: E2 08 00 33 74 80 0D 03 02 00 00 00 00 22 [10:54:30]Write i2c OK [10:54:30]MH_I2C_Read... [10:54:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:54:30]Read from MH i2c: E2 [10:54:30]MH_I2C_Read... [10:54:30]Read from MH i2c: E2 0B 00 [10:54:30]MH_I2C_Read... [10:54:30]Read from MH i2c: E2 0B 00 33 74 00 4E 65 EB CC 31 6A D4 E6 90 00 E2 [10:54:30]RAPDU: 4E 65 EB CC 31 6A D4 E6 90 00 [10:54:30]wFMCommunicate OK [10:54:30]SAM_PROTO_SignData done [10:54:30]FM_MakeSignedData done [10:54:30]CreateOFDProtocolMessage [10:54:30]wFMCommunicate request_size=4 [10:54:30]MH_SAM_APDU [10:54:30]CAPDU: 80 11 00 00 [10:54:30]Write to MH i2c: E2 08 00 34 74 80 11 00 00 00 00 00 00 22 [10:54:30]Write i2c OK [10:54:30]MH_I2C_Read... [10:54:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:54:30]Read from MH i2c: E2 [10:54:30]MH_I2C_Read... [10:54:30]Read from MH i2c: E2 17 00 [10:54:30]MH_I2C_Read... [10:54:30]Read from MH i2c: E2 17 00 34 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 71 [10:54:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:54:30]wFMCommunicate OK [10:54:30]CreateOFDProtocolMessage done [10:54:30]OFDSenderStorePacket 28645 [10:54:30]StoreOFDPacket docnum=28645 [10:54:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 28 01 00 00 6C 8B 20 01 7E 7B 5A 03 01 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BA EA 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 6C A3 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 A3 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 B4 00 00 00 00 07 04 06 00 38 A3 06 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 EC 12 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 27 04 04 00 E4 6F 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E5 6F 00 00 35 04 06 00 EA 37 1C CE 80 82 4E 65 EB CC 31 6A D4 E6 [10:54:30]CheckFolder [10:54:30]dirname=/storage/ofd_packets [10:54:30]CheckFolder done [10:54:30]ProducePacketName [10:54:30]name=ofd_packets/00028645 [10:54:30]NVStorageSaveData ofd_packets/00028645 [10:54:30]File name is /storage/ofd_packets/00028645 [10:54:30]Write 326 bytes [10:54:30]NVStorageSaveData done [10:54:30]OFDSenderStorePacket done [10:54:30]KKMCreateOFDPacket done [10:54:30]NVStorageSaveData kkm_last_timestamp [10:54:30]File name is /storage/kkm_last_timestamp [10:54:30]Write 4 bytes [10:54:30]NVStorageSaveData done [10:54:30]ExternCall_PrintAddStr [10:54:30]wPrintStart [10:54:30]Write to MH i2c: 01 00 00 35 74 A9 [10:54:30]Write i2c OK [10:54:30]MH_I2C_Read... [10:54:30]Read from MH i2c: 01 [10:54:30]MH_I2C_Read... [10:54:30]Read from MH i2c: 01 07 00 [10:54:30]MH_I2C_Read... [10:54:30]Read from MH i2c: 01 07 00 35 74 00 00 00 00 00 FF 0F BE [10:54:30]RasterBufferAndPrint [10:54:30]line Счет N : (1)346968 [10:54:30]line ИНН: 02508201610067 [10:54:30]line Контрольно-Кассовый Чек [10:54:30]line ВОЗВРАТ ПРОДАЖИ [10:54:30]line ТРК (МРК, ГНК) : 21 [10:54:30]line Товар: 2710194210 [10:54:30]line ДТ-К-5 [10:54:30]line 60.090 * 72.40 [10:54:30]line = 4350.52 [10:54:30]line НДС 12% НСП 1% [10:54:30]line > о реализуемом товаре [10:54:30]line ОКРУГЛЕНИЕ: -0.52 [10:54:30]line ИТОГО: 4350.00 [10:54:30]line НСП 1% : 38.50 [10:54:30]line НДС 12% : 462.00 [10:54:30]line Наличными: 4350.00 [10:54:30]line Безнал.: 0.00 [10:54:30]line Место: АЗС № 108 "Партнер Нефть" [10:54:30]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [10:54:30]line СНО: Общий режим [10:54:30]line Чек 94 12.04.2024 10:54 [10:54:30]line Смена: 113 ФФД: 1.0 [10:54:30]line ЗНМ: 0300000027 [10:54:30]line РНМ: 0000138879044617 [10:54:30]line Версия ККМ: 001 [10:54:30]line ФД осн.: 28644 [10:54:30]line ФМ осн.: 0000000000963154 [10:54:30]line ФМ: 0000000000963154 [10:54:30]line ФД: 28645 [10:54:30]line ФПД: 257522427396226 [10:54:30]line 1/tax-web-control/client/api/v1/ticket?date=20240412T105436&type=2&operation_type=1&fn_number=0000000000963154&fd_number=28645&fm=257522427396226&tin=02508201610067®Number=0000138879044617&sum=435000 [10:54:30]written 0, free lines is 4095 [10:54:30]OFD Sender: Processing packet 28645 [packets to send 8, broken 7] [10:54:30]ProducePacketName [10:54:30]name=ofd_packets/00028645 [10:54:30]OFD Sender: To server: pG, [10:54:30]CommunicateWithHost lk.salyk.kg:30040 [10:54:30]ConnectInit lk.salyk.kg [10:54:30]Connected sock=9 [10:54:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 28 01 00 00 6C 8B 20 01 7E 7B 5A 03 01 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BA EA 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 6C A3 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 A3 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 B4 00 00 00 00 07 04 06 00 38 A3 06 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 EC 12 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 27 04 04 00 E4 6F 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E5 6F 00 00 35 04 06 00 EA 37 1C CE 80 82 4E 65 EB CC 31 6A D4 E6 [10:54:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 49 3E 47 00 86 B2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E5 6F 00 00 F4 03 04 00 96 BD 18 66 B6 04 01 00 00 B3 FE 03 55 DF EA 9F 36 [10:54:30]CommunicateWithHost err = 0 [10:54:30]CheckOFDResponse [10:54:30]1017 (14) - 77093643461234 [10:54:30]1041 (16) - 0000000000963154 [10:54:30]1040 (4) - 28645 [10:54:30]1012 (4) - 12.04.2024 04:50 [10:54:30]1206 (1) - 0 [10:54:30]OFD Sender: Remove packet 28645 [10:54:30]ProducePacketName [10:54:30]name=ofd_packets/00028645 [10:54:30]NVStorageDeleteData [10:54:30]Write to MH i2c: 01 00 00 5F 74 D3 [10:54:30]Write i2c OK [10:54:30]MH_I2C_Read... [10:54:30]Read from MH i2c: 01 [10:54:30]MH_I2C_Read... [10:54:30]Read from MH i2c: 01 07 00 [10:54:30]MH_I2C_Read... [10:54:30]Read from MH i2c: 01 07 00 5F 74 00 00 00 00 00 D6 0C BC [10:54:30]RasterBufferAndPrint [10:54:30]line [10:54:30]line [10:54:30]line [10:54:30]line [10:54:30]line [10:54:30]written 0, free lines is 3297 [10:54:30]MH_Cut [10:54:30]Write to MH i2c: D1 01 00 66 74 01 AC [10:54:30]Write i2c OK [10:54:30]MH_I2C_Read... [10:54:30]Read from MH i2c: D1 [10:54:30]MH_I2C_Read... [10:54:30]Read from MH i2c: D1 01 00 [10:54:30]MH_I2C_Read... [10:54:30]Read from MH i2c: D1 01 00 66 74 00 AB [10:54:30]Write to MH i2c: 01 00 00 67 74 DB [10:54:30]Write i2c OK [10:54:30]MH_I2C_Read... [10:54:31]OFD Sender: No OFD packet to send [10:54:31]*** Cut start [10:54:31]*** Partial cut [10:54:31]*** CUTSNS_PIN = 1 [10:54:31]*** CUTSNS_PIN = 0 [10:54:31]*** Brake cut motor [10:54:32]Read from MH i2c: 01 [10:54:32]MH_I2C_Read... [10:54:32]*** Stop cut motor [10:54:32]*** Cut end [10:54:32]Read from MH i2c: 01 07 00 [10:54:32]MH_I2C_Read... [10:54:32]Read from MH i2c: 01 07 00 67 74 00 00 00 00 00 FF 0F F0 [10:54:32]process_action close_receipt done [10:54:32]requested_data is exist [10:54:32]produce_requested_data [10:54:32]requested_item fm.sn is exist - process it [10:54:32]wFMCommunicate request_size=4 [10:54:32]MH_SAM_APDU [10:54:32]CAPDU: 80 11 00 00 [10:54:32]Write to MH i2c: E2 08 00 68 74 80 11 00 00 00 00 00 00 56 [10:54:32]Write i2c OK [10:54:32]MH_I2C_Read... [10:54:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:54:32]Read from MH i2c: E2 [10:54:32]MH_I2C_Read... [10:54:32]Read from MH i2c: E2 17 00 [10:54:32]MH_I2C_Read... [10:54:32]Read from MH i2c: E2 17 00 68 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 A5 [10:54:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:54:32]wFMCommunicate OK [10:54:32]requested_item fd.num is exist - process it [10:54:32]SAM_PROTO_GetFieldsCounters [10:54:32]wFMCommunicate request_size=4 [10:54:32]MH_SAM_APDU [10:54:32]CAPDU: 80 13 00 00 [10:54:32]Write to MH i2c: E2 08 00 69 74 80 13 00 00 00 00 00 00 59 [10:54:32]Write i2c OK [10:54:32]MH_I2C_Read... [10:54:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:54:32]Read from MH i2c: E2 [10:54:32]MH_I2C_Read... [10:54:32]Read from MH i2c: E2 62 00 [10:54:32]MH_I2C_Read... [10:54:32]Read from MH i2c: E2 62 00 69 74 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E5 6F 00 00 0E 04 04 00 71 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 76 [10:54:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E5 6F 00 00 0E 04 04 00 71 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 [10:54:32]wFMCommunicate OK [10:54:32]SAM_PROTO_GetFieldsCounters done [10:54:32]requested_item shift.num is exist - process it [10:54:32]requested_item shift.opened is exist - process it [10:54:32]req_shift_opened [10:54:32]FM_GetShiftState [10:54:32]SAM_PROTO_GetShiftState [10:54:32]wFMCommunicate request_size=4 [10:54:32]MH_SAM_APDU [10:54:32]CAPDU: 80 13 01 00 [10:54:32]Write to MH i2c: E2 08 00 6A 74 80 13 01 00 00 00 00 00 5B [10:54:32]Write i2c OK [10:54:32]MH_I2C_Read... [10:54:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:54:32]Read from MH i2c: E2 [10:54:32]MH_I2C_Read... [10:54:32]Read from MH i2c: E2 0E 00 [10:54:32]MH_I2C_Read... [10:54:32]Read from MH i2c: E2 0E 00 6A 74 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 6C [10:54:32]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [10:54:32]wFMCommunicate OK [10:54:32]SAM_PROTO_GetShiftState done [10:54:32]FM_GetShiftState done [10:54:32]req_shift_opened done [10:54:32]requested_item shift.open_date is exist - process it [10:54:32]req_shift_open_date [10:54:32]req_shift_open_date done [10:54:32]produce_requested_data done [10:54:32]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28645,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [10:54:32]process_action_free close_receipt [10:54:32]json_value_free [10:54:32]json_value_free done [10:54:32]process_json_proto returns [10:54:32]Send response to host [10:54:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28645,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [10:54:32]free response buf [10:54:32]execute_script done [10:54:32]execute_script returns [10:54:32]free content buf [10:54:32]Sock 5.Close socket [10:54:32]Sock 5.Thread stoped [10:54:36]OFD Sender: No OFD packet to send [10:54:41]OFD Sender: No OFD packet to send [10:54:46]OFD Sender: No OFD packet to send [10:54:51]OFD Sender: No OFD packet to send [10:54:56]OFD Sender: No OFD packet to send [10:55:01]OFD Sender: No OFD packet to send [10:55:06]OFD Sender: No OFD packet to send [10:55:11]OFD Sender: No OFD packet to send [10:55:16]OFD Sender: No OFD packet to send [10:55:21]OFD Sender: No OFD packet to send [10:55:26]OFD Sender: No OFD packet to send [10:55:31]OFD Sender: No OFD packet to send [10:55:36]OFD Sender: No OFD packet to send [10:55:41]OFD Sender: No OFD packet to send [10:55:46]OFD Sender: No OFD packet to send [10:55:51]OFD Sender: No OFD packet to send [10:55:56]OFD Sender: No OFD packet to send [10:56:01]OFD Sender: No OFD packet to send [10:56:06]OFD Sender: No OFD packet to send [10:56:11]OFD Sender: No OFD packet to send [10:56:16]OFD Sender: No OFD packet to send [10:56:21]OFD Sender: No OFD packet to send [10:56:26]OFD Sender: No OFD packet to send [10:56:31]OFD Sender: No OFD packet to send [10:56:36]OFD Sender: No OFD packet to send [10:56:41]OFD Sender: No OFD packet to send [10:56:46]OFD Sender: No OFD packet to send [10:56:51]OFD Sender: No OFD packet to send [10:56:56]OFD Sender: No OFD packet to send [10:57:01]OFD Sender: No OFD packet to send [10:57:06]OFD Sender: No OFD packet to send [10:57:11]OFD Sender: No OFD packet to send [10:57:16]OFD Sender: No OFD packet to send [10:57:21]OFD Sender: No OFD packet to send [10:57:26]OFD Sender: No OFD packet to send [10:57:31]OFD Sender: No OFD packet to send [10:57:36]OFD Sender: No OFD packet to send [10:57:41]OFD Sender: No OFD packet to send [10:57:46]OFD Sender: No OFD packet to send [10:57:51]OFD Sender: No OFD packet to send [10:57:56]OFD Sender: No OFD packet to send [10:58:01]OFD Sender: No OFD packet to send [10:58:06]OFD Sender: No OFD packet to send [10:58:11]OFD Sender: No OFD packet to send [10:58:16]OFD Sender: No OFD packet to send [10:58:21]OFD Sender: No OFD packet to send [10:58:26]OFD Sender: No OFD packet to send [10:58:31]OFD Sender: No OFD packet to send [10:58:36]OFD Sender: No OFD packet to send [10:58:41]OFD Sender: No OFD packet to send [10:58:46]OFD Sender: No OFD packet to send [10:58:51]OFD Sender: No OFD packet to send [10:58:56]OFD Sender: No OFD packet to send [10:59:01]OFD Sender: No OFD packet to send [10:59:06]OFD Sender: No OFD packet to send [10:59:11]OFD Sender: No OFD packet to send [10:59:16]OFD Sender: No OFD packet to send [10:59:17]accept exits with 6 [10:59:17]New connection [10:59:17]New thread 3066641764 created [10:59:17]Thread 3066498404 joined [10:59:17]Waiting for new connection... [10:59:17] Sock 6.Parse request [10:59:17]Sock 6.Check first char [10:59:17]Sock 6.First char is OK [10:59:17]request: POST /json_proto HTTP/1.0 [10:59:17]Method: POST [10:59:17]URL: /json_proto [10:59:17]Method is POST - this is cgi request [10:59:17]url: /json_proto [10:59:17]query_string will be loaded in cgi processing [10:59:17]execute_cgi json_proto POST (null) [10:59:17]execute_cgi path=json_proto method=POST [10:59:17]POST find Content-Length [10:59:17]Host: 172.17.33.3:8080 [10:59:17]Content-Length: 677 [10:59:17]Content-Type: application/json [10:59:17] [10:59:17]POST finish read [10:59:17]Found Content-Length = 677 [10:59:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346969", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 7.780, "sum" : 500.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:59:17]execute_script... [10:59:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346969", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 7.780, "sum" : 500.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:59:17]POST & json_proto [10:59:17]process_json_proto [10:59:17]json parsed OK: [10:59:17]protocol is kg_v1.0 [10:59:17]action value=close_receipt [10:59:17]process_action close_receipt [10:59:17]cmd_close_receipt [10:59:17]MH_GetDate [10:59:17]Write to MH i2c: F0 00 00 6B 74 CE [10:59:17]Write i2c OK [10:59:17]MH_I2C_Read... [10:59:17]Read from MH i2c: F0 [10:59:17]MH_I2C_Read... [10:59:17]Read from MH i2c: F0 09 00 [10:59:17]MH_I2C_Read... [10:59:17]Read from MH i2c: F0 09 00 6B 74 00 0D 14 19 66 23 5B 8F 65 E9 [10:59:17]GetLastDocTimeStamp 1712919276 [10:59:17]current date 1712919565 [10:59:17]FM_GetShiftState [10:59:17]SAM_PROTO_GetShiftState [10:59:17]wFMCommunicate request_size=4 [10:59:17]MH_SAM_APDU [10:59:17]CAPDU: 80 13 01 00 [10:59:17]Write to MH i2c: E2 08 00 6C 74 80 13 01 00 00 00 00 00 5D [10:59:17]Write i2c OK [10:59:17]MH_I2C_Read... [10:59:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:59:17]Read from MH i2c: E2 [10:59:17]MH_I2C_Read... [10:59:17]Read from MH i2c: E2 0E 00 [10:59:17]MH_I2C_Read... [10:59:17]Read from MH i2c: E2 0E 00 6C 74 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 6E [10:59:17]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [10:59:17]wFMCommunicate OK [10:59:17]SAM_PROTO_GetShiftState done [10:59:17]FM_GetShiftState done [10:59:17]opened in 1712881416 [10:59:17]opened+sec_in_day 1712967816 [10:59:17]quantity*price = 50025 [10:59:17]sum+1 = 50026 [10:59:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 95 12.04.2024 10:59 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28646 ФПД: 9667714243068 1/tax-web-control/client/api/v1/ticket?date=20240412T105925&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28646&fm=9667714243068&tin=02508201610067®Number=0000138879044617&sum=50000 [10:59:18]StoreToDocumentArchive [10:59:18]shift 113 fd 28646 [10:59:18]save to /storage/0113/doc_00028646 [10:59:18]save last doc name /storage/0113/doc_00028646 to /storage/kkm_last_doc_name [10:59:18]save OK [10:59:18]Clear old archive folders... [10:59:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:59:18]tlvbuf is 01AAC2F0 [10:59:18]SAM_PROTO_ClearQueue [10:59:18]wFMCommunicate request_size=4 [10:59:18]MH_SAM_APDU [10:59:18]CAPDU: 80 09 00 00 [10:59:18]Write to MH i2c: E2 08 00 79 74 80 09 00 00 00 00 00 00 5F [10:59:18]Write i2c OK [10:59:18]MH_I2C_Read... [10:59:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:59:18]Read from MH i2c: E2 [10:59:18]MH_I2C_Read... [10:59:18]Read from MH i2c: E2 03 00 [10:59:18]MH_I2C_Read... [10:59:18]Read from MH i2c: E2 03 00 79 74 00 90 00 61 [10:59:18]RAPDU: 90 00 [10:59:18]wFMCommunicate OK [10:59:18]SAM_PROTO_ClearQueue done [10:59:18]KKMCreateOFDPacket [10:59:18]OFDProtocolAddRootSTLVToBuf [10:59:18]FM_MakeSignedData [10:59:18]FM_MakeSignedData [10:59:18]SAM_PROTO_SignData [10:59:18]wFMCommunicate request_size=4 [10:59:18]MH_SAM_APDU [10:59:18]CAPDU: 80 0D 01 02 [10:59:18]Write to MH i2c: E2 08 00 7A 74 80 0D 01 02 00 00 00 00 67 [10:59:18]Write i2c OK [10:59:18]MH_I2C_Read... [10:59:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:59:18]Read from MH i2c: E2 [10:59:18]MH_I2C_Read... [10:59:18]Read from MH i2c: E2 03 00 [10:59:18]MH_I2C_Read... [10:59:18]Read from MH i2c: E2 03 00 7A 74 00 90 00 62 [10:59:18]RAPDU: 90 00 [10:59:18]wFMCommunicate OK [10:59:18]wFMCommunicate request_size=255 [10:59:18]MH_SAM_APDU [10:59:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 0D 14 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E6 6F 00 00 35 04 06 00 08 [10:59:18]Write to MH i2c: E2 02 01 7B 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 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 0D 14 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E6 6F 00 00 35 04 06 00 08 00 00 F6 [10:59:18]Write i2c OK [10:59:18]MH_I2C_Read... [10:59:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:59:18]Read from MH i2c: E2 [10:59:18]MH_I2C_Read... [10:59:18]Read from MH i2c: E2 03 00 [10:59:18]MH_I2C_Read... [10:59:18]Read from MH i2c: E2 03 00 7B 74 00 90 00 63 [10:59:18]RAPDU: 90 00 [10:59:18]wFMCommunicate OK [10:59:18]wFMCommunicate request_size=10 [10:59:18]MH_SAM_APDU [10:59:18]CAPDU: 80 0D 02 02 05 CA F0 AC 59 FC [10:59:18]Write to MH i2c: E2 0D 00 7C 74 80 0D 02 02 05 00 CA F0 AC 59 FC 00 00 2F [10:59:18]Write i2c OK [10:59:18]MH_I2C_Read... [10:59:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:59:18]Read from MH i2c: E2 [10:59:18]MH_I2C_Read... [10:59:18]Read from MH i2c: E2 03 00 [10:59:18]MH_I2C_Read... [10:59:18]Read from MH i2c: E2 03 00 7C 74 00 90 00 64 [10:59:18]RAPDU: 90 00 [10:59:18]wFMCommunicate OK [10:59:18]wFMCommunicate request_size=4 [10:59:18]MH_SAM_APDU [10:59:18]CAPDU: 80 0D 03 02 [10:59:18]Write to MH i2c: E2 08 00 7D 74 80 0D 03 02 00 00 00 00 6C [10:59:18]Write i2c OK [10:59:18]MH_I2C_Read... [10:59:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:59:19]Read from MH i2c: E2 [10:59:19]MH_I2C_Read... [10:59:19]Read from MH i2c: E2 0B 00 [10:59:19]MH_I2C_Read... [10:59:19]Read from MH i2c: E2 0B 00 7D 74 00 0E 1B ED 8F D5 AF F3 EC 90 00 75 [10:59:19]RAPDU: 0E 1B ED 8F D5 AF F3 EC 90 00 [10:59:19]wFMCommunicate OK [10:59:19]SAM_PROTO_SignData done [10:59:19]FM_MakeSignedData done [10:59:19]CreateOFDProtocolMessage [10:59:19]wFMCommunicate request_size=4 [10:59:19]MH_SAM_APDU [10:59:19]CAPDU: 80 11 00 00 [10:59:19]Write to MH i2c: E2 08 00 7E 74 80 11 00 00 00 00 00 00 6C [10:59:19]Write i2c OK [10:59:19]MH_I2C_Read... [10:59:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:59:19]Read from MH i2c: E2 [10:59:19]MH_I2C_Read... [10:59:19]Read from MH i2c: E2 17 00 [10:59:19]MH_I2C_Read... [10:59:19]Read from MH i2c: E2 17 00 7E 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 BB [10:59:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:59:19]wFMCommunicate OK [10:59:19]CreateOFDProtocolMessage done [10:59:19]OFDSenderStorePacket 28646 [10:59:19]StoreOFDPacket docnum=28646 [10:59:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 76 E5 07 01 E8 70 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 0D 14 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E6 6F 00 00 35 04 06 00 08 CA F0 AC 59 FC 0E 1B ED 8F D5 AF F3 EC [10:59:19]CheckFolder [10:59:19]dirname=/storage/ofd_packets [10:59:19]CheckFolder done [10:59:19]ProducePacketName [10:59:19]name=ofd_packets/00028646 [10:59:19]NVStorageSaveData ofd_packets/00028646 [10:59:19]File name is /storage/ofd_packets/00028646 [10:59:19]Write 301 bytes [10:59:19]NVStorageSaveData done [10:59:19]OFDSenderStorePacket done [10:59:19]KKMCreateOFDPacket done [10:59:19]NVStorageSaveData kkm_last_timestamp [10:59:19]File name is /storage/kkm_last_timestamp [10:59:19]Write 4 bytes [10:59:19]NVStorageSaveData done [10:59:19]ExternCall_PrintAddStr [10:59:19]wPrintStart [10:59:19]Write to MH i2c: 01 00 00 7F 74 F3 [10:59:19]Write i2c OK [10:59:19]MH_I2C_Read... [10:59:19]Read from MH i2c: 01 [10:59:19]MH_I2C_Read... [10:59:19]Read from MH i2c: 01 07 00 [10:59:19]MH_I2C_Read... [10:59:19]Read from MH i2c: 01 07 00 7F 74 00 00 00 00 00 FF 0F 08 [10:59:19]RasterBufferAndPrint [10:59:19]line Счет N : (1)346969 [10:59:19]line ИНН: 02508201610067 [10:59:19]line Контрольно-Кассовый Чек [10:59:19]line ПРОДАЖА [10:59:19]line ТРК (МРК, ГНК) : 32 [10:59:19]line Товар: 2710124130 [10:59:19]line Аи-92-К-5 [10:59:19]line 7.780 * 64.30 [10:59:19]line = 500.25 [10:59:19]line НДС 12% НСП 1% [10:59:19]line > о реализуемом товаре [10:59:19]line ОКРУГЛЕНИЕ: -0.25 [10:59:19]line ИТОГО: 500.00 [10:59:19]line Внесено: 500.00 [10:59:19]line СДАЧА: 0.00 [10:59:19]line НСП 1% : 4.43 [10:59:19]line НДС 12% : 53.12 [10:59:19]line Наличными: 500.00 [10:59:19]line Безнал.: 0.00 [10:59:19]line Место: АЗС № 108 "Партнер Нефть" [10:59:19]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [10:59:19]line СНО: Общий режим [10:59:19]line Чек 95 12.04.2024 10:59 [10:59:19]line Смена: 113 ФФД: 1.0 [10:59:19]line ЗНМ: 0300000027 [10:59:19]line РНМ: 0000138879044617 [10:59:19]line Версия ККМ: 001 [10:59:19]line ФМ: 0000000000963154 [10:59:19]line ФД: 28646 [10:59:19]line ФПД: 9667714243068 [10:59:19]line 1/tax-web-control/client/api/v1/ticket?date=20240412T105925&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28646&fm=9667714243068&tin=02508201610067®Number=0000138879044617&sum=50000 [10:59:19]OFD Sender: Processing packet 28646 [packets to send 8, broken 7] [10:59:19]ProducePacketName [10:59:19]name=ofd_packets/00028646 [10:59:19]OFD Sender: To server: pG, [10:59:19]CommunicateWithHost lk.salyk.kg:30040 [10:59:19]ConnectInit lk.salyk.kg [10:59:19]written 0, free lines is 4095 [10:59:19]Connected sock=7 [10:59:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 76 E5 07 01 E8 70 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 0D 14 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E6 6F 00 00 35 04 06 00 08 CA F0 AC 59 FC 0E 1B ED 8F D5 AF F3 EC [10:59:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 40 8F 47 00 E4 A7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E6 6F 00 00 F4 03 04 00 B7 BE 18 66 B6 04 01 00 00 63 5C 35 69 19 67 13 62 [10:59:19]CommunicateWithHost err = 0 [10:59:19]CheckOFDResponse [10:59:19]1017 (14) - 77093643461234 [10:59:19]1041 (16) - 0000000000963154 [10:59:19]1040 (4) - 28646 [10:59:19]1012 (4) - 12.04.2024 04:55 [10:59:19]1206 (1) - 0 [10:59:19]OFD Sender: Remove packet 28646 [10:59:19]ProducePacketName [10:59:19]name=ofd_packets/00028646 [10:59:19]NVStorageDeleteData [10:59:19]Write to MH i2c: 01 00 00 A9 74 1D [10:59:19]Write i2c OK [10:59:19]MH_I2C_Read... [10:59:19]Read from MH i2c: 01 [10:59:19]MH_I2C_Read... [10:59:19]Read from MH i2c: 01 07 00 [10:59:19]MH_I2C_Read... [10:59:19]Read from MH i2c: 01 07 00 A9 74 00 00 00 00 00 C2 0C F2 [10:59:19]RasterBufferAndPrint [10:59:19]line [10:59:19]line [10:59:19]line [10:59:19]line [10:59:19]line [10:59:19]written 0, free lines is 3271 [10:59:19]MH_Cut [10:59:19]Write to MH i2c: D1 01 00 B0 74 01 F6 [10:59:19]Write i2c OK [10:59:19]MH_I2C_Read... [10:59:19]Read from MH i2c: D1 [10:59:19]MH_I2C_Read... [10:59:19]Read from MH i2c: D1 01 00 [10:59:19]MH_I2C_Read... [10:59:19]Read from MH i2c: D1 01 00 B0 74 00 F5 [10:59:19]Write to MH i2c: 01 00 00 B1 74 25 [10:59:19]Write i2c OK [10:59:19]MH_I2C_Read... [10:59:20]OFD Sender: No OFD packet to send [10:59:20]*** Cut start [10:59:20]*** Partial cut [10:59:20]*** CUTSNS_PIN = 1 [10:59:20]*** CUTSNS_PIN = 0 [10:59:20]*** Brake cut motor [10:59:21]Read from MH i2c: 01 [10:59:21]MH_I2C_Read... [10:59:21]*** Stop cut motor [10:59:21]*** Cut end [10:59:21]Read from MH i2c: 01 07 00 [10:59:21]MH_I2C_Read... [10:59:21]Read from MH i2c: 01 07 00 B1 74 00 00 00 00 00 FF 0F 3A [10:59:21]process_action close_receipt done [10:59:21]requested_data is exist [10:59:21]produce_requested_data [10:59:21]requested_item fm.sn is exist - process it [10:59:21]wFMCommunicate request_size=4 [10:59:21]MH_SAM_APDU [10:59:21]CAPDU: 80 11 00 00 [10:59:21]Write to MH i2c: E2 08 00 B2 74 80 11 00 00 00 00 00 00 A0 [10:59:21]Write i2c OK [10:59:21]MH_I2C_Read... [10:59:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:59:21]Read from MH i2c: E2 [10:59:21]MH_I2C_Read... [10:59:21]Read from MH i2c: E2 17 00 [10:59:21]MH_I2C_Read... [10:59:21]Read from MH i2c: E2 17 00 B2 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 EF [10:59:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:59:21]wFMCommunicate OK [10:59:21]requested_item fd.num is exist - process it [10:59:21]SAM_PROTO_GetFieldsCounters [10:59:21]wFMCommunicate request_size=4 [10:59:21]MH_SAM_APDU [10:59:21]CAPDU: 80 13 00 00 [10:59:21]Write to MH i2c: E2 08 00 B3 74 80 13 00 00 00 00 00 00 A3 [10:59:21]Write i2c OK [10:59:21]MH_I2C_Read... [10:59:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:59:21]Read from MH i2c: E2 [10:59:21]MH_I2C_Read... [10:59:21]Read from MH i2c: E2 62 00 [10:59:21]MH_I2C_Read... [10:59:21]Read from MH i2c: E2 62 00 B3 74 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E6 6F 00 00 0E 04 04 00 71 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 C4 [10:59:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E6 6F 00 00 0E 04 04 00 71 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 [10:59:21]wFMCommunicate OK [10:59:21]SAM_PROTO_GetFieldsCounters done [10:59:21]requested_item shift.num is exist - process it [10:59:21]requested_item shift.opened is exist - process it [10:59:21]req_shift_opened [10:59:21]FM_GetShiftState [10:59:21]SAM_PROTO_GetShiftState [10:59:21]wFMCommunicate request_size=4 [10:59:21]MH_SAM_APDU [10:59:21]CAPDU: 80 13 01 00 [10:59:21]Write to MH i2c: E2 08 00 B4 74 80 13 01 00 00 00 00 00 A5 [10:59:21]Write i2c OK [10:59:21]MH_I2C_Read... [10:59:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:59:21]Read from MH i2c: E2 [10:59:21]MH_I2C_Read... [10:59:21]Read from MH i2c: E2 0E 00 [10:59:21]MH_I2C_Read... [10:59:21]Read from MH i2c: E2 0E 00 B4 74 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 B6 [10:59:21]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [10:59:21]wFMCommunicate OK [10:59:21]SAM_PROTO_GetShiftState done [10:59:21]FM_GetShiftState done [10:59:21]req_shift_opened done [10:59:21]requested_item shift.open_date is exist - process it [10:59:21]req_shift_open_date [10:59:21]req_shift_open_date done [10:59:21]produce_requested_data done [10:59:21]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28646,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [10:59:21]process_action_free close_receipt [10:59:21]json_value_free [10:59:21]json_value_free done [10:59:21]process_json_proto returns [10:59:21]Send response to host [10:59:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28646,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [10:59:21]free response buf [10:59:21]execute_script done [10:59:21]execute_script returns [10:59:21]free content buf [10:59:21]Sock 6.Close socket [10:59:21]Sock 6.Thread stoped [10:59:25]OFD Sender: No OFD packet to send [10:59:30]OFD Sender: No OFD packet to send [10:59:35]OFD Sender: No OFD packet to send [10:59:40]OFD Sender: No OFD packet to send [10:59:45]OFD Sender: No OFD packet to send [10:59:50]OFD Sender: No OFD packet to send [10:59:55]OFD Sender: No OFD packet to send [11:00:00]OFD Sender: No OFD packet to send [11:00:05]OFD Sender: No OFD packet to send [11:00:10]OFD Sender: No OFD packet to send [11:00:15]OFD Sender: No OFD packet to send [11:00:20]OFD Sender: No OFD packet to send [11:00:25]OFD Sender: No OFD packet to send [11:00:30]OFD Sender: No OFD packet to send [11:00:35]OFD Sender: No OFD packet to send [11:00:40]OFD Sender: No OFD packet to send [11:00:45]OFD Sender: No OFD packet to send [11:00:50]OFD Sender: No OFD packet to send [11:00:55]OFD Sender: No OFD packet to send [11:01:00]OFD Sender: No OFD packet to send [11:01:05]OFD Sender: No OFD packet to send [11:01:10]OFD Sender: No OFD packet to send [11:01:15]OFD Sender: No OFD packet to send [11:01:20]OFD Sender: No OFD packet to send [11:01:25]OFD Sender: No OFD packet to send [11:01:30]OFD Sender: No OFD packet to send [11:01:35]OFD Sender: No OFD packet to send [11:01:40]OFD Sender: No OFD packet to send [11:01:45]OFD Sender: No OFD packet to send [11:01:50]OFD Sender: No OFD packet to send [11:01:55]OFD Sender: No OFD packet to send [11:02:00]OFD Sender: No OFD packet to send [11:02:05]OFD Sender: No OFD packet to send [11:02:10]OFD Sender: No OFD packet to send [11:02:15]OFD Sender: No OFD packet to send [11:02:20]OFD Sender: No OFD packet to send [11:02:25]OFD Sender: No OFD packet to send [11:02:30]OFD Sender: No OFD packet to send [11:02:35]OFD Sender: No OFD packet to send [11:02:40]OFD Sender: No OFD packet to send [11:02:45]OFD Sender: No OFD packet to send [11:02:50]OFD Sender: No OFD packet to send [11:02:55]OFD Sender: No OFD packet to send [11:03:00]OFD Sender: No OFD packet to send [11:03:05]OFD Sender: No OFD packet to send [11:03:10]OFD Sender: No OFD packet to send [11:03:15]OFD Sender: No OFD packet to send [11:03:20]OFD Sender: No OFD packet to send [11:03:25]OFD Sender: No OFD packet to send [11:03:30]OFD Sender: No OFD packet to send [11:03:35]OFD Sender: No OFD packet to send [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:25]OFD Sender: No OFD packet to send [11:04:30]OFD Sender: No OFD packet to send [11:04:35]OFD Sender: No OFD packet to send [11:04:40]OFD Sender: No OFD packet to send [11:04:45]OFD Sender: No OFD packet to send [11:04:50]OFD Sender: No OFD packet to send [11:04:55]OFD Sender: No OFD packet to send [11:05:00]OFD Sender: No OFD packet to send [11:05:05]OFD Sender: No OFD packet to send [11:05:10]OFD Sender: No OFD packet to send [11:05:15]OFD Sender: No OFD packet to send [11:05:20]OFD Sender: No OFD packet to send [11:05:25]OFD Sender: No OFD packet to send [11:05:30]OFD Sender: No OFD packet to send [11:05:35]OFD Sender: No OFD packet to send [11:05:40]OFD Sender: No OFD packet to send [11:05:45]OFD Sender: No OFD packet to send [11:05:50]OFD Sender: No OFD packet to send [11:05:55]OFD Sender: No OFD packet to send [11:06:00]OFD Sender: No OFD packet to send [11:06:05]OFD Sender: No OFD packet to send [11:06:10]OFD Sender: No OFD packet to send [11:06:15]OFD Sender: No OFD packet to send [11:06:20]OFD Sender: No OFD packet to send [11:06:25]OFD Sender: No OFD packet to send [11:06:30]OFD Sender: No OFD packet to send [11:06:35]OFD Sender: No OFD packet to send [11:06:40]OFD Sender: No OFD packet to send [11:06:45]OFD Sender: No OFD packet to send [11:06:50]OFD Sender: No OFD packet to send [11:06:55]OFD Sender: No OFD packet to send [11:07:00]OFD Sender: No OFD packet to send [11:07:05]OFD Sender: No OFD packet to send [11:07:10]OFD Sender: No OFD packet to send [11:07:15]OFD Sender: No OFD packet to send [11:07:20]OFD Sender: No OFD packet to send [11:07:25]OFD Sender: No OFD packet to send [11:07:30]OFD Sender: No OFD packet to send [11:07:35]OFD Sender: No OFD packet to send [11:07:40]OFD Sender: No OFD packet to send [11:07:45]OFD Sender: No OFD packet to send [11:07:50]OFD Sender: No OFD packet to send [11:07:55]OFD Sender: No OFD packet to send [11:08:00]OFD Sender: No OFD packet to send [11:08:05]OFD Sender: No OFD packet to send [11:08:10]OFD Sender: No OFD packet to send [11:08:15]OFD Sender: No OFD packet to send [11:08:20]OFD Sender: No OFD packet to send [11:08:25]OFD Sender: No OFD packet to send [11:08:30]OFD Sender: No OFD packet to send [11:08:35]OFD Sender: No OFD packet to send [11:08:40]OFD Sender: No OFD packet to send [11:08:45]OFD Sender: No OFD packet to send [11:08:50]OFD Sender: No OFD packet to send [11:08:55]OFD Sender: No OFD packet to send [11:09:00]OFD Sender: No OFD packet to send [11:09:05]OFD Sender: No OFD packet to send [11:09:10]OFD Sender: No OFD packet to send [11:09:15]OFD Sender: No OFD packet to send [11:09:20]OFD Sender: No OFD packet to send [11:09:25]OFD Sender: No OFD packet to send [11:09:30]OFD Sender: No OFD packet to send [11:09:35]OFD Sender: No OFD packet to send [11:09:40]OFD Sender: No OFD packet to send [11:09:45]OFD Sender: No OFD packet to send [11:09:50]OFD Sender: No OFD packet to send [11:09:55]OFD Sender: No OFD packet to send [11:10:00]OFD Sender: No OFD packet to send [11:10:05]OFD Sender: No OFD packet to send [11:10:10]OFD Sender: No OFD packet to send [11:10:15]OFD Sender: No OFD packet to send [11:10:20]OFD Sender: No OFD packet to send [11:10:25]OFD Sender: No OFD packet to send [11:10:30]OFD Sender: No OFD packet to send [11:10:35]OFD Sender: No OFD packet to send [11:10:40]OFD Sender: No OFD packet to send [11:10:45]OFD Sender: No OFD packet to send [11:10:50]OFD Sender: No OFD packet to send [11:10:55]OFD Sender: No OFD packet to send [11:11:00]OFD Sender: No OFD packet to send [11:11:05]OFD Sender: No OFD packet to send [11:11:06]accept exits with 5 [11:11:06]New connection [11:11:06]New thread 3066498404 created [11:11:06]Thread 3066641764 joined [11:11:06]Waiting for new connection... [11:11:06] Sock 5.Parse request [11:11:06]Sock 5.Check first char [11:11:06]Sock 5.First char is OK [11:11:06]request: POST /json_proto HTTP/1.0 [11:11:06]Method: POST [11:11:06]URL: /json_proto [11:11:06]Method is POST - this is cgi request [11:11:06]url: /json_proto [11:11:06]query_string will be loaded in cgi processing [11:11:06]execute_cgi json_proto POST (null) [11:11:06]execute_cgi path=json_proto method=POST [11:11:06]POST find Content-Length [11:11:06]Host: 172.17.33.3:8080 [11:11:06]Content-Length: 1210 [11:11:06]Content-Type: application/json [11:11:06] [11:11:06]POST finish read [11:11:06]Found Content-Length = 1210 [11:11:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)346970\u000A12.04.2024 10:53\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 15.000 x 72.40\u000A\u0418\u0422\u041E\u0413: 1086.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A74767\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:11:06]execute_script... [11:11:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)346970\u000A12.04.2024 10:53\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 15.000 x 72.40\u000A\u0418\u0422\u041E\u0413: 1086.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A74767\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:11:06]POST & json_proto [11:11:06]process_json_proto [11:11:06]json parsed OK: [11:11:06]protocol is kg_v1.0 [11:11:06]action value=print_text [11:11:06]process_action print_text [11:11:06]cmd_print_text [11:11:06]ExternCall_PrintAddStr [11:11:06]wPrintStart [11:11:06]Write to MH i2c: 01 00 00 B5 74 29 [11:11:06]Write i2c OK [11:11:06]MH_I2C_Read... [11:11:06]Read from MH i2c: 01 [11:11:06]MH_I2C_Read... [11:11:06]Read from MH i2c: 01 07 00 [11:11:06]MH_I2C_Read... [11:11:06]Read from MH i2c: 01 07 00 B5 74 00 00 00 00 00 FF 0F 3E [11:11:06]RasterBufferAndPrint [11:11:06]line *****ТОВАРНЫЙ ЧЕК***** [11:11:06]line АЗС 108 [11:11:06]line Партнер нефть [11:11:06]line 02508201610067 [11:11:06]line Кассир : Джумагулова Н. [11:11:06]line Счет N : (1)346970 [11:11:06]line 12.04.2024 10:53 [11:11:06]line ПРОДАЖА [11:11:06]line ТРК (МРК, ГНК): 21 [11:11:06]line Вид ГСМ : 2710194210 [11:11:06]line ДТ-К-5 [11:11:06]line 15.000 x 72.40 [11:11:06]line ИТОГ: 1086.00 [11:11:06]line Тип оплаты: Талоны: Топливная Карта [11:11:06]line 74767 [11:11:06]line ______________________ [11:11:06]line (подпись) [11:11:06]written 0, free lines is 4095 [11:11:06]Write to MH i2c: 01 00 00 CA 74 3E [11:11:06]Write i2c OK [11:11:06]MH_I2C_Read... [11:11:06]Read from MH i2c: 01 [11:11:06]MH_I2C_Read... [11:11:06]Read from MH i2c: 01 07 00 [11:11:06]MH_I2C_Read... [11:11:06]Read from MH i2c: 01 07 00 CA 74 00 00 00 00 00 F4 0D 46 [11:11:06]RasterBufferAndPrint [11:11:06]line [11:11:06]line [11:11:06]line [11:11:06]line [11:11:06]line [11:11:06]written 0, free lines is 3574 [11:11:06]MH_Cut [11:11:06]Write to MH i2c: D1 01 00 D1 74 01 17 [11:11:06]Write i2c OK [11:11:06]MH_I2C_Read... [11:11:06]Read from MH i2c: D1 [11:11:06]MH_I2C_Read... [11:11:06]Read from MH i2c: D1 01 00 [11:11:06]MH_I2C_Read... [11:11:06]Read from MH i2c: D1 01 00 D1 74 00 16 [11:11:06]Write to MH i2c: 01 00 00 D2 74 46 [11:11:06]Write i2c OK [11:11:06]MH_I2C_Read... [11:11:07]*** Cut start [11:11:07]*** Partial cut [11:11:07]*** CUTSNS_PIN = 1 [11:11:07]*** CUTSNS_PIN = 0 [11:11:07]*** Brake cut motor [11:11:07]Read from MH i2c: 01 [11:11:07]MH_I2C_Read... [11:11:07]*** Stop cut motor [11:11:07]*** Cut end [11:11:07]Read from MH i2c: 01 07 00 [11:11:07]MH_I2C_Read... [11:11:07]Read from MH i2c: 01 07 00 D2 74 00 00 00 00 00 FF 0F 5B [11:11:07]process_action print_text done [11:11:07]requested_data is exist [11:11:07]produce_requested_data [11:11:07]requested_item fm.sn is exist - process it [11:11:07]wFMCommunicate request_size=4 [11:11:07]MH_SAM_APDU [11:11:07]CAPDU: 80 11 00 00 [11:11:07]Write to MH i2c: E2 08 00 D3 74 80 11 00 00 00 00 00 00 C1 [11:11:07]Write i2c OK [11:11:07]MH_I2C_Read... [11:11:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:11:07]Read from MH i2c: E2 [11:11:07]MH_I2C_Read... [11:11:07]Read from MH i2c: E2 17 00 [11:11:07]MH_I2C_Read... [11:11:07]Read from MH i2c: E2 17 00 D3 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 10 [11:11:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:11:07]wFMCommunicate OK [11:11:07]requested_item fd.num is exist - process it [11:11:07]SAM_PROTO_GetFieldsCounters [11:11:07]wFMCommunicate request_size=4 [11:11:07]MH_SAM_APDU [11:11:07]CAPDU: 80 13 00 00 [11:11:07]Write to MH i2c: E2 08 00 D4 74 80 13 00 00 00 00 00 00 C4 [11:11:07]Write i2c OK [11:11:07]MH_I2C_Read... [11:11:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:11:08]Read from MH i2c: E2 [11:11:08]MH_I2C_Read... [11:11:08]Read from MH i2c: E2 62 00 [11:11:08]MH_I2C_Read... [11:11:08]Read from MH i2c: E2 62 00 D4 74 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E6 6F 00 00 0E 04 04 00 71 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 E5 [11:11:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E6 6F 00 00 0E 04 04 00 71 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:11:08]wFMCommunicate OK [11:11:08]SAM_PROTO_GetFieldsCounters done [11:11:08]requested_item shift.num is exist - process it [11:11:08]requested_item shift.opened is exist - process it [11:11:08]req_shift_opened [11:11:08]FM_GetShiftState [11:11:08]SAM_PROTO_GetShiftState [11:11:08]wFMCommunicate request_size=4 [11:11:08]MH_SAM_APDU [11:11:08]CAPDU: 80 13 01 00 [11:11:08]Write to MH i2c: E2 08 00 D5 74 80 13 01 00 00 00 00 00 C6 [11:11:08]Write i2c OK [11:11:08]MH_I2C_Read... [11:11:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:11:08]Read from MH i2c: E2 [11:11:08]MH_I2C_Read... [11:11:08]Read from MH i2c: E2 0E 00 [11:11:08]MH_I2C_Read... [11:11:08]Read from MH i2c: E2 0E 00 D5 74 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 D7 [11:11:08]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [11:11:08]wFMCommunicate OK [11:11:08]SAM_PROTO_GetShiftState done [11:11:08]FM_GetShiftState done [11:11:08]req_shift_opened done [11:11:08]requested_item shift.open_date is exist - process it [11:11:08]req_shift_open_date [11:11:08]req_shift_open_date done [11:11:08]produce_requested_data done [11:11:08]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28646,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [11:11:08]process_action_free print_text [11:11:08]json_value_free [11:11:08]json_value_free done [11:11:08]process_json_proto returns [11:11:08]Send response to host [11:11:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28646,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [11:11:08]free response buf [11:11:08]execute_script done [11:11:08]execute_script returns [11:11:08]free content buf [11:11:08]Sock 5.Close socket [11:11:08]Sock 5.Thread stoped [11:11:10]OFD Sender: No OFD packet to send [11:11:15]OFD Sender: No OFD packet to send [11:11:20]OFD Sender: No OFD packet to send [11:11:25]OFD Sender: No OFD packet to send [11:11:30]OFD Sender: No OFD packet to send [11:11:35]OFD Sender: No OFD packet to send [11:11:40]OFD Sender: No OFD packet to send [11:11:45]OFD Sender: No OFD packet to send [11:11:50]OFD Sender: No OFD packet to send [11:11:55]OFD Sender: No OFD packet to send [11:12:00]OFD Sender: No OFD packet to send [11:12:05]OFD Sender: No OFD packet to send [11:12:06]accept exits with 6 [11:12:06]New connection [11:12:06]New thread 3066641764 created [11:12:06]Thread 3066498404 joined [11:12:06]Waiting for new connection... [11:12:06] Sock 6.Parse request [11:12:06]Sock 6.Check first char [11:12:06]Sock 6.First char is OK [11:12:06]request: POST /json_proto HTTP/1.0 [11:12:06]Method: POST [11:12:06]URL: /json_proto [11:12:06]Method is POST - this is cgi request [11:12:06]url: /json_proto [11:12:06]query_string will be loaded in cgi processing [11:12:06]execute_cgi json_proto POST (null) [11:12:06]execute_cgi path=json_proto method=POST [11:12:06]POST find Content-Length [11:12:06]Host: 172.17.33.3:8080 [11:12:06]Content-Length: 838 [11:12:06]Content-Type: application/json [11:12:06] [11:12:06]POST finish read [11:12:06]Found Content-Length = 838 [11:12:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346971", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 12.630, "sum" : 914.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" : 914.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:12:06]execute_script... [11:12: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)346971", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 12.630, "sum" : 914.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" : 914.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:12:06]POST & json_proto [11:12:06]process_json_proto [11:12:06]json parsed OK: [11:12:06]protocol is kg_v1.0 [11:12:06]action value=close_receipt [11:12:06]process_action close_receipt [11:12:06]cmd_close_receipt [11:12:06]MH_GetDate [11:12:06]Write to MH i2c: F0 00 00 D6 74 39 [11:12:06]Write i2c OK [11:12:06]MH_I2C_Read... [11:12:06]Read from MH i2c: F0 [11:12:06]MH_I2C_Read... [11:12:06]Read from MH i2c: F0 09 00 [11:12:06]MH_I2C_Read... [11:12:06]Read from MH i2c: F0 09 00 D6 74 00 0D 17 19 66 23 5B 8F 65 57 [11:12:06]GetLastDocTimeStamp 1712919565 [11:12:06]current date 1712920333 [11:12:06]FM_GetShiftState [11:12:06]SAM_PROTO_GetShiftState [11:12:06]wFMCommunicate request_size=4 [11:12:06]MH_SAM_APDU [11:12:06]CAPDU: 80 13 01 00 [11:12:06]Write to MH i2c: E2 08 00 D7 74 80 13 01 00 00 00 00 00 C8 [11:12:06]Write i2c OK [11:12:06]MH_I2C_Read... [11:12:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:12:06]Read from MH i2c: E2 [11:12:06]MH_I2C_Read... [11:12:06]Read from MH i2c: E2 0E 00 [11:12:06]MH_I2C_Read... [11:12:06]Read from MH i2c: E2 0E 00 D7 74 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 D9 [11:12:06]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [11:12:06]wFMCommunicate OK [11:12:06]SAM_PROTO_GetShiftState done [11:12:06]FM_GetShiftState done [11:12:06]opened in 1712881416 [11:12:06]opened+sec_in_day 1712967816 [11:12:06]quantity*price = 91441 [11:12:06]sum+1 = 91442 [11:12:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 914.41 НСП 1% : 8.09 НДС 12% : 97.10 Наличными: 0.00 Безнал.: 914.41 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 96 12.04.2024 11:12 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 28647 ФПД: 280374761745570 1/tax-web-control/client/api/v1/ticket?date=20240412T111213&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28647&fm=280374761745570&tin=02508201610067®Number=0000138879044617&sum=91441 [11:12:07]StoreToDocumentArchive [11:12:07]shift 113 fd 28647 [11:12:07]save to /storage/0113/doc_00028647 [11:12:07]save last doc name /storage/0113/doc_00028647 to /storage/kkm_last_doc_name [11:12:07]save OK [11:12:07]Clear old archive folders... [11:12:07]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:12:07]tlvbuf is 01BEA0F0 [11:12:07]SAM_PROTO_ClearQueue [11:12:07]wFMCommunicate request_size=4 [11:12:07]MH_SAM_APDU [11:12:07]CAPDU: 80 09 00 00 [11:12:07]Write to MH i2c: E2 08 00 E4 74 80 09 00 00 00 00 00 00 CA [11:12:07]Write i2c OK [11:12:07]MH_I2C_Read... [11:12:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:12:07]Read from MH i2c: E2 [11:12:07]MH_I2C_Read... [11:12:07]Read from MH i2c: E2 03 00 [11:12:07]MH_I2C_Read... [11:12:07]Read from MH i2c: E2 03 00 E4 74 00 90 00 CC [11:12:07]RAPDU: 90 00 [11:12:07]wFMCommunicate OK [11:12:07]SAM_PROTO_ClearQueue done [11:12:07]KKMCreateOFDPacket [11:12:07]OFDProtocolAddRootSTLVToBuf [11:12:07]FM_MakeSignedData [11:12:07]FM_MakeSignedData [11:12:07]SAM_PROTO_SignData [11:12:07]wFMCommunicate request_size=4 [11:12:07]MH_SAM_APDU [11:12:07]CAPDU: 80 0D 01 02 [11:12:07]Write to MH i2c: E2 08 00 E5 74 80 0D 01 02 00 00 00 00 D2 [11:12:07]Write i2c OK [11:12:07]MH_I2C_Read... [11:12:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:12:07]Read from MH i2c: E2 [11:12:07]MH_I2C_Read... [11:12:07]Read from MH i2c: E2 03 00 [11:12:07]MH_I2C_Read... [11:12:07]Read from MH i2c: E2 03 00 E5 74 00 90 00 CD [11:12:07]RAPDU: 90 00 [11:12:07]wFMCommunicate OK [11:12:07]wFMCommunicate request_size=255 [11:12:07]MH_SAM_APDU [11:12: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 35 FF 03 08 00 03 56 31 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 31 65 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 31 65 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 29 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EE 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 31 65 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 0D 17 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E7 6F 00 00 35 04 06 00 FE FF D6 13 [11:12:07]Write to MH i2c: E2 02 01 E6 74 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 35 FF 03 08 00 03 56 31 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 31 65 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 31 65 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 29 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EE 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 31 65 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 0D 17 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E7 6F 00 00 35 04 06 00 FE FF D6 13 00 00 EB [11:12:07]Write i2c OK [11:12:07]MH_I2C_Read... [11:12:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:12:07]Read from MH i2c: E2 [11:12:07]MH_I2C_Read... [11:12:07]Read from MH i2c: E2 03 00 [11:12:07]MH_I2C_Read... [11:12:07]Read from MH i2c: E2 03 00 E6 74 00 90 00 CE [11:12:07]RAPDU: 90 00 [11:12:07]wFMCommunicate OK [11:12:07]wFMCommunicate request_size=7 [11:12:07]MH_SAM_APDU [11:12:07]CAPDU: 80 0D 02 02 02 EC A2 [11:12:07]Write to MH i2c: E2 0A 00 E7 74 80 0D 02 02 02 00 EC A2 00 00 67 [11:12:07]Write i2c OK [11:12:07]MH_I2C_Read... [11:12:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:12:07]Read from MH i2c: E2 [11:12:07]MH_I2C_Read... [11:12:07]Read from MH i2c: E2 03 00 [11:12:07]MH_I2C_Read... [11:12:07]Read from MH i2c: E2 03 00 E7 74 00 90 00 CF [11:12:07]RAPDU: 90 00 [11:12:07]wFMCommunicate OK [11:12:07]wFMCommunicate request_size=4 [11:12:07]MH_SAM_APDU [11:12:07]CAPDU: 80 0D 03 02 [11:12:07]Write to MH i2c: E2 08 00 E8 74 80 0D 03 02 00 00 00 00 D7 [11:12:07]Write i2c OK [11:12:07]MH_I2C_Read... [11:12:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:12:07]Read from MH i2c: E2 [11:12:07]MH_I2C_Read... [11:12:07]Read from MH i2c: E2 0B 00 [11:12:07]MH_I2C_Read... [11:12:07]Read from MH i2c: E2 0B 00 E8 74 00 8E B1 EE 29 90 15 77 FA 90 00 44 [11:12:07]RAPDU: 8E B1 EE 29 90 15 77 FA 90 00 [11:12:07]wFMCommunicate OK [11:12:07]SAM_PROTO_SignData done [11:12:07]FM_MakeSignedData done [11:12:07]CreateOFDProtocolMessage [11:12:07]wFMCommunicate request_size=4 [11:12:07]MH_SAM_APDU [11:12:07]CAPDU: 80 11 00 00 [11:12:07]Write to MH i2c: E2 08 00 E9 74 80 11 00 00 00 00 00 00 D7 [11:12:07]Write i2c OK [11:12:07]MH_I2C_Read... [11:12:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:12:07]Read from MH i2c: E2 [11:12:07]MH_I2C_Read... [11:12:07]Read from MH i2c: E2 17 00 [11:12:07]MH_I2C_Read... [11:12:07]Read from MH i2c: E2 17 00 E9 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 26 [11:12:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:12:07]wFMCommunicate OK [11:12:07]CreateOFDProtocolMessage done [11:12:07]OFDSenderStorePacket 28647 [11:12:07]StoreOFDPacket docnum=28647 [11:12:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 32 2F 04 01 9B 96 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 31 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 31 65 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 31 65 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 29 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EE 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 31 65 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 0D 17 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E7 6F 00 00 35 04 06 00 FE FF D6 13 EC A2 8E B1 EE 29 90 15 77 FA [11:12:07]CheckFolder [11:12:07]dirname=/storage/ofd_packets [11:12:07]CheckFolder done [11:12:07]ProducePacketName [11:12:07]name=ofd_packets/00028647 [11:12:07]NVStorageSaveData ofd_packets/00028647 [11:12:07]File name is /storage/ofd_packets/00028647 [11:12:07]Write 298 bytes [11:12:07]NVStorageSaveData done [11:12:07]OFDSenderStorePacket done [11:12:07]KKMCreateOFDPacket done [11:12:07]NVStorageSaveData kkm_last_timestamp [11:12:07]File name is /storage/kkm_last_timestamp [11:12:07]Write 4 bytes [11:12:07]NVStorageSaveData done [11:12:07]ExternCall_PrintAddStr [11:12:07]wPrintStart [11:12:07]Write to MH i2c: 01 00 00 EA 74 5E [11:12:07]Write i2c OK [11:12:07]MH_I2C_Read... [11:12:07]Read from MH i2c: 01 [11:12:07]MH_I2C_Read... [11:12:07]Read from MH i2c: 01 07 00 [11:12:07]MH_I2C_Read... [11:12:07]Read from MH i2c: 01 07 00 EA 74 00 00 00 00 00 FF 0F 73 [11:12:07]RasterBufferAndPrint [11:12:07]line Счет N : (1)346971 [11:12:07]line ИНН: 02508201610067 [11:12:07]line Контрольно-Кассовый Чек [11:12:07]line ПРОДАЖА [11:12:07]line ТРК (МРК, ГНК) : 21 [11:12:07]line Товар: 2710194210 [11:12:07]line ДТ-К-5 [11:12:07]line 12.630 * 72.40 [11:12:07]line = 914.41 [11:12:07]line НДС 12% НСП 1% [11:12:07]line > о реализуемом товаре [11:12:07]line ИТОГО: 914.41 [11:12:07]line НСП 1% : 8.09 [11:12:07]line НДС 12% : 97.10 [11:12:07]line Наличными: 0.00 [11:12:07]line Безнал.: 914.41 [11:12:07]line Место: АЗС № 108 "Партнер Нефть" [11:12:07]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [11:12:07]line СНО: Общий режим [11:12:07]line Чек 96 12.04.2024 11:12 [11:12:07]line Смена: 113 ФФД: 1.0 [11:12:07]line ЗНМ: 0300000027 [11:12:07]line РНМ: 0000138879044617 [11:12:07]line Версия ККМ: 001 [11:12:07]line Платежная система: АКБ Кыргызстан [11:12:07]line ФМ: 0000000000963154 [11:12:07]line ФД: 28647 [11:12:07]line ФПД: 280374761745570 [11:12:08]line 1/tax-web-control/client/api/v1/ticket?date=20240412T111213&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28647&fm=280374761745570&tin=02508201610067®Number=0000138879044617&sum=91441 [11:12:08]OFD Sender: Processing packet 28647 [packets to send 8, broken 7] [11:12:08]ProducePacketName [11:12:08]name=ofd_packets/00028647 [11:12:08]OFD Sender: To server: pG, [11:12:08]CommunicateWithHost lk.salyk.kg:30040 [11:12:08]ConnectInit lk.salyk.kg [11:12:08]written 0, free lines is 4095 [11:12:08]Connected sock=7 [11:12:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 32 2F 04 01 9B 96 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 31 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 31 65 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 31 65 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 29 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EE 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 31 65 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 0D 17 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E7 6F 00 00 35 04 06 00 FE FF D6 13 EC A2 8E B1 EE 29 90 15 77 FA [11:12:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 7F 61 47 00 E8 D5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E7 6F 00 00 F4 03 04 00 B8 C1 18 66 B6 04 01 00 00 D9 1A 5B AF 41 6F C5 7F [11:12:08]CommunicateWithHost err = 0 [11:12:08]CheckOFDResponse [11:12:08]1017 (14) - 77093643461234 [11:12:08]1041 (16) - 0000000000963154 [11:12:08]1040 (4) - 28647 [11:12:08]1012 (4) - 12.04.2024 05:08 [11:12:08]1206 (1) - 0 [11:12:08]OFD Sender: Remove packet 28647 [11:12:08]ProducePacketName [11:12:08]name=ofd_packets/00028647 [11:12:08]NVStorageDeleteData [11:12:08]Write to MH i2c: 01 00 00 13 75 88 [11:12:08]Write i2c OK [11:12:08]MH_I2C_Read... [11:12:08]Read from MH i2c: 01 [11:12:08]MH_I2C_Read... [11:12:08]Read from MH i2c: 01 07 00 [11:12:08]MH_I2C_Read... [11:12:08]Read from MH i2c: 01 07 00 13 75 00 00 00 00 00 E7 0C 82 [11:12:08]RasterBufferAndPrint [11:12:08]line [11:12:08]line [11:12:08]line [11:12:08]line [11:12:08]line [11:12:08]written 0, free lines is 3310 [11:12:08]MH_Cut [11:12:08]Write to MH i2c: D1 01 00 1A 75 01 61 [11:12:08]Write i2c OK [11:12:08]MH_I2C_Read... [11:12:08]Read from MH i2c: D1 [11:12:08]MH_I2C_Read... [11:12:08]Read from MH i2c: D1 01 00 [11:12:08]MH_I2C_Read... [11:12:08]Read from MH i2c: D1 01 00 1A 75 00 60 [11:12:08]Write to MH i2c: 01 00 00 1B 75 90 [11:12:08]Write i2c OK [11:12:08]MH_I2C_Read... [11:12:08]OFD Sender: No OFD packet to send [11:12:09]*** Cut start [11:12:09]*** Partial cut [11:12:09]*** CUTSNS_PIN = 1 [11:12:09]*** CUTSNS_PIN = 0 [11:12:09]*** Brake cut motor [11:12:10]Read from MH i2c: 01 [11:12:10]MH_I2C_Read... [11:12:10]*** Stop cut motor [11:12:10]*** Cut end [11:12:10]Read from MH i2c: 01 07 00 [11:12:10]MH_I2C_Read... [11:12:10]Read from MH i2c: 01 07 00 1B 75 00 00 00 00 00 FF 0F A5 [11:12:10]process_action close_receipt done [11:12:10]requested_data is exist [11:12:10]produce_requested_data [11:12:10]requested_item fm.sn is exist - process it [11:12:10]wFMCommunicate request_size=4 [11:12:10]MH_SAM_APDU [11:12:10]CAPDU: 80 11 00 00 [11:12:10]Write to MH i2c: E2 08 00 1C 75 80 11 00 00 00 00 00 00 0B [11:12:10]Write i2c OK [11:12:10]MH_I2C_Read... [11:12:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:12:10]Read from MH i2c: E2 [11:12:10]MH_I2C_Read... [11:12:10]Read from MH i2c: E2 17 00 [11:12:10]MH_I2C_Read... [11:12:10]Read from MH i2c: E2 17 00 1C 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 5A [11:12:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:12:10]wFMCommunicate OK [11:12:10]requested_item fd.num is exist - process it [11:12:10]SAM_PROTO_GetFieldsCounters [11:12:10]wFMCommunicate request_size=4 [11:12:10]MH_SAM_APDU [11:12:10]CAPDU: 80 13 00 00 [11:12:10]Write to MH i2c: E2 08 00 1D 75 80 13 00 00 00 00 00 00 0E [11:12:10]Write i2c OK [11:12:10]MH_I2C_Read... [11:12:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:12:10]Read from MH i2c: E2 [11:12:10]MH_I2C_Read... [11:12:10]Read from MH i2c: E2 62 00 [11:12:10]MH_I2C_Read... [11:12:10]Read from MH i2c: E2 62 00 1D 75 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E7 6F 00 00 0E 04 04 00 71 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 33 [11:12:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E7 6F 00 00 0E 04 04 00 71 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:12:10]wFMCommunicate OK [11:12:10]SAM_PROTO_GetFieldsCounters done [11:12:10]requested_item shift.num is exist - process it [11:12:10]requested_item shift.opened is exist - process it [11:12:10]req_shift_opened [11:12:10]FM_GetShiftState [11:12:10]SAM_PROTO_GetShiftState [11:12:10]wFMCommunicate request_size=4 [11:12:10]MH_SAM_APDU [11:12:10]CAPDU: 80 13 01 00 [11:12:10]Write to MH i2c: E2 08 00 1E 75 80 13 01 00 00 00 00 00 10 [11:12:10]Write i2c OK [11:12:10]MH_I2C_Read... [11:12:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:12:10]Read from MH i2c: E2 [11:12:10]MH_I2C_Read... [11:12:10]Read from MH i2c: E2 0E 00 [11:12:10]MH_I2C_Read... [11:12:10]Read from MH i2c: E2 0E 00 1E 75 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 21 [11:12:10]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [11:12:10]wFMCommunicate OK [11:12:10]SAM_PROTO_GetShiftState done [11:12:10]FM_GetShiftState done [11:12:10]req_shift_opened done [11:12:10]requested_item shift.open_date is exist - process it [11:12:10]req_shift_open_date [11:12:10]req_shift_open_date done [11:12:10]produce_requested_data done [11:12:10]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28647,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [11:12:10]process_action_free close_receipt [11:12:10]json_value_free [11:12:10]json_value_free done [11:12:10]process_json_proto returns [11:12:10]Send response to host [11:12:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28647,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [11:12:10]free response buf [11:12:10]execute_script done [11:12:10]execute_script returns [11:12:10]free content buf [11:12:10]Sock 6.Close socket [11:12:10]Sock 6.Thread stoped [11:12:13]OFD Sender: No OFD packet to send [11:12:18]OFD Sender: No OFD packet to send [11:12:23]OFD Sender: No OFD packet to send [11:12:28]OFD Sender: No OFD packet to send [11:12:33]OFD Sender: No OFD packet to send [11:12:38]OFD Sender: No OFD packet to send [11:12:43]OFD Sender: No OFD packet to send [11:12:48]OFD Sender: No OFD packet to send [11:12:53]OFD Sender: No OFD packet to send [11:12:58]OFD Sender: No OFD packet to send [11:13:03]OFD Sender: No OFD packet to send [11:13:08]OFD Sender: No OFD packet to send [11:13:13]OFD Sender: No OFD packet to send [11:13: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:19]OFD Sender: No OFD packet to send [11:16:24]OFD Sender: No OFD packet to send [11:16:29]OFD Sender: No OFD packet to send [11:16:34]OFD Sender: No OFD packet to send [11:16:39]OFD Sender: No OFD packet to send [11:16:44]OFD Sender: No OFD packet to send [11:16:49]OFD Sender: No OFD packet to send [11:16:54]OFD Sender: No OFD packet to send [11:16:59]OFD Sender: No OFD packet to send [11:17:04]OFD Sender: No OFD packet to send [11:17:09]OFD Sender: No OFD packet to send [11:17:14]OFD Sender: No OFD packet to send [11:17:19]OFD Sender: No OFD packet to send [11:17:24]OFD Sender: No OFD packet to send [11:17:29]OFD Sender: No OFD packet to send [11:17:34]OFD Sender: No OFD packet to send [11:17:39]OFD Sender: No OFD packet to send [11:17:44]OFD Sender: No OFD packet to send [11:17:49]OFD Sender: No OFD packet to send [11:17:54]OFD Sender: No OFD packet to send [11:17:59]OFD Sender: No OFD packet to send [11:18:04]OFD Sender: No OFD packet to send [11:18:09]OFD Sender: No OFD packet to send [11:18:14]OFD Sender: No OFD packet to send [11:18:19]OFD Sender: No OFD packet to send [11:18:24]OFD Sender: No OFD packet to send [11:18:29]OFD Sender: No OFD packet to send [11:18:34]OFD Sender: No OFD packet to send [11:18:39]OFD Sender: No OFD packet to send [11:18:44]OFD Sender: No OFD packet to send [11:18:49]OFD Sender: No OFD packet to send [11:18:54]OFD Sender: No OFD packet to send [11:18:59]OFD Sender: No OFD packet to send [11:19:04]OFD Sender: No OFD packet to send [11:19:09]OFD Sender: No OFD packet to send [11:19:14]OFD Sender: No OFD packet to send [11:19:19]OFD Sender: No OFD packet to send [11:19:24]OFD Sender: No OFD packet to send [11:19:29]OFD Sender: No OFD packet to send [11:19:34]OFD Sender: No OFD packet to send [11:19:39]OFD Sender: No OFD packet to send [11:19:44]OFD Sender: No OFD packet to send [11:19:49]OFD Sender: No OFD packet to send [11:19:54]OFD Sender: No OFD packet to send [11:19:59]OFD Sender: No OFD packet to send [11:20:04]OFD Sender: No OFD packet to send [11:20:09]OFD Sender: No OFD packet to send [11:20:14]OFD Sender: No OFD packet to send [11:20:19]OFD Sender: No OFD packet to send [11:20:24]OFD Sender: No OFD packet to send [11:20:29]OFD Sender: No OFD packet to send [11:20:34]OFD Sender: No OFD packet to send [11:20:39]OFD Sender: No OFD packet to send [11:20:44]OFD Sender: No OFD packet to send [11:20:49]OFD Sender: No OFD packet to send [11:20:54]OFD Sender: No OFD packet to send [11:20:59]OFD Sender: No OFD packet to send [11:21:04]OFD Sender: No OFD packet to send [11:21:09]OFD Sender: No OFD packet to send [11:21:14]OFD Sender: No OFD packet to send [11:21:19]OFD Sender: No OFD packet to send [11:21:24]OFD Sender: No OFD packet to send [11:21:29]OFD Sender: No OFD packet to send [11:21:34]OFD Sender: No OFD packet to send [11:21:39]OFD Sender: No OFD packet to send [11:21:44]OFD Sender: No OFD packet to send [11:21:49]OFD Sender: No OFD packet to send [11:21:54]OFD Sender: No OFD packet to send [11:21:59]OFD Sender: No OFD packet to send [11:22:04]OFD Sender: No OFD packet to send [11:22:09]OFD Sender: No OFD packet to send [11:22:14]OFD Sender: No OFD packet to send [11:22:19]OFD Sender: No OFD packet to send [11:22:24]OFD Sender: No OFD packet to send [11:22:29]OFD Sender: No OFD packet to send [11:22:34]OFD Sender: No OFD packet to send [11:22:39]OFD Sender: No OFD packet to send [11:22:44]OFD Sender: No OFD packet to send [11:22:49]OFD Sender: No OFD packet to send [11:22:54]OFD Sender: No OFD packet to send [11:22:59]OFD Sender: No OFD packet to send [11:23:04]OFD Sender: No OFD packet to send [11:23:09]OFD Sender: No OFD packet to send [11:23:14]OFD Sender: No OFD packet to send [11:23:19]OFD Sender: No OFD packet to send [11:23:24]OFD Sender: No OFD packet to send [11:23:29]OFD Sender: No OFD packet to send [11:23:34]OFD Sender: No OFD packet to send [11:23:39]OFD Sender: No OFD packet to send [11:23:44]OFD Sender: No OFD packet to send [11:23:49]OFD Sender: No OFD packet to send [11:23:54]OFD Sender: No OFD packet to send [11:23:59]OFD Sender: No OFD packet to send [11:24:04]OFD Sender: No OFD packet to send [11:24:09]OFD Sender: No OFD packet to send [11:24:14]OFD Sender: No OFD packet to send [11:24:19]OFD Sender: No OFD packet to send [11:24:24]OFD Sender: No OFD packet to send [11:24:29]OFD Sender: No OFD packet to send [11:24:34]OFD Sender: No OFD packet to send [11:24:39]OFD Sender: No OFD packet to send [11:24:44]OFD Sender: No OFD packet to send [11:24:49]OFD Sender: No OFD packet to send [11:24:54]OFD Sender: No OFD packet to send [11:24:59]OFD Sender: No OFD packet to send [11:25:04]OFD Sender: No OFD packet to send [11:25:09]OFD Sender: No OFD packet to send [11:25:14]OFD Sender: No OFD packet to send [11:25:19]OFD Sender: No OFD packet to send [11:25:24]OFD Sender: No OFD packet to send [11:25:29]OFD Sender: No OFD packet to send [11:25:34]OFD Sender: No OFD packet to send [11:25:39]OFD Sender: No OFD packet to send [11:25:44]OFD Sender: No OFD packet to send [11:25:49]OFD Sender: No OFD packet to send [11:25:54]OFD Sender: No OFD packet to send [11:25:59]OFD Sender: No OFD packet to send [11:26:04]OFD Sender: No OFD packet to send [11:26:09]OFD Sender: No OFD packet to send [11:26:14]OFD Sender: No OFD packet to send [11:26:19]OFD Sender: No OFD packet to send [11:26:24]OFD Sender: No OFD packet to send [11:26:29]OFD Sender: No OFD packet to send [11:26:34]OFD Sender: No OFD packet to send [11:26:39]OFD Sender: No OFD packet to send [11:26:44]OFD Sender: No OFD packet to send [11:26:49]OFD Sender: No OFD packet to send [11:26:54]OFD Sender: No OFD packet to send [11:26:59]OFD Sender: No OFD packet to send [11:27:04]OFD Sender: No OFD packet to send [11:27:09]OFD Sender: No OFD packet to send [11:27:14]OFD Sender: No OFD packet to send [11:27:19]OFD Sender: No OFD packet to send [11:27:24]OFD Sender: No OFD packet to send [11:27:29]OFD Sender: No OFD packet to send [11:27:34]OFD Sender: No OFD packet to send [11:27:38]accept exits with 5 [11:27:38]New connection [11:27:38]New thread 3066498404 created [11:27:38]Thread 3066641764 joined [11:27:38]Waiting for new connection... [11:27:38] Sock 5.Parse request [11:27:38]Sock 5.Check first char [11:27:38]Sock 5.First char is OK [11:27:38]request: POST /json_proto HTTP/1.0 [11:27:38]Method: POST [11:27:38]URL: /json_proto [11:27:38]Method is POST - this is cgi request [11:27:38]url: /json_proto [11:27:38]query_string will be loaded in cgi processing [11:27:38]execute_cgi json_proto POST (null) [11:27:38]execute_cgi path=json_proto method=POST [11:27:38]POST find Content-Length [11:27:38]Host: 172.17.33.3:8080 [11:27:38]Content-Length: 1202 [11:27:38]Content-Type: application/json [11:27:38] [11:27:38]POST finish read [11:27:38]Found Content-Length = 1202 [11:27:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)346972\u000A12.04.2024 11:09\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 64.30\u000A\u0418\u0422\u041E\u0413: 643.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3685987\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:27:38]execute_script... [11:27:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)346972\u000A12.04.2024 11:09\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 64.30\u000A\u0418\u0422\u041E\u0413: 643.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3685987\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:27:38]POST & json_proto [11:27:38]process_json_proto [11:27:38]json parsed OK: [11:27:38]protocol is kg_v1.0 [11:27:38]action value=print_text [11:27:38]process_action print_text [11:27:38]cmd_print_text [11:27:38]ExternCall_PrintAddStr [11:27:38]wPrintStart [11:27:38]Write to MH i2c: 01 00 00 1F 75 94 [11:27:38]Write i2c OK [11:27:38]MH_I2C_Read... [11:27:38]Read from MH i2c: 01 [11:27:38]MH_I2C_Read... [11:27:38]Read from MH i2c: 01 07 00 [11:27:38]MH_I2C_Read... [11:27:38]Read from MH i2c: 01 07 00 1F 75 00 00 00 00 00 FF 0F A9 [11:27:38]RasterBufferAndPrint [11:27:38]line *****ТОВАРНЫЙ ЧЕК***** [11:27:38]line АЗС 108 [11:27:38]line Партнер нефть [11:27:38]line 02508201610067 [11:27:38]line Кассир : Джумагулова Н. [11:27:38]line Счет N : (1)346972 [11:27:38]line 12.04.2024 11:09 [11:27:38]line ПРОДАЖА [11:27:38]line ТРК (МРК, ГНК): 42 [11:27:38]line Вид ГСМ : 2710124130 [11:27:38]line Аи-92-К-5 [11:27:38]line 10.000 x 64.30 [11:27:38]line ИТОГ: 643.00 [11:27:38]line Тип оплаты: Талоны: Партнер нефть [11:27:38]line 3685987 [11:27:38]line ______________________ [11:27:38]line (подпись) [11:27:38]written 0, free lines is 4095 [11:27:38]Write to MH i2c: 01 00 00 34 75 A9 [11:27:38]Write i2c OK [11:27:38]MH_I2C_Read... [11:27:38]Read from MH i2c: 01 [11:27:38]MH_I2C_Read... [11:27:38]Read from MH i2c: 01 07 00 [11:27:38]MH_I2C_Read... [11:27:38]Read from MH i2c: 01 07 00 34 75 00 00 00 00 00 F8 0D B5 [11:27:38]RasterBufferAndPrint [11:27:38]line [11:27:38]line [11:27:38]line [11:27:38]line [11:27:38]line [11:27:38]written 0, free lines is 3578 [11:27:38]MH_Cut [11:27:38]Write to MH i2c: D1 01 00 3B 75 01 82 [11:27:38]Write i2c OK [11:27:38]MH_I2C_Read... [11:27:38]Read from MH i2c: D1 [11:27:38]MH_I2C_Read... [11:27:38]Read from MH i2c: D1 01 00 [11:27:38]MH_I2C_Read... [11:27:38]Read from MH i2c: D1 01 00 3B 75 00 81 [11:27:38]Write to MH i2c: 01 00 00 3C 75 B1 [11:27:38]Write i2c OK [11:27:38]MH_I2C_Read... [11:27:39]*** Cut start [11:27:39]*** Partial cut [11:27:39]*** CUTSNS_PIN = 1 [11:27:39]*** CUTSNS_PIN = 0 [11:27:39]*** Brake cut motor [11:27:39]Read from MH i2c: 01 [11:27:39]MH_I2C_Read... [11:27:39]*** Stop cut motor [11:27:39]*** Cut end [11:27:39]Read from MH i2c: 01 07 00 [11:27:39]MH_I2C_Read... [11:27:39]Read from MH i2c: 01 07 00 3C 75 00 00 00 00 00 FF 0F C6 [11:27:39]process_action print_text done [11:27:39]requested_data is exist [11:27:39]produce_requested_data [11:27:39]requested_item fm.sn is exist - process it [11:27:39]wFMCommunicate request_size=4 [11:27:39]MH_SAM_APDU [11:27:39]CAPDU: 80 11 00 00 [11:27:39]Write to MH i2c: E2 08 00 3D 75 80 11 00 00 00 00 00 00 2C [11:27:39]Write i2c OK [11:27:39]MH_I2C_Read... [11:27:39]OFD Sender: No OFD packet to send [11:27:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:27:39]Read from MH i2c: E2 [11:27:39]MH_I2C_Read... [11:27:39]Read from MH i2c: E2 17 00 [11:27:39]MH_I2C_Read... [11:27:39]Read from MH i2c: E2 17 00 3D 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 7B [11:27:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:27:39]wFMCommunicate OK [11:27:39]requested_item fd.num is exist - process it [11:27:39]SAM_PROTO_GetFieldsCounters [11:27:39]wFMCommunicate request_size=4 [11:27:39]MH_SAM_APDU [11:27:39]CAPDU: 80 13 00 00 [11:27:39]Write to MH i2c: E2 08 00 3E 75 80 13 00 00 00 00 00 00 2F [11:27:39]Write i2c OK [11:27:39]MH_I2C_Read... [11:27:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:27:39]Read from MH i2c: E2 [11:27:39]MH_I2C_Read... [11:27:39]Read from MH i2c: E2 62 00 [11:27:39]MH_I2C_Read... [11:27:39]Read from MH i2c: E2 62 00 3E 75 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E7 6F 00 00 0E 04 04 00 71 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 54 [11:27:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E7 6F 00 00 0E 04 04 00 71 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:27:39]wFMCommunicate OK [11:27:39]SAM_PROTO_GetFieldsCounters done [11:27:39]requested_item shift.num is exist - process it [11:27:39]requested_item shift.opened is exist - process it [11:27:39]req_shift_opened [11:27:39]FM_GetShiftState [11:27:39]SAM_PROTO_GetShiftState [11:27:39]wFMCommunicate request_size=4 [11:27:39]MH_SAM_APDU [11:27:39]CAPDU: 80 13 01 00 [11:27:39]Write to MH i2c: E2 08 00 3F 75 80 13 01 00 00 00 00 00 31 [11:27:39]Write i2c OK [11:27:39]MH_I2C_Read... [11:27:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:27:39]Read from MH i2c: E2 [11:27:39]MH_I2C_Read... [11:27:39]Read from MH i2c: E2 0E 00 [11:27:39]MH_I2C_Read... [11:27:39]Read from MH i2c: E2 0E 00 3F 75 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 42 [11:27:39]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [11:27:39]wFMCommunicate OK [11:27:39]SAM_PROTO_GetShiftState done [11:27:39]FM_GetShiftState done [11:27:39]req_shift_opened done [11:27:39]requested_item shift.open_date is exist - process it [11:27:39]req_shift_open_date [11:27:39]req_shift_open_date done [11:27:39]produce_requested_data done [11:27:39]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28647,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [11:27:39]process_action_free print_text [11:27:39]json_value_free [11:27:39]json_value_free done [11:27:39]process_json_proto returns [11:27:39]Send response to host [11:27:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28647,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [11:27:39]free response buf [11:27:39]execute_script done [11:27:39]execute_script returns [11:27:39]free content buf [11:27:39]Sock 5.Close socket [11:27:39]Sock 5.Thread stoped [11:27:44]OFD Sender: No OFD packet to send [11:27:49]OFD Sender: No OFD packet to send [11:27:54]OFD Sender: No OFD packet to send [11:27:59]OFD Sender: No OFD packet to send [11:28:04]OFD Sender: No OFD packet to send [11:28:09]OFD Sender: No OFD packet to send [11:28:14]OFD Sender: No OFD packet to send [11:28:19]OFD Sender: No OFD packet to send [11:28:24]OFD Sender: No OFD packet to send [11:28:29]OFD Sender: No OFD packet to send [11:28:34]OFD Sender: No OFD packet to send [11:28:39]OFD Sender: No OFD packet to send [11:28:44]OFD Sender: No OFD packet to send [11:28:49]OFD Sender: No OFD packet to send [11:28:54]OFD Sender: No OFD packet to send [11:28:59]OFD Sender: No OFD packet to send [11:29:04]OFD Sender: No OFD packet to send [11:29:09]OFD Sender: No OFD packet to send [11:29:14]OFD Sender: No OFD packet to send [11:29:19]OFD Sender: No OFD packet to send [11:29:24]OFD Sender: No OFD packet to send [11:29:29]OFD Sender: No OFD packet to send [11:29:34]OFD Sender: No OFD packet to send [11:29:39]OFD Sender: No OFD packet to send [11:29:44]OFD Sender: No OFD packet to send [11:29:49]OFD Sender: No OFD packet to send [11:29:54]OFD Sender: No OFD packet to send [11:29:59]OFD Sender: No OFD packet to send [11:30:04]OFD Sender: No OFD packet to send [11:30:09]OFD Sender: No OFD packet to send [11:30:14]OFD Sender: No OFD packet to send [11:30:19]OFD Sender: No OFD packet to send [11:30:24]OFD Sender: No OFD packet to send [11:30:26]accept exits with 6 [11:30:26]New connection [11:30:26]New thread 3066641764 created [11:30:26]Thread 3066498404 joined [11:30:26]Waiting for new connection... [11:30:26] Sock 6.Parse request [11:30:26]Sock 6.Check first char [11:30:26]Sock 6.First char is OK [11:30:26]request: POST /json_proto HTTP/1.0 [11:30:26]Method: POST [11:30:26]URL: /json_proto [11:30:26]Method is POST - this is cgi request [11:30:26]url: /json_proto [11:30:26]query_string will be loaded in cgi processing [11:30:26]execute_cgi json_proto POST (null) [11:30:26]execute_cgi path=json_proto method=POST [11:30:26]POST find Content-Length [11:30:26]Host: 172.17.33.3:8080 [11:30:26]Content-Length: 681 [11:30:26]Content-Type: application/json [11:30:26] [11:30:26]POST finish read [11:30:26]Found Content-Length = 681 [11:30:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346973", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 15.200, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:30:26]execute_script... [11:30: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)346973", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 15.200, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:30:26]POST & json_proto [11:30:26]process_json_proto [11:30:26]json parsed OK: [11:30:26]protocol is kg_v1.0 [11:30:26]action value=close_receipt [11:30:26]process_action close_receipt [11:30:26]cmd_close_receipt [11:30:26]MH_GetDate [11:30:26]Write to MH i2c: F0 00 00 40 75 A4 [11:30:26]Write i2c OK [11:30:26]MH_I2C_Read... [11:30:26]Read from MH i2c: F0 [11:30:26]MH_I2C_Read... [11:30:26]Read from MH i2c: F0 09 00 [11:30:26]MH_I2C_Read... [11:30:26]Read from MH i2c: F0 09 00 40 75 00 59 1B 19 66 23 5B 8F 65 12 [11:30:26]GetLastDocTimeStamp 1712920333 [11:30:26]current date 1712921433 [11:30:26]FM_GetShiftState [11:30:26]SAM_PROTO_GetShiftState [11:30:26]wFMCommunicate request_size=4 [11:30:26]MH_SAM_APDU [11:30:26]CAPDU: 80 13 01 00 [11:30:26]Write to MH i2c: E2 08 00 41 75 80 13 01 00 00 00 00 00 33 [11:30:26]Write i2c OK [11:30:26]MH_I2C_Read... [11:30:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:30:26]Read from MH i2c: E2 [11:30:26]MH_I2C_Read... [11:30:26]Read from MH i2c: E2 0E 00 [11:30:26]MH_I2C_Read... [11:30:26]Read from MH i2c: E2 0E 00 41 75 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 44 [11:30:26]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [11:30:26]wFMCommunicate OK [11:30:26]SAM_PROTO_GetShiftState done [11:30:26]FM_GetShiftState done [11:30:26]opened in 1712881416 [11:30:26]opened+sec_in_day 1712967816 [11:30:26]quantity*price = 50008 [11:30:26]sum+1 = 50009 [11:30:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 97 12.04.2024 11:30 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28648 ФПД: 197170644291473 1/tax-web-control/client/api/v1/ticket?date=20240412T113033&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28648&fm=197170644291473&tin=02508201610067®Number=0000138879044617&sum=50000 [11:30:27]StoreToDocumentArchive [11:30:27]shift 113 fd 28648 [11:30:27]save to /storage/0113/doc_00028648 [11:30:27]save last doc name /storage/0113/doc_00028648 to /storage/kkm_last_doc_name [11:30:27]save OK [11:30:27]Clear old archive folders... [11:30:27]ProcessDocumentItem done err = 0, tmpTLVsize=250 [11:30:27]tlvbuf is 01BF9DF0 [11:30:27]SAM_PROTO_ClearQueue [11:30:27]wFMCommunicate request_size=4 [11:30:27]MH_SAM_APDU [11:30:27]CAPDU: 80 09 00 00 [11:30:27]Write to MH i2c: E2 08 00 4E 75 80 09 00 00 00 00 00 00 35 [11:30:27]Write i2c OK [11:30:27]MH_I2C_Read... [11:30:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:30:27]Read from MH i2c: E2 [11:30:27]MH_I2C_Read... [11:30:27]Read from MH i2c: E2 03 00 [11:30:27]MH_I2C_Read... [11:30:27]Read from MH i2c: E2 03 00 4E 75 00 90 00 37 [11:30:27]RAPDU: 90 00 [11:30:27]wFMCommunicate OK [11:30:27]SAM_PROTO_ClearQueue done [11:30:27]KKMCreateOFDPacket [11:30:27]OFDProtocolAddRootSTLVToBuf [11:30:27]FM_MakeSignedData [11:30:27]FM_MakeSignedData [11:30:27]SAM_PROTO_SignData [11:30:27]wFMCommunicate request_size=4 [11:30:27]MH_SAM_APDU [11:30:27]CAPDU: 80 0D 01 02 [11:30:27]Write to MH i2c: E2 08 00 4F 75 80 0D 01 02 00 00 00 00 3D [11:30:27]Write i2c OK [11:30:27]MH_I2C_Read... [11:30:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:30:27]Read from MH i2c: E2 [11:30:27]MH_I2C_Read... [11:30:27]Read from MH i2c: E2 03 00 [11:30:27]MH_I2C_Read... [11:30:27]Read from MH i2c: E2 03 00 4F 75 00 90 00 38 [11:30:27]RAPDU: 90 00 [11:30:27]wFMCommunicate OK [11:30:27]wFMCommunicate request_size=255 [11:30:27]MH_SAM_APDU [11:30:27]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 61 00 00 00 F4 03 04 00 59 1B 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E8 6F 00 00 35 04 06 00 B3 53 [11:30:27]Write to MH i2c: E2 02 01 50 75 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 61 00 00 00 F4 03 04 00 59 1B 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E8 6F 00 00 35 04 06 00 B3 53 00 00 86 [11:30:27]Write i2c OK [11:30:27]MH_I2C_Read... [11:30:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:30:27]Read from MH i2c: E2 [11:30:27]MH_I2C_Read... [11:30:27]Read from MH i2c: E2 03 00 [11:30:27]MH_I2C_Read... [11:30:27]Read from MH i2c: E2 03 00 50 75 00 90 00 39 [11:30:27]RAPDU: 90 00 [11:30:27]wFMCommunicate OK [11:30:27]wFMCommunicate request_size=9 [11:30:27]MH_SAM_APDU [11:30:27]CAPDU: 80 0D 02 02 04 5E 36 8F 91 [11:30:27]Write to MH i2c: E2 0C 00 51 75 80 0D 02 02 04 00 5E 36 8F 91 00 00 FC [11:30:27]Write i2c OK [11:30:27]MH_I2C_Read... [11:30:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:30:27]Read from MH i2c: E2 [11:30:27]MH_I2C_Read... [11:30:27]Read from MH i2c: E2 03 00 [11:30:27]MH_I2C_Read... [11:30:27]Read from MH i2c: E2 03 00 51 75 00 90 00 3A [11:30:27]RAPDU: 90 00 [11:30:27]wFMCommunicate OK [11:30:27]wFMCommunicate request_size=4 [11:30:27]MH_SAM_APDU [11:30:27]CAPDU: 80 0D 03 02 [11:30:27]Write to MH i2c: E2 08 00 52 75 80 0D 03 02 00 00 00 00 42 [11:30:27]Write i2c OK [11:30:27]MH_I2C_Read... [11:30:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:30:27]Read from MH i2c: E2 [11:30:27]MH_I2C_Read... [11:30:27]Read from MH i2c: E2 0B 00 [11:30:27]MH_I2C_Read... [11:30:27]Read from MH i2c: E2 0B 00 52 75 00 2D F6 48 60 E5 4D 80 D9 90 00 99 [11:30:27]RAPDU: 2D F6 48 60 E5 4D 80 D9 90 00 [11:30:27]wFMCommunicate OK [11:30:27]SAM_PROTO_SignData done [11:30:27]FM_MakeSignedData done [11:30:27]CreateOFDProtocolMessage [11:30:27]wFMCommunicate request_size=4 [11:30:27]MH_SAM_APDU [11:30:27]CAPDU: 80 11 00 00 [11:30:27]Write to MH i2c: E2 08 00 53 75 80 11 00 00 00 00 00 00 42 [11:30:27]Write i2c OK [11:30:27]MH_I2C_Read... [11:30:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:30:27]Read from MH i2c: E2 [11:30:27]MH_I2C_Read... [11:30:27]Read from MH i2c: E2 17 00 [11:30:27]MH_I2C_Read... [11:30:27]Read from MH i2c: E2 17 00 53 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 91 [11:30:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:30:27]wFMCommunicate OK [11:30:27]CreateOFDProtocolMessage done [11:30:27]OFDSenderStorePacket 28648 [11:30:27]StoreOFDPacket docnum=28648 [11:30:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 88 58 06 01 EC 7F 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 61 00 00 00 F4 03 04 00 59 1B 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E8 6F 00 00 35 04 06 00 B3 53 5E 36 8F 91 2D F6 48 60 E5 4D 80 D9 [11:30:27]CheckFolder [11:30:27]dirname=/storage/ofd_packets [11:30:27]CheckFolder done [11:30:27]ProducePacketName [11:30:27]name=ofd_packets/00028648 [11:30:27]NVStorageSaveData ofd_packets/00028648 [11:30:27]File name is /storage/ofd_packets/00028648 [11:30:27]Write 300 bytes [11:30:27]NVStorageSaveData done [11:30:27]OFDSenderStorePacket done [11:30:27]KKMCreateOFDPacket done [11:30:27]NVStorageSaveData kkm_last_timestamp [11:30:27]File name is /storage/kkm_last_timestamp [11:30:27]Write 4 bytes [11:30:27]NVStorageSaveData done [11:30:27]ExternCall_PrintAddStr [11:30:27]wPrintStart [11:30:27]Write to MH i2c: 01 00 00 54 75 C9 [11:30:27]Write i2c OK [11:30:27]MH_I2C_Read... [11:30:27]Read from MH i2c: 01 [11:30:27]MH_I2C_Read... [11:30:27]Read from MH i2c: 01 07 00 [11:30:27]MH_I2C_Read... [11:30:27]Read from MH i2c: 01 07 00 54 75 00 00 00 00 00 FF 0F DE [11:30:27]RasterBufferAndPrint [11:30:27]line Счет N : (1)346973 [11:30:27]line ИНН: 02508201610067 [11:30:27]line Контрольно-Кассовый Чек [11:30:27]line ПРОДАЖА [11:30:27]line ТРК (МРК, ГНК) : 71 [11:30:27]line Товар: 2711129700 [11:30:27]line ГАЗ-К-5 [11:30:27]line 15.200 * 32.90 [11:30:27]line = 500.08 [11:30:27]line НДС 12% НСП 1% [11:30:27]line > о реализуемом товаре [11:30:27]line ОКРУГЛЕНИЕ: -0.08 [11:30:27]line ИТОГО: 500.00 [11:30:27]line Внесено: 500.00 [11:30:27]line СДАЧА: 0.00 [11:30:27]line НСП 1% : 4.42 [11:30:27]line НДС 12% : 53.11 [11:30:27]line Наличными: 500.00 [11:30:27]line Безнал.: 0.00 [11:30:27]line Место: АЗС № 108 "Партнер Нефть" [11:30:27]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [11:30:27]line СНО: Общий режим [11:30:27]line Чек 97 12.04.2024 11:30 [11:30:27]line Смена: 113 ФФД: 1.0 [11:30:27]line ЗНМ: 0300000027 [11:30:27]line РНМ: 0000138879044617 [11:30:27]line Версия ККМ: 001 [11:30:27]line ФМ: 0000000000963154 [11:30:27]line ФД: 28648 [11:30:27]line ФПД: 197170644291473 [11:30:28]line 1/tax-web-control/client/api/v1/ticket?date=20240412T113033&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28648&fm=197170644291473&tin=02508201610067®Number=0000138879044617&sum=50000 [11:30:28]OFD Sender: Processing packet 28648 [packets to send 8, broken 7] [11:30:28]ProducePacketName [11:30:28]name=ofd_packets/00028648 [11:30:28]OFD Sender: To server: pG, [11:30:28]CommunicateWithHost lk.salyk.kg:30040 [11:30:28]ConnectInit lk.salyk.kg [11:30:28]written 0, free lines is 4095 [11:30:28]Connected sock=7 [11:30:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 88 58 06 01 EC 7F 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 61 00 00 00 F4 03 04 00 59 1B 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E8 6F 00 00 35 04 06 00 B3 53 5E 36 8F 91 2D F6 48 60 E5 4D 80 D9 [11:30:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 3C D2 47 00 85 9B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E8 6F 00 00 F4 03 04 00 04 C6 18 66 B6 04 01 00 00 3A 01 C5 67 87 BE FD D4 [11:30:28]CommunicateWithHost err = 0 [11:30:28]CheckOFDResponse [11:30:28]1017 (14) - 77093643461234 [11:30:28]1041 (16) - 0000000000963154 [11:30:28]1040 (4) - 28648 [11:30:28]1012 (4) - 12.04.2024 05:26 [11:30:28]1206 (1) - 0 [11:30:28]OFD Sender: Remove packet 28648 [11:30:28]ProducePacketName [11:30:28]name=ofd_packets/00028648 [11:30:28]NVStorageDeleteData [11:30:28]Write to MH i2c: 01 00 00 7E 75 F3 [11:30:28]Write i2c OK [11:30:28]MH_I2C_Read... [11:30:28]Read from MH i2c: 01 [11:30:28]MH_I2C_Read... [11:30:28]Read from MH i2c: 01 07 00 [11:30:28]MH_I2C_Read... [11:30:28]Read from MH i2c: 01 07 00 7E 75 00 00 00 00 00 B8 0C BE [11:30:28]RasterBufferAndPrint [11:30:28]line [11:30:28]line [11:30:28]line [11:30:28]line [11:30:28]line [11:30:28]written 0, free lines is 3260 [11:30:28]MH_Cut [11:30:28]Write to MH i2c: D1 01 00 85 75 01 CC [11:30:28]Write i2c OK [11:30:28]MH_I2C_Read... [11:30:28]Read from MH i2c: D1 [11:30:28]MH_I2C_Read... [11:30:28]Read from MH i2c: D1 01 00 [11:30:28]MH_I2C_Read... [11:30:28]Read from MH i2c: D1 01 00 85 75 00 CB [11:30:28]Write to MH i2c: 01 00 00 86 75 FB [11:30:28]Write i2c OK [11:30:28]MH_I2C_Read... [11:30:28]OFD Sender: No OFD packet to send [11:30:29]*** Cut start [11:30:29]*** Partial cut [11:30:29]*** CUTSNS_PIN = 1 [11:30:29]*** CUTSNS_PIN = 0 [11:30:29]*** Brake cut motor [11:30:29]Read from MH i2c: 01 [11:30:29]MH_I2C_Read... [11:30:29]*** Stop cut motor [11:30:29]*** Cut end [11:30:29]Read from MH i2c: 01 07 00 [11:30:29]MH_I2C_Read... [11:30:29]Read from MH i2c: 01 07 00 86 75 00 00 00 00 00 FF 0F 10 [11:30:29]process_action close_receipt done [11:30:29]requested_data is exist [11:30:29]produce_requested_data [11:30:29]requested_item fm.sn is exist - process it [11:30:29]wFMCommunicate request_size=4 [11:30:29]MH_SAM_APDU [11:30:29]CAPDU: 80 11 00 00 [11:30:29]Write to MH i2c: E2 08 00 87 75 80 11 00 00 00 00 00 00 76 [11:30:29]Write i2c OK [11:30:29]MH_I2C_Read... [11:30:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:30:30]Read from MH i2c: E2 [11:30:30]MH_I2C_Read... [11:30:30]Read from MH i2c: E2 17 00 [11:30:30]MH_I2C_Read... [11:30:30]Read from MH i2c: E2 17 00 87 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 C5 [11:30:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:30:30]wFMCommunicate OK [11:30:30]requested_item fd.num is exist - process it [11:30:30]SAM_PROTO_GetFieldsCounters [11:30:30]wFMCommunicate request_size=4 [11:30:30]MH_SAM_APDU [11:30:30]CAPDU: 80 13 00 00 [11:30:30]Write to MH i2c: E2 08 00 88 75 80 13 00 00 00 00 00 00 79 [11:30:30]Write i2c OK [11:30:30]MH_I2C_Read... [11:30:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:30:30]Read from MH i2c: E2 [11:30:30]MH_I2C_Read... [11:30:30]Read from MH i2c: E2 62 00 [11:30:30]MH_I2C_Read... [11:30:30]Read from MH i2c: E2 62 00 88 75 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E8 6F 00 00 0E 04 04 00 71 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 A2 [11:30:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E8 6F 00 00 0E 04 04 00 71 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:30:30]wFMCommunicate OK [11:30:30]SAM_PROTO_GetFieldsCounters done [11:30:30]requested_item shift.num is exist - process it [11:30:30]requested_item shift.opened is exist - process it [11:30:30]req_shift_opened [11:30:30]FM_GetShiftState [11:30:30]SAM_PROTO_GetShiftState [11:30:30]wFMCommunicate request_size=4 [11:30:30]MH_SAM_APDU [11:30:30]CAPDU: 80 13 01 00 [11:30:30]Write to MH i2c: E2 08 00 89 75 80 13 01 00 00 00 00 00 7B [11:30:30]Write i2c OK [11:30:30]MH_I2C_Read... [11:30:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:30:30]Read from MH i2c: E2 [11:30:30]MH_I2C_Read... [11:30:30]Read from MH i2c: E2 0E 00 [11:30:30]MH_I2C_Read... [11:30:30]Read from MH i2c: E2 0E 00 89 75 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 8C [11:30:30]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [11:30:30]wFMCommunicate OK [11:30:30]SAM_PROTO_GetShiftState done [11:30:30]FM_GetShiftState done [11:30:30]req_shift_opened done [11:30:30]requested_item shift.open_date is exist - process it [11:30:30]req_shift_open_date [11:30:30]req_shift_open_date done [11:30:30]produce_requested_data done [11:30:30]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28648,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [11:30:30]process_action_free close_receipt [11:30:30]json_value_free [11:30:30]json_value_free done [11:30:30]process_json_proto returns [11:30:30]Send response to host [11:30:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28648,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [11:30:30]free response buf [11:30:30]execute_script done [11:30:30]execute_script returns [11:30:30]free content buf [11:30:30]Sock 6.Close socket [11:30:30]Sock 6.Thread stoped [11:30:33]OFD Sender: No OFD packet to send [11:30:38]OFD Sender: No OFD packet to send [11:30:43]OFD Sender: No OFD packet to send [11:30:48]OFD Sender: No OFD packet to send [11:30:53]OFD Sender: No OFD packet to send [11:30:58]OFD Sender: No OFD packet to send [11:31:02]accept exits with 5 [11:31:02]New connection [11:31:02]New thread 3066498404 created [11:31:02]Thread 3066641764 joined [11:31:02]Waiting for new connection... [11:31:02] Sock 5.Parse request [11:31:02]Sock 5.Check first char [11:31:02]Sock 5.First char is OK [11:31:02]request: POST /json_proto HTTP/1.0 [11:31:02]Method: POST [11:31:02]URL: /json_proto [11:31:02]Method is POST - this is cgi request [11:31:02]url: /json_proto [11:31:02]query_string will be loaded in cgi processing [11:31:02]execute_cgi json_proto POST (null) [11:31:02]execute_cgi path=json_proto method=POST [11:31:02]POST find Content-Length [11:31:02]Host: 172.17.33.3:8080 [11:31:02]Content-Length: 836 [11:31:02]Content-Type: application/json [11:31:02] [11:31:02]POST finish read [11:31:02]Found Content-Length = 836 [11:31:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346974", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 15.320, "sum" : 1000.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" : 1000.40 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:31:02]execute_script... [11:31:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346974", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 15.320, "sum" : 1000.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" : 1000.40 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:31:02]POST & json_proto [11:31:02]process_json_proto [11:31:02]json parsed OK: [11:31:02]protocol is kg_v1.0 [11:31:02]action value=close_receipt [11:31:02]process_action close_receipt [11:31:02]cmd_close_receipt [11:31:02]MH_GetDate [11:31:02]Write to MH i2c: F0 00 00 8A 75 EE [11:31:02]Write i2c OK [11:31:02]MH_I2C_Read... [11:31:02]Read from MH i2c: F0 [11:31:02]MH_I2C_Read... [11:31:02]Read from MH i2c: F0 09 00 [11:31:02]MH_I2C_Read... [11:31:02]Read from MH i2c: F0 09 00 8A 75 00 7D 1B 19 66 23 5B 8F 65 80 [11:31:02]GetLastDocTimeStamp 1712921433 [11:31:02]current date 1712921469 [11:31:02]FM_GetShiftState [11:31:02]SAM_PROTO_GetShiftState [11:31:02]wFMCommunicate request_size=4 [11:31:02]MH_SAM_APDU [11:31:02]CAPDU: 80 13 01 00 [11:31:02]Write to MH i2c: E2 08 00 8B 75 80 13 01 00 00 00 00 00 7D [11:31:02]Write i2c OK [11:31:02]MH_I2C_Read... [11:31:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:31:02]Read from MH i2c: E2 [11:31:02]MH_I2C_Read... [11:31:02]Read from MH i2c: E2 0E 00 [11:31:02]MH_I2C_Read... [11:31:02]Read from MH i2c: E2 0E 00 8B 75 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 8E [11:31:02]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [11:31:02]wFMCommunicate OK [11:31:02]SAM_PROTO_GetShiftState done [11:31:02]FM_GetShiftState done [11:31:02]opened in 1712881416 [11:31:02]opened+sec_in_day 1712967816 [11:31:02]quantity*price = 100039 [11:31:02]sum+1 = 100041 [11:31:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.40 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 0.00 Безнал.: 1000.40 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 98 12.04.2024 11:31 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 28649 ФПД: 123043252773 1/tax-web-control/client/api/v1/ticket?date=20240412T113110&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28649&fm=123043252773&tin=02508201610067®Number=0000138879044617&sum=100040 [11:31:03]StoreToDocumentArchive [11:31:03]shift 113 fd 28649 [11:31:03]save to /storage/0113/doc_00028649 [11:31:03]save last doc name /storage/0113/doc_00028649 to /storage/kkm_last_doc_name [11:31:03]save OK [11:31:03]Clear old archive folders... [11:31:03]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:31:03]tlvbuf is 01ABC0C0 [11:31:03]SAM_PROTO_ClearQueue [11:31:03]wFMCommunicate request_size=4 [11:31:03]MH_SAM_APDU [11:31:03]CAPDU: 80 09 00 00 [11:31:03]Write to MH i2c: E2 08 00 98 75 80 09 00 00 00 00 00 00 7F [11:31:03]Write i2c OK [11:31:03]MH_I2C_Read... [11:31:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:31:03]Read from MH i2c: E2 [11:31:03]MH_I2C_Read... [11:31:03]Read from MH i2c: E2 03 00 [11:31:03]MH_I2C_Read... [11:31:03]Read from MH i2c: E2 03 00 98 75 00 90 00 81 [11:31:03]RAPDU: 90 00 [11:31:03]wFMCommunicate OK [11:31:03]SAM_PROTO_ClearQueue done [11:31:03]KKMCreateOFDPacket [11:31:03]OFDProtocolAddRootSTLVToBuf [11:31:03]FM_MakeSignedData [11:31:03]FM_MakeSignedData [11:31:03]SAM_PROTO_SignData [11:31:03]wFMCommunicate request_size=4 [11:31:03]MH_SAM_APDU [11:31:03]CAPDU: 80 0D 01 02 [11:31:03]Write to MH i2c: E2 08 00 99 75 80 0D 01 02 00 00 00 00 87 [11:31:03]Write i2c OK [11:31:03]MH_I2C_Read... [11:31:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:31:03]Read from MH i2c: E2 [11:31:03]MH_I2C_Read... [11:31:03]Read from MH i2c: E2 03 00 [11:31:03]MH_I2C_Read... [11:31:03]Read from MH i2c: E2 03 00 99 75 00 90 00 82 [11:31:03]RAPDU: 90 00 [11:31:03]wFMCommunicate OK [11:31:03]wFMCommunicate request_size=255 [11:31:03]MH_SAM_APDU [11:31:03]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 3B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 7E 1B 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E9 6F 00 00 35 04 06 00 [11:31:03]Write to MH i2c: E2 02 01 9A 75 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 3B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 7E 1B 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E9 6F 00 00 35 04 06 00 00 00 57 [11:31:03]Write i2c OK [11:31:03]MH_I2C_Read... [11:31:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:31:03]Read from MH i2c: E2 [11:31:03]MH_I2C_Read... [11:31:03]Read from MH i2c: E2 03 00 [11:31:03]MH_I2C_Read... [11:31:03]Read from MH i2c: E2 03 00 9A 75 00 90 00 83 [11:31:03]RAPDU: 90 00 [11:31:03]wFMCommunicate OK [11:31:03]wFMCommunicate request_size=11 [11:31:03]MH_SAM_APDU [11:31:03]CAPDU: 80 0D 02 02 06 00 1C A5 F3 0A 25 [11:31:03]Write to MH i2c: E2 0E 00 9B 75 80 0D 02 02 06 00 00 1C A5 F3 0A 25 00 00 79 [11:31:03]Write i2c OK [11:31:03]MH_I2C_Read... [11:31:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:31:03]Read from MH i2c: E2 [11:31:03]MH_I2C_Read... [11:31:03]Read from MH i2c: E2 03 00 [11:31:03]MH_I2C_Read... [11:31:03]Read from MH i2c: E2 03 00 9B 75 00 90 00 84 [11:31:03]RAPDU: 90 00 [11:31:03]wFMCommunicate OK [11:31:03]wFMCommunicate request_size=4 [11:31:03]MH_SAM_APDU [11:31:03]CAPDU: 80 0D 03 02 [11:31:03]Write to MH i2c: E2 08 00 9C 75 80 0D 03 02 00 00 00 00 8C [11:31:03]Write i2c OK [11:31:03]MH_I2C_Read... [11:31:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:31:03]Read from MH i2c: E2 [11:31:03]MH_I2C_Read... [11:31:03]Read from MH i2c: E2 0B 00 [11:31:03]MH_I2C_Read... [11:31:03]Read from MH i2c: E2 0B 00 9C 75 00 2A E2 B7 74 EB 22 A2 44 90 00 B7 [11:31:03]RAPDU: 2A E2 B7 74 EB 22 A2 44 90 00 [11:31:03]wFMCommunicate OK [11:31:03]SAM_PROTO_SignData done [11:31:03]FM_MakeSignedData done [11:31:03]CreateOFDProtocolMessage [11:31:03]wFMCommunicate request_size=4 [11:31:03]MH_SAM_APDU [11:31:03]CAPDU: 80 11 00 00 [11:31:03]Write to MH i2c: E2 08 00 9D 75 80 11 00 00 00 00 00 00 8C [11:31:03]Write i2c OK [11:31:03]MH_I2C_Read... [11:31:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:31:03]Read from MH i2c: E2 [11:31:03]MH_I2C_Read... [11:31:03]Read from MH i2c: E2 17 00 [11:31:03]MH_I2C_Read... [11:31:03]Read from MH i2c: E2 17 00 9D 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 DB [11:31:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:31:03]wFMCommunicate OK [11:31:03]CreateOFDProtocolMessage done [11:31:03]OFDSenderStorePacket 28649 [11:31:03]StoreOFDPacket docnum=28649 [11:31:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 C0 B0 08 01 D2 40 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 3B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 7E 1B 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E9 6F 00 00 35 04 06 00 00 1C A5 F3 0A 25 2A E2 B7 74 EB 22 A2 44 [11:31:03]CheckFolder [11:31:03]dirname=/storage/ofd_packets [11:31:03]CheckFolder done [11:31:03]ProducePacketName [11:31:03]name=ofd_packets/00028649 [11:31:03]NVStorageSaveData ofd_packets/00028649 [11:31:03]File name is /storage/ofd_packets/00028649 [11:31:03]Write 302 bytes [11:31:03]NVStorageSaveData done [11:31:03]OFDSenderStorePacket done [11:31:03]KKMCreateOFDPacket done [11:31:03]NVStorageSaveData kkm_last_timestamp [11:31:03]File name is /storage/kkm_last_timestamp [11:31:03]Write 4 bytes [11:31:03]NVStorageSaveData done [11:31:03]ExternCall_PrintAddStr [11:31:03]wPrintStart [11:31:03]Write to MH i2c: 01 00 00 9E 75 13 [11:31:03]Write i2c OK [11:31:03]MH_I2C_Read... [11:31:03]Read from MH i2c: 01 [11:31:03]MH_I2C_Read... [11:31:03]Read from MH i2c: 01 07 00 [11:31:03]MH_I2C_Read... [11:31:03]Read from MH i2c: 01 07 00 9E 75 00 00 00 00 00 FF 0F 28 [11:31:03]RasterBufferAndPrint [11:31:03]line Счет N : (1)346974 [11:31:03]line ИНН: 02508201610067 [11:31:03]line Контрольно-Кассовый Чек [11:31:03]line ПРОДАЖА [11:31:03]line ТРК (МРК, ГНК) : 41 [11:31:03]line Товар: 2710124130 [11:31:03]line SUPER-92-К-5 [11:31:03]line 15.320 * 65.30 [11:31:03]line = 1000.40 [11:31:03]line НДС 12% НСП 1% [11:31:03]line > о реализуемом товаре [11:31:03]line ИТОГО: 1000.40 [11:31:03]line НСП 1% : 8.85 [11:31:03]line НДС 12% : 106.24 [11:31:03]line Наличными: 0.00 [11:31:03]line Безнал.: 1000.40 [11:31:03]line Место: АЗС № 108 "Партнер Нефть" [11:31:03]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [11:31:03]line СНО: Общий режим [11:31:03]line Чек 98 12.04.2024 11:31 [11:31:03]line Смена: 113 ФФД: 1.0 [11:31:03]line ЗНМ: 0300000027 [11:31:03]line РНМ: 0000138879044617 [11:31:03]line Версия ККМ: 001 [11:31:03]line Платежная система: АКБ Кыргызстан [11:31:03]line ФМ: 0000000000963154 [11:31:03]line ФД: 28649 [11:31:03]line ФПД: 123043252773 [11:31:03]line 1/tax-web-control/client/api/v1/ticket?date=20240412T113110&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28649&fm=123043252773&tin=02508201610067®Number=0000138879044617&sum=100040 [11:31:04]OFD Sender: Processing packet 28649 [packets to send 8, broken 7] [11:31:04]ProducePacketName [11:31:04]name=ofd_packets/00028649 [11:31:04]OFD Sender: To server: pG, [11:31:04]CommunicateWithHost lk.salyk.kg:30040 [11:31:04]ConnectInit lk.salyk.kg [11:31:04]written 0, free lines is 4095 [11:31:04]Connected sock=9 [11:31:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 C0 B0 08 01 D2 40 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 3B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 7E 1B 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E9 6F 00 00 35 04 06 00 00 1C A5 F3 0A 25 2A E2 B7 74 EB 22 A2 44 [11:31:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 DA 8C 47 00 51 6B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E9 6F 00 00 F4 03 04 00 28 C6 18 66 B6 04 01 00 00 58 39 1E 37 8A F3 91 AE [11:31:04]CommunicateWithHost err = 0 [11:31:04]CheckOFDResponse [11:31:04]1017 (14) - 77093643461234 [11:31:04]1041 (16) - 0000000000963154 [11:31:04]1040 (4) - 28649 [11:31:04]1012 (4) - 12.04.2024 05:27 [11:31:04]1206 (1) - 0 [11:31:04]OFD Sender: Remove packet 28649 [11:31:04]ProducePacketName [11:31:04]name=ofd_packets/00028649 [11:31:04]NVStorageDeleteData [11:31:04]Write to MH i2c: 01 00 00 C7 75 3C [11:31:04]Write i2c OK [11:31:04]MH_I2C_Read... [11:31:04]Read from MH i2c: 01 [11:31:04]MH_I2C_Read... [11:31:04]Read from MH i2c: 01 07 00 [11:31:04]MH_I2C_Read... [11:31:04]Read from MH i2c: 01 07 00 C7 75 00 00 00 00 00 E6 0C 35 [11:31:04]RasterBufferAndPrint [11:31:04]line [11:31:04]line [11:31:04]line [11:31:04]line [11:31:04]line [11:31:04]written 0, free lines is 3308 [11:31:04]MH_Cut [11:31:04]Write to MH i2c: D1 01 00 CE 75 01 15 [11:31:04]Write i2c OK [11:31:04]MH_I2C_Read... [11:31:04]Read from MH i2c: D1 [11:31:04]MH_I2C_Read... [11:31:04]Read from MH i2c: D1 01 00 [11:31:04]MH_I2C_Read... [11:31:04]Read from MH i2c: D1 01 00 CE 75 00 14 [11:31:04]Write to MH i2c: 01 00 00 CF 75 44 [11:31:04]Write i2c OK [11:31:04]MH_I2C_Read... [11:31:04]OFD Sender: No OFD packet to send [11:31:05]*** Cut start [11:31:05]*** Partial cut [11:31:05]*** CUTSNS_PIN = 1 [11:31:05]*** CUTSNS_PIN = 0 [11:31:05]*** Brake cut motor [11:31:06]Read from MH i2c: 01 [11:31:06]MH_I2C_Read... [11:31:06]*** Stop cut motor [11:31:06]*** Cut end [11:31:06]Read from MH i2c: 01 07 00 [11:31:06]MH_I2C_Read... [11:31:06]Read from MH i2c: 01 07 00 CF 75 00 00 00 00 00 FF 0F 59 [11:31:06]process_action close_receipt done [11:31:06]requested_data is exist [11:31:06]produce_requested_data [11:31:06]requested_item fm.sn is exist - process it [11:31:06]wFMCommunicate request_size=4 [11:31:06]MH_SAM_APDU [11:31:06]CAPDU: 80 11 00 00 [11:31:06]Write to MH i2c: E2 08 00 D0 75 80 11 00 00 00 00 00 00 BF [11:31:06]Write i2c OK [11:31:06]MH_I2C_Read... [11:31:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:31:06]Read from MH i2c: E2 [11:31:06]MH_I2C_Read... [11:31:06]Read from MH i2c: E2 17 00 [11:31:06]MH_I2C_Read... [11:31:06]Read from MH i2c: E2 17 00 D0 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 0E [11:31:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:31:06]wFMCommunicate OK [11:31:06]requested_item fd.num is exist - process it [11:31:06]SAM_PROTO_GetFieldsCounters [11:31:06]wFMCommunicate request_size=4 [11:31:06]MH_SAM_APDU [11:31:06]CAPDU: 80 13 00 00 [11:31:06]Write to MH i2c: E2 08 00 D1 75 80 13 00 00 00 00 00 00 C2 [11:31:06]Write i2c OK [11:31:06]MH_I2C_Read... [11:31:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:31:06]Read from MH i2c: E2 [11:31:06]MH_I2C_Read... [11:31:06]Read from MH i2c: E2 62 00 [11:31:06]MH_I2C_Read... [11:31:06]Read from MH i2c: E2 62 00 D1 75 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E9 6F 00 00 0E 04 04 00 71 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 EF [11:31:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E9 6F 00 00 0E 04 04 00 71 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:31:06]wFMCommunicate OK [11:31:06]SAM_PROTO_GetFieldsCounters done [11:31:06]requested_item shift.num is exist - process it [11:31:06]requested_item shift.opened is exist - process it [11:31:06]req_shift_opened [11:31:06]FM_GetShiftState [11:31:06]SAM_PROTO_GetShiftState [11:31:06]wFMCommunicate request_size=4 [11:31:06]MH_SAM_APDU [11:31:06]CAPDU: 80 13 01 00 [11:31:06]Write to MH i2c: E2 08 00 D2 75 80 13 01 00 00 00 00 00 C4 [11:31:06]Write i2c OK [11:31:06]MH_I2C_Read... [11:31:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:31:06]Read from MH i2c: E2 [11:31:06]MH_I2C_Read... [11:31:06]Read from MH i2c: E2 0E 00 [11:31:06]MH_I2C_Read... [11:31:06]Read from MH i2c: E2 0E 00 D2 75 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 D5 [11:31:06]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [11:31:06]wFMCommunicate OK [11:31:06]SAM_PROTO_GetShiftState done [11:31:06]FM_GetShiftState done [11:31:06]req_shift_opened done [11:31:06]requested_item shift.open_date is exist - process it [11:31:06]req_shift_open_date [11:31:06]req_shift_open_date done [11:31:06]produce_requested_data done [11:31:06]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28649,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [11:31:06]process_action_free close_receipt [11:31:06]json_value_free [11:31:06]json_value_free done [11:31:06]process_json_proto returns [11:31:06]Send response to host [11:31:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28649,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [11:31:06]free response buf [11:31:06]execute_script done [11:31:06]execute_script returns [11:31:06]free content buf [11:31:06]Sock 5.Close socket [11:31:06]Sock 5.Thread stoped [11:31:09]OFD Sender: No OFD packet to send [11:31:14]OFD Sender: No OFD packet to send [11:31:19]OFD Sender: No OFD packet to send [11:31:24]OFD Sender: No OFD packet to send [11:31:29]OFD Sender: No OFD packet to send [11:31:34]OFD Sender: No OFD packet to send [11:31:39]OFD Sender: No OFD packet to send [11:31:44]OFD Sender: No OFD packet to send [11:31:49]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:11]accept exits with 6 [11:34:11]New connection [11:34:11]New thread 3066641764 created [11:34:11]Thread 3066498404 joined [11:34:11]Waiting for new connection... [11:34:11] Sock 6.Parse request [11:34:11]Sock 6.Check first char [11:34:11]Sock 6.First char is OK [11:34:11]request: POST /json_proto HTTP/1.0 [11:34:11]Method: POST [11:34:11]URL: /json_proto [11:34:11]Method is POST - this is cgi request [11:34:11]url: /json_proto [11:34:11]query_string will be loaded in cgi processing [11:34:11]execute_cgi json_proto POST (null) [11:34:11]execute_cgi path=json_proto method=POST [11:34:11]POST find Content-Length [11:34:11]Host: 172.17.33.3:8080 [11:34:11]Content-Length: 1211 [11:34:11]Content-Type: application/json [11:34:11] [11:34:11]POST finish read [11:34:11]Found Content-Length = 1211 [11:34:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)346975\u000A12.04.2024 11:16\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 13\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 64.30\u000A\u0418\u0422\u041E\u0413: 1286.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3859198;3859272\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:34:11]execute_script... [11:34:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)346975\u000A12.04.2024 11:16\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 13\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 64.30\u000A\u0418\u0422\u041E\u0413: 1286.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3859198;3859272\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:34:11]POST & json_proto [11:34:11]process_json_proto [11:34:11]json parsed OK: [11:34:11]protocol is kg_v1.0 [11:34:11]action value=print_text [11:34:11]process_action print_text [11:34:11]cmd_print_text [11:34:11]ExternCall_PrintAddStr [11:34:11]wPrintStart [11:34:11]Write to MH i2c: 01 00 00 D3 75 48 [11:34:11]Write i2c OK [11:34:11]MH_I2C_Read... [11:34:11]Read from MH i2c: 01 [11:34:11]MH_I2C_Read... [11:34:11]Read from MH i2c: 01 07 00 [11:34:11]MH_I2C_Read... [11:34:11]Read from MH i2c: 01 07 00 D3 75 00 00 00 00 00 FF 0F 5D [11:34:11]RasterBufferAndPrint [11:34:11]line *****ТОВАРНЫЙ ЧЕК***** [11:34:11]line АЗС 108 [11:34:11]line Партнер нефть [11:34:11]line 02508201610067 [11:34:11]line Кассир : Джумагулова Н. [11:34:11]line Счет N : (1)346975 [11:34:11]line 12.04.2024 11:16 [11:34:11]line ПРОДАЖА [11:34:11]line ТРК (МРК, ГНК): 13 [11:34:11]line Вид ГСМ : 2710124130 [11:34:11]line Аи-92-К-5 [11:34:11]line 20.000 x 64.30 [11:34:11]line ИТОГ: 1286.00 [11:34:11]line Тип оплаты: Талоны: Партнер нефть [11:34:11]line 3859198;3859272 [11:34:11]line ______________________ [11:34:11]line (подпись) [11:34:11]written 0, free lines is 4095 [11:34:11]Write to MH i2c: 01 00 00 E8 75 5D [11:34:11]Write i2c OK [11:34:11]MH_I2C_Read... [11:34:11]Read from MH i2c: 01 [11:34:11]MH_I2C_Read... [11:34:11]Read from MH i2c: 01 07 00 [11:34:11]MH_I2C_Read... [11:34:11]Read from MH i2c: 01 07 00 E8 75 00 00 00 00 00 FD 0D 6E [11:34:11]RasterBufferAndPrint [11:34:11]line [11:34:11]line [11:34:11]line [11:34:11]line [11:34:11]line [11:34:11]written 0, free lines is 3583 [11:34:11]MH_Cut [11:34:11]Write to MH i2c: D1 01 00 EF 75 01 36 [11:34:11]Write i2c OK [11:34:11]MH_I2C_Read... [11:34:11]Read from MH i2c: D1 [11:34:11]MH_I2C_Read... [11:34:11]Read from MH i2c: D1 01 00 [11:34:11]MH_I2C_Read... [11:34:11]Read from MH i2c: D1 01 00 EF 75 00 35 [11:34:11]Write to MH i2c: 01 00 00 F0 75 65 [11:34:11]Write i2c OK [11:34:11]MH_I2C_Read... [11:34:12]*** Cut start [11:34:12]*** Partial cut [11:34:12]*** CUTSNS_PIN = 1 [11:34:12]*** CUTSNS_PIN = 0 [11:34:12]*** Brake cut motor [11:34:13]Read from MH i2c: 01 [11:34:13]MH_I2C_Read... [11:34:13]*** Stop cut motor [11:34:13]*** Cut end [11:34:13]Read from MH i2c: 01 07 00 [11:34:13]MH_I2C_Read... [11:34:13]Read from MH i2c: 01 07 00 F0 75 00 00 00 00 00 FF 0F 7A [11:34:13]process_action print_text done [11:34:13]requested_data is exist [11:34:13]produce_requested_data [11:34:13]requested_item fm.sn is exist - process it [11:34:13]wFMCommunicate request_size=4 [11:34:13]MH_SAM_APDU [11:34:13]CAPDU: 80 11 00 00 [11:34:13]Write to MH i2c: E2 08 00 F1 75 80 11 00 00 00 00 00 00 E0 [11:34:13]Write i2c OK [11:34:13]MH_I2C_Read... [11:34:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:34:13]Read from MH i2c: E2 [11:34:13]MH_I2C_Read... [11:34:13]Read from MH i2c: E2 17 00 [11:34:13]MH_I2C_Read... [11:34:13]Read from MH i2c: E2 17 00 F1 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 2F [11:34:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:34:13]wFMCommunicate OK [11:34:13]requested_item fd.num is exist - process it [11:34:13]SAM_PROTO_GetFieldsCounters [11:34:13]wFMCommunicate request_size=4 [11:34:13]MH_SAM_APDU [11:34:13]CAPDU: 80 13 00 00 [11:34:13]Write to MH i2c: E2 08 00 F2 75 80 13 00 00 00 00 00 00 E3 [11:34:13]Write i2c OK [11:34:13]MH_I2C_Read... [11:34:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:34:13]Read from MH i2c: E2 [11:34:13]MH_I2C_Read... [11:34:13]Read from MH i2c: E2 62 00 [11:34:13]MH_I2C_Read... [11:34:13]Read from MH i2c: E2 62 00 F2 75 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E9 6F 00 00 0E 04 04 00 71 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 10 [11:34:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E9 6F 00 00 0E 04 04 00 71 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:34:13]wFMCommunicate OK [11:34:13]SAM_PROTO_GetFieldsCounters done [11:34:13]requested_item shift.num is exist - process it [11:34:13]requested_item shift.opened is exist - process it [11:34:13]req_shift_opened [11:34:13]FM_GetShiftState [11:34:13]SAM_PROTO_GetShiftState [11:34:13]wFMCommunicate request_size=4 [11:34:13]MH_SAM_APDU [11:34:13]CAPDU: 80 13 01 00 [11:34:13]Write to MH i2c: E2 08 00 F3 75 80 13 01 00 00 00 00 00 E5 [11:34:13]Write i2c OK [11:34:13]MH_I2C_Read... [11:34:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:34:13]Read from MH i2c: E2 [11:34:13]MH_I2C_Read... [11:34:13]Read from MH i2c: E2 0E 00 [11:34:13]MH_I2C_Read... [11:34:13]Read from MH i2c: E2 0E 00 F3 75 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 F6 [11:34:13]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [11:34:13]wFMCommunicate OK [11:34:13]SAM_PROTO_GetShiftState done [11:34:13]FM_GetShiftState done [11:34:13]req_shift_opened done [11:34:13]requested_item shift.open_date is exist - process it [11:34:13]req_shift_open_date [11:34:13]req_shift_open_date done [11:34:13]produce_requested_data done [11:34:13]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28649,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [11:34:13]process_action_free print_text [11:34:13]json_value_free [11:34:13]json_value_free done [11:34:13]process_json_proto returns [11:34:13]Send response to host [11:34:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28649,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [11:34:13]free response buf [11:34:13]execute_script done [11:34:13]execute_script returns [11:34:13]free content buf [11:34:13]Sock 6.Close socket [11:34:13]Sock 6.Thread stoped [11:34:15]OFD Sender: No OFD packet to send [11:34:20]OFD Sender: No OFD packet to send [11:34:25]OFD Sender: No OFD packet to send [11:34:30]OFD Sender: No OFD packet to send [11:34:35]OFD Sender: No OFD packet to send [11:34:40]OFD Sender: No OFD packet to send [11:34:45]OFD Sender: No OFD packet to send [11:34:50]OFD Sender: No OFD packet to send [11:34:55]OFD Sender: No OFD packet to send [11:35:00]OFD Sender: No OFD packet to send [11:35:05]OFD Sender: No OFD packet to send [11:35:10]OFD Sender: No OFD packet to send [11:35:15]OFD Sender: No OFD packet to send [11:35:20]OFD Sender: No OFD packet to send [11:35:25]OFD Sender: No OFD packet to send [11:35:30]OFD Sender: No OFD packet to send [11:35:35]OFD Sender: No OFD packet to send [11:35:40]OFD Sender: No OFD packet to send [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:05]OFD Sender: No OFD packet to send [11:36:10]OFD Sender: No OFD packet to send [11:36:15]OFD Sender: No OFD packet to send [11:36:20]OFD Sender: No OFD packet to send [11:36:25]OFD Sender: No OFD packet to send [11:36:30]OFD Sender: No OFD packet to send [11:36:35]OFD Sender: No OFD packet to send [11:36:40]OFD Sender: No OFD packet to send [11:36:45]OFD Sender: No OFD packet to send [11:36:50]OFD Sender: No OFD packet to send [11:36:55]OFD Sender: No OFD packet to send [11:37:00]OFD Sender: No OFD packet to send [11:37:05]OFD Sender: No OFD packet to send [11:37:10]OFD Sender: No OFD packet to send [11:37:14]accept exits with 5 [11:37:14]New connection [11:37:14]New thread 3066498404 created [11:37:14]Thread 3066641764 joined [11:37:14]Waiting for new connection... [11:37:14] Sock 5.Parse request [11:37:14]Sock 5.Check first char [11:37:14]Sock 5.First char is OK [11:37:14]request: POST /json_proto HTTP/1.0 [11:37:14]Method: POST [11:37:14]URL: /json_proto [11:37:14]Method is POST - this is cgi request [11:37:14]url: /json_proto [11:37:14]query_string will be loaded in cgi processing [11:37:14]execute_cgi json_proto POST (null) [11:37:14]execute_cgi path=json_proto method=POST [11:37:14]POST find Content-Length [11:37:14]Host: 172.17.33.3:8080 [11:37:14]Content-Length: 215 [11:37:14]Content-Type: application/json [11:37:14] [11:37:14]POST finish read [11:37:14]Found Content-Length = 215 [11:37:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:37:14]execute_script... [11:37:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:37:14]POST & json_proto [11:37:14]process_json_proto [11:37:14]json parsed OK: [11:37:14]protocol is kg_v1.0 [11:37:14]action value=get_value [11:37:14]process_action get_value [11:37:14]cmd_get_value [11:37:14]process_action get_value done [11:37:14]requested_data is exist [11:37:14]produce_requested_data [11:37:14]requested_item kkm.sn is exist - process it [11:37:14]requested_item kkm.ver is exist - process it [11:37:14]requested_item fm.sn is exist - process it [11:37:14]wFMCommunicate request_size=4 [11:37:14]MH_SAM_APDU [11:37:14]CAPDU: 80 11 00 00 [11:37:14]Write to MH i2c: E2 08 00 F4 75 80 11 00 00 00 00 00 00 E3 [11:37:14]Write i2c OK [11:37:14]MH_I2C_Read... [11:37:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:37:14]Read from MH i2c: E2 [11:37:14]MH_I2C_Read... [11:37:14]Read from MH i2c: E2 17 00 [11:37:14]MH_I2C_Read... [11:37:14]Read from MH i2c: E2 17 00 F4 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 32 [11:37:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:37:14]wFMCommunicate OK [11:37:14]requested_item fd.num is exist - process it [11:37:14]SAM_PROTO_GetFieldsCounters [11:37:14]wFMCommunicate request_size=4 [11:37:14]MH_SAM_APDU [11:37:14]CAPDU: 80 13 00 00 [11:37:14]Write to MH i2c: E2 08 00 F5 75 80 13 00 00 00 00 00 00 E6 [11:37:14]Write i2c OK [11:37:14]MH_I2C_Read... [11:37:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:37:14]Read from MH i2c: E2 [11:37:14]MH_I2C_Read... [11:37:14]Read from MH i2c: E2 62 00 [11:37:14]MH_I2C_Read... [11:37:14]Read from MH i2c: E2 62 00 F5 75 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E9 6F 00 00 0E 04 04 00 71 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 13 [11:37:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E9 6F 00 00 0E 04 04 00 71 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:37:14]wFMCommunicate OK [11:37:14]SAM_PROTO_GetFieldsCounters done [11:37:14]requested_item shift.num is exist - process it [11:37:14]requested_item shift.opened is exist - process it [11:37:14]req_shift_opened [11:37:14]FM_GetShiftState [11:37:14]SAM_PROTO_GetShiftState [11:37:14]wFMCommunicate request_size=4 [11:37:14]MH_SAM_APDU [11:37:14]CAPDU: 80 13 01 00 [11:37:14]Write to MH i2c: E2 08 00 F6 75 80 13 01 00 00 00 00 00 E8 [11:37:14]Write i2c OK [11:37:14]MH_I2C_Read... [11:37:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:37:14]Read from MH i2c: E2 [11:37:14]MH_I2C_Read... [11:37:14]Read from MH i2c: E2 0E 00 [11:37:14]MH_I2C_Read... [11:37:14]Read from MH i2c: E2 0E 00 F6 75 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 F9 [11:37:14]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [11:37:14]wFMCommunicate OK [11:37:14]SAM_PROTO_GetShiftState done [11:37:14]FM_GetShiftState done [11:37:14]req_shift_opened done [11:37:14]requested_item shift.open_date is exist - process it [11:37:14]req_shift_open_date [11:37:14]req_shift_open_date done [11:37:14]produce_requested_data done [11:37:14]produce_requested_data return {"kkm.sn":"0300000027","kkm.ver":"001","fm.sn":"0000000000963154","fd.num":28649,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [11:37:14]process_action_free get_value [11:37:14]json_value_free [11:37:14]json_value_free done [11:37:14]process_json_proto returns [11:37:14]Send response to host [11:37:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000027","kkm.ver":"001","fm.sn":"0000000000963154","fd.num":28649,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [11:37:14]free response buf [11:37:14]execute_script done [11:37:14]execute_script returns [11:37:14]free content buf [11:37:14]Sock 5.Close socket [11:37:14]Sock 5.Thread stoped [11:37:14]accept exits with 6 [11:37:14]New connection [11:37:14]New thread 3066641764 created [11:37:14]Thread 3066498404 joined [11:37:14]Waiting for new connection... [11:37:14] Sock 6.Parse request [11:37:14]Sock 6.Check first char [11:37:14]Sock 6.First char is OK [11:37:14]request: POST /json_proto HTTP/1.0 [11:37:14]Method: POST [11:37:14]URL: /json_proto [11:37:14]Method is POST - this is cgi request [11:37:14]url: /json_proto [11:37:14]query_string will be loaded in cgi processing [11:37:14]execute_cgi json_proto POST (null) [11:37:14]execute_cgi path=json_proto method=POST [11:37:14]POST find Content-Length [11:37:14]Host: 172.17.33.3:8080 [11:37:14]Content-Length: 331 [11:37:14]Content-Type: application/json [11:37:14] [11:37:14]POST finish read [11:37:14]Found Content-Length = 331 [11:37:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [11:37:14]execute_script... [11:37:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [11:37:14]POST & json_proto [11:37:14]process_json_proto [11:37:14]json parsed OK: [11:37:14]protocol is kg_v1.0 [11:37:14]action value=get_value [11:37:14]process_action get_value [11:37:14]cmd_get_value [11:37:14]process_action get_value done [11:37:14]requested_data is exist [11:37:14]produce_requested_data [11:37:14]requested_item fm.sale.total is exist - process it [11:37:14]SAM_PROTO_GetFMData [11:37:14]wFMCommunicate request_size=4 [11:37:14]MH_SAM_APDU [11:37:14]CAPDU: 80 13 03 00 [11:37:14]Write to MH i2c: E2 08 00 F7 75 80 13 03 00 00 00 00 00 EB [11:37:14]Write i2c OK [11:37:14]MH_I2C_Read... [11:37:15]OFD Sender: No OFD packet to send [11:37:15]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [11:37:15]Read from MH i2c: E2 [11:37:15]MH_I2C_Read... [11:37:15]Read from MH i2c: E2 FD 00 [11:37:15]MH_I2C_Read... [11:37:15]Read from MH i2c: E2 FD 00 F7 75 00 C3 04 85 04 BF 04 6E 04 04 00 07 6F 00 00 69 04 A1 00 6F 04 04 00 AD 6B 00 00 B1 04 04 00 F0 88 12 AF 70 04 04 00 D8 38 FC 6F 72 04 04 00 18 50 16 3F 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 5D 6D 98 12 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 EA AA 8C 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 9C 00 6F 04 04 00 5A 03 00 00 B1 04 04 00 A8 5F 91 0C 70 04 04 00 A8 5F 91 0C 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 C1 B4 55 01 EF 03 09 00 F6 90 00 01 [11:37:15]RAPDU: C3 04 85 04 BF 04 6E 04 04 00 07 6F 00 00 69 04 A1 00 6F 04 04 00 AD 6B 00 00 B1 04 04 00 F0 88 12 AF 70 04 04 00 D8 38 FC 6F 72 04 04 00 18 50 16 3F 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 5D 6D 98 12 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 EA AA 8C 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 9C 00 6F 04 04 00 5A 03 00 00 B1 04 04 00 A8 5F 91 0C 70 04 04 00 A8 5F 91 0C 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 C1 B4 55 01 EF 03 09 00 F6 90 00 [11:37:15]wFMCommunicate OK [11:37:15]wFMCommunicate request_size=4 [11:37:15]MH_SAM_APDU [11:37:15]CAPDU: 80 17 00 00 [11:37:15]Write to MH i2c: E2 08 00 F8 75 80 17 00 00 00 00 00 00 ED [11:37:15]Write i2c OK [11:37:15]MH_I2C_Read... [11:37:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:37:15]Read from MH i2c: E2 [11:37:15]MH_I2C_Read... [11:37:15]Read from MH i2c: E2 FD 00 [11:37:15]MH_I2C_Read... [11:37:15]Read from MH i2c: E2 FD 00 F8 75 00 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 4B 79 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 8D [11:37:15]RAPDU: 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 4B 79 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [11:37:15]wFMCommunicate OK [11:37:15]wFMCommunicate request_size=4 [11:37:15]MH_SAM_APDU [11:37:15]CAPDU: 80 17 00 00 [11:37:15]Write to MH i2c: E2 08 00 F9 75 80 17 00 00 00 00 00 00 EE [11:37:15]Write i2c OK [11:37:15]MH_I2C_Read... [11:37:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:37:15]Read from MH i2c: E2 [11:37:15]MH_I2C_Read... [11:37:15]Read from MH i2c: E2 FD 00 [11:37:15]MH_I2C_Read... [11:37:15]Read from MH i2c: E2 FD 00 F9 75 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 0C [11:37:15]RAPDU: 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [11:37:15]wFMCommunicate OK [11:37:15]wFMCommunicate request_size=4 [11:37:15]MH_SAM_APDU [11:37:15]CAPDU: 80 17 00 00 [11:37:15]Write to MH i2c: E2 08 00 FA 75 80 17 00 00 00 00 00 00 EF [11:37:15]Write i2c OK [11:37:15]MH_I2C_Read... [11:37:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:37:16]Read from MH i2c: E2 [11:37:16]MH_I2C_Read... [11:37:16]Read from MH i2c: E2 FD 00 [11:37:16]MH_I2C_Read... [11:37:16]Read from MH i2c: E2 FD 00 FA 75 00 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 61 [11:37:16]RAPDU: 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [11:37:16]wFMCommunicate OK [11:37:16]wFMCommunicate request_size=4 [11:37:16]MH_SAM_APDU [11:37:16]CAPDU: 80 17 00 00 [11:37:16]Write to MH i2c: E2 08 00 FB 75 80 17 00 00 00 00 00 00 F0 [11:37:16]Write i2c OK [11:37:16]MH_I2C_Read... [11:37:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 221! [11:37:16]Read from MH i2c: E2 [11:37:16]MH_I2C_Read... [11:37:16]Read from MH i2c: E2 E0 00 [11:37:16]MH_I2C_Read... [11:37:16]Read from MH i2c: E2 E0 00 FB 75 00 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 DA [11:37:16]RAPDU: 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [11:37:16]wFMCommunicate OK [11:37:16]SAM_PROTO_GetFMData done [11:37:16]requested_item fm.sale_refund.total is exist - process it [11:37:16]requested_item fm.buy.total is exist - process it [11:37:16]requested_item shift.sale.total is exist - process it [11:37:16]SAM_PROTO_GetShiftData [11:37:16]wFMCommunicate request_size=4 [11:37:16]MH_SAM_APDU [11:37:16]CAPDU: 80 13 02 00 [11:37:16]Write to MH i2c: E2 08 00 FC 75 80 13 02 00 00 00 00 00 EF [11:37:16]Write i2c OK [11:37:16]MH_I2C_Read... [11:37:16]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [11:37:16]Read from MH i2c: E2 [11:37:16]MH_I2C_Read... [11:37:16]Read from MH i2c: E2 FD 00 [11:37:16]MH_I2C_Read... [11:37:16]Read from MH i2c: E2 FD 00 FC 75 00 BA 04 AA 04 B6 04 6E 04 04 00 62 00 00 00 69 04 9C 00 6F 04 04 00 5E 00 00 00 B1 04 03 00 CD 7D B5 70 04 03 00 58 17 6D 72 04 03 00 75 66 48 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 05 47 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 35 9B 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 04 00 00 00 B1 04 03 00 D0 DB 17 70 04 03 00 D0 DB 17 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 AF 88 02 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 AA [11:37:16]RAPDU: BA 04 AA 04 B6 04 6E 04 04 00 62 00 00 00 69 04 9C 00 6F 04 04 00 5E 00 00 00 B1 04 03 00 CD 7D B5 70 04 03 00 58 17 6D 72 04 03 00 75 66 48 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 05 47 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 35 9B 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 04 00 00 00 B1 04 03 00 D0 DB 17 70 04 03 00 D0 DB 17 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 AF 88 02 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [11:37:16]wFMCommunicate OK [11:37:16]wFMCommunicate request_size=4 [11:37:16]MH_SAM_APDU [11:37:16]CAPDU: 80 17 00 00 [11:37:16]Write to MH i2c: E2 08 00 FD 75 80 17 00 00 00 00 00 00 F2 [11:37:16]Write i2c OK [11:37:16]MH_I2C_Read... [11:37:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:37:17]Read from MH i2c: E2 [11:37:17]MH_I2C_Read... [11:37:17]Read from MH i2c: E2 FD 00 [11:37:17]MH_I2C_Read... [11:37:17]Read from MH i2c: E2 FD 00 FD 75 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 0E 36 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 E0 [11:37:17]RAPDU: EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 0E 36 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [11:37:17]wFMCommunicate OK [11:37:17]wFMCommunicate request_size=4 [11:37:17]MH_SAM_APDU [11:37:17]CAPDU: 80 17 00 00 [11:37:17]Write to MH i2c: E2 08 00 FE 75 80 17 00 00 00 00 00 00 F3 [11:37:17]Write i2c OK [11:37:17]MH_I2C_Read... [11:37:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:37:17]Read from MH i2c: E2 [11:37:17]MH_I2C_Read... [11:37:17]Read from MH i2c: E2 FD 00 [11:37:17]MH_I2C_Read... [11:37:17]Read from MH i2c: E2 FD 00 FE 75 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 1F [11:37:17]RAPDU: 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [11:37:17]wFMCommunicate OK [11:37:17]wFMCommunicate request_size=4 [11:37:17]MH_SAM_APDU [11:37:17]CAPDU: 80 17 00 00 [11:37:17]Write to MH i2c: E2 08 00 FF 75 80 17 00 00 00 00 00 00 F4 [11:37:17]Write i2c OK [11:37:17]MH_I2C_Read... [11:37:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:37:17]Read from MH i2c: E2 [11:37:17]MH_I2C_Read... [11:37:17]Read from MH i2c: E2 FD 00 [11:37:17]MH_I2C_Read... [11:37:17]Read from MH i2c: E2 FD 00 FF 75 00 00 EF 03 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 90 00 6C [11:37:17]RAPDU: 00 EF 03 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 90 00 [11:37:17]wFMCommunicate OK [11:37:17]wFMCommunicate request_size=4 [11:37:17]MH_SAM_APDU [11:37:17]CAPDU: 80 17 00 00 [11:37:17]Write to MH i2c: E2 08 00 00 76 80 17 00 00 00 00 00 00 F6 [11:37:17]Write i2c OK [11:37:17]MH_I2C_Read... [11:37:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [11:37:18]Read from MH i2c: E2 [11:37:18]MH_I2C_Read... [11:37:18]Read from MH i2c: E2 D7 00 [11:37:18]MH_I2C_Read... [11:37:18]Read from MH i2c: E2 D7 00 00 76 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [11:37:18]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [11:37:18]wFMCommunicate OK [11:37:18]SAM_PROTO_GetShiftData done [11:37:18]requested_item shift.sale.total_cash is exist - process it [11:37:18]requested_item shift.sale_refund.total is exist - process it [11:37:18]requested_item shift.sale_refund.total_cash is exist - process it [11:37:18]requested_item shift.buy.total is exist - process it [11:37:18]requested_item shift.buy.total_cash is exist - process it [11:37:18]produce_requested_data done [11:37:18]produce_requested_data return {"fm.sale.total":29372275.04,"fm.sale_refund.total":2108538.00,"fm.buy.total":0.00,"shift.sale.total":118942.21,"shift.sale.total_cash":71494.00,"shift.sale_refund.total":15636.00,"shift.sale_refund.total_cash":15636.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [11:37:18]process_action_free get_value [11:37:18]json_value_free [11:37:18]json_value_free done [11:37:18]process_json_proto returns [11:37:18]Send response to host [11:37:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":29372275.04,"fm.sale_refund.total":2108538.00,"fm.buy.total":0.00,"shift.sale.total":118942.21,"shift.sale.total_cash":71494.00,"shift.sale_refund.total":15636.00,"shift.sale_refund.total_cash":15636.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [11:37:18]free response buf [11:37:18]execute_script done [11:37:18]execute_script returns [11:37:18]free content buf [11:37:18]Sock 6.Close socket [11:37:18]Sock 6.Thread stoped [11:37:20]OFD Sender: No OFD packet to send [11:37:25]OFD Sender: No OFD packet to send [11:37:30]OFD Sender: No OFD packet to send [11:37:35]OFD Sender: No OFD packet to send [11:37:40]OFD Sender: No OFD packet to send [11:37:45]OFD Sender: No OFD packet to send [11:37:50]OFD Sender: No OFD packet to send [11:37:55]OFD Sender: No OFD packet to send [11:38:00]OFD Sender: No OFD packet to send [11:38:05]OFD Sender: No OFD packet to send [11:38:10]OFD Sender: No OFD packet to send [11:38:15]OFD Sender: No OFD packet to send [11:38:20]OFD Sender: No OFD packet to send [11:38:25]OFD Sender: No OFD packet to send [11:38:30]OFD Sender: No OFD packet to send [11:38:35]OFD Sender: No OFD packet to send [11:38:40]OFD Sender: No OFD packet to send [11:38:45]OFD Sender: No OFD packet to send [11:38:50]OFD Sender: No OFD packet to send [11:38:55]OFD Sender: No OFD packet to send [11:39:00]OFD Sender: No OFD packet to send [11:39:05]OFD Sender: No OFD packet to send [11:39:10]OFD Sender: No OFD packet to send [11:39:15]OFD Sender: No OFD packet to send [11:39:20]OFD Sender: No OFD packet to send [11:39:25]OFD Sender: No OFD packet to send [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:39]accept exits with 5 [11:40:39]New connection [11:40:39]New thread 3066498404 created [11:40:39]Thread 3066641764 joined [11:40:39]Waiting for new connection... [11:40:39] Sock 5.Parse request [11:40:39]Sock 5.Check first char [11:40:39]Sock 5.First char is OK [11:40:39]request: POST /json_proto HTTP/1.0 [11:40:39]Method: POST [11:40:39]URL: /json_proto [11:40:39]Method is POST - this is cgi request [11:40:39]url: /json_proto [11:40:39]query_string will be loaded in cgi processing [11:40:39]execute_cgi json_proto POST (null) [11:40:39]execute_cgi path=json_proto method=POST [11:40:39]POST find Content-Length [11:40:39]Host: 172.17.33.3:8080 [11:40:39]Content-Length: 682 [11:40:39]Content-Type: application/json [11:40:39] [11:40:39]POST finish read [11:40:39]Found Content-Length = 682 [11:40:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346976", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.50, "quantity" : 27.590, "sum" : 2000.28, "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:40:39]execute_script... [11:40: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)346976", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.50, "quantity" : 27.590, "sum" : 2000.28, "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:40:39]POST & json_proto [11:40:39]process_json_proto [11:40:39]json parsed OK: [11:40:39]protocol is kg_v1.0 [11:40:39]action value=close_receipt [11:40:39]process_action close_receipt [11:40:39]cmd_close_receipt [11:40:39]MH_GetDate [11:40:39]Write to MH i2c: F0 00 00 01 76 66 [11:40:39]Write i2c OK [11:40:39]MH_I2C_Read... [11:40:39]Read from MH i2c: F0 [11:40:39]MH_I2C_Read... [11:40:39]Read from MH i2c: F0 09 00 [11:40:39]MH_I2C_Read... [11:40:39]Read from MH i2c: F0 09 00 01 76 00 BF 1D 19 66 23 5B 8F 65 3C [11:40:39]GetLastDocTimeStamp 1712921470 [11:40:39]current date 1712922047 [11:40:39]FM_GetShiftState [11:40:39]SAM_PROTO_GetShiftState [11:40:39]wFMCommunicate request_size=4 [11:40:39]MH_SAM_APDU [11:40:39]CAPDU: 80 13 01 00 [11:40:39]Write to MH i2c: E2 08 00 02 76 80 13 01 00 00 00 00 00 F5 [11:40:39]Write i2c OK [11:40:39]MH_I2C_Read... [11:40:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:40:39]Read from MH i2c: E2 [11:40:39]MH_I2C_Read... [11:40:39]Read from MH i2c: E2 0E 00 [11:40:39]MH_I2C_Read... [11:40:39]Read from MH i2c: E2 0E 00 02 76 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 06 [11:40:39]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [11:40:39]wFMCommunicate OK [11:40:39]SAM_PROTO_GetShiftState done [11:40:39]FM_GetShiftState done [11:40:39]opened in 1712881416 [11:40:39]opened+sec_in_day 1712967816 [11:40:39]quantity*price = 200027 [11:40:39]sum+1 = 200029 [11:40:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 99 12.04.2024 11:40 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28650 ФПД: 118454602716684 1/tax-web-control/client/api/v1/ticket?date=20240412T114047&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28650&fm=118454602716684&tin=02508201610067®Number=0000138879044617&sum=200000 [11:40:41]StoreToDocumentArchive [11:40:41]shift 113 fd 28650 [11:40:41]save to /storage/0113/doc_00028650 [11:40:41]save last doc name /storage/0113/doc_00028650 to /storage/kkm_last_doc_name [11:40:41]save OK [11:40:41]Clear old archive folders... [11:40:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:40:41]tlvbuf is 01AC5160 [11:40:41]SAM_PROTO_ClearQueue [11:40:41]wFMCommunicate request_size=4 [11:40:41]MH_SAM_APDU [11:40:41]CAPDU: 80 09 00 00 [11:40:41]Write to MH i2c: E2 08 00 0F 76 80 09 00 00 00 00 00 00 F7 [11:40:41]Write i2c OK [11:40:41]MH_I2C_Read... [11:40:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:40:41]Read from MH i2c: E2 [11:40:41]MH_I2C_Read... [11:40:41]Read from MH i2c: E2 03 00 [11:40:41]MH_I2C_Read... [11:40:41]Read from MH i2c: E2 03 00 0F 76 00 90 00 F9 [11:40:41]RAPDU: 90 00 [11:40:41]wFMCommunicate OK [11:40:41]SAM_PROTO_ClearQueue done [11:40:41]KKMCreateOFDPacket [11:40:41]OFDProtocolAddRootSTLVToBuf [11:40:41]FM_MakeSignedData [11:40:41]FM_MakeSignedData [11:40:41]SAM_PROTO_SignData [11:40:41]wFMCommunicate request_size=4 [11:40:41]MH_SAM_APDU [11:40:41]CAPDU: 80 0D 01 02 [11:40:41]Write to MH i2c: E2 08 00 10 76 80 0D 01 02 00 00 00 00 FF [11:40:41]Write i2c OK [11:40:41]MH_I2C_Read... [11:40:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:40:41]Read from MH i2c: E2 [11:40:41]MH_I2C_Read... [11:40:41]Read from MH i2c: E2 03 00 [11:40:41]MH_I2C_Read... [11:40:41]Read from MH i2c: E2 03 00 10 76 00 90 00 FA [11:40:41]RAPDU: 90 00 [11:40:41]wFMCommunicate OK [11:40:41]wFMCommunicate request_size=255 [11:40:41]MH_SAM_APDU [11:40: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 35 FF 03 08 00 03 C6 6B 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 5C 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 63 00 00 00 F4 03 04 00 BF 1D 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 EA 6F 00 00 35 04 06 00 6B [11:40:41]Write to MH i2c: E2 02 01 11 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 35 FF 03 08 00 03 C6 6B 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 5C 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 63 00 00 00 F4 03 04 00 BF 1D 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 EA 6F 00 00 35 04 06 00 6B 00 00 04 [11:40:41]Write i2c OK [11:40:41]MH_I2C_Read... [11:40:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:40:41]Read from MH i2c: E2 [11:40:41]MH_I2C_Read... [11:40:41]Read from MH i2c: E2 03 00 [11:40:41]MH_I2C_Read... [11:40:41]Read from MH i2c: E2 03 00 11 76 00 90 00 FB [11:40:41]RAPDU: 90 00 [11:40:41]wFMCommunicate OK [11:40:41]wFMCommunicate request_size=10 [11:40:41]MH_SAM_APDU [11:40:41]CAPDU: 80 0D 02 02 05 BB DC 84 56 0C [11:40:41]Write to MH i2c: E2 0D 00 12 76 80 0D 02 02 05 00 BB DC 84 56 0C 00 00 89 [11:40:41]Write i2c OK [11:40:41]MH_I2C_Read... [11:40:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:40:41]Read from MH i2c: E2 [11:40:41]MH_I2C_Read... [11:40:41]Read from MH i2c: E2 03 00 [11:40:41]MH_I2C_Read... [11:40:41]Read from MH i2c: E2 03 00 12 76 00 90 00 FC [11:40:41]RAPDU: 90 00 [11:40:41]wFMCommunicate OK [11:40:41]wFMCommunicate request_size=4 [11:40:41]MH_SAM_APDU [11:40:41]CAPDU: 80 0D 03 02 [11:40:41]Write to MH i2c: E2 08 00 13 76 80 0D 03 02 00 00 00 00 04 [11:40:41]Write i2c OK [11:40:41]MH_I2C_Read... [11:40:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:40:41]Read from MH i2c: E2 [11:40:41]MH_I2C_Read... [11:40:41]Read from MH i2c: E2 0B 00 [11:40:41]MH_I2C_Read... [11:40:41]Read from MH i2c: E2 0B 00 13 76 00 FF B7 AE 1B 2B 19 79 53 90 00 94 [11:40:41]RAPDU: FF B7 AE 1B 2B 19 79 53 90 00 [11:40:41]wFMCommunicate OK [11:40:41]SAM_PROTO_SignData done [11:40:41]FM_MakeSignedData done [11:40:41]CreateOFDProtocolMessage [11:40:41]wFMCommunicate request_size=4 [11:40:41]MH_SAM_APDU [11:40:41]CAPDU: 80 11 00 00 [11:40:41]Write to MH i2c: E2 08 00 14 76 80 11 00 00 00 00 00 00 04 [11:40:41]Write i2c OK [11:40:41]MH_I2C_Read... [11:40:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:40:41]Read from MH i2c: E2 [11:40:41]MH_I2C_Read... [11:40:41]Read from MH i2c: E2 17 00 [11:40:41]MH_I2C_Read... [11:40:41]Read from MH i2c: E2 17 00 14 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 53 [11:40:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:40:41]wFMCommunicate OK [11:40:41]CreateOFDProtocolMessage done [11:40:41]OFDSenderStorePacket 28650 [11:40:41]StoreOFDPacket docnum=28650 [11:40:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 5F 6F 07 01 DF 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 35 FF 03 08 00 03 C6 6B 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 5C 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 63 00 00 00 F4 03 04 00 BF 1D 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 EA 6F 00 00 35 04 06 00 6B BB DC 84 56 0C FF B7 AE 1B 2B 19 79 53 [11:40:41]CheckFolder [11:40:41]dirname=/storage/ofd_packets [11:40:41]CheckFolder done [11:40:41]ProducePacketName [11:40:41]name=ofd_packets/00028650 [11:40:41]NVStorageSaveData ofd_packets/00028650 [11:40:41]File name is /storage/ofd_packets/00028650 [11:40:41]Write 301 bytes [11:40:41]NVStorageSaveData done [11:40:41]OFDSenderStorePacket done [11:40:41]KKMCreateOFDPacket done [11:40:41]NVStorageSaveData kkm_last_timestamp [11:40:41]File name is /storage/kkm_last_timestamp [11:40:41]Write 4 bytes [11:40:41]NVStorageSaveData done [11:40:41]ExternCall_PrintAddStr [11:40:41]wPrintStart [11:40:41]Write to MH i2c: 01 00 00 15 76 8B [11:40:41]Write i2c OK [11:40:41]MH_I2C_Read... [11:40:41]Read from MH i2c: 01 [11:40:41]MH_I2C_Read... [11:40:41]Read from MH i2c: 01 07 00 [11:40:41]MH_I2C_Read... [11:40:41]Read from MH i2c: 01 07 00 15 76 00 00 00 00 00 FF 0F A0 [11:40:41]RasterBufferAndPrint [11:40:41]line Счет N : (1)346976 [11:40:41]line ИНН: 02508201610067 [11:40:41]line Контрольно-Кассовый Чек [11:40:41]line ПРОДАЖА [11:40:41]line ТРК (МРК, ГНК) : 33 [11:40:41]line Товар: 2710124500 [11:40:41]line Аи-95-К-5 [11:40:41]line 27.590 * 72.50 [11:40:41]line = 2000.28 [11:40:41]line НДС 12% НСП 1% [11:40:41]line > о реализуемом товаре [11:40:41]line ОКРУГЛЕНИЕ: -0.28 [11:40:41]line ИТОГО: 2000.00 [11:40:41]line Внесено: 2000.00 [11:40:41]line СДАЧА: 0.00 [11:40:41]line НСП 1% : 17.70 [11:40:41]line НДС 12% : 212.42 [11:40:41]line Наличными: 2000.00 [11:40:41]line Безнал.: 0.00 [11:40:41]line Место: АЗС № 108 "Партнер Нефть" [11:40:41]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [11:40:41]line СНО: Общий режим [11:40:41]line Чек 99 12.04.2024 11:40 [11:40:41]line Смена: 113 ФФД: 1.0 [11:40:41]line ЗНМ: 0300000027 [11:40:41]line РНМ: 0000138879044617 [11:40:41]line Версия ККМ: 001 [11:40:41]line ФМ: 0000000000963154 [11:40:41]line ФД: 28650 [11:40:41]line ФПД: 118454602716684 [11:40:41]line 1/tax-web-control/client/api/v1/ticket?date=20240412T114047&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28650&fm=118454602716684&tin=02508201610067®Number=0000138879044617&sum=200000 [11:40:41]OFD Sender: Processing packet 28650 [packets to send 8, broken 7] [11:40:41]ProducePacketName [11:40:41]name=ofd_packets/00028650 [11:40:41]OFD Sender: To server: pG, [11:40:41]CommunicateWithHost lk.salyk.kg:30040 [11:40:41]ConnectInit lk.salyk.kg [11:40:41]written 0, free lines is 4095 [11:40:41]Connected sock=7 [11:40:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 5F 6F 07 01 DF 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 35 FF 03 08 00 03 C6 6B 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 5C 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 63 00 00 00 F4 03 04 00 BF 1D 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 EA 6F 00 00 35 04 06 00 6B BB DC 84 56 0C FF B7 AE 1B 2B 19 79 53 [11:40:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 D9 29 47 00 A2 CD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 EA 6F 00 00 F4 03 04 00 6A C8 18 66 B6 04 01 00 00 FF E5 E3 50 B7 17 5E 46 [11:40:42]CommunicateWithHost err = 0 [11:40:42]CheckOFDResponse [11:40:42]1017 (14) - 77093643461234 [11:40:42]1041 (16) - 0000000000963154 [11:40:42]1040 (4) - 28650 [11:40:42]1012 (4) - 12.04.2024 05:36 [11:40:42]1206 (1) - 0 [11:40:42]OFD Sender: Remove packet 28650 [11:40:42]ProducePacketName [11:40:42]name=ofd_packets/00028650 [11:40:42]NVStorageDeleteData [11:40:42]Write to MH i2c: 01 00 00 3F 76 B5 [11:40:42]Write i2c OK [11:40:42]MH_I2C_Read... [11:40:42]Read from MH i2c: 01 [11:40:42]MH_I2C_Read... [11:40:42]Read from MH i2c: 01 07 00 [11:40:42]MH_I2C_Read... [11:40:42]Read from MH i2c: 01 07 00 3F 76 00 00 00 00 00 CF 0C 97 [11:40:42]RasterBufferAndPrint [11:40:42]line [11:40:42]line [11:40:42]line [11:40:42]line [11:40:42]line [11:40:42]written 0, free lines is 3285 [11:40:42]MH_Cut [11:40:42]Write to MH i2c: D1 01 00 46 76 01 8E [11:40:42]Write i2c OK [11:40:42]MH_I2C_Read... [11:40:42]Read from MH i2c: D1 [11:40:42]MH_I2C_Read... [11:40:42]Read from MH i2c: D1 01 00 [11:40:42]MH_I2C_Read... [11:40:42]Read from MH i2c: D1 01 00 46 76 00 8D [11:40:42]Write to MH i2c: 01 00 00 47 76 BD [11:40:42]Write i2c OK [11:40:42]MH_I2C_Read... [11:40:42]OFD Sender: No OFD packet to send [11:40:43]*** Cut start [11:40:43]*** Partial cut [11:40:43]*** CUTSNS_PIN = 1 [11:40:43]*** CUTSNS_PIN = 0 [11:40:43]*** Brake cut motor [11:40:43]Read from MH i2c: 01 [11:40:43]MH_I2C_Read... [11:40:43]*** Stop cut motor [11:40:43]*** Cut end [11:40:43]Read from MH i2c: 01 07 00 [11:40:43]MH_I2C_Read... [11:40:43]Read from MH i2c: 01 07 00 47 76 00 00 00 00 00 FF 0F D2 [11:40:43]process_action close_receipt done [11:40:43]requested_data is exist [11:40:43]produce_requested_data [11:40:43]requested_item fm.sn is exist - process it [11:40:43]wFMCommunicate request_size=4 [11:40:43]MH_SAM_APDU [11:40:43]CAPDU: 80 11 00 00 [11:40:43]Write to MH i2c: E2 08 00 48 76 80 11 00 00 00 00 00 00 38 [11:40:43]Write i2c OK [11:40:43]MH_I2C_Read... [11:40:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:40:43]Read from MH i2c: E2 [11:40:43]MH_I2C_Read... [11:40:43]Read from MH i2c: E2 17 00 [11:40:43]MH_I2C_Read... [11:40:43]Read from MH i2c: E2 17 00 48 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 87 [11:40:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:40:43]wFMCommunicate OK [11:40:43]requested_item fd.num is exist - process it [11:40:43]SAM_PROTO_GetFieldsCounters [11:40:43]wFMCommunicate request_size=4 [11:40:43]MH_SAM_APDU [11:40:43]CAPDU: 80 13 00 00 [11:40:43]Write to MH i2c: E2 08 00 49 76 80 13 00 00 00 00 00 00 3B [11:40:43]Write i2c OK [11:40:43]MH_I2C_Read... [11:40:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:40:44]Read from MH i2c: E2 [11:40:44]MH_I2C_Read... [11:40:44]Read from MH i2c: E2 62 00 [11:40:44]MH_I2C_Read... [11:40:44]Read from MH i2c: E2 62 00 49 76 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 EA 6F 00 00 0E 04 04 00 71 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 6C [11:40:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 EA 6F 00 00 0E 04 04 00 71 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 [11:40:44]wFMCommunicate OK [11:40:44]SAM_PROTO_GetFieldsCounters done [11:40:44]requested_item shift.num is exist - process it [11:40:44]requested_item shift.opened is exist - process it [11:40:44]req_shift_opened [11:40:44]FM_GetShiftState [11:40:44]SAM_PROTO_GetShiftState [11:40:44]wFMCommunicate request_size=4 [11:40:44]MH_SAM_APDU [11:40:44]CAPDU: 80 13 01 00 [11:40:44]Write to MH i2c: E2 08 00 4A 76 80 13 01 00 00 00 00 00 3D [11:40:44]Write i2c OK [11:40:44]MH_I2C_Read... [11:40:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:40:44]Read from MH i2c: E2 [11:40:44]MH_I2C_Read... [11:40:44]Read from MH i2c: E2 0E 00 [11:40:44]MH_I2C_Read... [11:40:44]Read from MH i2c: E2 0E 00 4A 76 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 4E [11:40:44]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [11:40:44]wFMCommunicate OK [11:40:44]SAM_PROTO_GetShiftState done [11:40:44]FM_GetShiftState done [11:40:44]req_shift_opened done [11:40:44]requested_item shift.open_date is exist - process it [11:40:44]req_shift_open_date [11:40:44]req_shift_open_date done [11:40:44]produce_requested_data done [11:40:44]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28650,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [11:40:44]process_action_free close_receipt [11:40:44]json_value_free [11:40:44]json_value_free done [11:40:44]process_json_proto returns [11:40:44]Send response to host [11:40:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28650,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [11:40:44]free response buf [11:40:44]execute_script done [11:40:44]execute_script returns [11:40:44]free content buf [11:40:44]Sock 5.Close socket [11:40:44]Sock 5.Thread stoped [11:40:47]OFD Sender: No OFD packet to send [11:40:52]OFD Sender: No OFD packet to send [11:40:57]OFD Sender: No OFD packet to send [11:41:02]OFD Sender: No OFD packet to send [11:41:07]OFD Sender: No OFD packet to send [11:41:12]OFD Sender: No OFD packet to send [11:41:17]OFD Sender: No OFD packet to send [11:41:22]OFD Sender: No OFD packet to send [11:41:27]OFD Sender: No OFD packet to send [11:41:32]OFD Sender: No OFD packet to send [11:41:37]OFD Sender: No OFD packet to send [11:41:42]OFD Sender: No OFD packet to send [11:41:47]OFD Sender: No OFD packet to send [11:41:52]OFD Sender: No OFD packet to send [11:41:57]OFD Sender: No OFD packet to send [11:42:02]OFD Sender: No OFD packet to send [11:42:07]OFD Sender: No OFD packet to send [11:42:12]OFD Sender: No OFD packet to send [11:42:17]OFD Sender: No OFD packet to send [11:42:22]OFD Sender: No OFD packet to send [11:42:27]OFD Sender: No OFD packet to send [11:42:32]OFD Sender: No OFD packet to send [11:42:37]OFD Sender: No OFD packet to send [11:42:42]OFD Sender: No OFD packet to send [11:42:47]OFD Sender: No OFD packet to send [11:42:52]OFD Sender: No OFD packet to send [11:42:57]OFD Sender: No OFD packet to send [11:43:02]OFD Sender: No OFD packet to send [11:43:07]OFD Sender: No OFD packet to send [11:43:12]OFD Sender: No OFD packet to send [11:43:17]OFD Sender: No OFD packet to send [11:43:22]OFD Sender: No OFD packet to send [11:43:27]OFD Sender: No OFD packet to send [11:43:32]OFD Sender: No OFD packet to send [11:43:37]OFD Sender: No OFD packet to send [11:43:42]OFD Sender: No OFD packet to send [11:43:42]accept exits with 6 [11:43:42]New connection [11:43:42]New thread 3066641764 created [11:43:42]Thread 3066498404 joined [11:43:42]Waiting for new connection... [11:43:42] Sock 6.Parse request [11:43:42]Sock 6.Check first char [11:43:42]Sock 6.First char is OK [11:43:42]request: POST /json_proto HTTP/1.0 [11:43:42]Method: POST [11:43:42]URL: /json_proto [11:43:42]Method is POST - this is cgi request [11:43:42]url: /json_proto [11:43:42]query_string will be loaded in cgi processing [11:43:42]execute_cgi json_proto POST (null) [11:43:42]execute_cgi path=json_proto method=POST [11:43:42]POST find Content-Length [11:43:42]Host: 172.17.33.3:8080 [11:43:42]Content-Length: 685 [11:43:42]Content-Type: application/json [11:43:42] [11:43:42]POST finish read [11:43:42]Found Content-Length = 685 [11:43:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346977", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 55.010, "sum" : 1809.83, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 1809.00, "payments": [ { "type": 0, "sum" : 1809.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:43:42]execute_script... [11:43: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)346977", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 55.010, "sum" : 1809.83, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 1809.00, "payments": [ { "type": 0, "sum" : 1809.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:43:42]POST & json_proto [11:43:42]process_json_proto [11:43:42]json parsed OK: [11:43:42]protocol is kg_v1.0 [11:43:42]action value=close_receipt [11:43:42]process_action close_receipt [11:43:42]cmd_close_receipt [11:43:42]MH_GetDate [11:43:42]Write to MH i2c: F0 00 00 4B 76 B0 [11:43:42]Write i2c OK [11:43:42]MH_I2C_Read... [11:43:42]Read from MH i2c: F0 [11:43:42]MH_I2C_Read... [11:43:42]Read from MH i2c: F0 09 00 [11:43:42]MH_I2C_Read... [11:43:42]Read from MH i2c: F0 09 00 4B 76 00 76 1E 19 66 23 5B 8F 65 3E [11:43:42]GetLastDocTimeStamp 1712922047 [11:43:42]current date 1712922230 [11:43:42]FM_GetShiftState [11:43:42]SAM_PROTO_GetShiftState [11:43:42]wFMCommunicate request_size=4 [11:43:42]MH_SAM_APDU [11:43:42]CAPDU: 80 13 01 00 [11:43:42]Write to MH i2c: E2 08 00 4C 76 80 13 01 00 00 00 00 00 3F [11:43:42]Write i2c OK [11:43:42]MH_I2C_Read... [11:43:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:43:43]Read from MH i2c: E2 [11:43:43]MH_I2C_Read... [11:43:43]Read from MH i2c: E2 0E 00 [11:43:43]MH_I2C_Read... [11:43:43]Read from MH i2c: E2 0E 00 4C 76 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 50 [11:43:43]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [11:43:43]wFMCommunicate OK [11:43:43]SAM_PROTO_GetShiftState done [11:43:43]FM_GetShiftState done [11:43:43]opened in 1712881416 [11:43:43]opened+sec_in_day 1712967816 [11:43:43]quantity*price = 180982 [11:43:43]sum+1 = 180984 [11:43:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.83 ИТОГО: 1809.00 Внесено: 3000.00 СДАЧА: 1191.00 НСП 1% : 16.02 НДС 12% : 192.19 Наличными: 1809.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 100 12.04.2024 11:43 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28651 ФПД: 139836950279264 1/tax-web-control/client/api/v1/ticket?date=20240412T114350&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28651&fm=139836950279264&tin=02508201610067®Number=0000138879044617&sum=180900 [11:43:44]StoreToDocumentArchive [11:43:44]shift 113 fd 28651 [11:43:44]save to /storage/0113/doc_00028651 [11:43:44]save last doc name /storage/0113/doc_00028651 to /storage/kkm_last_doc_name [11:43:44]save OK [11:43:44]Clear old archive folders... [11:43:44]ProcessDocumentItem done err = 0, tmpTLVsize=250 [11:43:44]tlvbuf is 01ABBEA0 [11:43:44]SAM_PROTO_ClearQueue [11:43:44]wFMCommunicate request_size=4 [11:43:44]MH_SAM_APDU [11:43:44]CAPDU: 80 09 00 00 [11:43:44]Write to MH i2c: E2 08 00 59 76 80 09 00 00 00 00 00 00 41 [11:43:44]Write i2c OK [11:43:44]MH_I2C_Read... [11:43:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:43:44]Read from MH i2c: E2 [11:43:44]MH_I2C_Read... [11:43:44]Read from MH i2c: E2 03 00 [11:43:44]MH_I2C_Read... [11:43:44]Read from MH i2c: E2 03 00 59 76 00 90 00 43 [11:43:44]RAPDU: 90 00 [11:43:44]wFMCommunicate OK [11:43:44]SAM_PROTO_ClearQueue done [11:43:44]KKMCreateOFDPacket [11:43:44]OFDProtocolAddRootSTLVToBuf [11:43:44]FM_MakeSignedData [11:43:44]FM_MakeSignedData [11:43:44]SAM_PROTO_SignData [11:43:44]wFMCommunicate request_size=4 [11:43:44]MH_SAM_APDU [11:43:44]CAPDU: 80 0D 01 02 [11:43:44]Write to MH i2c: E2 08 00 5A 76 80 0D 01 02 00 00 00 00 49 [11:43:44]Write i2c OK [11:43:44]MH_I2C_Read... [11:43:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:43:44]Read from MH i2c: E2 [11:43:44]MH_I2C_Read... [11:43:44]Read from MH i2c: E2 03 00 [11:43:44]MH_I2C_Read... [11:43:44]Read from MH i2c: E2 03 00 5A 76 00 90 00 44 [11:43:44]RAPDU: 90 00 [11:43:44]wFMCommunicate OK [11:43:44]wFMCommunicate request_size=255 [11:43:44]MH_SAM_APDU [11:43:44]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 E2 D6 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 F7 C2 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 C2 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 4B 00 00 00 00 07 04 06 00 A4 C2 02 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 76 1E 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 EB 6F 00 00 35 04 06 00 7F 2E [11:43:44]Write to MH i2c: E2 02 01 5B 76 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 E2 D6 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 F7 C2 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 C2 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 4B 00 00 00 00 07 04 06 00 A4 C2 02 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 76 1E 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 EB 6F 00 00 35 04 06 00 7F 2E 00 00 DE [11:43:44]Write i2c OK [11:43:44]MH_I2C_Read... [11:43:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:43:44]Read from MH i2c: E2 [11:43:44]MH_I2C_Read... [11:43:44]Read from MH i2c: E2 03 00 [11:43:44]MH_I2C_Read... [11:43:44]Read from MH i2c: E2 03 00 5B 76 00 90 00 45 [11:43:44]RAPDU: 90 00 [11:43:44]wFMCommunicate OK [11:43:44]wFMCommunicate request_size=9 [11:43:44]MH_SAM_APDU [11:43:44]CAPDU: 80 0D 02 02 04 53 BF 74 60 [11:43:44]Write to MH i2c: E2 0C 00 5C 76 80 0D 02 02 04 00 53 BF 74 60 00 00 3A [11:43:44]Write i2c OK [11:43:44]MH_I2C_Read... [11:43:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:43:44]Read from MH i2c: E2 [11:43:44]MH_I2C_Read... [11:43:44]Read from MH i2c: E2 03 00 [11:43:44]MH_I2C_Read... [11:43:44]Read from MH i2c: E2 03 00 5C 76 00 90 00 46 [11:43:44]RAPDU: 90 00 [11:43:44]wFMCommunicate OK [11:43:44]wFMCommunicate request_size=4 [11:43:44]MH_SAM_APDU [11:43:44]CAPDU: 80 0D 03 02 [11:43:44]Write to MH i2c: E2 08 00 5D 76 80 0D 03 02 00 00 00 00 4E [11:43:44]Write i2c OK [11:43:44]MH_I2C_Read... [11:43:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:43:44]Read from MH i2c: E2 [11:43:44]MH_I2C_Read... [11:43:44]Read from MH i2c: E2 0B 00 [11:43:44]MH_I2C_Read... [11:43:44]Read from MH i2c: E2 0B 00 5D 76 00 9B AF 5E 81 0C D7 74 15 90 00 E4 [11:43:44]RAPDU: 9B AF 5E 81 0C D7 74 15 90 00 [11:43:44]wFMCommunicate OK [11:43:44]SAM_PROTO_SignData done [11:43:44]FM_MakeSignedData done [11:43:44]CreateOFDProtocolMessage [11:43:44]wFMCommunicate request_size=4 [11:43:44]MH_SAM_APDU [11:43:44]CAPDU: 80 11 00 00 [11:43:44]Write to MH i2c: E2 08 00 5E 76 80 11 00 00 00 00 00 00 4E [11:43:44]Write i2c OK [11:43:44]MH_I2C_Read... [11:43:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:43:44]Read from MH i2c: E2 [11:43:44]MH_I2C_Read... [11:43:44]Read from MH i2c: E2 17 00 [11:43:44]MH_I2C_Read... [11:43:44]Read from MH i2c: E2 17 00 5E 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 9D [11:43:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:43:44]wFMCommunicate OK [11:43:44]CreateOFDProtocolMessage done [11:43:44]OFDSenderStorePacket 28651 [11:43:44]StoreOFDPacket docnum=28651 [11:43:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 A2 50 06 01 85 93 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 E2 D6 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 F7 C2 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 C2 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 4B 00 00 00 00 07 04 06 00 A4 C2 02 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 76 1E 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 EB 6F 00 00 35 04 06 00 7F 2E 53 BF 74 60 9B AF 5E 81 0C D7 74 15 [11:43:44]CheckFolder [11:43:44]dirname=/storage/ofd_packets [11:43:44]CheckFolder done [11:43:44]ProducePacketName [11:43:44]name=ofd_packets/00028651 [11:43:44]NVStorageSaveData ofd_packets/00028651 [11:43:44]File name is /storage/ofd_packets/00028651 [11:43:44]Write 300 bytes [11:43:44]NVStorageSaveData done [11:43:44]OFDSenderStorePacket done [11:43:44]KKMCreateOFDPacket done [11:43:44]NVStorageSaveData kkm_last_timestamp [11:43:44]File name is /storage/kkm_last_timestamp [11:43:44]Write 4 bytes [11:43:44]NVStorageSaveData done [11:43:44]ExternCall_PrintAddStr [11:43:44]wPrintStart [11:43:44]Write to MH i2c: 01 00 00 5F 76 D5 [11:43:44]Write i2c OK [11:43:44]MH_I2C_Read... [11:43:44]Read from MH i2c: 01 [11:43:44]MH_I2C_Read... [11:43:44]Read from MH i2c: 01 07 00 [11:43:44]MH_I2C_Read... [11:43:44]Read from MH i2c: 01 07 00 5F 76 00 00 00 00 00 FF 0F EA [11:43:44]RasterBufferAndPrint [11:43:44]line Счет N : (1)346977 [11:43:44]line ИНН: 02508201610067 [11:43:44]line Контрольно-Кассовый Чек [11:43:44]line ПРОДАЖА [11:43:44]line ТРК (МРК, ГНК) : 71 [11:43:44]line Товар: 2711129700 [11:43:44]line ГАЗ-К-5 [11:43:44]line 55.010 * 32.90 [11:43:44]line = 1809.83 [11:43:44]line НДС 12% НСП 1% [11:43:44]line > о реализуемом товаре [11:43:44]line ОКРУГЛЕНИЕ: -0.83 [11:43:44]line ИТОГО: 1809.00 [11:43:44]line Внесено: 3000.00 [11:43:44]line СДАЧА: 1191.00 [11:43:44]line НСП 1% : 16.02 [11:43:44]line НДС 12% : 192.19 [11:43:44]line Наличными: 1809.00 [11:43:44]line Безнал.: 0.00 [11:43:44]line Место: АЗС № 108 "Партнер Нефть" [11:43:44]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [11:43:44]line СНО: Общий режим [11:43:44]line Чек 100 12.04.2024 11:43 [11:43:44]line Смена: 113 ФФД: 1.0 [11:43:44]line ЗНМ: 0300000027 [11:43:44]line РНМ: 0000138879044617 [11:43:44]line Версия ККМ: 001 [11:43:44]line ФМ: 0000000000963154 [11:43:44]line ФД: 28651 [11:43:44]line ФПД: 139836950279264 [11:43:45]line 1/tax-web-control/client/api/v1/ticket?date=20240412T114350&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28651&fm=139836950279264&tin=02508201610067®Number=0000138879044617&sum=180900 [11:43:45]OFD Sender: Processing packet 28651 [packets to send 8, broken 7] [11:43:45]ProducePacketName [11:43:45]name=ofd_packets/00028651 [11:43:45]OFD Sender: To server: pG, [11:43:45]CommunicateWithHost lk.salyk.kg:30040 [11:43:45]ConnectInit lk.salyk.kg [11:43:45]written 0, free lines is 4095 [11:43:45]Connected sock=7 [11:43:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 A2 50 06 01 85 93 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 E2 D6 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 F7 C2 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 C2 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 4B 00 00 00 00 07 04 06 00 A4 C2 02 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 76 1E 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 EB 6F 00 00 35 04 06 00 7F 2E 53 BF 74 60 9B AF 5E 81 0C D7 74 15 [11:43:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 CC DB 47 00 C2 22 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 EB 6F 00 00 F4 03 04 00 21 C9 18 66 B6 04 01 00 00 EE 98 2C 5F AA E6 87 B1 [11:43:45]CommunicateWithHost err = 0 [11:43:45]CheckOFDResponse [11:43:45]1017 (14) - 77093643461234 [11:43:45]1041 (16) - 0000000000963154 [11:43:45]1040 (4) - 28651 [11:43:45]1012 (4) - 12.04.2024 05:39 [11:43:45]1206 (1) - 0 [11:43:45]OFD Sender: Remove packet 28651 [11:43:45]ProducePacketName [11:43:45]name=ofd_packets/00028651 [11:43:45]NVStorageDeleteData [11:43:45]Write to MH i2c: 01 00 00 89 76 FF [11:43:45]Write i2c OK [11:43:45]MH_I2C_Read... [11:43:45]Read from MH i2c: 01 [11:43:45]MH_I2C_Read... [11:43:45]Read from MH i2c: 01 07 00 [11:43:45]MH_I2C_Read... [11:43:45]Read from MH i2c: 01 07 00 89 76 00 00 00 00 00 BC 0C CE [11:43:45]RasterBufferAndPrint [11:43:45]line [11:43:45]line [11:43:45]line [11:43:45]line [11:43:45]line [11:43:45]written 0, free lines is 3265 [11:43:45]MH_Cut [11:43:45]Write to MH i2c: D1 01 00 90 76 01 D8 [11:43:45]Write i2c OK [11:43:45]MH_I2C_Read... [11:43:45]Read from MH i2c: D1 [11:43:45]MH_I2C_Read... [11:43:45]Read from MH i2c: D1 01 00 [11:43:45]MH_I2C_Read... [11:43:45]Read from MH i2c: D1 01 00 90 76 00 D7 [11:43:45]Write to MH i2c: 01 00 00 91 76 07 [11:43:45]Write i2c OK [11:43:45]MH_I2C_Read... [11:43:45]OFD Sender: No OFD packet to send [11:43:46]*** Cut start [11:43:46]*** Partial cut [11:43:46]*** CUTSNS_PIN = 1 [11:43:46]*** CUTSNS_PIN = 0 [11:43:46]*** Brake cut motor [11:43:46]Read from MH i2c: 01 [11:43:46]MH_I2C_Read... [11:43:46]*** Stop cut motor [11:43:46]*** Cut end [11:43:46]Read from MH i2c: 01 07 00 [11:43:46]MH_I2C_Read... [11:43:46]Read from MH i2c: 01 07 00 91 76 00 00 00 00 00 FF 0F 1C [11:43:46]process_action close_receipt done [11:43:46]requested_data is exist [11:43:46]produce_requested_data [11:43:46]requested_item fm.sn is exist - process it [11:43:46]wFMCommunicate request_size=4 [11:43:46]MH_SAM_APDU [11:43:46]CAPDU: 80 11 00 00 [11:43:46]Write to MH i2c: E2 08 00 92 76 80 11 00 00 00 00 00 00 82 [11:43:46]Write i2c OK [11:43:46]MH_I2C_Read... [11:43:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:43:46]Read from MH i2c: E2 [11:43:46]MH_I2C_Read... [11:43:46]Read from MH i2c: E2 17 00 [11:43:46]MH_I2C_Read... [11:43:46]Read from MH i2c: E2 17 00 92 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D1 [11:43:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:43:46]wFMCommunicate OK [11:43:46]requested_item fd.num is exist - process it [11:43:46]SAM_PROTO_GetFieldsCounters [11:43:46]wFMCommunicate request_size=4 [11:43:46]MH_SAM_APDU [11:43:46]CAPDU: 80 13 00 00 [11:43:46]Write to MH i2c: E2 08 00 93 76 80 13 00 00 00 00 00 00 85 [11:43:46]Write i2c OK [11:43:46]MH_I2C_Read... [11:43:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:43:47]Read from MH i2c: E2 [11:43:47]MH_I2C_Read... [11:43:47]Read from MH i2c: E2 62 00 [11:43:47]MH_I2C_Read... [11:43:47]Read from MH i2c: E2 62 00 93 76 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 EB 6F 00 00 0E 04 04 00 71 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 BA [11:43:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 EB 6F 00 00 0E 04 04 00 71 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 [11:43:47]wFMCommunicate OK [11:43:47]SAM_PROTO_GetFieldsCounters done [11:43:47]requested_item shift.num is exist - process it [11:43:47]requested_item shift.opened is exist - process it [11:43:47]req_shift_opened [11:43:47]FM_GetShiftState [11:43:47]SAM_PROTO_GetShiftState [11:43:47]wFMCommunicate request_size=4 [11:43:47]MH_SAM_APDU [11:43:47]CAPDU: 80 13 01 00 [11:43:47]Write to MH i2c: E2 08 00 94 76 80 13 01 00 00 00 00 00 87 [11:43:47]Write i2c OK [11:43:47]MH_I2C_Read... [11:43:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:43:47]Read from MH i2c: E2 [11:43:47]MH_I2C_Read... [11:43:47]Read from MH i2c: E2 0E 00 [11:43:47]MH_I2C_Read... [11:43:47]Read from MH i2c: E2 0E 00 94 76 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 98 [11:43:47]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [11:43:47]wFMCommunicate OK [11:43:47]SAM_PROTO_GetShiftState done [11:43:47]FM_GetShiftState done [11:43:47]req_shift_opened done [11:43:47]requested_item shift.open_date is exist - process it [11:43:47]req_shift_open_date [11:43:47]req_shift_open_date done [11:43:47]produce_requested_data done [11:43:47]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28651,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [11:43:47]process_action_free close_receipt [11:43:47]json_value_free [11:43:47]json_value_free done [11:43:47]process_json_proto returns [11:43:47]Send response to host [11:43:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28651,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [11:43:47]free response buf [11:43:47]execute_script done [11:43:47]execute_script returns [11:43:47]free content buf [11:43:47]Sock 6.Close socket [11:43:47]Sock 6.Thread stoped [11:43:50]OFD Sender: No OFD packet to send [11:43:55]OFD Sender: No OFD packet to send [11:44:00]OFD Sender: No OFD packet to send [11:44:05]OFD Sender: No OFD packet to send [11:44:10]OFD Sender: No OFD packet to send [11:44:15]OFD Sender: No OFD packet to send [11:44:20]OFD Sender: No OFD packet to send [11:44:25]OFD Sender: No OFD packet to send [11:44:30]OFD Sender: No OFD packet to send [11:44:34]accept exits with 5 [11:44:34]New connection [11:44:34]New thread 3066498404 created [11:44:34]Thread 3066641764 joined [11:44:34]Waiting for new connection... [11:44:34] Sock 5.Parse request [11:44:34]Sock 5.Check first char [11:44:34]Sock 5.First char is OK [11:44:34]request: POST /json_proto HTTP/1.0 [11:44:34]Method: POST [11:44:34]URL: /json_proto [11:44:34]Method is POST - this is cgi request [11:44:34]url: /json_proto [11:44:34]query_string will be loaded in cgi processing [11:44:34]execute_cgi json_proto POST (null) [11:44:34]execute_cgi path=json_proto method=POST [11:44:34]POST find Content-Length [11:44:34]Host: 172.17.33.3:8080 [11:44:34]Content-Length: 1202 [11:44:34]Content-Type: application/json [11:44:34] [11:44:34]POST finish read [11:44:34]Found Content-Length = 1202 [11:44:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)346978\u000A12.04.2024 11:26\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 64.30\u000A\u0418\u0422\u041E\u0413: 643.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3698326\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:44:34]execute_script... [11:44:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)346978\u000A12.04.2024 11:26\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 64.30\u000A\u0418\u0422\u041E\u0413: 643.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3698326\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:44:34]POST & json_proto [11:44:34]process_json_proto [11:44:34]json parsed OK: [11:44:34]protocol is kg_v1.0 [11:44:34]action value=print_text [11:44:34]process_action print_text [11:44:34]cmd_print_text [11:44:34]ExternCall_PrintAddStr [11:44:34]wPrintStart [11:44:34]Write to MH i2c: 01 00 00 95 76 0B [11:44:34]Write i2c OK [11:44:34]MH_I2C_Read... [11:44:34]Read from MH i2c: 01 [11:44:34]MH_I2C_Read... [11:44:34]Read from MH i2c: 01 07 00 [11:44:34]MH_I2C_Read... [11:44:34]Read from MH i2c: 01 07 00 95 76 00 00 00 00 00 FF 0F 20 [11:44:34]RasterBufferAndPrint [11:44:34]line *****ТОВАРНЫЙ ЧЕК***** [11:44:34]line АЗС 108 [11:44:34]line Партнер нефть [11:44:34]line 02508201610067 [11:44:34]line Кассир : Джумагулова Н. [11:44:34]line Счет N : (1)346978 [11:44:34]line 12.04.2024 11:26 [11:44:34]line ПРОДАЖА [11:44:34]line ТРК (МРК, ГНК): 32 [11:44:34]line Вид ГСМ : 2710124130 [11:44:34]line Аи-92-К-5 [11:44:34]line 10.000 x 64.30 [11:44:34]line ИТОГ: 643.00 [11:44:34]line Тип оплаты: Талоны: Партнер нефть [11:44:34]line 3698326 [11:44:34]line ______________________ [11:44:34]line (подпись) [11:44:34]written 0, free lines is 4095 [11:44:34]Write to MH i2c: 01 00 00 AA 76 20 [11:44:34]Write i2c OK [11:44:34]MH_I2C_Read... [11:44:34]Read from MH i2c: 01 [11:44:34]MH_I2C_Read... [11:44:34]Read from MH i2c: 01 07 00 [11:44:34]MH_I2C_Read... [11:44:34]Read from MH i2c: 01 07 00 AA 76 00 00 00 00 00 F7 0D 2B [11:44:34]RasterBufferAndPrint [11:44:34]line [11:44:34]line [11:44:34]line [11:44:34]line [11:44:34]line [11:44:34]written 0, free lines is 3577 [11:44:34]MH_Cut [11:44:34]Write to MH i2c: D1 01 00 B1 76 01 F9 [11:44:34]Write i2c OK [11:44:34]MH_I2C_Read... [11:44:34]Read from MH i2c: D1 [11:44:34]MH_I2C_Read... [11:44:34]Read from MH i2c: D1 01 00 [11:44:34]MH_I2C_Read... [11:44:34]Read from MH i2c: D1 01 00 B1 76 00 F8 [11:44:34]Write to MH i2c: 01 00 00 B2 76 28 [11:44:34]Write i2c OK [11:44:34]MH_I2C_Read... [11:44:34]*** Cut start [11:44:34]*** Partial cut [11:44:34]*** CUTSNS_PIN = 1 [11:44:34]*** CUTSNS_PIN = 0 [11:44:35]*** Brake cut motor [11:44:35]Read from MH i2c: 01 [11:44:35]MH_I2C_Read... [11:44:35]*** Stop cut motor [11:44:35]*** Cut end [11:44:35]Read from MH i2c: 01 07 00 [11:44:35]MH_I2C_Read... [11:44:35]Read from MH i2c: 01 07 00 B2 76 00 00 00 00 00 FF 0F 3D [11:44:35]process_action print_text done [11:44:35]requested_data is exist [11:44:35]produce_requested_data [11:44:35]requested_item fm.sn is exist - process it [11:44:35]wFMCommunicate request_size=4 [11:44:35]MH_SAM_APDU [11:44:35]CAPDU: 80 11 00 00 [11:44:35]Write to MH i2c: E2 08 00 B3 76 80 11 00 00 00 00 00 00 A3 [11:44:35]Write i2c OK [11:44:35]MH_I2C_Read... [11:44:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:44:35]Read from MH i2c: E2 [11:44:35]MH_I2C_Read... [11:44:35]Read from MH i2c: E2 17 00 [11:44:35]MH_I2C_Read... [11:44:35]Read from MH i2c: E2 17 00 B3 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 F2 [11:44:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:44:35]wFMCommunicate OK [11:44:35]requested_item fd.num is exist - process it [11:44:35]SAM_PROTO_GetFieldsCounters [11:44:35]wFMCommunicate request_size=4 [11:44:35]MH_SAM_APDU [11:44:35]CAPDU: 80 13 00 00 [11:44:35]Write to MH i2c: E2 08 00 B4 76 80 13 00 00 00 00 00 00 A6 [11:44:35]Write i2c OK [11:44:35]MH_I2C_Read... [11:44:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:44:35]Read from MH i2c: E2 [11:44:35]MH_I2C_Read... [11:44:35]Read from MH i2c: E2 62 00 [11:44:35]MH_I2C_Read... [11:44:35]Read from MH i2c: E2 62 00 B4 76 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 EB 6F 00 00 0E 04 04 00 71 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 DB [11:44:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 EB 6F 00 00 0E 04 04 00 71 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 [11:44:35]wFMCommunicate OK [11:44:35]SAM_PROTO_GetFieldsCounters done [11:44:35]requested_item shift.num is exist - process it [11:44:35]requested_item shift.opened is exist - process it [11:44:35]req_shift_opened [11:44:35]FM_GetShiftState [11:44:35]SAM_PROTO_GetShiftState [11:44:35]wFMCommunicate request_size=4 [11:44:35]MH_SAM_APDU [11:44:35]CAPDU: 80 13 01 00 [11:44:35]Write to MH i2c: E2 08 00 B5 76 80 13 01 00 00 00 00 00 A8 [11:44:35]Write i2c OK [11:44:35]MH_I2C_Read... [11:44:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:44:35]Read from MH i2c: E2 [11:44:35]MH_I2C_Read... [11:44:35]Read from MH i2c: E2 0E 00 [11:44:35]MH_I2C_Read... [11:44:35]Read from MH i2c: E2 0E 00 B5 76 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 B9 [11:44:35]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [11:44:35]wFMCommunicate OK [11:44:35]SAM_PROTO_GetShiftState done [11:44:35]FM_GetShiftState done [11:44:35]req_shift_opened done [11:44:35]requested_item shift.open_date is exist - process it [11:44:35]req_shift_open_date [11:44:35]req_shift_open_date done [11:44:35]produce_requested_data done [11:44:35]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28651,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [11:44:35]process_action_free print_text [11:44:35]json_value_free [11:44:35]json_value_free done [11:44:35]process_json_proto returns [11:44:35]Send response to host [11:44:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28651,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [11:44:35]free response buf [11:44:35]execute_script done [11:44:35]execute_script returns [11:44:35]free content buf [11:44:35]Sock 5.Close socket [11:44:35]Sock 5.Thread stoped [11:44:35]OFD Sender: No OFD packet to send [11:44:40]OFD Sender: No OFD packet to send [11:44:45]OFD Sender: No OFD packet to send [11:44:50]OFD Sender: No OFD packet to send [11:44:55]OFD Sender: No OFD packet to send [11:45:00]OFD Sender: No OFD packet to send [11:45:05]OFD Sender: No OFD packet to send [11:45:10]OFD Sender: No OFD packet to send [11:45:15]OFD Sender: No OFD packet to send [11:45:20]OFD Sender: No OFD packet to send [11:45:25]OFD Sender: No OFD packet to send [11:45:30]OFD Sender: No OFD packet to send [11:45:35]OFD Sender: No OFD packet to send [11:45:40]OFD Sender: No OFD packet to send [11:45:45]OFD Sender: No OFD packet to send [11:45:50]OFD Sender: No OFD packet to send [11:45:55]OFD Sender: No OFD packet to send [11:46:00]OFD Sender: No OFD packet to send [11:46:05]OFD Sender: No OFD packet to send [11:46:10]OFD Sender: No OFD packet to send [11:46:15]OFD Sender: No OFD packet to send [11:46:20]OFD Sender: No OFD packet to send [11:46:25]OFD Sender: No OFD packet to send [11:46:30]OFD Sender: No OFD packet to send [11:46:35]OFD Sender: No OFD packet to send [11:46:40]OFD Sender: No OFD packet to send [11:46:45]OFD Sender: No OFD packet to send [11:46:50]OFD Sender: No OFD packet to send [11:46:55]OFD Sender: No OFD packet to send [11:47:00]OFD Sender: No OFD packet to send [11:47:05]OFD Sender: No OFD packet to send [11:47:10]OFD Sender: No OFD packet to send [11:47:15]OFD Sender: No OFD packet to send [11:47:20]OFD Sender: No OFD packet to send [11:47:25]accept exits with 6 [11:47:25]New connection [11:47:25]New thread 3066641764 created [11:47:25]Thread 3066498404 joined [11:47:25]Waiting for new connection... [11:47:25] Sock 6.Parse request [11:47:25]Sock 6.Check first char [11:47:25]Sock 6.First char is OK [11:47:25]request: POST /json_proto HTTP/1.0 [11:47:25]Method: POST [11:47:25]URL: /json_proto [11:47:25]Method is POST - this is cgi request [11:47:25]url: /json_proto [11:47:25]query_string will be loaded in cgi processing [11:47:25]execute_cgi json_proto POST (null) [11:47:25]execute_cgi path=json_proto method=POST [11:47:25]POST find Content-Length [11:47:25]Host: 172.17.33.3:8080 [11:47:25]Content-Length: 682 [11:47:25]Content-Type: application/json [11:47:25] [11:47:25]POST finish read [11:47:25]Found Content-Length = 682 [11:47:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346980", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 15.560, "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:47:25]execute_script... [11:47: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)346980", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 15.560, "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:47:25]POST & json_proto [11:47:25]process_json_proto [11:47:25]json parsed OK: [11:47:25]protocol is kg_v1.0 [11:47:25]action value=close_receipt [11:47:25]process_action close_receipt [11:47:25]cmd_close_receipt [11:47:25]MH_GetDate [11:47:25]Write to MH i2c: F0 00 00 B6 76 1B [11:47:25]Write i2c OK [11:47:25]MH_I2C_Read... [11:47:25]Read from MH i2c: F0 [11:47:25]MH_I2C_Read... [11:47:25]Read from MH i2c: F0 09 00 [11:47:25]MH_I2C_Read... [11:47:25]Read from MH i2c: F0 09 00 B6 76 00 55 1F 19 66 23 5B 8F 65 89 [11:47:25]GetLastDocTimeStamp 1712922230 [11:47:25]current date 1712922453 [11:47:25]FM_GetShiftState [11:47:25]SAM_PROTO_GetShiftState [11:47:25]wFMCommunicate request_size=4 [11:47:25]MH_SAM_APDU [11:47:25]CAPDU: 80 13 01 00 [11:47:25]Write to MH i2c: E2 08 00 B7 76 80 13 01 00 00 00 00 00 AA [11:47:25]Write i2c OK [11:47:25]MH_I2C_Read... [11:47:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:47:25]Read from MH i2c: E2 [11:47:25]MH_I2C_Read... [11:47:25]Read from MH i2c: E2 0E 00 [11:47:25]MH_I2C_Read... [11:47:25]Read from MH i2c: E2 0E 00 B7 76 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 BB [11:47:25]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [11:47:25]wFMCommunicate OK [11:47:25]SAM_PROTO_GetShiftState done [11:47:25]FM_GetShiftState done [11:47:25]opened in 1712881416 [11:47:25]opened+sec_in_day 1712967816 [11:47:25]quantity*price = 100050 [11:47:25]sum+1 = 100052 [11:47:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 101 12.04.2024 11:47 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28652 ФПД: 98713082304001 1/tax-web-control/client/api/v1/ticket?date=20240412T114733&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28652&fm=98713082304001&tin=02508201610067®Number=0000138879044617&sum=100000 [11:47:26]StoreToDocumentArchive [11:47:26]shift 113 fd 28652 [11:47:26]save to /storage/0113/doc_00028652 [11:47:26]save last doc name /storage/0113/doc_00028652 to /storage/kkm_last_doc_name [11:47:26]save OK [11:47:26]Clear old archive folders... [11:47:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:47:26]tlvbuf is 01BB4C80 [11:47:26]SAM_PROTO_ClearQueue [11:47:26]wFMCommunicate request_size=4 [11:47:26]MH_SAM_APDU [11:47:26]CAPDU: 80 09 00 00 [11:47:26]Write to MH i2c: E2 08 00 C4 76 80 09 00 00 00 00 00 00 AC [11:47:26]Write i2c OK [11:47:26]MH_I2C_Read... [11:47:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:47:26]Read from MH i2c: E2 [11:47:26]MH_I2C_Read... [11:47:26]Read from MH i2c: E2 03 00 [11:47:26]MH_I2C_Read... [11:47:26]Read from MH i2c: E2 03 00 C4 76 00 90 00 AE [11:47:26]RAPDU: 90 00 [11:47:26]wFMCommunicate OK [11:47:26]SAM_PROTO_ClearQueue done [11:47:26]KKMCreateOFDPacket [11:47:26]OFDProtocolAddRootSTLVToBuf [11:47:26]FM_MakeSignedData [11:47:26]FM_MakeSignedData [11:47:26]SAM_PROTO_SignData [11:47:26]wFMCommunicate request_size=4 [11:47:26]MH_SAM_APDU [11:47:26]CAPDU: 80 0D 01 02 [11:47:26]Write to MH i2c: E2 08 00 C5 76 80 0D 01 02 00 00 00 00 B4 [11:47:26]Write i2c OK [11:47:26]MH_I2C_Read... [11:47:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:47:26]Read from MH i2c: E2 [11:47:26]MH_I2C_Read... [11:47:26]Read from MH i2c: E2 03 00 [11:47:26]MH_I2C_Read... [11:47:26]Read from MH i2c: E2 03 00 C5 76 00 90 00 AF [11:47:26]RAPDU: 90 00 [11:47:26]wFMCommunicate OK [11:47:26]wFMCommunicate request_size=255 [11:47:26]MH_SAM_APDU [11:47:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 65 00 00 00 F4 03 04 00 55 1F 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 EC 6F 00 00 35 04 06 00 59 [11:47:26]Write to MH i2c: E2 02 01 C6 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 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 65 00 00 00 F4 03 04 00 55 1F 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 EC 6F 00 00 35 04 06 00 59 00 00 5D [11:47:26]Write i2c OK [11:47:26]MH_I2C_Read... [11:47:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:47:26]Read from MH i2c: E2 [11:47:26]MH_I2C_Read... [11:47:26]Read from MH i2c: E2 03 00 [11:47:26]MH_I2C_Read... [11:47:26]Read from MH i2c: E2 03 00 C6 76 00 90 00 B0 [11:47:26]RAPDU: 90 00 [11:47:26]wFMCommunicate OK [11:47:26]wFMCommunicate request_size=10 [11:47:26]MH_SAM_APDU [11:47:26]CAPDU: 80 0D 02 02 05 C7 6E 34 96 01 [11:47:26]Write to MH i2c: E2 0D 00 C7 76 80 0D 02 02 05 00 C7 6E 34 96 01 00 00 C1 [11:47:26]Write i2c OK [11:47:26]MH_I2C_Read... [11:47:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:47:26]Read from MH i2c: E2 [11:47:26]MH_I2C_Read... [11:47:26]Read from MH i2c: E2 03 00 [11:47:26]MH_I2C_Read... [11:47:26]Read from MH i2c: E2 03 00 C7 76 00 90 00 B1 [11:47:26]RAPDU: 90 00 [11:47:26]wFMCommunicate OK [11:47:26]wFMCommunicate request_size=4 [11:47:26]MH_SAM_APDU [11:47:26]CAPDU: 80 0D 03 02 [11:47:26]Write to MH i2c: E2 08 00 C8 76 80 0D 03 02 00 00 00 00 B9 [11:47:26]Write i2c OK [11:47:26]MH_I2C_Read... [11:47:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:47:27]Read from MH i2c: E2 [11:47:27]MH_I2C_Read... [11:47:27]Read from MH i2c: E2 0B 00 [11:47:27]MH_I2C_Read... [11:47:27]Read from MH i2c: E2 0B 00 C8 76 00 39 FE 30 2A 58 A1 1C 67 90 00 C7 [11:47:27]RAPDU: 39 FE 30 2A 58 A1 1C 67 90 00 [11:47:27]wFMCommunicate OK [11:47:27]SAM_PROTO_SignData done [11:47:27]FM_MakeSignedData done [11:47:27]CreateOFDProtocolMessage [11:47:27]wFMCommunicate request_size=4 [11:47:27]MH_SAM_APDU [11:47:27]CAPDU: 80 11 00 00 [11:47:27]Write to MH i2c: E2 08 00 C9 76 80 11 00 00 00 00 00 00 B9 [11:47:27]Write i2c OK [11:47:27]MH_I2C_Read... [11:47:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:47:27]Read from MH i2c: E2 [11:47:27]MH_I2C_Read... [11:47:27]Read from MH i2c: E2 17 00 [11:47:27]MH_I2C_Read... [11:47:27]Read from MH i2c: E2 17 00 C9 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 08 [11:47:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:47:27]wFMCommunicate OK [11:47:27]CreateOFDProtocolMessage done [11:47:27]OFDSenderStorePacket 28652 [11:47:27]StoreOFDPacket docnum=28652 [11:47:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 8A 52 07 01 9D A2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 65 00 00 00 F4 03 04 00 55 1F 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 EC 6F 00 00 35 04 06 00 59 C7 6E 34 96 01 39 FE 30 2A 58 A1 1C 67 [11:47:27]CheckFolder [11:47:27]dirname=/storage/ofd_packets [11:47:27]CheckFolder done [11:47:27]ProducePacketName [11:47:27]name=ofd_packets/00028652 [11:47:27]NVStorageSaveData ofd_packets/00028652 [11:47:27]File name is /storage/ofd_packets/00028652 [11:47:27]Write 301 bytes [11:47:27]NVStorageSaveData done [11:47:27]OFDSenderStorePacket done [11:47:27]KKMCreateOFDPacket done [11:47:27]NVStorageSaveData kkm_last_timestamp [11:47:27]File name is /storage/kkm_last_timestamp [11:47:27]Write 4 bytes [11:47:27]NVStorageSaveData done [11:47:27]ExternCall_PrintAddStr [11:47:27]wPrintStart [11:47:27]Write to MH i2c: 01 00 00 CA 76 40 [11:47:27]Write i2c OK [11:47:27]MH_I2C_Read... [11:47:27]Read from MH i2c: 01 [11:47:27]MH_I2C_Read... [11:47:27]Read from MH i2c: 01 07 00 [11:47:27]MH_I2C_Read... [11:47:27]Read from MH i2c: 01 07 00 CA 76 00 00 00 00 00 FF 0F 55 [11:47:27]RasterBufferAndPrint [11:47:27]line Счет N : (1)346980 [11:47:27]line ИНН: 02508201610067 [11:47:27]line Контрольно-Кассовый Чек [11:47:27]line ПРОДАЖА [11:47:27]line ТРК (МРК, ГНК) : 13 [11:47:27]line Товар: 2710124130 [11:47:27]line Аи-92-К-5 [11:47:27]line 15.560 * 64.30 [11:47:27]line = 1000.51 [11:47:27]line НДС 12% НСП 1% [11:47:27]line > о реализуемом товаре [11:47:27]line ОКРУГЛЕНИЕ: -0.51 [11:47:27]line ИТОГО: 1000.00 [11:47:27]line Внесено: 1000.00 [11:47:27]line СДАЧА: 0.00 [11:47:27]line НСП 1% : 8.85 [11:47:27]line НДС 12% : 106.25 [11:47:27]line Наличными: 1000.00 [11:47:27]line Безнал.: 0.00 [11:47:27]line Место: АЗС № 108 "Партнер Нефть" [11:47:27]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [11:47:27]line СНО: Общий режим [11:47:27]line Чек 101 12.04.2024 11:47 [11:47:27]line Смена: 113 ФФД: 1.0 [11:47:27]line ЗНМ: 0300000027 [11:47:27]line РНМ: 0000138879044617 [11:47:27]line Версия ККМ: 001 [11:47:27]line ФМ: 0000000000963154 [11:47:27]line ФД: 28652 [11:47:27]line ФПД: 98713082304001 [11:47:27]line 1/tax-web-control/client/api/v1/ticket?date=20240412T114733&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28652&fm=98713082304001&tin=02508201610067®Number=0000138879044617&sum=100000 [11:47:27]OFD Sender: Processing packet 28652 [packets to send 8, broken 7] [11:47:27]ProducePacketName [11:47:27]name=ofd_packets/00028652 [11:47:27]OFD Sender: To server: pG, [11:47:27]CommunicateWithHost lk.salyk.kg:30040 [11:47:27]ConnectInit lk.salyk.kg [11:47:27]written 0, free lines is 4095 [11:47:27]Connected sock=7 [11:47:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 8A 52 07 01 9D A2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 65 00 00 00 F4 03 04 00 55 1F 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 EC 6F 00 00 35 04 06 00 59 C7 6E 34 96 01 39 FE 30 2A 58 A1 1C 67 [11:47:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 45 2C 47 00 94 4A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 EC 6F 00 00 F4 03 04 00 FF C9 18 66 B6 04 01 00 00 B7 90 D1 98 16 8A FB 97 [11:47:27]CommunicateWithHost err = 0 [11:47:27]CheckOFDResponse [11:47:27]1017 (14) - 77093643461234 [11:47:27]1041 (16) - 0000000000963154 [11:47:27]1040 (4) - 28652 [11:47:27]1012 (4) - 12.04.2024 05:43 [11:47:27]1206 (1) - 0 [11:47:27]OFD Sender: Remove packet 28652 [11:47:27]ProducePacketName [11:47:27]name=ofd_packets/00028652 [11:47:27]NVStorageDeleteData [11:47:27]Write to MH i2c: 01 00 00 F4 76 6A [11:47:27]Write i2c OK [11:47:27]MH_I2C_Read... [11:47:27]Read from MH i2c: 01 [11:47:27]MH_I2C_Read... [11:47:27]Read from MH i2c: 01 07 00 [11:47:27]MH_I2C_Read... [11:47:27]Read from MH i2c: 01 07 00 F4 76 00 00 00 00 00 BB 0C 38 [11:47:27]RasterBufferAndPrint [11:47:27]line [11:47:27]line [11:47:27]line [11:47:27]line [11:47:27]line [11:47:27]written 0, free lines is 3265 [11:47:27]MH_Cut [11:47:27]Write to MH i2c: D1 01 00 FB 76 01 43 [11:47:27]Write i2c OK [11:47:27]MH_I2C_Read... [11:47:27]Read from MH i2c: D1 [11:47:27]MH_I2C_Read... [11:47:27]Read from MH i2c: D1 01 00 [11:47:27]MH_I2C_Read... [11:47:27]Read from MH i2c: D1 01 00 FB 76 00 42 [11:47:27]Write to MH i2c: 01 00 00 FC 76 72 [11:47:27]Write i2c OK [11:47:27]MH_I2C_Read... [11:47:28]OFD Sender: No OFD packet to send [11:47:28]*** Cut start [11:47:28]*** Partial cut [11:47:28]*** CUTSNS_PIN = 1 [11:47:28]*** CUTSNS_PIN = 0 [11:47:28]*** Brake cut motor [11:47:29]Read from MH i2c: 01 [11:47:29]MH_I2C_Read... [11:47:29]*** Stop cut motor [11:47:29]*** Cut end [11:47:29]Read from MH i2c: 01 07 00 [11:47:29]MH_I2C_Read... [11:47:29]Read from MH i2c: 01 07 00 FC 76 00 00 00 00 00 FF 0F 87 [11:47:29]process_action close_receipt done [11:47:29]requested_data is exist [11:47:29]produce_requested_data [11:47:29]requested_item fm.sn is exist - process it [11:47:29]wFMCommunicate request_size=4 [11:47:29]MH_SAM_APDU [11:47:29]CAPDU: 80 11 00 00 [11:47:29]Write to MH i2c: E2 08 00 FD 76 80 11 00 00 00 00 00 00 ED [11:47:29]Write i2c OK [11:47:29]MH_I2C_Read... [11:47:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:47:29]Read from MH i2c: E2 [11:47:29]MH_I2C_Read... [11:47:29]Read from MH i2c: E2 17 00 [11:47:29]MH_I2C_Read... [11:47:29]Read from MH i2c: E2 17 00 FD 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 3C [11:47:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:47:29]wFMCommunicate OK [11:47:29]requested_item fd.num is exist - process it [11:47:29]SAM_PROTO_GetFieldsCounters [11:47:29]wFMCommunicate request_size=4 [11:47:29]MH_SAM_APDU [11:47:29]CAPDU: 80 13 00 00 [11:47:29]Write to MH i2c: E2 08 00 FE 76 80 13 00 00 00 00 00 00 F0 [11:47:29]Write i2c OK [11:47:29]MH_I2C_Read... [11:47:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:47:29]Read from MH i2c: E2 [11:47:29]MH_I2C_Read... [11:47:29]Read from MH i2c: E2 62 00 [11:47:29]MH_I2C_Read... [11:47:29]Read from MH i2c: E2 62 00 FE 76 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 EC 6F 00 00 0E 04 04 00 71 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 29 [11:47:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 EC 6F 00 00 0E 04 04 00 71 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 [11:47:29]wFMCommunicate OK [11:47:29]SAM_PROTO_GetFieldsCounters done [11:47:29]requested_item shift.num is exist - process it [11:47:29]requested_item shift.opened is exist - process it [11:47:29]req_shift_opened [11:47:29]FM_GetShiftState [11:47:29]SAM_PROTO_GetShiftState [11:47:29]wFMCommunicate request_size=4 [11:47:29]MH_SAM_APDU [11:47:29]CAPDU: 80 13 01 00 [11:47:29]Write to MH i2c: E2 08 00 FF 76 80 13 01 00 00 00 00 00 F2 [11:47:29]Write i2c OK [11:47:29]MH_I2C_Read... [11:47:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:47:29]Read from MH i2c: E2 [11:47:29]MH_I2C_Read... [11:47:29]Read from MH i2c: E2 0E 00 [11:47:29]MH_I2C_Read... [11:47:29]Read from MH i2c: E2 0E 00 FF 76 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 03 [11:47:29]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [11:47:29]wFMCommunicate OK [11:47:29]SAM_PROTO_GetShiftState done [11:47:29]FM_GetShiftState done [11:47:29]req_shift_opened done [11:47:29]requested_item shift.open_date is exist - process it [11:47:29]req_shift_open_date [11:47:29]req_shift_open_date done [11:47:29]produce_requested_data done [11:47:29]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28652,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [11:47:29]process_action_free close_receipt [11:47:29]json_value_free [11:47:29]json_value_free done [11:47:29]process_json_proto returns [11:47:29]Send response to host [11:47:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28652,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [11:47:29]free response buf [11:47:29]execute_script done [11:47:29]execute_script returns [11:47:29]free content buf [11:47:29]Sock 6.Close socket [11:47:29]Sock 6.Thread stoped [11:47:33]OFD Sender: No OFD packet to send [11:47:38]OFD Sender: No OFD packet to send [11:47:43]OFD Sender: No OFD packet to send [11:47:48]OFD Sender: No OFD packet to send [11:47:52]accept exits with 5 [11:47:52]New connection [11:47:52]New thread 3066498404 created [11:47:52]Thread 3066641764 joined [11:47:52]Waiting for new connection... [11:47:52] Sock 5.Parse request [11:47:52]Sock 5.Check first char [11:47:52]Sock 5.First char is OK [11:47:52]request: POST /json_proto HTTP/1.0 [11:47:52]Method: POST [11:47:52]URL: /json_proto [11:47:52]Method is POST - this is cgi request [11:47:52]url: /json_proto [11:47:52]query_string will be loaded in cgi processing [11:47:52]execute_cgi json_proto POST (null) [11:47:52]execute_cgi path=json_proto method=POST [11:47:52]POST find Content-Length [11:47:52]Host: 172.17.33.3:8080 [11:47:52]Content-Length: 675 [11:47:52]Content-Type: application/json [11:47:52] [11:47:52]POST finish read [11:47:52]Found Content-Length = 675 [11:47:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346979", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 30.630, "sum" : 2000.14, "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:47:52]execute_script... [11:47:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346979", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 30.630, "sum" : 2000.14, "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:47:52]POST & json_proto [11:47:52]process_json_proto [11:47:52]json parsed OK: [11:47:52]protocol is kg_v1.0 [11:47:52]action value=close_receipt [11:47:52]process_action close_receipt [11:47:52]cmd_close_receipt [11:47:52]MH_GetDate [11:47:52]Write to MH i2c: F0 00 00 00 77 66 [11:47:52]Write i2c OK [11:47:52]MH_I2C_Read... [11:47:52]Read from MH i2c: F0 [11:47:52]MH_I2C_Read... [11:47:52]Read from MH i2c: F0 09 00 [11:47:52]MH_I2C_Read... [11:47:52]Read from MH i2c: F0 09 00 00 77 00 70 1F 19 66 23 5B 8F 65 EF [11:47:52]GetLastDocTimeStamp 1712922453 [11:47:52]current date 1712922480 [11:47:52]FM_GetShiftState [11:47:52]SAM_PROTO_GetShiftState [11:47:52]wFMCommunicate request_size=4 [11:47:52]MH_SAM_APDU [11:47:52]CAPDU: 80 13 01 00 [11:47:52]Write to MH i2c: E2 08 00 01 77 80 13 01 00 00 00 00 00 F5 [11:47:52]Write i2c OK [11:47:52]MH_I2C_Read... [11:47:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:47:52]Read from MH i2c: E2 [11:47:52]MH_I2C_Read... [11:47:52]Read from MH i2c: E2 0E 00 [11:47:52]MH_I2C_Read... [11:47:52]Read from MH i2c: E2 0E 00 01 77 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 06 [11:47:52]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [11:47:52]wFMCommunicate OK [11:47:52]SAM_PROTO_GetShiftState done [11:47:52]FM_GetShiftState done [11:47:52]opened in 1712881416 [11:47:52]opened+sec_in_day 1712967816 [11:47:52]quantity*price = 200013 [11:47:52]sum+1 = 200015 [11:47:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.14 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 102 12.04.2024 11:48 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28653 ФПД: 248713232719012 1/tax-web-control/client/api/v1/ticket?date=20240412T114800&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28653&fm=248713232719012&tin=02508201610067®Number=0000138879044617&sum=200000 [11:47:54]StoreToDocumentArchive [11:47:54]shift 113 fd 28653 [11:47:54]save to /storage/0113/doc_00028653 [11:47:54]save last doc name /storage/0113/doc_00028653 to /storage/kkm_last_doc_name [11:47:54]save OK [11:47:54]Clear old archive folders... [11:47:54]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:47:54]tlvbuf is 01AD7910 [11:47:54]SAM_PROTO_ClearQueue [11:47:54]wFMCommunicate request_size=4 [11:47:54]MH_SAM_APDU [11:47:54]CAPDU: 80 09 00 00 [11:47:54]Write to MH i2c: E2 08 00 0E 77 80 09 00 00 00 00 00 00 F7 [11:47:54]Write i2c OK [11:47:54]MH_I2C_Read... [11:47:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:47:54]Read from MH i2c: E2 [11:47:54]MH_I2C_Read... [11:47:54]Read from MH i2c: E2 03 00 [11:47:54]MH_I2C_Read... [11:47:54]Read from MH i2c: E2 03 00 0E 77 00 90 00 F9 [11:47:54]RAPDU: 90 00 [11:47:54]wFMCommunicate OK [11:47:54]SAM_PROTO_ClearQueue done [11:47:54]KKMCreateOFDPacket [11:47:54]OFDProtocolAddRootSTLVToBuf [11:47:54]FM_MakeSignedData [11:47:54]FM_MakeSignedData [11:47:54]SAM_PROTO_SignData [11:47:54]wFMCommunicate request_size=4 [11:47:54]MH_SAM_APDU [11:47:54]CAPDU: 80 0D 01 02 [11:47:54]Write to MH i2c: E2 08 00 0F 77 80 0D 01 02 00 00 00 00 FF [11:47:54]Write i2c OK [11:47:54]MH_I2C_Read... [11:47:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:47:54]Read from MH i2c: E2 [11:47:54]MH_I2C_Read... [11:47:54]Read from MH i2c: E2 03 00 [11:47:54]MH_I2C_Read... [11:47:54]Read from MH i2c: E2 03 00 0F 77 00 90 00 FA [11:47:54]RAPDU: 90 00 [11:47:54]wFMCommunicate OK [11:47:54]wFMCommunicate request_size=255 [11:47:54]MH_SAM_APDU [11:47:54]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 77 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 4E 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 70 1F 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 ED 6F 00 00 35 04 06 00 [11:47:54]Write to MH i2c: E2 02 01 10 77 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 77 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 4E 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 70 1F 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 ED 6F 00 00 35 04 06 00 00 00 01 [11:47:54]Write i2c OK [11:47:54]MH_I2C_Read... [11:47:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:47:54]Read from MH i2c: E2 [11:47:54]MH_I2C_Read... [11:47:54]Read from MH i2c: E2 03 00 [11:47:54]MH_I2C_Read... [11:47:54]Read from MH i2c: E2 03 00 10 77 00 90 00 FB [11:47:54]RAPDU: 90 00 [11:47:54]wFMCommunicate OK [11:47:54]wFMCommunicate request_size=11 [11:47:54]MH_SAM_APDU [11:47:54]CAPDU: 80 0D 02 02 06 E2 34 0F E3 1C A4 [11:47:54]Write to MH i2c: E2 0E 00 11 77 80 0D 02 02 06 00 E2 34 0F E3 1C A4 00 00 D6 [11:47:54]Write i2c OK [11:47:54]MH_I2C_Read... [11:47:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:47:54]Read from MH i2c: E2 [11:47:54]MH_I2C_Read... [11:47:54]Read from MH i2c: E2 03 00 [11:47:54]MH_I2C_Read... [11:47:54]Read from MH i2c: E2 03 00 11 77 00 90 00 FC [11:47:54]RAPDU: 90 00 [11:47:54]wFMCommunicate OK [11:47:54]wFMCommunicate request_size=4 [11:47:54]MH_SAM_APDU [11:47:54]CAPDU: 80 0D 03 02 [11:47:54]Write to MH i2c: E2 08 00 12 77 80 0D 03 02 00 00 00 00 04 [11:47:54]Write i2c OK [11:47:54]MH_I2C_Read... [11:47:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:47:54]Read from MH i2c: E2 [11:47:54]MH_I2C_Read... [11:47:54]Read from MH i2c: E2 0B 00 [11:47:54]MH_I2C_Read... [11:47:54]Read from MH i2c: E2 0B 00 12 77 00 8C 9B D3 48 F8 A9 6A 37 90 00 89 [11:47:54]RAPDU: 8C 9B D3 48 F8 A9 6A 37 90 00 [11:47:54]wFMCommunicate OK [11:47:54]SAM_PROTO_SignData done [11:47:54]FM_MakeSignedData done [11:47:54]CreateOFDProtocolMessage [11:47:54]wFMCommunicate request_size=4 [11:47:54]MH_SAM_APDU [11:47:54]CAPDU: 80 11 00 00 [11:47:54]Write to MH i2c: E2 08 00 13 77 80 11 00 00 00 00 00 00 04 [11:47:54]Write i2c OK [11:47:54]MH_I2C_Read... [11:47:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:47:54]Read from MH i2c: E2 [11:47:54]MH_I2C_Read... [11:47:54]Read from MH i2c: E2 17 00 [11:47:54]MH_I2C_Read... [11:47:54]Read from MH i2c: E2 17 00 13 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 53 [11:47:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:47:54]wFMCommunicate OK [11:47:54]CreateOFDProtocolMessage done [11:47:54]OFDSenderStorePacket 28653 [11:47:54]StoreOFDPacket docnum=28653 [11:47:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 82 6D 08 01 81 C4 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 77 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 4E 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 70 1F 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 ED 6F 00 00 35 04 06 00 E2 34 0F E3 1C A4 8C 9B D3 48 F8 A9 6A 37 [11:47:54]CheckFolder [11:47:54]dirname=/storage/ofd_packets [11:47:54]CheckFolder done [11:47:54]ProducePacketName [11:47:54]name=ofd_packets/00028653 [11:47:54]NVStorageSaveData ofd_packets/00028653 [11:47:54]File name is /storage/ofd_packets/00028653 [11:47:54]Write 302 bytes [11:47:54]NVStorageSaveData done [11:47:54]OFDSenderStorePacket done [11:47:54]KKMCreateOFDPacket done [11:47:54]NVStorageSaveData kkm_last_timestamp [11:47:54]File name is /storage/kkm_last_timestamp [11:47:54]Write 4 bytes [11:47:54]NVStorageSaveData done [11:47:54]ExternCall_PrintAddStr [11:47:54]wPrintStart [11:47:54]Write to MH i2c: 01 00 00 14 77 8B [11:47:54]Write i2c OK [11:47:54]MH_I2C_Read... [11:47:54]Read from MH i2c: 01 [11:47:54]MH_I2C_Read... [11:47:54]Read from MH i2c: 01 07 00 [11:47:54]MH_I2C_Read... [11:47:54]Read from MH i2c: 01 07 00 14 77 00 00 00 00 00 FF 0F A0 [11:47:54]RasterBufferAndPrint [11:47:54]line Счет N : (1)346979 [11:47:54]line ИНН: 02508201610067 [11:47:54]line Контрольно-Кассовый Чек [11:47:54]line ПРОДАЖА [11:47:54]line ТРК (МРК, ГНК) : 22 [11:47:54]line Товар: 2710124130 [11:47:54]line SUPER-92-К-5 [11:47:54]line 30.630 * 65.30 [11:47:54]line = 2000.14 [11:47:54]line НДС 12% НСП 1% [11:47:54]line > о реализуемом товаре [11:47:54]line ОКРУГЛЕНИЕ: -0.14 [11:47:54]line ИТОГО: 2000.00 [11:47:54]line Внесено: 2000.00 [11:47:54]line СДАЧА: 0.00 [11:47:54]line НСП 1% : 17.70 [11:47:54]line НДС 12% : 212.40 [11:47:54]line Наличными: 2000.00 [11:47:54]line Безнал.: 0.00 [11:47:54]line Место: АЗС № 108 "Партнер Нефть" [11:47:54]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [11:47:54]line СНО: Общий режим [11:47:54]line Чек 102 12.04.2024 11:48 [11:47:54]line Смена: 113 ФФД: 1.0 [11:47:54]line ЗНМ: 0300000027 [11:47:54]line РНМ: 0000138879044617 [11:47:54]line Версия ККМ: 001 [11:47:54]line ФМ: 0000000000963154 [11:47:54]line ФД: 28653 [11:47:54]line ФПД: 248713232719012 [11:47:54]line 1/tax-web-control/client/api/v1/ticket?date=20240412T114800&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28653&fm=248713232719012&tin=02508201610067®Number=0000138879044617&sum=200000 [11:47:54]OFD Sender: Processing packet 28653 [packets to send 8, broken 7] [11:47:54]ProducePacketName [11:47:54]name=ofd_packets/00028653 [11:47:54]OFD Sender: To server: pG, [11:47:54]CommunicateWithHost lk.salyk.kg:30040 [11:47:54]ConnectInit lk.salyk.kg [11:47:54]written 0, free lines is 4095 [11:47:54]Connected sock=7 [11:47:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 82 6D 08 01 81 C4 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 77 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 4E 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 70 1F 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 ED 6F 00 00 35 04 06 00 E2 34 0F E3 1C A4 8C 9B D3 48 F8 A9 6A 37 [11:47:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 2E 44 47 00 7A 16 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 ED 6F 00 00 F4 03 04 00 1B CA 18 66 B6 04 01 00 00 FB 53 50 78 A1 6F 66 18 [11:47:55]CommunicateWithHost err = 0 [11:47:55]CheckOFDResponse [11:47:55]1017 (14) - 77093643461234 [11:47:55]1041 (16) - 0000000000963154 [11:47:55]1040 (4) - 28653 [11:47:55]1012 (4) - 12.04.2024 05:43 [11:47:55]1206 (1) - 0 [11:47:55]OFD Sender: Remove packet 28653 [11:47:55]ProducePacketName [11:47:55]name=ofd_packets/00028653 [11:47:55]NVStorageDeleteData [11:47:55]Write to MH i2c: 01 00 00 3E 77 B5 [11:47:55]Write i2c OK [11:47:55]MH_I2C_Read... [11:47:55]Read from MH i2c: 01 [11:47:55]MH_I2C_Read... [11:47:55]Read from MH i2c: 01 07 00 [11:47:55]MH_I2C_Read... [11:47:55]Read from MH i2c: 01 07 00 3E 77 00 00 00 00 00 C1 0C 89 [11:47:55]RasterBufferAndPrint [11:47:55]line [11:47:55]line [11:47:55]line [11:47:55]line [11:47:55]line [11:47:55]written 0, free lines is 3271 [11:47:55]MH_Cut [11:47:55]Write to MH i2c: D1 01 00 45 77 01 8E [11:47:55]Write i2c OK [11:47:55]MH_I2C_Read... [11:47:55]Read from MH i2c: D1 [11:47:55]MH_I2C_Read... [11:47:55]Read from MH i2c: D1 01 00 [11:47:55]MH_I2C_Read... [11:47:55]Read from MH i2c: D1 01 00 45 77 00 8D [11:47:55]Write to MH i2c: 01 00 00 46 77 BD [11:47:55]Write i2c OK [11:47:55]MH_I2C_Read... [11:47:55]OFD Sender: No OFD packet to send [11:47:56]*** Cut start [11:47:56]*** Partial cut [11:47:56]*** CUTSNS_PIN = 1 [11:47:56]*** CUTSNS_PIN = 0 [11:47:56]*** Brake cut motor [11:47:56]Read from MH i2c: 01 [11:47:56]MH_I2C_Read... [11:47:56]*** Stop cut motor [11:47:56]*** Cut end [11:47:56]Read from MH i2c: 01 07 00 [11:47:56]MH_I2C_Read... [11:47:56]Read from MH i2c: 01 07 00 46 77 00 00 00 00 00 FF 0F D2 [11:47:56]process_action close_receipt done [11:47:56]requested_data is exist [11:47:56]produce_requested_data [11:47:56]requested_item fm.sn is exist - process it [11:47:56]wFMCommunicate request_size=4 [11:47:56]MH_SAM_APDU [11:47:56]CAPDU: 80 11 00 00 [11:47:56]Write to MH i2c: E2 08 00 47 77 80 11 00 00 00 00 00 00 38 [11:47:56]Write i2c OK [11:47:56]MH_I2C_Read... [11:47:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:47:56]Read from MH i2c: E2 [11:47:56]MH_I2C_Read... [11:47:56]Read from MH i2c: E2 17 00 [11:47:56]MH_I2C_Read... [11:47:56]Read from MH i2c: E2 17 00 47 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 87 [11:47:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:47:56]wFMCommunicate OK [11:47:56]requested_item fd.num is exist - process it [11:47:56]SAM_PROTO_GetFieldsCounters [11:47:56]wFMCommunicate request_size=4 [11:47:56]MH_SAM_APDU [11:47:56]CAPDU: 80 13 00 00 [11:47:56]Write to MH i2c: E2 08 00 48 77 80 13 00 00 00 00 00 00 3B [11:47:56]Write i2c OK [11:47:56]MH_I2C_Read... [11:47:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:47:57]Read from MH i2c: E2 [11:47:57]MH_I2C_Read... [11:47:57]Read from MH i2c: E2 62 00 [11:47:57]MH_I2C_Read... [11:47:57]Read from MH i2c: E2 62 00 48 77 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 ED 6F 00 00 0E 04 04 00 71 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 78 [11:47:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 ED 6F 00 00 0E 04 04 00 71 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 [11:47:57]wFMCommunicate OK [11:47:57]SAM_PROTO_GetFieldsCounters done [11:47:57]requested_item shift.num is exist - process it [11:47:57]requested_item shift.opened is exist - process it [11:47:57]req_shift_opened [11:47:57]FM_GetShiftState [11:47:57]SAM_PROTO_GetShiftState [11:47:57]wFMCommunicate request_size=4 [11:47:57]MH_SAM_APDU [11:47:57]CAPDU: 80 13 01 00 [11:47:57]Write to MH i2c: E2 08 00 49 77 80 13 01 00 00 00 00 00 3D [11:47:57]Write i2c OK [11:47:57]MH_I2C_Read... [11:47:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:47:57]Read from MH i2c: E2 [11:47:57]MH_I2C_Read... [11:47:57]Read from MH i2c: E2 0E 00 [11:47:57]MH_I2C_Read... [11:47:57]Read from MH i2c: E2 0E 00 49 77 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 4E [11:47:57]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [11:47:57]wFMCommunicate OK [11:47:57]SAM_PROTO_GetShiftState done [11:47:57]FM_GetShiftState done [11:47:57]req_shift_opened done [11:47:57]requested_item shift.open_date is exist - process it [11:47:57]req_shift_open_date [11:47:57]req_shift_open_date done [11:47:57]produce_requested_data done [11:47:57]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28653,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [11:47:57]process_action_free close_receipt [11:47:57]json_value_free [11:47:57]json_value_free done [11:47:57]process_json_proto returns [11:47:57]Send response to host [11:47:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28653,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [11:47:57]free response buf [11:47:57]execute_script done [11:47:57]execute_script returns [11:47:57]free content buf [11:47:57]Sock 5.Close socket [11:47:57]Sock 5.Thread stoped [11:48:00]OFD Sender: No OFD packet to send [11:48:05]OFD Sender: No OFD packet to send [11:48:10]OFD Sender: No OFD packet to send [11:48:15]OFD Sender: No OFD packet to send [11:48:20]OFD Sender: No OFD packet to send [11:48:25]OFD Sender: No OFD packet to send [11:48:30]OFD Sender: No OFD packet to send [11:48:35]OFD Sender: No OFD packet to send [11:48:40]OFD Sender: No OFD packet to send [11:48:45]OFD Sender: No OFD packet to send [11:48:50]OFD Sender: No OFD packet to send [11:48:55]OFD Sender: No OFD packet to send [11:49:00]OFD Sender: No OFD packet to send [11:49:05]OFD Sender: No OFD packet to send [11:49:10]OFD Sender: No OFD packet to send [11:49:15]OFD Sender: No OFD packet to send [11:49:20]OFD Sender: No OFD packet to send [11:49:25]OFD Sender: No OFD packet to send [11:49:29]accept exits with 6 [11:49:29]New connection [11:49:29]New thread 3066641764 created [11:49:29]Thread 3066498404 joined [11:49:29]Waiting for new connection... [11:49:29] Sock 6.Parse request [11:49:29]Sock 6.Check first char [11:49:29]Sock 6.First char is OK [11:49:29]request: POST /json_proto HTTP/1.0 [11:49:29]Method: POST [11:49:29]URL: /json_proto [11:49:29]Method is POST - this is cgi request [11:49:29]url: /json_proto [11:49:29]query_string will be loaded in cgi processing [11:49:29]execute_cgi json_proto POST (null) [11:49:29]execute_cgi path=json_proto method=POST [11:49:29]POST find Content-Length [11:49:29]Host: 172.17.33.3:8080 [11:49:29]Content-Length: 682 [11:49:29]Content-Type: application/json [11:49:29] [11:49:29]POST finish read [11:49:29]Found Content-Length = 682 [11:49:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346981", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 28.520, "sum" : 938.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 938.00, "payments": [ { "type": 0, "sum" : 938.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:49:29]execute_script... [11:49: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)346981", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 28.520, "sum" : 938.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 938.00, "payments": [ { "type": 0, "sum" : 938.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:49:29]POST & json_proto [11:49:29]process_json_proto [11:49:29]json parsed OK: [11:49:29]protocol is kg_v1.0 [11:49:29]action value=close_receipt [11:49:29]process_action close_receipt [11:49:29]cmd_close_receipt [11:49:29]MH_GetDate [11:49:29]Write to MH i2c: F0 00 00 4A 77 B0 [11:49:29]Write i2c OK [11:49:29]MH_I2C_Read... [11:49:29]Read from MH i2c: F0 [11:49:29]MH_I2C_Read... [11:49:29]Read from MH i2c: F0 09 00 [11:49:29]MH_I2C_Read... [11:49:29]Read from MH i2c: F0 09 00 4A 77 00 D1 1F 19 66 23 5B 8F 65 9A [11:49:29]GetLastDocTimeStamp 1712922480 [11:49:29]current date 1712922577 [11:49:29]FM_GetShiftState [11:49:29]SAM_PROTO_GetShiftState [11:49:29]wFMCommunicate request_size=4 [11:49:29]MH_SAM_APDU [11:49:29]CAPDU: 80 13 01 00 [11:49:29]Write to MH i2c: E2 08 00 4B 77 80 13 01 00 00 00 00 00 3F [11:49:29]Write i2c OK [11:49:29]MH_I2C_Read... [11:49:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:49:29]Read from MH i2c: E2 [11:49:29]MH_I2C_Read... [11:49:29]Read from MH i2c: E2 0E 00 [11:49:29]MH_I2C_Read... [11:49:29]Read from MH i2c: E2 0E 00 4B 77 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 50 [11:49:29]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [11:49:29]wFMCommunicate OK [11:49:29]SAM_PROTO_GetShiftState done [11:49:29]FM_GetShiftState done [11:49:29]opened in 1712881416 [11:49:29]opened+sec_in_day 1712967816 [11:49:29]quantity*price = 93830 [11:49:29]sum+1 = 93832 [11:49:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 938.00 Внесено: 3000.00 СДАЧА: 2062.00 НСП 1% : 8.30 НДС 12% : 99.64 Наличными: 938.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 103 12.04.2024 11:49 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28654 ФПД: 74202359135647 1/tax-web-control/client/api/v1/ticket?date=20240412T114937&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28654&fm=74202359135647&tin=02508201610067®Number=0000138879044617&sum=93800 [11:49:30]StoreToDocumentArchive [11:49:30]shift 113 fd 28654 [11:49:30]save to /storage/0113/doc_00028654 [11:49:30]save last doc name /storage/0113/doc_00028654 to /storage/kkm_last_doc_name [11:49:30]save OK [11:49:30]Clear old archive folders... [11:49:30]ProcessDocumentItem done err = 0, tmpTLVsize=250 [11:49:30]tlvbuf is 01B7E720 [11:49:30]SAM_PROTO_ClearQueue [11:49:30]wFMCommunicate request_size=4 [11:49:30]MH_SAM_APDU [11:49:30]CAPDU: 80 09 00 00 [11:49:30]Write to MH i2c: E2 08 00 58 77 80 09 00 00 00 00 00 00 41 [11:49:30]Write i2c OK [11:49:30]MH_I2C_Read... [11:49:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:49:30]Read from MH i2c: E2 [11:49:30]MH_I2C_Read... [11:49:30]Read from MH i2c: E2 03 00 [11:49:30]MH_I2C_Read... [11:49:30]Read from MH i2c: E2 03 00 58 77 00 90 00 43 [11:49:30]RAPDU: 90 00 [11:49:30]wFMCommunicate OK [11:49:30]SAM_PROTO_ClearQueue done [11:49:30]KKMCreateOFDPacket [11:49:30]OFDProtocolAddRootSTLVToBuf [11:49:30]FM_MakeSignedData [11:49:30]FM_MakeSignedData [11:49:30]SAM_PROTO_SignData [11:49:30]wFMCommunicate request_size=4 [11:49:30]MH_SAM_APDU [11:49:30]CAPDU: 80 0D 01 02 [11:49:30]Write to MH i2c: E2 08 00 59 77 80 0D 01 02 00 00 00 00 49 [11:49:30]Write i2c OK [11:49:30]MH_I2C_Read... [11:49:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:49:30]Read from MH i2c: E2 [11:49:30]MH_I2C_Read... [11:49:30]Read from MH i2c: E2 03 00 [11:49:30]MH_I2C_Read... [11:49:30]Read from MH i2c: E2 03 00 59 77 00 90 00 44 [11:49:30]RAPDU: 90 00 [11:49:30]wFMCommunicate OK [11:49:30]wFMCommunicate request_size=255 [11:49:30]MH_SAM_APDU [11:49:30]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 68 6F 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 87 6E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 6E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EC 26 00 00 00 00 07 04 06 00 68 6E 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 D1 1F 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 EE 6F 00 00 35 04 06 00 43 7C [11:49:30]Write to MH i2c: E2 02 01 5A 77 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 68 6F 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 87 6E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 6E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EC 26 00 00 00 00 07 04 06 00 68 6E 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 D1 1F 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 EE 6F 00 00 35 04 06 00 43 7C 00 00 37 [11:49:30]Write i2c OK [11:49:30]MH_I2C_Read... [11:49:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:49:31]Read from MH i2c: E2 [11:49:31]MH_I2C_Read... [11:49:31]Read from MH i2c: E2 03 00 [11:49:31]MH_I2C_Read... [11:49:31]Read from MH i2c: E2 03 00 5A 77 00 90 00 45 [11:49:31]RAPDU: 90 00 [11:49:31]wFMCommunicate OK [11:49:31]wFMCommunicate request_size=9 [11:49:31]MH_SAM_APDU [11:49:31]CAPDU: 80 0D 02 02 04 95 41 FD 9F [11:49:31]Write to MH i2c: E2 0C 00 5B 77 80 0D 02 02 04 00 95 41 FD 9F 00 00 C6 [11:49:31]Write i2c OK [11:49:31]MH_I2C_Read... [11:49:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:49:31]Read from MH i2c: E2 [11:49:31]MH_I2C_Read... [11:49:31]Read from MH i2c: E2 03 00 [11:49:31]MH_I2C_Read... [11:49:31]Read from MH i2c: E2 03 00 5B 77 00 90 00 46 [11:49:31]RAPDU: 90 00 [11:49:31]wFMCommunicate OK [11:49:31]wFMCommunicate request_size=4 [11:49:31]MH_SAM_APDU [11:49:31]CAPDU: 80 0D 03 02 [11:49:31]Write to MH i2c: E2 08 00 5C 77 80 0D 03 02 00 00 00 00 4E [11:49:31]Write i2c OK [11:49:31]MH_I2C_Read... [11:49:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:49:31]Read from MH i2c: E2 [11:49:31]MH_I2C_Read... [11:49:31]Read from MH i2c: E2 0B 00 [11:49:31]MH_I2C_Read... [11:49:31]Read from MH i2c: E2 0B 00 5C 77 00 6D 6C 77 8F FE EC 9C 5F 90 00 13 [11:49:31]RAPDU: 6D 6C 77 8F FE EC 9C 5F 90 00 [11:49:31]wFMCommunicate OK [11:49:31]SAM_PROTO_SignData done [11:49:31]FM_MakeSignedData done [11:49:31]CreateOFDProtocolMessage [11:49:31]wFMCommunicate request_size=4 [11:49:31]MH_SAM_APDU [11:49:31]CAPDU: 80 11 00 00 [11:49:31]Write to MH i2c: E2 08 00 5D 77 80 11 00 00 00 00 00 00 4E [11:49:31]Write i2c OK [11:49:31]MH_I2C_Read... [11:49:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:49:31]Read from MH i2c: E2 [11:49:31]MH_I2C_Read... [11:49:31]Read from MH i2c: E2 17 00 [11:49:31]MH_I2C_Read... [11:49:31]Read from MH i2c: E2 17 00 5D 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 9D [11:49:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:49:31]wFMCommunicate OK [11:49:31]CreateOFDProtocolMessage done [11:49:31]OFDSenderStorePacket 28654 [11:49:31]StoreOFDPacket docnum=28654 [11:49:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 E3 BE 06 01 50 F6 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 68 6F 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 87 6E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 6E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EC 26 00 00 00 00 07 04 06 00 68 6E 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 D1 1F 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 EE 6F 00 00 35 04 06 00 43 7C 95 41 FD 9F 6D 6C 77 8F FE EC 9C 5F [11:49:31]CheckFolder [11:49:31]dirname=/storage/ofd_packets [11:49:31]CheckFolder done [11:49:31]ProducePacketName [11:49:31]name=ofd_packets/00028654 [11:49:31]NVStorageSaveData ofd_packets/00028654 [11:49:31]File name is /storage/ofd_packets/00028654 [11:49:31]Write 300 bytes [11:49:31]NVStorageSaveData done [11:49:31]OFDSenderStorePacket done [11:49:31]KKMCreateOFDPacket done [11:49:31]NVStorageSaveData kkm_last_timestamp [11:49:31]File name is /storage/kkm_last_timestamp [11:49:31]Write 4 bytes [11:49:31]NVStorageSaveData done [11:49:31]ExternCall_PrintAddStr [11:49:31]wPrintStart [11:49:31]Write to MH i2c: 01 00 00 5E 77 D5 [11:49:31]Write i2c OK [11:49:31]MH_I2C_Read... [11:49:31]Read from MH i2c: 01 [11:49:31]MH_I2C_Read... [11:49:31]Read from MH i2c: 01 07 00 [11:49:31]MH_I2C_Read... [11:49:31]Read from MH i2c: 01 07 00 5E 77 00 00 00 00 00 FF 0F EA [11:49:31]RasterBufferAndPrint [11:49:31]line Счет N : (1)346981 [11:49:31]line ИНН: 02508201610067 [11:49:31]line Контрольно-Кассовый Чек [11:49:31]line ПРОДАЖА [11:49:31]line ТРК (МРК, ГНК) : 71 [11:49:31]line Товар: 2711129700 [11:49:31]line ГАЗ-К-5 [11:49:31]line 28.520 * 32.90 [11:49:31]line = 938.31 [11:49:31]line НДС 12% НСП 1% [11:49:31]line > о реализуемом товаре [11:49:31]line ОКРУГЛЕНИЕ: -0.31 [11:49:31]line ИТОГО: 938.00 [11:49:31]line Внесено: 3000.00 [11:49:31]line СДАЧА: 2062.00 [11:49:31]line НСП 1% : 8.30 [11:49:31]line НДС 12% : 99.64 [11:49:31]line Наличными: 938.00 [11:49:31]line Безнал.: 0.00 [11:49:31]line Место: АЗС № 108 "Партнер Нефть" [11:49:31]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [11:49:31]line СНО: Общий режим [11:49:31]line Чек 103 12.04.2024 11:49 [11:49:31]line Смена: 113 ФФД: 1.0 [11:49:31]line ЗНМ: 0300000027 [11:49:31]line РНМ: 0000138879044617 [11:49:31]line Версия ККМ: 001 [11:49:31]line ФМ: 0000000000963154 [11:49:31]line ФД: 28654 [11:49:31]line ФПД: 74202359135647 [11:49:31]line 1/tax-web-control/client/api/v1/ticket?date=20240412T114937&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28654&fm=74202359135647&tin=02508201610067®Number=0000138879044617&sum=93800 [11:49:31]OFD Sender: Processing packet 28654 [packets to send 8, broken 7] [11:49:31]ProducePacketName [11:49:31]name=ofd_packets/00028654 [11:49:31]OFD Sender: To server: pG, [11:49:31]CommunicateWithHost lk.salyk.kg:30040 [11:49:31]ConnectInit lk.salyk.kg [11:49:31]written 0, free lines is 4095 [11:49:31]Connected sock=7 [11:49:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 E3 BE 06 01 50 F6 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 68 6F 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 87 6E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 6E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EC 26 00 00 00 00 07 04 06 00 68 6E 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 D1 1F 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 EE 6F 00 00 35 04 06 00 43 7C 95 41 FD 9F 6D 6C 77 8F FE EC 9C 5F [11:49:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 32 0B 47 00 25 06 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 EE 6F 00 00 F4 03 04 00 7B CA 18 66 B6 04 01 00 00 07 CB 19 A0 E2 CC 5A EE [11:49:31]CommunicateWithHost err = 0 [11:49:31]CheckOFDResponse [11:49:31]1017 (14) - 77093643461234 [11:49:31]1041 (16) - 0000000000963154 [11:49:31]1040 (4) - 28654 [11:49:31]1012 (4) - 12.04.2024 05:45 [11:49:31]1206 (1) - 0 [11:49:31]OFD Sender: Remove packet 28654 [11:49:31]ProducePacketName [11:49:31]name=ofd_packets/00028654 [11:49:31]NVStorageDeleteData [11:49:32]Write to MH i2c: 01 00 00 88 77 FF [11:49:32]Write i2c OK [11:49:32]MH_I2C_Read... [11:49:32]Read from MH i2c: 01 [11:49:32]MH_I2C_Read... [11:49:32]Read from MH i2c: 01 07 00 [11:49:32]MH_I2C_Read... [11:49:32]Read from MH i2c: 01 07 00 88 77 00 00 00 00 00 C1 0C D3 [11:49:32]RasterBufferAndPrint [11:49:32]line [11:49:32]line [11:49:32]line [11:49:32]line [11:49:32]line [11:49:32]written 0, free lines is 3269 [11:49:32]MH_Cut [11:49:32]Write to MH i2c: D1 01 00 8F 77 01 D8 [11:49:32]Write i2c OK [11:49:32]MH_I2C_Read... [11:49:32]Read from MH i2c: D1 [11:49:32]MH_I2C_Read... [11:49:32]Read from MH i2c: D1 01 00 [11:49:32]MH_I2C_Read... [11:49:32]Read from MH i2c: D1 01 00 8F 77 00 D7 [11:49:32]Write to MH i2c: 01 00 00 90 77 07 [11:49:32]Write i2c OK [11:49:32]MH_I2C_Read... [11:49:32]OFD Sender: No OFD packet to send [11:49:32]*** Cut start [11:49:32]*** Partial cut [11:49:32]*** CUTSNS_PIN = 1 [11:49:32]*** CUTSNS_PIN = 0 [11:49:33]*** Brake cut motor [11:49:33]Read from MH i2c: 01 [11:49:33]MH_I2C_Read... [11:49:33]*** Stop cut motor [11:49:33]*** Cut end [11:49:33]Read from MH i2c: 01 07 00 [11:49:33]MH_I2C_Read... [11:49:33]Read from MH i2c: 01 07 00 90 77 00 00 00 00 00 FF 0F 1C [11:49:33]process_action close_receipt done [11:49:33]requested_data is exist [11:49:33]produce_requested_data [11:49:33]requested_item fm.sn is exist - process it [11:49:33]wFMCommunicate request_size=4 [11:49:33]MH_SAM_APDU [11:49:33]CAPDU: 80 11 00 00 [11:49:33]Write to MH i2c: E2 08 00 91 77 80 11 00 00 00 00 00 00 82 [11:49:33]Write i2c OK [11:49:33]MH_I2C_Read... [11:49:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:49:33]Read from MH i2c: E2 [11:49:33]MH_I2C_Read... [11:49:33]Read from MH i2c: E2 17 00 [11:49:33]MH_I2C_Read... [11:49:33]Read from MH i2c: E2 17 00 91 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D1 [11:49:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:49:33]wFMCommunicate OK [11:49:33]requested_item fd.num is exist - process it [11:49:33]SAM_PROTO_GetFieldsCounters [11:49:33]wFMCommunicate request_size=4 [11:49:33]MH_SAM_APDU [11:49:33]CAPDU: 80 13 00 00 [11:49:33]Write to MH i2c: E2 08 00 92 77 80 13 00 00 00 00 00 00 85 [11:49:33]Write i2c OK [11:49:33]MH_I2C_Read... [11:49:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:49:33]Read from MH i2c: E2 [11:49:33]MH_I2C_Read... [11:49:33]Read from MH i2c: E2 62 00 [11:49:33]MH_I2C_Read... [11:49:33]Read from MH i2c: E2 62 00 92 77 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 EE 6F 00 00 0E 04 04 00 71 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 C6 [11:49:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 EE 6F 00 00 0E 04 04 00 71 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 [11:49:33]wFMCommunicate OK [11:49:33]SAM_PROTO_GetFieldsCounters done [11:49:33]requested_item shift.num is exist - process it [11:49:33]requested_item shift.opened is exist - process it [11:49:33]req_shift_opened [11:49:33]FM_GetShiftState [11:49:33]SAM_PROTO_GetShiftState [11:49:33]wFMCommunicate request_size=4 [11:49:33]MH_SAM_APDU [11:49:33]CAPDU: 80 13 01 00 [11:49:33]Write to MH i2c: E2 08 00 93 77 80 13 01 00 00 00 00 00 87 [11:49:33]Write i2c OK [11:49:33]MH_I2C_Read... [11:49:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:49:33]Read from MH i2c: E2 [11:49:33]MH_I2C_Read... [11:49:33]Read from MH i2c: E2 0E 00 [11:49:33]MH_I2C_Read... [11:49:33]Read from MH i2c: E2 0E 00 93 77 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 98 [11:49:33]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [11:49:33]wFMCommunicate OK [11:49:33]SAM_PROTO_GetShiftState done [11:49:33]FM_GetShiftState done [11:49:33]req_shift_opened done [11:49:33]requested_item shift.open_date is exist - process it [11:49:33]req_shift_open_date [11:49:33]req_shift_open_date done [11:49:33]produce_requested_data done [11:49:33]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28654,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [11:49:33]process_action_free close_receipt [11:49:33]json_value_free [11:49:33]json_value_free done [11:49:33]process_json_proto returns [11:49:33]Send response to host [11:49:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28654,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [11:49:33]free response buf [11:49:33]execute_script done [11:49:33]execute_script returns [11:49:33]free content buf [11:49:33]Sock 6.Close socket [11:49:33]Sock 6.Thread stoped [11:49:37]OFD Sender: No OFD packet to send [11:49:42]OFD Sender: No OFD packet to send [11:49:47]OFD Sender: No OFD packet to send [11:49:52]OFD Sender: No OFD packet to send [11:49:57]OFD Sender: No OFD packet to send [11:50:02]OFD Sender: No OFD packet to send [11:50:07]OFD Sender: No OFD packet to send [11:50:12]OFD Sender: No OFD packet to send [11:50:17]OFD Sender: No OFD packet to send [11:50:22]OFD Sender: No OFD packet to send [11:50:27]OFD Sender: No OFD packet to send [11:50:32]OFD Sender: No OFD packet to send [11:50:37]OFD Sender: No OFD packet to send [11:50:42]OFD Sender: No OFD packet to send [11:50:47]OFD Sender: No OFD packet to send [11:50:52]OFD Sender: No OFD packet to send [11:50:57]OFD Sender: No OFD packet to send [11:51:02]OFD Sender: No OFD packet to send [11:51:07]OFD Sender: No OFD packet to send [11:51:12]OFD Sender: No OFD packet to send [11:51:17]OFD Sender: No OFD packet to send [11:51:22]OFD Sender: No OFD packet to send [11:51:27]OFD Sender: No OFD packet to send [11:51:32]OFD Sender: No OFD packet to send [11:51:37]OFD Sender: No OFD packet to send [11:51:42]OFD Sender: No OFD packet to send [11:51:47]OFD Sender: No OFD packet to send [11:51:52]OFD Sender: No OFD packet to send [11:51:57]OFD Sender: No OFD packet to send [11:52:02]OFD Sender: No OFD packet to send [11:52:07]OFD Sender: No OFD packet to send [11:52:12]OFD Sender: No OFD packet to send [11:52:17]OFD Sender: No OFD packet to send [11:52:18]accept exits with 5 [11:52:18]New connection [11:52:18]New thread 3066498404 created [11:52:18]Thread 3066641764 joined [11:52:18]Waiting for new connection... [11:52:18] Sock 5.Parse request [11:52:18]Sock 5.Check first char [11:52:18]Sock 5.First char is OK [11:52:18]request: POST /json_proto HTTP/1.0 [11:52:18]Method: POST [11:52:18]URL: /json_proto [11:52:18]Method is POST - this is cgi request [11:52:18]url: /json_proto [11:52:18]query_string will be loaded in cgi processing [11:52:18]execute_cgi json_proto POST (null) [11:52:18]execute_cgi path=json_proto method=POST [11:52:18]POST find Content-Length [11:52:18]Host: 172.17.33.3:8080 [11:52:18]Content-Length: 1219 [11:52:18]Content-Type: application/json [11:52:18] [11:52:18]POST finish read [11:52:18]Found Content-Length = 1219 [11:52:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)346982\u000A12.04.2024 11:34\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 23\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 23.920 x 64.30\u000A\u0418\u0422\u041E\u0413: 1538.06\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3698324;3698325;2142358\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:52:18]execute_script... [11:52:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)346982\u000A12.04.2024 11:34\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 23\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 23.920 x 64.30\u000A\u0418\u0422\u041E\u0413: 1538.06\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3698324;3698325;2142358\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:52:18]POST & json_proto [11:52:18]process_json_proto [11:52:18]json parsed OK: [11:52:18]protocol is kg_v1.0 [11:52:18]action value=print_text [11:52:18]process_action print_text [11:52:18]cmd_print_text [11:52:18]ExternCall_PrintAddStr [11:52:18]wPrintStart [11:52:18]Write to MH i2c: 01 00 00 94 77 0B [11:52:18]Write i2c OK [11:52:18]MH_I2C_Read... [11:52:18]Read from MH i2c: 01 [11:52:18]MH_I2C_Read... [11:52:18]Read from MH i2c: 01 07 00 [11:52:18]MH_I2C_Read... [11:52:18]Read from MH i2c: 01 07 00 94 77 00 00 00 00 00 FF 0F 20 [11:52:18]RasterBufferAndPrint [11:52:18]line *****ТОВАРНЫЙ ЧЕК***** [11:52:18]line АЗС 108 [11:52:18]line Партнер нефть [11:52:18]line 02508201610067 [11:52:18]line Кассир : Джумагулова Н. [11:52:18]line Счет N : (1)346982 [11:52:18]line 12.04.2024 11:34 [11:52:18]line ПРОДАЖА [11:52:18]line ТРК (МРК, ГНК): 23 [11:52:18]line Вид ГСМ : 2710124130 [11:52:18]line Аи-92-К-5 [11:52:18]line 23.920 x 64.30 [11:52:18]line ИТОГ: 1538.06 [11:52:18]line Тип оплаты: Талоны: Партнер нефть [11:52:18]line 3698324;3698325;2142358 [11:52:18]line ______________________ [11:52:18]line (подпись) [11:52:18]written 0, free lines is 4095 [11:52:18]Write to MH i2c: 01 00 00 A9 77 20 [11:52:18]Write i2c OK [11:52:18]MH_I2C_Read... [11:52:18]Read from MH i2c: 01 [11:52:18]MH_I2C_Read... [11:52:18]Read from MH i2c: 01 07 00 [11:52:18]MH_I2C_Read... [11:52:18]Read from MH i2c: 01 07 00 A9 77 00 00 00 00 00 04 0E 39 [11:52:18]RasterBufferAndPrint [11:52:18]line [11:52:18]line [11:52:18]line [11:52:18]line [11:52:18]line [11:52:18]written 0, free lines is 3590 [11:52:18]MH_Cut [11:52:18]Write to MH i2c: D1 01 00 B0 77 01 F9 [11:52:18]Write i2c OK [11:52:18]MH_I2C_Read... [11:52:18]Read from MH i2c: D1 [11:52:18]MH_I2C_Read... [11:52:18]Read from MH i2c: D1 01 00 [11:52:18]MH_I2C_Read... [11:52:18]Read from MH i2c: D1 01 00 B0 77 00 F8 [11:52:18]Write to MH i2c: 01 00 00 B1 77 28 [11:52:18]Write i2c OK [11:52:18]MH_I2C_Read... [11:52:18]*** Cut start [11:52:18]*** Partial cut [11:52:18]*** CUTSNS_PIN = 1 [11:52:18]*** CUTSNS_PIN = 0 [11:52:19]*** Brake cut motor [11:52:19]Read from MH i2c: 01 [11:52:19]MH_I2C_Read... [11:52:19]*** Stop cut motor [11:52:19]*** Cut end [11:52:19]Read from MH i2c: 01 07 00 [11:52:19]MH_I2C_Read... [11:52:19]Read from MH i2c: 01 07 00 B1 77 00 00 00 00 00 FF 0F 3D [11:52:19]process_action print_text done [11:52:19]requested_data is exist [11:52:19]produce_requested_data [11:52:19]requested_item fm.sn is exist - process it [11:52:19]wFMCommunicate request_size=4 [11:52:19]MH_SAM_APDU [11:52:19]CAPDU: 80 11 00 00 [11:52:19]Write to MH i2c: E2 08 00 B2 77 80 11 00 00 00 00 00 00 A3 [11:52:19]Write i2c OK [11:52:19]MH_I2C_Read... [11:52:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:52:19]Read from MH i2c: E2 [11:52:19]MH_I2C_Read... [11:52:19]Read from MH i2c: E2 17 00 [11:52:19]MH_I2C_Read... [11:52:19]Read from MH i2c: E2 17 00 B2 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 F2 [11:52:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:52:19]wFMCommunicate OK [11:52:19]requested_item fd.num is exist - process it [11:52:19]SAM_PROTO_GetFieldsCounters [11:52:19]wFMCommunicate request_size=4 [11:52:19]MH_SAM_APDU [11:52:19]CAPDU: 80 13 00 00 [11:52:19]Write to MH i2c: E2 08 00 B3 77 80 13 00 00 00 00 00 00 A6 [11:52:19]Write i2c OK [11:52:19]MH_I2C_Read... [11:52:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:52:19]Read from MH i2c: E2 [11:52:19]MH_I2C_Read... [11:52:19]Read from MH i2c: E2 62 00 [11:52:19]MH_I2C_Read... [11:52:19]Read from MH i2c: E2 62 00 B3 77 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 EE 6F 00 00 0E 04 04 00 71 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 E7 [11:52:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 EE 6F 00 00 0E 04 04 00 71 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 [11:52:19]wFMCommunicate OK [11:52:19]SAM_PROTO_GetFieldsCounters done [11:52:19]requested_item shift.num is exist - process it [11:52:19]requested_item shift.opened is exist - process it [11:52:19]req_shift_opened [11:52:19]FM_GetShiftState [11:52:19]SAM_PROTO_GetShiftState [11:52:19]wFMCommunicate request_size=4 [11:52:19]MH_SAM_APDU [11:52:19]CAPDU: 80 13 01 00 [11:52:19]Write to MH i2c: E2 08 00 B4 77 80 13 01 00 00 00 00 00 A8 [11:52:19]Write i2c OK [11:52:19]MH_I2C_Read... [11:52:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:52:19]Read from MH i2c: E2 [11:52:19]MH_I2C_Read... [11:52:19]Read from MH i2c: E2 0E 00 [11:52:19]MH_I2C_Read... [11:52:19]Read from MH i2c: E2 0E 00 B4 77 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 B9 [11:52:19]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [11:52:19]wFMCommunicate OK [11:52:19]SAM_PROTO_GetShiftState done [11:52:19]FM_GetShiftState done [11:52:19]req_shift_opened done [11:52:19]requested_item shift.open_date is exist - process it [11:52:19]req_shift_open_date [11:52:19]req_shift_open_date done [11:52:19]produce_requested_data done [11:52:19]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28654,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [11:52:19]process_action_free print_text [11:52:19]json_value_free [11:52:19]json_value_free done [11:52:19]process_json_proto returns [11:52:19]Send response to host [11:52:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28654,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [11:52:19]free response buf [11:52:19]execute_script done [11:52:19]execute_script returns [11:52:19]free content buf [11:52:19]Sock 5.Close socket [11:52:19]Sock 5.Thread stoped [11:52:22]OFD Sender: No OFD packet to send [11:52:27]OFD Sender: No OFD packet to send [11:52:32]OFD Sender: No OFD packet to send [11:52:37]OFD Sender: No OFD packet to send [11:52:42]OFD Sender: No OFD packet to send [11:52:47]OFD Sender: No OFD packet to send [11:52:52]OFD Sender: No OFD packet to send [11:52:57]OFD Sender: No OFD packet to send [11:53:02]OFD Sender: No OFD packet to send [11:53:07]OFD Sender: No OFD packet to send [11:53:12]OFD Sender: No OFD packet to send [11:53:17]OFD Sender: No OFD packet to send [11:53:22]OFD Sender: No OFD packet to send [11:53:27]OFD Sender: No OFD packet to send [11:53:31]accept exits with 6 [11:53:31]New connection [11:53:31]New thread 3066641764 created [11:53:31]Thread 3066498404 joined [11:53:31]Waiting for new connection... [11:53:31] Sock 6.Parse request [11:53:31]Sock 6.Check first char [11:53:31]Sock 6.First char is OK [11:53:31]request: POST /json_proto HTTP/1.0 [11:53:31]Method: POST [11:53:31]URL: /json_proto [11:53:31]Method is POST - this is cgi request [11:53:31]url: /json_proto [11:53:31]query_string will be loaded in cgi processing [11:53:31]execute_cgi json_proto POST (null) [11:53:31]execute_cgi path=json_proto method=POST [11:53:31]POST find Content-Length [11:53:31]Host: 172.17.33.3:8080 [11:53:31]Content-Length: 841 [11:53:31]Content-Type: application/json [11:53:31] [11:53:31]POST finish read [11:53:31]Found Content-Length = 841 [11:53:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346983", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 10.750, "sum" : 691.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 691.23 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:53:31]execute_script... [11:53: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)346983", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 10.750, "sum" : 691.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 691.23 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:53:31]POST & json_proto [11:53:31]process_json_proto [11:53:31]json parsed OK: [11:53:31]protocol is kg_v1.0 [11:53:31]action value=close_receipt [11:53:31]process_action close_receipt [11:53:31]cmd_close_receipt [11:53:31]MH_GetDate [11:53:31]Write to MH i2c: F0 00 00 B5 77 1B [11:53:31]Write i2c OK [11:53:31]MH_I2C_Read... [11:53:31]Read from MH i2c: F0 [11:53:31]MH_I2C_Read... [11:53:31]Read from MH i2c: F0 09 00 [11:53:31]MH_I2C_Read... [11:53:31]Read from MH i2c: F0 09 00 B5 77 00 C3 20 19 66 23 5B 8F 65 F8 [11:53:31]GetLastDocTimeStamp 1712922577 [11:53:31]current date 1712922819 [11:53:31]FM_GetShiftState [11:53:31]SAM_PROTO_GetShiftState [11:53:31]wFMCommunicate request_size=4 [11:53:31]MH_SAM_APDU [11:53:31]CAPDU: 80 13 01 00 [11:53:31]Write to MH i2c: E2 08 00 B6 77 80 13 01 00 00 00 00 00 AA [11:53:31]Write i2c OK [11:53:31]MH_I2C_Read... [11:53:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:53:31]Read from MH i2c: E2 [11:53:31]MH_I2C_Read... [11:53:31]Read from MH i2c: E2 0E 00 [11:53:31]MH_I2C_Read... [11:53:31]Read from MH i2c: E2 0E 00 B6 77 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 BB [11:53:31]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [11:53:31]wFMCommunicate OK [11:53:31]SAM_PROTO_GetShiftState done [11:53:31]FM_GetShiftState done [11:53:31]opened in 1712881416 [11:53:31]opened+sec_in_day 1712967816 [11:53:31]quantity*price = 69122 [11:53:31]sum+1 = 69124 [11:53:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 691.23 НСП 1% : 6.12 НДС 12% : 73.40 Наличными: 0.00 Безнал.: 691.23 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 104 12.04.2024 11:53 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 28655 ФПД: 219768838354249 1/tax-web-control/client/api/v1/ticket?date=20240412T115339&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28655&fm=219768838354249&tin=02508201610067®Number=0000138879044617&sum=69123 [11:53:32]StoreToDocumentArchive [11:53:32]shift 113 fd 28655 [11:53:32]save to /storage/0113/doc_00028655 [11:53:32]save last doc name /storage/0113/doc_00028655 to /storage/kkm_last_doc_name [11:53:32]save OK [11:53:32]Clear old archive folders... [11:53:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:53:32]tlvbuf is 01AE9760 [11:53:32]SAM_PROTO_ClearQueue [11:53:32]wFMCommunicate request_size=4 [11:53:32]MH_SAM_APDU [11:53:32]CAPDU: 80 09 00 00 [11:53:32]Write to MH i2c: E2 08 00 C3 77 80 09 00 00 00 00 00 00 AC [11:53:32]Write i2c OK [11:53:32]MH_I2C_Read... [11:53:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:53:32]Read from MH i2c: E2 [11:53:32]MH_I2C_Read... [11:53:32]Read from MH i2c: E2 03 00 [11:53:32]MH_I2C_Read... [11:53:32]Read from MH i2c: E2 03 00 C3 77 00 90 00 AE [11:53:32]RAPDU: 90 00 [11:53:32]wFMCommunicate OK [11:53:32]SAM_PROTO_ClearQueue done [11:53:32]KKMCreateOFDPacket [11:53:32]OFDProtocolAddRootSTLVToBuf [11:53:32]FM_MakeSignedData [11:53:32]FM_MakeSignedData [11:53:32]SAM_PROTO_SignData [11:53:32]wFMCommunicate request_size=4 [11:53:32]MH_SAM_APDU [11:53:32]CAPDU: 80 0D 01 02 [11:53:32]Write to MH i2c: E2 08 00 C4 77 80 0D 01 02 00 00 00 00 B4 [11:53:32]Write i2c OK [11:53:32]MH_I2C_Read... [11:53:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:53:32]Read from MH i2c: E2 [11:53:32]MH_I2C_Read... [11:53:32]Read from MH i2c: E2 03 00 [11:53:32]MH_I2C_Read... [11:53:32]Read from MH i2c: E2 03 00 C4 77 00 90 00 AF [11:53:32]RAPDU: 90 00 [11:53:32]wFMCommunicate OK [11:53:32]wFMCommunicate request_size=255 [11:53:32]MH_SAM_APDU [11:53:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FE 29 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 03 0E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 03 0E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 1C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 03 0E 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 C3 20 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 EF 6F 00 00 35 04 06 00 C7 [11:53:32]Write to MH i2c: E2 02 01 C5 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 35 FF 03 08 00 03 FE 29 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 03 0E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 03 0E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 1C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 03 0E 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 C3 20 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 EF 6F 00 00 35 04 06 00 C7 00 00 FD [11:53:32]Write i2c OK [11:53:32]MH_I2C_Read... [11:53:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:53:33]Read from MH i2c: E2 [11:53:33]MH_I2C_Read... [11:53:33]Read from MH i2c: E2 03 00 [11:53:33]MH_I2C_Read... [11:53:33]Read from MH i2c: E2 03 00 C5 77 00 90 00 B0 [11:53:33]RAPDU: 90 00 [11:53:33]wFMCommunicate OK [11:53:33]wFMCommunicate request_size=10 [11:53:33]MH_SAM_APDU [11:53:33]CAPDU: 80 0D 02 02 05 E0 EB 8A F5 49 [11:53:33]Write to MH i2c: E2 0D 00 C6 77 80 0D 02 02 05 00 E0 EB 8A F5 49 00 00 54 [11:53:33]Write i2c OK [11:53:33]MH_I2C_Read... [11:53:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:53:33]Read from MH i2c: E2 [11:53:33]MH_I2C_Read... [11:53:33]Read from MH i2c: E2 03 00 [11:53:33]MH_I2C_Read... [11:53:33]Read from MH i2c: E2 03 00 C6 77 00 90 00 B1 [11:53:33]RAPDU: 90 00 [11:53:33]wFMCommunicate OK [11:53:33]wFMCommunicate request_size=4 [11:53:33]MH_SAM_APDU [11:53:33]CAPDU: 80 0D 03 02 [11:53:33]Write to MH i2c: E2 08 00 C7 77 80 0D 03 02 00 00 00 00 B9 [11:53:33]Write i2c OK [11:53:33]MH_I2C_Read... [11:53:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:53:33]Read from MH i2c: E2 [11:53:33]MH_I2C_Read... [11:53:33]Read from MH i2c: E2 0B 00 [11:53:33]MH_I2C_Read... [11:53:33]Read from MH i2c: E2 0B 00 C7 77 00 5C 5E 1A 58 05 68 ED AF 90 00 EF [11:53:33]RAPDU: 5C 5E 1A 58 05 68 ED AF 90 00 [11:53:33]wFMCommunicate OK [11:53:33]SAM_PROTO_SignData done [11:53:33]FM_MakeSignedData done [11:53:33]CreateOFDProtocolMessage [11:53:33]wFMCommunicate request_size=4 [11:53:33]MH_SAM_APDU [11:53:33]CAPDU: 80 11 00 00 [11:53:33]Write to MH i2c: E2 08 00 C8 77 80 11 00 00 00 00 00 00 B9 [11:53:33]Write i2c OK [11:53:33]MH_I2C_Read... [11:53:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:53:33]Read from MH i2c: E2 [11:53:33]MH_I2C_Read... [11:53:33]Read from MH i2c: E2 17 00 [11:53:33]MH_I2C_Read... [11:53:33]Read from MH i2c: E2 17 00 C8 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 08 [11:53:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:53:33]wFMCommunicate OK [11:53:33]CreateOFDProtocolMessage done [11:53:33]OFDSenderStorePacket 28655 [11:53:33]StoreOFDPacket docnum=28655 [11:53:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 99 A5 07 01 AF 0C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FE 29 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 03 0E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 03 0E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 1C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 03 0E 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 C3 20 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 EF 6F 00 00 35 04 06 00 C7 E0 EB 8A F5 49 5C 5E 1A 58 05 68 ED AF [11:53:33]CheckFolder [11:53:33]dirname=/storage/ofd_packets [11:53:33]CheckFolder done [11:53:33]ProducePacketName [11:53:33]name=ofd_packets/00028655 [11:53:33]NVStorageSaveData ofd_packets/00028655 [11:53:33]File name is /storage/ofd_packets/00028655 [11:53:33]Write 301 bytes [11:53:33]NVStorageSaveData done [11:53:33]OFDSenderStorePacket done [11:53:33]KKMCreateOFDPacket done [11:53:33]NVStorageSaveData kkm_last_timestamp [11:53:33]File name is /storage/kkm_last_timestamp [11:53:33]Write 4 bytes [11:53:33]NVStorageSaveData done [11:53:33]ExternCall_PrintAddStr [11:53:33]wPrintStart [11:53:33]Write to MH i2c: 01 00 00 C9 77 40 [11:53:33]Write i2c OK [11:53:33]MH_I2C_Read... [11:53:33]Read from MH i2c: 01 [11:53:33]MH_I2C_Read... [11:53:33]Read from MH i2c: 01 07 00 [11:53:33]MH_I2C_Read... [11:53:33]Read from MH i2c: 01 07 00 C9 77 00 00 00 00 00 FF 0F 55 [11:53:33]RasterBufferAndPrint [11:53:33]line Счет N : (1)346983 [11:53:33]line ИНН: 02508201610067 [11:53:33]line Контрольно-Кассовый Чек [11:53:33]line ПРОДАЖА [11:53:33]line ТРК (МРК, ГНК) : 23 [11:53:33]line Товар: 2710124130 [11:53:33]line Аи-92-К-5 [11:53:33]line 10.750 * 64.30 [11:53:33]line = 691.23 [11:53:33]line НДС 12% НСП 1% [11:53:33]line > о реализуемом товаре [11:53:33]line ИТОГО: 691.23 [11:53:33]line НСП 1% : 6.12 [11:53:33]line НДС 12% : 73.40 [11:53:33]line Наличными: 0.00 [11:53:33]line Безнал.: 691.23 [11:53:33]line Место: АЗС № 108 "Партнер Нефть" [11:53:33]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [11:53:33]line СНО: Общий режим [11:53:33]line Чек 104 12.04.2024 11:53 [11:53:33]line Смена: 113 ФФД: 1.0 [11:53:33]line ЗНМ: 0300000027 [11:53:33]line РНМ: 0000138879044617 [11:53:33]line Версия ККМ: 001 [11:53:33]line Платежная система: АКБ Кыргызстан [11:53:33]line ФМ: 0000000000963154 [11:53:33]line ФД: 28655 [11:53:33]line ФПД: 219768838354249 [11:53:33]line 1/tax-web-control/client/api/v1/ticket?date=20240412T115339&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28655&fm=219768838354249&tin=02508201610067®Number=0000138879044617&sum=69123 [11:53:33]OFD Sender: Processing packet 28655 [packets to send 8, broken 7] [11:53:33]ProducePacketName [11:53:33]name=ofd_packets/00028655 [11:53:33]OFD Sender: To server: pG, [11:53:33]CommunicateWithHost lk.salyk.kg:30040 [11:53:33]ConnectInit lk.salyk.kg [11:53:33]written 0, free lines is 4095 [11:53:33]Connected sock=7 [11:53:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 99 A5 07 01 AF 0C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FE 29 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 03 0E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 03 0E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 1C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 03 0E 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 C3 20 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 EF 6F 00 00 35 04 06 00 C7 E0 EB 8A F5 49 5C 5E 1A 58 05 68 ED AF [11:53:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 27 CA 47 00 B8 8E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 EF 6F 00 00 F4 03 04 00 6D CB 18 66 B6 04 01 00 00 F3 56 2A C3 9D 45 95 99 [11:53:33]CommunicateWithHost err = 0 [11:53:33]CheckOFDResponse [11:53:33]1017 (14) - 77093643461234 [11:53:33]1041 (16) - 0000000000963154 [11:53:33]1040 (4) - 28655 [11:53:33]1012 (4) - 12.04.2024 05:49 [11:53:33]1206 (1) - 0 [11:53:33]OFD Sender: Remove packet 28655 [11:53:33]ProducePacketName [11:53:33]name=ofd_packets/00028655 [11:53:33]NVStorageDeleteData [11:53:34]Write to MH i2c: 01 00 00 F2 77 69 [11:53:34]Write i2c OK [11:53:34]MH_I2C_Read... [11:53:34]Read from MH i2c: 01 [11:53:34]MH_I2C_Read... [11:53:34]Read from MH i2c: 01 07 00 [11:53:34]MH_I2C_Read... [11:53:34]Read from MH i2c: 01 07 00 F2 77 00 00 00 00 00 EA 0C 66 [11:53:34]RasterBufferAndPrint [11:53:34]line [11:53:34]line [11:53:34]line [11:53:34]line [11:53:34]line [11:53:34]written 0, free lines is 3313 [11:53:34]MH_Cut [11:53:34]Write to MH i2c: D1 01 00 F9 77 01 42 [11:53:34]Write i2c OK [11:53:34]MH_I2C_Read... [11:53:34]Read from MH i2c: D1 [11:53:34]MH_I2C_Read... [11:53:34]Read from MH i2c: D1 01 00 [11:53:34]MH_I2C_Read... [11:53:34]Read from MH i2c: D1 01 00 F9 77 00 41 [11:53:34]Write to MH i2c: 01 00 00 FA 77 71 [11:53:34]Write i2c OK [11:53:34]MH_I2C_Read... [11:53:34]OFD Sender: No OFD packet to send [11:53:34]*** Cut start [11:53:34]*** Partial cut [11:53:34]*** CUTSNS_PIN = 1 [11:53:34]*** CUTSNS_PIN = 0 [11:53:35]*** Brake cut motor [11:53:35]Read from MH i2c: 01 [11:53:35]MH_I2C_Read... [11:53:35]*** Stop cut motor [11:53:35]*** Cut end [11:53:35]Read from MH i2c: 01 07 00 [11:53:35]MH_I2C_Read... [11:53:35]Read from MH i2c: 01 07 00 FA 77 00 00 00 00 00 FF 0F 86 [11:53:35]process_action close_receipt done [11:53:35]requested_data is exist [11:53:35]produce_requested_data [11:53:35]requested_item fm.sn is exist - process it [11:53:35]wFMCommunicate request_size=4 [11:53:35]MH_SAM_APDU [11:53:35]CAPDU: 80 11 00 00 [11:53:35]Write to MH i2c: E2 08 00 FB 77 80 11 00 00 00 00 00 00 EC [11:53:35]Write i2c OK [11:53:35]MH_I2C_Read... [11:53:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:53:35]Read from MH i2c: E2 [11:53:35]MH_I2C_Read... [11:53:35]Read from MH i2c: E2 17 00 [11:53:35]MH_I2C_Read... [11:53:35]Read from MH i2c: E2 17 00 FB 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 3B [11:53:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:53:35]wFMCommunicate OK [11:53:35]requested_item fd.num is exist - process it [11:53:35]SAM_PROTO_GetFieldsCounters [11:53:35]wFMCommunicate request_size=4 [11:53:35]MH_SAM_APDU [11:53:35]CAPDU: 80 13 00 00 [11:53:35]Write to MH i2c: E2 08 00 FC 77 80 13 00 00 00 00 00 00 EF [11:53:35]Write i2c OK [11:53:35]MH_I2C_Read... [11:53:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:53:35]Read from MH i2c: E2 [11:53:35]MH_I2C_Read... [11:53:35]Read from MH i2c: E2 62 00 [11:53:35]MH_I2C_Read... [11:53:35]Read from MH i2c: E2 62 00 FC 77 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 EF 6F 00 00 0E 04 04 00 71 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 34 [11:53:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 EF 6F 00 00 0E 04 04 00 71 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 [11:53:35]wFMCommunicate OK [11:53:35]SAM_PROTO_GetFieldsCounters done [11:53:35]requested_item shift.num is exist - process it [11:53:35]requested_item shift.opened is exist - process it [11:53:35]req_shift_opened [11:53:35]FM_GetShiftState [11:53:35]SAM_PROTO_GetShiftState [11:53:35]wFMCommunicate request_size=4 [11:53:35]MH_SAM_APDU [11:53:35]CAPDU: 80 13 01 00 [11:53:35]Write to MH i2c: E2 08 00 FD 77 80 13 01 00 00 00 00 00 F1 [11:53:35]Write i2c OK [11:53:35]MH_I2C_Read... [11:53:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:53:35]Read from MH i2c: E2 [11:53:35]MH_I2C_Read... [11:53:35]Read from MH i2c: E2 0E 00 [11:53:35]MH_I2C_Read... [11:53:35]Read from MH i2c: E2 0E 00 FD 77 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 02 [11:53:35]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [11:53:35]wFMCommunicate OK [11:53:35]SAM_PROTO_GetShiftState done [11:53:35]FM_GetShiftState done [11:53:35]req_shift_opened done [11:53:35]requested_item shift.open_date is exist - process it [11:53:35]req_shift_open_date [11:53:35]req_shift_open_date done [11:53:35]produce_requested_data done [11:53:35]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28655,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [11:53:35]process_action_free close_receipt [11:53:35]json_value_free [11:53:35]json_value_free done [11:53:35]process_json_proto returns [11:53:35]Send response to host [11:53:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28655,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [11:53:35]free response buf [11:53:35]execute_script done [11:53:35]execute_script returns [11:53:35]free content buf [11:53:35]Sock 6.Close socket [11:53:35]Sock 6.Thread stoped [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:30]accept exits with 5 [11:54:30]New connection [11:54:30]New thread 3066498404 created [11:54:30]Thread 3066641764 joined [11:54:30]Waiting for new connection... [11:54:30] Sock 5.Parse request [11:54:30]Sock 5.Check first char [11:54:30]Sock 5.First char is OK [11:54:30]request: POST /json_proto HTTP/1.0 [11:54:30]Method: POST [11:54:30]URL: /json_proto [11:54:30]Method is POST - this is cgi request [11:54:30]url: /json_proto [11:54:30]query_string will be loaded in cgi processing [11:54:30]execute_cgi json_proto POST (null) [11:54:30]execute_cgi path=json_proto method=POST [11:54:30]POST find Content-Length [11:54:30]Host: 172.17.33.3:8080 [11:54:30]Content-Length: 682 [11:54:30]Content-Type: application/json [11:54:30] [11:54:30]POST finish read [11:54:30]Found Content-Length = 682 [11:54:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346984", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 15.560, "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:54:30]execute_script... [11:54: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)346984", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 15.560, "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:54:30]POST & json_proto [11:54:30]process_json_proto [11:54:30]json parsed OK: [11:54:30]protocol is kg_v1.0 [11:54:30]action value=close_receipt [11:54:30]process_action close_receipt [11:54:30]cmd_close_receipt [11:54:30]MH_GetDate [11:54:30]Write to MH i2c: F0 00 00 FE 77 64 [11:54:30]Write i2c OK [11:54:30]MH_I2C_Read... [11:54:30]Read from MH i2c: F0 [11:54:30]MH_I2C_Read... [11:54:30]Read from MH i2c: F0 09 00 [11:54:30]MH_I2C_Read... [11:54:30]Read from MH i2c: F0 09 00 FE 77 00 FE 20 19 66 23 5B 8F 65 7C [11:54:30]GetLastDocTimeStamp 1712922819 [11:54:30]current date 1712922878 [11:54:30]FM_GetShiftState [11:54:30]SAM_PROTO_GetShiftState [11:54:30]wFMCommunicate request_size=4 [11:54:30]MH_SAM_APDU [11:54:30]CAPDU: 80 13 01 00 [11:54:30]Write to MH i2c: E2 08 00 FF 77 80 13 01 00 00 00 00 00 F3 [11:54:30]Write i2c OK [11:54:30]MH_I2C_Read... [11:54:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:54:30]Read from MH i2c: E2 [11:54:30]MH_I2C_Read... [11:54:30]Read from MH i2c: E2 0E 00 [11:54:30]MH_I2C_Read... [11:54:30]Read from MH i2c: E2 0E 00 FF 77 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 04 [11:54:30]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [11:54:30]wFMCommunicate OK [11:54:30]SAM_PROTO_GetShiftState done [11:54:30]FM_GetShiftState done [11:54:30]opened in 1712881416 [11:54:30]opened+sec_in_day 1712967816 [11:54:30]quantity*price = 100050 [11:54:30]sum+1 = 100052 [11:54: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 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 105 12.04.2024 11:54 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28656 ФПД: 251530848911183 1/tax-web-control/client/api/v1/ticket?date=20240412T115438&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28656&fm=251530848911183&tin=02508201610067®Number=0000138879044617&sum=100000 [11:54:31]StoreToDocumentArchive [11:54:31]shift 113 fd 28656 [11:54:31]save to /storage/0113/doc_00028656 [11:54:31]save last doc name /storage/0113/doc_00028656 to /storage/kkm_last_doc_name [11:54:31]save OK [11:54:31]Clear old archive folders... [11:54:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:54:31]tlvbuf is 01AA9550 [11:54:31]SAM_PROTO_ClearQueue [11:54:31]wFMCommunicate request_size=4 [11:54:31]MH_SAM_APDU [11:54:31]CAPDU: 80 09 00 00 [11:54:31]Write to MH i2c: E2 08 00 0C 78 80 09 00 00 00 00 00 00 F6 [11:54:31]Write i2c OK [11:54:31]MH_I2C_Read... [11:54:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:54:31]Read from MH i2c: E2 [11:54:31]MH_I2C_Read... [11:54:31]Read from MH i2c: E2 03 00 [11:54:31]MH_I2C_Read... [11:54:31]Read from MH i2c: E2 03 00 0C 78 00 90 00 F8 [11:54:31]RAPDU: 90 00 [11:54:31]wFMCommunicate OK [11:54:31]SAM_PROTO_ClearQueue done [11:54:31]KKMCreateOFDPacket [11:54:31]OFDProtocolAddRootSTLVToBuf [11:54:31]FM_MakeSignedData [11:54:31]FM_MakeSignedData [11:54:31]SAM_PROTO_SignData [11:54:31]wFMCommunicate request_size=4 [11:54:31]MH_SAM_APDU [11:54:31]CAPDU: 80 0D 01 02 [11:54:31]Write to MH i2c: E2 08 00 0D 78 80 0D 01 02 00 00 00 00 FE [11:54:31]Write i2c OK [11:54:31]MH_I2C_Read... [11:54:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:54:31]Read from MH i2c: E2 [11:54:31]MH_I2C_Read... [11:54:31]Read from MH i2c: E2 03 00 [11:54:31]MH_I2C_Read... [11:54:31]Read from MH i2c: E2 03 00 0D 78 00 90 00 F9 [11:54:31]RAPDU: 90 00 [11:54:31]wFMCommunicate OK [11:54:31]wFMCommunicate request_size=255 [11:54:31]MH_SAM_APDU [11:54:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 69 00 00 00 F4 03 04 00 FE 20 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F0 6F 00 00 35 04 06 00 E4 [11:54:31]Write to MH i2c: E2 02 01 0E 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 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 69 00 00 00 F4 03 04 00 FE 20 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F0 6F 00 00 35 04 06 00 E4 00 00 E4 [11:54:31]Write i2c OK [11:54:31]MH_I2C_Read... [11:54:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:54:31]Read from MH i2c: E2 [11:54:31]MH_I2C_Read... [11:54:31]Read from MH i2c: E2 03 00 [11:54:31]MH_I2C_Read... [11:54:31]Read from MH i2c: E2 03 00 0E 78 00 90 00 FA [11:54:31]RAPDU: 90 00 [11:54:31]wFMCommunicate OK [11:54:31]wFMCommunicate request_size=10 [11:54:31]MH_SAM_APDU [11:54:31]CAPDU: 80 0D 02 02 05 C4 16 E6 3F 4F [11:54:31]Write to MH i2c: E2 0D 00 0F 78 80 0D 02 02 05 00 C4 16 E6 3F 4F 00 00 59 [11:54:31]Write i2c OK [11:54:31]MH_I2C_Read... [11:54:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:54:31]Read from MH i2c: E2 [11:54:31]MH_I2C_Read... [11:54:31]Read from MH i2c: E2 03 00 [11:54:31]MH_I2C_Read... [11:54:31]Read from MH i2c: E2 03 00 0F 78 00 90 00 FB [11:54:31]RAPDU: 90 00 [11:54:31]wFMCommunicate OK [11:54:31]wFMCommunicate request_size=4 [11:54:31]MH_SAM_APDU [11:54:31]CAPDU: 80 0D 03 02 [11:54:31]Write to MH i2c: E2 08 00 10 78 80 0D 03 02 00 00 00 00 03 [11:54:31]Write i2c OK [11:54:31]MH_I2C_Read... [11:54:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:54:32]Read from MH i2c: E2 [11:54:32]MH_I2C_Read... [11:54:32]Read from MH i2c: E2 0B 00 [11:54:32]MH_I2C_Read... [11:54:32]Read from MH i2c: E2 0B 00 10 78 00 1C AE 0D B2 3E 74 A0 FA 90 00 D9 [11:54:32]RAPDU: 1C AE 0D B2 3E 74 A0 FA 90 00 [11:54:32]wFMCommunicate OK [11:54:32]SAM_PROTO_SignData done [11:54:32]FM_MakeSignedData done [11:54:32]CreateOFDProtocolMessage [11:54:32]wFMCommunicate request_size=4 [11:54:32]MH_SAM_APDU [11:54:32]CAPDU: 80 11 00 00 [11:54:32]Write to MH i2c: E2 08 00 11 78 80 11 00 00 00 00 00 00 03 [11:54:32]Write i2c OK [11:54:32]MH_I2C_Read... [11:54:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:54:32]Read from MH i2c: E2 [11:54:32]MH_I2C_Read... [11:54:32]Read from MH i2c: E2 17 00 [11:54:32]MH_I2C_Read... [11:54:32]Read from MH i2c: E2 17 00 11 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 52 [11:54:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:54:32]wFMCommunicate OK [11:54:32]CreateOFDProtocolMessage done [11:54:32]OFDSenderStorePacket 28656 [11:54:32]StoreOFDPacket docnum=28656 [11:54:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 7C 89 07 01 F5 E8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 69 00 00 00 F4 03 04 00 FE 20 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F0 6F 00 00 35 04 06 00 E4 C4 16 E6 3F 4F 1C AE 0D B2 3E 74 A0 FA [11:54:32]CheckFolder [11:54:32]dirname=/storage/ofd_packets [11:54:32]CheckFolder done [11:54:32]ProducePacketName [11:54:32]name=ofd_packets/00028656 [11:54:32]NVStorageSaveData ofd_packets/00028656 [11:54:32]File name is /storage/ofd_packets/00028656 [11:54:32]Write 301 bytes [11:54:32]NVStorageSaveData done [11:54:32]OFDSenderStorePacket done [11:54:32]KKMCreateOFDPacket done [11:54:32]NVStorageSaveData kkm_last_timestamp [11:54:32]File name is /storage/kkm_last_timestamp [11:54:32]Write 4 bytes [11:54:32]NVStorageSaveData done [11:54:32]ExternCall_PrintAddStr [11:54:32]wPrintStart [11:54:32]Write to MH i2c: 01 00 00 12 78 8A [11:54:32]Write i2c OK [11:54:32]MH_I2C_Read... [11:54:32]Read from MH i2c: 01 [11:54:32]MH_I2C_Read... [11:54:32]Read from MH i2c: 01 07 00 [11:54:32]MH_I2C_Read... [11:54:32]Read from MH i2c: 01 07 00 12 78 00 00 00 00 00 FF 0F 9F [11:54:32]RasterBufferAndPrint [11:54:32]line Счет N : (1)346984 [11:54:32]line ИНН: 02508201610067 [11:54:32]line Контрольно-Кассовый Чек [11:54:32]line ПРОДАЖА [11:54:32]line ТРК (МРК, ГНК) : 32 [11:54:32]line Товар: 2710124130 [11:54:32]line Аи-92-К-5 [11:54:32]line 15.560 * 64.30 [11:54:32]line = 1000.51 [11:54:32]line НДС 12% НСП 1% [11:54:32]line > о реализуемом товаре [11:54:32]line ОКРУГЛЕНИЕ: -0.51 [11:54:32]line ИТОГО: 1000.00 [11:54:32]line Внесено: 1000.00 [11:54:32]line СДАЧА: 0.00 [11:54:32]line НСП 1% : 8.85 [11:54:32]line НДС 12% : 106.25 [11:54:32]line Наличными: 1000.00 [11:54:32]line Безнал.: 0.00 [11:54:32]line Место: АЗС № 108 "Партнер Нефть" [11:54:32]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [11:54:32]line СНО: Общий режим [11:54:32]line Чек 105 12.04.2024 11:54 [11:54:32]line Смена: 113 ФФД: 1.0 [11:54:32]line ЗНМ: 0300000027 [11:54:32]line РНМ: 0000138879044617 [11:54:32]line Версия ККМ: 001 [11:54:32]line ФМ: 0000000000963154 [11:54:32]line ФД: 28656 [11:54:32]line ФПД: 251530848911183 [11:54:32]line 1/tax-web-control/client/api/v1/ticket?date=20240412T115438&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28656&fm=251530848911183&tin=02508201610067®Number=0000138879044617&sum=100000 [11:54:32]OFD Sender: Processing packet 28656 [packets to send 8, broken 7] [11:54:32]ProducePacketName [11:54:32]name=ofd_packets/00028656 [11:54:32]OFD Sender: To server: pG, [11:54:32]CommunicateWithHost lk.salyk.kg:30040 [11:54:32]ConnectInit lk.salyk.kg [11:54:32]written 0, free lines is 4095 [11:54:32]Connected sock=7 [11:54:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 7C 89 07 01 F5 E8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 69 00 00 00 F4 03 04 00 FE 20 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F0 6F 00 00 35 04 06 00 E4 C4 16 E6 3F 4F 1C AE 0D B2 3E 74 A0 FA [11:54:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 7D F5 47 00 47 3A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F0 6F 00 00 F4 03 04 00 A8 CB 18 66 B6 04 01 00 00 0E 95 7D AF 88 3F 9B 39 [11:54:32]CommunicateWithHost err = 0 [11:54:32]CheckOFDResponse [11:54:32]1017 (14) - 77093643461234 [11:54:32]1041 (16) - 0000000000963154 [11:54:32]1040 (4) - 28656 [11:54:32]1012 (4) - 12.04.2024 05:50 [11:54:32]1206 (1) - 0 [11:54:32]OFD Sender: Remove packet 28656 [11:54:32]ProducePacketName [11:54:32]name=ofd_packets/00028656 [11:54:32]NVStorageDeleteData [11:54:32]Write to MH i2c: 01 00 00 3C 78 B4 [11:54:32]Write i2c OK [11:54:32]MH_I2C_Read... [11:54:32]Read from MH i2c: 01 [11:54:32]MH_I2C_Read... [11:54:32]Read from MH i2c: 01 07 00 [11:54:32]MH_I2C_Read... [11:54:32]Read from MH i2c: 01 07 00 3C 78 00 00 00 00 00 CC 0C 93 [11:54:32]RasterBufferAndPrint [11:54:32]line [11:54:32]line [11:54:32]line [11:54:32]line [11:54:32]line [11:54:32]written 0, free lines is 3282 [11:54:32]MH_Cut [11:54:32]Write to MH i2c: D1 01 00 43 78 01 8D [11:54:32]Write i2c OK [11:54:32]MH_I2C_Read... [11:54:32]Read from MH i2c: D1 [11:54:32]MH_I2C_Read... [11:54:32]Read from MH i2c: D1 01 00 [11:54:32]MH_I2C_Read... [11:54:32]Read from MH i2c: D1 01 00 43 78 00 8C [11:54:32]Write to MH i2c: 01 00 00 44 78 BC [11:54:32]Write i2c OK [11:54:32]MH_I2C_Read... [11:54:33]OFD Sender: No OFD packet to send [11:54:33]*** Cut start [11:54:33]*** Partial cut [11:54:33]*** CUTSNS_PIN = 1 [11:54:33]*** CUTSNS_PIN = 0 [11:54:33]*** Brake cut motor [11:54:34]Read from MH i2c: 01 [11:54:34]MH_I2C_Read... [11:54:34]*** Stop cut motor [11:54:34]*** Cut end [11:54:34]Read from MH i2c: 01 07 00 [11:54:34]MH_I2C_Read... [11:54:34]Read from MH i2c: 01 07 00 44 78 00 00 00 00 00 FF 0F D1 [11:54:34]process_action close_receipt done [11:54:34]requested_data is exist [11:54:34]produce_requested_data [11:54:34]requested_item fm.sn is exist - process it [11:54:34]wFMCommunicate request_size=4 [11:54:34]MH_SAM_APDU [11:54:34]CAPDU: 80 11 00 00 [11:54:34]Write to MH i2c: E2 08 00 45 78 80 11 00 00 00 00 00 00 37 [11:54:34]Write i2c OK [11:54:34]MH_I2C_Read... [11:54:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:54:34]Read from MH i2c: E2 [11:54:34]MH_I2C_Read... [11:54:34]Read from MH i2c: E2 17 00 [11:54:34]MH_I2C_Read... [11:54:34]Read from MH i2c: E2 17 00 45 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 86 [11:54:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:54:34]wFMCommunicate OK [11:54:34]requested_item fd.num is exist - process it [11:54:34]SAM_PROTO_GetFieldsCounters [11:54:34]wFMCommunicate request_size=4 [11:54:34]MH_SAM_APDU [11:54:34]CAPDU: 80 13 00 00 [11:54:34]Write to MH i2c: E2 08 00 46 78 80 13 00 00 00 00 00 00 3A [11:54:34]Write i2c OK [11:54:34]MH_I2C_Read... [11:54:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:54:34]Read from MH i2c: E2 [11:54:34]MH_I2C_Read... [11:54:34]Read from MH i2c: E2 62 00 [11:54:34]MH_I2C_Read... [11:54:34]Read from MH i2c: E2 62 00 46 78 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 F0 6F 00 00 0E 04 04 00 71 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 83 [11:54:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 F0 6F 00 00 0E 04 04 00 71 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 [11:54:34]wFMCommunicate OK [11:54:34]SAM_PROTO_GetFieldsCounters done [11:54:34]requested_item shift.num is exist - process it [11:54:34]requested_item shift.opened is exist - process it [11:54:34]req_shift_opened [11:54:34]FM_GetShiftState [11:54:34]SAM_PROTO_GetShiftState [11:54:34]wFMCommunicate request_size=4 [11:54:34]MH_SAM_APDU [11:54:34]CAPDU: 80 13 01 00 [11:54:34]Write to MH i2c: E2 08 00 47 78 80 13 01 00 00 00 00 00 3C [11:54:34]Write i2c OK [11:54:34]MH_I2C_Read... [11:54:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:54:34]Read from MH i2c: E2 [11:54:34]MH_I2C_Read... [11:54:34]Read from MH i2c: E2 0E 00 [11:54:34]MH_I2C_Read... [11:54:34]Read from MH i2c: E2 0E 00 47 78 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 4D [11:54:34]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [11:54:34]wFMCommunicate OK [11:54:34]SAM_PROTO_GetShiftState done [11:54:34]FM_GetShiftState done [11:54:34]req_shift_opened done [11:54:34]requested_item shift.open_date is exist - process it [11:54:34]req_shift_open_date [11:54:34]req_shift_open_date done [11:54:34]produce_requested_data done [11:54:34]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28656,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [11:54:34]process_action_free close_receipt [11:54:34]json_value_free [11:54:34]json_value_free done [11:54:34]process_json_proto returns [11:54:34]Send response to host [11:54:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28656,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [11:54:34]free response buf [11:54:34]execute_script done [11:54:34]execute_script returns [11:54:34]free content buf [11:54:34]Sock 5.Close socket [11:54:34]Sock 5.Thread stoped [11:54:38]OFD Sender: No OFD packet to send [11:54:43]OFD Sender: No OFD packet to send [11:54:48]OFD Sender: No OFD packet to send [11:54:53]OFD Sender: No OFD packet to send [11:54:58]OFD Sender: No OFD packet to send [11:55:03]OFD Sender: No OFD packet to send [11:55:08]OFD Sender: No OFD packet to send [11:55:13]OFD Sender: No OFD packet to send [11:55:18]OFD Sender: No OFD packet to send [11:55:23]OFD Sender: No OFD packet to send [11:55:28]OFD Sender: No OFD packet to send [11:55:33]OFD Sender: No OFD packet to send [11:55:38]OFD Sender: No OFD packet to send [11:55:40]accept exits with 6 [11:55:40]New connection [11:55:40]New thread 3066641764 created [11:55:40]Thread 3066498404 joined [11:55:40]Waiting for new connection... [11:55:40] Sock 6.Parse request [11:55:40]Sock 6.Check first char [11:55:40]Sock 6.First char is OK [11:55:40]request: POST /json_proto HTTP/1.0 [11:55:40]Method: POST [11:55:40]URL: /json_proto [11:55:40]Method is POST - this is cgi request [11:55:40]url: /json_proto [11:55:40]query_string will be loaded in cgi processing [11:55:40]execute_cgi json_proto POST (null) [11:55:40]execute_cgi path=json_proto method=POST [11:55:40]POST find Content-Length [11:55:40]Host: 172.17.33.3:8080 [11:55:40]Content-Length: 1213 [11:55:40]Content-Type: application/json [11:55:40] [11:55:40]POST finish read [11:55:40]Found Content-Length = 1213 [11:55:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)346985\u000A12.04.2024 11:37\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 13\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 64.30\u000A\u0418\u0422\u041E\u0413: 1286.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A00311\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:55:40]execute_script... [11:55:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)346985\u000A12.04.2024 11:37\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 13\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 64.30\u000A\u0418\u0422\u041E\u0413: 1286.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A00311\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:55:40]POST & json_proto [11:55:40]process_json_proto [11:55:40]json parsed OK: [11:55:40]protocol is kg_v1.0 [11:55:40]action value=print_text [11:55:40]process_action print_text [11:55:40]cmd_print_text [11:55:40]ExternCall_PrintAddStr [11:55:40]wPrintStart [11:55:40]Write to MH i2c: 01 00 00 48 78 C0 [11:55:40]Write i2c OK [11:55:40]MH_I2C_Read... [11:55:40]Read from MH i2c: 01 [11:55:40]MH_I2C_Read... [11:55:40]Read from MH i2c: 01 07 00 [11:55:40]MH_I2C_Read... [11:55:40]Read from MH i2c: 01 07 00 48 78 00 00 00 00 00 FF 0F D5 [11:55:40]RasterBufferAndPrint [11:55:40]line *****ТОВАРНЫЙ ЧЕК***** [11:55:40]line АЗС 108 [11:55:40]line Партнер нефть [11:55:40]line 02508201610067 [11:55:40]line Кассир : Джумагулова Н. [11:55:40]line Счет N : (1)346985 [11:55:40]line 12.04.2024 11:37 [11:55:40]line ПРОДАЖА [11:55:40]line ТРК (МРК, ГНК): 13 [11:55:40]line Вид ГСМ : 2710124130 [11:55:40]line Аи-92-К-5 [11:55:40]line 20.000 x 64.30 [11:55:40]line ИТОГ: 1286.00 [11:55:40]line Тип оплаты: Талоны: Топливная Карта [11:55:40]line 00311 [11:55:40]line ______________________ [11:55:40]line (подпись) [11:55:40]written 0, free lines is 4095 [11:55:40]Write to MH i2c: 01 00 00 5D 78 D5 [11:55:40]Write i2c OK [11:55:40]MH_I2C_Read... [11:55:40]Read from MH i2c: 01 [11:55:40]MH_I2C_Read... [11:55:40]Read from MH i2c: 01 07 00 [11:55:40]MH_I2C_Read... [11:55:40]Read from MH i2c: 01 07 00 5D 78 00 00 00 00 00 F6 0D DF [11:55:40]RasterBufferAndPrint [11:55:40]line [11:55:40]line [11:55:40]line [11:55:40]line [11:55:40]line [11:55:40]written 0, free lines is 3576 [11:55:40]MH_Cut [11:55:40]Write to MH i2c: D1 01 00 64 78 01 AE [11:55:40]Write i2c OK [11:55:40]MH_I2C_Read... [11:55:40]Read from MH i2c: D1 [11:55:40]MH_I2C_Read... [11:55:40]Read from MH i2c: D1 01 00 [11:55:40]MH_I2C_Read... [11:55:40]Read from MH i2c: D1 01 00 64 78 00 AD [11:55:40]Write to MH i2c: 01 00 00 65 78 DD [11:55:40]Write i2c OK [11:55:40]MH_I2C_Read... [11:55:40]*** Cut start [11:55:40]*** Partial cut [11:55:40]*** CUTSNS_PIN = 1 [11:55:40]*** CUTSNS_PIN = 0 [11:55:41]*** Brake cut motor [11:55:41]Read from MH i2c: 01 [11:55:41]MH_I2C_Read... [11:55:41]*** Stop cut motor [11:55:41]*** Cut end [11:55:41]Read from MH i2c: 01 07 00 [11:55:41]MH_I2C_Read... [11:55:41]Read from MH i2c: 01 07 00 65 78 00 00 00 00 00 FF 0F F2 [11:55:41]process_action print_text done [11:55:41]requested_data is exist [11:55:41]produce_requested_data [11:55:41]requested_item fm.sn is exist - process it [11:55:41]wFMCommunicate request_size=4 [11:55:41]MH_SAM_APDU [11:55:41]CAPDU: 80 11 00 00 [11:55:41]Write to MH i2c: E2 08 00 66 78 80 11 00 00 00 00 00 00 58 [11:55:41]Write i2c OK [11:55:41]MH_I2C_Read... [11:55:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:55:41]Read from MH i2c: E2 [11:55:41]MH_I2C_Read... [11:55:41]Read from MH i2c: E2 17 00 [11:55:41]MH_I2C_Read... [11:55:41]Read from MH i2c: E2 17 00 66 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 A7 [11:55:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:55:41]wFMCommunicate OK [11:55:41]requested_item fd.num is exist - process it [11:55:41]SAM_PROTO_GetFieldsCounters [11:55:41]wFMCommunicate request_size=4 [11:55:41]MH_SAM_APDU [11:55:41]CAPDU: 80 13 00 00 [11:55:41]Write to MH i2c: E2 08 00 67 78 80 13 00 00 00 00 00 00 5B [11:55:41]Write i2c OK [11:55:41]MH_I2C_Read... [11:55:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:55:41]Read from MH i2c: E2 [11:55:41]MH_I2C_Read... [11:55:41]Read from MH i2c: E2 62 00 [11:55:41]MH_I2C_Read... [11:55:41]Read from MH i2c: E2 62 00 67 78 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 F0 6F 00 00 0E 04 04 00 71 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 A4 [11:55:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 F0 6F 00 00 0E 04 04 00 71 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 [11:55:41]wFMCommunicate OK [11:55:41]SAM_PROTO_GetFieldsCounters done [11:55:41]requested_item shift.num is exist - process it [11:55:41]requested_item shift.opened is exist - process it [11:55:41]req_shift_opened [11:55:41]FM_GetShiftState [11:55:41]SAM_PROTO_GetShiftState [11:55:41]wFMCommunicate request_size=4 [11:55:41]MH_SAM_APDU [11:55:41]CAPDU: 80 13 01 00 [11:55:41]Write to MH i2c: E2 08 00 68 78 80 13 01 00 00 00 00 00 5D [11:55:41]Write i2c OK [11:55:41]MH_I2C_Read... [11:55:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:55:41]Read from MH i2c: E2 [11:55:41]MH_I2C_Read... [11:55:41]Read from MH i2c: E2 0E 00 [11:55:41]MH_I2C_Read... [11:55:41]Read from MH i2c: E2 0E 00 68 78 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 6E [11:55:41]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [11:55:41]wFMCommunicate OK [11:55:41]SAM_PROTO_GetShiftState done [11:55:41]FM_GetShiftState done [11:55:41]req_shift_opened done [11:55:41]requested_item shift.open_date is exist - process it [11:55:41]req_shift_open_date [11:55:41]req_shift_open_date done [11:55:41]produce_requested_data done [11:55:41]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28656,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [11:55:41]process_action_free print_text [11:55:41]json_value_free [11:55:41]json_value_free done [11:55:41]process_json_proto returns [11:55:41]Send response to host [11:55:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28656,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [11:55:41]free response buf [11:55:41]execute_script done [11:55:41]execute_script returns [11:55:41]free content buf [11:55:41]Sock 6.Close socket [11:55:41]Sock 6.Thread stoped [11:55:43]OFD Sender: No OFD packet to send [11:55:48]OFD Sender: No OFD packet to send [11:55:53]OFD Sender: No OFD packet to send [11:55:58]OFD Sender: No OFD packet to send [11:56:03]OFD Sender: No OFD packet to send [11:56:08]OFD Sender: No OFD packet to send [11:56:13]OFD Sender: No OFD packet to send [11:56:18]OFD Sender: No OFD packet to send [11:56:23]OFD Sender: No OFD packet to send [11:56:28]OFD Sender: No OFD packet to send [11:56:33]OFD Sender: No OFD packet to send [11:56:38]OFD Sender: No OFD packet to send [11:56:43]OFD Sender: No OFD packet to send [11:56:48]OFD Sender: No OFD packet to send [11:56:53]OFD Sender: No OFD packet to send [11:56:58]OFD Sender: No OFD packet to send [11:57:03]OFD Sender: No OFD packet to send [11:57:08]OFD Sender: No OFD packet to send [11:57:13]OFD Sender: No OFD packet to send [11:57:18]OFD Sender: No OFD packet to send [11:57:23]OFD Sender: No OFD packet to send [11:57:28]OFD Sender: No OFD packet to send [11:57:33]OFD Sender: No OFD packet to send [11:57:38]OFD Sender: No OFD packet to send [11:57:43]OFD Sender: No OFD packet to send [11:57:48]OFD Sender: No OFD packet to send [11:57:53]OFD Sender: No OFD packet to send [11:57:58]OFD Sender: No OFD packet to send [11:58:03]OFD Sender: No OFD packet to send [11:58:08]OFD Sender: No OFD packet to send [11:58:13]OFD Sender: No OFD packet to send [11:58:18]OFD Sender: No OFD packet to send [11:58:23]OFD Sender: No OFD packet to send [11:58:28]OFD Sender: No OFD packet to send [11:58:33]OFD Sender: No OFD packet to send [11:58:38]OFD Sender: No OFD packet to send [11:58:43]OFD Sender: No OFD packet to send [11:58:48]OFD Sender: No OFD packet to send [11:58:53]OFD Sender: No OFD packet to send [11:58:58]OFD Sender: No OFD packet to send [11:59:03]OFD Sender: No OFD packet to send [11:59:08]OFD Sender: No OFD packet to send [11:59:13]OFD Sender: No OFD packet to send [11:59:18]OFD Sender: No OFD packet to send [11:59:23]OFD Sender: No OFD packet to send [11:59:28]OFD Sender: No OFD packet to send [11:59:33]OFD Sender: No OFD packet to send [11:59:38]OFD Sender: No OFD packet to send [11:59:43]OFD Sender: No OFD packet to send [11:59:48]OFD Sender: No OFD packet to send [11:59:53]OFD Sender: No OFD packet to send [11:59:58]OFD Sender: No OFD packet to send [12:00:03]OFD Sender: No OFD packet to send [12:00:05]accept exits with 5 [12:00:05]New connection [12:00:05]New thread 3066498404 created [12:00:05]Thread 3066641764 joined [12:00:05]Waiting for new connection... [12:00:05] Sock 5.Parse request [12:00:05]Sock 5.Check first char [12:00:05]Sock 5.First char is OK [12:00:05]request: POST /json_proto HTTP/1.0 [12:00:05]Method: POST [12:00:05]URL: /json_proto [12:00:05]Method is POST - this is cgi request [12:00:05]url: /json_proto [12:00:05]query_string will be loaded in cgi processing [12:00:05]execute_cgi json_proto POST (null) [12:00:05]execute_cgi path=json_proto method=POST [12:00:05]POST find Content-Length [12:00:05]Host: 172.17.33.3:8080 [12:00:05]Content-Length: 1209 [12:00:05]Content-Type: application/json [12:00:05] [12:00:05]POST finish read [12:00:05]Found Content-Length = 1209 [12:00:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)346986\u000A12.04.2024 11:42\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 10.000 x 72.40\u000A\u0418\u0422\u041E\u0413: 724.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A43219\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:00:05]execute_script... [12:00:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)346986\u000A12.04.2024 11:42\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 10.000 x 72.40\u000A\u0418\u0422\u041E\u0413: 724.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A43219\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:00:05]POST & json_proto [12:00:05]process_json_proto [12:00:05]json parsed OK: [12:00:05]protocol is kg_v1.0 [12:00:05]action value=print_text [12:00:05]process_action print_text [12:00:05]cmd_print_text [12:00:05]ExternCall_PrintAddStr [12:00:05]wPrintStart [12:00:05]Write to MH i2c: 01 00 00 69 78 E1 [12:00:05]Write i2c OK [12:00:05]MH_I2C_Read... [12:00:05]Read from MH i2c: 01 [12:00:05]MH_I2C_Read... [12:00:05]Read from MH i2c: 01 07 00 [12:00:05]MH_I2C_Read... [12:00:05]Read from MH i2c: 01 07 00 69 78 00 00 00 00 00 FF 0F F6 [12:00:05]RasterBufferAndPrint [12:00:05]line *****ТОВАРНЫЙ ЧЕК***** [12:00:05]line АЗС 108 [12:00:05]line Партнер нефть [12:00:05]line 02508201610067 [12:00:05]line Кассир : Джумагулова Н. [12:00:05]line Счет N : (1)346986 [12:00:05]line 12.04.2024 11:42 [12:00:05]line ПРОДАЖА [12:00:05]line ТРК (МРК, ГНК): 21 [12:00:05]line Вид ГСМ : 2710194210 [12:00:05]line ДТ-К-5 [12:00:05]line 10.000 x 72.40 [12:00:05]line ИТОГ: 724.00 [12:00:05]line Тип оплаты: Талоны: Топливная Карта [12:00:05]line 43219 [12:00:05]line ______________________ [12:00:05]line (подпись) [12:00:05]written 0, free lines is 4095 [12:00:06]Write to MH i2c: 01 00 00 7E 78 F6 [12:00:06]Write i2c OK [12:00:06]MH_I2C_Read... [12:00:06]Read from MH i2c: 01 [12:00:06]MH_I2C_Read... [12:00:06]Read from MH i2c: 01 07 00 [12:00:06]MH_I2C_Read... [12:00:06]Read from MH i2c: 01 07 00 7E 78 00 00 00 00 00 F4 0D FE [12:00:06]RasterBufferAndPrint [12:00:06]line [12:00:06]line [12:00:06]line [12:00:06]line [12:00:06]line [12:00:06]written 0, free lines is 3573 [12:00:06]MH_Cut [12:00:06]Write to MH i2c: D1 01 00 85 78 01 CF [12:00:06]Write i2c OK [12:00:06]MH_I2C_Read... [12:00:06]Read from MH i2c: D1 [12:00:06]MH_I2C_Read... [12:00:06]Read from MH i2c: D1 01 00 [12:00:06]MH_I2C_Read... [12:00:06]Read from MH i2c: D1 01 00 85 78 00 CE [12:00:06]Write to MH i2c: 01 00 00 86 78 FE [12:00:06]Write i2c OK [12:00:06]MH_I2C_Read... [12:00:06]*** Cut start [12:00:06]*** Partial cut [12:00:06]*** CUTSNS_PIN = 1 [12:00:06]*** CUTSNS_PIN = 0 [12:00:06]*** Brake cut motor [12:00:07]Read from MH i2c: 01 [12:00:07]MH_I2C_Read... [12:00:07]*** Stop cut motor [12:00:07]*** Cut end [12:00:07]Read from MH i2c: 01 07 00 [12:00:07]MH_I2C_Read... [12:00:07]Read from MH i2c: 01 07 00 86 78 00 00 00 00 00 FF 0F 13 [12:00:07]process_action print_text done [12:00:07]requested_data is exist [12:00:07]produce_requested_data [12:00:07]requested_item fm.sn is exist - process it [12:00:07]wFMCommunicate request_size=4 [12:00:07]MH_SAM_APDU [12:00:07]CAPDU: 80 11 00 00 [12:00:07]Write to MH i2c: E2 08 00 87 78 80 11 00 00 00 00 00 00 79 [12:00:07]Write i2c OK [12:00:07]MH_I2C_Read... [12:00:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:00:07]Read from MH i2c: E2 [12:00:07]MH_I2C_Read... [12:00:07]Read from MH i2c: E2 17 00 [12:00:07]MH_I2C_Read... [12:00:07]Read from MH i2c: E2 17 00 87 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 C8 [12:00:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:00:07]wFMCommunicate OK [12:00:07]requested_item fd.num is exist - process it [12:00:07]SAM_PROTO_GetFieldsCounters [12:00:07]wFMCommunicate request_size=4 [12:00:07]MH_SAM_APDU [12:00:07]CAPDU: 80 13 00 00 [12:00:07]Write to MH i2c: E2 08 00 88 78 80 13 00 00 00 00 00 00 7C [12:00:07]Write i2c OK [12:00:07]MH_I2C_Read... [12:00:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:00:07]Read from MH i2c: E2 [12:00:07]MH_I2C_Read... [12:00:07]Read from MH i2c: E2 62 00 [12:00:07]MH_I2C_Read... [12:00:07]Read from MH i2c: E2 62 00 88 78 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 F0 6F 00 00 0E 04 04 00 71 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 C5 [12:00:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 F0 6F 00 00 0E 04 04 00 71 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:00:07]wFMCommunicate OK [12:00:07]SAM_PROTO_GetFieldsCounters done [12:00:07]requested_item shift.num is exist - process it [12:00:07]requested_item shift.opened is exist - process it [12:00:07]req_shift_opened [12:00:07]FM_GetShiftState [12:00:07]SAM_PROTO_GetShiftState [12:00:07]wFMCommunicate request_size=4 [12:00:07]MH_SAM_APDU [12:00:07]CAPDU: 80 13 01 00 [12:00:07]Write to MH i2c: E2 08 00 89 78 80 13 01 00 00 00 00 00 7E [12:00:07]Write i2c OK [12:00:07]MH_I2C_Read... [12:00:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:00:07]Read from MH i2c: E2 [12:00:07]MH_I2C_Read... [12:00:07]Read from MH i2c: E2 0E 00 [12:00:07]MH_I2C_Read... [12:00:07]Read from MH i2c: E2 0E 00 89 78 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 8F [12:00:07]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [12:00:07]wFMCommunicate OK [12:00:07]SAM_PROTO_GetShiftState done [12:00:07]FM_GetShiftState done [12:00:07]req_shift_opened done [12:00:07]requested_item shift.open_date is exist - process it [12:00:07]req_shift_open_date [12:00:07]req_shift_open_date done [12:00:07]produce_requested_data done [12:00:07]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28656,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [12:00:07]process_action_free print_text [12:00:07]json_value_free [12:00:07]json_value_free done [12:00:07]process_json_proto returns [12:00:07]Send response to host [12:00:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28656,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [12:00:07]free response buf [12:00:07]execute_script done [12:00:07]execute_script returns [12:00:07]free content buf [12:00:07]Sock 5.Close socket [12:00:07]Sock 5.Thread stoped [12:00:08]OFD Sender: No OFD packet to send [12:00:13]OFD Sender: No OFD packet to send [12:00:18]OFD Sender: No OFD packet to send [12:00:23]OFD Sender: No OFD packet to send [12:00:28]OFD Sender: No OFD packet to send [12:00:33]OFD Sender: No OFD packet to send [12:00:38]OFD Sender: No OFD packet to send [12:00:43]OFD Sender: No OFD packet to send [12:00:48]OFD Sender: No OFD packet to send [12:00:53]OFD Sender: No OFD packet to send [12:00:58]OFD Sender: No OFD packet to send [12:01:03]OFD Sender: No OFD packet to send [12:01:08]OFD Sender: No OFD packet to send [12:01:13]OFD Sender: No OFD packet to send [12:01:18]OFD Sender: No OFD packet to send [12:01:23]OFD Sender: No OFD packet to send [12:01:28]OFD Sender: No OFD packet to send [12:01:33]OFD Sender: No OFD packet to send [12:01:38]OFD Sender: No OFD packet to send [12:01:43]OFD Sender: No OFD packet to send [12:01:48]OFD Sender: No OFD packet to send [12:01:53]OFD Sender: No OFD packet to send [12:01:58]OFD Sender: No OFD packet to send [12:02:03]OFD Sender: No OFD packet to send [12:02:08]OFD Sender: No OFD packet to send [12:02:13]OFD Sender: No OFD packet to send [12:02:18]OFD Sender: No OFD packet to send [12:02:23]OFD Sender: No OFD packet to send [12:02:28]OFD Sender: No OFD packet to send [12:02:33]OFD Sender: No OFD packet to send [12:02:38]OFD Sender: No OFD packet to send [12:02:43]OFD Sender: No OFD packet to send [12:02:48]OFD Sender: No OFD packet to send [12:02:53]OFD Sender: No OFD packet to send [12:02:58]OFD Sender: No OFD packet to send [12:03:03]OFD Sender: No OFD packet to send [12:03:08]OFD Sender: No OFD packet to send [12:03:13]OFD Sender: No OFD packet to send [12:03:18]OFD Sender: No OFD packet to send [12:03:23]OFD Sender: No OFD packet to send [12:03:28]OFD Sender: No OFD packet to send [12:03:33]OFD Sender: No OFD packet to send [12:03:38]OFD Sender: No OFD packet to send [12:03:43]OFD Sender: No OFD packet to send [12:03:48]OFD Sender: No OFD packet to send [12:03:53]OFD Sender: No OFD packet to send [12:03:58]OFD Sender: No OFD packet to send [12:04:00]accept exits with 7 [12:04:00]New connection [12:04:00]New thread 3066641764 created [12:04:00]Thread 3066498404 joined [12:04:00]Waiting for new connection... [12:04:00] Sock 7.Parse request [12:04:00]Sock 7.Check first char [12:04:00]Sock 7.First char is OK [12:04:00]request: POST /json_proto HTTP/1.0 [12:04:00]Method: POST [12:04:00]URL: /json_proto [12:04:00]Method is POST - this is cgi request [12:04:00]url: /json_proto [12:04:00]query_string will be loaded in cgi processing [12:04:00]execute_cgi json_proto POST (null) [12:04:00]execute_cgi path=json_proto method=POST [12:04:00]POST find Content-Length [12:04:00]Host: 172.17.33.3:8080 [12:04:00]Content-Length: 682 [12:04:00]Content-Type: application/json [12:04:00] [12:04:00]POST finish read [12:04:00]Found Content-Length = 682 [12:04:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346987", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.50, "quantity" : 34.500, "sum" : 2501.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 2501.00, "payments": [ { "type": 0, "sum" : 2501.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:04:00]execute_script... [12:04: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)346987", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.50, "quantity" : 34.500, "sum" : 2501.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 2501.00, "payments": [ { "type": 0, "sum" : 2501.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:04:00]POST & json_proto [12:04:00]process_json_proto [12:04:00]json parsed OK: [12:04:00]protocol is kg_v1.0 [12:04:00]action value=close_receipt [12:04:00]process_action close_receipt [12:04:00]cmd_close_receipt [12:04:00]MH_GetDate [12:04:00]Write to MH i2c: F0 00 00 8A 78 F1 [12:04:00]Write i2c OK [12:04:00]MH_I2C_Read... [12:04:00]Read from MH i2c: F0 [12:04:00]MH_I2C_Read... [12:04:00]Read from MH i2c: F0 09 00 [12:04:00]MH_I2C_Read... [12:04:00]Read from MH i2c: F0 09 00 8A 78 00 38 23 19 66 23 5B 8F 65 46 [12:04:00]GetLastDocTimeStamp 1712922878 [12:04:00]current date 1712923448 [12:04:00]FM_GetShiftState [12:04:00]SAM_PROTO_GetShiftState [12:04:00]wFMCommunicate request_size=4 [12:04:00]MH_SAM_APDU [12:04:00]CAPDU: 80 13 01 00 [12:04:00]Write to MH i2c: E2 08 00 8B 78 80 13 01 00 00 00 00 00 80 [12:04:00]Write i2c OK [12:04:00]MH_I2C_Read... [12:04:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:04:00]Read from MH i2c: E2 [12:04:00]MH_I2C_Read... [12:04:00]Read from MH i2c: E2 0E 00 [12:04:00]MH_I2C_Read... [12:04:00]Read from MH i2c: E2 0E 00 8B 78 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 91 [12:04:00]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [12:04:00]wFMCommunicate OK [12:04:00]SAM_PROTO_GetShiftState done [12:04:00]FM_GetShiftState done [12:04:00]opened in 1712881416 [12:04:00]opened+sec_in_day 1712967816 [12:04:00]quantity*price = 250125 [12:04:00]sum+1 = 250126 [12:04:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2501.00 Внесено: 4000.00 СДАЧА: 1499.00 НСП 1% : 22.13 НДС 12% : 265.62 Наличными: 2501.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 106 12.04.2024 12:04 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28657 ФПД: 219875698867864 1/tax-web-control/client/api/v1/ticket?date=20240412T120408&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28657&fm=219875698867864&tin=02508201610067®Number=0000138879044617&sum=250100 [12:04:01]StoreToDocumentArchive [12:04:01]shift 113 fd 28657 [12:04:01]save to /storage/0113/doc_00028657 [12:04:01]save last doc name /storage/0113/doc_00028657 to /storage/kkm_last_doc_name [12:04:01]save OK [12:04:01]Clear old archive folders... [12:04:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:04:01]tlvbuf is 01BB1990 [12:04:01]SAM_PROTO_ClearQueue [12:04:01]wFMCommunicate request_size=4 [12:04:01]MH_SAM_APDU [12:04:01]CAPDU: 80 09 00 00 [12:04:01]Write to MH i2c: E2 08 00 98 78 80 09 00 00 00 00 00 00 82 [12:04:01]Write i2c OK [12:04:01]MH_I2C_Read... [12:04:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:04:01]Read from MH i2c: E2 [12:04:01]MH_I2C_Read... [12:04:01]Read from MH i2c: E2 03 00 [12:04:01]MH_I2C_Read... [12:04:01]Read from MH i2c: E2 03 00 98 78 00 90 00 84 [12:04:01]RAPDU: 90 00 [12:04:01]wFMCommunicate OK [12:04:01]SAM_PROTO_ClearQueue done [12:04:01]KKMCreateOFDPacket [12:04:01]OFDProtocolAddRootSTLVToBuf [12:04:01]FM_MakeSignedData [12:04:01]FM_MakeSignedData [12:04:01]SAM_PROTO_SignData [12:04:01]wFMCommunicate request_size=4 [12:04:01]MH_SAM_APDU [12:04:01]CAPDU: 80 0D 01 02 [12:04:01]Write to MH i2c: E2 08 00 99 78 80 0D 01 02 00 00 00 00 8A [12:04:01]Write i2c OK [12:04:01]MH_I2C_Read... [12:04:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:04:01]Read from MH i2c: E2 [12:04:01]MH_I2C_Read... [12:04:01]Read from MH i2c: E2 03 00 [12:04:01]MH_I2C_Read... [12:04:01]Read from MH i2c: E2 03 00 99 78 00 90 00 85 [12:04:01]RAPDU: 90 00 [12:04:01]wFMCommunicate OK [12:04:01]wFMCommunicate request_size=255 [12:04:01]MH_SAM_APDU [12:04:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 C4 86 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 0D D1 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 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 C2 67 00 00 00 00 07 04 06 00 F4 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 38 23 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F1 6F 00 00 35 04 06 00 C7 [12:04:01]Write to MH i2c: E2 02 01 9A 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 C4 86 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 0D D1 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 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 C2 67 00 00 00 00 07 04 06 00 F4 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 38 23 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F1 6F 00 00 35 04 06 00 C7 00 00 8E [12:04:01]Write i2c OK [12:04:01]MH_I2C_Read... [12:04:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:04:02]Read from MH i2c: E2 [12:04:02]MH_I2C_Read... [12:04:02]Read from MH i2c: E2 03 00 [12:04:02]MH_I2C_Read... [12:04:02]Read from MH i2c: E2 03 00 9A 78 00 90 00 86 [12:04:02]RAPDU: 90 00 [12:04:02]wFMCommunicate OK [12:04:02]wFMCommunicate request_size=10 [12:04:02]MH_SAM_APDU [12:04:02]CAPDU: 80 0D 02 02 05 F9 CC EC FE 98 [12:04:02]Write to MH i2c: E2 0D 00 9B 78 80 0D 02 02 05 00 F9 CC EC FE 98 00 00 DE [12:04:02]Write i2c OK [12:04:02]MH_I2C_Read... [12:04:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:04:02]Read from MH i2c: E2 [12:04:02]MH_I2C_Read... [12:04:02]Read from MH i2c: E2 03 00 [12:04:02]MH_I2C_Read... [12:04:02]Read from MH i2c: E2 03 00 9B 78 00 90 00 87 [12:04:02]RAPDU: 90 00 [12:04:02]wFMCommunicate OK [12:04:02]wFMCommunicate request_size=4 [12:04:02]MH_SAM_APDU [12:04:02]CAPDU: 80 0D 03 02 [12:04:02]Write to MH i2c: E2 08 00 9C 78 80 0D 03 02 00 00 00 00 8F [12:04:02]Write i2c OK [12:04:02]MH_I2C_Read... [12:04:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:04:02]Read from MH i2c: E2 [12:04:02]MH_I2C_Read... [12:04:02]Read from MH i2c: E2 0B 00 [12:04:02]MH_I2C_Read... [12:04:02]Read from MH i2c: E2 0B 00 9C 78 00 07 DD 98 34 C8 58 85 6F 90 00 54 [12:04:02]RAPDU: 07 DD 98 34 C8 58 85 6F 90 00 [12:04:02]wFMCommunicate OK [12:04:02]SAM_PROTO_SignData done [12:04:02]FM_MakeSignedData done [12:04:02]CreateOFDProtocolMessage [12:04:02]wFMCommunicate request_size=4 [12:04:02]MH_SAM_APDU [12:04:02]CAPDU: 80 11 00 00 [12:04:02]Write to MH i2c: E2 08 00 9D 78 80 11 00 00 00 00 00 00 8F [12:04:02]Write i2c OK [12:04:02]MH_I2C_Read... [12:04:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:04:02]Read from MH i2c: E2 [12:04:02]MH_I2C_Read... [12:04:02]Read from MH i2c: E2 17 00 [12:04:02]MH_I2C_Read... [12:04:02]Read from MH i2c: E2 17 00 9D 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 DE [12:04:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:04:02]wFMCommunicate OK [12:04:02]CreateOFDProtocolMessage done [12:04:02]OFDSenderStorePacket 28657 [12:04:02]StoreOFDPacket docnum=28657 [12:04:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 FA 50 07 01 18 8E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 C4 86 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 0D D1 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 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 C2 67 00 00 00 00 07 04 06 00 F4 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 38 23 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F1 6F 00 00 35 04 06 00 C7 F9 CC EC FE 98 07 DD 98 34 C8 58 85 6F [12:04:02]CheckFolder [12:04:02]dirname=/storage/ofd_packets [12:04:02]CheckFolder done [12:04:02]ProducePacketName [12:04:02]name=ofd_packets/00028657 [12:04:02]NVStorageSaveData ofd_packets/00028657 [12:04:02]File name is /storage/ofd_packets/00028657 [12:04:02]Write 301 bytes [12:04:02]NVStorageSaveData done [12:04:02]OFDSenderStorePacket done [12:04:02]KKMCreateOFDPacket done [12:04:02]NVStorageSaveData kkm_last_timestamp [12:04:02]File name is /storage/kkm_last_timestamp [12:04:02]Write 4 bytes [12:04:02]NVStorageSaveData done [12:04:02]ExternCall_PrintAddStr [12:04:02]wPrintStart [12:04:02]Write to MH i2c: 01 00 00 9E 78 16 [12:04:02]Write i2c OK [12:04:02]MH_I2C_Read... [12:04:02]Read from MH i2c: 01 [12:04:02]MH_I2C_Read... [12:04:02]Read from MH i2c: 01 07 00 [12:04:02]MH_I2C_Read... [12:04:02]Read from MH i2c: 01 07 00 9E 78 00 00 00 00 00 FF 0F 2B [12:04:02]RasterBufferAndPrint [12:04:02]line Счет N : (1)346987 [12:04:02]line ИНН: 02508201610067 [12:04:02]line Контрольно-Кассовый Чек [12:04:02]line ПРОДАЖА [12:04:02]line ТРК (МРК, ГНК) : 43 [12:04:02]line Товар: 2710124500 [12:04:02]line Аи-95-К-5 [12:04:02]line 34.500 * 72.50 [12:04:02]line = 2501.25 [12:04:02]line НДС 12% НСП 1% [12:04:02]line > о реализуемом товаре [12:04:02]line ОКРУГЛЕНИЕ: -0.25 [12:04:02]line ИТОГО: 2501.00 [12:04:02]line Внесено: 4000.00 [12:04:02]line СДАЧА: 1499.00 [12:04:02]line НСП 1% : 22.13 [12:04:02]line НДС 12% : 265.62 [12:04:02]line Наличными: 2501.00 [12:04:02]line Безнал.: 0.00 [12:04:02]line Место: АЗС № 108 "Партнер Нефть" [12:04:02]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [12:04:02]line СНО: Общий режим [12:04:02]line Чек 106 12.04.2024 12:04 [12:04:02]line Смена: 113 ФФД: 1.0 [12:04:02]line ЗНМ: 0300000027 [12:04:02]line РНМ: 0000138879044617 [12:04:02]line Версия ККМ: 001 [12:04:02]line ФМ: 0000000000963154 [12:04:02]line ФД: 28657 [12:04:02]line ФПД: 219875698867864 [12:04:02]line 1/tax-web-control/client/api/v1/ticket?date=20240412T120408&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28657&fm=219875698867864&tin=02508201610067®Number=0000138879044617&sum=250100 [12:04:02]OFD Sender: Processing packet 28657 [packets to send 8, broken 7] [12:04:02]ProducePacketName [12:04:02]name=ofd_packets/00028657 [12:04:02]OFD Sender: To server: pG, [12:04:02]CommunicateWithHost lk.salyk.kg:30040 [12:04:02]ConnectInit lk.salyk.kg [12:04:02]written 0, free lines is 4095 [12:04:02]Connected sock=6 [12:04:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 FA 50 07 01 18 8E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 C4 86 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 0D D1 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 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 C2 67 00 00 00 00 07 04 06 00 F4 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 38 23 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F1 6F 00 00 35 04 06 00 C7 F9 CC EC FE 98 07 DD 98 34 C8 58 85 6F [12:04:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 25 3D 47 00 18 3C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F1 6F 00 00 F4 03 04 00 E2 CD 18 66 B6 04 01 00 00 07 BC 7D 22 27 83 82 4A [12:04:02]CommunicateWithHost err = 0 [12:04:02]CheckOFDResponse [12:04:02]1017 (14) - 77093643461234 [12:04:02]1041 (16) - 0000000000963154 [12:04:02]1040 (4) - 28657 [12:04:02]1012 (4) - 12.04.2024 06:00 [12:04:02]1206 (1) - 0 [12:04:02]OFD Sender: Remove packet 28657 [12:04:02]ProducePacketName [12:04:02]name=ofd_packets/00028657 [12:04:02]NVStorageDeleteData [12:04:03]Write to MH i2c: 01 00 00 C8 78 40 [12:04:03]Write i2c OK [12:04:03]MH_I2C_Read... [12:04:03]Read from MH i2c: 01 [12:04:03]MH_I2C_Read... [12:04:03]Read from MH i2c: 01 07 00 [12:04:03]MH_I2C_Read... [12:04:03]Read from MH i2c: 01 07 00 C8 78 00 00 00 00 00 CA 0C 1D [12:04:03]RasterBufferAndPrint [12:04:03]line [12:04:03]line [12:04:03]line [12:04:03]line [12:04:03]line [12:04:03]written 0, free lines is 3279 [12:04:03]MH_Cut [12:04:03]Write to MH i2c: D1 01 00 CF 78 01 19 [12:04:03]Write i2c OK [12:04:03]MH_I2C_Read... [12:04:03]Read from MH i2c: D1 [12:04:03]MH_I2C_Read... [12:04:03]Read from MH i2c: D1 01 00 [12:04:03]MH_I2C_Read... [12:04:03]Read from MH i2c: D1 01 00 CF 78 00 18 [12:04:03]Write to MH i2c: 01 00 00 D0 78 48 [12:04:03]Write i2c OK [12:04:03]MH_I2C_Read... [12:04:03]OFD Sender: No OFD packet to send [12:04:03]*** Cut start [12:04:03]*** Partial cut [12:04:03]*** CUTSNS_PIN = 1 [12:04:04]*** CUTSNS_PIN = 0 [12:04:04]*** Brake cut motor [12:04:04]Read from MH i2c: 01 [12:04:04]MH_I2C_Read... [12:04:04]*** Stop cut motor [12:04:04]*** Cut end [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 D0 78 00 00 00 00 00 FF 0F 5D [12:04:04]process_action close_receipt done [12:04:04]requested_data is exist [12:04:04]produce_requested_data [12:04:04]requested_item fm.sn is exist - process it [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 D1 78 80 11 00 00 00 00 00 00 C3 [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 D1 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 12 [12:04:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:04:04]wFMCommunicate OK [12:04:04]requested_item fd.num is exist - process it [12:04:04]SAM_PROTO_GetFieldsCounters [12:04:04]wFMCommunicate request_size=4 [12:04:04]MH_SAM_APDU [12:04:04]CAPDU: 80 13 00 00 [12:04:04]Write to MH i2c: E2 08 00 D2 78 80 13 00 00 00 00 00 00 C6 [12:04:04]Write i2c OK [12:04:04]MH_I2C_Read... [12:04:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:04:04]Read from MH i2c: E2 [12:04:04]MH_I2C_Read... [12:04:04]Read from MH i2c: E2 62 00 [12:04:04]MH_I2C_Read... [12:04:04]Read from MH i2c: E2 62 00 D2 78 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 F1 6F 00 00 0E 04 04 00 71 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 13 [12:04:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 F1 6F 00 00 0E 04 04 00 71 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:04:04]wFMCommunicate OK [12:04:04]SAM_PROTO_GetFieldsCounters done [12:04:04]requested_item shift.num is exist - process it [12:04:04]requested_item shift.opened is exist - process it [12:04:04]req_shift_opened [12:04:04]FM_GetShiftState [12:04:04]SAM_PROTO_GetShiftState [12:04:04]wFMCommunicate request_size=4 [12:04:04]MH_SAM_APDU [12:04:04]CAPDU: 80 13 01 00 [12:04:04]Write to MH i2c: E2 08 00 D3 78 80 13 01 00 00 00 00 00 C8 [12:04:04]Write i2c OK [12:04:04]MH_I2C_Read... [12:04:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:04:04]Read from MH i2c: E2 [12:04:04]MH_I2C_Read... [12:04:04]Read from MH i2c: E2 0E 00 [12:04:04]MH_I2C_Read... [12:04:04]Read from MH i2c: E2 0E 00 D3 78 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 D9 [12:04:04]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [12:04:04]wFMCommunicate OK [12:04:04]SAM_PROTO_GetShiftState done [12:04:04]FM_GetShiftState done [12:04:04]req_shift_opened done [12:04:04]requested_item shift.open_date is exist - process it [12:04:04]req_shift_open_date [12:04:04]req_shift_open_date done [12:04:04]produce_requested_data done [12:04:04]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28657,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [12:04:04]process_action_free close_receipt [12:04:04]json_value_free [12:04:04]json_value_free done [12:04:04]process_json_proto returns [12:04:04]Send response to host [12:04:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28657,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [12:04:04]free response buf [12:04:04]execute_script done [12:04:04]execute_script returns [12:04:04]free content buf [12:04:04]Sock 7.Close socket [12:04:04]Sock 7.Thread stoped [12:04:05]accept exits with 5 [12:04:05]New connection [12:04:05]New thread 3066498404 created [12:04:05]Thread 3066641764 joined [12:04:05]Waiting for new connection... [12:04:05] Sock 5.Parse request [12:04:05]Sock 5.Check first char [12:04:05]Sock 5.First char is OK [12:04:05]request: POST /json_proto HTTP/1.0 [12:04:05]Method: POST [12:04:05]URL: /json_proto [12:04:05]Method is POST - this is cgi request [12:04:05]url: /json_proto [12:04:05]query_string will be loaded in cgi processing [12:04:05]execute_cgi json_proto POST (null) [12:04:05]execute_cgi path=json_proto method=POST [12:04:05]POST find Content-Length [12:04:05]Host: 172.17.33.3:8080 [12:04:05]Content-Length: 817 [12:04:05]Content-Type: application/json [12:04:05] [12:04:05]POST finish read [12:04:05]Found Content-Length = 817 [12:04:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346988", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 10.890, "sum" : 700.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 700.23 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:04:05]execute_script... [12:04: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)346988", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 10.890, "sum" : 700.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 700.23 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:04:05]POST & json_proto [12:04:05]process_json_proto [12:04:05]json parsed OK: [12:04:05]protocol is kg_v1.0 [12:04:05]action value=close_receipt [12:04:05]process_action close_receipt [12:04:05]cmd_close_receipt [12:04:05]MH_GetDate [12:04:05]Write to MH i2c: F0 00 00 D4 78 3B [12:04:05]Write i2c OK [12:04:05]MH_I2C_Read... [12:04:05]Read from MH i2c: F0 [12:04:05]MH_I2C_Read... [12:04:05]Read from MH i2c: F0 09 00 [12:04:05]MH_I2C_Read... [12:04:05]Read from MH i2c: F0 09 00 D4 78 00 3D 23 19 66 23 5B 8F 65 95 [12:04:05]GetLastDocTimeStamp 1712923448 [12:04:05]current date 1712923453 [12:04:05]FM_GetShiftState [12:04:05]SAM_PROTO_GetShiftState [12:04:05]wFMCommunicate request_size=4 [12:04:05]MH_SAM_APDU [12:04:05]CAPDU: 80 13 01 00 [12:04:05]Write to MH i2c: E2 08 00 D5 78 80 13 01 00 00 00 00 00 CA [12:04:05]Write i2c OK [12:04:05]MH_I2C_Read... [12:04:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:04:05]Read from MH i2c: E2 [12:04:05]MH_I2C_Read... [12:04:05]Read from MH i2c: E2 0E 00 [12:04:05]MH_I2C_Read... [12:04:05]Read from MH i2c: E2 0E 00 D5 78 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 DB [12:04:05]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [12:04:05]wFMCommunicate OK [12:04:05]SAM_PROTO_GetShiftState done [12:04:05]FM_GetShiftState done [12:04:05]opened in 1712881416 [12:04:05]opened+sec_in_day 1712967816 [12:04:05]quantity*price = 70022 [12:04:05]sum+1 = 70024 [12:04:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.23 НСП 1% : 6.20 НДС 12% : 74.36 Наличными: 0.00 Безнал.: 700.23 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 107 12.04.2024 12:04 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000963154 ФД: 28658 ФПД: 225318810957188 1/tax-web-control/client/api/v1/ticket?date=20240412T120413&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28658&fm=225318810957188&tin=02508201610067®Number=0000138879044617&sum=70023 [12:04:06]StoreToDocumentArchive [12:04:06]shift 113 fd 28658 [12:04:06]save to /storage/0113/doc_00028658 [12:04:06]save last doc name /storage/0113/doc_00028658 to /storage/kkm_last_doc_name [12:04:06]save OK [12:04:06]Clear old archive folders... [12:04:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:04:06]tlvbuf is 01C02590 [12:04:06]SAM_PROTO_ClearQueue [12:04:06]wFMCommunicate request_size=4 [12:04:06]MH_SAM_APDU [12:04:06]CAPDU: 80 09 00 00 [12:04:06]Write to MH i2c: E2 08 00 E2 78 80 09 00 00 00 00 00 00 CC [12:04:06]Write i2c OK [12:04:06]MH_I2C_Read... [12:04:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:04:06]Read from MH i2c: E2 [12:04:06]MH_I2C_Read... [12:04:06]Read from MH i2c: E2 03 00 [12:04:06]MH_I2C_Read... [12:04:06]Read from MH i2c: E2 03 00 E2 78 00 90 00 CE [12:04:06]RAPDU: 90 00 [12:04:06]wFMCommunicate OK [12:04:06]SAM_PROTO_ClearQueue done [12:04:06]KKMCreateOFDPacket [12:04:06]OFDProtocolAddRootSTLVToBuf [12:04:06]FM_MakeSignedData [12:04:06]FM_MakeSignedData [12:04:06]SAM_PROTO_SignData [12:04:06]wFMCommunicate request_size=4 [12:04:06]MH_SAM_APDU [12:04:06]CAPDU: 80 0D 01 02 [12:04:06]Write to MH i2c: E2 08 00 E3 78 80 0D 01 02 00 00 00 00 D4 [12:04:06]Write i2c OK [12:04:06]MH_I2C_Read... [12:04:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:04:06]Read from MH i2c: E2 [12:04:06]MH_I2C_Read... [12:04:06]Read from MH i2c: E2 03 00 [12:04:06]MH_I2C_Read... [12:04:06]Read from MH i2c: E2 03 00 E3 78 00 90 00 CF [12:04:06]RAPDU: 90 00 [12:04:06]wFMCommunicate OK [12:04:06]wFMCommunicate request_size=255 [12:04:06]MH_SAM_APDU [12:04:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 2A 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 87 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 87 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 00 00 00 00 00 00 39 04 06 00 87 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 3D 23 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F2 6F 00 00 35 04 06 00 CC [12:04:06]Write to MH i2c: E2 02 01 E4 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 35 FF 03 08 00 03 8A 2A 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 87 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 87 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 00 00 00 00 00 00 39 04 06 00 87 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 3D 23 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F2 6F 00 00 35 04 06 00 CC 00 00 30 [12:04:07]Write i2c OK [12:04:07]MH_I2C_Read... [12:04:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:04:07]Read from MH i2c: E2 [12:04:07]MH_I2C_Read... [12:04:07]Read from MH i2c: E2 03 00 [12:04:07]MH_I2C_Read... [12:04:07]Read from MH i2c: E2 03 00 E4 78 00 90 00 D0 [12:04:07]RAPDU: 90 00 [12:04:07]wFMCommunicate OK [12:04:07]wFMCommunicate request_size=10 [12:04:07]MH_SAM_APDU [12:04:07]CAPDU: 80 0D 02 02 05 ED 1F B0 35 84 [12:04:07]Write to MH i2c: E2 0D 00 E5 78 80 0D 02 02 05 00 ED 1F B0 35 84 00 00 56 [12:04:07]Write i2c OK [12:04:07]MH_I2C_Read... [12:04:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:04:07]Read from MH i2c: E2 [12:04:07]MH_I2C_Read... [12:04:07]Read from MH i2c: E2 03 00 [12:04:07]MH_I2C_Read... [12:04:07]Read from MH i2c: E2 03 00 E5 78 00 90 00 D1 [12:04:07]RAPDU: 90 00 [12:04:07]wFMCommunicate OK [12:04:07]wFMCommunicate request_size=4 [12:04:07]MH_SAM_APDU [12:04:07]CAPDU: 80 0D 03 02 [12:04:07]Write to MH i2c: E2 08 00 E6 78 80 0D 03 02 00 00 00 00 D9 [12:04:07]Write i2c OK [12:04:07]MH_I2C_Read... [12:04:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:04:07]Read from MH i2c: E2 [12:04:07]MH_I2C_Read... [12:04:07]Read from MH i2c: E2 0B 00 [12:04:07]MH_I2C_Read... [12:04:07]Read from MH i2c: E2 0B 00 E6 78 00 68 DC EF B2 79 93 95 39 90 00 99 [12:04:07]RAPDU: 68 DC EF B2 79 93 95 39 90 00 [12:04:07]wFMCommunicate OK [12:04:07]SAM_PROTO_SignData done [12:04:07]FM_MakeSignedData done [12:04:07]CreateOFDProtocolMessage [12:04:07]wFMCommunicate request_size=4 [12:04:07]MH_SAM_APDU [12:04:07]CAPDU: 80 11 00 00 [12:04:07]Write to MH i2c: E2 08 00 E7 78 80 11 00 00 00 00 00 00 D9 [12:04:07]Write i2c OK [12:04:07]MH_I2C_Read... [12:04:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:04:07]Read from MH i2c: E2 [12:04:07]MH_I2C_Read... [12:04:07]Read from MH i2c: E2 17 00 [12:04:07]MH_I2C_Read... [12:04:07]Read from MH i2c: E2 17 00 E7 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 28 [12:04:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:04:07]wFMCommunicate OK [12:04:07]CreateOFDProtocolMessage done [12:04:07]OFDSenderStorePacket 28658 [12:04:07]StoreOFDPacket docnum=28658 [12:04:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 D6 2F 07 01 49 9B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 2A 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 87 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 87 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 00 00 00 00 00 00 39 04 06 00 87 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 3D 23 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F2 6F 00 00 35 04 06 00 CC ED 1F B0 35 84 68 DC EF B2 79 93 95 39 [12:04:07]CheckFolder [12:04:07]dirname=/storage/ofd_packets [12:04:07]CheckFolder done [12:04:07]ProducePacketName [12:04:07]name=ofd_packets/00028658 [12:04:07]NVStorageSaveData ofd_packets/00028658 [12:04:07]File name is /storage/ofd_packets/00028658 [12:04:07]Write 301 bytes [12:04:07]NVStorageSaveData done [12:04:07]OFDSenderStorePacket done [12:04:07]KKMCreateOFDPacket done [12:04:07]NVStorageSaveData kkm_last_timestamp [12:04:07]File name is /storage/kkm_last_timestamp [12:04:07]Write 4 bytes [12:04:07]NVStorageSaveData done [12:04:07]ExternCall_PrintAddStr [12:04:07]wPrintStart [12:04:07]Write to MH i2c: 01 00 00 E8 78 60 [12:04:07]Write i2c OK [12:04:07]MH_I2C_Read... [12:04:07]Read from MH i2c: 01 [12:04:07]MH_I2C_Read... [12:04:07]Read from MH i2c: 01 07 00 [12:04:07]MH_I2C_Read... [12:04:07]Read from MH i2c: 01 07 00 E8 78 00 00 00 00 00 FF 0F 75 [12:04:07]RasterBufferAndPrint [12:04:07]line Счет N : (1)346988 [12:04:07]line ИНН: 02508201610067 [12:04:07]line Контрольно-Кассовый Чек [12:04:07]line ПРОДАЖА [12:04:07]line ТРК (МРК, ГНК) : 32 [12:04:07]line Товар: 2710124130 [12:04:07]line Аи-92-К-5 [12:04:07]line 10.890 * 64.30 [12:04:07]line = 700.23 [12:04:07]line НДС 12% НСП 1% [12:04:07]line > о реализуемом товаре [12:04:07]line ИТОГО: 700.23 [12:04:07]line НСП 1% : 6.20 [12:04:07]line НДС 12% : 74.36 [12:04:07]line Наличными: 0.00 [12:04:07]line Безнал.: 700.23 [12:04:07]line Место: АЗС № 108 "Партнер Нефть" [12:04:07]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [12:04:07]line СНО: Общий режим [12:04:07]line Чек 107 12.04.2024 12:04 [12:04:07]line Смена: 113 ФФД: 1.0 [12:04:07]line ЗНМ: 0300000027 [12:04:07]line РНМ: 0000138879044617 [12:04:07]line Версия ККМ: 001 [12:04:07]line Платежная система: Бакай Банк [12:04:07]line ФМ: 0000000000963154 [12:04:07]line ФД: 28658 [12:04:07]line ФПД: 225318810957188 [12:04:07]line 1/tax-web-control/client/api/v1/ticket?date=20240412T120413&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28658&fm=225318810957188&tin=02508201610067®Number=0000138879044617&sum=70023 [12:04:07]written 0, free lines is 4095 [12:04:07]OFD Sender: Processing packet 28658 [packets to send 8, broken 7] [12:04:07]ProducePacketName [12:04:07]name=ofd_packets/00028658 [12:04:07]OFD Sender: To server: pG, [12:04:07]CommunicateWithHost lk.salyk.kg:30040 [12:04:07]ConnectInit lk.salyk.kg [12:04:07]Connected sock=9 [12:04:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 D6 2F 07 01 49 9B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 2A 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 87 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 87 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 00 00 00 00 00 00 39 04 06 00 87 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 3D 23 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F2 6F 00 00 35 04 06 00 CC ED 1F B0 35 84 68 DC EF B2 79 93 95 39 [12:04:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 A9 21 47 00 BC 59 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F2 6F 00 00 F4 03 04 00 E7 CD 18 66 B6 04 01 00 00 4F CA 8E AC B2 2F 19 CC [12:04:07]CommunicateWithHost err = 0 [12:04:07]CheckOFDResponse [12:04:07]1017 (14) - 77093643461234 [12:04:07]1041 (16) - 0000000000963154 [12:04:07]1040 (4) - 28658 [12:04:07]1012 (4) - 12.04.2024 06:00 [12:04:07]1206 (1) - 0 [12:04:07]OFD Sender: Remove packet 28658 [12:04:07]ProducePacketName [12:04:07]name=ofd_packets/00028658 [12:04:07]NVStorageDeleteData [12:04:07]Write to MH i2c: 01 00 00 11 79 8A [12:04:07]Write i2c OK [12:04:07]MH_I2C_Read... [12:04:07]Read from MH i2c: 01 [12:04:07]MH_I2C_Read... [12:04:07]Read from MH i2c: 01 07 00 [12:04:07]MH_I2C_Read... [12:04:07]Read from MH i2c: 01 07 00 11 79 00 00 00 00 00 E0 0C 7D [12:04:07]RasterBufferAndPrint [12:04:07]line [12:04:07]line [12:04:07]line [12:04:07]line [12:04:07]line [12:04:07]written 0, free lines is 3304 [12:04:07]MH_Cut [12:04:07]Write to MH i2c: D1 01 00 18 79 01 63 [12:04:07]Write i2c OK [12:04:07]MH_I2C_Read... [12:04:07]Read from MH i2c: D1 [12:04:07]MH_I2C_Read... [12:04:07]Read from MH i2c: D1 01 00 [12:04:07]MH_I2C_Read... [12:04:07]Read from MH i2c: D1 01 00 18 79 00 62 [12:04:07]Write to MH i2c: 01 00 00 19 79 92 [12:04:07]Write i2c OK [12:04:07]MH_I2C_Read... [12:04:08]OFD Sender: No OFD packet to send [12:04:08]*** Cut start [12:04:08]*** Partial cut [12:04:08]*** CUTSNS_PIN = 1 [12:04:08]*** CUTSNS_PIN = 0 [12:04:08]*** Brake cut motor [12:04:09]Read from MH i2c: 01 [12:04:09]MH_I2C_Read... [12:04:09]*** Stop cut motor [12:04:09]*** Cut end [12:04:09]Read from MH i2c: 01 07 00 [12:04:09]MH_I2C_Read... [12:04:09]Read from MH i2c: 01 07 00 19 79 00 00 00 00 00 FF 0F A7 [12:04:09]process_action close_receipt done [12:04:09]requested_data is exist [12:04:09]produce_requested_data [12:04:09]requested_item fm.sn is exist - process it [12:04:09]wFMCommunicate request_size=4 [12:04:09]MH_SAM_APDU [12:04:09]CAPDU: 80 11 00 00 [12:04:09]Write to MH i2c: E2 08 00 1A 79 80 11 00 00 00 00 00 00 0D [12:04:09]Write i2c OK [12:04:09]MH_I2C_Read... [12:04:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:04:09]Read from MH i2c: E2 [12:04:09]MH_I2C_Read... [12:04:09]Read from MH i2c: E2 17 00 [12:04:09]MH_I2C_Read... [12:04:09]Read from MH i2c: E2 17 00 1A 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 5C [12:04:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:04:09]wFMCommunicate OK [12:04:09]requested_item fd.num is exist - process it [12:04:09]SAM_PROTO_GetFieldsCounters [12:04:09]wFMCommunicate request_size=4 [12:04:09]MH_SAM_APDU [12:04:09]CAPDU: 80 13 00 00 [12:04:09]Write to MH i2c: E2 08 00 1B 79 80 13 00 00 00 00 00 00 10 [12:04:09]Write i2c OK [12:04:09]MH_I2C_Read... [12:04:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:04:09]Read from MH i2c: E2 [12:04:09]MH_I2C_Read... [12:04:09]Read from MH i2c: E2 62 00 [12:04:09]MH_I2C_Read... [12:04:09]Read from MH i2c: E2 62 00 1B 79 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 F2 6F 00 00 0E 04 04 00 71 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 61 [12:04:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 F2 6F 00 00 0E 04 04 00 71 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:04:09]wFMCommunicate OK [12:04:09]SAM_PROTO_GetFieldsCounters done [12:04:09]requested_item shift.num is exist - process it [12:04:09]requested_item shift.opened is exist - process it [12:04:09]req_shift_opened [12:04:09]FM_GetShiftState [12:04:09]SAM_PROTO_GetShiftState [12:04:09]wFMCommunicate request_size=4 [12:04:09]MH_SAM_APDU [12:04:09]CAPDU: 80 13 01 00 [12:04:09]Write to MH i2c: E2 08 00 1C 79 80 13 01 00 00 00 00 00 12 [12:04:09]Write i2c OK [12:04:09]MH_I2C_Read... [12:04:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:04:09]Read from MH i2c: E2 [12:04:09]MH_I2C_Read... [12:04:09]Read from MH i2c: E2 0E 00 [12:04:09]MH_I2C_Read... [12:04:09]Read from MH i2c: E2 0E 00 1C 79 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 23 [12:04:09]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [12:04:09]wFMCommunicate OK [12:04:09]SAM_PROTO_GetShiftState done [12:04:09]FM_GetShiftState done [12:04:09]req_shift_opened done [12:04:09]requested_item shift.open_date is exist - process it [12:04:09]req_shift_open_date [12:04:09]req_shift_open_date done [12:04:09]produce_requested_data done [12:04:09]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28658,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [12:04:09]process_action_free close_receipt [12:04:09]json_value_free [12:04:09]json_value_free done [12:04:09]process_json_proto returns [12:04:09]Send response to host [12:04:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28658,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [12:04:09]free response buf [12:04:09]execute_script done [12:04:09]execute_script returns [12:04:09]free content buf [12:04:09]Sock 5.Close socket [12:04:09]Sock 5.Thread stoped [12:04:13]OFD Sender: No OFD packet to send [12:04:18]OFD Sender: No OFD packet to send [12:04:23]OFD Sender: No OFD packet to send [12:04:28]OFD Sender: No OFD packet to send [12:04:33]OFD Sender: No OFD packet to send [12:04:38]OFD Sender: No OFD packet to send [12:04:43]OFD Sender: No OFD packet to send [12:04:48]OFD Sender: No OFD packet to send [12:04:53]OFD Sender: No OFD packet to send [12:04:58]OFD Sender: No OFD packet to send [12:05:03]OFD Sender: No OFD packet to send [12:05:08]OFD Sender: No OFD packet to send [12:05:13]OFD Sender: No OFD packet to send [12:05:18]OFD Sender: No OFD packet to send [12:05:23]OFD Sender: No OFD packet to send [12:05:28]OFD Sender: No OFD packet to send [12:05:33]OFD Sender: No OFD packet to send [12:05:37]accept exits with 6 [12:05:37]New connection [12:05:37]New thread 3066641764 created [12:05:37]Thread 3066498404 joined [12:05:37]Waiting for new connection... [12:05:37] Sock 6.Parse request [12:05:37]Sock 6.Check first char [12:05:37]Sock 6.First char is OK [12:05:37]request: POST /json_proto HTTP/1.0 [12:05:37]Method: POST [12:05:37]URL: /json_proto [12:05:37]Method is POST - this is cgi request [12:05:37]url: /json_proto [12:05:37]query_string will be loaded in cgi processing [12:05:37]execute_cgi json_proto POST (null) [12:05:37]execute_cgi path=json_proto method=POST [12:05:37]POST find Content-Length [12:05:37]Host: 172.17.33.3:8080 [12:05:37]Content-Length: 816 [12:05:37]Content-Type: application/json [12:05:37] [12:05:37]POST finish read [12:05:37]Found Content-Length = 816 [12:05:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346989", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 34.540, "sum" : 2500.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2500.70 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:05:37]execute_script... [12: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)346989", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 34.540, "sum" : 2500.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2500.70 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:05:37]POST & json_proto [12:05:37]process_json_proto [12:05:37]json parsed OK: [12:05:37]protocol is kg_v1.0 [12:05:37]action value=close_receipt [12:05:37]process_action close_receipt [12:05:37]cmd_close_receipt [12:05:37]MH_GetDate [12:05:37]Write to MH i2c: F0 00 00 1D 79 85 [12:05:37]Write i2c OK [12:05:37]MH_I2C_Read... [12:05:37]Read from MH i2c: F0 [12:05:37]MH_I2C_Read... [12:05:37]Read from MH i2c: F0 09 00 [12:05:37]MH_I2C_Read... [12:05:37]Read from MH i2c: F0 09 00 1D 79 00 99 23 19 66 23 5B 8F 65 3B [12:05:37]GetLastDocTimeStamp 1712923453 [12:05:37]current date 1712923545 [12:05:37]FM_GetShiftState [12:05:37]SAM_PROTO_GetShiftState [12:05:37]wFMCommunicate request_size=4 [12:05:37]MH_SAM_APDU [12:05:37]CAPDU: 80 13 01 00 [12:05:37]Write to MH i2c: E2 08 00 1E 79 80 13 01 00 00 00 00 00 14 [12:05:37]Write i2c OK [12:05:37]MH_I2C_Read... [12:05:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:05:37]Read from MH i2c: E2 [12:05:37]MH_I2C_Read... [12:05:37]Read from MH i2c: E2 0E 00 [12:05:37]MH_I2C_Read... [12:05:37]Read from MH i2c: E2 0E 00 1E 79 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 25 [12:05:37]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [12:05:37]wFMCommunicate OK [12:05:37]SAM_PROTO_GetShiftState done [12:05:37]FM_GetShiftState done [12:05:37]opened in 1712881416 [12:05:37]opened+sec_in_day 1712967816 [12:05:37]quantity*price = 250069 [12:05:37]sum+1 = 250071 [12:05:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2500.70 НСП 1% : 22.13 НДС 12% : 265.56 Наличными: 0.00 Безнал.: 2500.70 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 108 12.04.2024 12:05 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000963154 ФД: 28659 ФПД: 191487772380770 1/tax-web-control/client/api/v1/ticket?date=20240412T120545&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28659&fm=191487772380770&tin=02508201610067®Number=0000138879044617&sum=250070 [12:05:38]StoreToDocumentArchive [12:05:38]shift 113 fd 28659 [12:05:38]save to /storage/0113/doc_00028659 [12:05:38]save last doc name /storage/0113/doc_00028659 to /storage/kkm_last_doc_name [12:05:38]save OK [12:05:38]Clear old archive folders... [12:05:38]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:05:38]tlvbuf is 01AB4B10 [12:05:38]SAM_PROTO_ClearQueue [12:05:38]wFMCommunicate request_size=4 [12:05:38]MH_SAM_APDU [12:05:38]CAPDU: 80 09 00 00 [12:05:38]Write to MH i2c: E2 08 00 2B 79 80 09 00 00 00 00 00 00 16 [12:05:38]Write i2c OK [12:05:38]MH_I2C_Read... [12:05:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:05:38]Read from MH i2c: E2 [12:05:38]MH_I2C_Read... [12:05:38]Read from MH i2c: E2 03 00 [12:05:38]MH_I2C_Read... [12:05:38]Read from MH i2c: E2 03 00 2B 79 00 90 00 18 [12:05:38]RAPDU: 90 00 [12:05:38]wFMCommunicate OK [12:05:38]SAM_PROTO_ClearQueue done [12:05:38]KKMCreateOFDPacket [12:05:38]OFDProtocolAddRootSTLVToBuf [12:05:38]FM_MakeSignedData [12:05:38]FM_MakeSignedData [12:05:38]SAM_PROTO_SignData [12:05:38]wFMCommunicate request_size=4 [12:05:38]MH_SAM_APDU [12:05:38]CAPDU: 80 0D 01 02 [12:05:38]Write to MH i2c: E2 08 00 2C 79 80 0D 01 02 00 00 00 00 1E [12:05:38]Write i2c OK [12:05:38]MH_I2C_Read... [12:05:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:05:38]Read from MH i2c: E2 [12:05:38]MH_I2C_Read... [12:05:38]Read from MH i2c: E2 03 00 [12:05:38]MH_I2C_Read... [12:05:38]Read from MH i2c: E2 03 00 2C 79 00 90 00 19 [12:05:38]RAPDU: 90 00 [12:05:38]wFMCommunicate OK [12:05:38]wFMCommunicate request_size=255 [12:05:38]MH_SAM_APDU [12:05:38]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EC 86 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D6 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D6 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 BC 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D6 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 99 23 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F3 6F 00 00 35 04 06 00 AE 28 38 A6 [12:05:38]Write to MH i2c: E2 02 01 2D 79 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 35 FF 03 08 00 03 EC 86 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D6 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D6 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 BC 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D6 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 99 23 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F3 6F 00 00 35 04 06 00 AE 28 38 A6 00 00 67 [12:05:38]Write i2c OK [12:05:38]MH_I2C_Read... [12:05:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:05:39]Read from MH i2c: E2 [12:05:39]MH_I2C_Read... [12:05:39]Read from MH i2c: E2 03 00 [12:05:39]MH_I2C_Read... [12:05:39]Read from MH i2c: E2 03 00 2D 79 00 90 00 1A [12:05:39]RAPDU: 90 00 [12:05:39]wFMCommunicate OK [12:05:39]wFMCommunicate request_size=7 [12:05:39]MH_SAM_APDU [12:05:39]CAPDU: 80 0D 02 02 02 CE 62 [12:05:39]Write to MH i2c: E2 0A 00 2E 79 80 0D 02 02 02 00 CE 62 00 00 55 [12:05:39]Write i2c OK [12:05:39]MH_I2C_Read... [12:05:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:05:39]Read from MH i2c: E2 [12:05:39]MH_I2C_Read... [12:05:39]Read from MH i2c: E2 03 00 [12:05:39]MH_I2C_Read... [12:05:39]Read from MH i2c: E2 03 00 2E 79 00 90 00 1B [12:05:39]RAPDU: 90 00 [12:05:39]wFMCommunicate OK [12:05:39]wFMCommunicate request_size=4 [12:05:39]MH_SAM_APDU [12:05:39]CAPDU: 80 0D 03 02 [12:05:39]Write to MH i2c: E2 08 00 2F 79 80 0D 03 02 00 00 00 00 23 [12:05:39]Write i2c OK [12:05:39]MH_I2C_Read... [12:05:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:05:39]Read from MH i2c: E2 [12:05:39]MH_I2C_Read... [12:05:39]Read from MH i2c: E2 0B 00 [12:05:39]MH_I2C_Read... [12:05:39]Read from MH i2c: E2 0B 00 2F 79 00 9E 1A 4B F1 58 2C DB 64 90 00 DB [12:05:39]RAPDU: 9E 1A 4B F1 58 2C DB 64 90 00 [12:05:39]wFMCommunicate OK [12:05:39]SAM_PROTO_SignData done [12:05:39]FM_MakeSignedData done [12:05:39]CreateOFDProtocolMessage [12:05:39]wFMCommunicate request_size=4 [12:05:39]MH_SAM_APDU [12:05:39]CAPDU: 80 11 00 00 [12:05:39]Write to MH i2c: E2 08 00 30 79 80 11 00 00 00 00 00 00 23 [12:05:39]Write i2c OK [12:05:39]MH_I2C_Read... [12:05:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:05:39]Read from MH i2c: E2 [12:05:39]MH_I2C_Read... [12:05:39]Read from MH i2c: E2 17 00 [12:05:39]MH_I2C_Read... [12:05:39]Read from MH i2c: E2 17 00 30 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 72 [12:05:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:05:39]wFMCommunicate OK [12:05:39]CreateOFDProtocolMessage done [12:05:39]OFDSenderStorePacket 28659 [12:05:39]StoreOFDPacket docnum=28659 [12:05:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 84 5A 04 01 AE 5B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EC 86 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D6 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D6 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 BC 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D6 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 99 23 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F3 6F 00 00 35 04 06 00 AE 28 38 A6 CE 62 9E 1A 4B F1 58 2C DB 64 [12:05:39]CheckFolder [12:05:39]dirname=/storage/ofd_packets [12:05:39]CheckFolder done [12:05:39]ProducePacketName [12:05:39]name=ofd_packets/00028659 [12:05:39]NVStorageSaveData ofd_packets/00028659 [12:05:39]File name is /storage/ofd_packets/00028659 [12:05:39]Write 298 bytes [12:05:39]NVStorageSaveData done [12:05:39]OFDSenderStorePacket done [12:05:39]KKMCreateOFDPacket done [12:05:39]NVStorageSaveData kkm_last_timestamp [12:05:39]File name is /storage/kkm_last_timestamp [12:05:39]Write 4 bytes [12:05:39]NVStorageSaveData done [12:05:39]ExternCall_PrintAddStr [12:05:39]wPrintStart [12:05:39]Write to MH i2c: 01 00 00 31 79 AA [12:05:39]Write i2c OK [12:05:39]MH_I2C_Read... [12:05:39]Read from MH i2c: 01 [12:05:39]MH_I2C_Read... [12:05:39]Read from MH i2c: 01 07 00 [12:05:39]MH_I2C_Read... [12:05:39]Read from MH i2c: 01 07 00 31 79 00 00 00 00 00 FF 0F BF [12:05:39]RasterBufferAndPrint [12:05:39]line Счет N : (1)346989 [12:05:39]line ИНН: 02508201610067 [12:05:39]line Контрольно-Кассовый Чек [12:05:39]line ПРОДАЖА [12:05:39]line ТРК (МРК, ГНК) : 11 [12:05:39]line Товар: 2710194210 [12:05:39]line ДТ-К-5 [12:05:39]line 34.540 * 72.40 [12:05:39]line = 2500.70 [12:05:39]line НДС 12% НСП 1% [12:05:39]line > о реализуемом товаре [12:05:39]line ИТОГО: 2500.70 [12:05:39]line НСП 1% : 22.13 [12:05:39]line НДС 12% : 265.56 [12:05:39]line Наличными: 0.00 [12:05:39]line Безнал.: 2500.70 [12:05:39]line Место: АЗС № 108 "Партнер Нефть" [12:05:39]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [12:05:39]line СНО: Общий режим [12:05:39]line Чек 108 12.04.2024 12:05 [12:05:39]line Смена: 113 ФФД: 1.0 [12:05:39]line ЗНМ: 0300000027 [12:05:39]line РНМ: 0000138879044617 [12:05:39]line Версия ККМ: 001 [12:05:39]line Платежная система: Бакай Банк [12:05:39]line ФМ: 0000000000963154 [12:05:39]line ФД: 28659 [12:05:39]line ФПД: 191487772380770 [12:05:39]line 1/tax-web-control/client/api/v1/ticket?date=20240412T120545&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28659&fm=191487772380770&tin=02508201610067®Number=0000138879044617&sum=250070 [12:05:39]OFD Sender: Processing packet 28659 [packets to send 8, broken 7] [12:05:39]ProducePacketName [12:05:39]name=ofd_packets/00028659 [12:05:39]OFD Sender: To server: pG, [12:05:39]CommunicateWithHost lk.salyk.kg:30040 [12:05:39]ConnectInit lk.salyk.kg [12:05:39]written 0, free lines is 4095 [12:05:39]Connected sock=7 [12:05:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 84 5A 04 01 AE 5B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EC 86 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D6 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D6 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 BC 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D6 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 99 23 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F3 6F 00 00 35 04 06 00 AE 28 38 A6 CE 62 9E 1A 4B F1 58 2C DB 64 [12:05:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 6E 3D 47 00 B6 49 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F3 6F 00 00 F4 03 04 00 43 CE 18 66 B6 04 01 00 00 41 18 C4 33 D1 78 E6 8B [12:05:39]CommunicateWithHost err = 0 [12:05:39]CheckOFDResponse [12:05:39]1017 (14) - 77093643461234 [12:05:39]1041 (16) - 0000000000963154 [12:05:39]1040 (4) - 28659 [12:05:39]1012 (4) - 12.04.2024 06:01 [12:05:39]1206 (1) - 0 [12:05:39]OFD Sender: Remove packet 28659 [12:05:39]ProducePacketName [12:05:39]name=ofd_packets/00028659 [12:05:39]NVStorageDeleteData [12:05:39]Write to MH i2c: 01 00 00 5A 79 D3 [12:05:39]Write i2c OK [12:05:39]MH_I2C_Read... [12:05:39]Read from MH i2c: 01 [12:05:39]MH_I2C_Read... [12:05:39]Read from MH i2c: 01 07 00 [12:05:39]MH_I2C_Read... [12:05:39]Read from MH i2c: 01 07 00 5A 79 00 00 00 00 00 E5 0C CB [12:05:39]RasterBufferAndPrint [12:05:39]line [12:05:39]line [12:05:39]line [12:05:39]line [12:05:39]line [12:05:39]written 0, free lines is 3307 [12:05:39]MH_Cut [12:05:39]Write to MH i2c: D1 01 00 61 79 01 AC [12:05:39]Write i2c OK [12:05:39]MH_I2C_Read... [12:05:39]Read from MH i2c: D1 [12:05:39]MH_I2C_Read... [12:05:39]Read from MH i2c: D1 01 00 [12:05:39]MH_I2C_Read... [12:05:39]Read from MH i2c: D1 01 00 61 79 00 AB [12:05:39]Write to MH i2c: 01 00 00 62 79 DB [12:05:39]Write i2c OK [12:05:39]MH_I2C_Read... [12:05:40]OFD Sender: No OFD packet to send [12:05:40]*** Cut start [12:05:40]*** Partial cut [12:05:40]*** CUTSNS_PIN = 1 [12:05:40]*** CUTSNS_PIN = 0 [12:05:41]*** Brake cut motor [12:05:41]Read from MH i2c: 01 [12:05:41]MH_I2C_Read... [12:05:41]*** Stop cut motor [12:05:41]*** Cut end [12:05:41]Read from MH i2c: 01 07 00 [12:05:41]MH_I2C_Read... [12:05:41]Read from MH i2c: 01 07 00 62 79 00 00 00 00 00 FF 0F F0 [12:05:41]process_action close_receipt done [12:05:41]requested_data is exist [12:05:41]produce_requested_data [12:05:41]requested_item fm.sn is exist - process it [12:05:41]wFMCommunicate request_size=4 [12:05:41]MH_SAM_APDU [12:05:41]CAPDU: 80 11 00 00 [12:05:41]Write to MH i2c: E2 08 00 63 79 80 11 00 00 00 00 00 00 56 [12:05:41]Write i2c OK [12:05:41]MH_I2C_Read... [12:05:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:05:41]Read from MH i2c: E2 [12:05:41]MH_I2C_Read... [12:05:41]Read from MH i2c: E2 17 00 [12:05:41]MH_I2C_Read... [12:05:41]Read from MH i2c: E2 17 00 63 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 A5 [12:05:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:05:41]wFMCommunicate OK [12:05:41]requested_item fd.num is exist - process it [12:05:41]SAM_PROTO_GetFieldsCounters [12:05:41]wFMCommunicate request_size=4 [12:05:41]MH_SAM_APDU [12:05:41]CAPDU: 80 13 00 00 [12:05:41]Write to MH i2c: E2 08 00 64 79 80 13 00 00 00 00 00 00 59 [12:05:41]Write i2c OK [12:05:41]MH_I2C_Read... [12:05:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:05:41]Read from MH i2c: E2 [12:05:41]MH_I2C_Read... [12:05:41]Read from MH i2c: E2 62 00 [12:05:41]MH_I2C_Read... [12:05:41]Read from MH i2c: E2 62 00 64 79 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 F3 6F 00 00 0E 04 04 00 71 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 AE [12:05:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 F3 6F 00 00 0E 04 04 00 71 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:05:41]wFMCommunicate OK [12:05:41]SAM_PROTO_GetFieldsCounters done [12:05:41]requested_item shift.num is exist - process it [12:05:41]requested_item shift.opened is exist - process it [12:05:41]req_shift_opened [12:05:41]FM_GetShiftState [12:05:41]SAM_PROTO_GetShiftState [12:05:41]wFMCommunicate request_size=4 [12:05:41]MH_SAM_APDU [12:05:41]CAPDU: 80 13 01 00 [12:05:41]Write to MH i2c: E2 08 00 65 79 80 13 01 00 00 00 00 00 5B [12:05:41]Write i2c OK [12:05:41]MH_I2C_Read... [12:05:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:05:41]Read from MH i2c: E2 [12:05:41]MH_I2C_Read... [12:05:41]Read from MH i2c: E2 0E 00 [12:05:41]MH_I2C_Read... [12:05:41]Read from MH i2c: E2 0E 00 65 79 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 6C [12:05:41]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [12:05:41]wFMCommunicate OK [12:05:41]SAM_PROTO_GetShiftState done [12:05:41]FM_GetShiftState done [12:05:41]req_shift_opened done [12:05:41]requested_item shift.open_date is exist - process it [12:05:41]req_shift_open_date [12:05:41]req_shift_open_date done [12:05:41]produce_requested_data done [12:05:41]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28659,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [12:05:41]process_action_free close_receipt [12:05:41]json_value_free [12:05:41]json_value_free done [12:05:41]process_json_proto returns [12:05:41]Send response to host [12:05:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28659,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [12:05:41]free response buf [12:05:41]execute_script done [12:05:41]execute_script returns [12:05:41]free content buf [12:05:41]Sock 6.Close socket [12:05:41]Sock 6.Thread stoped [12:05:45]OFD Sender: No OFD packet to send [12:05:50]OFD Sender: No OFD packet to send [12:05:55]OFD Sender: No OFD packet to send [12:06:00]OFD Sender: No OFD packet to send [12:06:05]OFD Sender: No OFD packet to send [12:06:10]OFD Sender: No OFD packet to send [12:06:15]OFD Sender: No OFD packet to send [12:06:20]OFD Sender: No OFD packet to send [12:06:25]OFD Sender: No OFD packet to send [12:06:30]OFD Sender: No OFD packet to send [12:06:35]OFD Sender: No OFD packet to send [12:06:40]OFD Sender: No OFD packet to send [12:06:45]OFD Sender: No OFD packet to send [12:06:50]OFD Sender: No OFD packet to send [12:06:55]OFD Sender: No OFD packet to send [12:07:00]OFD Sender: No OFD packet to send [12:07:05]OFD Sender: No OFD packet to send [12:07:10]OFD Sender: No OFD packet to send [12:07:15]OFD Sender: No OFD packet to send [12:07:20]OFD Sender: No OFD packet to send [12:07:25]OFD Sender: No OFD packet to send [12:07:30]OFD Sender: No OFD packet to send [12:07:35]OFD Sender: No OFD packet to send [12:07:40]OFD Sender: No OFD packet to send [12:07:45]OFD Sender: No OFD packet to send [12:07:50]OFD Sender: No OFD packet to send [12:07:52]accept exits with 5 [12:07:52]New connection [12:07:52]New thread 3066498404 created [12:07:52]Thread 3066641764 joined [12:07:52]Waiting for new connection... [12:07:52] Sock 5.Parse request [12:07:52]Sock 5.Check first char [12:07:52]Sock 5.First char is OK [12:07:52]request: POST /json_proto HTTP/1.0 [12:07:52]Method: POST [12:07:52]URL: /json_proto [12:07:52]Method is POST - this is cgi request [12:07:52]url: /json_proto [12:07:52]query_string will be loaded in cgi processing [12:07:52]execute_cgi json_proto POST (null) [12:07:52]execute_cgi path=json_proto method=POST [12:07:52]POST find Content-Length [12:07:52]Host: 172.17.33.3:8080 [12:07:52]Content-Length: 805 [12:07:52]Content-Type: application/json [12:07:52] [12:07:52]POST finish read [12:07:52]Found Content-Length = 805 [12:07:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346990", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 27.630, "sum" : 2000.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:07:52]execute_script... [12: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)346990", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 27.630, "sum" : 2000.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:07:52]POST & json_proto [12:07:52]process_json_proto [12:07:52]json parsed OK: [12:07:52]protocol is kg_v1.0 [12:07:52]action value=close_receipt [12:07:52]process_action close_receipt [12:07:52]cmd_close_receipt [12:07:52]MH_GetDate [12:07:52]Write to MH i2c: F0 00 00 66 79 CE [12:07:52]Write i2c OK [12:07:52]MH_I2C_Read... [12:07:52]Read from MH i2c: F0 [12:07:52]MH_I2C_Read... [12:07:52]Read from MH i2c: F0 09 00 [12:07:52]MH_I2C_Read... [12:07:52]Read from MH i2c: F0 09 00 66 79 00 20 24 19 66 23 5B 8F 65 0C [12:07:52]GetLastDocTimeStamp 1712923545 [12:07:52]current date 1712923680 [12:07:52]FM_GetShiftState [12:07:52]SAM_PROTO_GetShiftState [12:07:52]wFMCommunicate request_size=4 [12:07:52]MH_SAM_APDU [12:07:52]CAPDU: 80 13 01 00 [12:07:52]Write to MH i2c: E2 08 00 67 79 80 13 01 00 00 00 00 00 5D [12:07:52]Write i2c OK [12:07:52]MH_I2C_Read... [12:07:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:07:52]Read from MH i2c: E2 [12:07:52]MH_I2C_Read... [12:07:52]Read from MH i2c: E2 0E 00 [12:07:52]MH_I2C_Read... [12:07:52]Read from MH i2c: E2 0E 00 67 79 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 6E [12:07:52]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [12:07:52]wFMCommunicate OK [12:07:52]SAM_PROTO_GetShiftState done [12:07:52]FM_GetShiftState done [12:07:52]opened in 1712881416 [12:07:52]opened+sec_in_day 1712967816 [12:07:52]quantity*price = 200041 [12:07:52]sum+1 = 200042 [12:07:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.41 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 0.00 Безнал.: 2000.41 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 109 12.04.2024 12:08 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 28660 ФПД: 254652826401595 1/tax-web-control/client/api/v1/ticket?date=20240412T120800&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28660&fm=254652826401595&tin=02508201610067®Number=0000138879044617&sum=200041 [12:07:53]StoreToDocumentArchive [12:07:53]shift 113 fd 28660 [12:07:53]save to /storage/0113/doc_00028660 [12:07:53]save last doc name /storage/0113/doc_00028660 to /storage/kkm_last_doc_name [12:07:53]save OK [12:07:53]Clear old archive folders... [12:07:53]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:07:53]tlvbuf is 01B41B60 [12:07:53]SAM_PROTO_ClearQueue [12:07:53]wFMCommunicate request_size=4 [12:07:53]MH_SAM_APDU [12:07:53]CAPDU: 80 09 00 00 [12:07:53]Write to MH i2c: E2 08 00 74 79 80 09 00 00 00 00 00 00 5F [12:07:53]Write i2c OK [12:07:53]MH_I2C_Read... [12:07:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:07:53]Read from MH i2c: E2 [12:07:53]MH_I2C_Read... [12:07:53]Read from MH i2c: E2 03 00 [12:07:53]MH_I2C_Read... [12:07:53]Read from MH i2c: E2 03 00 74 79 00 90 00 61 [12:07:53]RAPDU: 90 00 [12:07:53]wFMCommunicate OK [12:07:53]SAM_PROTO_ClearQueue done [12:07:53]KKMCreateOFDPacket [12:07:53]OFDProtocolAddRootSTLVToBuf [12:07:53]FM_MakeSignedData [12:07:53]FM_MakeSignedData [12:07:53]SAM_PROTO_SignData [12:07:53]wFMCommunicate request_size=4 [12:07:53]MH_SAM_APDU [12:07:53]CAPDU: 80 0D 01 02 [12:07:53]Write to MH i2c: E2 08 00 75 79 80 0D 01 02 00 00 00 00 67 [12:07:53]Write i2c OK [12:07:53]MH_I2C_Read... [12:07:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:07:53]Read from MH i2c: E2 [12:07:53]MH_I2C_Read... [12:07:53]Read from MH i2c: E2 03 00 [12:07:53]MH_I2C_Read... [12:07:53]Read from MH i2c: E2 03 00 75 79 00 90 00 62 [12:07:53]RAPDU: 90 00 [12:07:53]wFMCommunicate OK [12:07:53]wFMCommunicate request_size=255 [12:07:53]MH_SAM_APDU [12:07:53]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EE 6B 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 69 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 69 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 20 24 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F4 6F 00 00 35 04 06 00 E7 9A FB 42 [12:07:53]Write to MH i2c: E2 02 01 76 79 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 35 FF 03 08 00 03 EE 6B 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 69 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 69 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 20 24 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F4 6F 00 00 35 04 06 00 E7 9A FB 42 00 00 08 [12:07:53]Write i2c OK [12:07:53]MH_I2C_Read... [12:07:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:07:54]Read from MH i2c: E2 [12:07:54]MH_I2C_Read... [12:07:54]Read from MH i2c: E2 03 00 [12:07:54]MH_I2C_Read... [12:07:54]Read from MH i2c: E2 03 00 76 79 00 90 00 63 [12:07:54]RAPDU: 90 00 [12:07:54]wFMCommunicate OK [12:07:54]wFMCommunicate request_size=7 [12:07:54]MH_SAM_APDU [12:07:54]CAPDU: 80 0D 02 02 02 3B 3B [12:07:54]Write to MH i2c: E2 0A 00 77 79 80 0D 02 02 02 00 3B 3B 00 00 E4 [12:07:54]Write i2c OK [12:07:54]MH_I2C_Read... [12:07:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:07:54]Read from MH i2c: E2 [12:07:54]MH_I2C_Read... [12:07:54]Read from MH i2c: E2 03 00 [12:07:54]MH_I2C_Read... [12:07:54]Read from MH i2c: E2 03 00 77 79 00 90 00 64 [12:07:54]RAPDU: 90 00 [12:07:54]wFMCommunicate OK [12:07:54]wFMCommunicate request_size=4 [12:07:54]MH_SAM_APDU [12:07:54]CAPDU: 80 0D 03 02 [12:07:54]Write to MH i2c: E2 08 00 78 79 80 0D 03 02 00 00 00 00 6C [12:07:54]Write i2c OK [12:07:54]MH_I2C_Read... [12:07:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:07:54]Read from MH i2c: E2 [12:07:54]MH_I2C_Read... [12:07:54]Read from MH i2c: E2 0B 00 [12:07:54]MH_I2C_Read... [12:07:54]Read from MH i2c: E2 0B 00 78 79 00 20 89 FF CC AF 11 CD 7B 90 00 E9 [12:07:54]RAPDU: 20 89 FF CC AF 11 CD 7B 90 00 [12:07:54]wFMCommunicate OK [12:07:54]SAM_PROTO_SignData done [12:07:54]FM_MakeSignedData done [12:07:54]CreateOFDProtocolMessage [12:07:54]wFMCommunicate request_size=4 [12:07:54]MH_SAM_APDU [12:07:54]CAPDU: 80 11 00 00 [12:07:54]Write to MH i2c: E2 08 00 79 79 80 11 00 00 00 00 00 00 6C [12:07:54]Write i2c OK [12:07:54]MH_I2C_Read... [12:07:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:07:54]Read from MH i2c: E2 [12:07:54]MH_I2C_Read... [12:07:54]Read from MH i2c: E2 17 00 [12:07:54]MH_I2C_Read... [12:07:54]Read from MH i2c: E2 17 00 79 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 BB [12:07:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:07:54]wFMCommunicate OK [12:07:54]CreateOFDProtocolMessage done [12:07:54]OFDSenderStorePacket 28660 [12:07:54]StoreOFDPacket docnum=28660 [12:07:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 D0 D5 04 01 85 73 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EE 6B 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 69 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 69 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 20 24 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F4 6F 00 00 35 04 06 00 E7 9A FB 42 3B 3B 20 89 FF CC AF 11 CD 7B [12:07:54]CheckFolder [12:07:54]dirname=/storage/ofd_packets [12:07:54]CheckFolder done [12:07:54]ProducePacketName [12:07:54]name=ofd_packets/00028660 [12:07:54]NVStorageSaveData ofd_packets/00028660 [12:07:54]File name is /storage/ofd_packets/00028660 [12:07:54]Write 298 bytes [12:07:54]NVStorageSaveData done [12:07:54]OFDSenderStorePacket done [12:07:54]KKMCreateOFDPacket done [12:07:54]NVStorageSaveData kkm_last_timestamp [12:07:54]File name is /storage/kkm_last_timestamp [12:07:54]Write 4 bytes [12:07:54]NVStorageSaveData done [12:07:54]ExternCall_PrintAddStr [12:07:54]wPrintStart [12:07:54]Write to MH i2c: 01 00 00 7A 79 F3 [12:07:54]Write i2c OK [12:07:54]MH_I2C_Read... [12:07:54]Read from MH i2c: 01 [12:07:54]MH_I2C_Read... [12:07:54]Read from MH i2c: 01 07 00 [12:07:54]MH_I2C_Read... [12:07:54]Read from MH i2c: 01 07 00 7A 79 00 00 00 00 00 FF 0F 08 [12:07:54]RasterBufferAndPrint [12:07:54]line Счет N : (1)346990 [12:07:54]line ИНН: 02508201610067 [12:07:54]line Контрольно-Кассовый Чек [12:07:54]line ПРОДАЖА [12:07:54]line ТРК (МРК, ГНК) : 51 [12:07:54]line Товар: 2710194210 [12:07:54]line ДТ-К-5 [12:07:54]line 27.630 * 72.40 [12:07:54]line = 2000.41 [12:07:54]line НДС 12% НСП 1% [12:07:54]line > о реализуемом товаре [12:07:54]line ИТОГО: 2000.41 [12:07:54]line НСП 1% : 17.70 [12:07:54]line НДС 12% : 212.43 [12:07:54]line Наличными: 0.00 [12:07:54]line Безнал.: 2000.41 [12:07:54]line Место: АЗС № 108 "Партнер Нефть" [12:07:54]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [12:07:54]line СНО: Общий режим [12:07:54]line Чек 109 12.04.2024 12:08 [12:07:54]line Смена: 113 ФФД: 1.0 [12:07:54]line ЗНМ: 0300000027 [12:07:54]line РНМ: 0000138879044617 [12:07:54]line Версия ККМ: 001 [12:07:54]line Платежная система: О! деньги [12:07:54]line ФМ: 0000000000963154 [12:07:54]line ФД: 28660 [12:07:54]line ФПД: 254652826401595 [12:07:54]line 1/tax-web-control/client/api/v1/ticket?date=20240412T120800&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28660&fm=254652826401595&tin=02508201610067®Number=0000138879044617&sum=200041 [12:07:54]OFD Sender: Processing packet 28660 [packets to send 8, broken 7] [12:07:54]ProducePacketName [12:07:54]name=ofd_packets/00028660 [12:07:54]OFD Sender: To server: pG, [12:07:54]CommunicateWithHost lk.salyk.kg:30040 [12:07:54]ConnectInit lk.salyk.kg [12:07:54]written 0, free lines is 4095 [12:07:54]Connected sock=7 [12:07:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 D0 D5 04 01 85 73 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EE 6B 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 69 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 69 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 20 24 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F4 6F 00 00 35 04 06 00 E7 9A FB 42 3B 3B 20 89 FF CC AF 11 CD 7B [12:07:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 F0 21 47 00 22 5C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F4 6F 00 00 F4 03 04 00 CA CE 18 66 B6 04 01 00 00 0D 93 97 7E 4A B6 4E 17 [12:07:54]CommunicateWithHost err = 0 [12:07:54]CheckOFDResponse [12:07:54]1017 (14) - 77093643461234 [12:07:54]1041 (16) - 0000000000963154 [12:07:54]1040 (4) - 28660 [12:07:54]1012 (4) - 12.04.2024 06:03 [12:07:54]1206 (1) - 0 [12:07:54]OFD Sender: Remove packet 28660 [12:07:54]ProducePacketName [12:07:54]name=ofd_packets/00028660 [12:07:54]NVStorageDeleteData [12:07:54]Write to MH i2c: 01 00 00 A3 79 1C [12:07:54]Write i2c OK [12:07:54]MH_I2C_Read... [12:07:54]Read from MH i2c: 01 [12:07:54]MH_I2C_Read... [12:07:54]Read from MH i2c: 01 07 00 [12:07:54]MH_I2C_Read... [12:07:54]Read from MH i2c: 01 07 00 A3 79 00 00 00 00 00 DF 0C 0E [12:07:54]RasterBufferAndPrint [12:07:54]line [12:07:54]line [12:07:54]line [12:07:54]line [12:07:54]line [12:07:54]written 0, free lines is 3301 [12:07:54]MH_Cut [12:07:54]Write to MH i2c: D1 01 00 AA 79 01 F5 [12:07:54]Write i2c OK [12:07:54]MH_I2C_Read... [12:07:54]Read from MH i2c: D1 [12:07:54]MH_I2C_Read... [12:07:54]Read from MH i2c: D1 01 00 [12:07:54]MH_I2C_Read... [12:07:54]Read from MH i2c: D1 01 00 AA 79 00 F4 [12:07:54]Write to MH i2c: 01 00 00 AB 79 24 [12:07:54]Write i2c OK [12:07:54]MH_I2C_Read... [12:07:55]OFD Sender: No OFD packet to send [12:07:55]*** Cut start [12:07:55]*** Partial cut [12:07:55]*** CUTSNS_PIN = 1 [12:07:55]*** CUTSNS_PIN = 0 [12:07:56]*** Brake cut motor [12:07:56]Read from MH i2c: 01 [12:07:56]MH_I2C_Read... [12:07:56]*** Stop cut motor [12:07:56]*** Cut end [12:07:56]Read from MH i2c: 01 07 00 [12:07:56]MH_I2C_Read... [12:07:56]Read from MH i2c: 01 07 00 AB 79 00 00 00 00 00 FF 0F 39 [12:07:56]process_action close_receipt done [12:07:56]requested_data is exist [12:07:56]produce_requested_data [12:07:56]requested_item fm.sn is exist - process it [12:07:56]wFMCommunicate request_size=4 [12:07:56]MH_SAM_APDU [12:07:56]CAPDU: 80 11 00 00 [12:07:56]Write to MH i2c: E2 08 00 AC 79 80 11 00 00 00 00 00 00 9F [12:07:56]Write i2c OK [12:07:56]MH_I2C_Read... [12:07:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:07:56]Read from MH i2c: E2 [12:07:56]MH_I2C_Read... [12:07:56]Read from MH i2c: E2 17 00 [12:07:56]MH_I2C_Read... [12:07:56]Read from MH i2c: E2 17 00 AC 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 EE [12:07:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:07:56]wFMCommunicate OK [12:07:56]requested_item fd.num is exist - process it [12:07:56]SAM_PROTO_GetFieldsCounters [12:07:56]wFMCommunicate request_size=4 [12:07:56]MH_SAM_APDU [12:07:56]CAPDU: 80 13 00 00 [12:07:56]Write to MH i2c: E2 08 00 AD 79 80 13 00 00 00 00 00 00 A2 [12:07:56]Write i2c OK [12:07:56]MH_I2C_Read... [12:07:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:07:56]Read from MH i2c: E2 [12:07:56]MH_I2C_Read... [12:07:56]Read from MH i2c: E2 62 00 [12:07:56]MH_I2C_Read... [12:07:56]Read from MH i2c: E2 62 00 AD 79 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 F4 6F 00 00 0E 04 04 00 71 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 FB [12:07:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 F4 6F 00 00 0E 04 04 00 71 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:07:56]wFMCommunicate OK [12:07:56]SAM_PROTO_GetFieldsCounters done [12:07:56]requested_item shift.num is exist - process it [12:07:56]requested_item shift.opened is exist - process it [12:07:56]req_shift_opened [12:07:56]FM_GetShiftState [12:07:56]SAM_PROTO_GetShiftState [12:07:56]wFMCommunicate request_size=4 [12:07:56]MH_SAM_APDU [12:07:56]CAPDU: 80 13 01 00 [12:07:56]Write to MH i2c: E2 08 00 AE 79 80 13 01 00 00 00 00 00 A4 [12:07:56]Write i2c OK [12:07:56]MH_I2C_Read... [12:07:56]Read from MH i2c: E2 [12:07:56]MH_I2C_Read... [12:07:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:07:56]Read from MH i2c: E2 0E 00 [12:07:56]MH_I2C_Read... [12:07:56]Read from MH i2c: E2 0E 00 AE 79 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 B5 [12:07:56]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [12:07:56]wFMCommunicate OK [12:07:56]SAM_PROTO_GetShiftState done [12:07:56]FM_GetShiftState done [12:07:56]req_shift_opened done [12:07:56]requested_item shift.open_date is exist - process it [12:07:56]req_shift_open_date [12:07:56]req_shift_open_date done [12:07:56]produce_requested_data done [12:07:56]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28660,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [12:07:56]process_action_free close_receipt [12:07:56]json_value_free [12:07:56]json_value_free done [12:07:56]process_json_proto returns [12:07:56]Send response to host [12:07:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28660,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [12:07:56]free response buf [12:07:56]execute_script done [12:07:56]execute_script returns [12:07:56]free content buf [12:07:56]Sock 5.Close socket [12:07:56]Sock 5.Thread stoped [12:08:00]OFD Sender: No OFD packet to send [12:08:05]OFD Sender: No OFD packet to send [12:08:10]OFD Sender: No OFD packet to send [12:08:15]OFD Sender: No OFD packet to send [12:08:20]OFD Sender: No OFD packet to send [12:08:25]OFD Sender: No OFD packet to send [12:08:30]OFD Sender: No OFD packet to send [12:08:35]OFD Sender: No OFD packet to send [12:08:40]OFD Sender: No OFD packet to send [12:08:45]OFD Sender: No OFD packet to send [12:08:50]OFD Sender: No OFD packet to send [12:08:55]OFD Sender: No OFD packet to send [12:09:00]OFD Sender: No OFD packet to send [12:09:05]OFD Sender: No OFD packet to send [12:09:10]OFD Sender: No OFD packet to send [12:09:15]OFD Sender: No OFD packet to send [12:09:20]OFD Sender: No OFD packet to send [12:09:25]OFD Sender: No OFD packet to send [12:09:30]OFD Sender: No OFD packet to send [12:09:35]OFD Sender: No OFD packet to send [12:09:40]OFD Sender: No OFD packet to send [12:09:45]OFD Sender: No OFD packet to send [12:09:50]OFD Sender: No OFD packet to send [12:09:55]OFD Sender: No OFD packet to send [12:10:00]OFD Sender: No OFD packet to send [12:10:05]OFD Sender: No OFD packet to send [12:10:10]OFD Sender: No OFD packet to send [12:10:15]OFD Sender: No OFD packet to send [12:10:20]OFD Sender: No OFD packet to send [12:10:25]OFD Sender: No OFD packet to send [12:10:30]OFD Sender: No OFD packet to send [12:10:35]OFD Sender: No OFD packet to send [12:10:40]OFD Sender: No OFD packet to send [12:10:45]OFD Sender: No OFD packet to send [12:10:48]accept exits with 6 [12:10:48]New connection [12:10:48]New thread 3066641764 created [12:10:48]Thread 3066498404 joined [12:10:48]Waiting for new connection... [12:10:48] Sock 6.Parse request [12:10:48]Sock 6.Check first char [12:10:48]Sock 6.First char is OK [12:10:48]request: POST /json_proto HTTP/1.0 [12:10:48]Method: POST [12:10:48]URL: /json_proto [12:10:48]Method is POST - this is cgi request [12:10:48]url: /json_proto [12:10:48]query_string will be loaded in cgi processing [12:10:48]execute_cgi json_proto POST (null) [12:10:48]execute_cgi path=json_proto method=POST [12:10:48]POST find Content-Length [12:10:48]Host: 172.17.33.3:8080 [12:10:48]Content-Length: 844 [12:10:48]Content-Type: application/json [12:10:48] [12:10:48]POST finish read [12:10:48]Found Content-Length = 844 [12:10:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346991", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 12.010, "sum" : 395.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 395.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:10:48]execute_script... [12:10:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346991", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 12.010, "sum" : 395.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 395.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:10:48]POST & json_proto [12:10:48]process_json_proto [12:10:48]json parsed OK: [12:10:48]protocol is kg_v1.0 [12:10:48]action value=close_receipt [12:10:48]process_action close_receipt [12:10:48]cmd_close_receipt [12:10:48]MH_GetDate [12:10:48]Write to MH i2c: F0 00 00 AF 79 17 [12:10:48]Write i2c OK [12:10:48]MH_I2C_Read... [12:10:48]Read from MH i2c: F0 [12:10:48]MH_I2C_Read... [12:10:48]Read from MH i2c: F0 09 00 [12:10:48]MH_I2C_Read... [12:10:48]Read from MH i2c: F0 09 00 AF 79 00 D0 24 19 66 23 5B 8F 65 05 [12:10:48]GetLastDocTimeStamp 1712923680 [12:10:48]current date 1712923856 [12:10:48]FM_GetShiftState [12:10:48]SAM_PROTO_GetShiftState [12:10:48]wFMCommunicate request_size=4 [12:10:48]MH_SAM_APDU [12:10:48]CAPDU: 80 13 01 00 [12:10:48]Write to MH i2c: E2 08 00 B0 79 80 13 01 00 00 00 00 00 A6 [12:10:48]Write i2c OK [12:10:48]MH_I2C_Read... [12:10:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:10:48]Read from MH i2c: E2 [12:10:48]MH_I2C_Read... [12:10:48]Read from MH i2c: E2 0E 00 [12:10:48]MH_I2C_Read... [12:10:48]Read from MH i2c: E2 0E 00 B0 79 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 B7 [12:10:48]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [12:10:48]wFMCommunicate OK [12:10:48]SAM_PROTO_GetShiftState done [12:10:48]FM_GetShiftState done [12:10:48]opened in 1712881416 [12:10:48]opened+sec_in_day 1712967816 [12:10:48]quantity*price = 39512 [12:10:48]sum+1 = 39514 [12:10:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 395.13 НСП 1% : 3.50 НДС 12% : 41.96 Наличными: 0.00 Безнал.: 395.13 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 110 12.04.2024 12:10 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 28661 ФПД: 149764532083595 1/tax-web-control/client/api/v1/ticket?date=20240412T121056&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28661&fm=149764532083595&tin=02508201610067®Number=0000138879044617&sum=39513 [12:10:50]StoreToDocumentArchive [12:10:50]shift 113 fd 28661 [12:10:50]save to /storage/0113/doc_00028661 [12:10:50]save last doc name /storage/0113/doc_00028661 to /storage/kkm_last_doc_name [12:10:50]save OK [12:10:50]Clear old archive folders... [12:10:50]ProcessDocumentItem done err = 0, tmpTLVsize=250 [12:10:50]tlvbuf is 01B55050 [12:10:50]SAM_PROTO_ClearQueue [12:10:50]wFMCommunicate request_size=4 [12:10:50]MH_SAM_APDU [12:10:50]CAPDU: 80 09 00 00 [12:10:50]Write to MH i2c: E2 08 00 BD 79 80 09 00 00 00 00 00 00 A8 [12:10:50]Write i2c OK [12:10:50]MH_I2C_Read... [12:10:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:10:50]Read from MH i2c: E2 [12:10:50]MH_I2C_Read... [12:10:50]Read from MH i2c: E2 03 00 [12:10:50]MH_I2C_Read... [12:10:50]Read from MH i2c: E2 03 00 BD 79 00 90 00 AA [12:10:50]RAPDU: 90 00 [12:10:50]wFMCommunicate OK [12:10:50]SAM_PROTO_ClearQueue done [12:10:50]KKMCreateOFDPacket [12:10:50]OFDProtocolAddRootSTLVToBuf [12:10:50]FM_MakeSignedData [12:10:50]FM_MakeSignedData [12:10:50]SAM_PROTO_SignData [12:10:50]wFMCommunicate request_size=4 [12:10:50]MH_SAM_APDU [12:10:50]CAPDU: 80 0D 01 02 [12:10:50]Write to MH i2c: E2 08 00 BE 79 80 0D 01 02 00 00 00 00 B0 [12:10:50]Write i2c OK [12:10:50]MH_I2C_Read... [12:10:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:10:50]Read from MH i2c: E2 [12:10:50]MH_I2C_Read... [12:10:50]Read from MH i2c: E2 03 00 [12:10:50]MH_I2C_Read... [12:10:50]Read from MH i2c: E2 03 00 BE 79 00 90 00 AB [12:10:50]RAPDU: 90 00 [12:10:50]wFMCommunicate OK [12:10:50]wFMCommunicate request_size=255 [12:10:50]MH_SAM_APDU [12:10:50]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 EA 2E 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 59 9A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 9A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 9A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 D0 24 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F5 6F 00 00 35 04 06 00 88 35 [12:10:50]Write to MH i2c: E2 02 01 BF 79 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 EA 2E 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 59 9A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 9A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 9A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 D0 24 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F5 6F 00 00 35 04 06 00 88 35 00 00 A4 [12:10:50]Write i2c OK [12:10:50]MH_I2C_Read... [12:10:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:10:50]Read from MH i2c: E2 [12:10:50]MH_I2C_Read... [12:10:50]Read from MH i2c: E2 03 00 [12:10:50]MH_I2C_Read... [12:10:50]Read from MH i2c: E2 03 00 BF 79 00 90 00 AC [12:10:50]RAPDU: 90 00 [12:10:50]wFMCommunicate OK [12:10:50]wFMCommunicate request_size=9 [12:10:50]MH_SAM_APDU [12:10:50]CAPDU: 80 0D 02 02 04 C5 BC 1B 8B [12:10:50]Write to MH i2c: E2 0C 00 C0 79 80 0D 02 02 04 00 C5 BC 1B 8B 00 00 E2 [12:10:50]Write i2c OK [12:10:50]MH_I2C_Read... [12:10:50]OFD Sender: No OFD packet to send [12:10:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:10:50]Read from MH i2c: E2 [12:10:50]MH_I2C_Read... [12:10:50]Read from MH i2c: E2 03 00 [12:10:50]MH_I2C_Read... [12:10:50]Read from MH i2c: E2 03 00 C0 79 00 90 00 AD [12:10:50]RAPDU: 90 00 [12:10:50]wFMCommunicate OK [12:10:50]wFMCommunicate request_size=4 [12:10:50]MH_SAM_APDU [12:10:50]CAPDU: 80 0D 03 02 [12:10:50]Write to MH i2c: E2 08 00 C1 79 80 0D 03 02 00 00 00 00 B5 [12:10:50]Write i2c OK [12:10:50]MH_I2C_Read... [12:10:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:10:50]Read from MH i2c: E2 [12:10:50]MH_I2C_Read... [12:10:50]Read from MH i2c: E2 0B 00 [12:10:50]MH_I2C_Read... [12:10:50]Read from MH i2c: E2 0B 00 C1 79 00 BD E0 AC 7E 32 16 A9 66 90 00 D4 [12:10:50]RAPDU: BD E0 AC 7E 32 16 A9 66 90 00 [12:10:50]wFMCommunicate OK [12:10:50]SAM_PROTO_SignData done [12:10:50]FM_MakeSignedData done [12:10:50]CreateOFDProtocolMessage [12:10:50]wFMCommunicate request_size=4 [12:10:50]MH_SAM_APDU [12:10:50]CAPDU: 80 11 00 00 [12:10:50]Write to MH i2c: E2 08 00 C2 79 80 11 00 00 00 00 00 00 B5 [12:10:50]Write i2c OK [12:10:50]MH_I2C_Read... [12:10:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:10:50]Read from MH i2c: E2 [12:10:50]MH_I2C_Read... [12:10:50]Read from MH i2c: E2 17 00 [12:10:50]MH_I2C_Read... [12:10:50]Read from MH i2c: E2 17 00 C2 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 04 [12:10:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:10:50]wFMCommunicate OK [12:10:50]CreateOFDProtocolMessage done [12:10:50]OFDSenderStorePacket 28661 [12:10:50]StoreOFDPacket docnum=28661 [12:10:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 77 A1 06 01 93 B4 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 EA 2E 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 59 9A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 9A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 9A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 D0 24 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F5 6F 00 00 35 04 06 00 88 35 C5 BC 1B 8B BD E0 AC 7E 32 16 A9 66 [12:10:50]CheckFolder [12:10:50]dirname=/storage/ofd_packets [12:10:50]CheckFolder done [12:10:50]ProducePacketName [12:10:50]name=ofd_packets/00028661 [12:10:50]NVStorageSaveData ofd_packets/00028661 [12:10:50]File name is /storage/ofd_packets/00028661 [12:10:50]Write 300 bytes [12:10:50]NVStorageSaveData done [12:10:50]OFDSenderStorePacket done [12:10:50]KKMCreateOFDPacket done [12:10:50]NVStorageSaveData kkm_last_timestamp [12:10:50]File name is /storage/kkm_last_timestamp [12:10:50]Write 4 bytes [12:10:50]NVStorageSaveData done [12:10:50]ExternCall_PrintAddStr [12:10:50]wPrintStart [12:10:50]Write to MH i2c: 01 00 00 C3 79 3C [12:10:50]Write i2c OK [12:10:50]MH_I2C_Read... [12:10:50]Read from MH i2c: 01 [12:10:50]MH_I2C_Read... [12:10:50]Read from MH i2c: 01 07 00 [12:10:50]MH_I2C_Read... [12:10:50]Read from MH i2c: 01 07 00 C3 79 00 00 00 00 00 FF 0F 51 [12:10:50]RasterBufferAndPrint [12:10:50]line Счет N : (1)346991 [12:10:50]line ИНН: 02508201610067 [12:10:50]line Контрольно-Кассовый Чек [12:10:50]line ПРОДАЖА [12:10:50]line ТРК (МРК, ГНК) : 71 [12:10:50]line Товар: 2711129700 [12:10:50]line ГАЗ-К-5 [12:10:50]line 12.010 * 32.90 [12:10:50]line = 395.13 [12:10:50]line НДС 12% НСП 1% [12:10:50]line > о реализуемом товаре [12:10:50]line ИТОГО: 395.13 [12:10:50]line НСП 1% : 3.50 [12:10:50]line НДС 12% : 41.96 [12:10:50]line Наличными: 0.00 [12:10:50]line Безнал.: 395.13 [12:10:50]line Место: АЗС № 108 "Партнер Нефть" [12:10:50]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [12:10:50]line СНО: Общий режим [12:10:50]line Чек 110 12.04.2024 12:10 [12:10:50]line Смена: 113 ФФД: 1.0 [12:10:50]line ЗНМ: 0300000027 [12:10:50]line РНМ: 0000138879044617 [12:10:50]line Версия ККМ: 001 [12:10:50]line Платежная система: АКБ Кыргызстан [12:10:50]line ФМ: 0000000000963154 [12:10:50]line ФД: 28661 [12:10:50]line ФПД: 149764532083595 [12:10:50]line 1/tax-web-control/client/api/v1/ticket?date=20240412T121056&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28661&fm=149764532083595&tin=02508201610067®Number=0000138879044617&sum=39513 [12:10:50]written 0, free lines is 4095 [12:10:50]OFD Sender: Processing packet 28661 [packets to send 8, broken 7] [12:10:50]ProducePacketName [12:10:50]name=ofd_packets/00028661 [12:10:50]OFD Sender: To server: pG, [12:10:50]CommunicateWithHost lk.salyk.kg:30040 [12:10:50]ConnectInit lk.salyk.kg [12:10:50]Connected sock=7 [12:10:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 77 A1 06 01 93 B4 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 EA 2E 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 59 9A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 9A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 9A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 D0 24 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F5 6F 00 00 35 04 06 00 88 35 C5 BC 1B 8B BD E0 AC 7E 32 16 A9 66 [12:10:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 97 9E 47 00 72 18 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F5 6F 00 00 F4 03 04 00 7A CF 18 66 B6 04 01 00 00 0A BA 58 8D FE D1 2A 1C [12:10:50]CommunicateWithHost err = 0 [12:10:50]CheckOFDResponse [12:10:50]1017 (14) - 77093643461234 [12:10:50]1041 (16) - 0000000000963154 [12:10:50]1040 (4) - 28661 [12:10:50]1012 (4) - 12.04.2024 06:06 [12:10:50]1206 (1) - 0 [12:10:50]OFD Sender: Remove packet 28661 [12:10:50]ProducePacketName [12:10:50]name=ofd_packets/00028661 [12:10:50]NVStorageDeleteData [12:10:51]Write to MH i2c: 01 00 00 EC 79 65 [12:10:51]Write i2c OK [12:10:51]MH_I2C_Read... [12:10:51]Read from MH i2c: 01 [12:10:51]MH_I2C_Read... [12:10:51]Read from MH i2c: 01 07 00 [12:10:51]MH_I2C_Read... [12:10:51]Read from MH i2c: 01 07 00 EC 79 00 00 00 00 00 E7 0C 5F [12:10:51]RasterBufferAndPrint [12:10:51]line [12:10:51]line [12:10:51]line [12:10:51]line [12:10:51]line [12:10:51]written 0, free lines is 3309 [12:10:51]MH_Cut [12:10:51]Write to MH i2c: D1 01 00 F3 79 01 3E [12:10:51]Write i2c OK [12:10:51]MH_I2C_Read... [12:10:51]Read from MH i2c: D1 [12:10:51]MH_I2C_Read... [12:10:51]Read from MH i2c: D1 01 00 [12:10:51]MH_I2C_Read... [12:10:51]Read from MH i2c: D1 01 00 F3 79 00 3D [12:10:51]Write to MH i2c: 01 00 00 F4 79 6D [12:10:51]Write i2c OK [12:10:51]MH_I2C_Read... [12:10:51]OFD Sender: No OFD packet to send [12:10:51]*** Cut start [12:10:51]*** Partial cut [12:10:51]*** CUTSNS_PIN = 1 [12:10:51]*** CUTSNS_PIN = 0 [12:10:52]*** Brake cut motor [12:10:52]Read from MH i2c: 01 [12:10:52]MH_I2C_Read... [12:10:52]*** Stop cut motor [12:10:52]*** Cut end [12:10:52]Read from MH i2c: 01 07 00 [12:10:52]MH_I2C_Read... [12:10:52]Read from MH i2c: 01 07 00 F4 79 00 00 00 00 00 FF 0F 82 [12:10:52]process_action close_receipt done [12:10:52]requested_data is exist [12:10:52]produce_requested_data [12:10:52]requested_item fm.sn is exist - process it [12:10:52]wFMCommunicate request_size=4 [12:10:52]MH_SAM_APDU [12:10:52]CAPDU: 80 11 00 00 [12:10:52]Write to MH i2c: E2 08 00 F5 79 80 11 00 00 00 00 00 00 E8 [12:10:52]Write i2c OK [12:10:52]MH_I2C_Read... [12:10:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:10:52]Read from MH i2c: E2 [12:10:52]MH_I2C_Read... [12:10:52]Read from MH i2c: E2 17 00 [12:10:52]MH_I2C_Read... [12:10:52]Read from MH i2c: E2 17 00 F5 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 37 [12:10:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:10:52]wFMCommunicate OK [12:10:52]requested_item fd.num is exist - process it [12:10:52]SAM_PROTO_GetFieldsCounters [12:10:52]wFMCommunicate request_size=4 [12:10:52]MH_SAM_APDU [12:10:52]CAPDU: 80 13 00 00 [12:10:52]Write to MH i2c: E2 08 00 F6 79 80 13 00 00 00 00 00 00 EB [12:10:52]Write i2c OK [12:10:52]MH_I2C_Read... [12:10:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:10:52]Read from MH i2c: E2 [12:10:52]MH_I2C_Read... [12:10:52]Read from MH i2c: E2 62 00 [12:10:52]MH_I2C_Read... [12:10:52]Read from MH i2c: E2 62 00 F6 79 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 F5 6F 00 00 0E 04 04 00 71 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 48 [12:10:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 F5 6F 00 00 0E 04 04 00 71 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:10:52]wFMCommunicate OK [12:10:52]SAM_PROTO_GetFieldsCounters done [12:10:52]requested_item shift.num is exist - process it [12:10:52]requested_item shift.opened is exist - process it [12:10:52]req_shift_opened [12:10:52]FM_GetShiftState [12:10:52]SAM_PROTO_GetShiftState [12:10:52]wFMCommunicate request_size=4 [12:10:52]MH_SAM_APDU [12:10:52]CAPDU: 80 13 01 00 [12:10:52]Write to MH i2c: E2 08 00 F7 79 80 13 01 00 00 00 00 00 ED [12:10:52]Write i2c OK [12:10:52]MH_I2C_Read... [12:10:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:10:52]Read from MH i2c: E2 [12:10:52]MH_I2C_Read... [12:10:52]Read from MH i2c: E2 0E 00 [12:10:52]MH_I2C_Read... [12:10:52]Read from MH i2c: E2 0E 00 F7 79 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 FE [12:10:52]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [12:10:52]wFMCommunicate OK [12:10:52]SAM_PROTO_GetShiftState done [12:10:52]FM_GetShiftState done [12:10:52]req_shift_opened done [12:10:52]requested_item shift.open_date is exist - process it [12:10:52]req_shift_open_date [12:10:52]req_shift_open_date done [12:10:52]produce_requested_data done [12:10:52]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28661,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [12:10:52]process_action_free close_receipt [12:10:52]json_value_free [12:10:52]json_value_free done [12:10:52]process_json_proto returns [12:10:52]Send response to host [12:10:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28661,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [12:10:52]free response buf [12:10:52]execute_script done [12:10:52]execute_script returns [12:10:52]free content buf [12:10:52]Sock 6.Close socket [12:10:52]Sock 6.Thread stoped [12:10:56]OFD Sender: No OFD packet to send [12:11:01]OFD Sender: No OFD packet to send [12:11:06]OFD Sender: No OFD packet to send [12:11:11]OFD Sender: No OFD packet to send [12:11:16]OFD Sender: No OFD packet to send [12:11:21]OFD Sender: No OFD packet to send [12:11:26]OFD Sender: No OFD packet to send [12:11:31]OFD Sender: No OFD packet to send [12:11:36]OFD Sender: No OFD packet to send [12:11:41]OFD Sender: No OFD packet to send [12:11:46]OFD Sender: No OFD packet to send [12:11:51]OFD Sender: No OFD packet to send [12:11:56]OFD Sender: No OFD packet to send [12:12:01]OFD Sender: No OFD packet to send [12:12:06]OFD Sender: No OFD packet to send [12:12:11]OFD Sender: No OFD packet to send [12:12:16]OFD Sender: No OFD packet to send [12:12:21]OFD Sender: No OFD packet to send [12:12:26]OFD Sender: No OFD packet to send [12:12:30]accept exits with 5 [12:12:30]New connection [12:12:30]New thread 3066498404 created [12:12:30]Thread 3066641764 joined [12:12:30]Waiting for new connection... [12:12:30] Sock 5.Parse request [12:12:30]Sock 5.Check first char [12:12:30]Sock 5.First char is OK [12:12:30]request: POST /json_proto HTTP/1.0 [12:12:30]Method: POST [12:12:30]URL: /json_proto [12:12:30]Method is POST - this is cgi request [12:12:30]url: /json_proto [12:12:30]query_string will be loaded in cgi processing [12:12:30]execute_cgi json_proto POST (null) [12:12:30]execute_cgi path=json_proto method=POST [12:12:30]POST find Content-Length [12:12:30]Host: 172.17.33.3:8080 [12:12:30]Content-Length: 677 [12:12:30]Content-Type: application/json [12:12:30] [12:12:30]POST finish read [12:12:30]Found Content-Length = 677 [12:12:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346994", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 1.560, "sum" : 100.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:12:30]execute_script... [12: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)346994", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 1.560, "sum" : 100.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:12:30]POST & json_proto [12:12:30]process_json_proto [12:12:30]json parsed OK: [12:12:30]protocol is kg_v1.0 [12:12:30]action value=close_receipt [12:12:30]process_action close_receipt [12:12:30]cmd_close_receipt [12:12:30]MH_GetDate [12:12:30]Write to MH i2c: F0 00 00 F8 79 60 [12:12:30]Write i2c OK [12:12:30]MH_I2C_Read... [12:12:30]Read from MH i2c: F0 [12:12:30]MH_I2C_Read... [12:12:30]Read from MH i2c: F0 09 00 [12:12:30]MH_I2C_Read... [12:12:30]Read from MH i2c: F0 09 00 F8 79 00 36 25 19 66 23 5B 8F 65 B5 [12:12:30]GetLastDocTimeStamp 1712923856 [12:12:30]current date 1712923958 [12:12:30]FM_GetShiftState [12:12:30]SAM_PROTO_GetShiftState [12:12:30]wFMCommunicate request_size=4 [12:12:30]MH_SAM_APDU [12:12:30]CAPDU: 80 13 01 00 [12:12:30]Write to MH i2c: E2 08 00 F9 79 80 13 01 00 00 00 00 00 EF [12:12:30]Write i2c OK [12:12:30]MH_I2C_Read... [12:12:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:12:30]Read from MH i2c: E2 [12:12:30]MH_I2C_Read... [12:12:30]Read from MH i2c: E2 0E 00 [12:12:30]MH_I2C_Read... [12:12:30]Read from MH i2c: E2 0E 00 F9 79 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 00 [12:12:30]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [12:12:30]wFMCommunicate OK [12:12:30]SAM_PROTO_GetShiftState done [12:12:30]FM_GetShiftState done [12:12:30]opened in 1712881416 [12:12:30]opened+sec_in_day 1712967816 [12:12:30]quantity*price = 10030 [12:12:30]sum+1 = 10032 [12:12:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 100.00 Внесено: 100.00 СДАЧА: 0.00 НСП 1% : 0.89 НДС 12% : 10.65 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 111 12.04.2024 12:12 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28662 ФПД: 269865153258244 1/tax-web-control/client/api/v1/ticket?date=20240412T121238&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28662&fm=269865153258244&tin=02508201610067®Number=0000138879044617&sum=10000 [12:12:31]StoreToDocumentArchive [12:12:31]shift 113 fd 28662 [12:12:31]save to /storage/0113/doc_00028662 [12:12:31]save last doc name /storage/0113/doc_00028662 to /storage/kkm_last_doc_name [12:12:31]save OK [12:12:31]Clear old archive folders... [12:12:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:12:31]tlvbuf is 01AE5010 [12:12:31]SAM_PROTO_ClearQueue [12:12:31]wFMCommunicate request_size=4 [12:12:31]MH_SAM_APDU [12:12:31]CAPDU: 80 09 00 00 [12:12:31]Write to MH i2c: E2 08 00 06 7A 80 09 00 00 00 00 00 00 F2 [12:12:31]Write i2c OK [12:12:31]MH_I2C_Read... [12:12:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:12:31]Read from MH i2c: E2 [12:12:31]MH_I2C_Read... [12:12:31]Read from MH i2c: E2 03 00 [12:12:31]MH_I2C_Read... [12:12:31]Read from MH i2c: E2 03 00 06 7A 00 90 00 F4 [12:12:31]RAPDU: 90 00 [12:12:31]wFMCommunicate OK [12:12:31]SAM_PROTO_ClearQueue done [12:12:31]KKMCreateOFDPacket [12:12:31]OFDProtocolAddRootSTLVToBuf [12:12:31]FM_MakeSignedData [12:12:31]FM_MakeSignedData [12:12:31]SAM_PROTO_SignData [12:12:31]wFMCommunicate request_size=4 [12:12:31]MH_SAM_APDU [12:12:31]CAPDU: 80 0D 01 02 [12:12:31]Write to MH i2c: E2 08 00 07 7A 80 0D 01 02 00 00 00 00 FA [12:12:31]Write i2c OK [12:12:31]MH_I2C_Read... [12:12:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:12:31]Read from MH i2c: E2 [12:12:31]MH_I2C_Read... [12:12:31]Read from MH i2c: E2 03 00 [12:12:31]MH_I2C_Read... [12:12:31]Read from MH i2c: E2 03 00 07 7A 00 90 00 F5 [12:12:31]RAPDU: 90 00 [12:12:31]wFMCommunicate OK [12:12:31]wFMCommunicate request_size=255 [12:12:31]MH_SAM_APDU [12: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 35 FF 03 08 00 03 18 06 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 2F 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 36 25 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F6 6F 00 00 35 04 06 00 F5 [12:12:31]Write to MH i2c: E2 02 01 08 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 35 FF 03 08 00 03 18 06 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 2F 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 36 25 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F6 6F 00 00 35 04 06 00 F5 00 00 D4 [12:12:31]Write i2c OK [12:12:31]MH_I2C_Read... [12:12:31]OFD Sender: No OFD packet to send [12:12:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:12:31]Read from MH i2c: E2 [12:12:31]MH_I2C_Read... [12:12:31]Read from MH i2c: E2 03 00 [12:12:31]MH_I2C_Read... [12:12:31]Read from MH i2c: E2 03 00 08 7A 00 90 00 F6 [12:12:31]RAPDU: 90 00 [12:12:31]wFMCommunicate OK [12:12:31]wFMCommunicate request_size=10 [12:12:31]MH_SAM_APDU [12:12:31]CAPDU: 80 0D 02 02 05 70 E0 98 E3 04 [12:12:31]Write to MH i2c: E2 0D 00 09 7A 80 0D 02 02 05 00 70 E0 98 E3 04 00 00 D6 [12:12:31]Write i2c OK [12:12:31]MH_I2C_Read... [12:12:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:12:31]Read from MH i2c: E2 [12:12:31]MH_I2C_Read... [12:12:31]Read from MH i2c: E2 03 00 [12:12:31]MH_I2C_Read... [12:12:31]Read from MH i2c: E2 03 00 09 7A 00 90 00 F7 [12:12:31]RAPDU: 90 00 [12:12:31]wFMCommunicate OK [12:12:31]wFMCommunicate request_size=4 [12:12:31]MH_SAM_APDU [12:12:31]CAPDU: 80 0D 03 02 [12:12:31]Write to MH i2c: E2 08 00 0A 7A 80 0D 03 02 00 00 00 00 FF [12:12:31]Write i2c OK [12:12:31]MH_I2C_Read... [12:12:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:12:31]Read from MH i2c: E2 [12:12:31]MH_I2C_Read... [12:12:31]Read from MH i2c: E2 0B 00 [12:12:31]MH_I2C_Read... [12:12:31]Read from MH i2c: E2 0B 00 0A 7A 00 90 FB D7 8B 25 1D 53 19 90 00 9B [12:12:31]RAPDU: 90 FB D7 8B 25 1D 53 19 90 00 [12:12:31]wFMCommunicate OK [12:12:31]SAM_PROTO_SignData done [12:12:31]FM_MakeSignedData done [12:12:31]CreateOFDProtocolMessage [12:12:31]wFMCommunicate request_size=4 [12:12:31]MH_SAM_APDU [12:12:31]CAPDU: 80 11 00 00 [12:12:31]Write to MH i2c: E2 08 00 0B 7A 80 11 00 00 00 00 00 00 FF [12:12:31]Write i2c OK [12:12:31]MH_I2C_Read... [12:12:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:12:31]Read from MH i2c: E2 [12:12:31]MH_I2C_Read... [12:12:31]Read from MH i2c: E2 17 00 [12:12:31]MH_I2C_Read... [12:12:31]Read from MH i2c: E2 17 00 0B 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 4E [12:12:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:12:31]wFMCommunicate OK [12:12:31]CreateOFDProtocolMessage done [12:12:31]OFDSenderStorePacket 28662 [12:12:31]StoreOFDPacket docnum=28662 [12:12:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 FE 4C 07 01 AB 6B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 18 06 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 2F 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 36 25 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F6 6F 00 00 35 04 06 00 F5 70 E0 98 E3 04 90 FB D7 8B 25 1D 53 19 [12:12:31]CheckFolder [12:12:31]dirname=/storage/ofd_packets [12:12:31]CheckFolder done [12:12:31]ProducePacketName [12:12:31]name=ofd_packets/00028662 [12:12:31]NVStorageSaveData ofd_packets/00028662 [12:12:31]File name is /storage/ofd_packets/00028662 [12:12:31]Write 301 bytes [12:12:31]NVStorageSaveData done [12:12:31]OFDSenderStorePacket done [12:12:31]KKMCreateOFDPacket done [12:12:31]NVStorageSaveData kkm_last_timestamp [12:12:31]File name is /storage/kkm_last_timestamp [12:12:31]Write 4 bytes [12:12:31]NVStorageSaveData done [12:12:31]ExternCall_PrintAddStr [12:12:31]wPrintStart [12:12:31]Write to MH i2c: 01 00 00 0C 7A 86 [12:12:31]Write i2c OK [12:12:31]MH_I2C_Read... [12:12:31]Read from MH i2c: 01 [12:12:31]MH_I2C_Read... [12:12:31]Read from MH i2c: 01 07 00 [12:12:31]MH_I2C_Read... [12:12:31]Read from MH i2c: 01 07 00 0C 7A 00 00 00 00 00 FF 0F 9B [12:12:31]RasterBufferAndPrint [12:12:31]line Счет N : (1)346994 [12:12:31]line ИНН: 02508201610067 [12:12:31]line Контрольно-Кассовый Чек [12:12:31]line ПРОДАЖА [12:12:31]line ТРК (МРК, ГНК) : 32 [12:12:31]line Товар: 2710124130 [12:12:31]line Аи-92-К-5 [12:12:31]line 1.560 * 64.30 [12:12:31]line = 100.31 [12:12:31]line НДС 12% НСП 1% [12:12:31]line > о реализуемом товаре [12:12:31]line ОКРУГЛЕНИЕ: -0.31 [12:12:31]line ИТОГО: 100.00 [12:12:31]line Внесено: 100.00 [12:12:31]line СДАЧА: 0.00 [12:12:31]line НСП 1% : 0.89 [12:12:31]line НДС 12% : 10.65 [12:12:31]line Наличными: 100.00 [12:12:31]line Безнал.: 0.00 [12:12:31]line Место: АЗС № 108 "Партнер Нефть" [12:12:31]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [12:12:31]line СНО: Общий режим [12:12:31]line Чек 111 12.04.2024 12:12 [12:12:31]line Смена: 113 ФФД: 1.0 [12:12:31]line ЗНМ: 0300000027 [12:12:31]line РНМ: 0000138879044617 [12:12:31]line Версия ККМ: 001 [12:12:31]line ФМ: 0000000000963154 [12:12:31]line ФД: 28662 [12:12:31]line ФПД: 269865153258244 [12:12:32]line 1/tax-web-control/client/api/v1/ticket?date=20240412T121238&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28662&fm=269865153258244&tin=02508201610067®Number=0000138879044617&sum=10000 [12:12:32]OFD Sender: Processing packet 28662 [packets to send 8, broken 7] [12:12:32]ProducePacketName [12:12:32]name=ofd_packets/00028662 [12:12:32]OFD Sender: To server: pG, [12:12:32]CommunicateWithHost lk.salyk.kg:30040 [12:12:32]ConnectInit lk.salyk.kg [12:12:32]written 0, free lines is 4095 [12:12:32]Connected sock=7 [12:12:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 FE 4C 07 01 AB 6B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 18 06 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 2F 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 36 25 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F6 6F 00 00 35 04 06 00 F5 70 E0 98 E3 04 90 FB D7 8B 25 1D 53 19 [12:12:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 00 28 47 00 23 1F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F6 6F 00 00 F4 03 04 00 E0 CF 18 66 B6 04 01 00 00 E2 61 73 94 80 3D 71 D4 [12:12:32]CommunicateWithHost err = 0 [12:12:32]CheckOFDResponse [12:12:32]1017 (14) - 77093643461234 [12:12:32]1041 (16) - 0000000000963154 [12:12:32]1040 (4) - 28662 [12:12:32]1012 (4) - 12.04.2024 06:08 [12:12:32]1206 (1) - 0 [12:12:32]OFD Sender: Remove packet 28662 [12:12:32]ProducePacketName [12:12:32]name=ofd_packets/00028662 [12:12:32]NVStorageDeleteData [12:12:32]Write to MH i2c: 01 00 00 36 7A B0 [12:12:32]Write i2c OK [12:12:32]MH_I2C_Read... [12:12:32]Read from MH i2c: 01 [12:12:32]MH_I2C_Read... [12:12:32]Read from MH i2c: 01 07 00 [12:12:32]MH_I2C_Read... [12:12:32]Read from MH i2c: 01 07 00 36 7A 00 00 00 00 00 C1 0C 84 [12:12:32]RasterBufferAndPrint [12:12:32]line [12:12:32]line [12:12:32]line [12:12:32]line [12:12:32]line [12:12:32]written 0, free lines is 3269 [12:12:32]MH_Cut [12:12:32]Write to MH i2c: D1 01 00 3D 7A 01 89 [12:12:32]Write i2c OK [12:12:32]MH_I2C_Read... [12:12:32]Read from MH i2c: D1 [12:12:32]MH_I2C_Read... [12:12:32]Read from MH i2c: D1 01 00 [12:12:32]MH_I2C_Read... [12:12:32]Read from MH i2c: D1 01 00 3D 7A 00 88 [12:12:32]Write to MH i2c: 01 00 00 3E 7A B8 [12:12:32]Write i2c OK [12:12:32]MH_I2C_Read... [12:12:32]OFD Sender: No OFD packet to send [12:12:33]*** Cut start [12:12:33]*** Partial cut [12:12:33]*** CUTSNS_PIN = 1 [12:12:33]*** CUTSNS_PIN = 0 [12:12:33]*** Brake cut motor [12:12:33]Read from MH i2c: 01 [12:12:34]MH_I2C_Read... [12:12:34]*** Stop cut motor [12:12:34]*** Cut end [12:12:34]Read from MH i2c: 01 07 00 [12:12:34]MH_I2C_Read... [12:12:34]Read from MH i2c: 01 07 00 3E 7A 00 00 00 00 00 FF 0F CD [12:12:34]process_action close_receipt done [12:12:34]requested_data is exist [12:12:34]produce_requested_data [12:12:34]requested_item fm.sn is exist - process it [12:12:34]wFMCommunicate request_size=4 [12:12:34]MH_SAM_APDU [12:12:34]CAPDU: 80 11 00 00 [12:12:34]Write to MH i2c: E2 08 00 3F 7A 80 11 00 00 00 00 00 00 33 [12:12:34]Write i2c OK [12:12:34]MH_I2C_Read... [12:12:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:12:34]Read from MH i2c: E2 [12:12:34]MH_I2C_Read... [12:12:34]Read from MH i2c: E2 17 00 [12:12:34]MH_I2C_Read... [12:12:34]Read from MH i2c: E2 17 00 3F 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 82 [12:12:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:12:34]wFMCommunicate OK [12:12:34]requested_item fd.num is exist - process it [12:12:34]SAM_PROTO_GetFieldsCounters [12:12:34]wFMCommunicate request_size=4 [12:12:34]MH_SAM_APDU [12:12:34]CAPDU: 80 13 00 00 [12:12:34]Write to MH i2c: E2 08 00 40 7A 80 13 00 00 00 00 00 00 36 [12:12:34]Write i2c OK [12:12:34]MH_I2C_Read... [12:12:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:12:34]Read from MH i2c: E2 [12:12:34]MH_I2C_Read... [12:12:34]Read from MH i2c: E2 62 00 [12:12:34]MH_I2C_Read... [12:12:34]Read from MH i2c: E2 62 00 40 7A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 F6 6F 00 00 0E 04 04 00 71 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 97 [12:12:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 F6 6F 00 00 0E 04 04 00 71 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:12:34]wFMCommunicate OK [12:12:34]SAM_PROTO_GetFieldsCounters done [12:12:34]requested_item shift.num is exist - process it [12:12:34]requested_item shift.opened is exist - process it [12:12:34]req_shift_opened [12:12:34]FM_GetShiftState [12:12:34]SAM_PROTO_GetShiftState [12:12:34]wFMCommunicate request_size=4 [12:12:34]MH_SAM_APDU [12:12:34]CAPDU: 80 13 01 00 [12:12:34]Write to MH i2c: E2 08 00 41 7A 80 13 01 00 00 00 00 00 38 [12:12:34]Write i2c OK [12:12:34]MH_I2C_Read... [12:12:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:12:34]Read from MH i2c: E2 [12:12:34]MH_I2C_Read... [12:12:34]Read from MH i2c: E2 0E 00 [12:12:34]MH_I2C_Read... [12:12:34]Read from MH i2c: E2 0E 00 41 7A 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 49 [12:12:34]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [12:12:34]wFMCommunicate OK [12:12:34]SAM_PROTO_GetShiftState done [12:12:34]FM_GetShiftState done [12:12:34]req_shift_opened done [12:12:34]requested_item shift.open_date is exist - process it [12:12:34]req_shift_open_date [12:12:34]req_shift_open_date done [12:12:34]produce_requested_data done [12:12:34]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28662,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [12:12:34]process_action_free close_receipt [12:12:34]json_value_free [12:12:34]json_value_free done [12:12:34]process_json_proto returns [12:12:34]Send response to host [12:12:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28662,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [12:12:34]free response buf [12:12:34]execute_script done [12:12:34]execute_script returns [12:12:34]free content buf [12:12:34]Sock 5.Close socket [12:12:34]Sock 5.Thread stoped [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:12:58]accept exits with 6 [12:12:58]New connection [12:12:58]New thread 3066641764 created [12:12:58]Thread 3066498404 joined [12:12:58]Waiting for new connection... [12:12:58] Sock 6.Parse request [12:12:58]Sock 6.Check first char [12:12:58]Sock 6.First char is OK [12:12:58]request: POST /json_proto HTTP/1.0 [12:12:58]Method: POST [12:12:58]URL: /json_proto [12:12:58]Method is POST - this is cgi request [12:12:58]url: /json_proto [12:12:58]query_string will be loaded in cgi processing [12:12:58]execute_cgi json_proto POST (null) [12:12:58]execute_cgi path=json_proto method=POST [12:12:58]POST find Content-Length [12:12:58]Host: 172.17.33.3:8080 [12:12:58]Content-Length: 1213 [12:12:58]Content-Type: application/json [12:12:58] [12:12:58]POST finish read [12:12:58]Found Content-Length = 1213 [12:12:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)346993\u000A12.04.2024 11:54\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 25.000 x 64.30\u000A\u0418\u0422\u041E\u0413: 1607.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03277\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:12:58]execute_script... [12:12:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)346993\u000A12.04.2024 11:54\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 25.000 x 64.30\u000A\u0418\u0422\u041E\u0413: 1607.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03277\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:12:58]POST & json_proto [12:12:58]process_json_proto [12:12:58]json parsed OK: [12:12:58]protocol is kg_v1.0 [12:12:58]action value=print_text [12:12:58]process_action print_text [12:12:58]cmd_print_text [12:12:58]ExternCall_PrintAddStr [12:12:58]wPrintStart [12:12:58]Write to MH i2c: 01 00 00 42 7A BC [12:12:58]Write i2c OK [12:12:58]MH_I2C_Read... [12:12:58]Read from MH i2c: 01 [12:12:58]MH_I2C_Read... [12:12:58]Read from MH i2c: 01 07 00 [12:12:58]MH_I2C_Read... [12:12:58]Read from MH i2c: 01 07 00 42 7A 00 00 00 00 00 FF 0F D1 [12:12:58]RasterBufferAndPrint [12:12:58]line *****ТОВАРНЫЙ ЧЕК***** [12:12:58]line АЗС 108 [12:12:58]line Партнер нефть [12:12:58]line 02508201610067 [12:12:58]line Кассир : Джумагулова Н. [12:12:58]line Счет N : (1)346993 [12:12:58]line 12.04.2024 11:54 [12:12:58]line ПРОДАЖА [12:12:58]line ТРК (МРК, ГНК): 42 [12:12:58]line Вид ГСМ : 2710124130 [12:12:58]line Аи-92-К-5 [12:12:58]line 25.000 x 64.30 [12:12:58]line ИТОГ: 1607.50 [12:12:58]line Тип оплаты: Талоны: Топливная Карта [12:12:58]line 03277 [12:12:58]line ______________________ [12:12:58]line (подпись) [12:12:58]written 0, free lines is 4095 [12:12:59]Write to MH i2c: 01 00 00 57 7A D1 [12:12:59]Write i2c OK [12:12:59]MH_I2C_Read... [12:12:59]Read from MH i2c: 01 [12:12:59]MH_I2C_Read... [12:12:59]Read from MH i2c: 01 07 00 [12:12:59]MH_I2C_Read... [12:12:59]Read from MH i2c: 01 07 00 57 7A 00 00 00 00 00 F6 0D DB [12:12:59]RasterBufferAndPrint [12:12:59]line [12:12:59]line [12:12:59]line [12:12:59]line [12:12:59]line [12:12:59]written 0, free lines is 3576 [12:12:59]MH_Cut [12:12:59]Write to MH i2c: D1 01 00 5E 7A 01 AA [12:12:59]Write i2c OK [12:12:59]MH_I2C_Read... [12:12:59]Read from MH i2c: D1 [12:12:59]MH_I2C_Read... [12:12:59]Read from MH i2c: D1 01 00 [12:12:59]MH_I2C_Read... [12:12:59]Read from MH i2c: D1 01 00 5E 7A 00 A9 [12:12:59]Write to MH i2c: 01 00 00 5F 7A D9 [12:12:59]Write i2c OK [12:12:59]MH_I2C_Read... [12:12:59]*** Cut start [12:12:59]*** Partial cut [12:12:59]*** CUTSNS_PIN = 1 [12:12:59]*** CUTSNS_PIN = 0 [12:12:59]*** Brake cut motor [12:13:00]Read from MH i2c: 01 [12:13:00]MH_I2C_Read... [12:13:00]*** Stop cut motor [12:13:00]*** Cut end [12:13:00]Read from MH i2c: 01 07 00 [12:13:00]MH_I2C_Read... [12:13:00]Read from MH i2c: 01 07 00 5F 7A 00 00 00 00 00 FF 0F EE [12:13:00]process_action print_text done [12:13:00]requested_data is exist [12:13:00]produce_requested_data [12:13:00]requested_item fm.sn is exist - process it [12:13:00]wFMCommunicate request_size=4 [12:13:00]MH_SAM_APDU [12:13:00]CAPDU: 80 11 00 00 [12:13:00]Write to MH i2c: E2 08 00 60 7A 80 11 00 00 00 00 00 00 54 [12:13:00]Write i2c OK [12:13:00]MH_I2C_Read... [12:13:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:13:00]Read from MH i2c: E2 [12:13:00]MH_I2C_Read... [12:13:00]Read from MH i2c: E2 17 00 [12:13:00]MH_I2C_Read... [12:13:00]Read from MH i2c: E2 17 00 60 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 A3 [12:13:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:13:00]wFMCommunicate OK [12:13:00]requested_item fd.num is exist - process it [12:13:00]SAM_PROTO_GetFieldsCounters [12:13:00]wFMCommunicate request_size=4 [12:13:00]MH_SAM_APDU [12:13:00]CAPDU: 80 13 00 00 [12:13:00]Write to MH i2c: E2 08 00 61 7A 80 13 00 00 00 00 00 00 57 [12:13:00]Write i2c OK [12:13:00]MH_I2C_Read... [12:13:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:13:00]Read from MH i2c: E2 [12:13:00]MH_I2C_Read... [12:13:00]Read from MH i2c: E2 62 00 [12:13:00]MH_I2C_Read... [12:13:00]Read from MH i2c: E2 62 00 61 7A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 F6 6F 00 00 0E 04 04 00 71 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 B8 [12:13:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 F6 6F 00 00 0E 04 04 00 71 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:13:00]wFMCommunicate OK [12:13:00]SAM_PROTO_GetFieldsCounters done [12:13:00]requested_item shift.num is exist - process it [12:13:00]requested_item shift.opened is exist - process it [12:13:00]req_shift_opened [12:13:00]FM_GetShiftState [12:13:00]SAM_PROTO_GetShiftState [12:13:00]wFMCommunicate request_size=4 [12:13:00]MH_SAM_APDU [12:13:00]CAPDU: 80 13 01 00 [12:13:00]Write to MH i2c: E2 08 00 62 7A 80 13 01 00 00 00 00 00 59 [12:13:00]Write i2c OK [12:13:00]MH_I2C_Read... [12:13:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:13:00]Read from MH i2c: E2 [12:13:00]MH_I2C_Read... [12:13:00]Read from MH i2c: E2 0E 00 [12:13:00]MH_I2C_Read... [12:13:00]Read from MH i2c: E2 0E 00 62 7A 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 6A [12:13:00]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [12:13:00]wFMCommunicate OK [12:13:00]SAM_PROTO_GetShiftState done [12:13:00]FM_GetShiftState done [12:13:00]req_shift_opened done [12:13:00]requested_item shift.open_date is exist - process it [12:13:00]req_shift_open_date [12:13:00]req_shift_open_date done [12:13:00]produce_requested_data done [12:13:00]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28662,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [12:13:00]process_action_free print_text [12:13:00]json_value_free [12:13:00]json_value_free done [12:13:00]process_json_proto returns [12:13:00]Send response to host [12:13:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28662,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [12:13:00]free response buf [12:13:00]execute_script done [12:13:00]execute_script returns [12:13:00]free content buf [12:13:00]Sock 6.Close socket [12:13:00]Sock 6.Thread stoped [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:31]accept exits with 5 [12:13:31]New connection [12:13:31]New thread 3066498404 created [12:13:31]Thread 3066641764 joined [12:13:31]Waiting for new connection... [12:13:31] Sock 5.Parse request [12:13:31]Sock 5.Check first char [12:13:31]Sock 5.First char is OK [12:13:31]request: POST /json_proto HTTP/1.0 [12:13:31]Method: POST [12:13:31]URL: /json_proto [12:13:31]Method is POST - this is cgi request [12:13:31]url: /json_proto [12:13:31]query_string will be loaded in cgi processing [12:13:31]execute_cgi json_proto POST (null) [12:13:31]execute_cgi path=json_proto method=POST [12:13:31]POST find Content-Length [12:13:31]Host: 172.17.33.3:8080 [12:13:31]Content-Length: 682 [12:13:31]Content-Type: application/json [12:13:31] [12:13:31]POST finish read [12:13:31]Found Content-Length = 682 [12:13:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346992", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 29.230, "sum" : 961.67, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1605.00, "total" : 961.00, "payments": [ { "type": 0, "sum" : 961.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:13:31]execute_script... [12:13:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346992", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 29.230, "sum" : 961.67, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1605.00, "total" : 961.00, "payments": [ { "type": 0, "sum" : 961.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:13:31]POST & json_proto [12:13:31]process_json_proto [12:13:31]json parsed OK: [12:13:31]protocol is kg_v1.0 [12:13:31]action value=close_receipt [12:13:31]process_action close_receipt [12:13:31]cmd_close_receipt [12:13:31]MH_GetDate [12:13:31]Write to MH i2c: F0 00 00 63 7A CC [12:13:31]Write i2c OK [12:13:31]MH_I2C_Read... [12:13:31]Read from MH i2c: F0 [12:13:31]MH_I2C_Read... [12:13:31]Read from MH i2c: F0 09 00 [12:13:31]MH_I2C_Read... [12:13:31]Read from MH i2c: F0 09 00 63 7A 00 73 25 19 66 23 5B 8F 65 5E [12:13:31]GetLastDocTimeStamp 1712923958 [12:13:31]current date 1712924019 [12:13:31]FM_GetShiftState [12:13:31]SAM_PROTO_GetShiftState [12:13:31]wFMCommunicate request_size=4 [12:13:31]MH_SAM_APDU [12:13:31]CAPDU: 80 13 01 00 [12:13:31]Write to MH i2c: E2 08 00 64 7A 80 13 01 00 00 00 00 00 5B [12:13:31]Write i2c OK [12:13:31]MH_I2C_Read... [12:13:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:13:31]Read from MH i2c: E2 [12:13:31]MH_I2C_Read... [12:13:31]Read from MH i2c: E2 0E 00 [12:13:31]MH_I2C_Read... [12:13:31]Read from MH i2c: E2 0E 00 64 7A 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 6C [12:13:31]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [12:13:31]wFMCommunicate OK [12:13:31]SAM_PROTO_GetShiftState done [12:13:31]FM_GetShiftState done [12:13:31]opened in 1712881416 [12:13:31]opened+sec_in_day 1712967816 [12:13:31]quantity*price = 96166 [12:13:31]sum+1 = 96168 [12:13:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.67 ИТОГО: 961.00 Внесено: 1605.00 СДАЧА: 644.00 НСП 1% : 8.51 НДС 12% : 102.12 Наличными: 961.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 112 12.04.2024 12:13 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28663 ФПД: 150197832697809 1/tax-web-control/client/api/v1/ticket?date=20240412T121339&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28663&fm=150197832697809&tin=02508201610067®Number=0000138879044617&sum=96100 [12:13:32]StoreToDocumentArchive [12:13:32]shift 113 fd 28663 [12:13:32]save to /storage/0113/doc_00028663 [12:13:32]save last doc name /storage/0113/doc_00028663 to /storage/kkm_last_doc_name [12:13:32]save OK [12:13:32]Clear old archive folders... [12:13:32]ProcessDocumentItem done err = 0, tmpTLVsize=250 [12:13:32]tlvbuf is 01AB6870 [12:13:32]SAM_PROTO_ClearQueue [12:13:32]wFMCommunicate request_size=4 [12:13:32]MH_SAM_APDU [12:13:32]CAPDU: 80 09 00 00 [12:13:32]Write to MH i2c: E2 08 00 71 7A 80 09 00 00 00 00 00 00 5D [12:13:32]Write i2c OK [12:13:32]MH_I2C_Read... [12:13:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:13:32]Read from MH i2c: E2 [12:13:32]MH_I2C_Read... [12:13:32]Read from MH i2c: E2 03 00 [12:13:32]MH_I2C_Read... [12:13:32]Read from MH i2c: E2 03 00 71 7A 00 90 00 5F [12:13:32]RAPDU: 90 00 [12:13:32]wFMCommunicate OK [12:13:32]SAM_PROTO_ClearQueue done [12:13:32]KKMCreateOFDPacket [12:13:32]OFDProtocolAddRootSTLVToBuf [12:13:32]FM_MakeSignedData [12:13:32]FM_MakeSignedData [12:13:32]SAM_PROTO_SignData [12:13:32]wFMCommunicate request_size=4 [12:13:32]MH_SAM_APDU [12:13:32]CAPDU: 80 0D 01 02 [12:13:32]Write to MH i2c: E2 08 00 72 7A 80 0D 01 02 00 00 00 00 65 [12:13:32]Write i2c OK [12:13:32]MH_I2C_Read... [12:13:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:13:32]Read from MH i2c: E2 [12:13:32]MH_I2C_Read... [12:13:32]Read from MH i2c: E2 03 00 [12:13:32]MH_I2C_Read... [12:13:32]Read from MH i2c: E2 03 00 72 7A 00 90 00 60 [12:13:32]RAPDU: 90 00 [12:13:32]wFMCommunicate OK [12:13:32]wFMCommunicate request_size=255 [12:13:32]MH_SAM_APDU [12:13:32]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 2E 72 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 A7 77 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 77 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 53 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 27 00 00 00 00 07 04 06 00 64 77 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 73 25 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F7 6F 00 00 35 04 06 00 88 9A [12:13:32]Write to MH i2c: E2 02 01 73 7A 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 2E 72 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 A7 77 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 77 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 53 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 27 00 00 00 00 07 04 06 00 64 77 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 73 25 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F7 6F 00 00 35 04 06 00 88 9A 00 00 7A [12:13:32]Write i2c OK [12:13:32]MH_I2C_Read... [12:13:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:13:32]Read from MH i2c: E2 [12:13:32]MH_I2C_Read... [12:13:32]Read from MH i2c: E2 03 00 [12:13:32]MH_I2C_Read... [12:13:32]Read from MH i2c: E2 03 00 73 7A 00 90 00 61 [12:13:32]RAPDU: 90 00 [12:13:32]wFMCommunicate OK [12:13:32]wFMCommunicate request_size=9 [12:13:32]MH_SAM_APDU [12:13:32]CAPDU: 80 0D 02 02 04 A8 76 C7 D1 [12:13:32]Write to MH i2c: E2 0C 00 74 7A 80 0D 02 02 04 00 A8 76 C7 D1 00 00 26 [12:13:32]Write i2c OK [12:13:32]MH_I2C_Read... [12:13:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:13:32]Read from MH i2c: E2 [12:13:32]MH_I2C_Read... [12:13:32]Read from MH i2c: E2 03 00 [12:13:32]MH_I2C_Read... [12:13:32]Read from MH i2c: E2 03 00 74 7A 00 90 00 62 [12:13:32]RAPDU: 90 00 [12:13:32]wFMCommunicate OK [12:13:32]wFMCommunicate request_size=4 [12:13:32]MH_SAM_APDU [12:13:32]CAPDU: 80 0D 03 02 [12:13:32]Write to MH i2c: E2 08 00 75 7A 80 0D 03 02 00 00 00 00 6A [12:13:32]Write i2c OK [12:13:32]MH_I2C_Read... [12:13:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:13:32]Read from MH i2c: E2 [12:13:32]MH_I2C_Read... [12:13:32]Read from MH i2c: E2 0B 00 [12:13:32]MH_I2C_Read... [12:13:32]Read from MH i2c: E2 0B 00 75 7A 00 4D F7 33 E4 EC 6C E9 4B 90 00 52 [12:13:32]RAPDU: 4D F7 33 E4 EC 6C E9 4B 90 00 [12:13:32]wFMCommunicate OK [12:13:32]SAM_PROTO_SignData done [12:13:32]FM_MakeSignedData done [12:13:32]CreateOFDProtocolMessage [12:13:32]wFMCommunicate request_size=4 [12:13:32]MH_SAM_APDU [12:13:32]CAPDU: 80 11 00 00 [12:13:32]Write to MH i2c: E2 08 00 76 7A 80 11 00 00 00 00 00 00 6A [12:13:32]Write i2c OK [12:13:32]MH_I2C_Read... [12:13:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:13:32]Read from MH i2c: E2 [12:13:32]MH_I2C_Read... [12:13:32]Read from MH i2c: E2 17 00 [12:13:32]MH_I2C_Read... [12:13:32]Read from MH i2c: E2 17 00 76 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 B9 [12:13:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:13:32]wFMCommunicate OK [12:13:32]CreateOFDProtocolMessage done [12:13:32]OFDSenderStorePacket 28663 [12:13:32]StoreOFDPacket docnum=28663 [12:13:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 89 6A 06 01 73 95 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 2E 72 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 A7 77 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 77 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 53 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 27 00 00 00 00 07 04 06 00 64 77 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 73 25 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F7 6F 00 00 35 04 06 00 88 9A A8 76 C7 D1 4D F7 33 E4 EC 6C E9 4B [12:13:32]CheckFolder [12:13:32]dirname=/storage/ofd_packets [12:13:32]CheckFolder done [12:13:32]ProducePacketName [12:13:32]name=ofd_packets/00028663 [12:13:32]NVStorageSaveData ofd_packets/00028663 [12:13:32]File name is /storage/ofd_packets/00028663 [12:13:32]Write 300 bytes [12:13:32]NVStorageSaveData done [12:13:32]OFDSenderStorePacket done [12:13:32]KKMCreateOFDPacket done [12:13:32]NVStorageSaveData kkm_last_timestamp [12:13:32]File name is /storage/kkm_last_timestamp [12:13:32]Write 4 bytes [12:13:32]NVStorageSaveData done [12:13:32]ExternCall_PrintAddStr [12:13:32]wPrintStart [12:13:32]Write to MH i2c: 01 00 00 77 7A F1 [12:13:32]Write i2c OK [12:13:32]MH_I2C_Read... [12:13:32]Read from MH i2c: 01 [12:13:32]MH_I2C_Read... [12:13:32]Read from MH i2c: 01 07 00 [12:13:32]MH_I2C_Read... [12:13:32]Read from MH i2c: 01 07 00 77 7A 00 00 00 00 00 FF 0F 06 [12:13:32]RasterBufferAndPrint [12:13:32]line Счет N : (1)346992 [12:13:32]line ИНН: 02508201610067 [12:13:32]line Контрольно-Кассовый Чек [12:13:32]line ПРОДАЖА [12:13:32]line ТРК (МРК, ГНК) : 71 [12:13:32]line Товар: 2711129700 [12:13:32]line ГАЗ-К-5 [12:13:32]line 29.230 * 32.90 [12:13:32]line = 961.67 [12:13:32]line НДС 12% НСП 1% [12:13:32]line > о реализуемом товаре [12:13:32]line ОКРУГЛЕНИЕ: -0.67 [12:13:32]line ИТОГО: 961.00 [12:13:32]line Внесено: 1605.00 [12:13:32]line СДАЧА: 644.00 [12:13:32]line НСП 1% : 8.51 [12:13:32]line НДС 12% : 102.12 [12:13:32]line Наличными: 961.00 [12:13:32]line Безнал.: 0.00 [12:13:32]line Место: АЗС № 108 "Партнер Нефть" [12:13:32]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [12:13:32]line СНО: Общий режим [12:13:32]line Чек 112 12.04.2024 12:13 [12:13:32]line Смена: 113 ФФД: 1.0 [12:13:32]line ЗНМ: 0300000027 [12:13:32]line РНМ: 0000138879044617 [12:13:32]line Версия ККМ: 001 [12:13:32]line ФМ: 0000000000963154 [12:13:32]line ФД: 28663 [12:13:32]line ФПД: 150197832697809 [12:13:33]line 1/tax-web-control/client/api/v1/ticket?date=20240412T121339&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28663&fm=150197832697809&tin=02508201610067®Number=0000138879044617&sum=96100 [12:13:33]OFD Sender: Processing packet 28663 [packets to send 8, broken 7] [12:13:33]ProducePacketName [12:13:33]name=ofd_packets/00028663 [12:13:33]OFD Sender: To server: pG, [12:13:33]CommunicateWithHost lk.salyk.kg:30040 [12:13:33]ConnectInit lk.salyk.kg [12:13:33]written 0, free lines is 4095 [12:13:33]Connected sock=7 [12:13:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 89 6A 06 01 73 95 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 2E 72 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 A7 77 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 77 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 53 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 27 00 00 00 00 07 04 06 00 64 77 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 73 25 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F7 6F 00 00 35 04 06 00 88 9A A8 76 C7 D1 4D F7 33 E4 EC 6C E9 4B [12:13:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 9B 51 47 00 D9 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 30 39 36 33 31 35 34 10 04 04 00 F7 6F 00 00 F4 03 04 00 1D D0 18 66 B6 04 01 00 00 DE 08 9A C4 6E A3 4B 76 [12:13:33]CommunicateWithHost err = 0 [12:13:33]CheckOFDResponse [12:13:33]1017 (14) - 77093643461234 [12:13:33]1041 (16) - 0000000000963154 [12:13:33]1040 (4) - 28663 [12:13:33]1012 (4) - 12.04.2024 06:09 [12:13:33]1206 (1) - 0 [12:13:33]OFD Sender: Remove packet 28663 [12:13:33]ProducePacketName [12:13:33]name=ofd_packets/00028663 [12:13:33]NVStorageDeleteData [12:13:33]Write to MH i2c: 01 00 00 A1 7A 1B [12:13:33]Write i2c OK [12:13:33]MH_I2C_Read... [12:13:33]Read from MH i2c: 01 [12:13:33]MH_I2C_Read... [12:13:33]Read from MH i2c: 01 07 00 [12:13:33]MH_I2C_Read... [12:13:33]Read from MH i2c: 01 07 00 A1 7A 00 00 00 00 00 CD 0C FB [12:13:33]RasterBufferAndPrint [12:13:33]line [12:13:33]line [12:13:33]line [12:13:33]line [12:13:33]line [12:13:33]written 0, free lines is 3284 [12:13:33]MH_Cut [12:13:33]Write to MH i2c: D1 01 00 A8 7A 01 F4 [12:13:33]Write i2c OK [12:13:33]MH_I2C_Read... [12:13:33]Read from MH i2c: D1 [12:13:33]MH_I2C_Read... [12:13:33]Read from MH i2c: D1 01 00 [12:13:33]MH_I2C_Read... [12:13:33]Read from MH i2c: D1 01 00 A8 7A 00 F3 [12:13:33]Write to MH i2c: 01 00 00 A9 7A 23 [12:13:33]Write i2c OK [12:13:33]MH_I2C_Read... [12:13:34]OFD Sender: No OFD packet to send [12:13:34]*** Cut start [12:13:34]*** Partial cut [12:13:34]*** CUTSNS_PIN = 1 [12:13:34]*** CUTSNS_PIN = 0 [12:13:34]*** Brake cut motor [12:13:35]Read from MH i2c: 01 [12:13:35]MH_I2C_Read... [12:13:35]*** Stop cut motor [12:13:35]*** Cut end [12:13:35]Read from MH i2c: 01 07 00 [12:13:35]MH_I2C_Read... [12:13:35]Read from MH i2c: 01 07 00 A9 7A 00 00 00 00 00 FF 0F 38 [12:13:35]process_action close_receipt done [12:13:35]requested_data is exist [12:13:35]produce_requested_data [12:13:35]requested_item fm.sn is exist - process it [12:13:35]wFMCommunicate request_size=4 [12:13:35]MH_SAM_APDU [12:13:35]CAPDU: 80 11 00 00 [12:13:35]Write to MH i2c: E2 08 00 AA 7A 80 11 00 00 00 00 00 00 9E [12:13:35]Write i2c OK [12:13:35]MH_I2C_Read... [12:13:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:13:35]Read from MH i2c: E2 [12:13:35]MH_I2C_Read... [12:13:35]Read from MH i2c: E2 17 00 [12:13:35]MH_I2C_Read... [12:13:35]Read from MH i2c: E2 17 00 AA 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 ED [12:13:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:13:35]wFMCommunicate OK [12:13:35]requested_item fd.num is exist - process it [12:13:35]SAM_PROTO_GetFieldsCounters [12:13:35]wFMCommunicate request_size=4 [12:13:35]MH_SAM_APDU [12:13:35]CAPDU: 80 13 00 00 [12:13:35]Write to MH i2c: E2 08 00 AB 7A 80 13 00 00 00 00 00 00 A1 [12:13:35]Write i2c OK [12:13:35]MH_I2C_Read... [12:13:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:13:35]Read from MH i2c: E2 [12:13:35]MH_I2C_Read... [12:13:35]Read from MH i2c: E2 62 00 [12:13:35]MH_I2C_Read... [12:13:35]Read from MH i2c: E2 62 00 AB 7A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 F7 6F 00 00 0E 04 04 00 71 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 06 [12:13:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 F7 6F 00 00 0E 04 04 00 71 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:13:35]wFMCommunicate OK [12:13:35]SAM_PROTO_GetFieldsCounters done [12:13:35]requested_item shift.num is exist - process it [12:13:35]requested_item shift.opened is exist - process it [12:13:35]req_shift_opened [12:13:35]FM_GetShiftState [12:13:35]SAM_PROTO_GetShiftState [12:13:35]wFMCommunicate request_size=4 [12:13:35]MH_SAM_APDU [12:13:35]CAPDU: 80 13 01 00 [12:13:35]Write to MH i2c: E2 08 00 AC 7A 80 13 01 00 00 00 00 00 A3 [12:13:35]Write i2c OK [12:13:35]MH_I2C_Read... [12:13:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:13:35]Read from MH i2c: E2 [12:13:35]MH_I2C_Read... [12:13:35]Read from MH i2c: E2 0E 00 [12:13:35]MH_I2C_Read... [12:13:35]Read from MH i2c: E2 0E 00 AC 7A 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 B4 [12:13:35]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [12:13:35]wFMCommunicate OK [12:13:35]SAM_PROTO_GetShiftState done [12:13:35]FM_GetShiftState done [12:13:35]req_shift_opened done [12:13:35]requested_item shift.open_date is exist - process it [12:13:35]req_shift_open_date [12:13:35]req_shift_open_date done [12:13:35]produce_requested_data done [12:13:35]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28663,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [12:13:35]process_action_free close_receipt [12:13:35]json_value_free [12:13:35]json_value_free done [12:13:35]process_json_proto returns [12:13:35]Send response to host [12:13:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28663,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [12:13:35]free response buf [12:13:35]execute_script done [12:13:35]execute_script returns [12:13:35]free content buf [12:13:35]Sock 5.Close socket [12:13:35]Sock 5.Thread stoped [12:13:39]OFD Sender: No OFD packet to send [12:13:44]OFD Sender: No OFD packet to send [12:13:49]OFD Sender: No OFD packet to send [12:13:54]OFD Sender: No OFD packet to send [12:13:59]OFD Sender: No OFD packet to send [12:14:04]OFD Sender: No OFD packet to send [12:14:09]OFD Sender: No OFD packet to send [12:14:14]OFD Sender: No OFD packet to send [12:14:19]OFD Sender: No OFD packet to send [12:14:24]OFD Sender: No OFD packet to send [12:14:29]OFD Sender: No OFD packet to send [12:14:34]OFD Sender: No OFD packet to send [12:14:39]OFD Sender: No OFD packet to send [12:14:44]OFD Sender: No OFD packet to send [12:14:49]OFD Sender: No OFD packet to send [12:14:54]OFD Sender: No OFD packet to send [12:14:59]OFD Sender: No OFD packet to send [12:15:04]OFD Sender: No OFD packet to send [12:15:09]OFD Sender: No OFD packet to send [12:15:14]OFD Sender: No OFD packet to send [12:15:14]accept exits with 6 [12:15:14]New connection [12:15:14]New thread 3066641764 created [12:15:14]Thread 3066498404 joined [12:15:14]Waiting for new connection... [12:15:14] Sock 6.Parse request [12:15:14]Sock 6.Check first char [12:15:14]Sock 6.First char is OK [12:15:14]request: POST /json_proto HTTP/1.0 [12:15:14]Method: POST [12:15:14]URL: /json_proto [12:15:14]Method is POST - this is cgi request [12:15:14]url: /json_proto [12:15:14]query_string will be loaded in cgi processing [12:15:14]execute_cgi json_proto POST (null) [12:15:14]execute_cgi path=json_proto method=POST [12:15:14]POST find Content-Length [12:15:14]Host: 172.17.33.3:8080 [12:15:14]Content-Length: 677 [12:15:14]Content-Type: application/json [12:15:14] [12:15:14]POST finish read [12:15:14]Found Content-Length = 677 [12:15:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346996", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 7.780, "sum" : 500.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:15:14]execute_script... [12:15: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)346996", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 7.780, "sum" : 500.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:15:14]POST & json_proto [12:15:14]process_json_proto [12:15:14]json parsed OK: [12:15:14]protocol is kg_v1.0 [12:15:14]action value=close_receipt [12:15:14]process_action close_receipt [12:15:14]cmd_close_receipt [12:15:14]MH_GetDate [12:15:14]Write to MH i2c: F0 00 00 AD 7A 16 [12:15:14]Write i2c OK [12:15:14]MH_I2C_Read... [12:15:14]Read from MH i2c: F0 [12:15:14]MH_I2C_Read... [12:15:14]Read from MH i2c: F0 09 00 [12:15:14]MH_I2C_Read... [12:15:14]Read from MH i2c: F0 09 00 AD 7A 00 DA 25 19 66 23 5B 8F 65 0F [12:15:14]GetLastDocTimeStamp 1712924019 [12:15:14]current date 1712924122 [12:15:14]FM_GetShiftState [12:15:14]SAM_PROTO_GetShiftState [12:15:14]wFMCommunicate request_size=4 [12:15:14]MH_SAM_APDU [12:15:14]CAPDU: 80 13 01 00 [12:15:14]Write to MH i2c: E2 08 00 AE 7A 80 13 01 00 00 00 00 00 A5 [12:15:14]Write i2c OK [12:15:14]MH_I2C_Read... [12:15:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:15:14]Read from MH i2c: E2 [12:15:14]MH_I2C_Read... [12:15:14]Read from MH i2c: E2 0E 00 [12:15:14]MH_I2C_Read... [12:15:14]Read from MH i2c: E2 0E 00 AE 7A 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 B6 [12:15:14]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [12:15:14]wFMCommunicate OK [12:15:14]SAM_PROTO_GetShiftState done [12:15:14]FM_GetShiftState done [12:15:14]opened in 1712881416 [12:15:14]opened+sec_in_day 1712967816 [12:15:14]quantity*price = 50025 [12:15:14]sum+1 = 50026 [12:15:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 113 12.04.2024 12:15 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28664 ФПД: 534923348162 1/tax-web-control/client/api/v1/ticket?date=20240412T121522&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28664&fm=534923348162&tin=02508201610067®Number=0000138879044617&sum=50000 [12:15:15]StoreToDocumentArchive [12:15:15]shift 113 fd 28664 [12:15:15]save to /storage/0113/doc_00028664 [12:15:15]save last doc name /storage/0113/doc_00028664 to /storage/kkm_last_doc_name [12:15:15]save OK [12:15:15]Clear old archive folders... [12:15:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:15:15]tlvbuf is 01AEED10 [12:15:15]SAM_PROTO_ClearQueue [12:15:15]wFMCommunicate request_size=4 [12:15:15]MH_SAM_APDU [12:15:15]CAPDU: 80 09 00 00 [12:15:15]Write to MH i2c: E2 08 00 BB 7A 80 09 00 00 00 00 00 00 A7 [12:15:15]Write i2c OK [12:15:15]MH_I2C_Read... [12:15:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:15:15]Read from MH i2c: E2 [12:15:15]MH_I2C_Read... [12:15:15]Read from MH i2c: E2 03 00 [12:15:15]MH_I2C_Read... [12:15:15]Read from MH i2c: E2 03 00 BB 7A 00 90 00 A9 [12:15:15]RAPDU: 90 00 [12:15:15]wFMCommunicate OK [12:15:15]SAM_PROTO_ClearQueue done [12:15:15]KKMCreateOFDPacket [12:15:15]OFDProtocolAddRootSTLVToBuf [12:15:15]FM_MakeSignedData [12:15:15]FM_MakeSignedData [12:15:15]SAM_PROTO_SignData [12:15:15]wFMCommunicate request_size=4 [12:15:15]MH_SAM_APDU [12:15:15]CAPDU: 80 0D 01 02 [12:15:15]Write to MH i2c: E2 08 00 BC 7A 80 0D 01 02 00 00 00 00 AF [12:15:15]Write i2c OK [12:15:15]MH_I2C_Read... [12:15:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:15:15]Read from MH i2c: E2 [12:15:15]MH_I2C_Read... [12:15:15]Read from MH i2c: E2 03 00 [12:15:15]MH_I2C_Read... [12:15:15]Read from MH i2c: E2 03 00 BC 7A 00 90 00 AA [12:15:15]RAPDU: 90 00 [12:15:15]wFMCommunicate OK [12:15:15]wFMCommunicate request_size=255 [12:15:15]MH_SAM_APDU [12:15:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 DA 25 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F8 6F 00 00 35 04 06 00 00 [12:15:15]Write to MH i2c: E2 02 01 BD 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 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 DA 25 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F8 6F 00 00 35 04 06 00 00 00 00 38 [12:15:15]Write i2c OK [12:15:15]MH_I2C_Read... [12:15:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:15:15]Read from MH i2c: E2 [12:15:15]MH_I2C_Read... [12:15:15]Read from MH i2c: E2 03 00 [12:15:15]MH_I2C_Read... [12:15:15]Read from MH i2c: E2 03 00 BD 7A 00 90 00 AB [12:15:15]RAPDU: 90 00 [12:15:15]wFMCommunicate OK [12:15:15]wFMCommunicate request_size=10 [12:15:15]MH_SAM_APDU [12:15:15]CAPDU: 80 0D 02 02 05 7C 8B EA 88 C2 [12:15:15]Write to MH i2c: E2 0D 00 BE 7A 80 0D 02 02 05 00 7C 8B EA 88 C2 00 00 F7 [12:15:15]Write i2c OK [12:15:15]MH_I2C_Read... [12:15:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:15:15]Read from MH i2c: E2 [12:15:15]MH_I2C_Read... [12:15:15]Read from MH i2c: E2 03 00 [12:15:15]MH_I2C_Read... [12:15:15]Read from MH i2c: E2 03 00 BE 7A 00 90 00 AC [12:15:15]RAPDU: 90 00 [12:15:15]wFMCommunicate OK [12:15:15]wFMCommunicate request_size=4 [12:15:15]MH_SAM_APDU [12:15:15]CAPDU: 80 0D 03 02 [12:15:15]Write to MH i2c: E2 08 00 BF 7A 80 0D 03 02 00 00 00 00 B4 [12:15:15]Write i2c OK [12:15:15]MH_I2C_Read... [12:15:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:15:15]Read from MH i2c: E2 [12:15:15]MH_I2C_Read... [12:15:15]Read from MH i2c: E2 0B 00 [12:15:15]MH_I2C_Read... [12:15:15]Read from MH i2c: E2 0B 00 BF 7A 00 3A 63 7A D6 C6 08 19 32 90 00 BB [12:15:15]RAPDU: 3A 63 7A D6 C6 08 19 32 90 00 [12:15:15]wFMCommunicate OK [12:15:15]SAM_PROTO_SignData done [12:15:15]FM_MakeSignedData done [12:15:15]CreateOFDProtocolMessage [12:15:15]wFMCommunicate request_size=4 [12:15:15]MH_SAM_APDU [12:15:15]CAPDU: 80 11 00 00 [12:15:15]Write to MH i2c: E2 08 00 C0 7A 80 11 00 00 00 00 00 00 B4 [12:15:15]Write i2c OK [12:15:15]MH_I2C_Read... [12:15:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:15:15]Read from MH i2c: E2 [12:15:15]MH_I2C_Read... [12:15:15]Read from MH i2c: E2 17 00 [12:15:15]MH_I2C_Read... [12:15:15]Read from MH i2c: E2 17 00 C0 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 03 [12:15:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:15:15]wFMCommunicate OK [12:15:15]CreateOFDProtocolMessage done [12:15:15]OFDSenderStorePacket 28664 [12:15:15]StoreOFDPacket docnum=28664 [12:15:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 00 81 07 01 61 09 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 DA 25 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F8 6F 00 00 35 04 06 00 00 7C 8B EA 88 C2 3A 63 7A D6 C6 08 19 32 [12:15:15]CheckFolder [12:15:15]dirname=/storage/ofd_packets [12:15:15]CheckFolder done [12:15:15]ProducePacketName [12:15:15]name=ofd_packets/00028664 [12:15:15]NVStorageSaveData ofd_packets/00028664 [12:15:15]File name is /storage/ofd_packets/00028664 [12:15:15]Write 301 bytes [12:15:15]NVStorageSaveData done [12:15:15]OFDSenderStorePacket done [12:15:15]KKMCreateOFDPacket done [12:15:15]NVStorageSaveData kkm_last_timestamp [12:15:15]File name is /storage/kkm_last_timestamp [12:15:15]Write 4 bytes [12:15:15]NVStorageSaveData done [12:15:15]ExternCall_PrintAddStr [12:15:15]wPrintStart [12:15:15]Write to MH i2c: 01 00 00 C1 7A 3B [12:15:15]Write i2c OK [12:15:15]MH_I2C_Read... [12:15:15]Read from MH i2c: 01 [12:15:15]MH_I2C_Read... [12:15:15]Read from MH i2c: 01 07 00 [12:15:15]MH_I2C_Read... [12:15:15]Read from MH i2c: 01 07 00 C1 7A 00 00 00 00 00 FF 0F 50 [12:15:15]RasterBufferAndPrint [12:15:15]line Счет N : (1)346996 [12:15:15]line ИНН: 02508201610067 [12:15:15]line Контрольно-Кассовый Чек [12:15:15]line ПРОДАЖА [12:15:15]line ТРК (МРК, ГНК) : 32 [12:15:15]line Товар: 2710124130 [12:15:15]line Аи-92-К-5 [12:15:15]line 7.780 * 64.30 [12:15:15]line = 500.25 [12:15:15]line НДС 12% НСП 1% [12:15:15]line > о реализуемом товаре [12:15:15]line ОКРУГЛЕНИЕ: -0.25 [12:15:15]line ИТОГО: 500.00 [12:15:15]line Внесено: 500.00 [12:15:15]line СДАЧА: 0.00 [12:15:15]line НСП 1% : 4.43 [12:15:15]line НДС 12% : 53.12 [12:15:15]line Наличными: 500.00 [12:15:15]line Безнал.: 0.00 [12:15:15]line Место: АЗС № 108 "Партнер Нефть" [12:15:15]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [12:15:15]line СНО: Общий режим [12:15:15]line Чек 113 12.04.2024 12:15 [12:15:15]line Смена: 113 ФФД: 1.0 [12:15:15]line ЗНМ: 0300000027 [12:15:15]line РНМ: 0000138879044617 [12:15:15]line Версия ККМ: 001 [12:15:15]line ФМ: 0000000000963154 [12:15:16]line ФД: 28664 [12:15:16]line ФПД: 534923348162 [12:15:16]line 1/tax-web-control/client/api/v1/ticket?date=20240412T121522&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28664&fm=534923348162&tin=02508201610067®Number=0000138879044617&sum=50000 [12:15:16]OFD Sender: Processing packet 28664 [packets to send 8, broken 7] [12:15:16]ProducePacketName [12:15:16]name=ofd_packets/00028664 [12:15:16]OFD Sender: To server: pG, [12:15:16]CommunicateWithHost lk.salyk.kg:30040 [12:15:16]ConnectInit lk.salyk.kg [12:15:16]written 0, free lines is 4095 [12:15:16]Connected sock=7 [12:15:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 00 81 07 01 61 09 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 DA 25 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F8 6F 00 00 35 04 06 00 00 7C 8B EA 88 C2 3A 63 7A D6 C6 08 19 32 [12:15:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 01 83 47 00 88 C6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F8 6F 00 00 F4 03 04 00 84 D0 18 66 B6 04 01 00 00 CE 07 7B B6 F3 5B F7 B5 [12:15:16]CommunicateWithHost err = 0 [12:15:16]CheckOFDResponse [12:15:16]1017 (14) - 77093643461234 [12:15:16]1041 (16) - 0000000000963154 [12:15:16]1040 (4) - 28664 [12:15:16]1012 (4) - 12.04.2024 06:11 [12:15:16]1206 (1) - 0 [12:15:16]OFD Sender: Remove packet 28664 [12:15:16]ProducePacketName [12:15:16]name=ofd_packets/00028664 [12:15:16]NVStorageDeleteData [12:15:16]Write to MH i2c: 01 00 00 EB 7A 65 [12:15:16]Write i2c OK [12:15:16]MH_I2C_Read... [12:15:16]Read from MH i2c: 01 [12:15:16]MH_I2C_Read... [12:15:16]Read from MH i2c: 01 07 00 [12:15:16]MH_I2C_Read... [12:15:16]Read from MH i2c: 01 07 00 EB 7A 00 00 00 00 00 CE 0C 46 [12:15:16]RasterBufferAndPrint [12:15:16]line [12:15:16]line [12:15:16]line [12:15:16]line [12:15:16]line [12:15:16]written 0, free lines is 3284 [12:15:16]MH_Cut [12:15:16]Write to MH i2c: D1 01 00 F2 7A 01 3E [12:15:16]Write i2c OK [12:15:16]MH_I2C_Read... [12:15:16]Read from MH i2c: D1 [12:15:16]MH_I2C_Read... [12:15:16]Read from MH i2c: D1 01 00 [12:15:16]MH_I2C_Read... [12:15:16]Read from MH i2c: D1 01 00 F2 7A 00 3D [12:15:16]Write to MH i2c: 01 00 00 F3 7A 6D [12:15:16]Write i2c OK [12:15:16]MH_I2C_Read... [12:15:17]OFD Sender: No OFD packet to send [12:15:17]*** Cut start [12:15:17]*** Partial cut [12:15:17]*** CUTSNS_PIN = 1 [12:15:17]*** CUTSNS_PIN = 0 [12:15:17]*** Brake cut motor [12:15:18]Read from MH i2c: 01 [12:15:18]MH_I2C_Read... [12:15:18]*** Stop cut motor [12:15:18]*** Cut end [12:15:18]Read from MH i2c: 01 07 00 [12:15:18]MH_I2C_Read... [12:15:18]Read from MH i2c: 01 07 00 F3 7A 00 00 00 00 00 FF 0F 82 [12:15:18]process_action close_receipt done [12:15:18]requested_data is exist [12:15:18]produce_requested_data [12:15:18]requested_item fm.sn is exist - process it [12:15:18]wFMCommunicate request_size=4 [12:15:18]MH_SAM_APDU [12:15:18]CAPDU: 80 11 00 00 [12:15:18]Write to MH i2c: E2 08 00 F4 7A 80 11 00 00 00 00 00 00 E8 [12:15:18]Write i2c OK [12:15:18]MH_I2C_Read... [12:15:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:15:18]Read from MH i2c: E2 [12:15:18]MH_I2C_Read... [12:15:18]Read from MH i2c: E2 17 00 [12:15:18]MH_I2C_Read... [12:15:18]Read from MH i2c: E2 17 00 F4 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 37 [12:15:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:15:18]wFMCommunicate OK [12:15:18]requested_item fd.num is exist - process it [12:15:18]SAM_PROTO_GetFieldsCounters [12:15:18]wFMCommunicate request_size=4 [12:15:18]MH_SAM_APDU [12:15:18]CAPDU: 80 13 00 00 [12:15:18]Write to MH i2c: E2 08 00 F5 7A 80 13 00 00 00 00 00 00 EB [12:15:18]Write i2c OK [12:15:18]MH_I2C_Read... [12:15:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:15:18]Read from MH i2c: E2 [12:15:18]MH_I2C_Read... [12:15:18]Read from MH i2c: E2 62 00 [12:15:18]MH_I2C_Read... [12:15:18]Read from MH i2c: E2 62 00 F5 7A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 F8 6F 00 00 0E 04 04 00 71 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 54 [12:15:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 F8 6F 00 00 0E 04 04 00 71 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:15:18]wFMCommunicate OK [12:15:18]SAM_PROTO_GetFieldsCounters done [12:15:18]requested_item shift.num is exist - process it [12:15:18]requested_item shift.opened is exist - process it [12:15:18]req_shift_opened [12:15:18]FM_GetShiftState [12:15:18]SAM_PROTO_GetShiftState [12:15:18]wFMCommunicate request_size=4 [12:15:18]MH_SAM_APDU [12:15:18]CAPDU: 80 13 01 00 [12:15:18]Write to MH i2c: E2 08 00 F6 7A 80 13 01 00 00 00 00 00 ED [12:15:18]Write i2c OK [12:15:18]MH_I2C_Read... [12:15:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:15:18]Read from MH i2c: E2 [12:15:18]MH_I2C_Read... [12:15:18]Read from MH i2c: E2 0E 00 [12:15:18]MH_I2C_Read... [12:15:18]Read from MH i2c: E2 0E 00 F6 7A 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 FE [12:15:18]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [12:15:18]wFMCommunicate OK [12:15:18]SAM_PROTO_GetShiftState done [12:15:18]FM_GetShiftState done [12:15:18]req_shift_opened done [12:15:18]requested_item shift.open_date is exist - process it [12:15:18]req_shift_open_date [12:15:18]req_shift_open_date done [12:15:18]produce_requested_data done [12:15:18]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28664,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [12:15:18]process_action_free close_receipt [12:15:18]json_value_free [12:15:18]json_value_free done [12:15:18]process_json_proto returns [12:15:18]Send response to host [12:15:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28664,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [12:15:18]free response buf [12:15:18]execute_script done [12:15:18]execute_script returns [12:15:18]free content buf [12:15:18]Sock 6.Close socket [12:15:18]Sock 6.Thread stoped [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]accept exits with 5 [12:17:47]New connection [12:17:47]New thread 3066498404 created [12:17:47]Thread 3066641764 joined [12:17:47]Waiting for new connection... [12:17:47] Sock 5.Parse request [12:17:47]Sock 5.Check first char [12:17:47]Sock 5.First char is OK [12:17:47]request: POST /json_proto HTTP/1.0 [12:17:47]Method: POST [12:17:47]URL: /json_proto [12:17:47]Method is POST - this is cgi request [12:17:47]url: /json_proto [12:17:47]query_string will be loaded in cgi processing [12:17:47]execute_cgi json_proto POST (null) [12:17:47]execute_cgi path=json_proto method=POST [12:17:47]POST find Content-Length [12:17:47]Host: 172.17.33.3:8080 [12:17:47]Content-Length: 840 [12:17:47]Content-Type: application/json [12:17:47] [12:17:47]POST finish read [12:17:47]Found Content-Length = 840 [12:17:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346997", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.50, "quantity" : 8.970, "sum" : 650.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 650.33 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:17:47]execute_script... [12:17: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)346997", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.50, "quantity" : 8.970, "sum" : 650.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 650.33 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:17:47]POST & json_proto [12:17:47]process_json_proto [12:17:47]json parsed OK: [12:17:47]protocol is kg_v1.0 [12:17:47]action value=close_receipt [12:17:47]process_action close_receipt [12:17:47]cmd_close_receipt [12:17:47]MH_GetDate [12:17:47]Write to MH i2c: F0 00 00 F7 7A 60 [12:17:47]Write i2c OK [12:17:47]MH_I2C_Read... [12:17:47]Read from MH i2c: F0 [12:17:47]MH_I2C_Read... [12:17:47]Read from MH i2c: F0 09 00 [12:17:47]MH_I2C_Read... [12:17:47]Read from MH i2c: F0 09 00 F7 7A 00 73 26 19 66 23 5B 8F 65 F3 [12:17:47]GetLastDocTimeStamp 1712924122 [12:17:47]current date 1712924275 [12:17:47]FM_GetShiftState [12:17:47]SAM_PROTO_GetShiftState [12:17:47]wFMCommunicate request_size=4 [12:17:47]MH_SAM_APDU [12:17:47]CAPDU: 80 13 01 00 [12:17:47]Write to MH i2c: E2 08 00 F8 7A 80 13 01 00 00 00 00 00 EF [12:17:47]Write i2c OK [12:17:47]MH_I2C_Read... [12:17:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:17:47]Read from MH i2c: E2 [12:17:47]MH_I2C_Read... [12:17:47]Read from MH i2c: E2 0E 00 [12:17:47]MH_I2C_Read... [12:17:47]Read from MH i2c: E2 0E 00 F8 7A 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 00 [12:17:47]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [12:17:47]wFMCommunicate OK [12:17:47]SAM_PROTO_GetShiftState done [12:17:47]FM_GetShiftState done [12:17:47]opened in 1712881416 [12:17:47]opened+sec_in_day 1712967816 [12:17:47]quantity*price = 65032 [12:17:47]sum+1 = 65034 [12:17:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 650.33 НСП 1% : 5.75 НДС 12% : 69.06 Наличными: 0.00 Безнал.: 650.33 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 114 12.04.2024 12:17 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 28665 ФПД: 223106962986860 1/tax-web-control/client/api/v1/ticket?date=20240412T121755&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28665&fm=223106962986860&tin=02508201610067®Number=0000138879044617&sum=65033 [12:17:48]StoreToDocumentArchive [12:17:48]shift 113 fd 28665 [12:17:48]save to /storage/0113/doc_00028665 [12:17:48]save last doc name /storage/0113/doc_00028665 to /storage/kkm_last_doc_name [12:17:48]save OK [12:17:48]Clear old archive folders... [12:17:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:17:48]tlvbuf is 01ACCAE0 [12:17:48]SAM_PROTO_ClearQueue [12:17:48]wFMCommunicate request_size=4 [12:17:48]MH_SAM_APDU [12:17:48]CAPDU: 80 09 00 00 [12:17:48]Write to MH i2c: E2 08 00 05 7B 80 09 00 00 00 00 00 00 F2 [12:17:48]Write i2c OK [12:17:48]MH_I2C_Read... [12:17:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:17:48]Read from MH i2c: E2 [12:17:48]MH_I2C_Read... [12:17:48]Read from MH i2c: E2 03 00 [12:17:48]MH_I2C_Read... [12:17:48]Read from MH i2c: E2 03 00 05 7B 00 90 00 F4 [12:17:48]RAPDU: 90 00 [12:17:48]wFMCommunicate OK [12:17:48]SAM_PROTO_ClearQueue done [12:17:48]KKMCreateOFDPacket [12:17:48]OFDProtocolAddRootSTLVToBuf [12:17:48]FM_MakeSignedData [12:17:48]FM_MakeSignedData [12:17:48]SAM_PROTO_SignData [12:17:48]wFMCommunicate request_size=4 [12:17:48]MH_SAM_APDU [12:17:48]CAPDU: 80 0D 01 02 [12:17:48]Write to MH i2c: E2 08 00 06 7B 80 0D 01 02 00 00 00 00 FA [12:17:48]Write i2c OK [12:17:48]MH_I2C_Read... [12:17:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:17:48]Read from MH i2c: E2 [12:17:48]MH_I2C_Read... [12:17:48]Read from MH i2c: E2 03 00 [12:17:48]MH_I2C_Read... [12:17:48]Read from MH i2c: E2 03 00 06 7B 00 90 00 F5 [12:17:48]RAPDU: 90 00 [12:17:48]wFMCommunicate OK [12:17:48]wFMCommunicate request_size=255 [12:17:48]MH_SAM_APDU [12:17: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 09 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 09 FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 09 FE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 73 26 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F9 6F 00 00 35 04 06 00 CA [12:17:48]Write to MH i2c: E2 02 01 07 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 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 09 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 09 FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 09 FE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 73 26 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F9 6F 00 00 35 04 06 00 CA 00 00 57 [12:17:48]Write i2c OK [12:17:48]MH_I2C_Read... [12:17:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:17:48]Read from MH i2c: E2 [12:17:48]MH_I2C_Read... [12:17:48]Read from MH i2c: E2 03 00 [12:17:48]MH_I2C_Read... [12:17:48]Read from MH i2c: E2 03 00 07 7B 00 90 00 F6 [12:17:48]RAPDU: 90 00 [12:17:48]wFMCommunicate OK [12:17:48]wFMCommunicate request_size=10 [12:17:48]MH_SAM_APDU [12:17:48]CAPDU: 80 0D 02 02 05 EA 23 46 97 6C [12:17:48]Write to MH i2c: E2 0D 00 08 7B 80 0D 02 02 05 00 EA 23 46 97 6C 00 00 5D [12:17:48]Write i2c OK [12:17:48]MH_I2C_Read... [12:17:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:17:48]Read from MH i2c: E2 [12:17:48]MH_I2C_Read... [12:17:48]Read from MH i2c: E2 03 00 [12:17:48]MH_I2C_Read... [12:17:48]Read from MH i2c: E2 03 00 08 7B 00 90 00 F7 [12:17:48]RAPDU: 90 00 [12:17:48]wFMCommunicate OK [12:17:48]wFMCommunicate request_size=4 [12:17:48]MH_SAM_APDU [12:17:48]CAPDU: 80 0D 03 02 [12:17:48]Write to MH i2c: E2 08 00 09 7B 80 0D 03 02 00 00 00 00 FF [12:17:48]Write i2c OK [12:17:48]MH_I2C_Read... [12:17:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:17:48]Read from MH i2c: E2 [12:17:48]MH_I2C_Read... [12:17:48]Read from MH i2c: E2 0B 00 [12:17:48]MH_I2C_Read... [12:17:48]Read from MH i2c: E2 0B 00 09 7B 00 3E E6 E7 74 F8 A0 8D B1 90 00 55 [12:17:48]RAPDU: 3E E6 E7 74 F8 A0 8D B1 90 00 [12:17:48]wFMCommunicate OK [12:17:48]SAM_PROTO_SignData done [12:17:48]FM_MakeSignedData done [12:17:48]CreateOFDProtocolMessage [12:17:48]wFMCommunicate request_size=4 [12:17:48]MH_SAM_APDU [12:17:48]CAPDU: 80 11 00 00 [12:17:48]Write to MH i2c: E2 08 00 0A 7B 80 11 00 00 00 00 00 00 FF [12:17:48]Write i2c OK [12:17:48]MH_I2C_Read... [12:17:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:17:48]Read from MH i2c: E2 [12:17:48]MH_I2C_Read... [12:17:48]Read from MH i2c: E2 17 00 [12:17:48]MH_I2C_Read... [12:17:48]Read from MH i2c: E2 17 00 0A 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 4E [12:17:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:17:48]wFMCommunicate OK [12:17:48]CreateOFDProtocolMessage done [12:17:48]OFDSenderStorePacket 28665 [12:17:48]StoreOFDPacket docnum=28665 [12:17:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 94 23 07 01 81 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 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 09 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 09 FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 09 FE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 73 26 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F9 6F 00 00 35 04 06 00 CA EA 23 46 97 6C 3E E6 E7 74 F8 A0 8D B1 [12:17:48]CheckFolder [12:17:48]dirname=/storage/ofd_packets [12:17:48]CheckFolder done [12:17:48]ProducePacketName [12:17:48]name=ofd_packets/00028665 [12:17:48]NVStorageSaveData ofd_packets/00028665 [12:17:48]File name is /storage/ofd_packets/00028665 [12:17:48]Write 301 bytes [12:17:48]NVStorageSaveData done [12:17:48]OFDSenderStorePacket done [12:17:48]KKMCreateOFDPacket done [12:17:48]NVStorageSaveData kkm_last_timestamp [12:17:48]File name is /storage/kkm_last_timestamp [12:17:48]Write 4 bytes [12:17:48]NVStorageSaveData done [12:17:48]ExternCall_PrintAddStr [12:17:48]wPrintStart [12:17:48]Write to MH i2c: 01 00 00 0B 7B 86 [12:17:48]Write i2c OK [12:17:48]MH_I2C_Read... [12:17:48]Read from MH i2c: 01 [12:17:48]MH_I2C_Read... [12:17:48]Read from MH i2c: 01 07 00 [12:17:48]MH_I2C_Read... [12:17:48]Read from MH i2c: 01 07 00 0B 7B 00 00 00 00 00 FF 0F 9B [12:17:48]RasterBufferAndPrint [12:17:48]line Счет N : (1)346997 [12:17:48]line ИНН: 02508201610067 [12:17:48]line Контрольно-Кассовый Чек [12:17:48]line ПРОДАЖА [12:17:48]line ТРК (МРК, ГНК) : 33 [12:17:48]line Товар: 2710124500 [12:17:48]line Аи-95-К-5 [12:17:48]line 8.970 * 72.50 [12:17:48]line = 650.33 [12:17:48]line НДС 12% НСП 1% [12:17:48]line > о реализуемом товаре [12:17:48]line ИТОГО: 650.33 [12:17:48]line НСП 1% : 5.75 [12:17:48]line НДС 12% : 69.06 [12:17:48]line Наличными: 0.00 [12:17:48]line Безнал.: 650.33 [12:17:48]line Место: АЗС № 108 "Партнер Нефть" [12:17:48]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [12:17:48]line СНО: Общий режим [12:17:48]line Чек 114 12.04.2024 12:17 [12:17:48]line Смена: 113 ФФД: 1.0 [12:17:48]line ЗНМ: 0300000027 [12:17:48]line РНМ: 0000138879044617 [12:17:48]line Версия ККМ: 001 [12:17:48]line Платежная система: АКБ Кыргызстан [12:17:48]line ФМ: 0000000000963154 [12:17:48]line ФД: 28665 [12:17:48]line ФПД: 223106962986860 [12:17:48]line 1/tax-web-control/client/api/v1/ticket?date=20240412T121755&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28665&fm=223106962986860&tin=02508201610067®Number=0000138879044617&sum=65033 [12:17:49]OFD Sender: Processing packet 28665 [packets to send 8, broken 7] [12:17:49]ProducePacketName [12:17:49]name=ofd_packets/00028665 [12:17:49]OFD Sender: To server: pG, [12:17:49]CommunicateWithHost lk.salyk.kg:30040 [12:17:49]ConnectInit lk.salyk.kg [12:17:49]written 0, free lines is 4095 [12:17:49]Connected sock=7 [12:17:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 94 23 07 01 81 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 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 09 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 09 FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 09 FE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 73 26 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F9 6F 00 00 35 04 06 00 CA EA 23 46 97 6C 3E E6 E7 74 F8 A0 8D B1 [12:17:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 00 17 47 00 A0 EF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F9 6F 00 00 F4 03 04 00 1D D1 18 66 B6 04 01 00 00 80 4B 7E B0 8A 73 3D AF [12:17:49]CommunicateWithHost err = 0 [12:17:49]CheckOFDResponse [12:17:49]1017 (14) - 77093643461234 [12:17:49]1041 (16) - 0000000000963154 [12:17:49]1040 (4) - 28665 [12:17:49]1012 (4) - 12.04.2024 06:13 [12:17:49]1206 (1) - 0 [12:17:49]OFD Sender: Remove packet 28665 [12:17:49]ProducePacketName [12:17:49]name=ofd_packets/00028665 [12:17:49]NVStorageDeleteData [12:17:49]Write to MH i2c: 01 00 00 34 7B AF [12:17:49]Write i2c OK [12:17:49]MH_I2C_Read... [12:17:49]Read from MH i2c: 01 [12:17:49]MH_I2C_Read... [12:17:49]Read from MH i2c: 01 07 00 [12:17:49]MH_I2C_Read... [12:17:49]Read from MH i2c: 01 07 00 34 7B 00 00 00 00 00 EE 0C B0 [12:17:49]RasterBufferAndPrint [12:17:49]line [12:17:49]line [12:17:49]line [12:17:49]line [12:17:49]line [12:17:49]written 0, free lines is 3317 [12:17:49]MH_Cut [12:17:49]Write to MH i2c: D1 01 00 3B 7B 01 88 [12:17:49]Write i2c OK [12:17:49]MH_I2C_Read... [12:17:49]Read from MH i2c: D1 [12:17:49]MH_I2C_Read... [12:17:49]Read from MH i2c: D1 01 00 [12:17:49]MH_I2C_Read... [12:17:49]Read from MH i2c: D1 01 00 3B 7B 00 87 [12:17:49]Write to MH i2c: 01 00 00 3C 7B B7 [12:17:49]Write i2c OK [12:17:49]MH_I2C_Read... [12:17:49]OFD Sender: No OFD packet to send [12:17:50]*** Cut start [12:17:50]*** Partial cut [12:17:50]*** CUTSNS_PIN = 1 [12:17:50]*** CUTSNS_PIN = 0 [12:17:50]*** Brake cut motor [12:17:51]Read from MH i2c: 01 [12:17:51]MH_I2C_Read... [12:17:51]*** Stop cut motor [12:17:51]*** Cut end [12:17:51]Read from MH i2c: 01 07 00 [12:17:51]MH_I2C_Read... [12:17:51]Read from MH i2c: 01 07 00 3C 7B 00 00 00 00 00 FF 0F CC [12:17:51]process_action close_receipt done [12:17:51]requested_data is exist [12:17:51]produce_requested_data [12:17:51]requested_item fm.sn is exist - process it [12:17:51]wFMCommunicate request_size=4 [12:17:51]MH_SAM_APDU [12:17:51]CAPDU: 80 11 00 00 [12:17:51]Write to MH i2c: E2 08 00 3D 7B 80 11 00 00 00 00 00 00 32 [12:17:51]Write i2c OK [12:17:51]MH_I2C_Read... [12:17:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:17:51]Read from MH i2c: E2 [12:17:51]MH_I2C_Read... [12:17:51]Read from MH i2c: E2 17 00 [12:17:51]MH_I2C_Read... [12:17:51]Read from MH i2c: E2 17 00 3D 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 81 [12:17:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:17:51]wFMCommunicate OK [12:17:51]requested_item fd.num is exist - process it [12:17:51]SAM_PROTO_GetFieldsCounters [12:17:51]wFMCommunicate request_size=4 [12:17:51]MH_SAM_APDU [12:17:51]CAPDU: 80 13 00 00 [12:17:51]Write to MH i2c: E2 08 00 3E 7B 80 13 00 00 00 00 00 00 35 [12:17:51]Write i2c OK [12:17:51]MH_I2C_Read... [12:17:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:17:51]Read from MH i2c: E2 [12:17:51]MH_I2C_Read... [12:17:51]Read from MH i2c: E2 62 00 [12:17:51]MH_I2C_Read... [12:17:51]Read from MH i2c: E2 62 00 3E 7B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 F9 6F 00 00 0E 04 04 00 71 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 A2 [12:17:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 F9 6F 00 00 0E 04 04 00 71 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:17:51]wFMCommunicate OK [12:17:51]SAM_PROTO_GetFieldsCounters done [12:17:51]requested_item shift.num is exist - process it [12:17:51]requested_item shift.opened is exist - process it [12:17:51]req_shift_opened [12:17:51]FM_GetShiftState [12:17:51]SAM_PROTO_GetShiftState [12:17:51]wFMCommunicate request_size=4 [12:17:51]MH_SAM_APDU [12:17:51]CAPDU: 80 13 01 00 [12:17:51]Write to MH i2c: E2 08 00 3F 7B 80 13 01 00 00 00 00 00 37 [12:17:51]Write i2c OK [12:17:51]MH_I2C_Read... [12:17:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:17:51]Read from MH i2c: E2 [12:17:51]MH_I2C_Read... [12:17:51]Read from MH i2c: E2 0E 00 [12:17:51]MH_I2C_Read... [12:17:51]Read from MH i2c: E2 0E 00 3F 7B 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 48 [12:17:51]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [12:17:51]wFMCommunicate OK [12:17:51]SAM_PROTO_GetShiftState done [12:17:51]FM_GetShiftState done [12:17:51]req_shift_opened done [12:17:51]requested_item shift.open_date is exist - process it [12:17:51]req_shift_open_date [12:17:51]req_shift_open_date done [12:17:51]produce_requested_data done [12:17:51]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28665,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [12:17:51]process_action_free close_receipt [12:17:51]json_value_free [12:17:51]json_value_free done [12:17:51]process_json_proto returns [12:17:51]Send response to host [12:17:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28665,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [12:17:51]free response buf [12:17:51]execute_script done [12:17:51]execute_script returns [12:17:51]free content buf [12:17:51]Sock 5.Close socket [12:17:51]Sock 5.Thread stoped [12:17:54]accept exits with 6 [12:17:54]New connection [12:17:54]New thread 3066641764 created [12:17:54]Thread 3066498404 joined [12:17:54]Waiting for new connection... [12:17:54] Sock 6.Parse request [12:17:54]Sock 6.Check first char [12:17:54]Sock 6.First char is OK [12:17:54]request: POST /json_proto HTTP/1.0 [12:17:54]Method: POST [12:17:54]URL: /json_proto [12:17:54]Method is POST - this is cgi request [12:17:54]url: /json_proto [12:17:54]query_string will be loaded in cgi processing [12:17:54]execute_cgi json_proto POST (null) [12:17:54]execute_cgi path=json_proto method=POST [12:17:54]POST find Content-Length [12:17:54]Host: 172.17.33.3:8080 [12:17:54]Content-Length: 1173 [12:17:54]Content-Type: application/json [12:17:54] [12:17:54]POST finish read [12:17:54]Found Content-Length = 1173 [12:17:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)346995\u000A12.04.2024 11:59\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 72.40\u000A\u0418\u0422\u041E\u0413: 7240.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30087342\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:17:54]execute_script... [12:17:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)346995\u000A12.04.2024 11:59\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 72.40\u000A\u0418\u0422\u041E\u0413: 7240.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30087342\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:17:54]POST & json_proto [12:17:54]process_json_proto [12:17:54]json parsed OK: [12:17:54]protocol is kg_v1.0 [12:17:54]action value=print_text [12:17:54]process_action print_text [12:17:54]cmd_print_text [12:17:54]ExternCall_PrintAddStr [12:17:54]wPrintStart [12:17:54]Write to MH i2c: 01 00 00 40 7B BB [12:17:54]Write i2c OK [12:17:54]MH_I2C_Read... [12:17:54]Read from MH i2c: 01 [12:17:54]MH_I2C_Read... [12:17:54]Read from MH i2c: 01 07 00 [12:17:54]MH_I2C_Read... [12:17:54]Read from MH i2c: 01 07 00 40 7B 00 00 00 00 00 FF 0F D0 [12:17:54]RasterBufferAndPrint [12:17:54]line *****ТОВАРНЫЙ ЧЕК***** [12:17:54]line АЗС 108 [12:17:54]line Партнер нефть [12:17:54]line 02508201610067 [12:17:54]line Кассир : Джумагулова Н. [12:17:54]line Счет N : (1)346995 [12:17:54]line 12.04.2024 11:59 [12:17:54]line ПРОДАЖА [12:17:54]line ТРК (МРК, ГНК): 21 [12:17:54]line Вид ГСМ : 2710194210 [12:17:54]line ДТ-К-5 [12:17:54]line 100.000 x 72.40 [12:17:54]line ИТОГ: 7240.00 [12:17:54]line Тип оплаты: Талоны: ТК ГПНА Online [12:17:54]line 30087342 [12:17:54]line ______________________ [12:17:54]line (подпись) [12:17:54]written 0, free lines is 4095 [12:17:54]Write to MH i2c: 01 00 00 55 7B D0 [12:17:54]Write i2c OK [12:17:54]MH_I2C_Read... [12:17:54]Read from MH i2c: 01 [12:17:54]MH_I2C_Read... [12:17:54]Read from MH i2c: 01 07 00 [12:17:54]MH_I2C_Read... [12:17:54]Read from MH i2c: 01 07 00 55 7B 00 00 00 00 00 F5 0D D9 [12:17:54]RasterBufferAndPrint [12:17:54]line [12:17:54]line [12:17:54]line [12:17:54]line [12:17:54]line [12:17:54]written 0, free lines is 3577 [12:17:54]MH_Cut [12:17:54]Write to MH i2c: D1 01 00 5C 7B 01 A9 [12:17:54]Write i2c OK [12:17:54]MH_I2C_Read... [12:17:54]Read from MH i2c: D1 [12:17:54]MH_I2C_Read... [12:17:54]Read from MH i2c: D1 01 00 [12:17:54]MH_I2C_Read... [12:17:54]Read from MH i2c: D1 01 00 5C 7B 00 A8 [12:17:54]Write to MH i2c: 01 00 00 5D 7B D8 [12:17:54]Write i2c OK [12:17:54]MH_I2C_Read... [12:17:54]OFD Sender: No OFD packet to send [12:17:55]*** Cut start [12:17:55]*** Partial cut [12:17:55]*** CUTSNS_PIN = 1 [12:17:55]*** CUTSNS_PIN = 0 [12:17:55]*** Brake cut motor [12:17:55]Read from MH i2c: 01 [12:17:55]MH_I2C_Read... [12:17:55]*** Stop cut motor [12:17:55]*** Cut end [12:17:55]Read from MH i2c: 01 07 00 [12:17:55]MH_I2C_Read... [12:17:55]Read from MH i2c: 01 07 00 5D 7B 00 00 00 00 00 FF 0F ED [12:17:55]process_action print_text done [12:17:55]requested_data is exist [12:17:55]produce_requested_data [12:17:55]requested_item fm.sn is exist - process it [12:17:55]wFMCommunicate request_size=4 [12:17:55]MH_SAM_APDU [12:17:55]CAPDU: 80 11 00 00 [12:17:55]Write to MH i2c: E2 08 00 5E 7B 80 11 00 00 00 00 00 00 53 [12:17:55]Write i2c OK [12:17:55]MH_I2C_Read... [12:17:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:17:55]Read from MH i2c: E2 [12:17:55]MH_I2C_Read... [12:17:55]Read from MH i2c: E2 17 00 [12:17:55]MH_I2C_Read... [12:17:55]Read from MH i2c: E2 17 00 5E 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 A2 [12:17:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:17:55]wFMCommunicate OK [12:17:55]requested_item fd.num is exist - process it [12:17:55]SAM_PROTO_GetFieldsCounters [12:17:55]wFMCommunicate request_size=4 [12:17:55]MH_SAM_APDU [12:17:55]CAPDU: 80 13 00 00 [12:17:55]Write to MH i2c: E2 08 00 5F 7B 80 13 00 00 00 00 00 00 56 [12:17:55]Write i2c OK [12:17:55]MH_I2C_Read... [12:17:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:17:55]Read from MH i2c: E2 [12:17:55]MH_I2C_Read... [12:17:55]Read from MH i2c: E2 62 00 [12:17:55]MH_I2C_Read... [12:17:55]Read from MH i2c: E2 62 00 5F 7B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 F9 6F 00 00 0E 04 04 00 71 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 C3 [12:17:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 F9 6F 00 00 0E 04 04 00 71 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:17:55]wFMCommunicate OK [12:17:55]SAM_PROTO_GetFieldsCounters done [12:17:55]requested_item shift.num is exist - process it [12:17:55]requested_item shift.opened is exist - process it [12:17:55]req_shift_opened [12:17:55]FM_GetShiftState [12:17:55]SAM_PROTO_GetShiftState [12:17:55]wFMCommunicate request_size=4 [12:17:55]MH_SAM_APDU [12:17:55]CAPDU: 80 13 01 00 [12:17:55]Write to MH i2c: E2 08 00 60 7B 80 13 01 00 00 00 00 00 58 [12:17:55]Write i2c OK [12:17:55]MH_I2C_Read... [12:17:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:17:55]Read from MH i2c: E2 [12:17:55]MH_I2C_Read... [12:17:55]Read from MH i2c: E2 0E 00 [12:17:55]MH_I2C_Read... [12:17:55]Read from MH i2c: E2 0E 00 60 7B 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 69 [12:17:55]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [12:17:55]wFMCommunicate OK [12:17:55]SAM_PROTO_GetShiftState done [12:17:55]FM_GetShiftState done [12:17:55]req_shift_opened done [12:17:55]requested_item shift.open_date is exist - process it [12:17:55]req_shift_open_date [12:17:55]req_shift_open_date done [12:17:55]produce_requested_data done [12:17:55]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28665,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [12:17:55]process_action_free print_text [12:17:55]json_value_free [12:17:55]json_value_free done [12:17:55]process_json_proto returns [12:17:55]Send response to host [12:17:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28665,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [12:17:55]free response buf [12:17:55]execute_script done [12:17:55]execute_script returns [12:17:55]free content buf [12:17:55]Sock 6.Close socket [12:17:55]Sock 6.Thread stoped [12:17:59]OFD Sender: No OFD packet to send [12:18:04]OFD Sender: No OFD packet to send [12:18:09]OFD Sender: No OFD packet to send [12:18:15]OFD Sender: No OFD packet to send [12:18:20]OFD Sender: No OFD packet to send [12:18:25]OFD Sender: No OFD packet to send [12:18:30]OFD Sender: No OFD packet to send [12:18:35]OFD Sender: No OFD packet to send [12:18:40]OFD Sender: No OFD packet to send [12:18:45]OFD Sender: No OFD packet to send [12:18:50]OFD Sender: No OFD packet to send [12:18:55]OFD Sender: No OFD packet to send [12:19:00]OFD Sender: No OFD packet to send [12:19:05]OFD Sender: No OFD packet to send [12:19:06]accept exits with 5 [12:19:06]New connection [12:19:06]New thread 3066498404 created [12:19:06]Thread 3066641764 joined [12:19:06]Waiting for new connection... [12:19:06] Sock 5.Parse request [12:19:06]Sock 5.Check first char [12:19:06]Sock 5.First char is OK [12:19:06]request: POST /json_proto HTTP/1.0 [12:19:06]Method: POST [12:19:06]URL: /json_proto [12:19:06]Method is POST - this is cgi request [12:19:06]url: /json_proto [12:19:06]query_string will be loaded in cgi processing [12:19:06]execute_cgi json_proto POST (null) [12:19:06]execute_cgi path=json_proto method=POST [12:19:06]POST find Content-Length [12:19:06]Host: 172.17.33.3:8080 [12:19:06]Content-Length: 677 [12:19:06]Content-Type: application/json [12:19:06] [12:19:06]POST finish read [12:19:06]Found Content-Length = 677 [12:19:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346998", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 4.670, "sum" : 300.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:19:06]execute_script... [12:19:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346998", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 4.670, "sum" : 300.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:19:06]POST & json_proto [12:19:06]process_json_proto [12:19:06]json parsed OK: [12:19:06]protocol is kg_v1.0 [12:19:06]action value=close_receipt [12:19:06]process_action close_receipt [12:19:06]cmd_close_receipt [12:19:06]MH_GetDate [12:19:06]Write to MH i2c: F0 00 00 61 7B CB [12:19:06]Write i2c OK [12:19:06]MH_I2C_Read... [12:19:06]Read from MH i2c: F0 [12:19:06]MH_I2C_Read... [12:19:06]Read from MH i2c: F0 09 00 [12:19:06]MH_I2C_Read... [12:19:06]Read from MH i2c: F0 09 00 61 7B 00 C2 26 19 66 23 5B 8F 65 AD [12:19:06]GetLastDocTimeStamp 1712924275 [12:19:06]current date 1712924354 [12:19:06]FM_GetShiftState [12:19:06]SAM_PROTO_GetShiftState [12:19:06]wFMCommunicate request_size=4 [12:19:06]MH_SAM_APDU [12:19:06]CAPDU: 80 13 01 00 [12:19:06]Write to MH i2c: E2 08 00 62 7B 80 13 01 00 00 00 00 00 5A [12:19:06]Write i2c OK [12:19:06]MH_I2C_Read... [12:19:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:19:06]Read from MH i2c: E2 [12:19:06]MH_I2C_Read... [12:19:06]Read from MH i2c: E2 0E 00 [12:19:06]MH_I2C_Read... [12:19:06]Read from MH i2c: E2 0E 00 62 7B 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 6B [12:19:06]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [12:19:06]wFMCommunicate OK [12:19:06]SAM_PROTO_GetShiftState done [12:19:06]FM_GetShiftState done [12:19:06]opened in 1712881416 [12:19:06]opened+sec_in_day 1712967816 [12:19:06]quantity*price = 30028 [12:19:06]sum+1 = 30029 [12:19:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 115 12.04.2024 12:19 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28666 ФПД: 258409915143570 1/tax-web-control/client/api/v1/ticket?date=20240412T121915&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28666&fm=258409915143570&tin=02508201610067®Number=0000138879044617&sum=30000 [12:19:08]StoreToDocumentArchive [12:19:08]shift 113 fd 28666 [12:19:08]save to /storage/0113/doc_00028666 [12:19:08]save last doc name /storage/0113/doc_00028666 to /storage/kkm_last_doc_name [12:19:08]save OK [12:19:08]Clear old archive folders... [12:19:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:19:08]tlvbuf is 01CA66E0 [12:19:08]SAM_PROTO_ClearQueue [12:19:08]wFMCommunicate request_size=4 [12:19:08]MH_SAM_APDU [12:19:08]CAPDU: 80 09 00 00 [12:19:08]Write to MH i2c: E2 08 00 6F 7B 80 09 00 00 00 00 00 00 5C [12:19:08]Write i2c OK [12:19:08]MH_I2C_Read... [12:19:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:19:08]Read from MH i2c: E2 [12:19:08]MH_I2C_Read... [12:19:08]Read from MH i2c: E2 03 00 [12:19:08]MH_I2C_Read... [12:19:08]Read from MH i2c: E2 03 00 6F 7B 00 90 00 5E [12:19:08]RAPDU: 90 00 [12:19:08]wFMCommunicate OK [12:19:08]SAM_PROTO_ClearQueue done [12:19:08]KKMCreateOFDPacket [12:19:08]OFDProtocolAddRootSTLVToBuf [12:19:08]FM_MakeSignedData [12:19:08]FM_MakeSignedData [12:19:08]SAM_PROTO_SignData [12:19:08]wFMCommunicate request_size=4 [12:19:08]MH_SAM_APDU [12:19:08]CAPDU: 80 0D 01 02 [12:19:08]Write to MH i2c: E2 08 00 70 7B 80 0D 01 02 00 00 00 00 64 [12:19:08]Write i2c OK [12:19:08]MH_I2C_Read... [12:19:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:19:08]Read from MH i2c: E2 [12:19:08]MH_I2C_Read... [12:19:08]Read from MH i2c: E2 03 00 [12:19:08]MH_I2C_Read... [12:19:08]Read from MH i2c: E2 03 00 70 7B 00 90 00 5F [12:19:08]RAPDU: 90 00 [12:19:08]wFMCommunicate OK [12:19:08]wFMCommunicate request_size=255 [12:19:08]MH_SAM_APDU [12:19:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3E 12 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 C3 26 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FA 6F 00 00 35 04 06 00 EB [12:19:08]Write to MH i2c: E2 02 01 71 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 35 FF 03 08 00 03 3E 12 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 C3 26 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FA 6F 00 00 35 04 06 00 EB 00 00 49 [12:19:08]Write i2c OK [12:19:08]MH_I2C_Read... [12:19:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:19:08]Read from MH i2c: E2 [12:19:08]MH_I2C_Read... [12:19:08]Read from MH i2c: E2 03 00 [12:19:08]MH_I2C_Read... [12:19:08]Read from MH i2c: E2 03 00 71 7B 00 90 00 60 [12:19:08]RAPDU: 90 00 [12:19:08]wFMCommunicate OK [12:19:08]wFMCommunicate request_size=10 [12:19:08]MH_SAM_APDU [12:19:08]CAPDU: 80 0D 02 02 05 05 BF 32 D5 92 [12:19:08]Write to MH i2c: E2 0D 00 72 7B 80 0D 02 02 05 00 05 BF 32 D5 92 00 00 CE [12:19:08]Write i2c OK [12:19:08]MH_I2C_Read... [12:19:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:19:08]Read from MH i2c: E2 [12:19:08]MH_I2C_Read... [12:19:08]Read from MH i2c: E2 03 00 [12:19:08]MH_I2C_Read... [12:19:08]Read from MH i2c: E2 03 00 72 7B 00 90 00 61 [12:19:08]RAPDU: 90 00 [12:19:08]wFMCommunicate OK [12:19:08]wFMCommunicate request_size=4 [12:19:08]MH_SAM_APDU [12:19:08]CAPDU: 80 0D 03 02 [12:19:08]Write to MH i2c: E2 08 00 73 7B 80 0D 03 02 00 00 00 00 69 [12:19:08]Write i2c OK [12:19:08]MH_I2C_Read... [12:19:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:19:08]Read from MH i2c: E2 [12:19:08]MH_I2C_Read... [12:19:08]Read from MH i2c: E2 0B 00 [12:19:08]MH_I2C_Read... [12:19:08]Read from MH i2c: E2 0B 00 73 7B 00 D4 A5 78 3D 5A 0F 00 87 90 00 88 [12:19:08]RAPDU: D4 A5 78 3D 5A 0F 00 87 90 00 [12:19:08]wFMCommunicate OK [12:19:08]SAM_PROTO_SignData done [12:19:08]FM_MakeSignedData done [12:19:08]CreateOFDProtocolMessage [12:19:08]wFMCommunicate request_size=4 [12:19:08]MH_SAM_APDU [12:19:08]CAPDU: 80 11 00 00 [12:19:08]Write to MH i2c: E2 08 00 74 7B 80 11 00 00 00 00 00 00 69 [12:19:08]Write i2c OK [12:19:08]MH_I2C_Read... [12:19:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:19:08]Read from MH i2c: E2 [12:19:08]MH_I2C_Read... [12:19:08]Read from MH i2c: E2 17 00 [12:19:08]MH_I2C_Read... [12:19:08]Read from MH i2c: E2 17 00 74 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 B8 [12:19:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:19:08]wFMCommunicate OK [12:19:08]CreateOFDProtocolMessage done [12:19:08]OFDSenderStorePacket 28666 [12:19:08]StoreOFDPacket docnum=28666 [12:19:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 5E 02 07 01 FE A2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3E 12 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 C3 26 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FA 6F 00 00 35 04 06 00 EB 05 BF 32 D5 92 D4 A5 78 3D 5A 0F 00 87 [12:19:08]CheckFolder [12:19:08]dirname=/storage/ofd_packets [12:19:08]CheckFolder done [12:19:08]ProducePacketName [12:19:08]name=ofd_packets/00028666 [12:19:08]NVStorageSaveData ofd_packets/00028666 [12:19:08]File name is /storage/ofd_packets/00028666 [12:19:08]Write 301 bytes [12:19:08]NVStorageSaveData done [12:19:08]OFDSenderStorePacket done [12:19:08]KKMCreateOFDPacket done [12:19:08]NVStorageSaveData kkm_last_timestamp [12:19:08]File name is /storage/kkm_last_timestamp [12:19:08]Write 4 bytes [12:19:08]NVStorageSaveData done [12:19:08]ExternCall_PrintAddStr [12:19:08]wPrintStart [12:19:08]Write to MH i2c: 01 00 00 75 7B F0 [12:19:08]Write i2c OK [12:19:08]MH_I2C_Read... [12:19:08]Read from MH i2c: 01 [12:19:08]MH_I2C_Read... [12:19:08]Read from MH i2c: 01 07 00 [12:19:08]MH_I2C_Read... [12:19:08]Read from MH i2c: 01 07 00 75 7B 00 00 00 00 00 FF 0F 05 [12:19:08]RasterBufferAndPrint [12:19:08]line Счет N : (1)346998 [12:19:08]line ИНН: 02508201610067 [12:19:08]line Контрольно-Кассовый Чек [12:19:08]line ПРОДАЖА [12:19:08]line ТРК (МРК, ГНК) : 13 [12:19:08]line Товар: 2710124130 [12:19:08]line Аи-92-К-5 [12:19:08]line 4.670 * 64.30 [12:19:08]line = 300.28 [12:19:08]line НДС 12% НСП 1% [12:19:08]line > о реализуемом товаре [12:19:08]line ОКРУГЛЕНИЕ: -0.28 [12:19:08]line ИТОГО: 300.00 [12:19:08]line Внесено: 300.00 [12:19:08]line СДАЧА: 0.00 [12:19:08]line НСП 1% : 2.66 [12:19:08]line НДС 12% : 31.89 [12:19:08]line Наличными: 300.00 [12:19:08]line Безнал.: 0.00 [12:19:08]line Место: АЗС № 108 "Партнер Нефть" [12:19:08]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [12:19:08]line СНО: Общий режим [12:19:08]line Чек 115 12.04.2024 12:19 [12:19:08]line Смена: 113 ФФД: 1.0 [12:19:08]line ЗНМ: 0300000027 [12:19:08]line РНМ: 0000138879044617 [12:19:08]line Версия ККМ: 001 [12:19:08]line ФМ: 0000000000963154 [12:19:08]line ФД: 28666 [12:19:08]line ФПД: 258409915143570 [12:19:08]line 1/tax-web-control/client/api/v1/ticket?date=20240412T121915&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28666&fm=258409915143570&tin=02508201610067®Number=0000138879044617&sum=30000 [12:19:08]OFD Sender: Processing packet 28666 [packets to send 8, broken 7] [12:19:08]ProducePacketName [12:19:08]name=ofd_packets/00028666 [12:19:08]OFD Sender: To server: pG, [12:19:08]CommunicateWithHost lk.salyk.kg:30040 [12:19:08]ConnectInit lk.salyk.kg [12:19:08]written 0, free lines is 4095 [12:19:09]Connected sock=7 [12:19:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 5E 02 07 01 FE A2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3E 12 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 C3 26 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FA 6F 00 00 35 04 06 00 EB 05 BF 32 D5 92 D4 A5 78 3D 5A 0F 00 87 [12:19:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 B1 1E 47 00 F5 A0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FA 6F 00 00 F4 03 04 00 6D D1 18 66 B6 04 01 00 00 DE B5 BF 57 F7 35 FE B4 [12:19:09]CommunicateWithHost err = 0 [12:19:09]CheckOFDResponse [12:19:09]1017 (14) - 77093643461234 [12:19:09]1041 (16) - 0000000000963154 [12:19:09]1040 (4) - 28666 [12:19:09]1012 (4) - 12.04.2024 06:15 [12:19:09]1206 (1) - 0 [12:19:09]OFD Sender: Remove packet 28666 [12:19:09]ProducePacketName [12:19:09]name=ofd_packets/00028666 [12:19:09]NVStorageDeleteData [12:19:09]Write to MH i2c: 01 00 00 9F 7B 1A [12:19:09]Write i2c OK [12:19:09]MH_I2C_Read... [12:19:09]Read from MH i2c: 01 [12:19:09]MH_I2C_Read... [12:19:09]Read from MH i2c: 01 07 00 [12:19:09]MH_I2C_Read... [12:19:09]Read from MH i2c: 01 07 00 9F 7B 00 00 00 00 00 D4 0C 01 [12:19:09]RasterBufferAndPrint [12:19:09]line [12:19:09]line [12:19:09]line [12:19:09]line [12:19:09]line [12:19:09]written 0, free lines is 3291 [12:19:09]MH_Cut [12:19:09]Write to MH i2c: D1 01 00 A6 7B 01 F3 [12:19:09]Write i2c OK [12:19:09]MH_I2C_Read... [12:19:09]Read from MH i2c: D1 [12:19:09]MH_I2C_Read... [12:19:09]Read from MH i2c: D1 01 00 [12:19:09]MH_I2C_Read... [12:19:09]Read from MH i2c: D1 01 00 A6 7B 00 F2 [12:19:09]Write to MH i2c: 01 00 00 A7 7B 22 [12:19:09]Write i2c OK [12:19:09]MH_I2C_Read... [12:19:09]OFD Sender: No OFD packet to send [12:19:10]*** Cut start [12:19:10]*** Partial cut [12:19:10]*** CUTSNS_PIN = 1 [12:19:10]*** CUTSNS_PIN = 0 [12:19:10]*** Brake cut motor [12:19:10]Read from MH i2c: 01 [12:19:10]MH_I2C_Read... [12:19:10]*** Stop cut motor [12:19:10]*** Cut end [12:19:10]Read from MH i2c: 01 07 00 [12:19:10]MH_I2C_Read... [12:19:10]Read from MH i2c: 01 07 00 A7 7B 00 00 00 00 00 FF 0F 37 [12:19:10]process_action close_receipt done [12:19:10]requested_data is exist [12:19:10]produce_requested_data [12:19:10]requested_item fm.sn is exist - process it [12:19:10]wFMCommunicate request_size=4 [12:19:10]MH_SAM_APDU [12:19:10]CAPDU: 80 11 00 00 [12:19:10]Write to MH i2c: E2 08 00 A8 7B 80 11 00 00 00 00 00 00 9D [12:19:10]Write i2c OK [12:19:10]MH_I2C_Read... [12:19:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:19:10]Read from MH i2c: E2 [12:19:10]MH_I2C_Read... [12:19:10]Read from MH i2c: E2 17 00 [12:19:10]MH_I2C_Read... [12:19:10]Read from MH i2c: E2 17 00 A8 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 EC [12:19:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:19:10]wFMCommunicate OK [12:19:10]requested_item fd.num is exist - process it [12:19:10]SAM_PROTO_GetFieldsCounters [12:19:10]wFMCommunicate request_size=4 [12:19:10]MH_SAM_APDU [12:19:10]CAPDU: 80 13 00 00 [12:19:10]Write to MH i2c: E2 08 00 A9 7B 80 13 00 00 00 00 00 00 A0 [12:19:10]Write i2c OK [12:19:10]MH_I2C_Read... [12:19:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:19:11]Read from MH i2c: E2 [12:19:11]MH_I2C_Read... [12:19:11]Read from MH i2c: E2 62 00 [12:19:11]MH_I2C_Read... [12:19:11]Read from MH i2c: E2 62 00 A9 7B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 FA 6F 00 00 0E 04 04 00 71 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 11 [12:19:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 FA 6F 00 00 0E 04 04 00 71 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:19:11]wFMCommunicate OK [12:19:11]SAM_PROTO_GetFieldsCounters done [12:19:11]requested_item shift.num is exist - process it [12:19:11]requested_item shift.opened is exist - process it [12:19:11]req_shift_opened [12:19:11]FM_GetShiftState [12:19:11]SAM_PROTO_GetShiftState [12:19:11]wFMCommunicate request_size=4 [12:19:11]MH_SAM_APDU [12:19:11]CAPDU: 80 13 01 00 [12:19:11]Write to MH i2c: E2 08 00 AA 7B 80 13 01 00 00 00 00 00 A2 [12:19:11]Write i2c OK [12:19:11]MH_I2C_Read... [12:19:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:19:11]Read from MH i2c: E2 [12:19:11]MH_I2C_Read... [12:19:11]Read from MH i2c: E2 0E 00 [12:19:11]MH_I2C_Read... [12:19:11]Read from MH i2c: E2 0E 00 AA 7B 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 B3 [12:19:11]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [12:19:11]wFMCommunicate OK [12:19:11]SAM_PROTO_GetShiftState done [12:19:11]FM_GetShiftState done [12:19:11]req_shift_opened done [12:19:11]requested_item shift.open_date is exist - process it [12:19:11]req_shift_open_date [12:19:11]req_shift_open_date done [12:19:11]produce_requested_data done [12:19:11]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28666,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [12:19:11]process_action_free close_receipt [12:19:11]json_value_free [12:19:11]json_value_free done [12:19:11]process_json_proto returns [12:19:11]Send response to host [12:19:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28666,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [12:19:11]free response buf [12:19:11]execute_script done [12:19:11]execute_script returns [12:19:11]free content buf [12:19:11]Sock 5.Close socket [12:19:11]Sock 5.Thread stoped [12:19:14]OFD Sender: No OFD packet to send [12:19:19]OFD Sender: No OFD packet to send [12:19:24]OFD Sender: No OFD packet to send [12:19:29]OFD Sender: No OFD packet to send [12:19:34]OFD Sender: No OFD packet to send [12:19:39]OFD Sender: No OFD packet to send [12:19:44]OFD Sender: No OFD packet to send [12:19:49]OFD Sender: No OFD packet to send [12:19:54]OFD Sender: No OFD packet to send [12:19:59]OFD Sender: No OFD packet to send [12:20:04]OFD Sender: No OFD packet to send [12:20:09]OFD Sender: No OFD packet to send [12:20:14]OFD Sender: No OFD packet to send [12:20:19]OFD Sender: No OFD packet to send [12:20:24]accept exits with 6 [12:20:24]New connection [12:20:24]New thread 3066641764 created [12:20:24]Thread 3066498404 joined [12:20:24]Waiting for new connection... [12:20:24] Sock 6.Parse request [12:20:24]Sock 6.Check first char [12:20:24]Sock 6.First char is OK [12:20:24]request: POST /json_proto HTTP/1.0 [12:20:24]Method: POST [12:20:24]URL: /json_proto [12:20:24]Method is POST - this is cgi request [12:20:24]url: /json_proto [12:20:24]query_string will be loaded in cgi processing [12:20:24]execute_cgi json_proto POST (null) [12:20:24]execute_cgi path=json_proto method=POST [12:20:24]POST find Content-Length [12:20:24]Host: 172.17.33.3:8080 [12:20:24]Content-Length: 675 [12:20:24]Content-Type: application/json [12:20:24] [12:20:24]POST finish read [12:20:24]Found Content-Length = 675 [12:20:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)346999", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 15.320, "sum" : 1000.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:20:24]execute_script... [12:20: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)346999", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 15.320, "sum" : 1000.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:20:24]POST & json_proto [12:20:24]process_json_proto [12:20:24]json parsed OK: [12:20:24]protocol is kg_v1.0 [12:20:24]action value=close_receipt [12:20:24]process_action close_receipt [12:20:24]cmd_close_receipt [12:20:24]MH_GetDate [12:20:24]Write to MH i2c: F0 00 00 AB 7B 15 [12:20:24]Write i2c OK [12:20:24]MH_I2C_Read... [12:20:24]Read from MH i2c: F0 [12:20:24]MH_I2C_Read... [12:20:24]Read from MH i2c: F0 09 00 [12:20:24]MH_I2C_Read... [12:20:24]Read from MH i2c: F0 09 00 AB 7B 00 10 27 19 66 23 5B 8F 65 46 [12:20:24]GetLastDocTimeStamp 1712924355 [12:20:24]current date 1712924432 [12:20:24]FM_GetShiftState [12:20:24]SAM_PROTO_GetShiftState [12:20:24]wFMCommunicate request_size=4 [12:20:24]MH_SAM_APDU [12:20:24]CAPDU: 80 13 01 00 [12:20:24]Write to MH i2c: E2 08 00 AC 7B 80 13 01 00 00 00 00 00 A4 [12:20:24]Write i2c OK [12:20:24]MH_I2C_Read... [12:20:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:20:24]Read from MH i2c: E2 [12:20:24]MH_I2C_Read... [12:20:24]Read from MH i2c: E2 0E 00 [12:20:24]MH_I2C_Read... [12:20:24]Read from MH i2c: E2 0E 00 AC 7B 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 B5 [12:20:24]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [12:20:24]wFMCommunicate OK [12:20:24]SAM_PROTO_GetShiftState done [12:20:24]FM_GetShiftState done [12:20:24]opened in 1712881416 [12:20:24]opened+sec_in_day 1712967816 [12:20:24]quantity*price = 100039 [12:20:24]sum+1 = 100041 [12:20:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 116 12.04.2024 12:20 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28667 ФПД: 102574152423636 1/tax-web-control/client/api/v1/ticket?date=20240412T122032&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28667&fm=102574152423636&tin=02508201610067®Number=0000138879044617&sum=100000 [12:20:25]StoreToDocumentArchive [12:20:25]shift 113 fd 28667 [12:20:25]save to /storage/0113/doc_00028667 [12:20:25]save last doc name /storage/0113/doc_00028667 to /storage/kkm_last_doc_name [12:20:25]save OK [12:20:25]Clear old archive folders... [12:20:25]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:20:25]tlvbuf is 01B2FE30 [12:20:25]SAM_PROTO_ClearQueue [12:20:25]wFMCommunicate request_size=4 [12:20:25]MH_SAM_APDU [12:20:25]CAPDU: 80 09 00 00 [12:20:25]Write to MH i2c: E2 08 00 B9 7B 80 09 00 00 00 00 00 00 A6 [12:20:25]Write i2c OK [12:20:25]MH_I2C_Read... [12:20:25]*** iso7816_exchange 80 09 00 00... 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 B9 7B 00 90 00 A8 [12:20:25]RAPDU: 90 00 [12:20:25]wFMCommunicate OK [12:20:25]SAM_PROTO_ClearQueue done [12:20:25]KKMCreateOFDPacket [12:20:25]OFDProtocolAddRootSTLVToBuf [12:20:25]FM_MakeSignedData [12:20:25]FM_MakeSignedData [12:20:25]SAM_PROTO_SignData [12:20:25]wFMCommunicate request_size=4 [12:20:25]MH_SAM_APDU [12:20:25]CAPDU: 80 0D 01 02 [12:20:25]Write to MH i2c: E2 08 00 BA 7B 80 0D 01 02 00 00 00 00 AE [12:20:25]Write i2c OK [12:20:25]MH_I2C_Read... [12:20:25]*** iso7816_exchange 80 0D 01 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 BA 7B 00 90 00 A9 [12:20:25]RAPDU: 90 00 [12:20:25]wFMCommunicate OK [12:20:25]wFMCommunicate request_size=255 [12:20:25]MH_SAM_APDU [12:20:25]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 3B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 10 27 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FB 6F 00 00 35 04 06 00 [12:20:25]Write to MH i2c: E2 02 01 BB 7B 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 3B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 10 27 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FB 6F 00 00 35 04 06 00 00 00 F0 [12:20:25]Write i2c OK [12:20:25]MH_I2C_Read... [12:20:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:20:26]Read from MH i2c: E2 [12:20:26]MH_I2C_Read... [12:20:26]Read from MH i2c: E2 03 00 [12:20:26]MH_I2C_Read... [12:20:26]Read from MH i2c: E2 03 00 BB 7B 00 90 00 AA [12:20:26]RAPDU: 90 00 [12:20:26]wFMCommunicate OK [12:20:26]wFMCommunicate request_size=11 [12:20:26]MH_SAM_APDU [12:20:26]CAPDU: 80 0D 02 02 06 5D 4A 67 EB 18 D4 [12:20:26]Write to MH i2c: E2 0E 00 BC 7B 80 0D 02 02 06 00 5D 4A 67 EB 18 D4 00 00 A2 [12:20:26]Write i2c OK [12:20:26]MH_I2C_Read... [12:20:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:20:26]Read from MH i2c: E2 [12:20:26]MH_I2C_Read... [12:20:26]Read from MH i2c: E2 03 00 [12:20:26]MH_I2C_Read... [12:20:26]Read from MH i2c: E2 03 00 BC 7B 00 90 00 AB [12:20:26]RAPDU: 90 00 [12:20:26]wFMCommunicate OK [12:20:26]wFMCommunicate request_size=4 [12:20:26]MH_SAM_APDU [12:20:26]CAPDU: 80 0D 03 02 [12:20:26]Write to MH i2c: E2 08 00 BD 7B 80 0D 03 02 00 00 00 00 B3 [12:20:26]Write i2c OK [12:20:26]MH_I2C_Read... [12:20:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:20:26]Read from MH i2c: E2 [12:20:26]MH_I2C_Read... [12:20:26]Read from MH i2c: E2 0B 00 [12:20:26]MH_I2C_Read... [12:20:26]Read from MH i2c: E2 0B 00 BD 7B 00 F5 46 00 F5 37 37 F1 F1 90 00 34 [12:20:26]RAPDU: F5 46 00 F5 37 37 F1 F1 90 00 [12:20:26]wFMCommunicate OK [12:20:26]SAM_PROTO_SignData done [12:20:26]FM_MakeSignedData done [12:20:26]CreateOFDProtocolMessage [12:20:26]wFMCommunicate request_size=4 [12:20:26]MH_SAM_APDU [12:20:26]CAPDU: 80 11 00 00 [12:20:26]Write to MH i2c: E2 08 00 BE 7B 80 11 00 00 00 00 00 00 B3 [12:20:26]Write i2c OK [12:20:26]MH_I2C_Read... [12:20:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:20:26]Read from MH i2c: E2 [12:20:26]MH_I2C_Read... [12:20:26]Read from MH i2c: E2 17 00 [12:20:26]MH_I2C_Read... [12:20:26]Read from MH i2c: E2 17 00 BE 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 02 [12:20:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:20:26]wFMCommunicate OK [12:20:26]CreateOFDProtocolMessage done [12:20:26]OFDSenderStorePacket 28667 [12:20:26]StoreOFDPacket docnum=28667 [12:20:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 48 67 08 01 94 6F 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 3B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 10 27 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FB 6F 00 00 35 04 06 00 5D 4A 67 EB 18 D4 F5 46 00 F5 37 37 F1 F1 [12:20:26]CheckFolder [12:20:26]dirname=/storage/ofd_packets [12:20:26]CheckFolder done [12:20:26]ProducePacketName [12:20:26]name=ofd_packets/00028667 [12:20:26]NVStorageSaveData ofd_packets/00028667 [12:20:26]File name is /storage/ofd_packets/00028667 [12:20:26]Write 302 bytes [12:20:26]NVStorageSaveData done [12:20:26]OFDSenderStorePacket done [12:20:26]KKMCreateOFDPacket done [12:20:26]NVStorageSaveData kkm_last_timestamp [12:20:26]File name is /storage/kkm_last_timestamp [12:20:26]Write 4 bytes [12:20:26]NVStorageSaveData done [12:20:26]ExternCall_PrintAddStr [12:20:26]wPrintStart [12:20:26]Write to MH i2c: 01 00 00 BF 7B 3A [12:20:26]Write i2c OK [12:20:26]MH_I2C_Read... [12:20:26]Read from MH i2c: 01 [12:20:26]MH_I2C_Read... [12:20:26]Read from MH i2c: 01 07 00 [12:20:26]MH_I2C_Read... [12:20:26]Read from MH i2c: 01 07 00 BF 7B 00 00 00 00 00 FF 0F 4F [12:20:26]RasterBufferAndPrint [12:20:26]line Счет N : (1)346999 [12:20:26]line ИНН: 02508201610067 [12:20:26]line Контрольно-Кассовый Чек [12:20:26]line ПРОДАЖА [12:20:26]line ТРК (МРК, ГНК) : 52 [12:20:26]line Товар: 2710124130 [12:20:26]line SUPER-92-К-5 [12:20:26]line 15.320 * 65.30 [12:20:26]line = 1000.40 [12:20:26]line НДС 12% НСП 1% [12:20:26]line > о реализуемом товаре [12:20:26]line ОКРУГЛЕНИЕ: -0.40 [12:20:26]line ИТОГО: 1000.00 [12:20:26]line Внесено: 1000.00 [12:20:26]line СДАЧА: 0.00 [12:20:26]line НСП 1% : 8.85 [12:20:26]line НДС 12% : 106.24 [12:20:26]line Наличными: 1000.00 [12:20:26]line Безнал.: 0.00 [12:20:26]line Место: АЗС № 108 "Партнер Нефть" [12:20:26]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [12:20:26]line СНО: Общий режим [12:20:26]line Чек 116 12.04.2024 12:20 [12:20:26]line Смена: 113 ФФД: 1.0 [12:20:26]line ЗНМ: 0300000027 [12:20:26]line РНМ: 0000138879044617 [12:20:26]line Версия ККМ: 001 [12:20:26]line ФМ: 0000000000963154 [12:20:26]line ФД: 28667 [12:20:26]line ФПД: 102574152423636 [12:20:26]line 1/tax-web-control/client/api/v1/ticket?date=20240412T122032&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28667&fm=102574152423636&tin=02508201610067®Number=0000138879044617&sum=100000 [12:20:26]OFD Sender: Processing packet 28667 [packets to send 8, broken 7] [12:20:26]ProducePacketName [12:20:26]name=ofd_packets/00028667 [12:20:26]OFD Sender: To server: pG, [12:20:26]CommunicateWithHost lk.salyk.kg:30040 [12:20:26]ConnectInit lk.salyk.kg [12:20:26]written 0, free lines is 4095 [12:20:26]Connected sock=7 [12:20:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 48 67 08 01 94 6F 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 3B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 10 27 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FB 6F 00 00 35 04 06 00 5D 4A 67 EB 18 D4 F5 46 00 F5 37 37 F1 F1 [12:20:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 51 4A 47 00 FF F1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FB 6F 00 00 F4 03 04 00 BA D1 18 66 B6 04 01 00 00 4C 2F E3 66 AF EA 74 B0 [12:20:26]CommunicateWithHost err = 0 [12:20:26]CheckOFDResponse [12:20:26]1017 (14) - 77093643461234 [12:20:26]1041 (16) - 0000000000963154 [12:20:26]1040 (4) - 28667 [12:20:26]1012 (4) - 12.04.2024 06:16 [12:20:26]1206 (1) - 0 [12:20:26]OFD Sender: Remove packet 28667 [12:20:26]ProducePacketName [12:20:26]name=ofd_packets/00028667 [12:20:26]NVStorageDeleteData [12:20:27]Write to MH i2c: 01 00 00 E9 7B 64 [12:20:27]Write i2c OK [12:20:27]MH_I2C_Read... [12:20:27]Read from MH i2c: 01 [12:20:27]MH_I2C_Read... [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 E9 7B 00 00 00 00 00 DD 0C 54 [12:20:27]RasterBufferAndPrint [12:20:27]line [12:20:27]line [12:20:27]line [12:20:27]line [12:20:27]line [12:20:27]written 0, free lines is 3300 [12:20:27]MH_Cut [12:20:27]Write to MH i2c: D1 01 00 F0 7B 01 3D [12:20:27]Write i2c OK [12:20:27]MH_I2C_Read... [12:20:27]Read from MH i2c: D1 [12:20:27]MH_I2C_Read... [12:20:27]Read from MH i2c: D1 01 00 [12:20:27]MH_I2C_Read... [12:20:27]Read from MH i2c: D1 01 00 F0 7B 00 3C [12:20:27]Write to MH i2c: 01 00 00 F1 7B 6C [12:20:27]Write i2c OK [12:20:27]MH_I2C_Read... [12:20:27]OFD Sender: No OFD packet to send [12:20:27]*** Cut start [12:20:27]*** Partial cut [12:20:27]*** CUTSNS_PIN = 1 [12:20:27]*** CUTSNS_PIN = 0 [12:20:28]*** Brake cut motor [12:20:28]Read from MH i2c: 01 [12:20:28]MH_I2C_Read... [12:20:28]*** Stop cut motor [12:20:28]*** Cut end [12:20:28]Read from MH i2c: 01 07 00 [12:20:28]MH_I2C_Read... [12:20:28]Read from MH i2c: 01 07 00 F1 7B 00 00 00 00 00 FF 0F 81 [12:20:28]process_action close_receipt done [12:20:28]requested_data is exist [12:20:28]produce_requested_data [12:20:28]requested_item fm.sn is exist - process it [12:20:28]wFMCommunicate request_size=4 [12:20:28]MH_SAM_APDU [12:20:28]CAPDU: 80 11 00 00 [12:20:28]Write to MH i2c: E2 08 00 F2 7B 80 11 00 00 00 00 00 00 E7 [12:20:28]Write i2c OK [12:20:28]MH_I2C_Read... [12:20:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:20:28]Read from MH i2c: E2 [12:20:28]MH_I2C_Read... [12:20:28]Read from MH i2c: E2 17 00 [12:20:28]MH_I2C_Read... [12:20:28]Read from MH i2c: E2 17 00 F2 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 36 [12:20:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:20:28]wFMCommunicate OK [12:20:28]requested_item fd.num is exist - process it [12:20:28]SAM_PROTO_GetFieldsCounters [12:20:28]wFMCommunicate request_size=4 [12:20:28]MH_SAM_APDU [12:20:28]CAPDU: 80 13 00 00 [12:20:28]Write to MH i2c: E2 08 00 F3 7B 80 13 00 00 00 00 00 00 EA [12:20:28]Write i2c OK [12:20:28]MH_I2C_Read... [12:20:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:20:28]Read from MH i2c: E2 [12:20:28]MH_I2C_Read... [12:20:28]Read from MH i2c: E2 62 00 [12:20:28]MH_I2C_Read... [12:20:28]Read from MH i2c: E2 62 00 F3 7B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 FB 6F 00 00 0E 04 04 00 71 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 5F [12:20:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 FB 6F 00 00 0E 04 04 00 71 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 [12:20:28]wFMCommunicate OK [12:20:28]SAM_PROTO_GetFieldsCounters done [12:20:28]requested_item shift.num is exist - process it [12:20:28]requested_item shift.opened is exist - process it [12:20:28]req_shift_opened [12:20:28]FM_GetShiftState [12:20:28]SAM_PROTO_GetShiftState [12:20:28]wFMCommunicate request_size=4 [12:20:28]MH_SAM_APDU [12:20:28]CAPDU: 80 13 01 00 [12:20:28]Write to MH i2c: E2 08 00 F4 7B 80 13 01 00 00 00 00 00 EC [12:20:28]Write i2c OK [12:20:28]MH_I2C_Read... [12:20:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:20:28]Read from MH i2c: E2 [12:20:28]MH_I2C_Read... [12:20:28]Read from MH i2c: E2 0E 00 [12:20:28]MH_I2C_Read... [12:20:28]Read from MH i2c: E2 0E 00 F4 7B 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 FD [12:20:28]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [12:20:28]wFMCommunicate OK [12:20:28]SAM_PROTO_GetShiftState done [12:20:28]FM_GetShiftState done [12:20:28]req_shift_opened done [12:20:28]requested_item shift.open_date is exist - process it [12:20:28]req_shift_open_date [12:20:28]req_shift_open_date done [12:20:28]produce_requested_data done [12:20:28]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28667,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [12:20:28]process_action_free close_receipt [12:20:28]json_value_free [12:20:28]json_value_free done [12:20:28]process_json_proto returns [12:20:28]Send response to host [12:20:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28667,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [12:20:28]free response buf [12:20:28]execute_script done [12:20:28]execute_script returns [12:20:28]free content buf [12:20:28]Sock 6.Close socket [12:20:28]Sock 6.Thread stoped [12:20:32]OFD Sender: No OFD packet to send [12:20:37]OFD Sender: No OFD packet to send [12:20:42]OFD Sender: No OFD packet to send [12:20:47]OFD Sender: No OFD packet to send [12:20:52]OFD Sender: No OFD packet to send [12:20:57]OFD Sender: No OFD packet to send [12:21:02]OFD Sender: No OFD packet to send [12:21:07]OFD Sender: No OFD packet to send [12:21:12]OFD Sender: No OFD packet to send [12:21:17]OFD Sender: No OFD packet to send [12:21:22]OFD Sender: No OFD packet to send [12:21:27]OFD Sender: No OFD packet to send [12:21:32]OFD Sender: No OFD packet to send [12:21:37]OFD Sender: No OFD packet to send [12:21:42]OFD Sender: No OFD packet to send [12:21:47]OFD Sender: No OFD packet to send [12:21:52]OFD Sender: No OFD packet to send [12:21:57]OFD Sender: No OFD packet to send [12:22:02]OFD Sender: No OFD packet to send [12:22:07]OFD Sender: No OFD packet to send [12:22:12]OFD Sender: No OFD packet to send [12:22:17]OFD Sender: No OFD packet to send [12:22:22]OFD Sender: No OFD packet to send [12:22:27]OFD Sender: No OFD packet to send [12:22:32]OFD Sender: No OFD packet to send [12:22:37]OFD Sender: No OFD packet to send [12:22:42]OFD Sender: No OFD packet to send [12:22:47]OFD Sender: No OFD packet to send [12:22:52]OFD Sender: No OFD packet to send [12:22:57]OFD Sender: No OFD packet to send [12:23:02]OFD Sender: No OFD packet to send [12:23:07]OFD Sender: No OFD packet to send [12:23:12]OFD Sender: No OFD packet to send [12:23:17]OFD Sender: No OFD packet to send [12:23:22]OFD Sender: No OFD packet to send [12:23:27]OFD Sender: No OFD packet to send [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:00]accept exits with 5 [12:24:00]New connection [12:24:00]New thread 3066498404 created [12:24:00]Thread 3066641764 joined [12:24:00]Waiting for new connection... [12:24:00] Sock 5.Parse request [12:24:00]Sock 5.Check first char [12:24:00]Sock 5.First char is OK [12:24:00]request: POST /json_proto HTTP/1.0 [12:24:00]Method: POST [12:24:00]URL: /json_proto [12:24:00]Method is POST - this is cgi request [12:24:00]url: /json_proto [12:24:00]query_string will be loaded in cgi processing [12:24:00]execute_cgi json_proto POST (null) [12:24:00]execute_cgi path=json_proto method=POST [12:24:00]POST find Content-Length [12:24:00]Host: 172.17.33.3:8080 [12:24:00]Content-Length: 840 [12:24:00]Content-Type: application/json [12:24:00] [12:24:00]POST finish read [12:24:00]Found Content-Length = 840 [12:24:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347000", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 20.030, "sum" : 1450.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1450.17 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:24:00]execute_script... [12:24: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)347000", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 20.030, "sum" : 1450.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1450.17 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:24:00]POST & json_proto [12:24:00]process_json_proto [12:24:00]json parsed OK: [12:24:00]protocol is kg_v1.0 [12:24:00]action value=close_receipt [12:24:00]process_action close_receipt [12:24:00]cmd_close_receipt [12:24:00]MH_GetDate [12:24:00]Write to MH i2c: F0 00 00 F5 7B 5F [12:24:00]Write i2c OK [12:24:00]MH_I2C_Read... [12:24:00]Read from MH i2c: F0 [12:24:00]MH_I2C_Read... [12:24:00]Read from MH i2c: F0 09 00 [12:24:00]MH_I2C_Read... [12:24:00]Read from MH i2c: F0 09 00 F5 7B 00 E8 27 19 66 23 5B 8F 65 68 [12:24:00]GetLastDocTimeStamp 1712924432 [12:24:00]current date 1712924648 [12:24:00]FM_GetShiftState [12:24:00]SAM_PROTO_GetShiftState [12:24:00]wFMCommunicate request_size=4 [12:24:00]MH_SAM_APDU [12:24:00]CAPDU: 80 13 01 00 [12:24:00]Write to MH i2c: E2 08 00 F6 7B 80 13 01 00 00 00 00 00 EE [12:24:00]Write i2c OK [12:24:00]MH_I2C_Read... [12:24:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:24:00]Read from MH i2c: E2 [12:24:00]MH_I2C_Read... [12:24:00]Read from MH i2c: E2 0E 00 [12:24:00]MH_I2C_Read... [12:24:00]Read from MH i2c: E2 0E 00 F6 7B 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 FF [12:24:00]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [12:24:00]wFMCommunicate OK [12:24:00]SAM_PROTO_GetShiftState done [12:24:00]FM_GetShiftState done [12:24:00]opened in 1712881416 [12:24:00]opened+sec_in_day 1712967816 [12:24:00]quantity*price = 145017 [12:24:00]sum+1 = 145018 [12:24:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1450.17 НСП 1% : 12.83 НДС 12% : 154.00 Наличными: 0.00 Безнал.: 1450.17 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 117 12.04.2024 12:24 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 28668 ФПД: 210448250240231 1/tax-web-control/client/api/v1/ticket?date=20240412T122409&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28668&fm=210448250240231&tin=02508201610067®Number=0000138879044617&sum=145017 [12:24:02]StoreToDocumentArchive [12:24:02]shift 113 fd 28668 [12:24:02]save to /storage/0113/doc_00028668 [12:24:02]save last doc name /storage/0113/doc_00028668 to /storage/kkm_last_doc_name [12:24:02]save OK [12:24:02]Clear old archive folders... [12:24:02]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:24:02]tlvbuf is 01ACCAE0 [12:24:02]SAM_PROTO_ClearQueue [12:24:02]wFMCommunicate request_size=4 [12:24:02]MH_SAM_APDU [12:24:02]CAPDU: 80 09 00 00 [12:24:02]Write to MH i2c: E2 08 00 03 7C 80 09 00 00 00 00 00 00 F1 [12:24:02]Write i2c OK [12:24:02]MH_I2C_Read... [12:24:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:24:02]Read from MH i2c: E2 [12:24:02]MH_I2C_Read... [12:24:02]Read from MH i2c: E2 03 00 [12:24:02]MH_I2C_Read... [12:24:02]Read from MH i2c: E2 03 00 03 7C 00 90 00 F3 [12:24:02]RAPDU: 90 00 [12:24:02]wFMCommunicate OK [12:24:02]SAM_PROTO_ClearQueue done [12:24:02]KKMCreateOFDPacket [12:24:02]OFDProtocolAddRootSTLVToBuf [12:24:02]FM_MakeSignedData [12:24:02]FM_MakeSignedData [12:24:02]SAM_PROTO_SignData [12:24:02]wFMCommunicate request_size=4 [12:24:02]MH_SAM_APDU [12:24:02]CAPDU: 80 0D 01 02 [12:24:02]Write to MH i2c: E2 08 00 04 7C 80 0D 01 02 00 00 00 00 F9 [12:24:02]Write i2c OK [12:24:02]MH_I2C_Read... [12:24:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:24:02]Read from MH i2c: E2 [12:24:02]MH_I2C_Read... [12:24:02]Read from MH i2c: E2 03 00 [12:24:02]MH_I2C_Read... [12:24:02]Read from MH i2c: E2 03 00 04 7C 00 90 00 F4 [12:24:02]RAPDU: 90 00 [12:24:02]wFMCommunicate OK [12:24:02]wFMCommunicate request_size=255 [12:24:02]MH_SAM_APDU [12:24: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 35 FF 03 08 00 03 3E 4E 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 79 36 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 36 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 3C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 36 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 E9 27 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FC 6F 00 00 35 04 06 00 BF 66 CD 32 [12:24:02]Write to MH i2c: E2 02 01 05 7C 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 35 FF 03 08 00 03 3E 4E 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 79 36 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 36 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 3C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 36 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 E9 27 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FC 6F 00 00 35 04 06 00 BF 66 CD 32 00 00 E6 [12:24:02]Write i2c OK [12:24:02]MH_I2C_Read... [12:24:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:24:02]Read from MH i2c: E2 [12:24:02]MH_I2C_Read... [12:24:02]Read from MH i2c: E2 03 00 [12:24:02]MH_I2C_Read... [12:24:02]Read from MH i2c: E2 03 00 05 7C 00 90 00 F5 [12:24:02]RAPDU: 90 00 [12:24:02]wFMCommunicate OK [12:24:02]wFMCommunicate request_size=7 [12:24:02]MH_SAM_APDU [12:24:02]CAPDU: 80 0D 02 02 02 FC E7 [12:24:02]Write to MH i2c: E2 0A 00 06 7C 80 0D 02 02 02 00 FC E7 00 00 E3 [12:24:02]Write i2c OK [12:24:02]MH_I2C_Read... [12:24:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:24:02]Read from MH i2c: E2 [12:24:02]MH_I2C_Read... [12:24:02]Read from MH i2c: E2 03 00 [12:24:02]MH_I2C_Read... [12:24:02]Read from MH i2c: E2 03 00 06 7C 00 90 00 F6 [12:24:02]RAPDU: 90 00 [12:24:02]wFMCommunicate OK [12:24:02]wFMCommunicate request_size=4 [12:24:02]MH_SAM_APDU [12:24:02]CAPDU: 80 0D 03 02 [12:24:02]Write to MH i2c: E2 08 00 07 7C 80 0D 03 02 00 00 00 00 FE [12:24:02]Write i2c OK [12:24:02]MH_I2C_Read... [12:24:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:24:02]Read from MH i2c: E2 [12:24:02]MH_I2C_Read... [12:24:02]Read from MH i2c: E2 0B 00 [12:24:02]MH_I2C_Read... [12:24:02]Read from MH i2c: E2 0B 00 07 7C 00 08 C0 AD 9A D4 C4 B0 9C 90 00 F2 [12:24:02]RAPDU: 08 C0 AD 9A D4 C4 B0 9C 90 00 [12:24:02]wFMCommunicate OK [12:24:02]SAM_PROTO_SignData done [12:24:02]FM_MakeSignedData done [12:24:02]CreateOFDProtocolMessage [12:24:02]wFMCommunicate request_size=4 [12:24:02]MH_SAM_APDU [12:24:02]CAPDU: 80 11 00 00 [12:24:02]Write to MH i2c: E2 08 00 08 7C 80 11 00 00 00 00 00 00 FE [12:24:02]Write i2c OK [12:24:02]MH_I2C_Read... [12:24:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:24:02]Read from MH i2c: E2 [12:24:02]MH_I2C_Read... [12:24:02]Read from MH i2c: E2 17 00 [12:24:02]MH_I2C_Read... [12:24:02]Read from MH i2c: E2 17 00 08 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 4D [12:24:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:24:02]wFMCommunicate OK [12:24:02]CreateOFDProtocolMessage done [12:24:02]OFDSenderStorePacket 28668 [12:24:02]StoreOFDPacket docnum=28668 [12:24:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 D6 43 04 01 81 B7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 3E 4E 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 79 36 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 36 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 3C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 36 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 E9 27 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FC 6F 00 00 35 04 06 00 BF 66 CD 32 FC E7 08 C0 AD 9A D4 C4 B0 9C [12:24:02]CheckFolder [12:24:02]dirname=/storage/ofd_packets [12:24:02]CheckFolder done [12:24:02]ProducePacketName [12:24:02]name=ofd_packets/00028668 [12:24:02]NVStorageSaveData ofd_packets/00028668 [12:24:02]File name is /storage/ofd_packets/00028668 [12:24:02]Write 298 bytes [12:24:02]NVStorageSaveData done [12:24:02]OFDSenderStorePacket done [12:24:02]KKMCreateOFDPacket done [12:24:02]NVStorageSaveData kkm_last_timestamp [12:24:02]File name is /storage/kkm_last_timestamp [12:24:02]Write 4 bytes [12:24:02]NVStorageSaveData done [12:24:02]ExternCall_PrintAddStr [12:24:02]wPrintStart [12:24:02]Write to MH i2c: 01 00 00 09 7C 85 [12:24:02]Write i2c OK [12:24:02]MH_I2C_Read... [12:24:02]Read from MH i2c: 01 [12:24:02]MH_I2C_Read... [12:24:02]Read from MH i2c: 01 07 00 [12:24:02]MH_I2C_Read... [12:24:02]Read from MH i2c: 01 07 00 09 7C 00 00 00 00 00 FF 0F 9A [12:24:02]RasterBufferAndPrint [12:24:02]line Счет N : (1)347000 [12:24:02]line ИНН: 02508201610067 [12:24:02]line Контрольно-Кассовый Чек [12:24:02]line ПРОДАЖА [12:24:02]line ТРК (МРК, ГНК) : 51 [12:24:02]line Товар: 2710194210 [12:24:02]line ДТ-К-5 [12:24:02]line 20.030 * 72.40 [12:24:02]line = 1450.17 [12:24:02]line НДС 12% НСП 1% [12:24:02]line > о реализуемом товаре [12:24:02]line ИТОГО: 1450.17 [12:24:02]line НСП 1% : 12.83 [12:24:02]line НДС 12% : 154.00 [12:24:02]line Наличными: 0.00 [12:24:02]line Безнал.: 1450.17 [12:24:02]line Место: АЗС № 108 "Партнер Нефть" [12:24:02]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [12:24:02]line СНО: Общий режим [12:24:02]line Чек 117 12.04.2024 12:24 [12:24:02]line Смена: 113 ФФД: 1.0 [12:24:02]line ЗНМ: 0300000027 [12:24:02]line РНМ: 0000138879044617 [12:24:02]line Версия ККМ: 001 [12:24:02]line Платежная система: АКБ Кыргызстан [12:24:02]line ФМ: 0000000000963154 [12:24:02]line ФД: 28668 [12:24:02]line ФПД: 210448250240231 [12:24:02]line 1/tax-web-control/client/api/v1/ticket?date=20240412T122409&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28668&fm=210448250240231&tin=02508201610067®Number=0000138879044617&sum=145017 [12:24:02]OFD Sender: Processing packet 28668 [packets to send 8, broken 7] [12:24:02]ProducePacketName [12:24:02]name=ofd_packets/00028668 [12:24:02]OFD Sender: To server: pG, [12:24:02]CommunicateWithHost lk.salyk.kg:30040 [12:24:02]ConnectInit lk.salyk.kg [12:24:02]written 0, free lines is 4095 [12:24:03]Connected sock=7 [12:24:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 D6 43 04 01 81 B7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 3E 4E 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 79 36 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 36 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 3C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 36 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 E9 27 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FC 6F 00 00 35 04 06 00 BF 66 CD 32 FC E7 08 C0 AD 9A D4 C4 B0 9C [12:24:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 EF FB 47 00 E2 AA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FC 6F 00 00 F4 03 04 00 93 D2 18 66 B6 04 01 00 00 60 DA 12 59 C1 A2 18 B5 [12:24:03]CommunicateWithHost err = 0 [12:24:03]CheckOFDResponse [12:24:03]1017 (14) - 77093643461234 [12:24:03]1041 (16) - 0000000000963154 [12:24:03]1040 (4) - 28668 [12:24:03]1012 (4) - 12.04.2024 06:20 [12:24:03]1206 (1) - 0 [12:24:03]OFD Sender: Remove packet 28668 [12:24:03]ProducePacketName [12:24:03]name=ofd_packets/00028668 [12:24:03]NVStorageDeleteData [12:24:03]Write to MH i2c: 01 00 00 32 7C AE [12:24:03]Write i2c OK [12:24:03]MH_I2C_Read... [12:24:03]Read from MH i2c: 01 [12:24:03]MH_I2C_Read... [12:24:03]Read from MH i2c: 01 07 00 [12:24:03]MH_I2C_Read... [12:24:03]Read from MH i2c: 01 07 00 32 7C 00 00 00 00 00 DE 0C 9F [12:24:03]RasterBufferAndPrint [12:24:03]line [12:24:03]line [12:24:03]line [12:24:03]line [12:24:03]line [12:24:03]written 0, free lines is 3302 [12:24:03]MH_Cut [12:24:03]Write to MH i2c: D1 01 00 39 7C 01 87 [12:24:03]Write i2c OK [12:24:03]MH_I2C_Read... [12:24:03]Read from MH i2c: D1 [12:24:03]MH_I2C_Read... [12:24:03]Read from MH i2c: D1 01 00 [12:24:03]MH_I2C_Read... [12:24:03]Read from MH i2c: D1 01 00 39 7C 00 86 [12:24:03]Write to MH i2c: 01 00 00 3A 7C B6 [12:24:03]Write i2c OK [12:24:03]MH_I2C_Read... [12:24:03]OFD Sender: No OFD packet to send [12:24:04]*** Cut start [12:24:04]*** Partial cut [12:24:04]*** CUTSNS_PIN = 1 [12:24:04]*** CUTSNS_PIN = 0 [12:24:04]*** Brake cut motor [12:24:04]Read from MH i2c: 01 [12:24:04]MH_I2C_Read... [12:24:04]*** Stop cut motor [12:24:04]*** Cut end [12:24:04]Read from MH i2c: 01 07 00 [12:24:04]MH_I2C_Read... [12:24:04]Read from MH i2c: 01 07 00 3A 7C 00 00 00 00 00 FF 0F CB [12:24:04]process_action close_receipt done [12:24:04]requested_data is exist [12:24:04]produce_requested_data [12:24:04]requested_item fm.sn is exist - process it [12:24:04]wFMCommunicate request_size=4 [12:24:04]MH_SAM_APDU [12:24:04]CAPDU: 80 11 00 00 [12:24:04]Write to MH i2c: E2 08 00 3B 7C 80 11 00 00 00 00 00 00 31 [12:24:04]Write i2c OK [12:24:04]MH_I2C_Read... [12:24:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:24:04]Read from MH i2c: E2 [12:24:04]MH_I2C_Read... [12:24:04]Read from MH i2c: E2 17 00 [12:24:04]MH_I2C_Read... [12:24:04]Read from MH i2c: E2 17 00 3B 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 80 [12:24:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:24:04]wFMCommunicate OK [12:24:04]requested_item fd.num is exist - process it [12:24:04]SAM_PROTO_GetFieldsCounters [12:24:04]wFMCommunicate request_size=4 [12:24:04]MH_SAM_APDU [12:24:04]CAPDU: 80 13 00 00 [12:24:04]Write to MH i2c: E2 08 00 3C 7C 80 13 00 00 00 00 00 00 34 [12:24:04]Write i2c OK [12:24:04]MH_I2C_Read... [12:24:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:24:05]Read from MH i2c: E2 [12:24:05]MH_I2C_Read... [12:24:05]Read from MH i2c: E2 62 00 [12:24:05]MH_I2C_Read... [12:24:05]Read from MH i2c: E2 62 00 3C 7C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 FC 6F 00 00 0E 04 04 00 71 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 AD [12:24:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 FC 6F 00 00 0E 04 04 00 71 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 [12:24:05]wFMCommunicate OK [12:24:05]SAM_PROTO_GetFieldsCounters done [12:24:05]requested_item shift.num is exist - process it [12:24:05]requested_item shift.opened is exist - process it [12:24:05]req_shift_opened [12:24:05]FM_GetShiftState [12:24:05]SAM_PROTO_GetShiftState [12:24:05]wFMCommunicate request_size=4 [12:24:05]MH_SAM_APDU [12:24:05]CAPDU: 80 13 01 00 [12:24:05]Write to MH i2c: E2 08 00 3D 7C 80 13 01 00 00 00 00 00 36 [12:24:05]Write i2c OK [12:24:05]MH_I2C_Read... [12:24:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:24:05]Read from MH i2c: E2 [12:24:05]MH_I2C_Read... [12:24:05]Read from MH i2c: E2 0E 00 [12:24:05]MH_I2C_Read... [12:24:05]Read from MH i2c: E2 0E 00 3D 7C 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 47 [12:24:05]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [12:24:05]wFMCommunicate OK [12:24:05]SAM_PROTO_GetShiftState done [12:24:05]FM_GetShiftState done [12:24:05]req_shift_opened done [12:24:05]requested_item shift.open_date is exist - process it [12:24:05]req_shift_open_date [12:24:05]req_shift_open_date done [12:24:05]produce_requested_data done [12:24:05]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28668,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [12:24:05]process_action_free close_receipt [12:24:05]json_value_free [12:24:05]json_value_free done [12:24:05]process_json_proto returns [12:24:05]Send response to host [12:24:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28668,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [12:24:05]free response buf [12:24:05]execute_script done [12:24:05]execute_script returns [12:24:05]free content buf [12:24:05]Sock 5.Close socket [12:24:05]Sock 5.Thread stoped [12:24:08]OFD Sender: No OFD packet to send [12:24:13]OFD Sender: No OFD packet to send [12:24:18]OFD Sender: No OFD packet to send [12:24:23]OFD Sender: No OFD packet to send [12:24:28]OFD Sender: No OFD packet to send [12:24:33]OFD Sender: No OFD packet to send [12:24:38]accept exits with 6 [12:24:38]New connection [12:24:38]New thread 3066641764 created [12:24:38]Thread 3066498404 joined [12:24:38]Waiting for new connection... [12:24:38] Sock 6.Parse request [12:24:38]Sock 6.Check first char [12:24:38]Sock 6.First char is OK [12:24:38]request: POST /json_proto HTTP/1.0 [12:24:38]Method: POST [12:24:38]URL: /json_proto [12:24:38]Method is POST - this is cgi request [12:24:38]url: /json_proto [12:24:38]query_string will be loaded in cgi processing [12:24:38]execute_cgi json_proto POST (null) [12:24:38]execute_cgi path=json_proto method=POST [12:24:38]POST find Content-Length [12:24:38]Host: 172.17.33.3:8080 [12:24:38]Content-Length: 843 [12:24:38]Content-Type: application/json [12:24:38] [12:24:38]POST finish read [12:24:38]Found Content-Length = 843 [12:24:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347001", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 15.560, "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" ] } } [12:24:38]execute_script... [12:24:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347001", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 15.560, "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" ] } } [12:24:38]POST & json_proto [12:24:38]process_json_proto [12:24:38]json parsed OK: [12:24:38]protocol is kg_v1.0 [12:24:38]action value=close_receipt [12:24:38]process_action close_receipt [12:24:38]cmd_close_receipt [12:24:38]MH_GetDate [12:24:38]Write to MH i2c: F0 00 00 3E 7C A9 [12:24:38]Write i2c OK [12:24:38]MH_I2C_Read... [12:24:38]Read from MH i2c: F0 [12:24:38]MH_I2C_Read... [12:24:38]Read from MH i2c: F0 09 00 [12:24:38]MH_I2C_Read... [12:24:38]Read from MH i2c: F0 09 00 3E 7C 00 0E 28 19 66 23 5B 8F 65 D9 [12:24:38]GetLastDocTimeStamp 1712924649 [12:24:38]current date 1712924686 [12:24:38]FM_GetShiftState [12:24:38]SAM_PROTO_GetShiftState [12:24:38]wFMCommunicate request_size=4 [12:24:38]MH_SAM_APDU [12:24:38]CAPDU: 80 13 01 00 [12:24:38]Write to MH i2c: E2 08 00 3F 7C 80 13 01 00 00 00 00 00 38 [12:24:38]Write i2c OK [12:24:38]MH_I2C_Read... [12:24:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:24:38]Read from MH i2c: E2 [12:24:38]MH_I2C_Read... [12:24:38]Read from MH i2c: E2 0E 00 [12:24:38]MH_I2C_Read... [12:24:38]Read from MH i2c: E2 0E 00 3F 7C 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 49 [12:24:38]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [12:24:38]wFMCommunicate OK [12:24:38]SAM_PROTO_GetShiftState done [12:24:38]FM_GetShiftState done [12:24:38]opened in 1712881416 [12:24:38]opened+sec_in_day 1712967816 [12:24:38]quantity*price = 100050 [12:24:38]sum+1 = 100052 [12:24:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 118 12.04.2024 12:24 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 28669 ФПД: 180649594097512 1/tax-web-control/client/api/v1/ticket?date=20240412T122446&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28669&fm=180649594097512&tin=02508201610067®Number=0000138879044617&sum=100051 [12:24:39]StoreToDocumentArchive [12:24:39]shift 113 fd 28669 [12:24:39]save to /storage/0113/doc_00028669 [12:24:39]save last doc name /storage/0113/doc_00028669 to /storage/kkm_last_doc_name [12:24:39]save OK [12:24:39]Clear old archive folders... [12:24:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:24:39]tlvbuf is 01B30050 [12:24:39]SAM_PROTO_ClearQueue [12:24:39]wFMCommunicate request_size=4 [12:24:39]MH_SAM_APDU [12:24:39]CAPDU: 80 09 00 00 [12:24:39]Write to MH i2c: E2 08 00 4C 7C 80 09 00 00 00 00 00 00 3A [12:24:39]Write i2c OK [12:24:39]MH_I2C_Read... [12:24:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:24:39]Read from MH i2c: E2 [12:24:39]MH_I2C_Read... [12:24:39]Read from MH i2c: E2 03 00 [12:24:39]MH_I2C_Read... [12:24:39]Read from MH i2c: E2 03 00 4C 7C 00 90 00 3C [12:24:39]RAPDU: 90 00 [12:24:39]wFMCommunicate OK [12:24:39]SAM_PROTO_ClearQueue done [12:24:39]KKMCreateOFDPacket [12:24:39]OFDProtocolAddRootSTLVToBuf [12:24:39]FM_MakeSignedData [12:24:39]FM_MakeSignedData [12:24:39]SAM_PROTO_SignData [12:24:39]wFMCommunicate request_size=4 [12:24:39]MH_SAM_APDU [12:24:39]CAPDU: 80 0D 01 02 [12:24:39]Write to MH i2c: E2 08 00 4D 7C 80 0D 01 02 00 00 00 00 42 [12:24:39]Write i2c OK [12:24:39]MH_I2C_Read... [12:24:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:24:39]Read from MH i2c: E2 [12:24:39]MH_I2C_Read... [12:24:39]Read from MH i2c: E2 03 00 [12:24:39]MH_I2C_Read... [12:24:39]Read from MH i2c: E2 03 00 4D 7C 00 90 00 3D [12:24:39]RAPDU: 90 00 [12:24:39]wFMCommunicate OK [12:24:39]wFMCommunicate request_size=255 [12:24:39]MH_SAM_APDU [12:24:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 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 76 00 00 00 F4 03 04 00 0E 28 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FD 6F 00 00 35 04 06 00 A4 [12:24:39]Write to MH i2c: E2 02 01 4E 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 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 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 76 00 00 00 F4 03 04 00 0E 28 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FD 6F 00 00 35 04 06 00 A4 00 00 80 [12:24:39]Write i2c OK [12:24:39]MH_I2C_Read... [12:24:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:24:39]Read from MH i2c: E2 [12:24:39]MH_I2C_Read... [12:24:39]Read from MH i2c: E2 03 00 [12:24:39]MH_I2C_Read... [12:24:39]Read from MH i2c: E2 03 00 4E 7C 00 90 00 3E [12:24:39]RAPDU: 90 00 [12:24:39]wFMCommunicate OK [12:24:39]wFMCommunicate request_size=10 [12:24:39]MH_SAM_APDU [12:24:39]CAPDU: 80 0D 02 02 05 4C C2 E2 8F 68 [12:24:39]Write to MH i2c: E2 0D 00 4F 7C 80 0D 02 02 05 00 4C C2 E2 8F 68 00 00 36 [12:24:39]Write i2c OK [12:24:39]MH_I2C_Read... [12:24:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:24:39]Read from MH i2c: E2 [12:24:39]MH_I2C_Read... [12:24:39]Read from MH i2c: E2 03 00 [12:24:39]MH_I2C_Read... [12:24:39]Read from MH i2c: E2 03 00 4F 7C 00 90 00 3F [12:24:39]RAPDU: 90 00 [12:24:39]wFMCommunicate OK [12:24:39]wFMCommunicate request_size=4 [12:24:39]MH_SAM_APDU [12:24:39]CAPDU: 80 0D 03 02 [12:24:39]Write to MH i2c: E2 08 00 50 7C 80 0D 03 02 00 00 00 00 47 [12:24:39]Write i2c OK [12:24:39]MH_I2C_Read... [12:24:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:24:39]Read from MH i2c: E2 [12:24:39]MH_I2C_Read... [12:24:39]Read from MH i2c: E2 0B 00 [12:24:39]MH_I2C_Read... [12:24:39]Read from MH i2c: E2 0B 00 50 7C 00 13 FA 58 9A D7 E5 BE 1E 90 00 DF [12:24:39]RAPDU: 13 FA 58 9A D7 E5 BE 1E 90 00 [12:24:39]wFMCommunicate OK [12:24:39]SAM_PROTO_SignData done [12:24:39]FM_MakeSignedData done [12:24:39]CreateOFDProtocolMessage [12:24:39]wFMCommunicate request_size=4 [12:24:39]MH_SAM_APDU [12:24:39]CAPDU: 80 11 00 00 [12:24:39]Write to MH i2c: E2 08 00 51 7C 80 11 00 00 00 00 00 00 47 [12:24:39]Write i2c OK [12:24:39]MH_I2C_Read... [12:24:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:24:39]Read from MH i2c: E2 [12:24:39]MH_I2C_Read... [12:24:39]Read from MH i2c: E2 17 00 [12:24:39]MH_I2C_Read... [12:24:39]Read from MH i2c: E2 17 00 51 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 96 [12:24:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:24:39]wFMCommunicate OK [12:24:39]CreateOFDProtocolMessage done [12:24:39]OFDSenderStorePacket 28669 [12:24:39]StoreOFDPacket docnum=28669 [12:24:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 6F B7 07 01 84 32 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 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 76 00 00 00 F4 03 04 00 0E 28 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FD 6F 00 00 35 04 06 00 A4 4C C2 E2 8F 68 13 FA 58 9A D7 E5 BE 1E [12:24:39]CheckFolder [12:24:39]dirname=/storage/ofd_packets [12:24:39]CheckFolder done [12:24:39]ProducePacketName [12:24:39]name=ofd_packets/00028669 [12:24:39]NVStorageSaveData ofd_packets/00028669 [12:24:39]File name is /storage/ofd_packets/00028669 [12:24:39]Write 301 bytes [12:24:39]NVStorageSaveData done [12:24:39]OFDSenderStorePacket done [12:24:39]KKMCreateOFDPacket done [12:24:39]NVStorageSaveData kkm_last_timestamp [12:24:39]File name is /storage/kkm_last_timestamp [12:24:39]Write 4 bytes [12:24:39]NVStorageSaveData done [12:24:40]ExternCall_PrintAddStr [12:24:40]wPrintStart [12:24:40]Write to MH i2c: 01 00 00 52 7C CE [12:24:40]Write i2c OK [12:24:40]MH_I2C_Read... [12:24:40]Read from MH i2c: 01 [12:24:40]MH_I2C_Read... [12:24:40]Read from MH i2c: 01 07 00 [12:24:40]MH_I2C_Read... [12:24:40]Read from MH i2c: 01 07 00 52 7C 00 00 00 00 00 FF 0F E3 [12:24:40]RasterBufferAndPrint [12:24:40]line Счет N : (1)347001 [12:24:40]line ИНН: 02508201610067 [12:24:40]line Контрольно-Кассовый Чек [12:24:40]line ПРОДАЖА [12:24:40]line ТРК (МРК, ГНК) : 42 [12:24:40]line Товар: 2710124130 [12:24:40]line Аи-92-К-5 [12:24:40]line 15.560 * 64.30 [12:24:40]line = 1000.51 [12:24:40]line НДС 12% НСП 1% [12:24:40]line > о реализуемом товаре [12:24:40]line ИТОГО: 1000.51 [12:24:40]line НСП 1% : 8.85 [12:24:40]line НДС 12% : 106.25 [12:24:40]line Наличными: 0.00 [12:24:40]line Безнал.: 1000.51 [12:24:40]line Место: АЗС № 108 "Партнер Нефть" [12:24:40]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [12:24:40]line СНО: Общий режим [12:24:40]line Чек 118 12.04.2024 12:24 [12:24:40]line Смена: 113 ФФД: 1.0 [12:24:40]line ЗНМ: 0300000027 [12:24:40]line РНМ: 0000138879044617 [12:24:40]line Версия ККМ: 001 [12:24:40]line Платежная система: АКБ Кыргызстан [12:24:40]line ФМ: 0000000000963154 [12:24:40]line ФД: 28669 [12:24:40]line ФПД: 180649594097512 [12:24:40]line 1/tax-web-control/client/api/v1/ticket?date=20240412T122446&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28669&fm=180649594097512&tin=02508201610067®Number=0000138879044617&sum=100051 [12:24:40]OFD Sender: Processing packet 28669 [packets to send 8, broken 7] [12:24:40]ProducePacketName [12:24:40]name=ofd_packets/00028669 [12:24:40]OFD Sender: To server: pG, [12:24:40]CommunicateWithHost lk.salyk.kg:30040 [12:24:40]ConnectInit lk.salyk.kg [12:24:40]written 0, free lines is 4095 [12:24:40]Connected sock=7 [12:24:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 6F B7 07 01 84 32 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 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 76 00 00 00 F4 03 04 00 0E 28 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FD 6F 00 00 35 04 06 00 A4 4C C2 E2 8F 68 13 FA 58 9A D7 E5 BE 1E [12:24:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 BC 9B 47 00 5E 56 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FD 6F 00 00 F4 03 04 00 B8 D2 18 66 B6 04 01 00 00 0E AF 4E 42 0C AD 83 58 [12:24:40]CommunicateWithHost err = 0 [12:24:40]CheckOFDResponse [12:24:40]1017 (14) - 77093643461234 [12:24:40]1041 (16) - 0000000000963154 [12:24:40]1040 (4) - 28669 [12:24:40]1012 (4) - 12.04.2024 06:20 [12:24:40]1206 (1) - 0 [12:24:40]OFD Sender: Remove packet 28669 [12:24:40]ProducePacketName [12:24:40]name=ofd_packets/00028669 [12:24:40]NVStorageDeleteData [12:24:40]Write to MH i2c: 01 00 00 7B 7C F7 [12:24:40]Write i2c OK [12:24:40]MH_I2C_Read... [12:24:40]Read from MH i2c: 01 [12:24:40]MH_I2C_Read... [12:24:40]Read from MH i2c: 01 07 00 [12:24:40]MH_I2C_Read... [12:24:40]Read from MH i2c: 01 07 00 7B 7C 00 00 00 00 00 E2 0C EC [12:24:40]RasterBufferAndPrint [12:24:40]line [12:24:40]line [12:24:40]line [12:24:40]line [12:24:40]line [12:24:40]written 0, free lines is 3304 [12:24:40]MH_Cut [12:24:40]Write to MH i2c: D1 01 00 82 7C 01 D0 [12:24:40]Write i2c OK [12:24:40]MH_I2C_Read... [12:24:40]Read from MH i2c: D1 [12:24:40]MH_I2C_Read... [12:24:40]Read from MH i2c: D1 01 00 [12:24:40]MH_I2C_Read... [12:24:40]Read from MH i2c: D1 01 00 82 7C 00 CF [12:24:40]Write to MH i2c: 01 00 00 83 7C FF [12:24:40]Write i2c OK [12:24:40]MH_I2C_Read... [12:24:41]OFD Sender: No OFD packet to send [12:24:41]*** Cut start [12:24:41]*** Partial cut [12:24:41]*** CUTSNS_PIN = 1 [12:24:41]*** CUTSNS_PIN = 0 [12:24:41]*** Brake cut motor [12:24:42]Read from MH i2c: 01 [12:24:42]MH_I2C_Read... [12:24:42]*** Stop cut motor [12:24:42]*** Cut end [12:24:42]Read from MH i2c: 01 07 00 [12:24:42]MH_I2C_Read... [12:24:42]Read from MH i2c: 01 07 00 83 7C 00 00 00 00 00 FF 0F 14 [12:24:42]process_action close_receipt done [12:24:42]requested_data is exist [12:24:42]produce_requested_data [12:24:42]requested_item fm.sn is exist - process it [12:24:42]wFMCommunicate request_size=4 [12:24:42]MH_SAM_APDU [12:24:42]CAPDU: 80 11 00 00 [12:24:42]Write to MH i2c: E2 08 00 84 7C 80 11 00 00 00 00 00 00 7A [12:24:42]Write i2c OK [12:24:42]MH_I2C_Read... [12:24:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:24:42]Read from MH i2c: E2 [12:24:42]MH_I2C_Read... [12:24:42]Read from MH i2c: E2 17 00 [12:24:42]MH_I2C_Read... [12:24:42]Read from MH i2c: E2 17 00 84 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 C9 [12:24:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:24:42]wFMCommunicate OK [12:24:42]requested_item fd.num is exist - process it [12:24:42]SAM_PROTO_GetFieldsCounters [12:24:42]wFMCommunicate request_size=4 [12:24:42]MH_SAM_APDU [12:24:42]CAPDU: 80 13 00 00 [12:24:42]Write to MH i2c: E2 08 00 85 7C 80 13 00 00 00 00 00 00 7D [12:24:42]Write i2c OK [12:24:42]MH_I2C_Read... [12:24:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:24:42]Read from MH i2c: E2 [12:24:42]MH_I2C_Read... [12:24:42]Read from MH i2c: E2 62 00 [12:24:42]MH_I2C_Read... [12:24:42]Read from MH i2c: E2 62 00 85 7C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 FD 6F 00 00 0E 04 04 00 71 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 FA [12:24:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 FD 6F 00 00 0E 04 04 00 71 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 [12:24:42]wFMCommunicate OK [12:24:42]SAM_PROTO_GetFieldsCounters done [12:24:42]requested_item shift.num is exist - process it [12:24:42]requested_item shift.opened is exist - process it [12:24:42]req_shift_opened [12:24:42]FM_GetShiftState [12:24:42]SAM_PROTO_GetShiftState [12:24:42]wFMCommunicate request_size=4 [12:24:42]MH_SAM_APDU [12:24:42]CAPDU: 80 13 01 00 [12:24:42]Write to MH i2c: E2 08 00 86 7C 80 13 01 00 00 00 00 00 7F [12:24:42]Write i2c OK [12:24:42]MH_I2C_Read... [12:24:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:24:42]Read from MH i2c: E2 [12:24:42]MH_I2C_Read... [12:24:42]Read from MH i2c: E2 0E 00 [12:24:42]MH_I2C_Read... [12:24:42]Read from MH i2c: E2 0E 00 86 7C 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 90 [12:24:42]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [12:24:42]wFMCommunicate OK [12:24:42]SAM_PROTO_GetShiftState done [12:24:42]FM_GetShiftState done [12:24:42]req_shift_opened done [12:24:42]requested_item shift.open_date is exist - process it [12:24:42]req_shift_open_date [12:24:42]req_shift_open_date done [12:24:42]produce_requested_data done [12:24:42]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28669,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [12:24:42]process_action_free close_receipt [12:24:42]json_value_free [12:24:42]json_value_free done [12:24:42]process_json_proto returns [12:24:42]Send response to host [12:24:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28669,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [12:24:42]free response buf [12:24:42]execute_script done [12:24:42]execute_script returns [12:24:42]free content buf [12:24:42]Sock 6.Close socket [12:24:42]Sock 6.Thread stoped [12:24:46]OFD Sender: No OFD packet to send [12:24:51]OFD Sender: No OFD packet to send [12:24:56]OFD Sender: No OFD packet to send [12:25:01]OFD Sender: No OFD packet to send [12:25:06]OFD Sender: No OFD packet to send [12:25:11]OFD Sender: No OFD packet to send [12:25:16]OFD Sender: No OFD packet to send [12:25:21]OFD Sender: No OFD packet to send [12:25:26]OFD Sender: No OFD packet to send [12:25:31]OFD Sender: No OFD packet to send [12:25:36]OFD Sender: No OFD packet to send [12:25:41]OFD Sender: No OFD packet to send [12:25:46]OFD Sender: No OFD packet to send [12:25:51]OFD Sender: No OFD packet to send [12:25:56]OFD Sender: No OFD packet to send [12:26:01]OFD Sender: No OFD packet to send [12:26:06]OFD Sender: No OFD packet to send [12:26:11]OFD Sender: No OFD packet to send [12:26:16]OFD Sender: No OFD packet to send [12:26:21]OFD Sender: No OFD packet to send [12:26:26]OFD Sender: No OFD packet to send [12:26:28]accept exits with 5 [12:26:28]New connection [12:26:28]New thread 3066498404 created [12:26:28]Thread 3066641764 joined [12:26:28]Waiting for new connection... [12:26:28] Sock 5.Parse request [12:26:28]Sock 5.Check first char [12:26:28]Sock 5.First char is OK [12:26:28]request: POST /json_proto HTTP/1.0 [12:26:28]Method: POST [12:26:28]URL: /json_proto [12:26:28]Method is POST - this is cgi request [12:26:28]url: /json_proto [12:26:28]query_string will be loaded in cgi processing [12:26:28]execute_cgi json_proto POST (null) [12:26:28]execute_cgi path=json_proto method=POST [12:26:28]POST find Content-Length [12:26:28]Host: 172.17.33.3:8080 [12:26:28]Content-Length: 677 [12:26:28]Content-Type: application/json [12:26:28] [12:26:28]POST finish read [12:26:28]Found Content-Length = 677 [12:26:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347002", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 2.030, "sum" : 130.53, "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" ] } } [12:26:28]execute_script... [12:26: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)347002", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 2.030, "sum" : 130.53, "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" ] } } [12:26:28]POST & json_proto [12:26:28]process_json_proto [12:26:28]json parsed OK: [12:26:28]protocol is kg_v1.0 [12:26:28]action value=close_receipt [12:26:28]process_action close_receipt [12:26:28]cmd_close_receipt [12:26:28]MH_GetDate [12:26:28]Write to MH i2c: F0 00 00 87 7C F2 [12:26:28]Write i2c OK [12:26:28]MH_I2C_Read... [12:26:28]Read from MH i2c: F0 [12:26:28]MH_I2C_Read... [12:26:28]Read from MH i2c: F0 09 00 [12:26:28]MH_I2C_Read... [12:26:28]Read from MH i2c: F0 09 00 87 7C 00 7C 28 19 66 23 5B 8F 65 90 [12:26:28]GetLastDocTimeStamp 1712924686 [12:26:28]current date 1712924796 [12:26:28]FM_GetShiftState [12:26:28]SAM_PROTO_GetShiftState [12:26:28]wFMCommunicate request_size=4 [12:26:28]MH_SAM_APDU [12:26:28]CAPDU: 80 13 01 00 [12:26:28]Write to MH i2c: E2 08 00 88 7C 80 13 01 00 00 00 00 00 81 [12:26:28]Write i2c OK [12:26:28]MH_I2C_Read... [12:26:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:26:28]Read from MH i2c: E2 [12:26:28]MH_I2C_Read... [12:26:28]Read from MH i2c: E2 0E 00 [12:26:28]MH_I2C_Read... [12:26:28]Read from MH i2c: E2 0E 00 88 7C 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 92 [12:26:28]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [12:26:28]wFMCommunicate OK [12:26:28]SAM_PROTO_GetShiftState done [12:26:28]FM_GetShiftState done [12:26:28]opened in 1712881416 [12:26:28]opened+sec_in_day 1712967816 [12:26:28]quantity*price = 13052 [12:26:28]sum+1 = 13054 [12:26:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 130.00 Внесено: 130.00 СДАЧА: 0.00 НСП 1% : 1.15 НДС 12% : 13.86 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 119 12.04.2024 12:26 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28670 ФПД: 130802899084914 1/tax-web-control/client/api/v1/ticket?date=20240412T122636&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28670&fm=130802899084914&tin=02508201610067®Number=0000138879044617&sum=13000 [12:26:29]StoreToDocumentArchive [12:26:29]shift 113 fd 28670 [12:26:29]save to /storage/0113/doc_00028670 [12:26:29]save last doc name /storage/0113/doc_00028670 to /storage/kkm_last_doc_name [12:26:29]save OK [12:26:29]Clear old archive folders... [12:26:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:26:29]tlvbuf is 01ABBF40 [12:26:29]SAM_PROTO_ClearQueue [12:26:29]wFMCommunicate request_size=4 [12:26:29]MH_SAM_APDU [12:26:29]CAPDU: 80 09 00 00 [12:26:29]Write to MH i2c: E2 08 00 95 7C 80 09 00 00 00 00 00 00 83 [12:26:29]Write i2c OK [12:26:29]MH_I2C_Read... [12:26:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:26:29]Read from MH i2c: E2 [12:26:29]MH_I2C_Read... [12:26:29]Read from MH i2c: E2 03 00 [12:26:29]MH_I2C_Read... [12:26:29]Read from MH i2c: E2 03 00 95 7C 00 90 00 85 [12:26:29]RAPDU: 90 00 [12:26:29]wFMCommunicate OK [12:26:29]SAM_PROTO_ClearQueue done [12:26:29]KKMCreateOFDPacket [12:26:29]OFDProtocolAddRootSTLVToBuf [12:26:29]FM_MakeSignedData [12:26:29]FM_MakeSignedData [12:26:29]SAM_PROTO_SignData [12:26:29]wFMCommunicate request_size=4 [12:26:29]MH_SAM_APDU [12:26:29]CAPDU: 80 0D 01 02 [12:26:29]Write to MH i2c: E2 08 00 96 7C 80 0D 01 02 00 00 00 00 8B [12:26:29]Write i2c OK [12:26:29]MH_I2C_Read... [12:26:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:26:29]Read from MH i2c: E2 [12:26:29]MH_I2C_Read... [12:26:29]Read from MH i2c: E2 03 00 [12:26:29]MH_I2C_Read... [12:26:29]Read from MH i2c: E2 03 00 96 7C 00 90 00 86 [12:26:29]RAPDU: 90 00 [12:26:29]wFMCommunicate OK [12:26:29]wFMCommunicate request_size=255 [12:26:29]MH_SAM_APDU [12:26:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EE 07 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 FD 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 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 77 00 00 00 F4 03 04 00 7C 28 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FE 6F 00 00 35 04 06 00 76 [12:26:29]Write to MH i2c: E2 02 01 97 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 35 FF 03 08 00 03 EE 07 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 FD 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 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 77 00 00 00 F4 03 04 00 7C 28 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FE 6F 00 00 35 04 06 00 76 00 00 D1 [12:26:29]Write i2c OK [12:26:29]MH_I2C_Read... [12:26:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:26:29]Read from MH i2c: E2 [12:26:29]MH_I2C_Read... [12:26:29]Read from MH i2c: E2 03 00 [12:26:29]MH_I2C_Read... [12:26:29]Read from MH i2c: E2 03 00 97 7C 00 90 00 87 [12:26:29]RAPDU: 90 00 [12:26:29]wFMCommunicate OK [12:26:29]wFMCommunicate request_size=10 [12:26:29]MH_SAM_APDU [12:26:29]CAPDU: 80 0D 02 02 05 F6 EC 55 E6 72 [12:26:29]Write to MH i2c: E2 0D 00 98 7C 80 0D 02 02 05 00 F6 EC 55 E6 72 00 00 27 [12:26:29]Write i2c OK [12:26:29]MH_I2C_Read... [12:26:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:26:29]Read from MH i2c: E2 [12:26:29]MH_I2C_Read... [12:26:29]Read from MH i2c: E2 03 00 [12:26:29]MH_I2C_Read... [12:26:29]Read from MH i2c: E2 03 00 98 7C 00 90 00 88 [12:26:29]RAPDU: 90 00 [12:26:29]wFMCommunicate OK [12:26:29]wFMCommunicate request_size=4 [12:26:29]MH_SAM_APDU [12:26:29]CAPDU: 80 0D 03 02 [12:26:29]Write to MH i2c: E2 08 00 99 7C 80 0D 03 02 00 00 00 00 90 [12:26:29]Write i2c OK [12:26:29]MH_I2C_Read... [12:26:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:26:29]Read from MH i2c: E2 [12:26:29]MH_I2C_Read... [12:26:29]Read from MH i2c: E2 0B 00 [12:26:29]MH_I2C_Read... [12:26:29]Read from MH i2c: E2 0B 00 99 7C 00 EA F1 29 94 9D CE 54 00 90 00 E8 [12:26:29]RAPDU: EA F1 29 94 9D CE 54 00 90 00 [12:26:29]wFMCommunicate OK [12:26:29]SAM_PROTO_SignData done [12:26:29]FM_MakeSignedData done [12:26:29]CreateOFDProtocolMessage [12:26:29]wFMCommunicate request_size=4 [12:26:29]MH_SAM_APDU [12:26:29]CAPDU: 80 11 00 00 [12:26:29]Write to MH i2c: E2 08 00 9A 7C 80 11 00 00 00 00 00 00 90 [12:26:29]Write i2c OK [12:26:29]MH_I2C_Read... [12:26:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:26:30]Read from MH i2c: E2 [12:26:30]MH_I2C_Read... [12:26:30]Read from MH i2c: E2 17 00 [12:26:30]MH_I2C_Read... [12:26:30]Read from MH i2c: E2 17 00 9A 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 DF [12:26:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:26:30]wFMCommunicate OK [12:26:30]CreateOFDProtocolMessage done [12:26:30]OFDSenderStorePacket 28670 [12:26:30]StoreOFDPacket docnum=28670 [12:26:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 9D 7A 07 01 B0 7C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EE 07 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 FD 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 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 77 00 00 00 F4 03 04 00 7C 28 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FE 6F 00 00 35 04 06 00 76 F6 EC 55 E6 72 EA F1 29 94 9D CE 54 00 [12:26:30]CheckFolder [12:26:30]dirname=/storage/ofd_packets [12:26:30]CheckFolder done [12:26:30]ProducePacketName [12:26:30]name=ofd_packets/00028670 [12:26:30]NVStorageSaveData ofd_packets/00028670 [12:26:30]File name is /storage/ofd_packets/00028670 [12:26:30]Write 301 bytes [12:26:30]NVStorageSaveData done [12:26:30]OFDSenderStorePacket done [12:26:30]KKMCreateOFDPacket done [12:26:30]NVStorageSaveData kkm_last_timestamp [12:26:30]File name is /storage/kkm_last_timestamp [12:26:30]Write 4 bytes [12:26:30]NVStorageSaveData done [12:26:30]ExternCall_PrintAddStr [12:26:30]wPrintStart [12:26:30]Write to MH i2c: 01 00 00 9B 7C 17 [12:26:30]Write i2c OK [12:26:30]MH_I2C_Read... [12:26:30]Read from MH i2c: 01 [12:26:30]MH_I2C_Read... [12:26:30]Read from MH i2c: 01 07 00 [12:26:30]MH_I2C_Read... [12:26:30]Read from MH i2c: 01 07 00 9B 7C 00 00 00 00 00 FF 0F 2C [12:26:30]RasterBufferAndPrint [12:26:30]line Счет N : (1)347002 [12:26:30]line ИНН: 02508201610067 [12:26:30]line Контрольно-Кассовый Чек [12:26:30]line ПРОДАЖА [12:26:30]line ТРК (МРК, ГНК) : 32 [12:26:30]line Товар: 2710124130 [12:26:30]line Аи-92-К-5 [12:26:30]line 2.030 * 64.30 [12:26:30]line = 130.53 [12:26:30]line НДС 12% НСП 1% [12:26:30]line > о реализуемом товаре [12:26:30]line ОКРУГЛЕНИЕ: -0.53 [12:26:30]line ИТОГО: 130.00 [12:26:30]line Внесено: 130.00 [12:26:30]line СДАЧА: 0.00 [12:26:30]line НСП 1% : 1.15 [12:26:30]line НДС 12% : 13.86 [12:26:30]line Наличными: 130.00 [12:26:30]line Безнал.: 0.00 [12:26:30]line Место: АЗС № 108 "Партнер Нефть" [12:26:30]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [12:26:30]line СНО: Общий режим [12:26:30]line Чек 119 12.04.2024 12:26 [12:26:30]line Смена: 113 ФФД: 1.0 [12:26:30]line ЗНМ: 0300000027 [12:26:30]line РНМ: 0000138879044617 [12:26:30]line Версия ККМ: 001 [12:26:30]line ФМ: 0000000000963154 [12:26:30]line ФД: 28670 [12:26:30]line ФПД: 130802899084914 [12:26:30]line 1/tax-web-control/client/api/v1/ticket?date=20240412T122636&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28670&fm=130802899084914&tin=02508201610067®Number=0000138879044617&sum=13000 [12:26:30]OFD Sender: Processing packet 28670 [packets to send 8, broken 7] [12:26:30]ProducePacketName [12:26:30]name=ofd_packets/00028670 [12:26:30]OFD Sender: To server: pG, [12:26:30]CommunicateWithHost lk.salyk.kg:30040 [12:26:30]ConnectInit lk.salyk.kg [12:26:30]written 0, free lines is 4095 [12:26:30]Connected sock=7 [12:26:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 9D 7A 07 01 B0 7C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EE 07 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 FD 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 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 77 00 00 00 F4 03 04 00 7C 28 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FE 6F 00 00 35 04 06 00 76 F6 EC 55 E6 72 EA F1 29 94 9D CE 54 00 [12:26:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 14 3A 47 00 9E 69 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FE 6F 00 00 F4 03 04 00 26 D3 18 66 B6 04 01 00 00 3C 79 A3 83 69 8A 25 6C [12:26:30]CommunicateWithHost err = 0 [12:26:30]CheckOFDResponse [12:26:30]1017 (14) - 77093643461234 [12:26:30]1041 (16) - 0000000000963154 [12:26:30]1040 (4) - 28670 [12:26:30]1012 (4) - 12.04.2024 06:22 [12:26:30]1206 (1) - 0 [12:26:30]OFD Sender: Remove packet 28670 [12:26:30]ProducePacketName [12:26:30]name=ofd_packets/00028670 [12:26:30]NVStorageDeleteData [12:26:30]Write to MH i2c: 01 00 00 C5 7C 41 [12:26:30]Write i2c OK [12:26:30]MH_I2C_Read... [12:26:30]Read from MH i2c: 01 [12:26:30]MH_I2C_Read... [12:26:30]Read from MH i2c: 01 07 00 [12:26:30]MH_I2C_Read... [12:26:30]Read from MH i2c: 01 07 00 C5 7C 00 00 00 00 00 CE 0C 22 [12:26:30]RasterBufferAndPrint [12:26:30]line [12:26:30]line [12:26:30]line [12:26:30]line [12:26:30]line [12:26:30]written 0, free lines is 3284 [12:26:30]MH_Cut [12:26:30]Write to MH i2c: D1 01 00 CC 7C 01 1A [12:26:30]Write i2c OK [12:26:30]MH_I2C_Read... [12:26:30]Read from MH i2c: D1 [12:26:30]MH_I2C_Read... [12:26:30]Read from MH i2c: D1 01 00 [12:26:30]MH_I2C_Read... [12:26:30]Read from MH i2c: D1 01 00 CC 7C 00 19 [12:26:30]Write to MH i2c: 01 00 00 CD 7C 49 [12:26:30]Write i2c OK [12:26:30]MH_I2C_Read... [12:26:31]OFD Sender: No OFD packet to send [12:26:31]*** Cut start [12:26:31]*** Partial cut [12:26:31]*** CUTSNS_PIN = 1 [12:26:31]*** CUTSNS_PIN = 0 [12:26:31]*** Brake cut motor [12:26:32]Read from MH i2c: 01 [12:26:32]MH_I2C_Read... [12:26:32]*** Stop cut motor [12:26:32]*** Cut end [12:26:32]Read from MH i2c: 01 07 00 [12:26:32]MH_I2C_Read... [12:26:32]Read from MH i2c: 01 07 00 CD 7C 00 00 00 00 00 FF 0F 5E [12:26:32]process_action close_receipt done [12:26:32]requested_data is exist [12:26:32]produce_requested_data [12:26:32]requested_item fm.sn is exist - process it [12:26:32]wFMCommunicate request_size=4 [12:26:32]MH_SAM_APDU [12:26:32]CAPDU: 80 11 00 00 [12:26:32]Write to MH i2c: E2 08 00 CE 7C 80 11 00 00 00 00 00 00 C4 [12:26:32]Write i2c OK [12:26:32]MH_I2C_Read... [12:26:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:26:32]Read from MH i2c: E2 [12:26:32]MH_I2C_Read... [12:26:32]Read from MH i2c: E2 17 00 [12:26:32]MH_I2C_Read... [12:26:32]Read from MH i2c: E2 17 00 CE 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 13 [12:26:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:26:32]wFMCommunicate OK [12:26:32]requested_item fd.num is exist - process it [12:26:32]SAM_PROTO_GetFieldsCounters [12:26:32]wFMCommunicate request_size=4 [12:26:32]MH_SAM_APDU [12:26:32]CAPDU: 80 13 00 00 [12:26:32]Write to MH i2c: E2 08 00 CF 7C 80 13 00 00 00 00 00 00 C7 [12:26:32]Write i2c OK [12:26:32]MH_I2C_Read... [12:26:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:26:32]Read from MH i2c: E2 [12:26:32]MH_I2C_Read... [12:26:32]Read from MH i2c: E2 62 00 [12:26:32]MH_I2C_Read... [12:26:32]Read from MH i2c: E2 62 00 CF 7C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 FE 6F 00 00 0E 04 04 00 71 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 48 [12:26:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 FE 6F 00 00 0E 04 04 00 71 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 [12:26:32]wFMCommunicate OK [12:26:32]SAM_PROTO_GetFieldsCounters done [12:26:32]requested_item shift.num is exist - process it [12:26:32]requested_item shift.opened is exist - process it [12:26:32]req_shift_opened [12:26:32]FM_GetShiftState [12:26:32]SAM_PROTO_GetShiftState [12:26:32]wFMCommunicate request_size=4 [12:26:32]MH_SAM_APDU [12:26:32]CAPDU: 80 13 01 00 [12:26:32]Write to MH i2c: E2 08 00 D0 7C 80 13 01 00 00 00 00 00 C9 [12:26:32]Write i2c OK [12:26:32]MH_I2C_Read... [12:26:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:26:32]Read from MH i2c: E2 [12:26:32]MH_I2C_Read... [12:26:32]Read from MH i2c: E2 0E 00 [12:26:32]MH_I2C_Read... [12:26:32]Read from MH i2c: E2 0E 00 D0 7C 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 DA [12:26:32]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [12:26:32]wFMCommunicate OK [12:26:32]SAM_PROTO_GetShiftState done [12:26:32]FM_GetShiftState done [12:26:32]req_shift_opened done [12:26:32]requested_item shift.open_date is exist - process it [12:26:32]req_shift_open_date [12:26:32]req_shift_open_date done [12:26:32]produce_requested_data done [12:26:32]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28670,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [12:26:32]process_action_free close_receipt [12:26:32]json_value_free [12:26:32]json_value_free done [12:26:32]process_json_proto returns [12:26:32]Send response to host [12:26:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28670,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [12:26:32]free response buf [12:26:32]execute_script done [12:26:32]execute_script returns [12:26:32]free content buf [12:26:32]Sock 5.Close socket [12:26:32]Sock 5.Thread stoped [12:26:36]OFD Sender: No OFD packet to send [12:26:41]OFD Sender: No OFD packet to send [12:26:46]OFD Sender: No OFD packet to send [12:26:51]OFD Sender: No OFD packet to send [12:26:56]OFD Sender: No OFD packet to send [12:27:01]OFD Sender: No OFD packet to send [12:27:06]OFD Sender: No OFD packet to send [12:27:11]OFD Sender: No OFD packet to send [12:27:16]OFD Sender: No OFD packet to send [12:27:21]OFD Sender: No OFD packet to send [12:27:26]OFD Sender: No OFD packet to send [12:27:31]OFD Sender: No OFD packet to send [12:27:36]OFD Sender: No OFD packet to send [12:27:41]OFD Sender: No OFD packet to send [12:27:46]OFD Sender: No OFD packet to send [12:27:51]OFD Sender: No OFD packet to send [12:27:56]OFD Sender: No OFD packet to send [12:28:01]OFD Sender: No OFD packet to send [12:28:06]OFD Sender: No OFD packet to send [12:28:11]OFD Sender: No OFD packet to send [12:28:16]OFD Sender: No OFD packet to send [12:28:21]OFD Sender: No OFD packet to send [12:28:26]OFD Sender: No OFD packet to send [12:28:31]OFD Sender: No OFD packet to send [12:28:36]OFD Sender: No OFD packet to send [12:28:41]OFD Sender: No OFD packet to send [12:28:46]OFD Sender: No OFD packet to send [12:28:51]OFD Sender: No OFD packet to send [12:28:56]OFD Sender: No OFD packet to send [12:29:01]OFD Sender: No OFD packet to send [12:29:06]OFD Sender: No OFD packet to send [12:29:11]OFD Sender: No OFD packet to send [12:29:16]OFD Sender: No OFD packet to send [12:29:21]OFD Sender: No OFD packet to send [12:29:26]OFD Sender: No OFD packet to send [12:29:31]OFD Sender: No OFD packet to send [12:29:36]OFD Sender: No OFD packet to send [12:29:41]OFD Sender: No OFD packet to send [12:29:46]OFD Sender: No OFD packet to send [12:29:50]accept exits with 6 [12:29:50]New connection [12:29:50]New thread 3066641764 created [12:29:50]Thread 3066498404 joined [12:29:50]Waiting for new connection... [12:29:50] Sock 6.Parse request [12:29:50]Sock 6.Check first char [12:29:50]Sock 6.First char is OK [12:29:50]request: POST /json_proto HTTP/1.0 [12:29:50]Method: POST [12:29:50]URL: /json_proto [12:29:50]Method is POST - this is cgi request [12:29:50]url: /json_proto [12:29:50]query_string will be loaded in cgi processing [12:29:50]execute_cgi json_proto POST (null) [12:29:50]execute_cgi path=json_proto method=POST [12:29:50]POST find Content-Length [12:29:50]Host: 172.17.33.3:8080 [12:29:50]Content-Length: 1175 [12:29:50]Content-Type: application/json [12:29:50] [12:29:50]POST finish read [12:29:50]Found Content-Length = 1175 [12:29:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)347003\u000A12.04.2024 12:11\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 40.000 x 64.30\u000A\u0418\u0422\u041E\u0413: 2572.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30137303\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:29:50]execute_script... [12:29:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)347003\u000A12.04.2024 12:11\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 40.000 x 64.30\u000A\u0418\u0422\u041E\u0413: 2572.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30137303\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:29:50]POST & json_proto [12:29:50]process_json_proto [12:29:50]json parsed OK: [12:29:50]protocol is kg_v1.0 [12:29:50]action value=print_text [12:29:50]process_action print_text [12:29:50]cmd_print_text [12:29:50]ExternCall_PrintAddStr [12:29:50]wPrintStart [12:29:50]Write to MH i2c: 01 00 00 D1 7C 4D [12:29:50]Write i2c OK [12:29:50]MH_I2C_Read... [12:29:50]Read from MH i2c: 01 [12:29:50]MH_I2C_Read... [12:29:50]Read from MH i2c: 01 07 00 [12:29:50]MH_I2C_Read... [12:29:50]Read from MH i2c: 01 07 00 D1 7C 00 00 00 00 00 FF 0F 62 [12:29:50]RasterBufferAndPrint [12:29:50]line *****ТОВАРНЫЙ ЧЕК***** [12:29:50]line АЗС 108 [12:29:50]line Партнер нефть [12:29:50]line 02508201610067 [12:29:50]line Кассир : Джумагулова Н. [12:29:50]line Счет N : (1)347003 [12:29:50]line 12.04.2024 12:11 [12:29:50]line ПРОДАЖА [12:29:50]line ТРК (МРК, ГНК): 32 [12:29:50]line Вид ГСМ : 2710124130 [12:29:50]line Аи-92-К-5 [12:29:50]line 40.000 x 64.30 [12:29:50]line ИТОГ: 2572.00 [12:29:50]line Тип оплаты: Талоны: ТК ГПНА Online [12:29:50]line 30137303 [12:29:50]line ______________________ [12:29:50]line (подпись) [12:29:50]written 0, free lines is 4095 [12:29:50]Write to MH i2c: 01 00 00 E6 7C 62 [12:29:50]Write i2c OK [12:29:50]MH_I2C_Read... [12:29:50]Read from MH i2c: 01 [12:29:50]MH_I2C_Read... [12:29:50]Read from MH i2c: 01 07 00 [12:29:50]MH_I2C_Read... [12:29:50]Read from MH i2c: 01 07 00 E6 7C 00 00 00 00 00 F5 0D 6B [12:29:50]RasterBufferAndPrint [12:29:50]line [12:29:50]line [12:29:50]line [12:29:50]line [12:29:50]line [12:29:50]written 0, free lines is 3575 [12:29:50]MH_Cut [12:29:50]Write to MH i2c: D1 01 00 ED 7C 01 3B [12:29:50]Write i2c OK [12:29:50]MH_I2C_Read... [12:29:50]Read from MH i2c: D1 [12:29:50]MH_I2C_Read... [12:29:50]Read from MH i2c: D1 01 00 [12:29:50]MH_I2C_Read... [12:29:50]Read from MH i2c: D1 01 00 ED 7C 00 3A [12:29:50]Write to MH i2c: 01 00 00 EE 7C 6A [12:29:50]Write i2c OK [12:29:50]MH_I2C_Read... [12:29:50]*** Cut start [12:29:50]*** Partial cut [12:29:50]*** CUTSNS_PIN = 1 [12:29:50]*** CUTSNS_PIN = 0 [12:29:51]*** Brake cut motor [12:29:51]OFD Sender: No OFD packet to send [12:29:51]Read from MH i2c: 01 [12:29:51]MH_I2C_Read... [12:29:51]*** Stop cut motor [12:29:51]*** Cut end [12:29:51]Read from MH i2c: 01 07 00 [12:29:51]MH_I2C_Read... [12:29:51]Read from MH i2c: 01 07 00 EE 7C 00 00 00 00 00 FF 0F 7F [12:29:51]process_action print_text done [12:29:51]requested_data is exist [12:29:51]produce_requested_data [12:29:51]requested_item fm.sn is exist - process it [12:29:51]wFMCommunicate request_size=4 [12:29:51]MH_SAM_APDU [12:29:51]CAPDU: 80 11 00 00 [12:29:51]Write to MH i2c: E2 08 00 EF 7C 80 11 00 00 00 00 00 00 E5 [12:29:51]Write i2c OK [12:29:51]MH_I2C_Read... [12:29:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:29:51]Read from MH i2c: E2 [12:29:51]MH_I2C_Read... [12:29:51]Read from MH i2c: E2 17 00 [12:29:51]MH_I2C_Read... [12:29:51]Read from MH i2c: E2 17 00 EF 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 34 [12:29:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:29:51]wFMCommunicate OK [12:29:51]requested_item fd.num is exist - process it [12:29:51]SAM_PROTO_GetFieldsCounters [12:29:51]wFMCommunicate request_size=4 [12:29:51]MH_SAM_APDU [12:29:51]CAPDU: 80 13 00 00 [12:29:51]Write to MH i2c: E2 08 00 F0 7C 80 13 00 00 00 00 00 00 E8 [12:29:51]Write i2c OK [12:29:51]MH_I2C_Read... [12:29:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:29:51]Read from MH i2c: E2 [12:29:51]MH_I2C_Read... [12:29:51]Read from MH i2c: E2 62 00 [12:29:51]MH_I2C_Read... [12:29:51]Read from MH i2c: E2 62 00 F0 7C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 FE 6F 00 00 0E 04 04 00 71 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 69 [12:29:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 FE 6F 00 00 0E 04 04 00 71 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 [12:29:51]wFMCommunicate OK [12:29:51]SAM_PROTO_GetFieldsCounters done [12:29:51]requested_item shift.num is exist - process it [12:29:51]requested_item shift.opened is exist - process it [12:29:51]req_shift_opened [12:29:51]FM_GetShiftState [12:29:51]SAM_PROTO_GetShiftState [12:29:51]wFMCommunicate request_size=4 [12:29:51]MH_SAM_APDU [12:29:51]CAPDU: 80 13 01 00 [12:29:51]Write to MH i2c: E2 08 00 F1 7C 80 13 01 00 00 00 00 00 EA [12:29:51]Write i2c OK [12:29:51]MH_I2C_Read... [12:29:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:29:51]Read from MH i2c: E2 [12:29:51]MH_I2C_Read... [12:29:51]Read from MH i2c: E2 0E 00 [12:29:51]MH_I2C_Read... [12:29:51]Read from MH i2c: E2 0E 00 F1 7C 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 FB [12:29:51]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [12:29:51]wFMCommunicate OK [12:29:51]SAM_PROTO_GetShiftState done [12:29:51]FM_GetShiftState done [12:29:51]req_shift_opened done [12:29:51]requested_item shift.open_date is exist - process it [12:29:51]req_shift_open_date [12:29:51]req_shift_open_date done [12:29:51]produce_requested_data done [12:29:51]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28670,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [12:29:51]process_action_free print_text [12:29:51]json_value_free [12:29:51]json_value_free done [12:29:51]process_json_proto returns [12:29:51]Send response to host [12:29:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28670,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [12:29:51]free response buf [12:29:51]execute_script done [12:29:51]execute_script returns [12:29:51]free content buf [12:29:51]Sock 6.Close socket [12:29:51]Sock 6.Thread stoped [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:09]accept exits with 5 [12:32:09]New connection [12:32:09]New thread 3066498404 created [12:32:09]Thread 3066641764 joined [12:32:09]Waiting for new connection... [12:32:09] Sock 5.Parse request [12:32:09]Sock 5.Check first char [12:32:09]Sock 5.First char is OK [12:32:09]request: POST /json_proto HTTP/1.0 [12:32:09]Method: POST [12:32:09]URL: /json_proto [12:32:09]Method is POST - this is cgi request [12:32:09]url: /json_proto [12:32:09]query_string will be loaded in cgi processing [12:32:09]execute_cgi json_proto POST (null) [12:32:09]execute_cgi path=json_proto method=POST [12:32:09]POST find Content-Length [12:32:09]Host: 172.17.33.3:8080 [12:32:09]Content-Length: 846 [12:32:09]Content-Type: application/json [12:32:09] [12:32:09]POST finish read [12:32:09]Found Content-Length = 846 [12:32:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347004", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 45.600, "sum" : 1500.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1500.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:32:09]execute_script... [12:32:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347004", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 45.600, "sum" : 1500.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1500.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:32:09]POST & json_proto [12:32:09]process_json_proto [12:32:09]json parsed OK: [12:32:09]protocol is kg_v1.0 [12:32:09]action value=close_receipt [12:32:09]process_action close_receipt [12:32:09]cmd_close_receipt [12:32:09]MH_GetDate [12:32:09]Write to MH i2c: F0 00 00 F2 7C 5D [12:32:09]Write i2c OK [12:32:09]MH_I2C_Read... [12:32:09]Read from MH i2c: F0 [12:32:09]MH_I2C_Read... [12:32:09]Read from MH i2c: F0 09 00 [12:32:09]MH_I2C_Read... [12:32:09]Read from MH i2c: F0 09 00 F2 7C 00 D1 29 19 66 23 5B 8F 65 51 [12:32:09]GetLastDocTimeStamp 1712924796 [12:32:09]current date 1712925137 [12:32:09]FM_GetShiftState [12:32:09]SAM_PROTO_GetShiftState [12:32:09]wFMCommunicate request_size=4 [12:32:09]MH_SAM_APDU [12:32:09]CAPDU: 80 13 01 00 [12:32:09]Write to MH i2c: E2 08 00 F3 7C 80 13 01 00 00 00 00 00 EC [12:32:09]Write i2c OK [12:32:09]MH_I2C_Read... [12:32:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:32:09]Read from MH i2c: E2 [12:32:09]MH_I2C_Read... [12:32:09]Read from MH i2c: E2 0E 00 [12:32:09]MH_I2C_Read... [12:32:09]Read from MH i2c: E2 0E 00 F3 7C 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 FD [12:32:09]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [12:32:09]wFMCommunicate OK [12:32:09]SAM_PROTO_GetShiftState done [12:32:09]FM_GetShiftState done [12:32:09]opened in 1712881416 [12:32:09]opened+sec_in_day 1712967816 [12:32:09]quantity*price = 150024 [12:32:09]sum+1 = 150025 [12:32:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.24 НСП 1% : 13.28 НДС 12% : 159.32 Наличными: 0.00 Безнал.: 1500.24 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 120 12.04.2024 12:32 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 28671 ФПД: 167195345750912 1/tax-web-control/client/api/v1/ticket?date=20240412T123217&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28671&fm=167195345750912&tin=02508201610067®Number=0000138879044617&sum=150024 [12:32:10]StoreToDocumentArchive [12:32:10]shift 113 fd 28671 [12:32:10]save to /storage/0113/doc_00028671 [12:32:10]save last doc name /storage/0113/doc_00028671 to /storage/kkm_last_doc_name [12:32:10]save OK [12:32:10]Clear old archive folders... [12:32:10]ProcessDocumentItem done err = 0, tmpTLVsize=250 [12:32:10]tlvbuf is 01AE94B0 [12:32:10]SAM_PROTO_ClearQueue [12:32:10]wFMCommunicate request_size=4 [12:32:10]MH_SAM_APDU [12:32:10]CAPDU: 80 09 00 00 [12:32:10]Write to MH i2c: E2 08 00 00 7D 80 09 00 00 00 00 00 00 EF [12:32:10]Write i2c OK [12:32:10]MH_I2C_Read... [12:32:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:32:10]Read from MH i2c: E2 [12:32:10]MH_I2C_Read... [12:32:10]Read from MH i2c: E2 03 00 [12:32:10]MH_I2C_Read... [12:32:10]Read from MH i2c: E2 03 00 00 7D 00 90 00 F1 [12:32:10]RAPDU: 90 00 [12:32:10]wFMCommunicate OK [12:32:10]SAM_PROTO_ClearQueue done [12:32:10]KKMCreateOFDPacket [12:32:10]OFDProtocolAddRootSTLVToBuf [12:32:10]FM_MakeSignedData [12:32:10]FM_MakeSignedData [12:32:10]SAM_PROTO_SignData [12:32:10]wFMCommunicate request_size=4 [12:32:10]MH_SAM_APDU [12:32:10]CAPDU: 80 0D 01 02 [12:32:10]Write to MH i2c: E2 08 00 01 7D 80 0D 01 02 00 00 00 00 F7 [12:32:10]Write i2c OK [12:32:10]MH_I2C_Read... [12:32:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:32:10]Read from MH i2c: E2 [12:32:10]MH_I2C_Read... [12:32:10]Read from MH i2c: E2 03 00 [12:32:10]MH_I2C_Read... [12:32:10]Read from MH i2c: E2 03 00 01 7D 00 90 00 F2 [12:32:10]RAPDU: 90 00 [12:32:10]wFMCommunicate OK [12:32:10]wFMCommunicate request_size=255 [12:32:10]MH_SAM_APDU [12:32:10]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 20 B2 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 08 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 08 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 D1 29 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FF 6F 00 00 35 04 06 00 98 10 [12:32:10]Write to MH i2c: E2 02 01 02 7D 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 20 B2 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 08 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 08 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 D1 29 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FF 6F 00 00 35 04 06 00 98 10 00 00 A9 [12:32:10]Write i2c OK [12:32:10]MH_I2C_Read... [12:32:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:32:10]Read from MH i2c: E2 [12:32:10]MH_I2C_Read... [12:32:10]Read from MH i2c: E2 03 00 [12:32:10]MH_I2C_Read... [12:32:10]Read from MH i2c: E2 03 00 02 7D 00 90 00 F3 [12:32:10]RAPDU: 90 00 [12:32:10]wFMCommunicate OK [12:32:10]wFMCommunicate request_size=9 [12:32:10]MH_SAM_APDU [12:32:10]CAPDU: 80 0D 02 02 04 33 31 0B 80 [12:32:10]Write to MH i2c: E2 0C 00 03 7D 80 0D 02 02 04 00 33 31 0B 80 00 00 F1 [12:32:10]Write i2c OK [12:32:10]MH_I2C_Read... [12:32:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:32:10]Read from MH i2c: E2 [12:32:10]MH_I2C_Read... [12:32:10]Read from MH i2c: E2 03 00 [12:32:10]MH_I2C_Read... [12:32:10]Read from MH i2c: E2 03 00 03 7D 00 90 00 F4 [12:32:10]RAPDU: 90 00 [12:32:10]wFMCommunicate OK [12:32:10]wFMCommunicate request_size=4 [12:32:10]MH_SAM_APDU [12:32:10]CAPDU: 80 0D 03 02 [12:32:10]Write to MH i2c: E2 08 00 04 7D 80 0D 03 02 00 00 00 00 FC [12:32:10]Write i2c OK [12:32:10]MH_I2C_Read... [12:32:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:32:10]Read from MH i2c: E2 [12:32:10]MH_I2C_Read... [12:32:10]Read from MH i2c: E2 0B 00 [12:32:10]MH_I2C_Read... [12:32:10]Read from MH i2c: E2 0B 00 04 7D 00 FF EA 02 5D 3B D8 91 D3 90 00 BC [12:32:10]RAPDU: FF EA 02 5D 3B D8 91 D3 90 00 [12:32:10]wFMCommunicate OK [12:32:10]SAM_PROTO_SignData done [12:32:10]FM_MakeSignedData done [12:32:10]CreateOFDProtocolMessage [12:32:10]wFMCommunicate request_size=4 [12:32:10]MH_SAM_APDU [12:32:10]CAPDU: 80 11 00 00 [12:32:10]Write to MH i2c: E2 08 00 05 7D 80 11 00 00 00 00 00 00 FC [12:32:10]Write i2c OK [12:32:10]MH_I2C_Read... [12:32:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:32:10]Read from MH i2c: E2 [12:32:10]MH_I2C_Read... [12:32:10]Read from MH i2c: E2 17 00 [12:32:10]MH_I2C_Read... [12:32:10]Read from MH i2c: E2 17 00 05 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 4B [12:32:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:32:10]wFMCommunicate OK [12:32:10]CreateOFDProtocolMessage done [12:32:10]OFDSenderStorePacket 28671 [12:32:10]StoreOFDPacket docnum=28671 [12:32:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 3C 49 06 01 50 93 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 20 B2 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 08 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 08 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 D1 29 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FF 6F 00 00 35 04 06 00 98 10 33 31 0B 80 FF EA 02 5D 3B D8 91 D3 [12:32:10]CheckFolder [12:32:10]dirname=/storage/ofd_packets [12:32:10]CheckFolder done [12:32:10]ProducePacketName [12:32:10]name=ofd_packets/00028671 [12:32:10]NVStorageSaveData ofd_packets/00028671 [12:32:10]File name is /storage/ofd_packets/00028671 [12:32:10]Write 300 bytes [12:32:10]NVStorageSaveData done [12:32:10]OFDSenderStorePacket done [12:32:10]KKMCreateOFDPacket done [12:32:10]NVStorageSaveData kkm_last_timestamp [12:32:10]File name is /storage/kkm_last_timestamp [12:32:10]Write 4 bytes [12:32:10]NVStorageSaveData done [12:32:10]ExternCall_PrintAddStr [12:32:10]wPrintStart [12:32:10]Write to MH i2c: 01 00 00 06 7D 83 [12:32:10]Write i2c OK [12:32:10]MH_I2C_Read... [12:32:10]Read from MH i2c: 01 [12:32:10]MH_I2C_Read... [12:32:10]Read from MH i2c: 01 07 00 [12:32:10]MH_I2C_Read... [12:32:10]Read from MH i2c: 01 07 00 06 7D 00 00 00 00 00 FF 0F 98 [12:32:10]RasterBufferAndPrint [12:32:10]line Счет N : (1)347004 [12:32:10]line ИНН: 02508201610067 [12:32:10]line Контрольно-Кассовый Чек [12:32:10]line ПРОДАЖА [12:32:10]line ТРК (МРК, ГНК) : 71 [12:32:10]line Товар: 2711129700 [12:32:10]line ГАЗ-К-5 [12:32:10]line 45.600 * 32.90 [12:32:10]line = 1500.24 [12:32:10]line НДС 12% НСП 1% [12:32:10]line > о реализуемом товаре [12:32:10]line ИТОГО: 1500.24 [12:32:10]line НСП 1% : 13.28 [12:32:10]line НДС 12% : 159.32 [12:32:10]line Наличными: 0.00 [12:32:10]line Безнал.: 1500.24 [12:32:10]line Место: АЗС № 108 "Партнер Нефть" [12:32:10]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [12:32:10]line СНО: Общий режим [12:32:10]line Чек 120 12.04.2024 12:32 [12:32:10]line Смена: 113 ФФД: 1.0 [12:32:10]line ЗНМ: 0300000027 [12:32:10]line РНМ: 0000138879044617 [12:32:10]line Версия ККМ: 001 [12:32:10]line Платежная система: АКБ Кыргызстан [12:32:10]line ФМ: 0000000000963154 [12:32:10]line ФД: 28671 [12:32:10]line ФПД: 167195345750912 [12:32:10]line 1/tax-web-control/client/api/v1/ticket?date=20240412T123217&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28671&fm=167195345750912&tin=02508201610067®Number=0000138879044617&sum=150024 [12:32:11]OFD Sender: Processing packet 28671 [packets to send 8, broken 7] [12:32:11]ProducePacketName [12:32:11]name=ofd_packets/00028671 [12:32:11]OFD Sender: To server: pG, [12:32:11]CommunicateWithHost lk.salyk.kg:30040 [12:32:11]ConnectInit lk.salyk.kg [12:32:11]written 0, free lines is 4095 [12:32:11]Connected sock=7 [12:32:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 3C 49 06 01 50 93 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 20 B2 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 08 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 08 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 D1 29 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FF 6F 00 00 35 04 06 00 98 10 33 31 0B 80 FF EA 02 5D 3B D8 91 D3 [12:32:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 7B D4 47 00 14 26 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FF 6F 00 00 F4 03 04 00 7B D4 18 66 B6 04 01 00 00 D8 C3 89 0E 29 0E 6C 6E [12:32:11]CommunicateWithHost err = 0 [12:32:11]CheckOFDResponse [12:32:11]1017 (14) - 77093643461234 [12:32:11]1041 (16) - 0000000000963154 [12:32:11]1040 (4) - 28671 [12:32:11]1012 (4) - 12.04.2024 06:28 [12:32:11]1206 (1) - 0 [12:32:11]OFD Sender: Remove packet 28671 [12:32:11]ProducePacketName [12:32:11]name=ofd_packets/00028671 [12:32:11]NVStorageDeleteData [12:32:11]Write to MH i2c: 01 00 00 2F 7D AC [12:32:11]Write i2c OK [12:32:11]MH_I2C_Read... [12:32:11]Read from MH i2c: 01 [12:32:11]MH_I2C_Read... [12:32:11]Read from MH i2c: 01 07 00 [12:32:11]MH_I2C_Read... [12:32:11]Read from MH i2c: 01 07 00 2F 7D 00 00 00 00 00 EE 0C AD [12:32:11]RasterBufferAndPrint [12:32:11]line [12:32:11]line [12:32:11]line [12:32:11]line [12:32:11]line [12:32:11]written 0, free lines is 3317 [12:32:11]MH_Cut [12:32:11]Write to MH i2c: D1 01 00 36 7D 01 85 [12:32:11]Write i2c OK [12:32:11]MH_I2C_Read... [12:32:11]Read from MH i2c: D1 [12:32:11]MH_I2C_Read... [12:32:11]Read from MH i2c: D1 01 00 [12:32:11]MH_I2C_Read... [12:32:11]Read from MH i2c: D1 01 00 36 7D 00 84 [12:32:11]Write to MH i2c: 01 00 00 37 7D B4 [12:32:11]Write i2c OK [12:32:11]MH_I2C_Read... [12:32:11]OFD Sender: No OFD packet to send [12:32:12]*** Cut start [12:32:12]*** Partial cut [12:32:12]*** CUTSNS_PIN = 1 [12:32:12]*** CUTSNS_PIN = 0 [12:32:12]*** Brake cut motor [12:32:13]Read from MH i2c: 01 [12:32:13]MH_I2C_Read... [12:32:13]*** Stop cut motor [12:32:13]*** Cut end [12:32:13]Read from MH i2c: 01 07 00 [12:32:13]MH_I2C_Read... [12:32:13]Read from MH i2c: 01 07 00 37 7D 00 00 00 00 00 FF 0F C9 [12:32:13]process_action close_receipt done [12:32:13]requested_data is exist [12:32:13]produce_requested_data [12:32:13]requested_item fm.sn is exist - process it [12:32:13]wFMCommunicate request_size=4 [12:32:13]MH_SAM_APDU [12:32:13]CAPDU: 80 11 00 00 [12:32:13]Write to MH i2c: E2 08 00 38 7D 80 11 00 00 00 00 00 00 2F [12:32:13]Write i2c OK [12:32:13]MH_I2C_Read... [12:32:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:32:13]Read from MH i2c: E2 [12:32:13]MH_I2C_Read... [12:32:13]Read from MH i2c: E2 17 00 [12:32:13]MH_I2C_Read... [12:32:13]Read from MH i2c: E2 17 00 38 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 7E [12:32:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:32:13]wFMCommunicate OK [12:32:13]requested_item fd.num is exist - process it [12:32:13]SAM_PROTO_GetFieldsCounters [12:32:13]wFMCommunicate request_size=4 [12:32:13]MH_SAM_APDU [12:32:13]CAPDU: 80 13 00 00 [12:32:13]Write to MH i2c: E2 08 00 39 7D 80 13 00 00 00 00 00 00 32 [12:32:13]Write i2c OK [12:32:13]MH_I2C_Read... [12:32:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:32:13]Read from MH i2c: E2 [12:32:13]MH_I2C_Read... [12:32:13]Read from MH i2c: E2 62 00 [12:32:13]MH_I2C_Read... [12:32:13]Read from MH i2c: E2 62 00 39 7D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 FF 6F 00 00 0E 04 04 00 71 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 B7 [12:32:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 FF 6F 00 00 0E 04 04 00 71 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 [12:32:13]wFMCommunicate OK [12:32:13]SAM_PROTO_GetFieldsCounters done [12:32:13]requested_item shift.num is exist - process it [12:32:13]requested_item shift.opened is exist - process it [12:32:13]req_shift_opened [12:32:13]FM_GetShiftState [12:32:13]SAM_PROTO_GetShiftState [12:32:13]wFMCommunicate request_size=4 [12:32:13]MH_SAM_APDU [12:32:13]CAPDU: 80 13 01 00 [12:32:13]Write to MH i2c: E2 08 00 3A 7D 80 13 01 00 00 00 00 00 34 [12:32:13]Write i2c OK [12:32:13]MH_I2C_Read... [12:32:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:32:13]Read from MH i2c: E2 [12:32:13]MH_I2C_Read... [12:32:13]Read from MH i2c: E2 0E 00 [12:32:13]MH_I2C_Read... [12:32:13]Read from MH i2c: E2 0E 00 3A 7D 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 45 [12:32:13]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [12:32:13]wFMCommunicate OK [12:32:13]SAM_PROTO_GetShiftState done [12:32:13]FM_GetShiftState done [12:32:13]req_shift_opened done [12:32:13]requested_item shift.open_date is exist - process it [12:32:13]req_shift_open_date [12:32:13]req_shift_open_date done [12:32:13]produce_requested_data done [12:32:13]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28671,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [12:32:13]process_action_free close_receipt [12:32:13]json_value_free [12:32:13]json_value_free done [12:32:13]process_json_proto returns [12:32:13]Send response to host [12:32:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28671,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [12:32:13]free response buf [12:32:13]execute_script done [12:32:13]execute_script returns [12:32:13]free content buf [12:32:13]Sock 5.Close socket [12:32:13]Sock 5.Thread stoped [12:32:16]OFD Sender: No OFD packet to send [12:32:21]OFD Sender: No OFD packet to send [12:32:26]OFD Sender: No OFD packet to send [12:32:31]OFD Sender: No OFD packet to send [12:32:36]OFD Sender: No OFD packet to send [12:32:41]OFD Sender: No OFD packet to send [12:32:46]OFD Sender: No OFD packet to send [12:32:51]OFD Sender: No OFD packet to send [12:32:56]OFD Sender: No OFD packet to send [12:33:01]OFD Sender: No OFD packet to send [12:33:06]OFD Sender: No OFD packet to send [12:33:11]OFD Sender: No OFD packet to send [12:33:16]OFD Sender: No OFD packet to send [12:33:21]OFD Sender: No OFD packet to send [12:33:27]OFD Sender: No OFD packet to send [12:33:32]OFD Sender: No OFD packet to send [12:33:37]OFD Sender: No OFD packet to send [12:33:42]OFD Sender: No OFD packet to send [12:33:47]OFD Sender: No OFD packet to send [12:33:52]OFD Sender: No OFD packet to send [12:33:57]OFD Sender: No OFD packet to send [12:34:02]OFD Sender: No OFD packet to send [12:34:07]OFD Sender: No OFD packet to send [12:34:12]OFD Sender: No OFD packet to send [12:34:17]OFD Sender: No OFD packet to send [12:34:22]OFD Sender: No OFD packet to send [12:34:27]OFD Sender: No OFD packet to send [12:34:32]OFD Sender: No OFD packet to send [12:34:37]OFD Sender: No OFD packet to send [12:34:42]OFD Sender: No OFD packet to send [12:34:47]OFD Sender: No OFD packet to send [12:34:52]OFD Sender: No OFD packet to send [12:34:57]OFD Sender: No OFD packet to send [12:35:02]OFD Sender: No OFD packet to send [12:35:07]OFD Sender: No OFD packet to send [12:35:12]OFD Sender: No OFD packet to send [12:35:17]OFD Sender: No OFD packet to send [12:35:22]OFD Sender: No OFD packet to send [12:35:27]OFD Sender: No OFD packet to send [12:35:32]OFD Sender: No OFD packet to send [12:35:37]OFD Sender: No OFD packet to send [12:35:42]OFD Sender: No OFD packet to send [12:35:47]OFD Sender: No OFD packet to send [12:35:52]OFD Sender: No OFD packet to send [12:35:57]OFD Sender: No OFD packet to send [12:36:02]OFD Sender: No OFD packet to send [12:36:07]OFD Sender: No OFD packet to send [12:36:12]OFD Sender: No OFD packet to send [12:36:17]OFD Sender: No OFD packet to send [12:36:22]OFD Sender: No OFD packet to send [12:36:27]OFD Sender: No OFD packet to send [12:36:32]OFD Sender: No OFD packet to send [12:36:37]OFD Sender: No OFD packet to send [12:36:42]OFD Sender: No OFD packet to send [12:36:47]OFD Sender: No OFD packet to send [12:36:52]OFD Sender: No OFD packet to send [12:36:57]OFD Sender: No OFD packet to send [12:37:02]OFD Sender: No OFD packet to send [12:37:07]OFD Sender: No OFD packet to send [12:37:12]OFD Sender: No OFD packet to send [12:37:17]OFD Sender: No OFD packet to send [12:37:20]accept exits with 6 [12:37:20]New connection [12:37:20]New thread 3066641764 created [12:37:20]Thread 3066498404 joined [12:37:20]Waiting for new connection... [12:37:20] Sock 6.Parse request [12:37:20]Sock 6.Check first char [12:37:20]Sock 6.First char is OK [12:37:20]request: POST /json_proto HTTP/1.0 [12:37:20]Method: POST [12:37:20]URL: /json_proto [12:37:20]Method is POST - this is cgi request [12:37:20]url: /json_proto [12:37:20]query_string will be loaded in cgi processing [12:37:20]execute_cgi json_proto POST (null) [12:37:20]execute_cgi path=json_proto method=POST [12:37:20]POST find Content-Length [12:37:20]Host: 172.17.33.3:8080 [12:37:20]Content-Length: 843 [12:37:20]Content-Type: application/json [12:37:20] [12:37:20]POST finish read [12:37:20]Found Content-Length = 843 [12:37:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347005", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.50, "quantity" : 13.800, "sum" : 1000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:37:20]execute_script... [12:37: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)347005", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.50, "quantity" : 13.800, "sum" : 1000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:37:20]POST & json_proto [12:37:20]process_json_proto [12:37:20]json parsed OK: [12:37:20]protocol is kg_v1.0 [12:37:20]action value=close_receipt [12:37:20]process_action close_receipt [12:37:20]cmd_close_receipt [12:37:20]MH_GetDate [12:37:20]Write to MH i2c: F0 00 00 3B 7D A7 [12:37:20]Write i2c OK [12:37:20]MH_I2C_Read... [12:37:20]Read from MH i2c: F0 [12:37:20]MH_I2C_Read... [12:37:20]Read from MH i2c: F0 09 00 [12:37:20]MH_I2C_Read... [12:37:20]Read from MH i2c: F0 09 00 3B 7D 00 09 2B 19 66 23 5B 8F 65 D5 [12:37:20]GetLastDocTimeStamp 1712925137 [12:37:20]current date 1712925449 [12:37:20]FM_GetShiftState [12:37:20]SAM_PROTO_GetShiftState [12:37:20]wFMCommunicate request_size=4 [12:37:20]MH_SAM_APDU [12:37:20]CAPDU: 80 13 01 00 [12:37:20]Write to MH i2c: E2 08 00 3C 7D 80 13 01 00 00 00 00 00 36 [12:37:20]Write i2c OK [12:37:20]MH_I2C_Read... [12:37:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:37:20]Read from MH i2c: E2 [12:37:20]MH_I2C_Read... [12:37:20]Read from MH i2c: E2 0E 00 [12:37:20]MH_I2C_Read... [12:37:20]Read from MH i2c: E2 0E 00 3C 7D 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 47 [12:37:20]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [12:37:20]wFMCommunicate OK [12:37:20]SAM_PROTO_GetShiftState done [12:37:20]FM_GetShiftState done [12:37:20]opened in 1712881416 [12:37:20]opened+sec_in_day 1712967816 [12:37:20]quantity*price = 100050 [12:37:20]sum+1 = 100051 [12:37:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.50 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.50 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 121 12.04.2024 12:37 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 28672 ФПД: 155392890511209 1/tax-web-control/client/api/v1/ticket?date=20240412T123729&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28672&fm=155392890511209&tin=02508201610067®Number=0000138879044617&sum=100050 [12:37:21]StoreToDocumentArchive [12:37:21]shift 113 fd 28672 [12:37:21]save to /storage/0113/doc_00028672 [12:37:21]save last doc name /storage/0113/doc_00028672 to /storage/kkm_last_doc_name [12:37:21]save OK [12:37:21]Clear old archive folders... [12:37:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:37:21]tlvbuf is 01B86CD0 [12:37:21]SAM_PROTO_ClearQueue [12:37:21]wFMCommunicate request_size=4 [12:37:21]MH_SAM_APDU [12:37:21]CAPDU: 80 09 00 00 [12:37:21]Write to MH i2c: E2 08 00 49 7D 80 09 00 00 00 00 00 00 38 [12:37:21]Write i2c OK [12:37:21]MH_I2C_Read... [12:37:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:37:21]Read from MH i2c: E2 [12:37:21]MH_I2C_Read... [12:37:21]Read from MH i2c: E2 03 00 [12:37:21]MH_I2C_Read... [12:37:21]Read from MH i2c: E2 03 00 49 7D 00 90 00 3A [12:37:21]RAPDU: 90 00 [12:37:21]wFMCommunicate OK [12:37:21]SAM_PROTO_ClearQueue done [12:37:21]KKMCreateOFDPacket [12:37:21]OFDProtocolAddRootSTLVToBuf [12:37:21]FM_MakeSignedData [12:37:21]FM_MakeSignedData [12:37:21]SAM_PROTO_SignData [12:37:21]wFMCommunicate request_size=4 [12:37:21]MH_SAM_APDU [12:37:21]CAPDU: 80 0D 01 02 [12:37:21]Write to MH i2c: E2 08 00 4A 7D 80 0D 01 02 00 00 00 00 40 [12:37:21]Write i2c OK [12:37:21]MH_I2C_Read... [12:37:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:37:21]Read from MH i2c: E2 [12:37:21]MH_I2C_Read... [12:37:21]Read from MH i2c: E2 03 00 [12:37:21]MH_I2C_Read... [12:37:21]Read from MH i2c: E2 03 00 4A 7D 00 90 00 3B [12:37:21]RAPDU: 90 00 [12:37:21]wFMCommunicate OK [12:37:21]wFMCommunicate request_size=255 [12:37:21]MH_SAM_APDU [12:37: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 35 FF 03 08 00 03 E8 35 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 D2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D2 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 D2 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 09 2B 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 00 70 00 00 35 04 06 00 8D [12:37:21]Write to MH i2c: E2 02 01 4B 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E8 35 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 D2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D2 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 D2 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 09 2B 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 00 70 00 00 35 04 06 00 8D 00 00 BD [12:37:21]Write i2c OK [12:37:21]MH_I2C_Read... [12:37:22]OFD Sender: No OFD packet to send [12:37:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:37:22]Read from MH i2c: E2 [12:37:22]MH_I2C_Read... [12:37:22]Read from MH i2c: E2 03 00 [12:37:22]MH_I2C_Read... [12:37:22]Read from MH i2c: E2 03 00 4B 7D 00 90 00 3C [12:37:22]RAPDU: 90 00 [12:37:22]wFMCommunicate OK [12:37:22]wFMCommunicate request_size=10 [12:37:22]MH_SAM_APDU [12:37:22]CAPDU: 80 0D 02 02 05 54 3A 0A 1F 69 [12:37:22]Write to MH i2c: E2 0D 00 4C 7D 80 0D 02 02 05 00 54 3A 0A 1F 69 00 00 6D [12:37:22]Write i2c OK [12:37:22]MH_I2C_Read... [12:37:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:37:22]Read from MH i2c: E2 [12:37:22]MH_I2C_Read... [12:37:22]Read from MH i2c: E2 03 00 [12:37:22]MH_I2C_Read... [12:37:22]Read from MH i2c: E2 03 00 4C 7D 00 90 00 3D [12:37:22]RAPDU: 90 00 [12:37:22]wFMCommunicate OK [12:37:22]wFMCommunicate request_size=4 [12:37:22]MH_SAM_APDU [12:37:22]CAPDU: 80 0D 03 02 [12:37:22]Write to MH i2c: E2 08 00 4D 7D 80 0D 03 02 00 00 00 00 45 [12:37:22]Write i2c OK [12:37:22]MH_I2C_Read... [12:37:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:37:22]Read from MH i2c: E2 [12:37:22]MH_I2C_Read... [12:37:22]Read from MH i2c: E2 0B 00 [12:37:22]MH_I2C_Read... [12:37:22]Read from MH i2c: E2 0B 00 4D 7D 00 81 F3 9C 5E 71 04 F2 9E 90 00 B9 [12:37:22]RAPDU: 81 F3 9C 5E 71 04 F2 9E 90 00 [12:37:22]wFMCommunicate OK [12:37:22]SAM_PROTO_SignData done [12:37:22]FM_MakeSignedData done [12:37:22]CreateOFDProtocolMessage [12:37:22]wFMCommunicate request_size=4 [12:37:22]MH_SAM_APDU [12:37:22]CAPDU: 80 11 00 00 [12:37:22]Write to MH i2c: E2 08 00 4E 7D 80 11 00 00 00 00 00 00 45 [12:37:22]Write i2c OK [12:37:22]MH_I2C_Read... [12:37:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:37:22]Read from MH i2c: E2 [12:37:22]MH_I2C_Read... [12:37:22]Read from MH i2c: E2 17 00 [12:37:22]MH_I2C_Read... [12:37:22]Read from MH i2c: E2 17 00 4E 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 94 [12:37:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:37:22]wFMCommunicate OK [12:37:22]CreateOFDProtocolMessage done [12:37:22]OFDSenderStorePacket 28672 [12:37:22]StoreOFDPacket docnum=28672 [12:37:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 1B 99 07 01 C0 6E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E8 35 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 D2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D2 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 D2 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 09 2B 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 00 70 00 00 35 04 06 00 8D 54 3A 0A 1F 69 81 F3 9C 5E 71 04 F2 9E [12:37:22]CheckFolder [12:37:22]dirname=/storage/ofd_packets [12:37:22]CheckFolder done [12:37:22]ProducePacketName [12:37:22]name=ofd_packets/00028672 [12:37:22]NVStorageSaveData ofd_packets/00028672 [12:37:22]File name is /storage/ofd_packets/00028672 [12:37:22]Write 301 bytes [12:37:22]NVStorageSaveData done [12:37:22]OFDSenderStorePacket done [12:37:22]KKMCreateOFDPacket done [12:37:22]NVStorageSaveData kkm_last_timestamp [12:37:22]File name is /storage/kkm_last_timestamp [12:37:22]Write 4 bytes [12:37:22]NVStorageSaveData done [12:37:22]ExternCall_PrintAddStr [12:37:22]wPrintStart [12:37:22]Write to MH i2c: 01 00 00 4F 7D CC [12:37:22]Write i2c OK [12:37:22]MH_I2C_Read... [12:37:22]Read from MH i2c: 01 [12:37:22]MH_I2C_Read... [12:37:22]Read from MH i2c: 01 07 00 [12:37:22]MH_I2C_Read... [12:37:22]Read from MH i2c: 01 07 00 4F 7D 00 00 00 00 00 FF 0F E1 [12:37:22]RasterBufferAndPrint [12:37:22]line Счет N : (1)347005 [12:37:22]line ИНН: 02508201610067 [12:37:22]line Контрольно-Кассовый Чек [12:37:22]line ПРОДАЖА [12:37:22]line ТРК (МРК, ГНК) : 33 [12:37:22]line Товар: 2710124500 [12:37:22]line Аи-95-К-5 [12:37:22]line 13.800 * 72.50 [12:37:22]line = 1000.50 [12:37:22]line НДС 12% НСП 1% [12:37:22]line > о реализуемом товаре [12:37:22]line ИТОГО: 1000.50 [12:37:22]line НСП 1% : 8.85 [12:37:22]line НДС 12% : 106.25 [12:37:22]line Наличными: 0.00 [12:37:22]line Безнал.: 1000.50 [12:37:22]line Место: АЗС № 108 "Партнер Нефть" [12:37:22]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [12:37:22]line СНО: Общий режим [12:37:22]line Чек 121 12.04.2024 12:37 [12:37:22]line Смена: 113 ФФД: 1.0 [12:37:22]line ЗНМ: 0300000027 [12:37:22]line РНМ: 0000138879044617 [12:37:22]line Версия ККМ: 001 [12:37:22]line Платежная система: АКБ Кыргызстан [12:37:22]line ФМ: 0000000000963154 [12:37:22]line ФД: 28672 [12:37:22]line ФПД: 155392890511209 [12:37:22]line 1/tax-web-control/client/api/v1/ticket?date=20240412T123729&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28672&fm=155392890511209&tin=02508201610067®Number=0000138879044617&sum=100050 [12:37:22]OFD Sender: Processing packet 28672 [packets to send 8, broken 7] [12:37:22]ProducePacketName [12:37:22]name=ofd_packets/00028672 [12:37:22]OFD Sender: To server: pG, [12:37:22]CommunicateWithHost lk.salyk.kg:30040 [12:37:22]ConnectInit lk.salyk.kg [12:37:22]written 0, free lines is 4095 [12:37:22]Connected sock=7 [12:37:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 1B 99 07 01 C0 6E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E8 35 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 D2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D2 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 D2 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 09 2B 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 00 70 00 00 35 04 06 00 8D 54 3A 0A 1F 69 81 F3 9C 5E 71 04 F2 9E [12:37:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 5C 88 47 00 39 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 30 39 36 33 31 35 34 10 04 04 00 00 70 00 00 F4 03 04 00 B3 D5 18 66 B6 04 01 00 00 D3 AA 5D F9 EB 45 C9 5D [12:37:23]CommunicateWithHost err = 0 [12:37:23]CheckOFDResponse [12:37:23]1017 (14) - 77093643461234 [12:37:23]1041 (16) - 0000000000963154 [12:37:23]1040 (4) - 28672 [12:37:23]1012 (4) - 12.04.2024 06:33 [12:37:23]1206 (1) - 0 [12:37:23]OFD Sender: Remove packet 28672 [12:37:23]ProducePacketName [12:37:23]name=ofd_packets/00028672 [12:37:23]NVStorageDeleteData [12:37:23]Write to MH i2c: 01 00 00 78 7D F5 [12:37:23]Write i2c OK [12:37:23]MH_I2C_Read... [12:37:23]Read from MH i2c: 01 [12:37:23]MH_I2C_Read... [12:37:23]Read from MH i2c: 01 07 00 [12:37:23]MH_I2C_Read... [12:37:23]Read from MH i2c: 01 07 00 78 7D 00 00 00 00 00 E6 0C EE [12:37:23]RasterBufferAndPrint [12:37:23]line [12:37:23]line [12:37:23]line [12:37:23]line [12:37:23]line [12:37:23]written 0, free lines is 3308 [12:37:23]MH_Cut [12:37:23]Write to MH i2c: D1 01 00 7F 7D 01 CE [12:37:23]Write i2c OK [12:37:23]MH_I2C_Read... [12:37:23]Read from MH i2c: D1 [12:37:23]MH_I2C_Read... [12:37:23]Read from MH i2c: D1 01 00 [12:37:23]MH_I2C_Read... [12:37:23]Read from MH i2c: D1 01 00 7F 7D 00 CD [12:37:23]Write to MH i2c: 01 00 00 80 7D FD [12:37:23]Write i2c OK [12:37:23]MH_I2C_Read... [12:37:23]OFD Sender: No OFD packet to send [12:37:23]*** Cut start [12:37:23]*** Partial cut [12:37:23]*** CUTSNS_PIN = 1 [12:37:24]*** CUTSNS_PIN = 0 [12:37:24]*** Brake cut motor [12:37:24]Read from MH i2c: 01 [12:37:24]MH_I2C_Read... [12:37:24]*** Stop cut motor [12:37:24]*** Cut end [12:37:24]Read from MH i2c: 01 07 00 [12:37:24]MH_I2C_Read... [12:37:24]Read from MH i2c: 01 07 00 80 7D 00 00 00 00 00 FF 0F 12 [12:37:24]process_action close_receipt done [12:37:24]requested_data is exist [12:37:24]produce_requested_data [12:37:24]requested_item fm.sn is exist - process it [12:37:24]wFMCommunicate request_size=4 [12:37:24]MH_SAM_APDU [12:37:24]CAPDU: 80 11 00 00 [12:37:24]Write to MH i2c: E2 08 00 81 7D 80 11 00 00 00 00 00 00 78 [12:37:24]Write i2c OK [12:37:24]MH_I2C_Read... [12:37:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:37:24]Read from MH i2c: E2 [12:37:24]MH_I2C_Read... [12:37:24]Read from MH i2c: E2 17 00 [12:37:24]MH_I2C_Read... [12:37:24]Read from MH i2c: E2 17 00 81 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 C7 [12:37:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:37:24]wFMCommunicate OK [12:37:24]requested_item fd.num is exist - process it [12:37:24]SAM_PROTO_GetFieldsCounters [12:37:24]wFMCommunicate request_size=4 [12:37:24]MH_SAM_APDU [12:37:24]CAPDU: 80 13 00 00 [12:37:24]Write to MH i2c: E2 08 00 82 7D 80 13 00 00 00 00 00 00 7B [12:37:24]Write i2c OK [12:37:24]MH_I2C_Read... [12:37:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:37:24]Read from MH i2c: E2 [12:37:24]MH_I2C_Read... [12:37:24]Read from MH i2c: E2 62 00 [12:37:24]MH_I2C_Read... [12:37:24]Read from MH i2c: E2 62 00 82 7D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 00 70 00 00 0E 04 04 00 71 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 05 [12:37:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 00 70 00 00 0E 04 04 00 71 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 [12:37:24]wFMCommunicate OK [12:37:24]SAM_PROTO_GetFieldsCounters done [12:37:24]requested_item shift.num is exist - process it [12:37:24]requested_item shift.opened is exist - process it [12:37:24]req_shift_opened [12:37:24]FM_GetShiftState [12:37:24]SAM_PROTO_GetShiftState [12:37:24]wFMCommunicate request_size=4 [12:37:24]MH_SAM_APDU [12:37:24]CAPDU: 80 13 01 00 [12:37:24]Write to MH i2c: E2 08 00 83 7D 80 13 01 00 00 00 00 00 7D [12:37:24]Write i2c OK [12:37:24]MH_I2C_Read... [12:37:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:37:24]Read from MH i2c: E2 [12:37:24]MH_I2C_Read... [12:37:24]Read from MH i2c: E2 0E 00 [12:37:24]MH_I2C_Read... [12:37:24]Read from MH i2c: E2 0E 00 83 7D 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 8E [12:37:24]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [12:37:24]wFMCommunicate OK [12:37:24]SAM_PROTO_GetShiftState done [12:37:24]FM_GetShiftState done [12:37:24]req_shift_opened done [12:37:24]requested_item shift.open_date is exist - process it [12:37:24]req_shift_open_date [12:37:24]req_shift_open_date done [12:37:24]produce_requested_data done [12:37:24]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28672,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [12:37:24]process_action_free close_receipt [12:37:24]json_value_free [12:37:24]json_value_free done [12:37:24]process_json_proto returns [12:37:24]Send response to host [12:37:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28672,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [12:37:24]free response buf [12:37:24]execute_script done [12:37:24]execute_script returns [12:37:24]free content buf [12:37:24]Sock 6.Close socket [12:37:24]Sock 6.Thread stoped [12:37:28]OFD Sender: No OFD packet to send [12:37:33]OFD Sender: No OFD packet to send [12:37:38]OFD Sender: No OFD packet to send [12:37:43]OFD Sender: No OFD packet to send [12:37:48]OFD Sender: No OFD packet to send [12:37:53]OFD Sender: No OFD packet to send [12:37:58]OFD Sender: No OFD packet to send [12:38:03]OFD Sender: No OFD packet to send [12:38:08]OFD Sender: No OFD packet to send [12:38:13]OFD Sender: No OFD packet to send [12:38:18]OFD Sender: No OFD packet to send [12:38:23]OFD Sender: No OFD packet to send [12:38:28]OFD Sender: No OFD packet to send [12:38:33]OFD Sender: No OFD packet to send [12:38:38]OFD Sender: No OFD packet to send [12:38:43]OFD Sender: No OFD packet to send [12:38:48]OFD Sender: No OFD packet to send [12:38:53]OFD Sender: No OFD packet to send [12:38:58]OFD Sender: No OFD packet to send [12:39:03]OFD Sender: No OFD packet to send [12:39:08]OFD Sender: No OFD packet to send [12:39:13]OFD Sender: No OFD packet to send [12:39:18]OFD Sender: No OFD packet to send [12:39:23]OFD Sender: No OFD packet to send [12:39:28]OFD Sender: No OFD packet to send [12:39:33]OFD Sender: No OFD packet to send [12:39:38]OFD Sender: No OFD packet to send [12:39:43]OFD Sender: No OFD packet to send [12:39:48]OFD Sender: No OFD packet to send [12:39:53]OFD Sender: No OFD packet to send [12:39:58]OFD Sender: No OFD packet to send [12:40:01]accept exits with 5 [12:40:01]New connection [12:40:01]New thread 3066498404 created [12:40:01]Thread 3066641764 joined [12:40:01]Waiting for new connection... [12:40:01] Sock 5.Parse request [12:40:01]Sock 5.Check first char [12:40:01]Sock 5.First char is OK [12:40:01]request: POST /json_proto HTTP/1.0 [12:40:01]Method: POST [12:40:01]URL: /json_proto [12:40:01]Method is POST - this is cgi request [12:40:01]url: /json_proto [12:40:01]query_string will be loaded in cgi processing [12:40:01]execute_cgi json_proto POST (null) [12:40:01]execute_cgi path=json_proto method=POST [12:40:01]POST find Content-Length [12:40:01]Host: 172.17.33.3:8080 [12:40:01]Content-Length: 678 [12:40:01]Content-Type: application/json [12:40:01] [12:40:01]POST finish read [12:40:01]Found Content-Length = 678 [12:40:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347006", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 10.040, "sum" : 645.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 645.00, "total" : 645.00, "payments": [ { "type": 0, "sum" : 645.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:40:01]execute_script... [12:40: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)347006", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 10.040, "sum" : 645.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 645.00, "total" : 645.00, "payments": [ { "type": 0, "sum" : 645.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:40:01]POST & json_proto [12:40:01]process_json_proto [12:40:01]json parsed OK: [12:40:01]protocol is kg_v1.0 [12:40:01]action value=close_receipt [12:40:01]process_action close_receipt [12:40:01]cmd_close_receipt [12:40:01]MH_GetDate [12:40:01]Write to MH i2c: F0 00 00 84 7D F0 [12:40:01]Write i2c OK [12:40:01]MH_I2C_Read... [12:40:01]Read from MH i2c: F0 [12:40:01]MH_I2C_Read... [12:40:01]Read from MH i2c: F0 09 00 [12:40:01]MH_I2C_Read... [12:40:01]Read from MH i2c: F0 09 00 84 7D 00 A9 2B 19 66 23 5B 8F 65 BE [12:40:01]GetLastDocTimeStamp 1712925449 [12:40:01]current date 1712925609 [12:40:01]FM_GetShiftState [12:40:01]SAM_PROTO_GetShiftState [12:40:01]wFMCommunicate request_size=4 [12:40:01]MH_SAM_APDU [12:40:01]CAPDU: 80 13 01 00 [12:40:01]Write to MH i2c: E2 08 00 85 7D 80 13 01 00 00 00 00 00 7F [12:40:01]Write i2c OK [12:40:01]MH_I2C_Read... [12:40:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:40:01]Read from MH i2c: E2 [12:40:01]MH_I2C_Read... [12:40:01]Read from MH i2c: E2 0E 00 [12:40:01]MH_I2C_Read... [12:40:01]Read from MH i2c: E2 0E 00 85 7D 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 90 [12:40:01]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [12:40:01]wFMCommunicate OK [12:40:01]SAM_PROTO_GetShiftState done [12:40:01]FM_GetShiftState done [12:40:01]opened in 1712881416 [12:40:01]opened+sec_in_day 1712967816 [12:40:01]quantity*price = 64557 [12:40:01]sum+1 = 64558 [12:40:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 645.00 Внесено: 645.00 СДАЧА: 0.00 НСП 1% : 5.71 НДС 12% : 68.56 Наличными: 645.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 122 12.04.2024 12:40 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28673 ФПД: 4313613389191 1/tax-web-control/client/api/v1/ticket?date=20240412T124009&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28673&fm=4313613389191&tin=02508201610067®Number=0000138879044617&sum=64500 [12:40:02]StoreToDocumentArchive [12:40:02]shift 113 fd 28673 [12:40:02]save to /storage/0113/doc_00028673 [12:40:02]save last doc name /storage/0113/doc_00028673 to /storage/kkm_last_doc_name [12:40:02]save OK [12:40:02]Clear old archive folders... [12:40:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:40:02]tlvbuf is 01BB1800 [12:40:02]SAM_PROTO_ClearQueue [12:40:02]wFMCommunicate request_size=4 [12:40:02]MH_SAM_APDU [12:40:02]CAPDU: 80 09 00 00 [12:40:02]Write to MH i2c: E2 08 00 92 7D 80 09 00 00 00 00 00 00 81 [12:40:02]Write i2c OK [12:40:02]MH_I2C_Read... [12:40:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:40:02]Read from MH i2c: E2 [12:40:02]MH_I2C_Read... [12:40:02]Read from MH i2c: E2 03 00 [12:40:02]MH_I2C_Read... [12:40:02]Read from MH i2c: E2 03 00 92 7D 00 90 00 83 [12:40:02]RAPDU: 90 00 [12:40:02]wFMCommunicate OK [12:40:02]SAM_PROTO_ClearQueue done [12:40:02]KKMCreateOFDPacket [12:40:02]OFDProtocolAddRootSTLVToBuf [12:40:02]FM_MakeSignedData [12:40:02]FM_MakeSignedData [12:40:02]SAM_PROTO_SignData [12:40:02]wFMCommunicate request_size=4 [12:40:02]MH_SAM_APDU [12:40:02]CAPDU: 80 0D 01 02 [12:40:02]Write to MH i2c: E2 08 00 93 7D 80 0D 01 02 00 00 00 00 89 [12:40:02]Write i2c OK [12:40:02]MH_I2C_Read... [12:40:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:40:02]Read from MH i2c: E2 [12:40:02]MH_I2C_Read... [12:40:02]Read from MH i2c: E2 03 00 [12:40:02]MH_I2C_Read... [12:40:02]Read from MH i2c: E2 03 00 93 7D 00 90 00 84 [12:40:02]RAPDU: 90 00 [12:40:02]wFMCommunicate OK [12:40:02]wFMCommunicate request_size=255 [12:40:02]MH_SAM_APDU [12:40:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 27 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 2D FC 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 FB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 1A 00 00 00 00 07 04 06 00 F4 FB 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 A9 2B 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 01 70 00 00 35 04 06 00 03 [12:40:02]Write to MH i2c: E2 02 01 94 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 35 FF 03 08 00 03 38 27 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 2D FC 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 FB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 1A 00 00 00 00 07 04 06 00 F4 FB 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 A9 2B 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 01 70 00 00 35 04 06 00 03 00 00 1E [12:40:02]Write i2c OK [12:40:02]MH_I2C_Read... [12:40:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:40:03]Read from MH i2c: E2 [12:40:03]MH_I2C_Read... [12:40:03]Read from MH i2c: E2 03 00 [12:40:03]MH_I2C_Read... [12:40:03]Read from MH i2c: E2 03 00 94 7D 00 90 00 85 [12:40:03]RAPDU: 90 00 [12:40:03]wFMCommunicate OK [12:40:03]wFMCommunicate request_size=10 [12:40:03]MH_SAM_APDU [12:40:03]CAPDU: 80 0D 02 02 05 EC 57 64 CD 87 [12:40:03]Write to MH i2c: E2 0D 00 95 7D 80 0D 02 02 05 00 EC 57 64 CD 87 00 00 91 [12:40:03]Write i2c OK [12:40:03]MH_I2C_Read... [12:40:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:40:03]Read from MH i2c: E2 [12:40:03]MH_I2C_Read... [12:40:03]Read from MH i2c: E2 03 00 [12:40:03]MH_I2C_Read... [12:40:03]Read from MH i2c: E2 03 00 95 7D 00 90 00 86 [12:40:03]RAPDU: 90 00 [12:40:03]wFMCommunicate OK [12:40:03]wFMCommunicate request_size=4 [12:40:03]MH_SAM_APDU [12:40:03]CAPDU: 80 0D 03 02 [12:40:03]Write to MH i2c: E2 08 00 96 7D 80 0D 03 02 00 00 00 00 8E [12:40:03]Write i2c OK [12:40:03]MH_I2C_Read... [12:40:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:40:03]Read from MH i2c: E2 [12:40:03]MH_I2C_Read... [12:40:03]Read from MH i2c: E2 0B 00 [12:40:03]MH_I2C_Read... [12:40:03]Read from MH i2c: E2 0B 00 96 7D 00 69 C3 DF AC 45 74 B5 61 90 00 15 [12:40:03]RAPDU: 69 C3 DF AC 45 74 B5 61 90 00 [12:40:03]wFMCommunicate OK [12:40:03]SAM_PROTO_SignData done [12:40:03]FM_MakeSignedData done [12:40:03]CreateOFDProtocolMessage [12:40:03]wFMCommunicate request_size=4 [12:40:03]MH_SAM_APDU [12:40:03]CAPDU: 80 11 00 00 [12:40:03]Write to MH i2c: E2 08 00 97 7D 80 11 00 00 00 00 00 00 8E [12:40:03]Write i2c OK [12:40:03]MH_I2C_Read... [12:40:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:40:03]Read from MH i2c: E2 [12:40:03]MH_I2C_Read... [12:40:03]Read from MH i2c: E2 17 00 [12:40:03]MH_I2C_Read... [12:40:03]Read from MH i2c: E2 17 00 97 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 DD [12:40:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:40:03]wFMCommunicate OK [12:40:03]CreateOFDProtocolMessage done [12:40:03]OFDSenderStorePacket 28673 [12:40:03]StoreOFDPacket docnum=28673 [12:40:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 16 D6 07 01 AD E0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 27 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 2D FC 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 FB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 1A 00 00 00 00 07 04 06 00 F4 FB 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 A9 2B 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 01 70 00 00 35 04 06 00 03 EC 57 64 CD 87 69 C3 DF AC 45 74 B5 61 [12:40:03]CheckFolder [12:40:03]dirname=/storage/ofd_packets [12:40:03]CheckFolder done [12:40:03]ProducePacketName [12:40:03]name=ofd_packets/00028673 [12:40:03]NVStorageSaveData ofd_packets/00028673 [12:40:03]File name is /storage/ofd_packets/00028673 [12:40:03]Write 301 bytes [12:40:03]NVStorageSaveData done [12:40:03]OFDSenderStorePacket done [12:40:03]KKMCreateOFDPacket done [12:40:03]NVStorageSaveData kkm_last_timestamp [12:40:03]File name is /storage/kkm_last_timestamp [12:40:03]Write 4 bytes [12:40:03]NVStorageSaveData done [12:40:03]ExternCall_PrintAddStr [12:40:03]wPrintStart [12:40:03]Write to MH i2c: 01 00 00 98 7D 15 [12:40:03]Write i2c OK [12:40:03]MH_I2C_Read... [12:40:03]Read from MH i2c: 01 [12:40:03]MH_I2C_Read... [12:40:03]Read from MH i2c: 01 07 00 [12:40:03]MH_I2C_Read... [12:40:03]Read from MH i2c: 01 07 00 98 7D 00 00 00 00 00 FF 0F 2A [12:40:03]RasterBufferAndPrint [12:40:03]line Счет N : (1)347006 [12:40:03]line ИНН: 02508201610067 [12:40:03]line Контрольно-Кассовый Чек [12:40:03]line ПРОДАЖА [12:40:03]line ТРК (МРК, ГНК) : 13 [12:40:03]line Товар: 2710124130 [12:40:03]line Аи-92-К-5 [12:40:03]line 10.040 * 64.30 [12:40:03]line = 645.57 [12:40:03]line НДС 12% НСП 1% [12:40:03]line > о реализуемом товаре [12:40:03]line ОКРУГЛЕНИЕ: -0.57 [12:40:03]line ИТОГО: 645.00 [12:40:03]line Внесено: 645.00 [12:40:03]line СДАЧА: 0.00 [12:40:03]line НСП 1% : 5.71 [12:40:03]line НДС 12% : 68.56 [12:40:03]line Наличными: 645.00 [12:40:03]line Безнал.: 0.00 [12:40:03]line Место: АЗС № 108 "Партнер Нефть" [12:40:03]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [12:40:03]line СНО: Общий режим [12:40:03]line Чек 122 12.04.2024 12:40 [12:40:03]line Смена: 113 ФФД: 1.0 [12:40:03]line ЗНМ: 0300000027 [12:40:03]line РНМ: 0000138879044617 [12:40:03]line Версия ККМ: 001 [12:40:03]line ФМ: 0000000000963154 [12:40:03]line ФД: 28673 [12:40:03]line ФПД: 4313613389191 [12:40:03]line 1/tax-web-control/client/api/v1/ticket?date=20240412T124009&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28673&fm=4313613389191&tin=02508201610067®Number=0000138879044617&sum=64500 [12:40:03]OFD Sender: Processing packet 28673 [packets to send 8, broken 7] [12:40:03]ProducePacketName [12:40:03]name=ofd_packets/00028673 [12:40:03]OFD Sender: To server: pG, [12:40:03]CommunicateWithHost lk.salyk.kg:30040 [12:40:03]ConnectInit lk.salyk.kg [12:40:03]written 0, free lines is 4095 [12:40:03]Connected sock=7 [12:40:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 16 D6 07 01 AD E0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 27 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 2D FC 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 FB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 1A 00 00 00 00 07 04 06 00 F4 FB 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 A9 2B 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 01 70 00 00 35 04 06 00 03 EC 57 64 CD 87 69 C3 DF AC 45 74 B5 61 [12:40:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 34 97 47 00 34 5A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 01 70 00 00 F4 03 04 00 53 D6 18 66 B6 04 01 00 00 74 C0 75 09 A0 D5 73 8F [12:40:03]CommunicateWithHost err = 0 [12:40:03]CheckOFDResponse [12:40:03]1017 (14) - 77093643461234 [12:40:03]1041 (16) - 0000000000963154 [12:40:03]1040 (4) - 28673 [12:40:03]1012 (4) - 12.04.2024 06:36 [12:40:03]1206 (1) - 0 [12:40:03]OFD Sender: Remove packet 28673 [12:40:03]ProducePacketName [12:40:03]name=ofd_packets/00028673 [12:40:03]NVStorageDeleteData [12:40:04]Write to MH i2c: 01 00 00 C2 7D 3F [12:40:04]Write i2c OK [12:40:04]MH_I2C_Read... [12:40:04]Read from MH i2c: 01 [12:40:04]MH_I2C_Read... [12:40:04]Read from MH i2c: 01 07 00 [12:40:04]MH_I2C_Read... [12:40:04]Read from MH i2c: 01 07 00 C2 7D 00 00 00 00 00 D0 0C 22 [12:40:04]RasterBufferAndPrint [12:40:04]line [12:40:04]line [12:40:04]line [12:40:04]line [12:40:04]line [12:40:04]written 0, free lines is 3286 [12:40:04]MH_Cut [12:40:04]Write to MH i2c: D1 01 00 C9 7D 01 18 [12:40:04]Write i2c OK [12:40:04]MH_I2C_Read... [12:40:04]Read from MH i2c: D1 [12:40:04]MH_I2C_Read... [12:40:04]Read from MH i2c: D1 01 00 [12:40:04]MH_I2C_Read... [12:40:04]Read from MH i2c: D1 01 00 C9 7D 00 17 [12:40:04]Write to MH i2c: 01 00 00 CA 7D 47 [12:40:04]Write i2c OK [12:40:04]MH_I2C_Read... [12:40:04]OFD Sender: No OFD packet to send [12:40:04]*** Cut start [12:40:04]*** Partial cut [12:40:04]*** CUTSNS_PIN = 1 [12:40:04]*** CUTSNS_PIN = 0 [12:40:05]*** Brake cut motor [12:40:05]Read from MH i2c: 01 [12:40:05]MH_I2C_Read... [12:40:05]*** Stop cut motor [12:40:05]*** Cut end [12:40:05]Read from MH i2c: 01 07 00 [12:40:05]MH_I2C_Read... [12:40:05]Read from MH i2c: 01 07 00 CA 7D 00 00 00 00 00 FF 0F 5C [12:40:05]process_action close_receipt done [12:40:05]requested_data is exist [12:40:05]produce_requested_data [12:40:05]requested_item fm.sn is exist - process it [12:40:05]wFMCommunicate request_size=4 [12:40:05]MH_SAM_APDU [12:40:05]CAPDU: 80 11 00 00 [12:40:05]Write to MH i2c: E2 08 00 CB 7D 80 11 00 00 00 00 00 00 C2 [12:40:05]Write i2c OK [12:40:05]MH_I2C_Read... [12:40:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:40:05]Read from MH i2c: E2 [12:40:05]MH_I2C_Read... [12:40:05]Read from MH i2c: E2 17 00 [12:40:05]MH_I2C_Read... [12:40:05]Read from MH i2c: E2 17 00 CB 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 11 [12:40:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:40:05]wFMCommunicate OK [12:40:05]requested_item fd.num is exist - process it [12:40:05]SAM_PROTO_GetFieldsCounters [12:40:05]wFMCommunicate request_size=4 [12:40:05]MH_SAM_APDU [12:40:05]CAPDU: 80 13 00 00 [12:40:05]Write to MH i2c: E2 08 00 CC 7D 80 13 00 00 00 00 00 00 C5 [12:40:05]Write i2c OK [12:40:05]MH_I2C_Read... [12:40:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:40:05]Read from MH i2c: E2 [12:40:05]MH_I2C_Read... [12:40:05]Read from MH i2c: E2 62 00 [12:40:05]MH_I2C_Read... [12:40:05]Read from MH i2c: E2 62 00 CC 7D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 01 70 00 00 0E 04 04 00 71 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 53 [12:40:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 01 70 00 00 0E 04 04 00 71 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 [12:40:05]wFMCommunicate OK [12:40:05]SAM_PROTO_GetFieldsCounters done [12:40:05]requested_item shift.num is exist - process it [12:40:05]requested_item shift.opened is exist - process it [12:40:05]req_shift_opened [12:40:05]FM_GetShiftState [12:40:05]SAM_PROTO_GetShiftState [12:40:05]wFMCommunicate request_size=4 [12:40:05]MH_SAM_APDU [12:40:05]CAPDU: 80 13 01 00 [12:40:05]Write to MH i2c: E2 08 00 CD 7D 80 13 01 00 00 00 00 00 C7 [12:40:05]Write i2c OK [12:40:05]MH_I2C_Read... [12:40:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:40:05]Read from MH i2c: E2 [12:40:05]MH_I2C_Read... [12:40:05]Read from MH i2c: E2 0E 00 [12:40:05]MH_I2C_Read... [12:40:05]Read from MH i2c: E2 0E 00 CD 7D 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 D8 [12:40:05]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [12:40:05]wFMCommunicate OK [12:40:05]SAM_PROTO_GetShiftState done [12:40:05]FM_GetShiftState done [12:40:05]req_shift_opened done [12:40:05]requested_item shift.open_date is exist - process it [12:40:05]req_shift_open_date [12:40:05]req_shift_open_date done [12:40:05]produce_requested_data done [12:40:05]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28673,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [12:40:05]process_action_free close_receipt [12:40:05]json_value_free [12:40:05]json_value_free done [12:40:05]process_json_proto returns [12:40:05]Send response to host [12:40:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28673,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [12:40:05]free response buf [12:40:05]execute_script done [12:40:05]execute_script returns [12:40:05]free content buf [12:40:05]Sock 5.Close socket [12:40:05]Sock 5.Thread stoped [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:18]accept exits with 6 [12:41:18]New connection [12:41:18]New thread 3066641764 created [12:41:18]Thread 3066498404 joined [12:41:18]Waiting for new connection... [12:41:18] Sock 6.Parse request [12:41:18]Sock 6.Check first char [12:41:18]Sock 6.First char is OK [12:41:18]request: POST /json_proto HTTP/1.0 [12:41:18]Method: POST [12:41:18]URL: /json_proto [12:41:18]Method is POST - this is cgi request [12:41:18]url: /json_proto [12:41:18]query_string will be loaded in cgi processing [12:41:18]execute_cgi json_proto POST (null) [12:41:18]execute_cgi path=json_proto method=POST [12:41:18]POST find Content-Length [12:41:18]Host: 172.17.33.3:8080 [12:41:18]Content-Length: 677 [12:41:18]Content-Type: application/json [12:41:18] [12:41:18]POST finish read [12:41:18]Found Content-Length = 677 [12:41:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347007", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 9.340, "sum" : 600.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:41:18]execute_script... [12:41:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347007", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 9.340, "sum" : 600.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:41:18]POST & json_proto [12:41:18]process_json_proto [12:41:18]json parsed OK: [12:41:18]protocol is kg_v1.0 [12:41:18]action value=close_receipt [12:41:18]process_action close_receipt [12:41:18]cmd_close_receipt [12:41:18]MH_GetDate [12:41:18]Write to MH i2c: F0 00 00 CE 7D 3A [12:41:18]Write i2c OK [12:41:18]MH_I2C_Read... [12:41:18]Read from MH i2c: F0 [12:41:18]MH_I2C_Read... [12:41:18]Read from MH i2c: F0 09 00 [12:41:18]MH_I2C_Read... [12:41:18]Read from MH i2c: F0 09 00 CE 7D 00 F6 2B 19 66 23 5B 8F 65 55 [12:41:18]GetLastDocTimeStamp 1712925609 [12:41:18]current date 1712925686 [12:41:18]FM_GetShiftState [12:41:18]SAM_PROTO_GetShiftState [12:41:18]wFMCommunicate request_size=4 [12:41:18]MH_SAM_APDU [12:41:18]CAPDU: 80 13 01 00 [12:41:18]Write to MH i2c: E2 08 00 CF 7D 80 13 01 00 00 00 00 00 C9 [12:41:18]Write i2c OK [12:41:18]MH_I2C_Read... [12:41:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:41:18]Read from MH i2c: E2 [12:41:18]MH_I2C_Read... [12:41:18]Read from MH i2c: E2 0E 00 [12:41:18]MH_I2C_Read... [12:41:18]Read from MH i2c: E2 0E 00 CF 7D 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 DA [12:41:18]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [12:41:18]wFMCommunicate OK [12:41:18]SAM_PROTO_GetShiftState done [12:41:18]FM_GetShiftState done [12:41:18]opened in 1712881416 [12:41:18]opened+sec_in_day 1712967816 [12:41:18]quantity*price = 60056 [12:41:18]sum+1 = 60057 [12:41:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.78 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 123 12.04.2024 12:41 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28674 ФПД: 11861976075835 1/tax-web-control/client/api/v1/ticket?date=20240412T124126&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28674&fm=11861976075835&tin=02508201610067®Number=0000138879044617&sum=60000 [12:41:19]StoreToDocumentArchive [12:41:19]shift 113 fd 28674 [12:41:19]save to /storage/0113/doc_00028674 [12:41:19]save last doc name /storage/0113/doc_00028674 to /storage/kkm_last_doc_name [12:41:19]save OK [12:41:19]Clear old archive folders... [12:41:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:41:19]tlvbuf is 01AB68C0 [12:41:19]SAM_PROTO_ClearQueue [12:41:19]wFMCommunicate request_size=4 [12:41:19]MH_SAM_APDU [12:41:19]CAPDU: 80 09 00 00 [12:41:19]Write to MH i2c: E2 08 00 DC 7D 80 09 00 00 00 00 00 00 CB [12:41:19]Write i2c OK [12:41:19]MH_I2C_Read... [12:41:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:41:19]Read from MH i2c: E2 [12:41:19]MH_I2C_Read... [12:41:19]Read from MH i2c: E2 03 00 [12:41:19]MH_I2C_Read... [12:41:19]Read from MH i2c: E2 03 00 DC 7D 00 90 00 CD [12:41:19]RAPDU: 90 00 [12:41:19]wFMCommunicate OK [12:41:19]SAM_PROTO_ClearQueue done [12:41:19]KKMCreateOFDPacket [12:41:19]OFDProtocolAddRootSTLVToBuf [12:41:19]FM_MakeSignedData [12:41:19]FM_MakeSignedData [12:41:19]SAM_PROTO_SignData [12:41:19]wFMCommunicate request_size=4 [12:41:19]MH_SAM_APDU [12:41:19]CAPDU: 80 0D 01 02 [12:41:19]Write to MH i2c: E2 08 00 DD 7D 80 0D 01 02 00 00 00 00 D3 [12:41:19]Write i2c OK [12:41:19]MH_I2C_Read... [12:41:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:41:19]Read from MH i2c: E2 [12:41:19]MH_I2C_Read... [12:41:19]Read from MH i2c: E2 03 00 [12:41:19]MH_I2C_Read... [12:41:19]Read from MH i2c: E2 03 00 DD 7D 00 90 00 CE [12:41:19]RAPDU: 90 00 [12:41:19]wFMCommunicate OK [12:41:19]wFMCommunicate request_size=255 [12:41:19]MH_SAM_APDU [12:41:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7C 24 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 98 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 EA 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 7B 00 00 00 F4 03 04 00 F6 2B 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 02 70 00 00 35 04 06 00 0A [12:41:19]Write to MH i2c: E2 02 01 DE 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 35 FF 03 08 00 03 7C 24 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 98 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 EA 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 7B 00 00 00 F4 03 04 00 F6 2B 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 02 70 00 00 35 04 06 00 0A 00 00 06 [12:41:19]OFD Sender: No OFD packet to send [12:41:19]Write i2c OK [12:41:19]MH_I2C_Read... [12:41:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:41:19]Read from MH i2c: E2 [12:41:19]MH_I2C_Read... [12:41:19]Read from MH i2c: E2 03 00 [12:41:19]MH_I2C_Read... [12:41:19]Read from MH i2c: E2 03 00 DE 7D 00 90 00 CF [12:41:19]RAPDU: 90 00 [12:41:19]wFMCommunicate OK [12:41:19]wFMCommunicate request_size=10 [12:41:19]MH_SAM_APDU [12:41:19]CAPDU: 80 0D 02 02 05 C9 D4 DE CE 3B [12:41:19]Write to MH i2c: E2 0D 00 DF 7D 80 0D 02 02 05 00 C9 D4 DE CE 3B 00 00 64 [12:41:19]Write i2c OK [12:41:19]MH_I2C_Read... [12:41:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:41:19]Read from MH i2c: E2 [12:41:19]MH_I2C_Read... [12:41:19]Read from MH i2c: E2 03 00 [12:41:19]MH_I2C_Read... [12:41:19]Read from MH i2c: E2 03 00 DF 7D 00 90 00 D0 [12:41:19]RAPDU: 90 00 [12:41:19]wFMCommunicate OK [12:41:19]wFMCommunicate request_size=4 [12:41:19]MH_SAM_APDU [12:41:19]CAPDU: 80 0D 03 02 [12:41:19]Write to MH i2c: E2 08 00 E0 7D 80 0D 03 02 00 00 00 00 D8 [12:41:19]Write i2c OK [12:41:19]MH_I2C_Read... [12:41:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:41:19]Read from MH i2c: E2 [12:41:19]MH_I2C_Read... [12:41:19]Read from MH i2c: E2 0B 00 [12:41:19]MH_I2C_Read... [12:41:19]Read from MH i2c: E2 0B 00 E0 7D 00 2B A8 D3 CA EA 92 D9 FE 90 00 9C [12:41:19]RAPDU: 2B A8 D3 CA EA 92 D9 FE 90 00 [12:41:19]wFMCommunicate OK [12:41:19]SAM_PROTO_SignData done [12:41:19]FM_MakeSignedData done [12:41:19]CreateOFDProtocolMessage [12:41:19]wFMCommunicate request_size=4 [12:41:19]MH_SAM_APDU [12:41:19]CAPDU: 80 11 00 00 [12:41:19]Write to MH i2c: E2 08 00 E1 7D 80 11 00 00 00 00 00 00 D8 [12:41:19]Write i2c OK [12:41:19]MH_I2C_Read... [12:41:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:41:19]Read from MH i2c: E2 [12:41:19]MH_I2C_Read... [12:41:19]Read from MH i2c: E2 17 00 [12:41:19]MH_I2C_Read... [12:41:19]Read from MH i2c: E2 17 00 E1 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 27 [12:41:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:41:19]wFMCommunicate OK [12:41:19]CreateOFDProtocolMessage done [12:41:19]OFDSenderStorePacket 28674 [12:41:19]StoreOFDPacket docnum=28674 [12:41:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 F9 EE 07 01 8A AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7C 24 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 98 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 EA 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 7B 00 00 00 F4 03 04 00 F6 2B 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 02 70 00 00 35 04 06 00 0A C9 D4 DE CE 3B 2B A8 D3 CA EA 92 D9 FE [12:41:19]CheckFolder [12:41:19]dirname=/storage/ofd_packets [12:41:19]CheckFolder done [12:41:19]ProducePacketName [12:41:19]name=ofd_packets/00028674 [12:41:19]NVStorageSaveData ofd_packets/00028674 [12:41:19]File name is /storage/ofd_packets/00028674 [12:41:19]Write 301 bytes [12:41:19]NVStorageSaveData done [12:41:19]OFDSenderStorePacket done [12:41:19]KKMCreateOFDPacket done [12:41:19]NVStorageSaveData kkm_last_timestamp [12:41:19]File name is /storage/kkm_last_timestamp [12:41:19]Write 4 bytes [12:41:19]NVStorageSaveData done [12:41:19]ExternCall_PrintAddStr [12:41:19]wPrintStart [12:41:19]Write to MH i2c: 01 00 00 E2 7D 5F [12:41:19]Write i2c OK [12:41:19]MH_I2C_Read... [12:41:19]Read from MH i2c: 01 [12:41:19]MH_I2C_Read... [12:41:19]Read from MH i2c: 01 07 00 [12:41:19]MH_I2C_Read... [12:41:19]Read from MH i2c: 01 07 00 E2 7D 00 00 00 00 00 FF 0F 74 [12:41:19]RasterBufferAndPrint [12:41:19]line Счет N : (1)347007 [12:41:19]line ИНН: 02508201610067 [12:41:19]line Контрольно-Кассовый Чек [12:41:19]line ПРОДАЖА [12:41:19]line ТРК (МРК, ГНК) : 32 [12:41:19]line Товар: 2710124130 [12:41:19]line Аи-92-К-5 [12:41:19]line 9.340 * 64.30 [12:41:19]line = 600.56 [12:41:19]line НДС 12% НСП 1% [12:41:19]line > о реализуемом товаре [12:41:19]line ОКРУГЛЕНИЕ: -0.56 [12:41:19]line ИТОГО: 600.00 [12:41:19]line Внесено: 600.00 [12:41:19]line СДАЧА: 0.00 [12:41:19]line НСП 1% : 5.31 [12:41:19]line НДС 12% : 63.78 [12:41:19]line Наличными: 600.00 [12:41:19]line Безнал.: 0.00 [12:41:19]line Место: АЗС № 108 "Партнер Нефть" [12:41:19]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [12:41:19]line СНО: Общий режим [12:41:19]line Чек 123 12.04.2024 12:41 [12:41:19]line Смена: 113 ФФД: 1.0 [12:41:19]line ЗНМ: 0300000027 [12:41:19]line РНМ: 0000138879044617 [12:41:19]line Версия ККМ: 001 [12:41:19]line ФМ: 0000000000963154 [12:41:19]line ФД: 28674 [12:41:19]line ФПД: 11861976075835 [12:41:20]line 1/tax-web-control/client/api/v1/ticket?date=20240412T124126&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28674&fm=11861976075835&tin=02508201610067®Number=0000138879044617&sum=60000 [12:41:20]OFD Sender: Processing packet 28674 [packets to send 8, broken 7] [12:41:20]ProducePacketName [12:41:20]name=ofd_packets/00028674 [12:41:20]OFD Sender: To server: pG, [12:41:20]CommunicateWithHost lk.salyk.kg:30040 [12:41:20]ConnectInit lk.salyk.kg [12:41:20]written 0, free lines is 4095 [12:41:20]Connected sock=7 [12:41:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 F9 EE 07 01 8A AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7C 24 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 98 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 EA 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 7B 00 00 00 F4 03 04 00 F6 2B 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 02 70 00 00 35 04 06 00 0A C9 D4 DE CE 3B 2B A8 D3 CA EA 92 D9 FE [12:41:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 6E E3 47 00 FB 54 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 02 70 00 00 F4 03 04 00 A0 D6 18 66 B6 04 01 00 00 9C 97 25 36 19 94 94 FF [12:41:20]CommunicateWithHost err = 0 [12:41:20]CheckOFDResponse [12:41:20]1017 (14) - 77093643461234 [12:41:20]1041 (16) - 0000000000963154 [12:41:20]1040 (4) - 28674 [12:41:20]1012 (4) - 12.04.2024 06:37 [12:41:20]1206 (1) - 0 [12:41:20]OFD Sender: Remove packet 28674 [12:41:20]ProducePacketName [12:41:20]name=ofd_packets/00028674 [12:41:20]NVStorageDeleteData [12:41:20]Write to MH i2c: 01 00 00 0C 7E 8A [12:41:20]Write i2c OK [12:41:20]MH_I2C_Read... [12:41:20]Read from MH i2c: 01 [12:41:20]MH_I2C_Read... [12:41:20]Read from MH i2c: 01 07 00 [12:41:20]MH_I2C_Read... [12:41:20]Read from MH i2c: 01 07 00 0C 7E 00 00 00 00 00 C7 0C 64 [12:41:20]RasterBufferAndPrint [12:41:20]line [12:41:20]line [12:41:20]line [12:41:20]line [12:41:20]line [12:41:20]written 0, free lines is 3277 [12:41:20]MH_Cut [12:41:20]Write to MH i2c: D1 01 00 13 7E 01 63 [12:41:20]Write i2c OK [12:41:20]MH_I2C_Read... [12:41:20]Read from MH i2c: D1 [12:41:20]MH_I2C_Read... [12:41:20]Read from MH i2c: D1 01 00 [12:41:20]MH_I2C_Read... [12:41:20]Read from MH i2c: D1 01 00 13 7E 00 62 [12:41:20]Write to MH i2c: 01 00 00 14 7E 92 [12:41:20]Write i2c OK [12:41:20]MH_I2C_Read... [12:41:21]OFD Sender: No OFD packet to send [12:41:21]*** Cut start [12:41:21]*** Partial cut [12:41:21]*** CUTSNS_PIN = 1 [12:41:21]*** CUTSNS_PIN = 0 [12:41:21]*** Brake cut motor [12:41:22]Read from MH i2c: 01 [12:41:22]MH_I2C_Read... [12:41:22]*** Stop cut motor [12:41:22]*** Cut end [12:41:22]Read from MH i2c: 01 07 00 [12:41:22]MH_I2C_Read... [12:41:22]Read from MH i2c: 01 07 00 14 7E 00 00 00 00 00 FF 0F A7 [12:41:22]process_action close_receipt done [12:41:22]requested_data is exist [12:41:22]produce_requested_data [12:41:22]requested_item fm.sn is exist - process it [12:41:22]wFMCommunicate request_size=4 [12:41:22]MH_SAM_APDU [12:41:22]CAPDU: 80 11 00 00 [12:41:22]Write to MH i2c: E2 08 00 15 7E 80 11 00 00 00 00 00 00 0D [12:41:22]Write i2c OK [12:41:22]MH_I2C_Read... [12:41:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:41:22]Read from MH i2c: E2 [12:41:22]MH_I2C_Read... [12:41:22]Read from MH i2c: E2 17 00 [12:41:22]MH_I2C_Read... [12:41:22]Read from MH i2c: E2 17 00 15 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 5C [12:41:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:41:22]wFMCommunicate OK [12:41:22]requested_item fd.num is exist - process it [12:41:22]SAM_PROTO_GetFieldsCounters [12:41:22]wFMCommunicate request_size=4 [12:41:22]MH_SAM_APDU [12:41:22]CAPDU: 80 13 00 00 [12:41:22]Write to MH i2c: E2 08 00 16 7E 80 13 00 00 00 00 00 00 10 [12:41:22]Write i2c OK [12:41:22]MH_I2C_Read... [12:41:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:41:22]Read from MH i2c: E2 [12:41:22]MH_I2C_Read... [12:41:22]Read from MH i2c: E2 62 00 [12:41:22]MH_I2C_Read... [12:41:22]Read from MH i2c: E2 62 00 16 7E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 02 70 00 00 0E 04 04 00 71 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 A2 [12:41:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 02 70 00 00 0E 04 04 00 71 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 [12:41:22]wFMCommunicate OK [12:41:22]SAM_PROTO_GetFieldsCounters done [12:41:22]requested_item shift.num is exist - process it [12:41:22]requested_item shift.opened is exist - process it [12:41:22]req_shift_opened [12:41:22]FM_GetShiftState [12:41:22]SAM_PROTO_GetShiftState [12:41:22]wFMCommunicate request_size=4 [12:41:22]MH_SAM_APDU [12:41:22]CAPDU: 80 13 01 00 [12:41:22]Write to MH i2c: E2 08 00 17 7E 80 13 01 00 00 00 00 00 12 [12:41:22]Write i2c OK [12:41:22]MH_I2C_Read... [12:41:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:41:22]Read from MH i2c: E2 [12:41:22]MH_I2C_Read... [12:41:22]Read from MH i2c: E2 0E 00 [12:41:22]MH_I2C_Read... [12:41:22]Read from MH i2c: E2 0E 00 17 7E 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 23 [12:41:22]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [12:41:22]wFMCommunicate OK [12:41:22]SAM_PROTO_GetShiftState done [12:41:22]FM_GetShiftState done [12:41:22]req_shift_opened done [12:41:22]requested_item shift.open_date is exist - process it [12:41:22]req_shift_open_date [12:41:22]req_shift_open_date done [12:41:22]produce_requested_data done [12:41:22]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28674,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [12:41:22]process_action_free close_receipt [12:41:22]json_value_free [12:41:22]json_value_free done [12:41:22]process_json_proto returns [12:41:22]Send response to host [12:41:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28674,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [12:41:22]free response buf [12:41:22]execute_script done [12:41:22]execute_script returns [12:41:22]free content buf [12:41:22]Sock 6.Close socket [12:41:22]Sock 6.Thread stoped [12:41:26]OFD Sender: No OFD packet to send [12:41:31]OFD Sender: No OFD packet to send [12:41:36]OFD Sender: No OFD packet to send [12:41:41]OFD Sender: No OFD packet to send [12:41:46]OFD Sender: No OFD packet to send [12:41:51]OFD Sender: No OFD packet to send [12:41:56]OFD Sender: No OFD packet to send [12:42:01]OFD Sender: No OFD packet to send [12:42:06]OFD Sender: No OFD packet to send [12:42:11]OFD Sender: No OFD packet to send [12:42:16]OFD Sender: No OFD packet to send [12:42:21]OFD Sender: No OFD packet to send [12:42:26]OFD Sender: No OFD packet to send [12:42:31]OFD Sender: No OFD packet to send [12:42:36]OFD Sender: No OFD packet to send [12:42:38]accept exits with 5 [12:42:38]New connection [12:42:38]New thread 3066498404 created [12:42:38]Thread 3066641764 joined [12:42:38]Waiting for new connection... [12:42:38] Sock 5.Parse request [12:42:38]Sock 5.Check first char [12:42:38]Sock 5.First char is OK [12:42:38]request: POST /json_proto HTTP/1.0 [12:42:38]Method: POST [12:42:38]URL: /json_proto [12:42:38]Method is POST - this is cgi request [12:42:38]url: /json_proto [12:42:38]query_string will be loaded in cgi processing [12:42:38]execute_cgi json_proto POST (null) [12:42:38]execute_cgi path=json_proto method=POST [12:42:38]POST find Content-Length [12:42:38]Host: 172.17.33.3:8080 [12:42:38]Content-Length: 679 [12:42:38]Content-Type: application/json [12:42:38] [12:42:38]POST finish read [12:42:38]Found Content-Length = 679 [12:42:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347008", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 20.030, "sum" : 1450.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1450.00, "total" : 1450.00, "payments": [ { "type": 0, "sum" : 1450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:42:38]execute_script... [12:42: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)347008", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 20.030, "sum" : 1450.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1450.00, "total" : 1450.00, "payments": [ { "type": 0, "sum" : 1450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:42:38]POST & json_proto [12:42:38]process_json_proto [12:42:38]json parsed OK: [12:42:38]protocol is kg_v1.0 [12:42:38]action value=close_receipt [12:42:38]process_action close_receipt [12:42:38]cmd_close_receipt [12:42:38]MH_GetDate [12:42:38]Write to MH i2c: F0 00 00 18 7E 85 [12:42:38]Write i2c OK [12:42:38]MH_I2C_Read... [12:42:38]Read from MH i2c: F0 [12:42:38]MH_I2C_Read... [12:42:38]Read from MH i2c: F0 09 00 [12:42:38]MH_I2C_Read... [12:42:38]Read from MH i2c: F0 09 00 18 7E 00 46 2C 19 66 23 5B 8F 65 F1 [12:42:38]GetLastDocTimeStamp 1712925686 [12:42:38]current date 1712925766 [12:42:38]FM_GetShiftState [12:42:38]SAM_PROTO_GetShiftState [12:42:38]wFMCommunicate request_size=4 [12:42:38]MH_SAM_APDU [12:42:38]CAPDU: 80 13 01 00 [12:42:38]Write to MH i2c: E2 08 00 19 7E 80 13 01 00 00 00 00 00 14 [12:42:38]Write i2c OK [12:42:38]MH_I2C_Read... [12:42:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:42:38]Read from MH i2c: E2 [12:42:38]MH_I2C_Read... [12:42:38]Read from MH i2c: E2 0E 00 [12:42:38]MH_I2C_Read... [12:42:38]Read from MH i2c: E2 0E 00 19 7E 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 25 [12:42:38]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [12:42:38]wFMCommunicate OK [12:42:38]SAM_PROTO_GetShiftState done [12:42:38]FM_GetShiftState done [12:42:38]opened in 1712881416 [12:42:38]opened+sec_in_day 1712967816 [12:42:38]quantity*price = 145017 [12:42:38]sum+1 = 145018 [12:42:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.17 ИТОГО: 1450.00 Внесено: 1450.00 СДАЧА: 0.00 НСП 1% : 12.83 НДС 12% : 154.00 Наличными: 1450.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 124 12.04.2024 12:42 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28675 ФПД: 120867083362700 1/tax-web-control/client/api/v1/ticket?date=20240412T124246&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28675&fm=120867083362700&tin=02508201610067®Number=0000138879044617&sum=145000 [12:42:39]StoreToDocumentArchive [12:42:39]shift 113 fd 28675 [12:42:39]save to /storage/0113/doc_00028675 [12:42:39]save last doc name /storage/0113/doc_00028675 to /storage/kkm_last_doc_name [12:42:39]save OK [12:42:39]Clear old archive folders... [12:42:39]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:42:39]tlvbuf is 01AB68C0 [12:42:39]SAM_PROTO_ClearQueue [12:42:39]wFMCommunicate request_size=4 [12:42:39]MH_SAM_APDU [12:42:39]CAPDU: 80 09 00 00 [12:42:39]Write to MH i2c: E2 08 00 26 7E 80 09 00 00 00 00 00 00 16 [12:42:39]Write i2c OK [12:42:39]MH_I2C_Read... [12:42:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:42:39]Read from MH i2c: E2 [12:42:39]MH_I2C_Read... [12:42:39]Read from MH i2c: E2 03 00 [12:42:39]MH_I2C_Read... [12:42:39]Read from MH i2c: E2 03 00 26 7E 00 90 00 18 [12:42:39]RAPDU: 90 00 [12:42:39]wFMCommunicate OK [12:42:39]SAM_PROTO_ClearQueue done [12:42:39]KKMCreateOFDPacket [12:42:39]OFDProtocolAddRootSTLVToBuf [12:42:39]FM_MakeSignedData [12:42:39]FM_MakeSignedData [12:42:39]SAM_PROTO_SignData [12:42:39]wFMCommunicate request_size=4 [12:42:39]MH_SAM_APDU [12:42:39]CAPDU: 80 0D 01 02 [12:42:39]Write to MH i2c: E2 08 00 27 7E 80 0D 01 02 00 00 00 00 1E [12:42:39]Write i2c OK [12:42:39]MH_I2C_Read... [12:42:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:42:39]Read from MH i2c: E2 [12:42:39]MH_I2C_Read... [12:42:39]Read from MH i2c: E2 03 00 [12:42:39]MH_I2C_Read... [12:42:39]Read from MH i2c: E2 03 00 27 7E 00 90 00 19 [12:42:39]RAPDU: 90 00 [12:42:39]wFMCommunicate OK [12:42:39]wFMCommunicate request_size=255 [12:42:39]MH_SAM_APDU [12:42: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 35 FF 03 08 00 03 3E 4E 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 79 36 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 36 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 3C 00 00 00 00 07 04 06 00 68 36 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 46 2C 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 03 70 00 00 35 04 06 00 6D ED 8F 91 [12:42:39]Write to MH i2c: E2 02 01 28 7E 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 35 FF 03 08 00 03 3E 4E 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 79 36 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 36 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 3C 00 00 00 00 07 04 06 00 68 36 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 46 2C 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 03 70 00 00 35 04 06 00 6D ED 8F 91 00 00 B0 [12:42:39]Write i2c OK [12:42:39]MH_I2C_Read... [12:42:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:42:39]Read from MH i2c: E2 [12:42:39]MH_I2C_Read... [12:42:39]Read from MH i2c: E2 03 00 [12:42:39]MH_I2C_Read... [12:42:39]Read from MH i2c: E2 03 00 28 7E 00 90 00 1A [12:42:39]RAPDU: 90 00 [12:42:39]wFMCommunicate OK [12:42:39]wFMCommunicate request_size=7 [12:42:39]MH_SAM_APDU [12:42:39]CAPDU: 80 0D 02 02 02 A1 8C [12:42:39]Write to MH i2c: E2 0A 00 29 7E 80 0D 02 02 02 00 A1 8C 00 00 52 [12:42:39]Write i2c OK [12:42:39]MH_I2C_Read... [12:42:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:42:39]Read from MH i2c: E2 [12:42:39]MH_I2C_Read... [12:42:39]Read from MH i2c: E2 03 00 [12:42:39]MH_I2C_Read... [12:42:39]Read from MH i2c: E2 03 00 29 7E 00 90 00 1B [12:42:39]RAPDU: 90 00 [12:42:39]wFMCommunicate OK [12:42:39]wFMCommunicate request_size=4 [12:42:39]MH_SAM_APDU [12:42:39]CAPDU: 80 0D 03 02 [12:42:39]Write to MH i2c: E2 08 00 2A 7E 80 0D 03 02 00 00 00 00 23 [12:42:39]Write i2c OK [12:42:39]MH_I2C_Read... [12:42:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:42:39]Read from MH i2c: E2 [12:42:39]MH_I2C_Read... [12:42:39]Read from MH i2c: E2 0B 00 [12:42:39]MH_I2C_Read... [12:42:39]Read from MH i2c: E2 0B 00 2A 7E 00 40 E1 57 A6 A1 28 7F D7 90 00 61 [12:42:39]RAPDU: 40 E1 57 A6 A1 28 7F D7 90 00 [12:42:39]wFMCommunicate OK [12:42:39]SAM_PROTO_SignData done [12:42:39]FM_MakeSignedData done [12:42:39]CreateOFDProtocolMessage [12:42:39]wFMCommunicate request_size=4 [12:42:39]MH_SAM_APDU [12:42:39]CAPDU: 80 11 00 00 [12:42:39]Write to MH i2c: E2 08 00 2B 7E 80 11 00 00 00 00 00 00 23 [12:42:39]Write i2c OK [12:42:39]MH_I2C_Read... [12:42:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:42:39]Read from MH i2c: E2 [12:42:39]MH_I2C_Read... [12:42:39]Read from MH i2c: E2 17 00 [12:42:39]MH_I2C_Read... [12:42:39]Read from MH i2c: E2 17 00 2B 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 72 [12:42:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:42:39]wFMCommunicate OK [12:42:39]CreateOFDProtocolMessage done [12:42:39]OFDSenderStorePacket 28675 [12:42:39]StoreOFDPacket docnum=28675 [12:42:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 B0 C8 04 01 32 A4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 3E 4E 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 79 36 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 36 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 3C 00 00 00 00 07 04 06 00 68 36 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 46 2C 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 03 70 00 00 35 04 06 00 6D ED 8F 91 A1 8C 40 E1 57 A6 A1 28 7F D7 [12:42:39]CheckFolder [12:42:39]dirname=/storage/ofd_packets [12:42:39]CheckFolder done [12:42:39]ProducePacketName [12:42:39]name=ofd_packets/00028675 [12:42:39]NVStorageSaveData ofd_packets/00028675 [12:42:39]File name is /storage/ofd_packets/00028675 [12:42:39]Write 298 bytes [12:42:39]NVStorageSaveData done [12:42:39]OFDSenderStorePacket done [12:42:39]KKMCreateOFDPacket done [12:42:39]NVStorageSaveData kkm_last_timestamp [12:42:39]File name is /storage/kkm_last_timestamp [12:42:39]Write 4 bytes [12:42:39]NVStorageSaveData done [12:42:39]ExternCall_PrintAddStr [12:42:39]wPrintStart [12:42:39]Write to MH i2c: 01 00 00 2C 7E AA [12:42:39]Write i2c OK [12:42:39]MH_I2C_Read... [12:42:39]Read from MH i2c: 01 [12:42:39]MH_I2C_Read... [12:42:39]Read from MH i2c: 01 07 00 [12:42:39]MH_I2C_Read... [12:42:39]Read from MH i2c: 01 07 00 2C 7E 00 00 00 00 00 FF 0F BF [12:42:39]RasterBufferAndPrint [12:42:39]line Счет N : (1)347008 [12:42:39]line ИНН: 02508201610067 [12:42:39]line Контрольно-Кассовый Чек [12:42:39]line ПРОДАЖА [12:42:39]line ТРК (МРК, ГНК) : 61 [12:42:39]line Товар: 2710194210 [12:42:39]line ДТ-К-5 [12:42:39]line 20.030 * 72.40 [12:42:39]line = 1450.17 [12:42:39]line НДС 12% НСП 1% [12:42:39]line > о реализуемом товаре [12:42:39]line ОКРУГЛЕНИЕ: -0.17 [12:42:39]line ИТОГО: 1450.00 [12:42:39]line Внесено: 1450.00 [12:42:39]line СДАЧА: 0.00 [12:42:39]line НСП 1% : 12.83 [12:42:39]line НДС 12% : 154.00 [12:42:39]line Наличными: 1450.00 [12:42:39]line Безнал.: 0.00 [12:42:39]line Место: АЗС № 108 "Партнер Нефть" [12:42:39]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [12:42:39]line СНО: Общий режим [12:42:39]line Чек 124 12.04.2024 12:42 [12:42:39]line Смена: 113 ФФД: 1.0 [12:42:39]line ЗНМ: 0300000027 [12:42:39]line РНМ: 0000138879044617 [12:42:39]line Версия ККМ: 001 [12:42:39]line ФМ: 0000000000963154 [12:42:39]line ФД: 28675 [12:42:39]line ФПД: 120867083362700 [12:42:40]line 1/tax-web-control/client/api/v1/ticket?date=20240412T124246&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28675&fm=120867083362700&tin=02508201610067®Number=0000138879044617&sum=145000 [12:42:40]OFD Sender: Processing packet 28675 [packets to send 8, broken 7] [12:42:40]ProducePacketName [12:42:40]name=ofd_packets/00028675 [12:42:40]OFD Sender: To server: pG, [12:42:40]CommunicateWithHost lk.salyk.kg:30040 [12:42:40]ConnectInit lk.salyk.kg [12:42:40]written 0, free lines is 4095 [12:42:40]Connected sock=7 [12:42:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 B0 C8 04 01 32 A4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 3E 4E 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 79 36 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 36 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 3C 00 00 00 00 07 04 06 00 68 36 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 46 2C 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 03 70 00 00 35 04 06 00 6D ED 8F 91 A1 8C 40 E1 57 A6 A1 28 7F D7 [12:42:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 0A 3F 47 00 65 71 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 03 70 00 00 F4 03 04 00 F0 D6 18 66 B6 04 01 00 00 2F FF B5 12 C8 5C 57 BB [12:42:40]CommunicateWithHost err = 0 [12:42:40]CheckOFDResponse [12:42:40]1017 (14) - 77093643461234 [12:42:40]1041 (16) - 0000000000963154 [12:42:40]1040 (4) - 28675 [12:42:40]1012 (4) - 12.04.2024 06:38 [12:42:40]1206 (1) - 0 [12:42:40]OFD Sender: Remove packet 28675 [12:42:40]ProducePacketName [12:42:40]name=ofd_packets/00028675 [12:42:40]NVStorageDeleteData [12:42:40]Write to MH i2c: 01 00 00 56 7E D4 [12:42:40]Write i2c OK [12:42:40]MH_I2C_Read... [12:42:40]Read from MH i2c: 01 [12:42:40]MH_I2C_Read... [12:42:40]Read from MH i2c: 01 07 00 [12:42:40]MH_I2C_Read... [12:42:40]Read from MH i2c: 01 07 00 56 7E 00 00 00 00 00 D7 0C BE [12:42:40]RasterBufferAndPrint [12:42:40]line [12:42:40]line [12:42:40]line [12:42:40]line [12:42:40]line [12:42:40]written 0, free lines is 3294 [12:42:40]MH_Cut [12:42:40]Write to MH i2c: D1 01 00 5D 7E 01 AD [12:42:40]Write i2c OK [12:42:40]MH_I2C_Read... [12:42:40]Read from MH i2c: D1 [12:42:40]MH_I2C_Read... [12:42:40]Read from MH i2c: D1 01 00 [12:42:40]MH_I2C_Read... [12:42:40]Read from MH i2c: D1 01 00 5D 7E 00 AC [12:42:40]Write to MH i2c: 01 00 00 5E 7E DC [12:42:40]Write i2c OK [12:42:40]MH_I2C_Read... [12:42:40]OFD Sender: No OFD packet to send [12:42:41]*** Cut start [12:42:41]*** Partial cut [12:42:41]*** CUTSNS_PIN = 1 [12:42:41]*** CUTSNS_PIN = 0 [12:42:41]*** Brake cut motor [12:42:41]Read from MH i2c: 01 [12:42:41]MH_I2C_Read... [12:42:41]*** Stop cut motor [12:42:41]*** Cut end [12:42:41]Read from MH i2c: 01 07 00 [12:42:41]MH_I2C_Read... [12:42:41]Read from MH i2c: 01 07 00 5E 7E 00 00 00 00 00 FF 0F F1 [12:42:41]process_action close_receipt done [12:42:41]requested_data is exist [12:42:41]produce_requested_data [12:42:41]requested_item fm.sn is exist - process it [12:42:41]wFMCommunicate request_size=4 [12:42:41]MH_SAM_APDU [12:42:41]CAPDU: 80 11 00 00 [12:42:41]Write to MH i2c: E2 08 00 5F 7E 80 11 00 00 00 00 00 00 57 [12:42:41]Write i2c OK [12:42:41]MH_I2C_Read... [12:42:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:42:41]Read from MH i2c: E2 [12:42:41]MH_I2C_Read... [12:42:41]Read from MH i2c: E2 17 00 [12:42:41]MH_I2C_Read... [12:42:42]Read from MH i2c: E2 17 00 5F 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 A6 [12:42:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:42:42]wFMCommunicate OK [12:42:42]requested_item fd.num is exist - process it [12:42:42]SAM_PROTO_GetFieldsCounters [12:42:42]wFMCommunicate request_size=4 [12:42:42]MH_SAM_APDU [12:42:42]CAPDU: 80 13 00 00 [12:42:42]Write to MH i2c: E2 08 00 60 7E 80 13 00 00 00 00 00 00 5A [12:42:42]Write i2c OK [12:42:42]MH_I2C_Read... [12:42:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:42:42]Read from MH i2c: E2 [12:42:42]MH_I2C_Read... [12:42:42]Read from MH i2c: E2 62 00 [12:42:42]MH_I2C_Read... [12:42:42]Read from MH i2c: E2 62 00 60 7E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 03 70 00 00 0E 04 04 00 71 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 F0 [12:42:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 03 70 00 00 0E 04 04 00 71 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 [12:42:42]wFMCommunicate OK [12:42:42]SAM_PROTO_GetFieldsCounters done [12:42:42]requested_item shift.num is exist - process it [12:42:42]requested_item shift.opened is exist - process it [12:42:42]req_shift_opened [12:42:42]FM_GetShiftState [12:42:42]SAM_PROTO_GetShiftState [12:42:42]wFMCommunicate request_size=4 [12:42:42]MH_SAM_APDU [12:42:42]CAPDU: 80 13 01 00 [12:42:42]Write to MH i2c: E2 08 00 61 7E 80 13 01 00 00 00 00 00 5C [12:42:42]Write i2c OK [12:42:42]MH_I2C_Read... [12:42:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:42:42]Read from MH i2c: E2 [12:42:42]MH_I2C_Read... [12:42:42]Read from MH i2c: E2 0E 00 [12:42:42]MH_I2C_Read... [12:42:42]Read from MH i2c: E2 0E 00 61 7E 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 6D [12:42:42]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [12:42:42]wFMCommunicate OK [12:42:42]SAM_PROTO_GetShiftState done [12:42:42]FM_GetShiftState done [12:42:42]req_shift_opened done [12:42:42]requested_item shift.open_date is exist - process it [12:42:42]req_shift_open_date [12:42:42]req_shift_open_date done [12:42:42]produce_requested_data done [12:42:42]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28675,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [12:42:42]process_action_free close_receipt [12:42:42]json_value_free [12:42:42]json_value_free done [12:42:42]process_json_proto returns [12:42:42]Send response to host [12:42:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28675,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [12:42:42]free response buf [12:42:42]execute_script done [12:42:42]execute_script returns [12:42:42]free content buf [12:42:42]Sock 5.Close socket [12:42:42]Sock 5.Thread stoped [12:42:45]OFD Sender: No OFD packet to send [12:42:50]OFD Sender: No OFD packet to send [12:42:55]OFD Sender: No OFD packet to send [12:43:00]OFD Sender: No OFD packet to send [12:43:05]OFD Sender: No OFD packet to send [12:43:10]OFD Sender: No OFD packet to send [12:43:15]OFD Sender: No OFD packet to send [12:43:20]OFD Sender: No OFD packet to send [12:43:25]OFD Sender: No OFD packet to send [12:43:30]OFD Sender: No OFD packet to send [12:43:35]OFD Sender: No OFD packet to send [12:43:40]OFD Sender: No OFD packet to send [12:43:45]OFD Sender: No OFD packet to send [12:43:50]OFD Sender: No OFD packet to send [12:43:55]OFD Sender: No OFD packet to send [12:44:00]OFD Sender: No OFD packet to send [12:44:05]OFD Sender: No OFD packet to send [12:44:10]OFD Sender: No OFD packet to send [12:44:15]OFD Sender: No OFD packet to send [12:44:20]OFD Sender: No OFD packet to send [12:44:25]OFD Sender: No OFD packet to send [12:44:30]OFD Sender: No OFD packet to send [12:44:35]OFD Sender: No OFD packet to send [12:44:40]OFD Sender: No OFD packet to send [12:44:45]OFD Sender: No OFD packet to send [12:44:50]OFD Sender: No OFD packet to send [12:44:55]OFD Sender: No OFD packet to send [12:45:00]OFD Sender: No OFD packet to send [12:45:05]OFD Sender: No OFD packet to send [12:45:10]OFD Sender: No OFD packet to send [12:45:15]OFD Sender: No OFD packet to send [12:45:20]OFD Sender: No OFD packet to send [12:45:25]OFD Sender: No OFD packet to send [12:45:30]OFD Sender: No OFD packet to send [12:45:35]OFD Sender: No OFD packet to send [12:45:40]OFD Sender: No OFD packet to send [12:45:45]OFD Sender: No OFD packet to send [12:45:50]OFD Sender: No OFD packet to send [12:45:55]OFD Sender: No OFD packet to send [12:46:00]OFD Sender: No OFD packet to send [12:46:05]OFD Sender: No OFD packet to send [12:46:10]OFD Sender: No OFD packet to send [12:46:15]OFD Sender: No OFD packet to send [12:46:20]OFD Sender: No OFD packet to send [12:46:25]OFD Sender: No OFD packet to send [12:46:30]OFD Sender: No OFD packet to send [12:46:35]OFD Sender: No OFD packet to send [12:46:40]OFD Sender: No OFD packet to send [12:46:45]OFD Sender: No OFD packet to send [12:46:50]OFD Sender: No OFD packet to send [12:46:55]OFD Sender: No OFD packet to send [12:47:00]OFD Sender: No OFD packet to send [12:47:05]OFD Sender: No OFD packet to send [12:47:10]OFD Sender: No OFD packet to send [12:47:15]OFD Sender: No OFD packet to send [12:47:20]OFD Sender: No OFD packet to send [12:47:25]OFD Sender: No OFD packet to send [12:47:30]OFD Sender: No OFD packet to send [12:47:35]OFD Sender: No OFD packet to send [12:47:41]OFD Sender: No OFD packet to send [12:47:46]OFD Sender: No OFD packet to send [12:47:51]OFD Sender: No OFD packet to send [12:47:56]OFD Sender: No OFD packet to send [12:48:01]OFD Sender: No OFD packet to send [12:48:06]OFD Sender: No OFD packet to send [12:48:11]OFD Sender: No OFD packet to send [12:48:16]OFD Sender: No OFD packet to send [12:48:21]OFD Sender: No OFD packet to send [12:48:26]OFD Sender: No OFD packet to send [12:48:31]OFD Sender: No OFD packet to send [12:48:33]accept exits with 6 [12:48:33]New connection [12:48:33]New thread 3066641764 created [12:48:33]Thread 3066498404 joined [12:48:33]Waiting for new connection... [12:48:33] Sock 6.Parse request [12:48:33]Sock 6.Check first char [12:48:33]Sock 6.First char is OK [12:48:33]request: POST /json_proto HTTP/1.0 [12:48:33]Method: POST [12:48:33]URL: /json_proto [12:48:33]Method is POST - this is cgi request [12:48:33]url: /json_proto [12:48:33]query_string will be loaded in cgi processing [12:48:33]execute_cgi json_proto POST (null) [12:48:33]execute_cgi path=json_proto method=POST [12:48:33]POST find Content-Length [12:48:33]Host: 172.17.33.3:8080 [12:48:33]Content-Length: 677 [12:48:33]Content-Type: application/json [12:48:33] [12:48:33]POST finish read [12:48:33]Found Content-Length = 677 [12:48:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347009", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 7.780, "sum" : 500.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:48:33]execute_script... [12: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)347009", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 7.780, "sum" : 500.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:48:33]POST & json_proto [12:48:33]process_json_proto [12:48:33]json parsed OK: [12:48:33]protocol is kg_v1.0 [12:48:33]action value=close_receipt [12:48:33]process_action close_receipt [12:48:33]cmd_close_receipt [12:48:33]MH_GetDate [12:48:33]Write to MH i2c: F0 00 00 62 7E CF [12:48:33]Write i2c OK [12:48:33]MH_I2C_Read... [12:48:33]Read from MH i2c: F0 [12:48:33]MH_I2C_Read... [12:48:33]Read from MH i2c: F0 09 00 [12:48:33]MH_I2C_Read... [12:48:33]Read from MH i2c: F0 09 00 62 7E 00 A9 2D 19 66 23 5B 8F 65 9F [12:48:33]GetLastDocTimeStamp 1712925766 [12:48:33]current date 1712926121 [12:48:33]FM_GetShiftState [12:48:33]SAM_PROTO_GetShiftState [12:48:33]wFMCommunicate request_size=4 [12:48:33]MH_SAM_APDU [12:48:33]CAPDU: 80 13 01 00 [12:48:33]Write to MH i2c: E2 08 00 63 7E 80 13 01 00 00 00 00 00 5E [12:48:33]Write i2c OK [12:48:33]MH_I2C_Read... [12:48:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:48:33]Read from MH i2c: E2 [12:48:33]MH_I2C_Read... [12:48:33]Read from MH i2c: E2 0E 00 [12:48:33]MH_I2C_Read... [12:48:33]Read from MH i2c: E2 0E 00 63 7E 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 6F [12:48:33]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [12:48:33]wFMCommunicate OK [12:48:33]SAM_PROTO_GetShiftState done [12:48:33]FM_GetShiftState done [12:48:33]opened in 1712881416 [12:48:33]opened+sec_in_day 1712967816 [12:48:33]quantity*price = 50025 [12:48:33]sum+1 = 50026 [12:48:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 125 12.04.2024 12:48 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28676 ФПД: 12588930790399 1/tax-web-control/client/api/v1/ticket?date=20240412T124841&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28676&fm=12588930790399&tin=02508201610067®Number=0000138879044617&sum=50000 [12:48:34]StoreToDocumentArchive [12:48:34]shift 113 fd 28676 [12:48:34]save to /storage/0113/doc_00028676 [12:48:34]save last doc name /storage/0113/doc_00028676 to /storage/kkm_last_doc_name [12:48:34]save OK [12:48:34]Clear old archive folders... [12:48:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:48:34]tlvbuf is 01B4D4B0 [12:48:34]SAM_PROTO_ClearQueue [12:48:34]wFMCommunicate request_size=4 [12:48:34]MH_SAM_APDU [12:48:34]CAPDU: 80 09 00 00 [12:48:34]Write to MH i2c: E2 08 00 70 7E 80 09 00 00 00 00 00 00 60 [12:48:34]Write i2c OK [12:48:34]MH_I2C_Read... [12:48:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:48:34]Read from MH i2c: E2 [12:48:34]MH_I2C_Read... [12:48:34]Read from MH i2c: E2 03 00 [12:48:34]MH_I2C_Read... [12:48:34]Read from MH i2c: E2 03 00 70 7E 00 90 00 62 [12:48:34]RAPDU: 90 00 [12:48:34]wFMCommunicate OK [12:48:34]SAM_PROTO_ClearQueue done [12:48:34]KKMCreateOFDPacket [12:48:34]OFDProtocolAddRootSTLVToBuf [12:48:34]FM_MakeSignedData [12:48:34]FM_MakeSignedData [12:48:34]SAM_PROTO_SignData [12:48:34]wFMCommunicate request_size=4 [12:48:34]MH_SAM_APDU [12:48:34]CAPDU: 80 0D 01 02 [12:48:34]Write to MH i2c: E2 08 00 71 7E 80 0D 01 02 00 00 00 00 68 [12:48:34]Write i2c OK [12:48:34]MH_I2C_Read... [12:48:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:48:34]Read from MH i2c: E2 [12:48:34]MH_I2C_Read... [12:48:34]Read from MH i2c: E2 03 00 [12:48:34]MH_I2C_Read... [12:48:34]Read from MH i2c: E2 03 00 71 7E 00 90 00 63 [12:48:34]RAPDU: 90 00 [12:48:34]wFMCommunicate OK [12:48:34]wFMCommunicate request_size=255 [12:48:34]MH_SAM_APDU [12:48:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 A9 2D 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 04 70 00 00 35 04 06 00 0B [12:48:34]Write to MH i2c: E2 02 01 72 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 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 A9 2D 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 04 70 00 00 35 04 06 00 0B 00 00 EC [12:48:34]Write i2c OK [12:48:34]MH_I2C_Read... [12:48:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:48:35]Read from MH i2c: E2 [12:48:35]MH_I2C_Read... [12:48:35]Read from MH i2c: E2 03 00 [12:48:35]MH_I2C_Read... [12:48:35]Read from MH i2c: E2 03 00 72 7E 00 90 00 64 [12:48:35]RAPDU: 90 00 [12:48:35]wFMCommunicate OK [12:48:35]wFMCommunicate request_size=10 [12:48:35]MH_SAM_APDU [12:48:35]CAPDU: 80 0D 02 02 05 73 16 BF 73 FF [12:48:35]Write to MH i2c: E2 0D 00 73 7E 80 0D 02 02 05 00 73 16 BF 73 FF 00 00 2F [12:48:35]Write i2c OK [12:48:35]MH_I2C_Read... [12:48:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:48:35]Read from MH i2c: E2 [12:48:35]MH_I2C_Read... [12:48:35]Read from MH i2c: E2 03 00 [12:48:35]MH_I2C_Read... [12:48:35]Read from MH i2c: E2 03 00 73 7E 00 90 00 65 [12:48:35]RAPDU: 90 00 [12:48:35]wFMCommunicate OK [12:48:35]wFMCommunicate request_size=4 [12:48:35]MH_SAM_APDU [12:48:35]CAPDU: 80 0D 03 02 [12:48:35]Write to MH i2c: E2 08 00 74 7E 80 0D 03 02 00 00 00 00 6D [12:48:35]Write i2c OK [12:48:35]MH_I2C_Read... [12:48:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:48:35]Read from MH i2c: E2 [12:48:35]MH_I2C_Read... [12:48:35]Read from MH i2c: E2 0B 00 [12:48:35]MH_I2C_Read... [12:48:35]Read from MH i2c: E2 0B 00 74 7E 00 34 BD 3E F5 BF 49 31 81 90 00 4C [12:48:35]RAPDU: 34 BD 3E F5 BF 49 31 81 90 00 [12:48:35]wFMCommunicate OK [12:48:35]SAM_PROTO_SignData done [12:48:35]FM_MakeSignedData done [12:48:35]CreateOFDProtocolMessage [12:48:35]wFMCommunicate request_size=4 [12:48:35]MH_SAM_APDU [12:48:35]CAPDU: 80 11 00 00 [12:48:35]Write to MH i2c: E2 08 00 75 7E 80 11 00 00 00 00 00 00 6D [12:48:35]Write i2c OK [12:48:35]MH_I2C_Read... [12:48:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:48:35]Read from MH i2c: E2 [12:48:35]MH_I2C_Read... [12:48:35]Read from MH i2c: E2 17 00 [12:48:35]MH_I2C_Read... [12:48:35]Read from MH i2c: E2 17 00 75 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 BC [12:48:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:48:35]wFMCommunicate OK [12:48:35]CreateOFDProtocolMessage done [12:48:35]OFDSenderStorePacket 28676 [12:48:35]StoreOFDPacket docnum=28676 [12:48:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 73 73 07 01 DF 32 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 A9 2D 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 04 70 00 00 35 04 06 00 0B 73 16 BF 73 FF 34 BD 3E F5 BF 49 31 81 [12:48:35]CheckFolder [12:48:35]dirname=/storage/ofd_packets [12:48:35]CheckFolder done [12:48:35]ProducePacketName [12:48:35]name=ofd_packets/00028676 [12:48:35]NVStorageSaveData ofd_packets/00028676 [12:48:35]File name is /storage/ofd_packets/00028676 [12:48:35]Write 301 bytes [12:48:35]NVStorageSaveData done [12:48:35]OFDSenderStorePacket done [12:48:35]KKMCreateOFDPacket done [12:48:35]NVStorageSaveData kkm_last_timestamp [12:48:35]File name is /storage/kkm_last_timestamp [12:48:35]Write 4 bytes [12:48:35]NVStorageSaveData done [12:48:35]ExternCall_PrintAddStr [12:48:35]wPrintStart [12:48:35]Write to MH i2c: 01 00 00 76 7E F4 [12:48:35]Write i2c OK [12:48:35]MH_I2C_Read... [12:48:35]Read from MH i2c: 01 [12:48:35]MH_I2C_Read... [12:48:35]Read from MH i2c: 01 07 00 [12:48:35]MH_I2C_Read... [12:48:35]Read from MH i2c: 01 07 00 76 7E 00 00 00 00 00 FF 0F 09 [12:48:35]RasterBufferAndPrint [12:48:35]line Счет N : (1)347009 [12:48:35]line ИНН: 02508201610067 [12:48:35]line Контрольно-Кассовый Чек [12:48:35]line ПРОДАЖА [12:48:35]line ТРК (МРК, ГНК) : 42 [12:48:35]line Товар: 2710124130 [12:48:35]line Аи-92-К-5 [12:48:35]line 7.780 * 64.30 [12:48:35]line = 500.25 [12:48:35]line НДС 12% НСП 1% [12:48:35]line > о реализуемом товаре [12:48:35]line ОКРУГЛЕНИЕ: -0.25 [12:48:35]line ИТОГО: 500.00 [12:48:35]line Внесено: 500.00 [12:48:35]line СДАЧА: 0.00 [12:48:35]line НСП 1% : 4.43 [12:48:35]line НДС 12% : 53.12 [12:48:35]line Наличными: 500.00 [12:48:35]line Безнал.: 0.00 [12:48:35]line Место: АЗС № 108 "Партнер Нефть" [12:48:35]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [12:48:35]line СНО: Общий режим [12:48:35]line Чек 125 12.04.2024 12:48 [12:48:35]line Смена: 113 ФФД: 1.0 [12:48:35]line ЗНМ: 0300000027 [12:48:35]line РНМ: 0000138879044617 [12:48:35]line Версия ККМ: 001 [12:48:35]line ФМ: 0000000000963154 [12:48:35]line ФД: 28676 [12:48:35]line ФПД: 12588930790399 [12:48:35]line 1/tax-web-control/client/api/v1/ticket?date=20240412T124841&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28676&fm=12588930790399&tin=02508201610067®Number=0000138879044617&sum=50000 [12:48:35]OFD Sender: Processing packet 28676 [packets to send 8, broken 7] [12:48:35]ProducePacketName [12:48:35]name=ofd_packets/00028676 [12:48:35]OFD Sender: To server: pG, [12:48:35]CommunicateWithHost lk.salyk.kg:30040 [12:48:35]ConnectInit lk.salyk.kg [12:48:35]written 0, free lines is 4095 [12:48:35]Connected sock=7 [12:48:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 73 73 07 01 DF 32 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 A9 2D 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 04 70 00 00 35 04 06 00 0B 73 16 BF 73 FF 34 BD 3E F5 BF 49 31 81 [12:48:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 DB 44 47 00 D6 92 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 04 70 00 00 F4 03 04 00 53 D8 18 66 B6 04 01 00 00 03 80 B1 85 E5 CA B3 DE [12:48:35]CommunicateWithHost err = 0 [12:48:35]CheckOFDResponse [12:48:35]1017 (14) - 77093643461234 [12:48:35]1041 (16) - 0000000000963154 [12:48:35]1040 (4) - 28676 [12:48:35]1012 (4) - 12.04.2024 06:44 [12:48:35]1206 (1) - 0 [12:48:35]OFD Sender: Remove packet 28676 [12:48:35]ProducePacketName [12:48:35]name=ofd_packets/00028676 [12:48:35]NVStorageDeleteData [12:48:36]Write to MH i2c: 01 00 00 A0 7E 1E [12:48:36]Write i2c OK [12:48:36]MH_I2C_Read... [12:48:36]Read from MH i2c: 01 [12:48:36]MH_I2C_Read... [12:48:36]Read from MH i2c: 01 07 00 [12:48:36]MH_I2C_Read... [12:48:36]Read from MH i2c: 01 07 00 A0 7E 00 00 00 00 00 D7 0C 08 [12:48:36]RasterBufferAndPrint [12:48:36]line [12:48:36]line [12:48:36]line [12:48:36]line [12:48:36]line [12:48:36]written 0, free lines is 3295 [12:48:36]MH_Cut [12:48:36]Write to MH i2c: D1 01 00 A7 7E 01 F7 [12:48:36]Write i2c OK [12:48:36]MH_I2C_Read... [12:48:36]Read from MH i2c: D1 [12:48:36]MH_I2C_Read... [12:48:36]Read from MH i2c: D1 01 00 [12:48:36]MH_I2C_Read... [12:48:36]Read from MH i2c: D1 01 00 A7 7E 00 F6 [12:48:36]Write to MH i2c: 01 00 00 A8 7E 26 [12:48:36]Write i2c OK [12:48:36]MH_I2C_Read... [12:48:36]OFD Sender: No OFD packet to send [12:48:36]*** Cut start [12:48:36]*** Partial cut [12:48:36]*** CUTSNS_PIN = 1 [12:48:36]*** CUTSNS_PIN = 0 [12:48:37]*** Brake cut motor [12:48:37]Read from MH i2c: 01 [12:48:37]MH_I2C_Read... [12:48:37]*** Stop cut motor [12:48:37]*** Cut end [12:48:37]Read from MH i2c: 01 07 00 [12:48:37]MH_I2C_Read... [12:48:37]Read from MH i2c: 01 07 00 A8 7E 00 00 00 00 00 FF 0F 3B [12:48:37]process_action close_receipt done [12:48:37]requested_data is exist [12:48:37]produce_requested_data [12:48:37]requested_item fm.sn is exist - process it [12:48:37]wFMCommunicate request_size=4 [12:48:37]MH_SAM_APDU [12:48:37]CAPDU: 80 11 00 00 [12:48:37]Write to MH i2c: E2 08 00 A9 7E 80 11 00 00 00 00 00 00 A1 [12:48:37]Write i2c OK [12:48:37]MH_I2C_Read... [12:48:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:48:37]Read from MH i2c: E2 [12:48:37]MH_I2C_Read... [12:48:37]Read from MH i2c: E2 17 00 [12:48:37]MH_I2C_Read... [12:48:37]Read from MH i2c: E2 17 00 A9 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 F0 [12:48:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:48:37]wFMCommunicate OK [12:48:37]requested_item fd.num is exist - process it [12:48:37]SAM_PROTO_GetFieldsCounters [12:48:37]wFMCommunicate request_size=4 [12:48:37]MH_SAM_APDU [12:48:37]CAPDU: 80 13 00 00 [12:48:37]Write to MH i2c: E2 08 00 AA 7E 80 13 00 00 00 00 00 00 A4 [12:48:37]Write i2c OK [12:48:37]MH_I2C_Read... [12:48:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:48:37]Read from MH i2c: E2 [12:48:37]MH_I2C_Read... [12:48:37]Read from MH i2c: E2 62 00 [12:48:37]MH_I2C_Read... [12:48:37]Read from MH i2c: E2 62 00 AA 7E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 04 70 00 00 0E 04 04 00 71 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 3E [12:48:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 04 70 00 00 0E 04 04 00 71 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 [12:48:37]wFMCommunicate OK [12:48:37]SAM_PROTO_GetFieldsCounters done [12:48:37]requested_item shift.num is exist - process it [12:48:37]requested_item shift.opened is exist - process it [12:48:37]req_shift_opened [12:48:37]FM_GetShiftState [12:48:37]SAM_PROTO_GetShiftState [12:48:37]wFMCommunicate request_size=4 [12:48:37]MH_SAM_APDU [12:48:37]CAPDU: 80 13 01 00 [12:48:37]Write to MH i2c: E2 08 00 AB 7E 80 13 01 00 00 00 00 00 A6 [12:48:37]Write i2c OK [12:48:37]MH_I2C_Read... [12:48:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:48:37]Read from MH i2c: E2 [12:48:37]MH_I2C_Read... [12:48:37]Read from MH i2c: E2 0E 00 [12:48:37]MH_I2C_Read... [12:48:37]Read from MH i2c: E2 0E 00 AB 7E 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 B7 [12:48:37]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [12:48:37]wFMCommunicate OK [12:48:37]SAM_PROTO_GetShiftState done [12:48:37]FM_GetShiftState done [12:48:37]req_shift_opened done [12:48:37]requested_item shift.open_date is exist - process it [12:48:37]req_shift_open_date [12:48:37]req_shift_open_date done [12:48:37]produce_requested_data done [12:48:37]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28676,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [12:48:37]process_action_free close_receipt [12:48:37]json_value_free [12:48:37]json_value_free done [12:48:37]process_json_proto returns [12:48:37]Send response to host [12:48:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28676,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [12:48:37]free response buf [12:48:37]execute_script done [12:48:37]execute_script returns [12:48:37]free content buf [12:48:37]Sock 6.Close socket [12:48:37]Sock 6.Thread stoped [12:48:38]accept exits with 5 [12:48:38]New connection [12:48:38]New thread 3066498404 created [12:48:38]Thread 3066641764 joined [12:48:38]Waiting for new connection... [12:48:38] Sock 5.Parse request [12:48:38]Sock 5.Check first char [12:48:38]Sock 5.First char is OK [12:48:38]request: POST /json_proto HTTP/1.0 [12:48:38]Method: POST [12:48:38]URL: /json_proto [12:48:38]Method is POST - this is cgi request [12:48:38]url: /json_proto [12:48:38]query_string will be loaded in cgi processing [12:48:38]execute_cgi json_proto POST (null) [12:48:38]execute_cgi path=json_proto method=POST [12:48:38]POST find Content-Length [12:48:38]Host: 172.17.33.3:8080 [12:48:38]Content-Length: 215 [12:48:38]Content-Type: application/json [12:48:38] [12:48:38]POST finish read [12:48:38]Found Content-Length = 215 [12:48:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:48:38]execute_script... [12:48:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:48:38]POST & json_proto [12:48:38]process_json_proto [12:48:38]json parsed OK: [12:48:38]protocol is kg_v1.0 [12:48:38]action value=get_value [12:48:38]process_action get_value [12:48:38]cmd_get_value [12:48:38]process_action get_value done [12:48:38]requested_data is exist [12:48:38]produce_requested_data [12:48:38]requested_item kkm.sn is exist - process it [12:48:38]requested_item kkm.ver is exist - process it [12:48:38]requested_item fm.sn is exist - process it [12:48:38]wFMCommunicate request_size=4 [12:48:38]MH_SAM_APDU [12:48:38]CAPDU: 80 11 00 00 [12:48:38]Write to MH i2c: E2 08 00 AC 7E 80 11 00 00 00 00 00 00 A4 [12:48:38]Write i2c OK [12:48:38]MH_I2C_Read... [12:48:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:48:38]Read from MH i2c: E2 [12:48:38]MH_I2C_Read... [12:48:38]Read from MH i2c: E2 17 00 [12:48:38]MH_I2C_Read... [12:48:38]Read from MH i2c: E2 17 00 AC 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 F3 [12:48:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:48:38]wFMCommunicate OK [12:48:38]requested_item fd.num is exist - process it [12:48:38]SAM_PROTO_GetFieldsCounters [12:48:38]wFMCommunicate request_size=4 [12:48:38]MH_SAM_APDU [12:48:38]CAPDU: 80 13 00 00 [12:48:38]Write to MH i2c: E2 08 00 AD 7E 80 13 00 00 00 00 00 00 A7 [12:48:38]Write i2c OK [12:48:38]MH_I2C_Read... [12:48:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:48:38]Read from MH i2c: E2 [12:48:38]MH_I2C_Read... [12:48:38]Read from MH i2c: E2 62 00 [12:48:38]MH_I2C_Read... [12:48:38]Read from MH i2c: E2 62 00 AD 7E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 04 70 00 00 0E 04 04 00 71 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 41 [12:48:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 04 70 00 00 0E 04 04 00 71 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 [12:48:38]wFMCommunicate OK [12:48:38]SAM_PROTO_GetFieldsCounters done [12:48:38]requested_item shift.num is exist - process it [12:48:38]requested_item shift.opened is exist - process it [12:48:38]req_shift_opened [12:48:38]FM_GetShiftState [12:48:38]SAM_PROTO_GetShiftState [12:48:38]wFMCommunicate request_size=4 [12:48:38]MH_SAM_APDU [12:48:38]CAPDU: 80 13 01 00 [12:48:38]Write to MH i2c: E2 08 00 AE 7E 80 13 01 00 00 00 00 00 A9 [12:48:38]Write i2c OK [12:48:38]MH_I2C_Read... [12:48:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:48:38]Read from MH i2c: E2 [12:48:38]MH_I2C_Read... [12:48:38]Read from MH i2c: E2 0E 00 [12:48:38]MH_I2C_Read... [12:48:38]Read from MH i2c: E2 0E 00 AE 7E 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 BA [12:48:38]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [12:48:38]wFMCommunicate OK [12:48:38]SAM_PROTO_GetShiftState done [12:48:38]FM_GetShiftState done [12:48:38]req_shift_opened done [12:48:38]requested_item shift.open_date is exist - process it [12:48:38]req_shift_open_date [12:48:38]req_shift_open_date done [12:48:38]produce_requested_data done [12:48:38]produce_requested_data return {"kkm.sn":"0300000027","kkm.ver":"001","fm.sn":"0000000000963154","fd.num":28676,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [12:48:38]process_action_free get_value [12:48:38]json_value_free [12:48:38]json_value_free done [12:48:38]process_json_proto returns [12:48:38]Send response to host [12:48:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000027","kkm.ver":"001","fm.sn":"0000000000963154","fd.num":28676,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [12:48:38]free response buf [12:48:38]execute_script done [12:48:38]execute_script returns [12:48:38]free content buf [12:48:38]Sock 5.Close socket [12:48:38]Sock 5.Thread stoped [12:48:38]accept exits with 6 [12:48:38]New connection [12:48:38]New thread 3066641764 created [12:48:38]Thread 3066498404 joined [12:48:38]Waiting for new connection... [12:48:38] Sock 6.Parse request [12:48:38]Sock 6.Check first char [12:48:38]Sock 6.First char is OK [12:48:38]request: POST /json_proto HTTP/1.0 [12:48:38]Method: POST [12:48:38]URL: /json_proto [12:48:38]Method is POST - this is cgi request [12:48:38]url: /json_proto [12:48:38]query_string will be loaded in cgi processing [12:48:38]execute_cgi json_proto POST (null) [12:48:38]execute_cgi path=json_proto method=POST [12:48:38]POST find Content-Length [12:48:38]Host: 172.17.33.3:8080 [12:48:38]Content-Length: 331 [12:48:38]Content-Type: application/json [12:48:38] [12:48:38]POST finish read [12:48:38]Found Content-Length = 331 [12:48: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" ] } } [12:48:38]execute_script... [12:48: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" ] } } [12:48:38]POST & json_proto [12:48:38]process_json_proto [12:48:38]json parsed OK: [12:48:38]protocol is kg_v1.0 [12:48:38]action value=get_value [12:48:38]process_action get_value [12:48:38]cmd_get_value [12:48:38]process_action get_value done [12:48:38]requested_data is exist [12:48:38]produce_requested_data [12:48:38]requested_item fm.sale.total is exist - process it [12:48:38]SAM_PROTO_GetFMData [12:48:38]wFMCommunicate request_size=4 [12:48:38]MH_SAM_APDU [12:48:38]CAPDU: 80 13 03 00 [12:48:38]Write to MH i2c: E2 08 00 AF 7E 80 13 03 00 00 00 00 00 AC [12:48:38]Write i2c OK [12:48:38]MH_I2C_Read... [12:48:39]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [12:48:39]Read from MH i2c: E2 [12:48:39]MH_I2C_Read... [12:48:39]Read from MH i2c: E2 FD 00 [12:48:39]MH_I2C_Read... [12:48:39]Read from MH i2c: E2 FD 00 AF 7E 00 C3 04 85 04 BF 04 6E 04 04 00 22 6F 00 00 69 04 A1 00 6F 04 04 00 C8 6B 00 00 B1 04 04 00 69 47 3F AF 70 04 04 00 00 D3 16 70 72 04 04 00 69 74 28 3F 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 0B 2E 9D 12 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 4B 10 8D 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 9C 00 6F 04 04 00 5A 03 00 00 B1 04 04 00 A8 5F 91 0C 70 04 04 00 A8 5F 91 0C 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 C1 B4 55 01 EF 03 09 00 F6 90 00 FE [12:48:39]RAPDU: C3 04 85 04 BF 04 6E 04 04 00 22 6F 00 00 69 04 A1 00 6F 04 04 00 C8 6B 00 00 B1 04 04 00 69 47 3F AF 70 04 04 00 00 D3 16 70 72 04 04 00 69 74 28 3F 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 0B 2E 9D 12 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 4B 10 8D 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 9C 00 6F 04 04 00 5A 03 00 00 B1 04 04 00 A8 5F 91 0C 70 04 04 00 A8 5F 91 0C 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 C1 B4 55 01 EF 03 09 00 F6 90 00 [12:48:39]wFMCommunicate OK [12:48:39]wFMCommunicate request_size=4 [12:48:39]MH_SAM_APDU [12:48:39]CAPDU: 80 17 00 00 [12:48:39]Write to MH i2c: E2 08 00 B0 7E 80 17 00 00 00 00 00 00 AE [12:48:39]Write i2c OK [12:48:39]MH_I2C_Read... [12:48:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:48:39]Read from MH i2c: E2 [12:48:39]MH_I2C_Read... [12:48:39]Read from MH i2c: E2 FD 00 [12:48:39]MH_I2C_Read... [12:48:39]Read from MH i2c: E2 FD 00 B0 7E 00 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 4B 79 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 4E [12:48:39]RAPDU: 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 4B 79 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:48:39]wFMCommunicate OK [12:48:39]wFMCommunicate request_size=4 [12:48:39]MH_SAM_APDU [12:48:39]CAPDU: 80 17 00 00 [12:48:39]Write to MH i2c: E2 08 00 B1 7E 80 17 00 00 00 00 00 00 AF [12:48:39]Write i2c OK [12:48:39]MH_I2C_Read... [12:48:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:48:39]Read from MH i2c: E2 [12:48:39]MH_I2C_Read... [12:48:39]Read from MH i2c: E2 FD 00 [12:48:39]MH_I2C_Read... [12:48:39]Read from MH i2c: E2 FD 00 B1 7E 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 CD [12:48:39]RAPDU: 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:48:39]wFMCommunicate OK [12:48:39]wFMCommunicate request_size=4 [12:48:39]MH_SAM_APDU [12:48:39]CAPDU: 80 17 00 00 [12:48:39]Write to MH i2c: E2 08 00 B2 7E 80 17 00 00 00 00 00 00 B0 [12:48:39]Write i2c OK [12:48:39]MH_I2C_Read... [12:48:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:48:39]Read from MH i2c: E2 [12:48:39]MH_I2C_Read... [12:48:39]Read from MH i2c: E2 FD 00 [12:48:39]MH_I2C_Read... [12:48:39]Read from MH i2c: E2 FD 00 B2 7E 00 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 22 [12:48:39]RAPDU: 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:48:40]wFMCommunicate OK [12:48:40]wFMCommunicate request_size=4 [12:48:40]MH_SAM_APDU [12:48:40]CAPDU: 80 17 00 00 [12:48:40]Write to MH i2c: E2 08 00 B3 7E 80 17 00 00 00 00 00 00 B1 [12:48:40]Write i2c OK [12:48:40]MH_I2C_Read... [12:48:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 221! [12:48:40]Read from MH i2c: E2 [12:48:40]MH_I2C_Read... [12:48:40]Read from MH i2c: E2 E0 00 [12:48:40]MH_I2C_Read... [12:48:40]Read from MH i2c: E2 E0 00 B3 7E 00 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9B [12:48:40]RAPDU: 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [12:48:40]wFMCommunicate OK [12:48:40]SAM_PROTO_GetFMData done [12:48:40]requested_item fm.sale_refund.total is exist - process it [12:48:40]requested_item fm.buy.total is exist - process it [12:48:40]requested_item shift.sale.total is exist - process it [12:48:40]SAM_PROTO_GetShiftData [12:48:40]wFMCommunicate request_size=4 [12:48:40]MH_SAM_APDU [12:48:40]CAPDU: 80 13 02 00 [12:48:40]Write to MH i2c: E2 08 00 B4 7E 80 13 02 00 00 00 00 00 B0 [12:48:40]Write i2c OK [12:48:40]MH_I2C_Read... [12:48:40]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [12:48:40]Read from MH i2c: E2 [12:48:40]MH_I2C_Read... [12:48:40]Read from MH i2c: E2 FD 00 [12:48:40]MH_I2C_Read... [12:48:40]Read from MH i2c: E2 FD 00 B4 7E 00 BA 04 AA 04 B6 04 6E 04 04 00 7D 00 00 00 69 04 9C 00 6F 04 04 00 79 00 00 00 B1 04 03 00 46 3C E2 70 04 03 00 80 B1 87 72 04 03 00 C6 8A 5A 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 B3 07 18 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 96 00 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 D0 DB 17 70 04 03 00 D0 DB 17 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 AF 88 02 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 A3 [12:48:40]RAPDU: BA 04 AA 04 B6 04 6E 04 04 00 7D 00 00 00 69 04 9C 00 6F 04 04 00 79 00 00 00 B1 04 03 00 46 3C E2 70 04 03 00 80 B1 87 72 04 03 00 C6 8A 5A 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 B3 07 18 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 96 00 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 D0 DB 17 70 04 03 00 D0 DB 17 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 AF 88 02 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [12:48:40]wFMCommunicate OK [12:48:40]wFMCommunicate request_size=4 [12:48:40]MH_SAM_APDU [12:48:40]CAPDU: 80 17 00 00 [12:48:40]Write to MH i2c: E2 08 00 B5 7E 80 17 00 00 00 00 00 00 B3 [12:48:40]Write i2c OK [12:48:40]MH_I2C_Read... [12:48:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:48:41]Read from MH i2c: E2 [12:48:41]MH_I2C_Read... [12:48:41]Read from MH i2c: E2 FD 00 [12:48:41]MH_I2C_Read... [12:48:41]Read from MH i2c: E2 FD 00 B5 7E 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 0E 36 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 A1 [12:48:41]RAPDU: EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 0E 36 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:48:41]wFMCommunicate OK [12:48:41]wFMCommunicate request_size=4 [12:48:41]MH_SAM_APDU [12:48:41]CAPDU: 80 17 00 00 [12:48:41]Write to MH i2c: E2 08 00 B6 7E 80 17 00 00 00 00 00 00 B4 [12:48:41]Write i2c OK [12:48:41]MH_I2C_Read... [12:48:41]OFD Sender: No OFD packet to send [12:48:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:48:41]Read from MH i2c: E2 [12:48:41]MH_I2C_Read... [12:48:41]Read from MH i2c: E2 FD 00 [12:48:41]MH_I2C_Read... [12:48:41]Read from MH i2c: E2 FD 00 B6 7E 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 E0 [12:48:41]RAPDU: 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [12:48:41]wFMCommunicate OK [12:48:41]wFMCommunicate request_size=4 [12:48:41]MH_SAM_APDU [12:48:41]CAPDU: 80 17 00 00 [12:48:41]Write to MH i2c: E2 08 00 B7 7E 80 17 00 00 00 00 00 00 B5 [12:48:41]Write i2c OK [12:48:41]MH_I2C_Read... [12:48:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:48:41]Read from MH i2c: E2 [12:48:41]MH_I2C_Read... [12:48:41]Read from MH i2c: E2 FD 00 [12:48:41]MH_I2C_Read... [12:48:42]Read from MH i2c: E2 FD 00 B7 7E 00 00 EF 03 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 90 00 2D [12:48:42]RAPDU: 00 EF 03 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 90 00 [12:48:42]wFMCommunicate OK [12:48:42]wFMCommunicate request_size=4 [12:48:42]MH_SAM_APDU [12:48:42]CAPDU: 80 17 00 00 [12:48:42]Write to MH i2c: E2 08 00 B8 7E 80 17 00 00 00 00 00 00 B6 [12:48:42]Write i2c OK [12:48:42]MH_I2C_Read... [12:48:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [12:48:42]Read from MH i2c: E2 [12:48:42]MH_I2C_Read... [12:48:42]Read from MH i2c: E2 D7 00 [12:48:42]MH_I2C_Read... [12:48:42]Read from MH i2c: E2 D7 00 B8 7E 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 [12:48:42]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [12:48:42]wFMCommunicate OK [12:48:42]SAM_PROTO_GetShiftData done [12:48:42]requested_item shift.sale.total_cash is exist - process it [12:48:42]requested_item shift.sale_refund.total is exist - process it [12:48:42]requested_item shift.sale_refund.total_cash is exist - process it [12:48:42]requested_item shift.buy.total is exist - process it [12:48:42]requested_item shift.buy.total_cash is exist - process it [12:48:42]produce_requested_data done [12:48:42]produce_requested_data return {"fm.sale.total":29401598.49,"fm.sale_refund.total":2108538.00,"fm.buy.total":0.00,"shift.sale.total":148265.66,"shift.sale.total_cash":88928.00,"shift.sale_refund.total":15636.00,"shift.sale_refund.total_cash":15636.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [12:48:42]process_action_free get_value [12:48:42]json_value_free [12:48:42]json_value_free done [12:48:42]process_json_proto returns [12:48:42]Send response to host [12:48:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":29401598.49,"fm.sale_refund.total":2108538.00,"fm.buy.total":0.00,"shift.sale.total":148265.66,"shift.sale.total_cash":88928.00,"shift.sale_refund.total":15636.00,"shift.sale_refund.total_cash":15636.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [12:48:42]free response buf [12:48:42]execute_script done [12:48:42]execute_script returns [12:48:42]free content buf [12:48:42]Sock 6.Close socket [12:48:42]Sock 6.Thread stoped [12:48:42]accept exits with 5 [12:48:42]New connection [12:48:42]New thread 3066498404 created [12:48:42]Thread 3066641764 joined [12:48:42]Waiting for new connection... [12:48:42] Sock 5.Parse request [12:48:42]Sock 5.Check first char [12:48:42]Sock 5.First char is OK [12:48:42]request: POST /json_proto HTTP/1.0 [12:48:42]Method: POST [12:48:42]URL: /json_proto [12:48:42]Method is POST - this is cgi request [12:48:42]url: /json_proto [12:48:42]query_string will be loaded in cgi processing [12:48:42]execute_cgi json_proto POST (null) [12:48:42]execute_cgi path=json_proto method=POST [12:48:42]POST find Content-Length [12:48:42]Host: 172.17.33.3:8080 [12:48:42]Content-Length: 215 [12:48:42]Content-Type: application/json [12:48:42] [12:48:42]POST finish read [12:48:42]Found Content-Length = 215 [12:48:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:48:42]execute_script... [12:48:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:48:42]POST & json_proto [12:48:42]process_json_proto [12:48:42]json parsed OK: [12:48:42]protocol is kg_v1.0 [12:48:42]action value=get_value [12:48:42]process_action get_value [12:48:42]cmd_get_value [12:48:42]process_action get_value done [12:48:42]requested_data is exist [12:48:42]produce_requested_data [12:48:42]requested_item kkm.sn is exist - process it [12:48:42]requested_item kkm.ver is exist - process it [12:48:42]requested_item fm.sn is exist - process it [12:48:42]wFMCommunicate request_size=4 [12:48:42]MH_SAM_APDU [12:48:42]CAPDU: 80 11 00 00 [12:48:42]Write to MH i2c: E2 08 00 B9 7E 80 11 00 00 00 00 00 00 B1 [12:48:42]Write i2c OK [12:48:42]MH_I2C_Read... [12:48:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:48:42]Read from MH i2c: E2 [12:48:42]MH_I2C_Read... [12:48:42]Read from MH i2c: E2 17 00 [12:48:42]MH_I2C_Read... [12:48:42]Read from MH i2c: E2 17 00 B9 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 00 [12:48:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:48:42]wFMCommunicate OK [12:48:42]requested_item fd.num is exist - process it [12:48:42]SAM_PROTO_GetFieldsCounters [12:48:42]wFMCommunicate request_size=4 [12:48:42]MH_SAM_APDU [12:48:42]CAPDU: 80 13 00 00 [12:48:42]Write to MH i2c: E2 08 00 BA 7E 80 13 00 00 00 00 00 00 B4 [12:48:42]Write i2c OK [12:48:42]MH_I2C_Read... [12:48:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:48:42]Read from MH i2c: E2 [12:48:42]MH_I2C_Read... [12:48:42]Read from MH i2c: E2 62 00 [12:48:42]MH_I2C_Read... [12:48:42]Read from MH i2c: E2 62 00 BA 7E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 04 70 00 00 0E 04 04 00 71 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 4E [12:48:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 04 70 00 00 0E 04 04 00 71 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 [12:48:43]wFMCommunicate OK [12:48:43]SAM_PROTO_GetFieldsCounters done [12:48:43]requested_item shift.num is exist - process it [12:48:43]requested_item shift.opened is exist - process it [12:48:43]req_shift_opened [12:48:43]FM_GetShiftState [12:48:43]SAM_PROTO_GetShiftState [12:48:43]wFMCommunicate request_size=4 [12:48:43]MH_SAM_APDU [12:48:43]CAPDU: 80 13 01 00 [12:48:43]Write to MH i2c: E2 08 00 BB 7E 80 13 01 00 00 00 00 00 B6 [12:48:43]Write i2c OK [12:48:43]MH_I2C_Read... [12:48:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:48:43]Read from MH i2c: E2 [12:48:43]MH_I2C_Read... [12:48:43]Read from MH i2c: E2 0E 00 [12:48:43]MH_I2C_Read... [12:48:43]Read from MH i2c: E2 0E 00 BB 7E 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 C7 [12:48:43]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [12:48:43]wFMCommunicate OK [12:48:43]SAM_PROTO_GetShiftState done [12:48:43]FM_GetShiftState done [12:48:43]req_shift_opened done [12:48:43]requested_item shift.open_date is exist - process it [12:48:43]req_shift_open_date [12:48:43]req_shift_open_date done [12:48:43]produce_requested_data done [12:48:43]produce_requested_data return {"kkm.sn":"0300000027","kkm.ver":"001","fm.sn":"0000000000963154","fd.num":28676,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [12:48:43]process_action_free get_value [12:48:43]json_value_free [12:48:43]json_value_free done [12:48:43]process_json_proto returns [12:48:43]Send response to host [12:48:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000027","kkm.ver":"001","fm.sn":"0000000000963154","fd.num":28676,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [12:48:43]free response buf [12:48:43]execute_script done [12:48:43]execute_script returns [12:48:43]free content buf [12:48:43]Sock 5.Close socket [12:48:43]Sock 5.Thread stoped [12:48:43]accept exits with 6 [12:48:43]New connection [12:48:43]New thread 3066641764 created [12:48:43]Thread 3066498404 joined [12:48:43]Waiting for new connection... [12:48:43] Sock 6.Parse request [12:48:43]Sock 6.Check first char [12:48:43]Sock 6.First char is OK [12:48:43]request: POST /json_proto HTTP/1.0 [12:48:43]Method: POST [12:48:43]URL: /json_proto [12:48:43]Method is POST - this is cgi request [12:48:43]url: /json_proto [12:48:43]query_string will be loaded in cgi processing [12:48:43]execute_cgi json_proto POST (null) [12:48:43]execute_cgi path=json_proto method=POST [12:48:43]POST find Content-Length [12:48:43]Host: 172.17.33.3:8080 [12:48:43]Content-Length: 331 [12:48:43]Content-Type: application/json [12:48:43] [12:48:43]POST finish read [12:48:43]Found Content-Length = 331 [12:48:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [12:48:43]execute_script... [12:48:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [12:48:43]POST & json_proto [12:48:43]process_json_proto [12:48:43]json parsed OK: [12:48:43]protocol is kg_v1.0 [12:48:43]action value=get_value [12:48:43]process_action get_value [12:48:43]cmd_get_value [12:48:43]process_action get_value done [12:48:43]requested_data is exist [12:48:43]produce_requested_data [12:48:43]requested_item fm.sale.total is exist - process it [12:48:43]SAM_PROTO_GetFMData [12:48:43]wFMCommunicate request_size=4 [12:48:43]MH_SAM_APDU [12:48:43]CAPDU: 80 13 03 00 [12:48:43]Write to MH i2c: E2 08 00 BC 7E 80 13 03 00 00 00 00 00 B9 [12:48:43]Write i2c OK [12:48:43]MH_I2C_Read... [12:48:43]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [12:48:43]Read from MH i2c: E2 [12:48:43]MH_I2C_Read... [12:48:43]Read from MH i2c: E2 FD 00 [12:48:43]MH_I2C_Read... [12:48:43]Read from MH i2c: E2 FD 00 BC 7E 00 C3 04 85 04 BF 04 6E 04 04 00 22 6F 00 00 69 04 A1 00 6F 04 04 00 C8 6B 00 00 B1 04 04 00 69 47 3F AF 70 04 04 00 00 D3 16 70 72 04 04 00 69 74 28 3F 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 0B 2E 9D 12 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 4B 10 8D 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 9C 00 6F 04 04 00 5A 03 00 00 B1 04 04 00 A8 5F 91 0C 70 04 04 00 A8 5F 91 0C 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 C1 B4 55 01 EF 03 09 00 F6 90 00 0B [12:48:43]RAPDU: C3 04 85 04 BF 04 6E 04 04 00 22 6F 00 00 69 04 A1 00 6F 04 04 00 C8 6B 00 00 B1 04 04 00 69 47 3F AF 70 04 04 00 00 D3 16 70 72 04 04 00 69 74 28 3F 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 0B 2E 9D 12 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 4B 10 8D 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 9C 00 6F 04 04 00 5A 03 00 00 B1 04 04 00 A8 5F 91 0C 70 04 04 00 A8 5F 91 0C 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 C1 B4 55 01 EF 03 09 00 F6 90 00 [12:48:43]wFMCommunicate OK [12:48:43]wFMCommunicate request_size=4 [12:48:43]MH_SAM_APDU [12:48:43]CAPDU: 80 17 00 00 [12:48:43]Write to MH i2c: E2 08 00 BD 7E 80 17 00 00 00 00 00 00 BB [12:48:43]Write i2c OK [12:48:43]MH_I2C_Read... [12:48:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:48:44]Read from MH i2c: E2 [12:48:44]MH_I2C_Read... [12:48:44]Read from MH i2c: E2 FD 00 [12:48:44]MH_I2C_Read... [12:48:44]Read from MH i2c: E2 FD 00 BD 7E 00 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 4B 79 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 5B [12:48:44]RAPDU: 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 4B 79 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:48:44]wFMCommunicate OK [12:48:44]wFMCommunicate request_size=4 [12:48:44]MH_SAM_APDU [12:48:44]CAPDU: 80 17 00 00 [12:48:44]Write to MH i2c: E2 08 00 BE 7E 80 17 00 00 00 00 00 00 BC [12:48:44]Write i2c OK [12:48:44]MH_I2C_Read... [12:48:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:48:44]Read from MH i2c: E2 [12:48:44]MH_I2C_Read... [12:48:44]Read from MH i2c: E2 FD 00 [12:48:44]MH_I2C_Read... [12:48:44]Read from MH i2c: E2 FD 00 BE 7E 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 DA [12:48:44]RAPDU: 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:48:44]wFMCommunicate OK [12:48:44]wFMCommunicate request_size=4 [12:48:44]MH_SAM_APDU [12:48:44]CAPDU: 80 17 00 00 [12:48:44]Write to MH i2c: E2 08 00 BF 7E 80 17 00 00 00 00 00 00 BD [12:48:44]Write i2c OK [12:48:44]MH_I2C_Read... [12:48:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:48:44]Read from MH i2c: E2 [12:48:44]MH_I2C_Read... [12:48:44]Read from MH i2c: E2 FD 00 [12:48:44]MH_I2C_Read... [12:48:44]Read from MH i2c: E2 FD 00 BF 7E 00 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 2F [12:48:45]RAPDU: 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:48:45]wFMCommunicate OK [12:48:45]wFMCommunicate request_size=4 [12:48:45]MH_SAM_APDU [12:48:45]CAPDU: 80 17 00 00 [12:48:45]Write to MH i2c: E2 08 00 C0 7E 80 17 00 00 00 00 00 00 BE [12:48:45]Write i2c OK [12:48:45]MH_I2C_Read... [12:48:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 221! [12:48:45]Read from MH i2c: E2 [12:48:45]MH_I2C_Read... [12:48:45]Read from MH i2c: E2 E0 00 [12:48:45]MH_I2C_Read... [12:48:45]Read from MH i2c: E2 E0 00 C0 7E 00 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 A8 [12:48:45]RAPDU: 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [12:48:45]wFMCommunicate OK [12:48:45]SAM_PROTO_GetFMData done [12:48:45]requested_item fm.sale_refund.total is exist - process it [12:48:45]requested_item fm.buy.total is exist - process it [12:48:45]requested_item shift.sale.total is exist - process it [12:48:45]SAM_PROTO_GetShiftData [12:48:45]wFMCommunicate request_size=4 [12:48:45]MH_SAM_APDU [12:48:45]CAPDU: 80 13 02 00 [12:48:45]Write to MH i2c: E2 08 00 C1 7E 80 13 02 00 00 00 00 00 BD [12:48:45]Write i2c OK [12:48:45]MH_I2C_Read... [12:48:46]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [12:48:46]Read from MH i2c: E2 [12:48:46]MH_I2C_Read... [12:48:46]Read from MH i2c: E2 FD 00 [12:48:46]MH_I2C_Read... [12:48:46]Read from MH i2c: E2 FD 00 C1 7E 00 BA 04 AA 04 B6 04 6E 04 04 00 7D 00 00 00 69 04 9C 00 6F 04 04 00 79 00 00 00 B1 04 03 00 46 3C E2 70 04 03 00 80 B1 87 72 04 03 00 C6 8A 5A 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 B3 07 18 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 96 00 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 D0 DB 17 70 04 03 00 D0 DB 17 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 AF 88 02 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 B0 [12:48:46]RAPDU: BA 04 AA 04 B6 04 6E 04 04 00 7D 00 00 00 69 04 9C 00 6F 04 04 00 79 00 00 00 B1 04 03 00 46 3C E2 70 04 03 00 80 B1 87 72 04 03 00 C6 8A 5A 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 B3 07 18 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 96 00 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 D0 DB 17 70 04 03 00 D0 DB 17 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 AF 88 02 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [12:48:46]wFMCommunicate OK [12:48:46]wFMCommunicate request_size=4 [12:48:46]MH_SAM_APDU [12:48:46]CAPDU: 80 17 00 00 [12:48:46]Write to MH i2c: E2 08 00 C2 7E 80 17 00 00 00 00 00 00 C0 [12:48:46]Write i2c OK [12:48:46]MH_I2C_Read... [12:48:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:48:46]Read from MH i2c: E2 [12:48:46]MH_I2C_Read... [12:48:46]OFD Sender: No OFD packet to send [12:48:46]Read from MH i2c: E2 FD 00 [12:48:46]MH_I2C_Read... [12:48:46]Read from MH i2c: E2 FD 00 C2 7E 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 0E 36 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 AE [12:48:46]RAPDU: EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 0E 36 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:48:46]wFMCommunicate OK [12:48:46]wFMCommunicate request_size=4 [12:48:46]MH_SAM_APDU [12:48:46]CAPDU: 80 17 00 00 [12:48:46]Write to MH i2c: E2 08 00 C3 7E 80 17 00 00 00 00 00 00 C1 [12:48:46]Write i2c OK [12:48:46]MH_I2C_Read... [12:48:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:48:47]Read from MH i2c: E2 [12:48:47]MH_I2C_Read... [12:48:47]Read from MH i2c: E2 FD 00 [12:48:47]MH_I2C_Read... [12:48:47]Read from MH i2c: E2 FD 00 C3 7E 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 ED [12:48:47]RAPDU: 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [12:48:47]wFMCommunicate OK [12:48:47]wFMCommunicate request_size=4 [12:48:47]MH_SAM_APDU [12:48:47]CAPDU: 80 17 00 00 [12:48:47]Write to MH i2c: E2 08 00 C4 7E 80 17 00 00 00 00 00 00 C2 [12:48:47]Write i2c OK [12:48:47]MH_I2C_Read... [12:48:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:48:47]Read from MH i2c: E2 [12:48:47]MH_I2C_Read... [12:48:47]Read from MH i2c: E2 FD 00 [12:48:47]MH_I2C_Read... [12:48:47]Read from MH i2c: E2 FD 00 C4 7E 00 00 EF 03 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 90 00 3A [12:48:47]RAPDU: 00 EF 03 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 90 00 [12:48:47]wFMCommunicate OK [12:48:47]wFMCommunicate request_size=4 [12:48:47]MH_SAM_APDU [12:48:47]CAPDU: 80 17 00 00 [12:48:47]Write to MH i2c: E2 08 00 C5 7E 80 17 00 00 00 00 00 00 C3 [12:48:47]Write i2c OK [12:48:47]MH_I2C_Read... [12:48:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [12:48:48]Read from MH i2c: E2 [12:48:48]MH_I2C_Read... [12:48:48]Read from MH i2c: E2 D7 00 [12:48:48]MH_I2C_Read... [12:48:48]Read from MH i2c: E2 D7 00 C5 7E 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A6 [12:48:48]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [12:48:48]wFMCommunicate OK [12:48:48]SAM_PROTO_GetShiftData done [12:48:48]requested_item shift.sale.total_cash is exist - process it [12:48:48]requested_item shift.sale_refund.total is exist - process it [12:48:48]requested_item shift.sale_refund.total_cash is exist - process it [12:48:48]requested_item shift.buy.total is exist - process it [12:48:48]requested_item shift.buy.total_cash is exist - process it [12:48:48]produce_requested_data done [12:48:48]produce_requested_data return {"fm.sale.total":29401598.49,"fm.sale_refund.total":2108538.00,"fm.buy.total":0.00,"shift.sale.total":148265.66,"shift.sale.total_cash":88928.00,"shift.sale_refund.total":15636.00,"shift.sale_refund.total_cash":15636.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [12:48:48]process_action_free get_value [12:48:48]json_value_free [12:48:48]json_value_free done [12:48:48]process_json_proto returns [12:48:48]Send response to host [12:48:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":29401598.49,"fm.sale_refund.total":2108538.00,"fm.buy.total":0.00,"shift.sale.total":148265.66,"shift.sale.total_cash":88928.00,"shift.sale_refund.total":15636.00,"shift.sale_refund.total_cash":15636.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [12:48:48]free response buf [12:48:48]execute_script done [12:48:48]execute_script returns [12:48:48]free content buf [12:48:48]Sock 6.Close socket [12:48:48]Sock 6.Thread stoped [12:48:51]OFD Sender: No OFD packet to send [12:48:56]OFD Sender: No OFD packet to send [12:49:01]OFD Sender: No OFD packet to send [12:49:06]OFD Sender: No OFD packet to send [12:49:11]OFD Sender: No OFD packet to send [12:49:16]OFD Sender: No OFD packet to send [12:49:21]OFD Sender: No OFD packet to send [12:49:26]OFD Sender: No OFD packet to send [12:49:31]OFD Sender: No OFD packet to send [12:49:36]OFD Sender: No OFD packet to send [12:49:41]OFD Sender: No OFD packet to send [12:49:46]OFD Sender: No OFD packet to send [12:49:51]OFD Sender: No OFD packet to send [12:49:56]OFD Sender: No OFD packet to send [12:50:01]OFD Sender: No OFD packet to send [12:50:06]OFD Sender: No OFD packet to send [12:50:11]OFD Sender: No OFD packet to send [12:50:16]OFD Sender: No OFD packet to send [12:50:21]OFD Sender: No OFD packet to send [12:50:26]OFD Sender: No OFD packet to send [12:50:31]OFD Sender: No OFD packet to send [12:50:36]OFD Sender: No OFD packet to send [12:50:41]OFD Sender: No OFD packet to send [12:50:46]OFD Sender: No OFD packet to send [12:50:51]OFD Sender: No OFD packet to send [12:50:55]accept exits with 5 [12:50:55]New connection [12:50:55]New thread 3066498404 created [12:50:55]Thread 3066641764 joined [12:50:55]Waiting for new connection... [12:50:55] Sock 5.Parse request [12:50:55]Sock 5.Check first char [12:50:55]Sock 5.First char is OK [12:50:55]request: POST /json_proto HTTP/1.0 [12:50:55]Method: POST [12:50:55]URL: /json_proto [12:50:55]Method is POST - this is cgi request [12:50:55]url: /json_proto [12:50:55]query_string will be loaded in cgi processing [12:50:55]execute_cgi json_proto POST (null) [12:50:55]execute_cgi path=json_proto method=POST [12:50:55]POST find Content-Length [12:50:55]Host: 172.17.33.3:8080 [12:50:55]Content-Length: 685 [12:50:55]Content-Type: application/json [12:50:55] [12:50:55]POST finish read [12:50:55]Found Content-Length = 685 [12:50:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347010", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 30.400, "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:50:55]execute_script... [12:50: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)347010", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 30.400, "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:50:55]POST & json_proto [12:50:55]process_json_proto [12:50:55]json parsed OK: [12:50:55]protocol is kg_v1.0 [12:50:55]action value=close_receipt [12:50:55]process_action close_receipt [12:50:55]cmd_close_receipt [12:50:55]MH_GetDate [12:50:55]Write to MH i2c: F0 00 00 C6 7E 33 [12:50:55]Write i2c OK [12:50:55]MH_I2C_Read... [12:50:55]Read from MH i2c: F0 [12:50:55]MH_I2C_Read... [12:50:55]Read from MH i2c: F0 09 00 [12:50:55]MH_I2C_Read... [12:50:55]Read from MH i2c: F0 09 00 C6 7E 00 37 2E 19 66 23 5B 8F 65 92 [12:50:55]GetLastDocTimeStamp 1712926121 [12:50:55]current date 1712926263 [12:50:55]FM_GetShiftState [12:50:55]SAM_PROTO_GetShiftState [12:50:55]wFMCommunicate request_size=4 [12:50:55]MH_SAM_APDU [12:50:55]CAPDU: 80 13 01 00 [12:50:55]Write to MH i2c: E2 08 00 C7 7E 80 13 01 00 00 00 00 00 C2 [12:50:55]Write i2c OK [12:50:55]MH_I2C_Read... [12:50:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:50:55]Read from MH i2c: E2 [12:50:55]MH_I2C_Read... [12:50:55]Read from MH i2c: E2 0E 00 [12:50:55]MH_I2C_Read... [12:50:55]Read from MH i2c: E2 0E 00 C7 7E 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 D3 [12:50:55]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [12:50:55]wFMCommunicate OK [12:50:55]SAM_PROTO_GetShiftState done [12:50:55]FM_GetShiftState done [12:50:55]opened in 1712881416 [12:50:55]opened+sec_in_day 1712967816 [12:50:55]quantity*price = 100016 [12:50:55]sum+1 = 100017 [12:50: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 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 126 12.04.2024 12:51 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28677 ФПД: 74698725098183 1/tax-web-control/client/api/v1/ticket?date=20240412T125103&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28677&fm=74698725098183&tin=02508201610067®Number=0000138879044617&sum=100000 [12:50:56]StoreToDocumentArchive [12:50:56]shift 113 fd 28677 [12:50:56]save to /storage/0113/doc_00028677 [12:50:56]save last doc name /storage/0113/doc_00028677 to /storage/kkm_last_doc_name [12:50:56]save OK [12:50:56]Clear old archive folders... [12:50:56]ProcessDocumentItem done err = 0, tmpTLVsize=250 [12:50:56]tlvbuf is 01CB9970 [12:50:56]SAM_PROTO_ClearQueue [12:50:56]wFMCommunicate request_size=4 [12:50:56]MH_SAM_APDU [12:50:56]CAPDU: 80 09 00 00 [12:50:56]Write to MH i2c: E2 08 00 D4 7E 80 09 00 00 00 00 00 00 C4 [12:50:56]Write i2c OK [12:50:56]MH_I2C_Read... [12:50:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:50:56]Read from MH i2c: E2 [12:50:56]MH_I2C_Read... [12:50:56]Read from MH i2c: E2 03 00 [12:50:56]MH_I2C_Read... [12:50:56]Read from MH i2c: E2 03 00 D4 7E 00 90 00 C6 [12:50:56]RAPDU: 90 00 [12:50:56]wFMCommunicate OK [12:50:56]SAM_PROTO_ClearQueue done [12:50:56]KKMCreateOFDPacket [12:50:56]OFDProtocolAddRootSTLVToBuf [12:50:56]FM_MakeSignedData [12:50:56]FM_MakeSignedData [12:50:56]SAM_PROTO_SignData [12:50:56]wFMCommunicate request_size=4 [12:50:56]MH_SAM_APDU [12:50:56]CAPDU: 80 0D 01 02 [12:50:56]Write to MH i2c: E2 08 00 D5 7E 80 0D 01 02 00 00 00 00 CC [12:50:56]Write i2c OK [12:50:56]MH_I2C_Read... [12:50:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:50:56]Read from MH i2c: E2 [12:50:56]MH_I2C_Read... [12:50:56]Read from MH i2c: E2 03 00 [12:50:56]MH_I2C_Read... [12:50:56]Read from MH i2c: E2 03 00 D5 7E 00 90 00 C7 [12:50:56]RAPDU: 90 00 [12:50:56]wFMCommunicate OK [12:50:56]wFMCommunicate request_size=255 [12:50:56]MH_SAM_APDU [12:50:56]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 DA 0C 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 7E 00 00 00 F4 03 04 00 37 2E 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 05 70 00 00 35 04 06 00 43 F0 [12:50:56]Write to MH i2c: E2 02 01 D6 7E 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 DA 0C 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 7E 00 00 00 F4 03 04 00 37 2E 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 05 70 00 00 35 04 06 00 43 F0 00 00 DD [12:50:56]Write i2c OK [12:50:56]MH_I2C_Read... [12:50:56]OFD Sender: No OFD packet to send [12:50:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:50:56]Read from MH i2c: E2 [12:50:56]MH_I2C_Read... [12:50:56]Read from MH i2c: E2 03 00 [12:50:56]MH_I2C_Read... [12:50:56]Read from MH i2c: E2 03 00 D6 7E 00 90 00 C8 [12:50:56]RAPDU: 90 00 [12:50:56]wFMCommunicate OK [12:50:56]wFMCommunicate request_size=9 [12:50:56]MH_SAM_APDU [12:50:56]CAPDU: 80 0D 02 02 04 26 F9 82 C7 [12:50:56]Write to MH i2c: E2 0C 00 D7 7E 80 0D 02 02 04 00 26 F9 82 C7 00 00 3F [12:50:56]Write i2c OK [12:50:56]MH_I2C_Read... [12:50:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:50:56]Read from MH i2c: E2 [12:50:56]MH_I2C_Read... [12:50:56]Read from MH i2c: E2 03 00 [12:50:56]MH_I2C_Read... [12:50:56]Read from MH i2c: E2 03 00 D7 7E 00 90 00 C9 [12:50:56]RAPDU: 90 00 [12:50:56]wFMCommunicate OK [12:50:56]wFMCommunicate request_size=4 [12:50:56]MH_SAM_APDU [12:50:56]CAPDU: 80 0D 03 02 [12:50:56]Write to MH i2c: E2 08 00 D8 7E 80 0D 03 02 00 00 00 00 D1 [12:50:56]Write i2c OK [12:50:56]MH_I2C_Read... [12:50:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:50:56]Read from MH i2c: E2 [12:50:56]MH_I2C_Read... [12:50:56]Read from MH i2c: E2 0B 00 [12:50:56]MH_I2C_Read... [12:50:56]Read from MH i2c: E2 0B 00 D8 7E 00 45 8D E0 95 A7 13 87 C8 90 00 22 [12:50:56]RAPDU: 45 8D E0 95 A7 13 87 C8 90 00 [12:50:56]wFMCommunicate OK [12:50:56]SAM_PROTO_SignData done [12:50:56]FM_MakeSignedData done [12:50:56]CreateOFDProtocolMessage [12:50:56]wFMCommunicate request_size=4 [12:50:56]MH_SAM_APDU [12:50:56]CAPDU: 80 11 00 00 [12:50:56]Write to MH i2c: E2 08 00 D9 7E 80 11 00 00 00 00 00 00 D1 [12:50:56]Write i2c OK [12:50:56]MH_I2C_Read... [12:50:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:50:56]Read from MH i2c: E2 [12:50:56]MH_I2C_Read... [12:50:56]Read from MH i2c: E2 17 00 [12:50:56]MH_I2C_Read... [12:50:56]Read from MH i2c: E2 17 00 D9 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 20 [12:50:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:50:56]wFMCommunicate OK [12:50:56]CreateOFDProtocolMessage done [12:50:56]OFDSenderStorePacket 28677 [12:50:56]StoreOFDPacket docnum=28677 [12:50:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 06 15 06 01 8C A9 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 DA 0C 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 7E 00 00 00 F4 03 04 00 37 2E 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 05 70 00 00 35 04 06 00 43 F0 26 F9 82 C7 45 8D E0 95 A7 13 87 C8 [12:50:56]CheckFolder [12:50:56]dirname=/storage/ofd_packets [12:50:56]CheckFolder done [12:50:56]ProducePacketName [12:50:56]name=ofd_packets/00028677 [12:50:56]NVStorageSaveData ofd_packets/00028677 [12:50:56]File name is /storage/ofd_packets/00028677 [12:50:56]Write 300 bytes [12:50:56]NVStorageSaveData done [12:50:56]OFDSenderStorePacket done [12:50:56]KKMCreateOFDPacket done [12:50:56]NVStorageSaveData kkm_last_timestamp [12:50:56]File name is /storage/kkm_last_timestamp [12:50:56]Write 4 bytes [12:50:56]NVStorageSaveData done [12:50:56]ExternCall_PrintAddStr [12:50:56]wPrintStart [12:50:56]Write to MH i2c: 01 00 00 DA 7E 58 [12:50:56]Write i2c OK [12:50:56]MH_I2C_Read... [12:50:56]Read from MH i2c: 01 [12:50:56]MH_I2C_Read... [12:50:56]Read from MH i2c: 01 07 00 [12:50:56]MH_I2C_Read... [12:50:56]Read from MH i2c: 01 07 00 DA 7E 00 00 00 00 00 FF 0F 6D [12:50:56]RasterBufferAndPrint [12:50:56]line Счет N : (1)347010 [12:50:56]line ИНН: 02508201610067 [12:50:56]line Контрольно-Кассовый Чек [12:50:56]line ПРОДАЖА [12:50:56]line ТРК (МРК, ГНК) : 71 [12:50:56]line Товар: 2711129700 [12:50:56]line ГАЗ-К-5 [12:50:56]line 30.400 * 32.90 [12:50:56]line = 1000.16 [12:50:56]line НДС 12% НСП 1% [12:50:56]line > о реализуемом товаре [12:50:56]line ОКРУГЛЕНИЕ: -0.16 [12:50:56]line ИТОГО: 1000.00 [12:50:56]line Внесено: 1000.00 [12:50:56]line СДАЧА: 0.00 [12:50:56]line НСП 1% : 8.85 [12:50:56]line НДС 12% : 106.21 [12:50:56]line Наличными: 1000.00 [12:50:56]line Безнал.: 0.00 [12:50:56]line Место: АЗС № 108 "Партнер Нефть" [12:50:56]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [12:50:56]line СНО: Общий режим [12:50:56]line Чек 126 12.04.2024 12:51 [12:50:56]line Смена: 113 ФФД: 1.0 [12:50:56]line ЗНМ: 0300000027 [12:50:56]line РНМ: 0000138879044617 [12:50:56]line Версия ККМ: 001 [12:50:56]line ФМ: 0000000000963154 [12:50:56]line ФД: 28677 [12:50:56]line ФПД: 74698725098183 [12:50:57]line 1/tax-web-control/client/api/v1/ticket?date=20240412T125103&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28677&fm=74698725098183&tin=02508201610067®Number=0000138879044617&sum=100000 [12:50:57]OFD Sender: Processing packet 28677 [packets to send 8, broken 7] [12:50:57]ProducePacketName [12:50:57]name=ofd_packets/00028677 [12:50:57]OFD Sender: To server: pG, [12:50:57]CommunicateWithHost lk.salyk.kg:30040 [12:50:57]ConnectInit lk.salyk.kg [12:50:57]written 0, free lines is 4095 [12:50:57]Connected sock=7 [12:50:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 06 15 06 01 8C A9 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 DA 0C 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 7E 00 00 00 F4 03 04 00 37 2E 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 05 70 00 00 35 04 06 00 43 F0 26 F9 82 C7 45 8D E0 95 A7 13 87 C8 [12:50:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 AB EA 47 00 0E 3C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 05 70 00 00 F4 03 04 00 E1 D8 18 66 B6 04 01 00 00 2A 07 AC A1 10 E8 28 CA [12:50:57]CommunicateWithHost err = 0 [12:50:57]CheckOFDResponse [12:50:57]1017 (14) - 77093643461234 [12:50:57]1041 (16) - 0000000000963154 [12:50:57]1040 (4) - 28677 [12:50:57]1012 (4) - 12.04.2024 06:46 [12:50:57]1206 (1) - 0 [12:50:57]OFD Sender: Remove packet 28677 [12:50:57]ProducePacketName [12:50:57]name=ofd_packets/00028677 [12:50:57]NVStorageDeleteData [12:50:57]Write to MH i2c: 01 00 00 04 7F 83 [12:50:57]Write i2c OK [12:50:57]MH_I2C_Read... [12:50:57]Read from MH i2c: 01 [12:50:57]MH_I2C_Read... [12:50:57]Read from MH i2c: 01 07 00 [12:50:57]MH_I2C_Read... [12:50:57]Read from MH i2c: 01 07 00 04 7F 00 00 00 00 00 C2 0C 58 [12:50:57]RasterBufferAndPrint [12:50:57]line [12:50:57]line [12:50:57]line [12:50:57]line [12:50:57]line [12:50:57]written 0, free lines is 3270 [12:50:57]MH_Cut [12:50:57]Write to MH i2c: D1 01 00 0B 7F 01 5C [12:50:57]Write i2c OK [12:50:57]MH_I2C_Read... [12:50:57]Read from MH i2c: D1 [12:50:57]MH_I2C_Read... [12:50:57]Read from MH i2c: D1 01 00 [12:50:57]MH_I2C_Read... [12:50:57]Read from MH i2c: D1 01 00 0B 7F 00 5B [12:50:57]Write to MH i2c: 01 00 00 0C 7F 8B [12:50:57]Write i2c OK [12:50:57]MH_I2C_Read... [12:50:58]OFD Sender: No OFD packet to send [12:50:58]*** Cut start [12:50:58]*** Partial cut [12:50:58]*** CUTSNS_PIN = 1 [12:50:58]*** CUTSNS_PIN = 0 [12:50:58]*** Brake cut motor [12:50:59]Read from MH i2c: 01 [12:50:59]MH_I2C_Read... [12:50:59]*** Stop cut motor [12:50:59]*** Cut end [12:50:59]Read from MH i2c: 01 07 00 [12:50:59]MH_I2C_Read... [12:50:59]Read from MH i2c: 01 07 00 0C 7F 00 00 00 00 00 FF 0F A0 [12:50:59]process_action close_receipt done [12:50:59]requested_data is exist [12:50:59]produce_requested_data [12:50:59]requested_item fm.sn is exist - process it [12:50:59]wFMCommunicate request_size=4 [12:50:59]MH_SAM_APDU [12:50:59]CAPDU: 80 11 00 00 [12:50:59]Write to MH i2c: E2 08 00 0D 7F 80 11 00 00 00 00 00 00 06 [12:50:59]Write i2c OK [12:50:59]MH_I2C_Read... [12:50:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:50:59]Read from MH i2c: E2 [12:50:59]MH_I2C_Read... [12:50:59]Read from MH i2c: E2 17 00 [12:50:59]MH_I2C_Read... [12:50:59]Read from MH i2c: E2 17 00 0D 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 55 [12:50:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:50:59]wFMCommunicate OK [12:50:59]requested_item fd.num is exist - process it [12:50:59]SAM_PROTO_GetFieldsCounters [12:50:59]wFMCommunicate request_size=4 [12:50:59]MH_SAM_APDU [12:50:59]CAPDU: 80 13 00 00 [12:50:59]Write to MH i2c: E2 08 00 0E 7F 80 13 00 00 00 00 00 00 09 [12:50:59]Write i2c OK [12:50:59]MH_I2C_Read... [12:50:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:50:59]Read from MH i2c: E2 [12:50:59]MH_I2C_Read... [12:50:59]Read from MH i2c: E2 62 00 [12:50:59]MH_I2C_Read... [12:50:59]Read from MH i2c: E2 62 00 0E 7F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 05 70 00 00 0E 04 04 00 71 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 A7 [12:50:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 05 70 00 00 0E 04 04 00 71 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 [12:50:59]wFMCommunicate OK [12:50:59]SAM_PROTO_GetFieldsCounters done [12:50:59]requested_item shift.num is exist - process it [12:50:59]requested_item shift.opened is exist - process it [12:50:59]req_shift_opened [12:50:59]FM_GetShiftState [12:50:59]SAM_PROTO_GetShiftState [12:50:59]wFMCommunicate request_size=4 [12:50:59]MH_SAM_APDU [12:50:59]CAPDU: 80 13 01 00 [12:50:59]Write to MH i2c: E2 08 00 0F 7F 80 13 01 00 00 00 00 00 0B [12:50:59]Write i2c OK [12:50:59]MH_I2C_Read... [12:50:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:50:59]Read from MH i2c: E2 [12:50:59]MH_I2C_Read... [12:50:59]Read from MH i2c: E2 0E 00 [12:50:59]MH_I2C_Read... [12:50:59]Read from MH i2c: E2 0E 00 0F 7F 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 1C [12:50:59]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [12:50:59]wFMCommunicate OK [12:50:59]SAM_PROTO_GetShiftState done [12:50:59]FM_GetShiftState done [12:50:59]req_shift_opened done [12:50:59]requested_item shift.open_date is exist - process it [12:50:59]req_shift_open_date [12:50:59]req_shift_open_date done [12:50:59]produce_requested_data done [12:50:59]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28677,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [12:50:59]process_action_free close_receipt [12:50:59]json_value_free [12:50:59]json_value_free done [12:50:59]process_json_proto returns [12:50:59]Send response to host [12:50:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28677,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [12:50:59]free response buf [12:50:59]execute_script done [12:50:59]execute_script returns [12:50:59]free content buf [12:50:59]Sock 5.Close socket [12:50:59]Sock 5.Thread stoped [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:28]accept exits with 6 [12:51:28]New connection [12:51:28]New thread 3066641764 created [12:51:28]Thread 3066498404 joined [12:51:28]Waiting for new connection... [12:51:28] Sock 6.Parse request [12:51:28]Sock 6.Check first char [12:51:28]Sock 6.First char is OK [12:51:28]request: POST /json_proto HTTP/1.0 [12:51:28]Method: POST [12:51:28]URL: /json_proto [12:51:28]Method is POST - this is cgi request [12:51:28]url: /json_proto [12:51:28]query_string will be loaded in cgi processing [12:51:28]execute_cgi json_proto POST (null) [12:51:28]execute_cgi path=json_proto method=POST [12:51:28]POST find Content-Length [12:51:28]Host: 172.17.33.3:8080 [12:51:28]Content-Length: 843 [12:51:28]Content-Type: application/json [12:51:28] [12:51:28]POST finish read [12:51:28]Found Content-Length = 843 [12:51:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347011", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 15.560, "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" ] } } [12:51:28]execute_script... [12:51:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347011", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 15.560, "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" ] } } [12:51:28]POST & json_proto [12:51:28]process_json_proto [12:51:28]json parsed OK: [12:51:28]protocol is kg_v1.0 [12:51:28]action value=close_receipt [12:51:28]process_action close_receipt [12:51:28]cmd_close_receipt [12:51:28]MH_GetDate [12:51:28]Write to MH i2c: F0 00 00 10 7F 7E [12:51:28]Write i2c OK [12:51:28]MH_I2C_Read... [12:51:28]Read from MH i2c: F0 [12:51:28]MH_I2C_Read... [12:51:28]Read from MH i2c: F0 09 00 [12:51:28]MH_I2C_Read... [12:51:28]Read from MH i2c: F0 09 00 10 7F 00 59 2E 19 66 23 5B 8F 65 FF [12:51:28]GetLastDocTimeStamp 1712926263 [12:51:28]current date 1712926297 [12:51:28]FM_GetShiftState [12:51:28]SAM_PROTO_GetShiftState [12:51:28]wFMCommunicate request_size=4 [12:51:28]MH_SAM_APDU [12:51:28]CAPDU: 80 13 01 00 [12:51:28]Write to MH i2c: E2 08 00 11 7F 80 13 01 00 00 00 00 00 0D [12:51:28]Write i2c OK [12:51:28]MH_I2C_Read... [12:51:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:51:28]Read from MH i2c: E2 [12:51:28]MH_I2C_Read... [12:51:28]Read from MH i2c: E2 0E 00 [12:51:28]MH_I2C_Read... [12:51:28]Read from MH i2c: E2 0E 00 11 7F 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 1E [12:51:28]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [12:51:28]wFMCommunicate OK [12:51:28]SAM_PROTO_GetShiftState done [12:51:28]FM_GetShiftState done [12:51:28]opened in 1712881416 [12:51:28]opened+sec_in_day 1712967816 [12:51:28]quantity*price = 100050 [12:51:28]sum+1 = 100052 [12:51:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 127 12.04.2024 12:51 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 28678 ФПД: 66798915612179 1/tax-web-control/client/api/v1/ticket?date=20240412T125137&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28678&fm=66798915612179&tin=02508201610067®Number=0000138879044617&sum=100051 [12:51:30]StoreToDocumentArchive [12:51:30]shift 113 fd 28678 [12:51:30]save to /storage/0113/doc_00028678 [12:51:30]save last doc name /storage/0113/doc_00028678 to /storage/kkm_last_doc_name [12:51:30]save OK [12:51:30]Clear old archive folders... [12:51:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:51:30]tlvbuf is 01AE1B60 [12:51:30]SAM_PROTO_ClearQueue [12:51:30]wFMCommunicate request_size=4 [12:51:30]MH_SAM_APDU [12:51:30]CAPDU: 80 09 00 00 [12:51:30]Write to MH i2c: E2 08 00 1E 7F 80 09 00 00 00 00 00 00 0F [12:51:30]Write i2c OK [12:51:30]MH_I2C_Read... [12:51:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:51:30]Read from MH i2c: E2 [12:51:30]MH_I2C_Read... [12:51:30]Read from MH i2c: E2 03 00 [12:51:30]MH_I2C_Read... [12:51:30]Read from MH i2c: E2 03 00 1E 7F 00 90 00 11 [12:51:30]RAPDU: 90 00 [12:51:30]wFMCommunicate OK [12:51:30]SAM_PROTO_ClearQueue done [12:51:30]KKMCreateOFDPacket [12:51:30]OFDProtocolAddRootSTLVToBuf [12:51:30]FM_MakeSignedData [12:51:30]FM_MakeSignedData [12:51:30]SAM_PROTO_SignData [12:51:30]wFMCommunicate request_size=4 [12:51:30]MH_SAM_APDU [12:51:30]CAPDU: 80 0D 01 02 [12:51:30]Write to MH i2c: E2 08 00 1F 7F 80 0D 01 02 00 00 00 00 17 [12:51:30]Write i2c OK [12:51:30]MH_I2C_Read... [12:51:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:51:30]Read from MH i2c: E2 [12:51:30]MH_I2C_Read... [12:51:30]Read from MH i2c: E2 03 00 [12:51:30]MH_I2C_Read... [12:51:30]Read from MH i2c: E2 03 00 1F 7F 00 90 00 12 [12:51:30]RAPDU: 90 00 [12:51:30]wFMCommunicate OK [12:51:30]wFMCommunicate request_size=255 [12:51:30]MH_SAM_APDU [12:51:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 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 7F 00 00 00 F4 03 04 00 59 2E 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 06 70 00 00 35 04 06 00 3C [12:51:30]Write to MH i2c: E2 02 01 20 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 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 7F 00 00 00 F4 03 04 00 59 2E 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 06 70 00 00 35 04 06 00 3C 00 00 51 [12:51:30]Write i2c OK [12:51:30]MH_I2C_Read... [12:51:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:51:30]Read from MH i2c: E2 [12:51:30]MH_I2C_Read... [12:51:30]Read from MH i2c: E2 03 00 [12:51:30]MH_I2C_Read... [12:51:30]Read from MH i2c: E2 03 00 20 7F 00 90 00 13 [12:51:30]RAPDU: 90 00 [12:51:30]wFMCommunicate OK [12:51:30]wFMCommunicate request_size=10 [12:51:30]MH_SAM_APDU [12:51:30]CAPDU: 80 0D 02 02 05 C0 D5 A2 EE 13 [12:51:30]Write to MH i2c: E2 0D 00 21 7F 80 0D 02 02 05 00 C0 D5 A2 EE 13 00 00 5C [12:51:30]Write i2c OK [12:51:30]MH_I2C_Read... [12:51:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:51:30]Read from MH i2c: E2 [12:51:30]MH_I2C_Read... [12:51:30]Read from MH i2c: E2 03 00 [12:51:30]MH_I2C_Read... [12:51:30]Read from MH i2c: E2 03 00 21 7F 00 90 00 14 [12:51:30]RAPDU: 90 00 [12:51:30]wFMCommunicate OK [12:51:30]wFMCommunicate request_size=4 [12:51:30]MH_SAM_APDU [12:51:30]CAPDU: 80 0D 03 02 [12:51:30]Write to MH i2c: E2 08 00 22 7F 80 0D 03 02 00 00 00 00 1C [12:51:30]Write i2c OK [12:51:30]MH_I2C_Read... [12:51:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:51:30]Read from MH i2c: E2 [12:51:30]MH_I2C_Read... [12:51:30]Read from MH i2c: E2 0B 00 [12:51:30]MH_I2C_Read... [12:51:30]Read from MH i2c: E2 0B 00 22 7F 00 6E 68 09 4E C4 69 B2 8E 90 00 B7 [12:51:30]RAPDU: 6E 68 09 4E C4 69 B2 8E 90 00 [12:51:30]wFMCommunicate OK [12:51:30]SAM_PROTO_SignData done [12:51:30]FM_MakeSignedData done [12:51:30]CreateOFDProtocolMessage [12:51:30]wFMCommunicate request_size=4 [12:51:30]MH_SAM_APDU [12:51:30]CAPDU: 80 11 00 00 [12:51:30]Write to MH i2c: E2 08 00 23 7F 80 11 00 00 00 00 00 00 1C [12:51:30]Write i2c OK [12:51:30]MH_I2C_Read... [12:51:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:51:30]Read from MH i2c: E2 [12:51:30]MH_I2C_Read... [12:51:30]Read from MH i2c: E2 17 00 [12:51:30]MH_I2C_Read... [12:51:30]Read from MH i2c: E2 17 00 23 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 6B [12:51:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:51:30]wFMCommunicate OK [12:51:30]CreateOFDProtocolMessage done [12:51:30]OFDSenderStorePacket 28678 [12:51:30]StoreOFDPacket docnum=28678 [12:51:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 32 79 07 01 57 BA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 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 7F 00 00 00 F4 03 04 00 59 2E 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 06 70 00 00 35 04 06 00 3C C0 D5 A2 EE 13 6E 68 09 4E C4 69 B2 8E [12:51:30]CheckFolder [12:51:30]dirname=/storage/ofd_packets [12:51:30]CheckFolder done [12:51:30]ProducePacketName [12:51:30]name=ofd_packets/00028678 [12:51:30]NVStorageSaveData ofd_packets/00028678 [12:51:30]File name is /storage/ofd_packets/00028678 [12:51:30]Write 301 bytes [12:51:30]NVStorageSaveData done [12:51:30]OFDSenderStorePacket done [12:51:30]KKMCreateOFDPacket done [12:51:30]NVStorageSaveData kkm_last_timestamp [12:51:30]File name is /storage/kkm_last_timestamp [12:51:30]Write 4 bytes [12:51:30]NVStorageSaveData done [12:51:30]ExternCall_PrintAddStr [12:51:30]wPrintStart [12:51:30]Write to MH i2c: 01 00 00 24 7F A3 [12:51:30]Write i2c OK [12:51:30]MH_I2C_Read... [12:51:30]Read from MH i2c: 01 [12:51:30]MH_I2C_Read... [12:51:30]Read from MH i2c: 01 07 00 [12:51:30]MH_I2C_Read... [12:51:30]Read from MH i2c: 01 07 00 24 7F 00 00 00 00 00 FF 0F B8 [12:51:30]RasterBufferAndPrint [12:51:30]line Счет N : (1)347011 [12:51:30]line ИНН: 02508201610067 [12:51:30]line Контрольно-Кассовый Чек [12:51:30]line ПРОДАЖА [12:51:30]line ТРК (МРК, ГНК) : 32 [12:51:30]line Товар: 2710124130 [12:51:30]line Аи-92-К-5 [12:51:30]line 15.560 * 64.30 [12:51:30]line = 1000.51 [12:51:30]line НДС 12% НСП 1% [12:51:30]line > о реализуемом товаре [12:51:30]line ИТОГО: 1000.51 [12:51:30]line НСП 1% : 8.85 [12:51:30]line НДС 12% : 106.25 [12:51:30]line Наличными: 0.00 [12:51:30]line Безнал.: 1000.51 [12:51:30]line Место: АЗС № 108 "Партнер Нефть" [12:51:30]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [12:51:30]line СНО: Общий режим [12:51:30]line Чек 127 12.04.2024 12:51 [12:51:30]line Смена: 113 ФФД: 1.0 [12:51:30]line ЗНМ: 0300000027 [12:51:30]line РНМ: 0000138879044617 [12:51:30]line Версия ККМ: 001 [12:51:30]line Платежная система: АКБ Кыргызстан [12:51:30]line ФМ: 0000000000963154 [12:51:30]line ФД: 28678 [12:51:30]line ФПД: 66798915612179 [12:51:30]line 1/tax-web-control/client/api/v1/ticket?date=20240412T125137&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28678&fm=66798915612179&tin=02508201610067®Number=0000138879044617&sum=100051 [12:51:30]OFD Sender: Processing packet 28678 [packets to send 8, broken 7] [12:51:30]ProducePacketName [12:51:30]name=ofd_packets/00028678 [12:51:30]OFD Sender: To server: pG, [12:51:30]CommunicateWithHost lk.salyk.kg:30040 [12:51:30]ConnectInit lk.salyk.kg [12:51:30]written 0, free lines is 4095 [12:51:31]Write to MH i2c: 01 00 00 4D 7F CC [12:51:31]Write i2c OK [12:51:31]MH_I2C_Read... [12:51:31]Read from MH i2c: 01 [12:51:31]MH_I2C_Read... [12:51:31]Read from MH i2c: 01 07 00 [12:51:31]MH_I2C_Read... [12:51:31]Read from MH i2c: 01 07 00 4D 7F 00 00 00 00 00 DB 0C BA [12:51:31]RasterBufferAndPrint [12:51:31]line [12:51:31]line [12:51:31]line [12:51:31]line [12:51:31]line [12:51:31]written 0, free lines is 3298 [12:51:31]MH_Cut [12:51:31]Write to MH i2c: D1 01 00 54 7F 01 A5 [12:51:31]Write i2c OK [12:51:31]MH_I2C_Read... [12:51:31]Read from MH i2c: D1 [12:51:31]MH_I2C_Read... [12:51:31]Read from MH i2c: D1 01 00 [12:51:31]MH_I2C_Read... [12:51:31]Read from MH i2c: D1 01 00 54 7F 00 A4 [12:51:31]Write to MH i2c: 01 00 00 55 7F D4 [12:51:31]Write i2c OK [12:51:31]MH_I2C_Read... [12:51:32]*** Cut start [12:51:32]*** Partial cut [12:51:32]*** CUTSNS_PIN = 1 [12:51:32]*** CUTSNS_PIN = 0 [12:51:32]*** Brake cut motor [12:51:32]Read from MH i2c: 01 [12:51:32]MH_I2C_Read... [12:51:32]*** Stop cut motor [12:51:32]*** Cut end [12:51:32]Read from MH i2c: 01 07 00 [12:51:32]MH_I2C_Read... [12:51:32]Read from MH i2c: 01 07 00 55 7F 00 00 00 00 00 FF 0F E9 [12:51:32]process_action close_receipt done [12:51:32]requested_data is exist [12:51:32]produce_requested_data [12:51:32]requested_item fm.sn is exist - process it [12:51:32]wFMCommunicate request_size=4 [12:51:32]MH_SAM_APDU [12:51:32]CAPDU: 80 11 00 00 [12:51:32]Write to MH i2c: E2 08 00 56 7F 80 11 00 00 00 00 00 00 4F [12:51:32]Write i2c OK [12:51:32]MH_I2C_Read... [12:51:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:51:32]Read from MH i2c: E2 [12:51:32]MH_I2C_Read... [12:51:32]Read from MH i2c: E2 17 00 [12:51:32]MH_I2C_Read... [12:51:32]Read from MH i2c: E2 17 00 56 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 9E [12:51:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:51:32]wFMCommunicate OK [12:51:32]requested_item fd.num is exist - process it [12:51:32]SAM_PROTO_GetFieldsCounters [12:51:32]wFMCommunicate request_size=4 [12:51:32]MH_SAM_APDU [12:51:32]CAPDU: 80 13 00 00 [12:51:32]Write to MH i2c: E2 08 00 57 7F 80 13 00 00 00 00 00 00 52 [12:51:32]Write i2c OK [12:51:32]MH_I2C_Read... [12:51:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:51:32]Read from MH i2c: E2 [12:51:32]MH_I2C_Read... [12:51:32]Read from MH i2c: E2 62 00 [12:51:32]MH_I2C_Read... [12:51:32]Read from MH i2c: E2 62 00 57 7F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 06 70 00 00 0E 04 04 00 71 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 F4 [12:51:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 06 70 00 00 0E 04 04 00 71 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 [12:51:33]wFMCommunicate OK [12:51:33]SAM_PROTO_GetFieldsCounters done [12:51:33]requested_item shift.num is exist - process it [12:51:33]requested_item shift.opened is exist - process it [12:51:33]req_shift_opened [12:51:33]FM_GetShiftState [12:51:33]SAM_PROTO_GetShiftState [12:51:33]wFMCommunicate request_size=4 [12:51:33]MH_SAM_APDU [12:51:33]CAPDU: 80 13 01 00 [12:51:33]Write to MH i2c: E2 08 00 58 7F 80 13 01 00 00 00 00 00 54 [12:51:33]Write i2c OK [12:51:33]MH_I2C_Read... [12:51:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:51:33]Read from MH i2c: E2 [12:51:33]MH_I2C_Read... [12:51:33]Read from MH i2c: E2 0E 00 [12:51:33]MH_I2C_Read... [12:51:33]Read from MH i2c: E2 0E 00 58 7F 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 65 [12:51:33]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [12:51:33]wFMCommunicate OK [12:51:33]SAM_PROTO_GetShiftState done [12:51:33]FM_GetShiftState done [12:51:33]req_shift_opened done [12:51:33]requested_item shift.open_date is exist - process it [12:51:33]req_shift_open_date [12:51:33]req_shift_open_date done [12:51:33]produce_requested_data done [12:51:33]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28678,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [12:51:33]process_action_free close_receipt [12:51:33]json_value_free [12:51:33]json_value_free done [12:51:33]process_json_proto returns [12:51:33]Send response to host [12:51:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28678,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [12:51:33]free response buf [12:51:33]execute_script done [12:51:33]execute_script returns [12:51:33]free content buf [12:51:33]Sock 6.Close socket [12:51:33]Sock 6.Thread stoped [12:53:40]ConnectInit Can't connect to host [12:53:40]CommunicateWithHost connect error [12:53:40]CommunicateWithHost err = -1 [12:53:40]OFD Sender: Server communicate error [12:53:45]OFD Sender: Processing packet 28678 [packets to send 8, broken 7] [12:53:45]ProducePacketName [12:53:45]name=ofd_packets/00028678 [12:53:45]OFD Sender: To server: pG, [12:53:45]CommunicateWithHost lk.salyk.kg:30040 [12:53:45]ConnectInit lk.salyk.kg [12:53:45]Connected sock=6 [12:53:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 32 79 07 01 57 BA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 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 7F 00 00 00 F4 03 04 00 59 2E 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 06 70 00 00 35 04 06 00 3C C0 D5 A2 EE 13 6E 68 09 4E C4 69 B2 8E [12:53:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 8A B0 47 00 A0 06 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 06 70 00 00 F4 03 04 00 8A D9 18 66 B6 04 01 00 00 B8 6C 11 73 B1 B9 AC 2A [12:53:46]CommunicateWithHost err = 0 [12:53:46]CheckOFDResponse [12:53:46]1017 (14) - 77093643461234 [12:53:46]1041 (16) - 0000000000963154 [12:53:46]1040 (4) - 28678 [12:53:46]1012 (4) - 12.04.2024 06:49 [12:53:46]1206 (1) - 0 [12:53:46]OFD Sender: Remove packet 28678 [12:53:46]ProducePacketName [12:53:46]name=ofd_packets/00028678 [12:53:46]NVStorageDeleteData [12:53:46]OFD Sender: No OFD packet to send [12:53:51]OFD Sender: No OFD packet to send [12:53:56]OFD Sender: No OFD packet to send [12:54:01]OFD Sender: No OFD packet to send [12:54:06]OFD Sender: No OFD packet to send [12:54:11]OFD Sender: No OFD packet to send [12:54:16]OFD Sender: No OFD packet to send [12:54:21]OFD Sender: No OFD packet to send [12:54:26]OFD Sender: No OFD packet to send [12:54:31]OFD Sender: No OFD packet to send [12:54:36]OFD Sender: No OFD packet to send [12:54:41]OFD Sender: No OFD packet to send [12:54:46]OFD Sender: No OFD packet to send [12:54:47]accept exits with 5 [12:54:47]New connection [12:54:47]New thread 3066498404 created [12:54:47]Thread 3066641764 joined [12:54:47]Waiting for new connection... [12:54:47] Sock 5.Parse request [12:54:47]Sock 5.Check first char [12:54:47]Sock 5.First char is OK [12:54:47]request: POST /json_proto HTTP/1.0 [12:54:47]Method: POST [12:54:47]URL: /json_proto [12:54:47]Method is POST - this is cgi request [12:54:47]url: /json_proto [12:54:47]query_string will be loaded in cgi processing [12:54:47]execute_cgi json_proto POST (null) [12:54:47]execute_cgi path=json_proto method=POST [12:54:47]POST find Content-Length [12:54:47]Host: 172.17.33.3:8080 [12:54:47]Content-Length: 677 [12:54:47]Content-Type: application/json [12:54:47] [12:54:47]POST finish read [12:54:47]Found Content-Length = 677 [12:54:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347012", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 9.340, "sum" : 600.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:54:47]execute_script... [12:54:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347012", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 9.340, "sum" : 600.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:54:47]POST & json_proto [12:54:47]process_json_proto [12:54:47]json parsed OK: [12:54:47]protocol is kg_v1.0 [12:54:47]action value=close_receipt [12:54:47]process_action close_receipt [12:54:47]cmd_close_receipt [12:54:47]MH_GetDate [12:54:47]Write to MH i2c: F0 00 00 59 7F C7 [12:54:47]Write i2c OK [12:54:47]MH_I2C_Read... [12:54:47]Read from MH i2c: F0 [12:54:47]MH_I2C_Read... [12:54:47]Read from MH i2c: F0 09 00 [12:54:47]MH_I2C_Read... [12:54:47]Read from MH i2c: F0 09 00 59 7F 00 1F 2F 19 66 23 5B 8F 65 0F [12:54:47]GetLastDocTimeStamp 1712926297 [12:54:47]current date 1712926495 [12:54:47]FM_GetShiftState [12:54:47]SAM_PROTO_GetShiftState [12:54:47]wFMCommunicate request_size=4 [12:54:47]MH_SAM_APDU [12:54:47]CAPDU: 80 13 01 00 [12:54:47]Write to MH i2c: E2 08 00 5A 7F 80 13 01 00 00 00 00 00 56 [12:54:47]Write i2c OK [12:54:47]MH_I2C_Read... [12:54:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:54:47]Read from MH i2c: E2 [12:54:47]MH_I2C_Read... [12:54:47]Read from MH i2c: E2 0E 00 [12:54:47]MH_I2C_Read... [12:54:47]Read from MH i2c: E2 0E 00 5A 7F 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 67 [12:54:47]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [12:54:47]wFMCommunicate OK [12:54:47]SAM_PROTO_GetShiftState done [12:54:47]FM_GetShiftState done [12:54:47]opened in 1712881416 [12:54:47]opened+sec_in_day 1712967816 [12:54:47]quantity*price = 60056 [12:54:47]sum+1 = 60057 [12:54:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.78 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 128 12.04.2024 12:54 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28679 ФПД: 145497253334806 1/tax-web-control/client/api/v1/ticket?date=20240412T125455&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28679&fm=145497253334806&tin=02508201610067®Number=0000138879044617&sum=60000 [12:54:48]StoreToDocumentArchive [12:54:48]shift 113 fd 28679 [12:54:48]save to /storage/0113/doc_00028679 [12:54:48]save last doc name /storage/0113/doc_00028679 to /storage/kkm_last_doc_name [12:54:48]save OK [12:54:48]Clear old archive folders... [12:54:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:54:48]tlvbuf is 01B55050 [12:54:48]SAM_PROTO_ClearQueue [12:54:48]wFMCommunicate request_size=4 [12:54:48]MH_SAM_APDU [12:54:48]CAPDU: 80 09 00 00 [12:54:48]Write to MH i2c: E2 08 00 67 7F 80 09 00 00 00 00 00 00 58 [12:54:48]Write i2c OK [12:54:48]MH_I2C_Read... [12:54:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:54:48]Read from MH i2c: E2 [12:54:48]MH_I2C_Read... [12:54:48]Read from MH i2c: E2 03 00 [12:54:48]MH_I2C_Read... [12:54:48]Read from MH i2c: E2 03 00 67 7F 00 90 00 5A [12:54:48]RAPDU: 90 00 [12:54:48]wFMCommunicate OK [12:54:48]SAM_PROTO_ClearQueue done [12:54:48]KKMCreateOFDPacket [12:54:48]OFDProtocolAddRootSTLVToBuf [12:54:48]FM_MakeSignedData [12:54:48]FM_MakeSignedData [12:54:48]SAM_PROTO_SignData [12:54:48]wFMCommunicate request_size=4 [12:54:48]MH_SAM_APDU [12:54:48]CAPDU: 80 0D 01 02 [12:54:48]Write to MH i2c: E2 08 00 68 7F 80 0D 01 02 00 00 00 00 60 [12:54:48]Write i2c OK [12:54:48]MH_I2C_Read... [12:54:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:54:48]Read from MH i2c: E2 [12:54:48]MH_I2C_Read... [12:54:48]Read from MH i2c: E2 03 00 [12:54:48]MH_I2C_Read... [12:54:48]Read from MH i2c: E2 03 00 68 7F 00 90 00 5B [12:54:48]RAPDU: 90 00 [12:54:48]wFMCommunicate OK [12:54:48]wFMCommunicate request_size=255 [12:54:48]MH_SAM_APDU [12:54:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7C 24 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 98 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 EA 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 80 00 00 00 F4 03 04 00 1F 2F 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 07 70 00 00 35 04 06 00 84 [12:54:48]Write to MH i2c: E2 02 01 69 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7C 24 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 98 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 EA 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 80 00 00 00 F4 03 04 00 1F 2F 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 07 70 00 00 35 04 06 00 84 00 00 44 [12:54:48]Write i2c OK [12:54:48]MH_I2C_Read... [12:54:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:54:48]Read from MH i2c: E2 [12:54:48]MH_I2C_Read... [12:54:48]Read from MH i2c: E2 03 00 [12:54:48]MH_I2C_Read... [12:54:48]Read from MH i2c: E2 03 00 69 7F 00 90 00 5C [12:54:48]RAPDU: 90 00 [12:54:48]wFMCommunicate OK [12:54:48]wFMCommunicate request_size=10 [12:54:48]MH_SAM_APDU [12:54:48]CAPDU: 80 0D 02 02 05 54 38 19 CF 16 [12:54:48]Write to MH i2c: E2 0D 00 6A 7F 80 0D 02 02 05 00 54 38 19 CF 16 00 00 F7 [12:54:48]Write i2c OK [12:54:48]MH_I2C_Read... [12:54:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:54:48]Read from MH i2c: E2 [12:54:48]MH_I2C_Read... [12:54:48]Read from MH i2c: E2 03 00 [12:54:48]MH_I2C_Read... [12:54:48]Read from MH i2c: E2 03 00 6A 7F 00 90 00 5D [12:54:48]RAPDU: 90 00 [12:54:48]wFMCommunicate OK [12:54:48]wFMCommunicate request_size=4 [12:54:48]MH_SAM_APDU [12:54:48]CAPDU: 80 0D 03 02 [12:54:48]Write to MH i2c: E2 08 00 6B 7F 80 0D 03 02 00 00 00 00 65 [12:54:48]Write i2c OK [12:54:48]MH_I2C_Read... [12:54:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:54:48]Read from MH i2c: E2 [12:54:48]MH_I2C_Read... [12:54:48]Read from MH i2c: E2 0B 00 [12:54:48]MH_I2C_Read... [12:54:48]Read from MH i2c: E2 0B 00 6B 7F 00 BE 9A 0B 9D 02 24 77 8F 90 00 92 [12:54:48]RAPDU: BE 9A 0B 9D 02 24 77 8F 90 00 [12:54:48]wFMCommunicate OK [12:54:48]SAM_PROTO_SignData done [12:54:48]FM_MakeSignedData done [12:54:48]CreateOFDProtocolMessage [12:54:48]wFMCommunicate request_size=4 [12:54:48]MH_SAM_APDU [12:54:48]CAPDU: 80 11 00 00 [12:54:48]Write to MH i2c: E2 08 00 6C 7F 80 11 00 00 00 00 00 00 65 [12:54:48]Write i2c OK [12:54:48]MH_I2C_Read... [12:54:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:54:48]Read from MH i2c: E2 [12:54:48]MH_I2C_Read... [12:54:48]Read from MH i2c: E2 17 00 [12:54:48]MH_I2C_Read... [12:54:48]Read from MH i2c: E2 17 00 6C 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 B4 [12:54:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:54:48]wFMCommunicate OK [12:54:48]CreateOFDProtocolMessage done [12:54:48]OFDSenderStorePacket 28679 [12:54:48]StoreOFDPacket docnum=28679 [12:54:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 C1 29 07 01 05 A2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7C 24 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 98 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 EA 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 80 00 00 00 F4 03 04 00 1F 2F 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 07 70 00 00 35 04 06 00 84 54 38 19 CF 16 BE 9A 0B 9D 02 24 77 8F [12:54:48]CheckFolder [12:54:48]dirname=/storage/ofd_packets [12:54:48]CheckFolder done [12:54:48]ProducePacketName [12:54:48]name=ofd_packets/00028679 [12:54:48]NVStorageSaveData ofd_packets/00028679 [12:54:48]File name is /storage/ofd_packets/00028679 [12:54:48]Write 301 bytes [12:54:48]NVStorageSaveData done [12:54:48]OFDSenderStorePacket done [12:54:48]KKMCreateOFDPacket done [12:54:48]NVStorageSaveData kkm_last_timestamp [12:54:48]File name is /storage/kkm_last_timestamp [12:54:48]Write 4 bytes [12:54:48]NVStorageSaveData done [12:54:48]ExternCall_PrintAddStr [12:54:48]wPrintStart [12:54:48]Write to MH i2c: 01 00 00 6D 7F EC [12:54:48]Write i2c OK [12:54:48]MH_I2C_Read... [12:54:48]Read from MH i2c: 01 [12:54:48]MH_I2C_Read... [12:54:48]Read from MH i2c: 01 07 00 [12:54:48]MH_I2C_Read... [12:54:48]Read from MH i2c: 01 07 00 6D 7F 00 00 00 00 00 FF 0F 01 [12:54:48]RasterBufferAndPrint [12:54:48]line Счет N : (1)347012 [12:54:48]line ИНН: 02508201610067 [12:54:48]line Контрольно-Кассовый Чек [12:54:48]line ПРОДАЖА [12:54:48]line ТРК (МРК, ГНК) : 42 [12:54:48]line Товар: 2710124130 [12:54:48]line Аи-92-К-5 [12:54:48]line 9.340 * 64.30 [12:54:48]line = 600.56 [12:54:48]line НДС 12% НСП 1% [12:54:48]line > о реализуемом товаре [12:54:48]line ОКРУГЛЕНИЕ: -0.56 [12:54:48]line ИТОГО: 600.00 [12:54:48]line Внесено: 600.00 [12:54:48]line СДАЧА: 0.00 [12:54:48]line НСП 1% : 5.31 [12:54:48]line НДС 12% : 63.78 [12:54:48]line Наличными: 600.00 [12:54:48]line Безнал.: 0.00 [12:54:48]line Место: АЗС № 108 "Партнер Нефть" [12:54:48]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [12:54:48]line СНО: Общий режим [12:54:48]line Чек 128 12.04.2024 12:54 [12:54:48]line Смена: 113 ФФД: 1.0 [12:54:48]line ЗНМ: 0300000027 [12:54:48]line РНМ: 0000138879044617 [12:54:48]line Версия ККМ: 001 [12:54:48]line ФМ: 0000000000963154 [12:54:48]line ФД: 28679 [12:54:48]line ФПД: 145497253334806 [12:54:49]line 1/tax-web-control/client/api/v1/ticket?date=20240412T125455&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28679&fm=145497253334806&tin=02508201610067®Number=0000138879044617&sum=60000 [12:54:49]OFD Sender: Processing packet 28679 [packets to send 8, broken 7] [12:54:49]ProducePacketName [12:54:49]name=ofd_packets/00028679 [12:54:49]OFD Sender: To server: pG, [12:54:49]CommunicateWithHost lk.salyk.kg:30040 [12:54:49]ConnectInit lk.salyk.kg [12:54:49]written 0, free lines is 4095 [12:54:49]Connected sock=7 [12:54:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 C1 29 07 01 05 A2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7C 24 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 98 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 EA 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 80 00 00 00 F4 03 04 00 1F 2F 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 07 70 00 00 35 04 06 00 84 54 38 19 CF 16 BE 9A 0B 9D 02 24 77 8F [12:54:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 21 65 47 00 31 32 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 07 70 00 00 F4 03 04 00 C9 D9 18 66 B6 04 01 00 00 80 88 43 19 F9 BF C5 07 [12:54:49]CommunicateWithHost err = 0 [12:54:49]CheckOFDResponse [12:54:49]1017 (14) - 77093643461234 [12:54:49]1041 (16) - 0000000000963154 [12:54:49]1040 (4) - 28679 [12:54:49]1012 (4) - 12.04.2024 06:50 [12:54:49]1206 (1) - 0 [12:54:49]OFD Sender: Remove packet 28679 [12:54:49]ProducePacketName [12:54:49]name=ofd_packets/00028679 [12:54:49]NVStorageDeleteData [12:54:49]Write to MH i2c: 01 00 00 97 7F 16 [12:54:49]Write i2c OK [12:54:49]MH_I2C_Read... [12:54:49]Read from MH i2c: 01 [12:54:49]MH_I2C_Read... [12:54:49]Read from MH i2c: 01 07 00 [12:54:49]MH_I2C_Read... [12:54:49]Read from MH i2c: 01 07 00 97 7F 00 00 00 00 00 CE 0C F7 [12:54:49]RasterBufferAndPrint [12:54:49]line [12:54:49]line [12:54:49]line [12:54:49]line [12:54:49]line [12:54:49]written 0, free lines is 3284 [12:54:49]MH_Cut [12:54:49]Write to MH i2c: D1 01 00 9E 7F 01 EF [12:54:49]Write i2c OK [12:54:49]MH_I2C_Read... [12:54:49]Read from MH i2c: D1 [12:54:49]MH_I2C_Read... [12:54:49]Read from MH i2c: D1 01 00 [12:54:49]MH_I2C_Read... [12:54:49]Read from MH i2c: D1 01 00 9E 7F 00 EE [12:54:49]Write to MH i2c: 01 00 00 9F 7F 1E [12:54:49]Write i2c OK [12:54:49]MH_I2C_Read... [12:54:50]OFD Sender: No OFD packet to send [12:54:50]*** Cut start [12:54:50]*** Partial cut [12:54:50]*** CUTSNS_PIN = 1 [12:54:50]*** CUTSNS_PIN = 0 [12:54:50]*** Brake cut motor [12:54:51]Read from MH i2c: 01 [12:54:51]MH_I2C_Read... [12:54:51]*** Stop cut motor [12:54:51]*** Cut end [12:54:51]Read from MH i2c: 01 07 00 [12:54:51]MH_I2C_Read... [12:54:51]Read from MH i2c: 01 07 00 9F 7F 00 00 00 00 00 FF 0F 33 [12:54:51]process_action close_receipt done [12:54:51]requested_data is exist [12:54:51]produce_requested_data [12:54:51]requested_item fm.sn is exist - process it [12:54:51]wFMCommunicate request_size=4 [12:54:51]MH_SAM_APDU [12:54:51]CAPDU: 80 11 00 00 [12:54:51]Write to MH i2c: E2 08 00 A0 7F 80 11 00 00 00 00 00 00 99 [12:54:51]Write i2c OK [12:54:51]MH_I2C_Read... [12:54:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:54:51]Read from MH i2c: E2 [12:54:51]MH_I2C_Read... [12:54:51]Read from MH i2c: E2 17 00 [12:54:51]MH_I2C_Read... [12:54:51]Read from MH i2c: E2 17 00 A0 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 E8 [12:54:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:54:51]wFMCommunicate OK [12:54:51]requested_item fd.num is exist - process it [12:54:51]SAM_PROTO_GetFieldsCounters [12:54:51]wFMCommunicate request_size=4 [12:54:51]MH_SAM_APDU [12:54:51]CAPDU: 80 13 00 00 [12:54:51]Write to MH i2c: E2 08 00 A1 7F 80 13 00 00 00 00 00 00 9C [12:54:51]Write i2c OK [12:54:51]MH_I2C_Read... [12:54:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:54:51]Read from MH i2c: E2 [12:54:51]MH_I2C_Read... [12:54:51]Read from MH i2c: E2 62 00 [12:54:51]MH_I2C_Read... [12:54:51]Read from MH i2c: E2 62 00 A1 7F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 07 70 00 00 0E 04 04 00 71 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 42 [12:54:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 07 70 00 00 0E 04 04 00 71 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 [12:54:51]wFMCommunicate OK [12:54:51]SAM_PROTO_GetFieldsCounters done [12:54:51]requested_item shift.num is exist - process it [12:54:51]requested_item shift.opened is exist - process it [12:54:51]req_shift_opened [12:54:51]FM_GetShiftState [12:54:51]SAM_PROTO_GetShiftState [12:54:51]wFMCommunicate request_size=4 [12:54:51]MH_SAM_APDU [12:54:51]CAPDU: 80 13 01 00 [12:54:51]Write to MH i2c: E2 08 00 A2 7F 80 13 01 00 00 00 00 00 9E [12:54:51]Write i2c OK [12:54:51]MH_I2C_Read... [12:54:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:54:51]Read from MH i2c: E2 [12:54:51]MH_I2C_Read... [12:54:51]Read from MH i2c: E2 0E 00 [12:54:51]MH_I2C_Read... [12:54:51]Read from MH i2c: E2 0E 00 A2 7F 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 AF [12:54:51]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [12:54:51]wFMCommunicate OK [12:54:51]SAM_PROTO_GetShiftState done [12:54:51]FM_GetShiftState done [12:54:51]req_shift_opened done [12:54:51]requested_item shift.open_date is exist - process it [12:54:51]req_shift_open_date [12:54:51]req_shift_open_date done [12:54:51]produce_requested_data done [12:54:51]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28679,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [12:54:51]process_action_free close_receipt [12:54:51]json_value_free [12:54:51]json_value_free done [12:54:51]process_json_proto returns [12:54:51]Send response to host [12:54:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28679,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [12:54:51]free response buf [12:54:51]execute_script done [12:54:51]execute_script returns [12:54:51]free content buf [12:54:51]Sock 5.Close socket [12:54:51]Sock 5.Thread stoped [12:54:55]OFD Sender: No OFD packet to send [12:55:00]OFD Sender: No OFD packet to send [12:55:05]OFD Sender: No OFD packet to send [12:55:10]OFD Sender: No OFD packet to send [12:55:15]OFD Sender: No OFD packet to send [12:55:20]OFD Sender: No OFD packet to send [12:55:25]OFD Sender: No OFD packet to send [12:55:30]OFD Sender: No OFD packet to send [12:55:35]OFD Sender: No OFD packet to send [12:55:40]OFD Sender: No OFD packet to send [12:55:45]OFD Sender: No OFD packet to send [12:55:50]OFD Sender: No OFD packet to send [12:55:55]OFD Sender: No OFD packet to send [12:56:00]OFD Sender: No OFD packet to send [12:56:05]OFD Sender: No OFD packet to send [12:56:10]OFD Sender: No OFD packet to send [12:56:15]OFD Sender: No OFD packet to send [12:56:20]OFD Sender: No OFD packet to send [12:56:25]OFD Sender: No OFD packet to send [12:56:30]OFD Sender: No OFD packet to send [12:56:35]OFD Sender: No OFD packet to send [12:56:40]OFD Sender: No OFD packet to send [12:56:45]OFD Sender: No OFD packet to send [12:56:50]OFD Sender: No OFD packet to send [12:56:55]OFD Sender: No OFD packet to send [12:57:00]OFD Sender: No OFD packet to send [12:57:05]OFD Sender: No OFD packet to send [12:57:10]OFD Sender: No OFD packet to send [12:57:15]OFD Sender: No OFD packet to send [12:57:20]OFD Sender: No OFD packet to send [12:57:25]OFD Sender: No OFD packet to send [12:57:30]OFD Sender: No OFD packet to send [12:57:35]OFD Sender: No OFD packet to send [12:57:40]OFD Sender: No OFD packet to send [12:57:45]OFD Sender: No OFD packet to send [12:57:50]OFD Sender: No OFD packet to send [12:57:55]OFD Sender: No OFD packet to send [12:58:00]OFD Sender: No OFD packet to send [12:58:05]OFD Sender: No OFD packet to send [12:58:10]OFD Sender: No OFD packet to send [12:58:15]OFD Sender: No OFD packet to send [12:58:20]OFD Sender: No OFD packet to send [12:58:25]OFD Sender: No OFD packet to send [12:58:30]OFD Sender: No OFD packet to send [12:58:35]OFD Sender: No OFD packet to send [12:58:40]OFD Sender: No OFD packet to send [12:58:45]OFD Sender: No OFD packet to send [12:58:50]OFD Sender: No OFD packet to send [12:58:55]OFD Sender: No OFD packet to send [12:59:00]OFD Sender: No OFD packet to send [12:59:05]OFD Sender: No OFD packet to send [12:59:10]OFD Sender: No OFD packet to send [12:59:15]OFD Sender: No OFD packet to send [12:59:20]OFD Sender: No OFD packet to send [12:59:25]OFD Sender: No OFD packet to send [12:59:30]OFD Sender: No OFD packet to send [12:59:35]OFD Sender: No OFD packet to send [12:59:40]OFD Sender: No OFD packet to send [12:59:45]OFD Sender: No OFD packet to send [12:59:50]OFD Sender: No OFD packet to send [12:59:53]accept exits with 6 [12:59:53]New connection [12:59:53]New thread 3066641764 created [12:59:53]Thread 3066498404 joined [12:59:53]Waiting for new connection... [12:59:53] Sock 6.Parse request [12:59:53]Sock 6.Check first char [12:59:53]Sock 6.First char is OK [12:59:53]request: POST /json_proto HTTP/1.0 [12:59:53]Method: POST [12:59:53]URL: /json_proto [12:59:53]Method is POST - this is cgi request [12:59:53]url: /json_proto [12:59:53]query_string will be loaded in cgi processing [12:59:53]execute_cgi json_proto POST (null) [12:59:53]execute_cgi path=json_proto method=POST [12:59:53]POST find Content-Length [12:59:53]Host: 172.17.33.3:8080 [12:59:53]Content-Length: 677 [12:59:53]Content-Type: application/json [12:59:53] [12:59:53]POST finish read [12:59:53]Found Content-Length = 677 [12:59:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347013", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 3.120, "sum" : 200.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:59:53]execute_script... [12:59: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)347013", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 3.120, "sum" : 200.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:59:53]POST & json_proto [12:59:53]process_json_proto [12:59:53]json parsed OK: [12:59:53]protocol is kg_v1.0 [12:59:53]action value=close_receipt [12:59:53]process_action close_receipt [12:59:53]cmd_close_receipt [12:59:53]MH_GetDate [12:59:53]Write to MH i2c: F0 00 00 A3 7F 11 [12:59:53]Write i2c OK [12:59:53]MH_I2C_Read... [12:59:53]Read from MH i2c: F0 [12:59:53]MH_I2C_Read... [12:59:53]Read from MH i2c: F0 09 00 [12:59:53]MH_I2C_Read... [12:59:53]Read from MH i2c: F0 09 00 A3 7F 00 51 30 19 66 23 5B 8F 65 8C [12:59:53]GetLastDocTimeStamp 1712926495 [12:59:53]current date 1712926801 [12:59:53]FM_GetShiftState [12:59:53]SAM_PROTO_GetShiftState [12:59:53]wFMCommunicate request_size=4 [12:59:53]MH_SAM_APDU [12:59:53]CAPDU: 80 13 01 00 [12:59:53]Write to MH i2c: E2 08 00 A4 7F 80 13 01 00 00 00 00 00 A0 [12:59:53]Write i2c OK [12:59:53]MH_I2C_Read... [12:59:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:59:53]Read from MH i2c: E2 [12:59:53]MH_I2C_Read... [12:59:53]Read from MH i2c: E2 0E 00 [12:59:53]MH_I2C_Read... [12:59:53]Read from MH i2c: E2 0E 00 A4 7F 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 B1 [12:59:53]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [12:59:53]wFMCommunicate OK [12:59:53]SAM_PROTO_GetShiftState done [12:59:53]FM_GetShiftState done [12:59:53]opened in 1712881416 [12:59:53]opened+sec_in_day 1712967816 [12:59:53]quantity*price = 20061 [12:59:53]sum+1 = 20063 [12:59:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.30 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 129 12.04.2024 13:00 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28680 ФПД: 138193322728609 1/tax-web-control/client/api/v1/ticket?date=20240412T130001&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28680&fm=138193322728609&tin=02508201610067®Number=0000138879044617&sum=20000 [12:59:54]StoreToDocumentArchive [12:59:54]shift 113 fd 28680 [12:59:54]save to /storage/0113/doc_00028680 [12:59:54]save last doc name /storage/0113/doc_00028680 to /storage/kkm_last_doc_name [12:59:54]save OK [12:59:54]Clear old archive folders... [12:59:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:59:54]tlvbuf is 01BC2F00 [12:59:54]SAM_PROTO_ClearQueue [12:59:54]wFMCommunicate request_size=4 [12:59:54]MH_SAM_APDU [12:59:54]CAPDU: 80 09 00 00 [12:59:54]Write to MH i2c: E2 08 00 B1 7F 80 09 00 00 00 00 00 00 A2 [12:59:54]Write i2c OK [12:59:54]MH_I2C_Read... [12:59:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:59:54]Read from MH i2c: E2 [12:59:54]MH_I2C_Read... [12:59:54]Read from MH i2c: E2 03 00 [12:59:54]MH_I2C_Read... [12:59:54]Read from MH i2c: E2 03 00 B1 7F 00 90 00 A4 [12:59:54]RAPDU: 90 00 [12:59:54]wFMCommunicate OK [12:59:54]SAM_PROTO_ClearQueue done [12:59:54]KKMCreateOFDPacket [12:59:54]OFDProtocolAddRootSTLVToBuf [12:59:54]FM_MakeSignedData [12:59:54]FM_MakeSignedData [12:59:54]SAM_PROTO_SignData [12:59:54]wFMCommunicate request_size=4 [12:59:54]MH_SAM_APDU [12:59:54]CAPDU: 80 0D 01 02 [12:59:54]Write to MH i2c: E2 08 00 B2 7F 80 0D 01 02 00 00 00 00 AA [12:59:54]Write i2c OK [12:59:54]MH_I2C_Read... [12:59:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:59:54]Read from MH i2c: E2 [12:59:54]MH_I2C_Read... [12:59:54]Read from MH i2c: E2 03 00 [12:59:54]MH_I2C_Read... [12:59:54]Read from MH i2c: E2 03 00 B2 7F 00 90 00 A5 [12:59:54]RAPDU: 90 00 [12:59:54]wFMCommunicate OK [12:59:54]wFMCommunicate request_size=255 [12:59:54]MH_SAM_APDU [12:59:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 0C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 5E 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 52 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 81 00 00 00 F4 03 04 00 51 30 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 08 70 00 00 35 04 06 00 7D [12:59:54]Write to MH i2c: E2 02 01 B3 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 0C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 5E 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 52 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 81 00 00 00 F4 03 04 00 51 30 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 08 70 00 00 35 04 06 00 7D 00 00 BE [12:59:54]Write i2c OK [12:59:54]MH_I2C_Read... [12:59:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:59:54]Read from MH i2c: E2 [12:59:54]MH_I2C_Read... [12:59:54]Read from MH i2c: E2 03 00 [12:59:54]MH_I2C_Read... [12:59:54]Read from MH i2c: E2 03 00 B3 7F 00 90 00 A6 [12:59:54]RAPDU: 90 00 [12:59:54]wFMCommunicate OK [12:59:54]wFMCommunicate request_size=10 [12:59:54]MH_SAM_APDU [12:59:54]CAPDU: 80 0D 02 02 05 AF A3 E9 5C A1 [12:59:54]Write to MH i2c: E2 0D 00 B4 7F 80 0D 02 02 05 00 AF A3 E9 5C A1 00 00 EF [12:59:54]Write i2c OK [12:59:54]MH_I2C_Read... [12:59:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:59:54]Read from MH i2c: E2 [12:59:54]MH_I2C_Read... [12:59:54]Read from MH i2c: E2 03 00 [12:59:54]MH_I2C_Read... [12:59:54]Read from MH i2c: E2 03 00 B4 7F 00 90 00 A7 [12:59:54]RAPDU: 90 00 [12:59:54]wFMCommunicate OK [12:59:54]wFMCommunicate request_size=4 [12:59:54]MH_SAM_APDU [12:59:54]CAPDU: 80 0D 03 02 [12:59:54]Write to MH i2c: E2 08 00 B5 7F 80 0D 03 02 00 00 00 00 AF [12:59:54]Write i2c OK [12:59:54]MH_I2C_Read... [12:59:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:59:54]Read from MH i2c: E2 [12:59:54]MH_I2C_Read... [12:59:54]Read from MH i2c: E2 0B 00 [12:59:54]MH_I2C_Read... [12:59:54]Read from MH i2c: E2 0B 00 B5 7F 00 DB 95 99 4D D9 C4 54 EA 90 00 E1 [12:59:54]RAPDU: DB 95 99 4D D9 C4 54 EA 90 00 [12:59:54]wFMCommunicate OK [12:59:54]SAM_PROTO_SignData done [12:59:54]FM_MakeSignedData done [12:59:54]CreateOFDProtocolMessage [12:59:54]wFMCommunicate request_size=4 [12:59:54]MH_SAM_APDU [12:59:54]CAPDU: 80 11 00 00 [12:59:54]Write to MH i2c: E2 08 00 B6 7F 80 11 00 00 00 00 00 00 AF [12:59:54]Write i2c OK [12:59:54]MH_I2C_Read... [12:59:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:59:54]Read from MH i2c: E2 [12:59:54]MH_I2C_Read... [12:59:54]Read from MH i2c: E2 17 00 [12:59:54]MH_I2C_Read... [12:59:54]Read from MH i2c: E2 17 00 B6 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 FE [12:59:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:59:54]wFMCommunicate OK [12:59:54]CreateOFDProtocolMessage done [12:59:54]OFDSenderStorePacket 28680 [12:59:54]StoreOFDPacket docnum=28680 [12:59:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 23 C1 07 01 8A 97 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 0C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 5E 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 52 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 81 00 00 00 F4 03 04 00 51 30 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 08 70 00 00 35 04 06 00 7D AF A3 E9 5C A1 DB 95 99 4D D9 C4 54 EA [12:59:54]CheckFolder [12:59:54]dirname=/storage/ofd_packets [12:59:54]CheckFolder done [12:59:54]ProducePacketName [12:59:54]name=ofd_packets/00028680 [12:59:54]NVStorageSaveData ofd_packets/00028680 [12:59:54]File name is /storage/ofd_packets/00028680 [12:59:54]Write 301 bytes [12:59:54]NVStorageSaveData done [12:59:54]OFDSenderStorePacket done [12:59:54]KKMCreateOFDPacket done [12:59:54]NVStorageSaveData kkm_last_timestamp [12:59:54]File name is /storage/kkm_last_timestamp [12:59:54]Write 4 bytes [12:59:54]NVStorageSaveData done [12:59:54]ExternCall_PrintAddStr [12:59:54]wPrintStart [12:59:54]Write to MH i2c: 01 00 00 B7 7F 36 [12:59:54]Write i2c OK [12:59:54]MH_I2C_Read... [12:59:54]Read from MH i2c: 01 [12:59:54]MH_I2C_Read... [12:59:54]Read from MH i2c: 01 07 00 [12:59:54]MH_I2C_Read... [12:59:54]Read from MH i2c: 01 07 00 B7 7F 00 00 00 00 00 FF 0F 4B [12:59:54]RasterBufferAndPrint [12:59:54]line Счет N : (1)347013 [12:59:54]line ИНН: 02508201610067 [12:59:54]line Контрольно-Кассовый Чек [12:59:54]line ПРОДАЖА [12:59:54]line ТРК (МРК, ГНК) : 42 [12:59:54]line Товар: 2710124130 [12:59:54]line Аи-92-К-5 [12:59:54]line 3.120 * 64.30 [12:59:54]line = 200.62 [12:59:54]line НДС 12% НСП 1% [12:59:54]line > о реализуемом товаре [12:59:54]line ОКРУГЛЕНИЕ: -0.62 [12:59:54]line ИТОГО: 200.00 [12:59:54]line Внесено: 200.00 [12:59:54]line СДАЧА: 0.00 [12:59:54]line НСП 1% : 1.77 [12:59:54]line НДС 12% : 21.30 [12:59:54]line Наличными: 200.00 [12:59:54]line Безнал.: 0.00 [12:59:54]line Место: АЗС № 108 "Партнер Нефть" [12:59:54]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [12:59:54]line СНО: Общий режим [12:59:54]line Чек 129 12.04.2024 13:00 [12:59:54]line Смена: 113 ФФД: 1.0 [12:59:54]line ЗНМ: 0300000027 [12:59:54]line РНМ: 0000138879044617 [12:59:54]line Версия ККМ: 001 [12:59:54]line ФМ: 0000000000963154 [12:59:54]line ФД: 28680 [12:59:54]line ФПД: 138193322728609 [12:59:55]line 1/tax-web-control/client/api/v1/ticket?date=20240412T130001&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28680&fm=138193322728609&tin=02508201610067®Number=0000138879044617&sum=20000 [12:59:55]OFD Sender: Processing packet 28680 [packets to send 8, broken 7] [12:59:55]ProducePacketName [12:59:55]name=ofd_packets/00028680 [12:59:55]OFD Sender: To server: pG, [12:59:55]CommunicateWithHost lk.salyk.kg:30040 [12:59:55]ConnectInit lk.salyk.kg [12:59:55]written 0, free lines is 4095 [12:59:55]Connected sock=7 [12:59:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 23 C1 07 01 8A 97 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 0C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 5E 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 52 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 81 00 00 00 F4 03 04 00 51 30 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 08 70 00 00 35 04 06 00 7D AF A3 E9 5C A1 DB 95 99 4D D9 C4 54 EA [12:59:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 0B 5E 47 00 CB 02 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 08 70 00 00 F4 03 04 00 FB DA 18 66 B6 04 01 00 00 8A C1 94 0A D9 75 26 EE [12:59:55]CommunicateWithHost err = 0 [12:59:55]CheckOFDResponse [12:59:55]1017 (14) - 77093643461234 [12:59:55]1041 (16) - 0000000000963154 [12:59:55]1040 (4) - 28680 [12:59:55]1012 (4) - 12.04.2024 06:55 [12:59:55]1206 (1) - 0 [12:59:55]OFD Sender: Remove packet 28680 [12:59:55]ProducePacketName [12:59:55]name=ofd_packets/00028680 [12:59:55]NVStorageDeleteData [12:59:55]Write to MH i2c: 01 00 00 E1 7F 60 [12:59:55]Write i2c OK [12:59:55]MH_I2C_Read... [12:59:55]Read from MH i2c: 01 [12:59:55]MH_I2C_Read... [12:59:55]Read from MH i2c: 01 07 00 [12:59:55]MH_I2C_Read... [12:59:55]Read from MH i2c: 01 07 00 E1 7F 00 00 00 00 00 C6 0C 39 [12:59:55]RasterBufferAndPrint [12:59:55]line [12:59:55]line [12:59:55]line [12:59:55]line [12:59:55]line [12:59:55]written 0, free lines is 3276 [12:59:55]MH_Cut [12:59:55]Write to MH i2c: D1 01 00 E8 7F 01 39 [12:59:55]Write i2c OK [12:59:55]MH_I2C_Read... [12:59:55]Read from MH i2c: D1 [12:59:55]MH_I2C_Read... [12:59:55]Read from MH i2c: D1 01 00 [12:59:55]MH_I2C_Read... [12:59:55]Read from MH i2c: D1 01 00 E8 7F 00 38 [12:59:55]Write to MH i2c: 01 00 00 E9 7F 68 [12:59:55]Write i2c OK [12:59:55]MH_I2C_Read... [12:59:56]OFD Sender: No OFD packet to send [12:59:56]*** Cut start [12:59:56]*** Partial cut [12:59:56]*** CUTSNS_PIN = 1 [12:59:56]*** CUTSNS_PIN = 0 [12:59:56]*** Brake cut motor [12:59:57]Read from MH i2c: 01 [12:59:57]MH_I2C_Read... [12:59:57]*** Stop cut motor [12:59:57]*** Cut end [12:59:57]Read from MH i2c: 01 07 00 [12:59:57]MH_I2C_Read... [12:59:57]Read from MH i2c: 01 07 00 E9 7F 00 00 00 00 00 FF 0F 7D [12:59:57]process_action close_receipt done [12:59:57]requested_data is exist [12:59:57]produce_requested_data [12:59:57]requested_item fm.sn is exist - process it [12:59:57]wFMCommunicate request_size=4 [12:59:57]MH_SAM_APDU [12:59:57]CAPDU: 80 11 00 00 [12:59:57]Write to MH i2c: E2 08 00 EA 7F 80 11 00 00 00 00 00 00 E3 [12:59:57]Write i2c OK [12:59:57]MH_I2C_Read... [12:59:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:59:57]Read from MH i2c: E2 [12:59:57]MH_I2C_Read... [12:59:57]Read from MH i2c: E2 17 00 [12:59:57]MH_I2C_Read... [12:59:57]Read from MH i2c: E2 17 00 EA 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 32 [12:59:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:59:57]wFMCommunicate OK [12:59:57]requested_item fd.num is exist - process it [12:59:57]SAM_PROTO_GetFieldsCounters [12:59:57]wFMCommunicate request_size=4 [12:59:57]MH_SAM_APDU [12:59:57]CAPDU: 80 13 00 00 [12:59:57]Write to MH i2c: E2 08 00 EB 7F 80 13 00 00 00 00 00 00 E6 [12:59:57]Write i2c OK [12:59:57]MH_I2C_Read... [12:59:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:59:57]Read from MH i2c: E2 [12:59:57]MH_I2C_Read... [12:59:57]Read from MH i2c: E2 62 00 [12:59:57]MH_I2C_Read... [12:59:57]Read from MH i2c: E2 62 00 EB 7F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 08 70 00 00 0E 04 04 00 71 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 90 [12:59:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 08 70 00 00 0E 04 04 00 71 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 [12:59:57]wFMCommunicate OK [12:59:57]SAM_PROTO_GetFieldsCounters done [12:59:57]requested_item shift.num is exist - process it [12:59:57]requested_item shift.opened is exist - process it [12:59:57]req_shift_opened [12:59:57]FM_GetShiftState [12:59:57]SAM_PROTO_GetShiftState [12:59:57]wFMCommunicate request_size=4 [12:59:57]MH_SAM_APDU [12:59:57]CAPDU: 80 13 01 00 [12:59:57]Write to MH i2c: E2 08 00 EC 7F 80 13 01 00 00 00 00 00 E8 [12:59:57]Write i2c OK [12:59:57]MH_I2C_Read... [12:59:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:59:57]Read from MH i2c: E2 [12:59:57]MH_I2C_Read... [12:59:57]Read from MH i2c: E2 0E 00 [12:59:57]MH_I2C_Read... [12:59:57]Read from MH i2c: E2 0E 00 EC 7F 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 F9 [12:59:57]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [12:59:57]wFMCommunicate OK [12:59:57]SAM_PROTO_GetShiftState done [12:59:57]FM_GetShiftState done [12:59:57]req_shift_opened done [12:59:57]requested_item shift.open_date is exist - process it [12:59:57]req_shift_open_date [12:59:57]req_shift_open_date done [12:59:57]produce_requested_data done [12:59:57]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28680,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [12:59:57]process_action_free close_receipt [12:59:57]json_value_free [12:59:57]json_value_free done [12:59:57]process_json_proto returns [12:59:57]Send response to host [12:59:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28680,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [12:59:57]free response buf [12:59:57]execute_script done [12:59:57]execute_script returns [12:59:57]free content buf [12:59:57]Sock 6.Close socket [12:59:57]Sock 6.Thread stoped [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:36]OFD Sender: No OFD packet to send [13:03:41]OFD Sender: No OFD packet to send [13:03:42]accept exits with 5 [13:03:42]New connection [13:03:42]New thread 3066498404 created [13:03:42]Thread 3066641764 joined [13:03:42]Waiting for new connection... [13:03:42] Sock 5.Parse request [13:03:42]Sock 5.Check first char [13:03:42]Sock 5.First char is OK [13:03:42]request: POST /json_proto HTTP/1.0 [13:03:42]Method: POST [13:03:42]URL: /json_proto [13:03:42]Method is POST - this is cgi request [13:03:42]url: /json_proto [13:03:42]query_string will be loaded in cgi processing [13:03:42]execute_cgi json_proto POST (null) [13:03:42]execute_cgi path=json_proto method=POST [13:03:42]POST find Content-Length [13:03:42]Host: 172.17.33.3:8080 [13:03:42]Content-Length: 678 [13:03:42]Content-Type: application/json [13:03:42] [13:03:42]POST finish read [13:03:42]Found Content-Length = 678 [13:03:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347014", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 10.110, "sum" : 650.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:03:42]execute_script... [13:03: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)347014", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 10.110, "sum" : 650.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:03:42]POST & json_proto [13:03:42]process_json_proto [13:03:42]json parsed OK: [13:03:42]protocol is kg_v1.0 [13:03:42]action value=close_receipt [13:03:42]process_action close_receipt [13:03:42]cmd_close_receipt [13:03:42]MH_GetDate [13:03:42]Write to MH i2c: F0 00 00 ED 7F 5B [13:03:42]Write i2c OK [13:03:42]MH_I2C_Read... [13:03:42]Read from MH i2c: F0 [13:03:42]MH_I2C_Read... [13:03:42]Read from MH i2c: F0 09 00 [13:03:42]MH_I2C_Read... [13:03:42]Read from MH i2c: F0 09 00 ED 7F 00 36 31 19 66 23 5B 8F 65 BC [13:03:42]GetLastDocTimeStamp 1712926801 [13:03:42]current date 1712927030 [13:03:42]FM_GetShiftState [13:03:42]SAM_PROTO_GetShiftState [13:03:42]wFMCommunicate request_size=4 [13:03:42]MH_SAM_APDU [13:03:42]CAPDU: 80 13 01 00 [13:03:42]Write to MH i2c: E2 08 00 EE 7F 80 13 01 00 00 00 00 00 EA [13:03:42]Write i2c OK [13:03:42]MH_I2C_Read... [13:03:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:03:42]Read from MH i2c: E2 [13:03:42]MH_I2C_Read... [13:03:42]Read from MH i2c: E2 0E 00 [13:03:42]MH_I2C_Read... [13:03:42]Read from MH i2c: E2 0E 00 EE 7F 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 FB [13:03:42]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [13:03:42]wFMCommunicate OK [13:03:42]SAM_PROTO_GetShiftState done [13:03:42]FM_GetShiftState done [13:03:42]opened in 1712881416 [13:03:42]opened+sec_in_day 1712967816 [13:03:42]quantity*price = 65007 [13:03:42]sum+1 = 65008 [13:03:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 650.00 Внесено: 650.00 СДАЧА: 0.00 НСП 1% : 5.75 НДС 12% : 69.03 Наличными: 650.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 130 12.04.2024 13:03 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28681 ФПД: 250443429550907 1/tax-web-control/client/api/v1/ticket?date=20240412T130350&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28681&fm=250443429550907&tin=02508201610067®Number=0000138879044617&sum=65000 [13:03:43]StoreToDocumentArchive [13:03:43]shift 113 fd 28681 [13:03:43]save to /storage/0113/doc_00028681 [13:03:43]save last doc name /storage/0113/doc_00028681 to /storage/kkm_last_doc_name [13:03:43]save OK [13:03:43]Clear old archive folders... [13:03:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:03:43]tlvbuf is 01B5A5E0 [13:03:43]SAM_PROTO_ClearQueue [13:03:43]wFMCommunicate request_size=4 [13:03:43]MH_SAM_APDU [13:03:43]CAPDU: 80 09 00 00 [13:03:43]Write to MH i2c: E2 08 00 FB 7F 80 09 00 00 00 00 00 00 EC [13:03:43]Write i2c OK [13:03:43]MH_I2C_Read... [13:03:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:03:43]Read from MH i2c: E2 [13:03:43]MH_I2C_Read... [13:03:43]Read from MH i2c: E2 03 00 [13:03:43]MH_I2C_Read... [13:03:43]Read from MH i2c: E2 03 00 FB 7F 00 90 00 EE [13:03:43]RAPDU: 90 00 [13:03:43]wFMCommunicate OK [13:03:43]SAM_PROTO_ClearQueue done [13:03:43]KKMCreateOFDPacket [13:03:43]OFDProtocolAddRootSTLVToBuf [13:03:43]FM_MakeSignedData [13:03:43]FM_MakeSignedData [13:03:43]SAM_PROTO_SignData [13:03:43]wFMCommunicate request_size=4 [13:03:43]MH_SAM_APDU [13:03:43]CAPDU: 80 0D 01 02 [13:03:43]Write to MH i2c: E2 08 00 FC 7F 80 0D 01 02 00 00 00 00 F4 [13:03:43]Write i2c OK [13:03:43]MH_I2C_Read... [13:03:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:03:43]Read from MH i2c: E2 [13:03:43]MH_I2C_Read... [13:03:43]Read from MH i2c: E2 03 00 [13:03:43]MH_I2C_Read... [13:03:43]Read from MH i2c: E2 03 00 FC 7F 00 90 00 EF [13:03:43]RAPDU: 90 00 [13:03:43]wFMCommunicate OK [13:03:43]wFMCommunicate request_size=255 [13:03:43]MH_SAM_APDU [13:03:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 27 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 EF FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 36 31 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 09 70 00 00 35 04 06 00 E3 [13:03:43]Write to MH i2c: E2 02 01 FD 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 27 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 EF FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 36 31 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 09 70 00 00 35 04 06 00 E3 00 00 34 [13:03:43]Write i2c OK [13:03:43]MH_I2C_Read... [13:03:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:03:43]Read from MH i2c: E2 [13:03:43]MH_I2C_Read... [13:03:43]Read from MH i2c: E2 03 00 [13:03:43]MH_I2C_Read... [13:03:43]Read from MH i2c: E2 03 00 FD 7F 00 90 00 F0 [13:03:43]RAPDU: 90 00 [13:03:43]wFMCommunicate OK [13:03:43]wFMCommunicate request_size=10 [13:03:43]MH_SAM_APDU [13:03:43]CAPDU: 80 0D 02 02 05 C6 E7 A7 9B 3B [13:03:43]Write to MH i2c: E2 0D 00 FE 7F 80 0D 02 02 05 00 C6 E7 A7 9B 3B 00 00 2B [13:03:43]Write i2c OK [13:03:43]MH_I2C_Read... [13:03:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:03:43]Read from MH i2c: E2 [13:03:43]MH_I2C_Read... [13:03:43]Read from MH i2c: E2 03 00 [13:03:43]MH_I2C_Read... [13:03:43]Read from MH i2c: E2 03 00 FE 7F 00 90 00 F1 [13:03:43]RAPDU: 90 00 [13:03:43]wFMCommunicate OK [13:03:43]wFMCommunicate request_size=4 [13:03:43]MH_SAM_APDU [13:03:43]CAPDU: 80 0D 03 02 [13:03:43]Write to MH i2c: E2 08 00 FF 7F 80 0D 03 02 00 00 00 00 F9 [13:03:43]Write i2c OK [13:03:43]MH_I2C_Read... [13:03:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:03:43]Read from MH i2c: E2 [13:03:43]MH_I2C_Read... [13:03:43]Read from MH i2c: E2 0B 00 [13:03:43]MH_I2C_Read... [13:03:43]Read from MH i2c: E2 0B 00 FF 7F 00 0E 43 2C C1 E2 72 C9 58 90 00 AD [13:03:43]RAPDU: 0E 43 2C C1 E2 72 C9 58 90 00 [13:03:43]wFMCommunicate OK [13:03:43]SAM_PROTO_SignData done [13:03:43]FM_MakeSignedData done [13:03:43]CreateOFDProtocolMessage [13:03:43]wFMCommunicate request_size=4 [13:03:43]MH_SAM_APDU [13:03:43]CAPDU: 80 11 00 00 [13:03:43]Write to MH i2c: E2 08 00 00 80 80 11 00 00 00 00 00 00 FA [13:03:43]Write i2c OK [13:03:43]MH_I2C_Read... [13:03:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:03:43]Read from MH i2c: E2 [13:03:43]MH_I2C_Read... [13:03:43]Read from MH i2c: E2 17 00 [13:03:43]MH_I2C_Read... [13:03:43]Read from MH i2c: E2 17 00 00 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 49 [13:03:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:03:43]wFMCommunicate OK [13:03:43]CreateOFDProtocolMessage done [13:03:43]OFDSenderStorePacket 28681 [13:03:43]StoreOFDPacket docnum=28681 [13:03:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 F0 21 07 01 8F 52 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 27 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 EF FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 36 31 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 09 70 00 00 35 04 06 00 E3 C6 E7 A7 9B 3B 0E 43 2C C1 E2 72 C9 58 [13:03:43]CheckFolder [13:03:43]dirname=/storage/ofd_packets [13:03:43]CheckFolder done [13:03:43]ProducePacketName [13:03:43]name=ofd_packets/00028681 [13:03:43]NVStorageSaveData ofd_packets/00028681 [13:03:43]File name is /storage/ofd_packets/00028681 [13:03:43]Write 301 bytes [13:03:43]NVStorageSaveData done [13:03:43]OFDSenderStorePacket done [13:03:43]KKMCreateOFDPacket done [13:03:43]NVStorageSaveData kkm_last_timestamp [13:03:43]File name is /storage/kkm_last_timestamp [13:03:43]Write 4 bytes [13:03:43]NVStorageSaveData done [13:03:43]ExternCall_PrintAddStr [13:03:43]wPrintStart [13:03:43]Write to MH i2c: 01 00 00 01 80 81 [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 01 80 00 00 00 00 00 FF 0F 96 [13:03:43]RasterBufferAndPrint [13:03:43]line Счет N : (1)347014 [13:03:43]line ИНН: 02508201610067 [13:03:43]line Контрольно-Кассовый Чек [13:03:43]line ПРОДАЖА [13:03:43]line ТРК (МРК, ГНК) : 32 [13:03:43]line Товар: 2710124130 [13:03:43]line Аи-92-К-5 [13:03:43]line 10.110 * 64.30 [13:03:43]line = 650.07 [13:03:43]line НДС 12% НСП 1% [13:03:43]line > о реализуемом товаре [13:03:43]line ОКРУГЛЕНИЕ: -0.07 [13:03:43]line ИТОГО: 650.00 [13:03:43]line Внесено: 650.00 [13:03:43]line СДАЧА: 0.00 [13:03:43]line НСП 1% : 5.75 [13:03:43]line НДС 12% : 69.03 [13:03:43]line Наличными: 650.00 [13:03:43]line Безнал.: 0.00 [13:03:43]line Место: АЗС № 108 "Партнер Нефть" [13:03:43]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [13:03:43]line СНО: Общий режим [13:03:43]line Чек 130 12.04.2024 13:03 [13:03:43]line Смена: 113 ФФД: 1.0 [13:03:43]line ЗНМ: 0300000027 [13:03:43]line РНМ: 0000138879044617 [13:03:43]line Версия ККМ: 001 [13:03:43]line ФМ: 0000000000963154 [13:03:43]line ФД: 28681 [13:03:43]line ФПД: 250443429550907 [13:03:44]line 1/tax-web-control/client/api/v1/ticket?date=20240412T130350&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28681&fm=250443429550907&tin=02508201610067®Number=0000138879044617&sum=65000 [13:03:44]OFD Sender: Processing packet 28681 [packets to send 8, broken 7] [13:03:44]ProducePacketName [13:03:44]name=ofd_packets/00028681 [13:03:44]OFD Sender: To server: pG, [13:03:44]CommunicateWithHost lk.salyk.kg:30040 [13:03:44]ConnectInit lk.salyk.kg [13:03:44]written 0, free lines is 4095 [13:03:44]Connected sock=7 [13:03:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 F0 21 07 01 8F 52 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 27 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 EF FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 36 31 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 09 70 00 00 35 04 06 00 E3 C6 E7 A7 9B 3B 0E 43 2C C1 E2 72 C9 58 [13:03:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 5F BB 47 00 05 0C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 09 70 00 00 F4 03 04 00 E0 DB 18 66 B6 04 01 00 00 9C 6C 1E AA 26 E8 78 0E [13:03:44]CommunicateWithHost err = 0 [13:03:44]CheckOFDResponse [13:03:44]1017 (14) - 77093643461234 [13:03:44]1041 (16) - 0000000000963154 [13:03:44]1040 (4) - 28681 [13:03:44]1012 (4) - 12.04.2024 06:59 [13:03:44]1206 (1) - 0 [13:03:44]OFD Sender: Remove packet 28681 [13:03:44]ProducePacketName [13:03:44]name=ofd_packets/00028681 [13:03:44]NVStorageDeleteData [13:03:44]Write to MH i2c: 01 00 00 2B 80 AB [13:03:44]Write i2c OK [13:03:44]MH_I2C_Read... [13:03:44]Read from MH i2c: 01 [13:03:44]MH_I2C_Read... [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 2B 80 00 00 00 00 00 C4 0C 82 [13:03:44]RasterBufferAndPrint [13:03:44]line [13:03:44]line [13:03:44]line [13:03:44]line [13:03:44]line [13:03:44]written 0, free lines is 3274 [13:03:44]MH_Cut [13:03:44]Write to MH i2c: D1 01 00 32 80 01 84 [13:03:44]Write i2c OK [13:03:44]MH_I2C_Read... [13:03:44]Read from MH i2c: D1 [13:03:44]MH_I2C_Read... [13:03:44]Read from MH i2c: D1 01 00 [13:03:44]MH_I2C_Read... [13:03:44]Read from MH i2c: D1 01 00 32 80 00 83 [13:03:44]Write to MH i2c: 01 00 00 33 80 B3 [13:03:44]Write i2c OK [13:03:44]MH_I2C_Read... [13:03:44]OFD Sender: No OFD packet to send [13:03:45]*** Cut start [13:03:45]*** Partial cut [13:03:45]*** CUTSNS_PIN = 1 [13:03:45]*** CUTSNS_PIN = 0 [13:03:45]*** Brake cut motor [13:03:46]Read from MH i2c: 01 [13:03:46]MH_I2C_Read... [13:03:46]*** Stop cut motor [13:03:46]*** Cut end [13:03:46]Read from MH i2c: 01 07 00 [13:03:46]MH_I2C_Read... [13:03:46]Read from MH i2c: 01 07 00 33 80 00 00 00 00 00 FF 0F C8 [13:03:46]process_action close_receipt done [13:03:46]requested_data is exist [13:03:46]produce_requested_data [13:03:46]requested_item fm.sn is exist - process it [13:03:46]wFMCommunicate request_size=4 [13:03:46]MH_SAM_APDU [13:03:46]CAPDU: 80 11 00 00 [13:03:46]Write to MH i2c: E2 08 00 34 80 80 11 00 00 00 00 00 00 2E [13:03:46]Write i2c OK [13:03:46]MH_I2C_Read... [13:03:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:03:46]Read from MH i2c: E2 [13:03:46]MH_I2C_Read... [13:03:46]Read from MH i2c: E2 17 00 [13:03:46]MH_I2C_Read... [13:03:46]Read from MH i2c: E2 17 00 34 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 7D [13:03:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:03:46]wFMCommunicate OK [13:03:46]requested_item fd.num is exist - process it [13:03:46]SAM_PROTO_GetFieldsCounters [13:03:46]wFMCommunicate request_size=4 [13:03:46]MH_SAM_APDU [13:03:46]CAPDU: 80 13 00 00 [13:03:46]Write to MH i2c: E2 08 00 35 80 80 13 00 00 00 00 00 00 31 [13:03:46]Write i2c OK [13:03:46]MH_I2C_Read... [13:03:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:03:46]Read from MH i2c: E2 [13:03:46]MH_I2C_Read... [13:03:46]Read from MH i2c: E2 62 00 [13:03:46]MH_I2C_Read... [13:03:46]Read from MH i2c: E2 62 00 35 80 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 09 70 00 00 0E 04 04 00 71 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 DF [13:03:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 09 70 00 00 0E 04 04 00 71 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:03:46]wFMCommunicate OK [13:03:46]SAM_PROTO_GetFieldsCounters done [13:03:46]requested_item shift.num is exist - process it [13:03:46]requested_item shift.opened is exist - process it [13:03:46]req_shift_opened [13:03:46]FM_GetShiftState [13:03:46]SAM_PROTO_GetShiftState [13:03:46]wFMCommunicate request_size=4 [13:03:46]MH_SAM_APDU [13:03:46]CAPDU: 80 13 01 00 [13:03:46]Write to MH i2c: E2 08 00 36 80 80 13 01 00 00 00 00 00 33 [13:03:46]Write i2c OK [13:03:46]MH_I2C_Read... [13:03:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:03:46]Read from MH i2c: E2 [13:03:46]MH_I2C_Read... [13:03:46]Read from MH i2c: E2 0E 00 [13:03:46]MH_I2C_Read... [13:03:46]Read from MH i2c: E2 0E 00 36 80 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 44 [13:03:46]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [13:03:46]wFMCommunicate OK [13:03:46]SAM_PROTO_GetShiftState done [13:03:46]FM_GetShiftState done [13:03:46]req_shift_opened done [13:03:46]requested_item shift.open_date is exist - process it [13:03:46]req_shift_open_date [13:03:46]req_shift_open_date done [13:03:46]produce_requested_data done [13:03:46]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28681,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [13:03:46]process_action_free close_receipt [13:03:46]json_value_free [13:03:46]json_value_free done [13:03:46]process_json_proto returns [13:03:46]Send response to host [13:03:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28681,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [13:03:46]free response buf [13:03:46]execute_script done [13:03:46]execute_script returns [13:03:46]free content buf [13:03:46]Sock 5.Close socket [13:03:46]Sock 5.Thread stoped [13:03:49]OFD Sender: No OFD packet to send [13:03:54]OFD Sender: No OFD packet to send [13:03:59]OFD Sender: No OFD packet to send [13:04:04]OFD Sender: No OFD packet to send [13:04:09]OFD Sender: No OFD packet to send [13:04:14]OFD Sender: No OFD packet to send [13:04:19]OFD Sender: No OFD packet to send [13:04:24]OFD Sender: No OFD packet to send [13:04:29]OFD Sender: No OFD packet to send [13:04:34]OFD Sender: No OFD packet to send [13:04:39]OFD Sender: No OFD packet to send [13:04:44]OFD Sender: No OFD packet to send [13:04:49]OFD Sender: No OFD packet to send [13:04:55]OFD Sender: No OFD packet to send [13:05:00]OFD Sender: No OFD packet to send [13:05:05]OFD Sender: No OFD packet to send [13:05:10]OFD Sender: No OFD packet to send [13:05:15]OFD Sender: No OFD packet to send [13:05:20]OFD Sender: No OFD packet to send [13:05:25]OFD Sender: No OFD packet to send [13:05:30]OFD Sender: No OFD packet to send [13:05:35]OFD Sender: No OFD packet to send [13:05:40]OFD Sender: No OFD packet to send [13:05:45]OFD Sender: No OFD packet to send [13:05:50]OFD Sender: No OFD packet to send [13:05:55]OFD Sender: No OFD packet to send [13:06:00]OFD Sender: No OFD packet to send [13:06:05]OFD Sender: No OFD packet to send [13:06:10]OFD Sender: No OFD packet to send [13:06:15]OFD Sender: No OFD packet to send [13:06:20]OFD Sender: No OFD packet to send [13:06:25]OFD Sender: No OFD packet to send [13:06:30]OFD Sender: No OFD packet to send [13:06:35]OFD Sender: No OFD packet to send [13:06:40]OFD Sender: No OFD packet to send [13:06:45]OFD Sender: No OFD packet to send [13:06:48]accept exits with 6 [13:06:48]New connection [13:06:48]New thread 3066641764 created [13:06:48]Thread 3066498404 joined [13:06:48]Waiting for new connection... [13:06:48] Sock 6.Parse request [13:06:48]Sock 6.Check first char [13:06:48]Sock 6.First char is OK [13:06:48]request: POST /json_proto HTTP/1.0 [13:06:48]Method: POST [13:06:48]URL: /json_proto [13:06:48]Method is POST - this is cgi request [13:06:48]url: /json_proto [13:06:48]query_string will be loaded in cgi processing [13:06:48]execute_cgi json_proto POST (null) [13:06:48]execute_cgi path=json_proto method=POST [13:06:48]POST find Content-Length [13:06:48]Host: 172.17.33.3:8080 [13:06:48]Content-Length: 670 [13:06:48]Content-Type: application/json [13:06:48] [13:06:48]POST finish read [13:06:48]Found Content-Length = 670 [13:06:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347015", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 9.190, "sum" : 600.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:06:48]execute_script... [13:06: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)347015", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 9.190, "sum" : 600.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:06:48]POST & json_proto [13:06:48]process_json_proto [13:06:48]json parsed OK: [13:06:48]protocol is kg_v1.0 [13:06:48]action value=close_receipt [13:06:48]process_action close_receipt [13:06:48]cmd_close_receipt [13:06:48]MH_GetDate [13:06:48]Write to MH i2c: F0 00 00 37 80 A6 [13:06:48]Write i2c OK [13:06:48]MH_I2C_Read... [13:06:48]Read from MH i2c: F0 [13:06:48]MH_I2C_Read... [13:06:48]Read from MH i2c: F0 09 00 [13:06:48]MH_I2C_Read... [13:06:48]Read from MH i2c: F0 09 00 37 80 00 F0 31 19 66 23 5B 8F 65 C1 [13:06:48]GetLastDocTimeStamp 1712927030 [13:06:48]current date 1712927216 [13:06:48]FM_GetShiftState [13:06:48]SAM_PROTO_GetShiftState [13:06:48]wFMCommunicate request_size=4 [13:06:48]MH_SAM_APDU [13:06:48]CAPDU: 80 13 01 00 [13:06:48]Write to MH i2c: E2 08 00 38 80 80 13 01 00 00 00 00 00 35 [13:06:48]Write i2c OK [13:06:48]MH_I2C_Read... [13:06:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:06:48]Read from MH i2c: E2 [13:06:48]MH_I2C_Read... [13:06:48]Read from MH i2c: E2 0E 00 [13:06:48]MH_I2C_Read... [13:06:48]Read from MH i2c: E2 0E 00 38 80 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 46 [13:06:48]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [13:06:48]wFMCommunicate OK [13:06:48]SAM_PROTO_GetShiftState done [13:06:48]FM_GetShiftState done [13:06:48]opened in 1712881416 [13:06:48]opened+sec_in_day 1712967816 [13:06:48]quantity*price = 60010 [13:06:48]sum+1 = 60012 [13:06:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 131 12.04.2024 13:06 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28682 ФПД: 51318294792782 1/tax-web-control/client/api/v1/ticket?date=20240412T130656&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28682&fm=51318294792782&tin=02508201610067®Number=0000138879044617&sum=60000 [13:06:49]StoreToDocumentArchive [13:06:49]shift 113 fd 28682 [13:06:49]save to /storage/0113/doc_00028682 [13:06:49]save last doc name /storage/0113/doc_00028682 to /storage/kkm_last_doc_name [13:06:49]save OK [13:06:49]Clear old archive folders... [13:06:49]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:06:49]tlvbuf is 01C6B880 [13:06:49]SAM_PROTO_ClearQueue [13:06:49]wFMCommunicate request_size=4 [13:06:49]MH_SAM_APDU [13:06:49]CAPDU: 80 09 00 00 [13:06:49]Write to MH i2c: E2 08 00 45 80 80 09 00 00 00 00 00 00 37 [13:06:49]Write i2c OK [13:06:49]MH_I2C_Read... [13:06:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:06:49]Read from MH i2c: E2 [13:06:49]MH_I2C_Read... [13:06:49]Read from MH i2c: E2 03 00 [13:06:49]MH_I2C_Read... [13:06:49]Read from MH i2c: E2 03 00 45 80 00 90 00 39 [13:06:49]RAPDU: 90 00 [13:06:49]wFMCommunicate OK [13:06:49]SAM_PROTO_ClearQueue done [13:06:49]KKMCreateOFDPacket [13:06:49]OFDProtocolAddRootSTLVToBuf [13:06:49]FM_MakeSignedData [13:06:49]FM_MakeSignedData [13:06:49]SAM_PROTO_SignData [13:06:49]wFMCommunicate request_size=4 [13:06:49]MH_SAM_APDU [13:06:49]CAPDU: 80 0D 01 02 [13:06:49]Write to MH i2c: E2 08 00 46 80 80 0D 01 02 00 00 00 00 3F [13:06:49]Write i2c OK [13:06:49]MH_I2C_Read... [13:06:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:06:49]Read from MH i2c: E2 [13:06:49]MH_I2C_Read... [13:06:49]Read from MH i2c: E2 03 00 [13:06:49]MH_I2C_Read... [13:06:49]Read from MH i2c: E2 03 00 46 80 00 90 00 3A [13:06:49]RAPDU: 90 00 [13:06:49]wFMCommunicate OK [13:06:49]wFMCommunicate request_size=255 [13:06:49]MH_SAM_APDU [13:06:49]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 6B 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 83 00 00 00 F4 03 04 00 F0 31 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0A 70 00 00 35 04 06 00 [13:06:49]Write to MH i2c: E2 02 01 47 80 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 6B 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 83 00 00 00 F4 03 04 00 F0 31 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0A 70 00 00 35 04 06 00 00 00 BD [13:06:49]Write i2c OK [13:06:49]MH_I2C_Read... [13:06:50]Read from MH i2c: E2 [13:06:50]MH_I2C_Read... [13:06:50]OFD Sender: No OFD packet to send [13:06:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:06:50]Read from MH i2c: E2 03 00 [13:06:50]MH_I2C_Read... [13:06:50]Read from MH i2c: E2 03 00 47 80 00 90 00 3B [13:06:50]RAPDU: 90 00 [13:06:50]wFMCommunicate OK [13:06:50]wFMCommunicate request_size=11 [13:06:50]MH_SAM_APDU [13:06:50]CAPDU: 80 0D 02 02 06 2E AC 78 BB 4A 4E [13:06:50]Write to MH i2c: E2 0E 00 48 80 80 0D 02 02 06 00 2E AC 78 BB 4A 4E 00 00 F3 [13:06:50]Write i2c OK [13:06:50]MH_I2C_Read... [13:06:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:06:50]Read from MH i2c: E2 [13:06:50]MH_I2C_Read... [13:06:50]Read from MH i2c: E2 03 00 [13:06:50]MH_I2C_Read... [13:06:50]Read from MH i2c: E2 03 00 48 80 00 90 00 3C [13:06:50]RAPDU: 90 00 [13:06:50]wFMCommunicate OK [13:06:50]wFMCommunicate request_size=4 [13:06:50]MH_SAM_APDU [13:06:50]CAPDU: 80 0D 03 02 [13:06:50]Write to MH i2c: E2 08 00 49 80 80 0D 03 02 00 00 00 00 44 [13:06:50]Write i2c OK [13:06:50]MH_I2C_Read... [13:06:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:06:50]Read from MH i2c: E2 [13:06:50]MH_I2C_Read... [13:06:50]Read from MH i2c: E2 0B 00 [13:06:50]MH_I2C_Read... [13:06:50]Read from MH i2c: E2 0B 00 49 80 00 CB AF 56 47 45 B1 69 60 90 00 1B [13:06:50]RAPDU: CB AF 56 47 45 B1 69 60 90 00 [13:06:50]wFMCommunicate OK [13:06:50]SAM_PROTO_SignData done [13:06:50]FM_MakeSignedData done [13:06:50]CreateOFDProtocolMessage [13:06:50]wFMCommunicate request_size=4 [13:06:50]MH_SAM_APDU [13:06:50]CAPDU: 80 11 00 00 [13:06:50]Write to MH i2c: E2 08 00 4A 80 80 11 00 00 00 00 00 00 44 [13:06:50]Write i2c OK [13:06:50]MH_I2C_Read... [13:06:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:06:50]Read from MH i2c: E2 [13:06:50]MH_I2C_Read... [13:06:50]Read from MH i2c: E2 17 00 [13:06:50]MH_I2C_Read... [13:06:50]Read from MH i2c: E2 17 00 4A 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 93 [13:06:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:06:50]wFMCommunicate OK [13:06:50]CreateOFDProtocolMessage done [13:06:50]OFDSenderStorePacket 28682 [13:06:50]StoreOFDPacket docnum=28682 [13:06:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 49 C9 08 01 90 98 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 6B 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 83 00 00 00 F4 03 04 00 F0 31 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0A 70 00 00 35 04 06 00 2E AC 78 BB 4A 4E CB AF 56 47 45 B1 69 60 [13:06:50]CheckFolder [13:06:50]dirname=/storage/ofd_packets [13:06:50]CheckFolder done [13:06:50]ProducePacketName [13:06:50]name=ofd_packets/00028682 [13:06:50]NVStorageSaveData ofd_packets/00028682 [13:06:50]File name is /storage/ofd_packets/00028682 [13:06:50]Write 302 bytes [13:06:50]NVStorageSaveData done [13:06:50]OFDSenderStorePacket done [13:06:50]KKMCreateOFDPacket done [13:06:50]NVStorageSaveData kkm_last_timestamp [13:06:50]File name is /storage/kkm_last_timestamp [13:06:50]Write 4 bytes [13:06:50]NVStorageSaveData done [13:06:50]ExternCall_PrintAddStr [13:06:50]wPrintStart [13:06:50]Write to MH i2c: 01 00 00 4B 80 CB [13:06:50]Write i2c OK [13:06:50]MH_I2C_Read... [13:06:50]Read from MH i2c: 01 [13:06:50]MH_I2C_Read... [13:06:50]Read from MH i2c: 01 07 00 [13:06:50]MH_I2C_Read... [13:06:50]Read from MH i2c: 01 07 00 4B 80 00 00 00 00 00 FF 0F E0 [13:06:50]RasterBufferAndPrint [13:06:50]line Счет N : (1)347015 [13:06:50]line ИНН: 02508201610067 [13:06:50]line Контрольно-Кассовый Чек [13:06:50]line ПРОДАЖА [13:06:50]line ТРК (МРК, ГНК) : 41 [13:06:50]line Товар: 2710124130 [13:06:50]line SUPER-92-К-5 [13:06:50]line 9.190 * 65.30 [13:06:50]line = 600.11 [13:06:50]line НДС 12% НСП 1% [13:06:50]line > о реализуемом товаре [13:06:50]line ОКРУГЛЕНИЕ: -0.11 [13:06:50]line ИТОГО: 600.00 [13:06:50]line Внесено: 600.00 [13:06:50]line СДАЧА: 0.00 [13:06:50]line НСП 1% : 5.31 [13:06:50]line НДС 12% : 63.73 [13:06:50]line Наличными: 600.00 [13:06:50]line Безнал.: 0.00 [13:06:50]line Место: АЗС № 108 "Партнер Нефть" [13:06:50]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [13:06:50]line СНО: Общий режим [13:06:50]line Чек 131 12.04.2024 13:06 [13:06:50]line Смена: 113 ФФД: 1.0 [13:06:50]line ЗНМ: 0300000027 [13:06:50]line РНМ: 0000138879044617 [13:06:50]line Версия ККМ: 001 [13:06:50]line ФМ: 0000000000963154 [13:06:50]line ФД: 28682 [13:06:50]line ФПД: 51318294792782 [13:06:50]line 1/tax-web-control/client/api/v1/ticket?date=20240412T130656&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28682&fm=51318294792782&tin=02508201610067®Number=0000138879044617&sum=60000 [13:06:50]written 0, free lines is 4095 [13:06:50]OFD Sender: Processing packet 28682 [packets to send 8, broken 7] [13:06:50]ProducePacketName [13:06:50]name=ofd_packets/00028682 [13:06:50]OFD Sender: To server: pG, [13:06:50]CommunicateWithHost lk.salyk.kg:30040 [13:06:50]ConnectInit lk.salyk.kg [13:06:50]Connected sock=7 [13:06:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 49 C9 08 01 90 98 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 6B 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 83 00 00 00 F4 03 04 00 F0 31 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0A 70 00 00 35 04 06 00 2E AC 78 BB 4A 4E CB AF 56 47 45 B1 69 60 [13:06:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 91 4A 47 00 C2 D9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0A 70 00 00 F4 03 04 00 9A DC 18 66 B6 04 01 00 00 71 D2 82 08 A2 57 42 EF [13:06:50]CommunicateWithHost err = 0 [13:06:50]CheckOFDResponse [13:06:50]1017 (14) - 77093643461234 [13:06:50]1041 (16) - 0000000000963154 [13:06:50]1040 (4) - 28682 [13:06:50]1012 (4) - 12.04.2024 07:02 [13:06:50]1206 (1) - 0 [13:06:50]OFD Sender: Remove packet 28682 [13:06:50]ProducePacketName [13:06:50]name=ofd_packets/00028682 [13:06:50]NVStorageDeleteData [13:06:51]Write to MH i2c: 01 00 00 75 80 F5 [13:06:51]Write i2c OK [13:06:51]MH_I2C_Read... [13:06:51]Read from MH i2c: 01 [13:06:51]MH_I2C_Read... [13:06:51]Read from MH i2c: 01 07 00 [13:06:51]MH_I2C_Read... [13:06:51]Read from MH i2c: 01 07 00 75 80 00 00 00 00 00 C6 0C CE [13:06:51]RasterBufferAndPrint [13:06:51]line [13:06:51]line [13:06:51]line [13:06:51]line [13:06:51]line [13:06:51]written 0, free lines is 3276 [13:06:51]MH_Cut [13:06:51]Write to MH i2c: D1 01 00 7C 80 01 CE [13:06:51]Write i2c OK [13:06:51]MH_I2C_Read... [13:06:51]Read from MH i2c: D1 [13:06:51]MH_I2C_Read... [13:06:51]Read from MH i2c: D1 01 00 [13:06:51]MH_I2C_Read... [13:06:51]Read from MH i2c: D1 01 00 7C 80 00 CD [13:06:51]Write to MH i2c: 01 00 00 7D 80 FD [13:06:51]Write i2c OK [13:06:51]MH_I2C_Read... [13:06:51]OFD Sender: No OFD packet to send [13:06:51]*** Cut start [13:06:51]*** Partial cut [13:06:51]*** CUTSNS_PIN = 1 [13:06:51]*** CUTSNS_PIN = 0 [13:06:52]*** Brake cut motor [13:06:52]Read from MH i2c: 01 [13:06:52]MH_I2C_Read... [13:06:52]*** Stop cut motor [13:06:52]*** Cut end [13:06:52]Read from MH i2c: 01 07 00 [13:06:52]MH_I2C_Read... [13:06:52]Read from MH i2c: 01 07 00 7D 80 00 00 00 00 00 FF 0F 12 [13:06:52]process_action close_receipt done [13:06:52]requested_data is exist [13:06:52]produce_requested_data [13:06:52]requested_item fm.sn is exist - process it [13:06:52]wFMCommunicate request_size=4 [13:06:52]MH_SAM_APDU [13:06:52]CAPDU: 80 11 00 00 [13:06:52]Write to MH i2c: E2 08 00 7E 80 80 11 00 00 00 00 00 00 78 [13:06:52]Write i2c OK [13:06:52]MH_I2C_Read... [13:06:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:06:52]Read from MH i2c: E2 [13:06:52]MH_I2C_Read... [13:06:52]Read from MH i2c: E2 17 00 [13:06:52]MH_I2C_Read... [13:06:52]Read from MH i2c: E2 17 00 7E 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 C7 [13:06:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:06:52]wFMCommunicate OK [13:06:52]requested_item fd.num is exist - process it [13:06:52]SAM_PROTO_GetFieldsCounters [13:06:52]wFMCommunicate request_size=4 [13:06:52]MH_SAM_APDU [13:06:52]CAPDU: 80 13 00 00 [13:06:52]Write to MH i2c: E2 08 00 7F 80 80 13 00 00 00 00 00 00 7B [13:06:52]Write i2c OK [13:06:52]MH_I2C_Read... [13:06:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:06:52]Read from MH i2c: E2 [13:06:52]MH_I2C_Read... [13:06:52]Read from MH i2c: E2 62 00 [13:06:52]MH_I2C_Read... [13:06:52]Read from MH i2c: E2 62 00 7F 80 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 0A 70 00 00 0E 04 04 00 71 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 2D [13:06:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 0A 70 00 00 0E 04 04 00 71 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:06:52]wFMCommunicate OK [13:06:52]SAM_PROTO_GetFieldsCounters done [13:06:52]requested_item shift.num is exist - process it [13:06:52]requested_item shift.opened is exist - process it [13:06:52]req_shift_opened [13:06:52]FM_GetShiftState [13:06:52]SAM_PROTO_GetShiftState [13:06:52]wFMCommunicate request_size=4 [13:06:52]MH_SAM_APDU [13:06:52]CAPDU: 80 13 01 00 [13:06:52]Write to MH i2c: E2 08 00 80 80 80 13 01 00 00 00 00 00 7D [13:06:52]Write i2c OK [13:06:52]MH_I2C_Read... [13:06:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:06:52]Read from MH i2c: E2 [13:06:52]MH_I2C_Read... [13:06:52]Read from MH i2c: E2 0E 00 [13:06:52]MH_I2C_Read... [13:06:52]Read from MH i2c: E2 0E 00 80 80 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 8E [13:06:52]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [13:06:52]wFMCommunicate OK [13:06:52]SAM_PROTO_GetShiftState done [13:06:52]FM_GetShiftState done [13:06:52]req_shift_opened done [13:06:52]requested_item shift.open_date is exist - process it [13:06:52]req_shift_open_date [13:06:52]req_shift_open_date done [13:06:52]produce_requested_data done [13:06:52]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28682,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [13:06:52]process_action_free close_receipt [13:06:52]json_value_free [13:06:52]json_value_free done [13:06:52]process_json_proto returns [13:06:52]Send response to host [13:06:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28682,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [13:06:52]free response buf [13:06:52]execute_script done [13:06:52]execute_script returns [13:06:52]free content buf [13:06:52]Sock 6.Close socket [13:06:52]Sock 6.Thread stoped [13:06:56]OFD Sender: No OFD packet to send [13:07:01]OFD Sender: No OFD packet to send [13:07:06]OFD Sender: No OFD packet to send [13:07:11]OFD Sender: No OFD packet to send [13:07:16]OFD Sender: No OFD packet to send [13:07:21]OFD Sender: No OFD packet to send [13:07:26]OFD Sender: No OFD packet to send [13:07:31]OFD Sender: No OFD packet to send [13:07:36]OFD Sender: No OFD packet to send [13:07:41]OFD Sender: No OFD packet to send [13:07:46]OFD Sender: No OFD packet to send [13:07:51]OFD Sender: No OFD packet to send [13:07:56]OFD Sender: No OFD packet to send [13:08:01]OFD Sender: No OFD packet to send [13:08:06]OFD Sender: No OFD packet to send [13:08:11]OFD Sender: No OFD packet to send [13:08:16]OFD Sender: No OFD packet to send [13:08:21]OFD Sender: No OFD packet to send [13:08:26]OFD Sender: No OFD packet to send [13:08:31]OFD Sender: No OFD packet to send [13:08:36]OFD Sender: No OFD packet to send [13:08:41]OFD Sender: No OFD packet to send [13:08:46]OFD Sender: No OFD packet to send [13:08:51]OFD Sender: No OFD packet to send [13:08:56]OFD Sender: No OFD packet to send [13:09:01]OFD Sender: No OFD packet to send [13:09:06]OFD Sender: No OFD packet to send [13:09:11]OFD Sender: No OFD packet to send [13:09:16]OFD Sender: No OFD packet to send [13:09:21]OFD Sender: No OFD packet to send [13:09:26]OFD Sender: No OFD packet to send [13:09:31]OFD Sender: No OFD packet to send [13:09:36]OFD Sender: No OFD packet to send [13:09:41]OFD Sender: No OFD packet to send [13:09:46]OFD Sender: No OFD packet to send [13:09:51]OFD Sender: No OFD packet to send [13:09:56]OFD Sender: No OFD packet to send [13:10:01]OFD Sender: No OFD packet to send [13:10:06]OFD Sender: No OFD packet to send [13:10:11]OFD Sender: No OFD packet to send [13:10:16]OFD Sender: No OFD packet to send [13:10:21]OFD Sender: No OFD packet to send [13:10:26]OFD Sender: No OFD packet to send [13:10:31]OFD Sender: No OFD packet to send [13:10:36]OFD Sender: No OFD packet to send [13:10:41]OFD Sender: No OFD packet to send [13:10:46]OFD Sender: No OFD packet to send [13:10:51]OFD Sender: No OFD packet to send [13:10:56]OFD Sender: No OFD packet to send [13:11:00]accept exits with 5 [13:11:00]New connection [13:11:00]New thread 3066498404 created [13:11:00]Thread 3066641764 joined [13:11:00]Waiting for new connection... [13:11:00] Sock 5.Parse request [13:11:00]Sock 5.Check first char [13:11:00]Sock 5.First char is OK [13:11:00]request: POST /json_proto HTTP/1.0 [13:11:00]Method: POST [13:11:00]URL: /json_proto [13:11:00]Method is POST - this is cgi request [13:11:00]url: /json_proto [13:11:00]query_string will be loaded in cgi processing [13:11:00]execute_cgi json_proto POST (null) [13:11:00]execute_cgi path=json_proto method=POST [13:11:00]POST find Content-Length [13:11:01]Host: 172.17.33.3:8080 [13:11:01]Content-Length: 678 [13:11:01]Content-Type: application/json [13:11:01] [13:11:01]POST finish read [13:11:01]Found Content-Length = 678 [13:11:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347016", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 10.040, "sum" : 645.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 645.00, "total" : 645.00, "payments": [ { "type": 0, "sum" : 645.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:11:01]execute_script... [13:11: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)347016", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 10.040, "sum" : 645.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 645.00, "total" : 645.00, "payments": [ { "type": 0, "sum" : 645.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:11:01]POST & json_proto [13:11:01]process_json_proto [13:11:01]json parsed OK: [13:11:01]protocol is kg_v1.0 [13:11:01]action value=close_receipt [13:11:01]process_action close_receipt [13:11:01]cmd_close_receipt [13:11:01]MH_GetDate [13:11:01]Write to MH i2c: F0 00 00 81 80 F0 [13:11:01]Write i2c OK [13:11:01]MH_I2C_Read... [13:11:01]Read from MH i2c: F0 [13:11:01]MH_I2C_Read... [13:11:01]Read from MH i2c: F0 09 00 [13:11:01]MH_I2C_Read... [13:11:01]Read from MH i2c: F0 09 00 81 80 00 ED 32 19 66 23 5B 8F 65 09 [13:11:01]GetLastDocTimeStamp 1712927216 [13:11:01]current date 1712927469 [13:11:01]FM_GetShiftState [13:11:01]SAM_PROTO_GetShiftState [13:11:01]wFMCommunicate request_size=4 [13:11:01]MH_SAM_APDU [13:11:01]CAPDU: 80 13 01 00 [13:11:01]Write to MH i2c: E2 08 00 82 80 80 13 01 00 00 00 00 00 7F [13:11:01]Write i2c OK [13:11:01]MH_I2C_Read... [13:11:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:11:01]Read from MH i2c: E2 [13:11:01]MH_I2C_Read... [13:11:01]Read from MH i2c: E2 0E 00 [13:11:01]MH_I2C_Read... [13:11:01]Read from MH i2c: E2 0E 00 82 80 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 90 [13:11:01]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [13:11:01]wFMCommunicate OK [13:11:01]SAM_PROTO_GetShiftState done [13:11:01]FM_GetShiftState done [13:11:01]opened in 1712881416 [13:11:01]opened+sec_in_day 1712967816 [13:11:01]quantity*price = 64557 [13:11:01]sum+1 = 64558 [13:11:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 645.00 Внесено: 645.00 СДАЧА: 0.00 НСП 1% : 5.71 НДС 12% : 68.56 Наличными: 645.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 132 12.04.2024 13:11 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28683 ФПД: 92137558397405 1/tax-web-control/client/api/v1/ticket?date=20240412T131109&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28683&fm=92137558397405&tin=02508201610067®Number=0000138879044617&sum=64500 [13:11:02]StoreToDocumentArchive [13:11:02]shift 113 fd 28683 [13:11:02]save to /storage/0113/doc_00028683 [13:11:02]save last doc name /storage/0113/doc_00028683 to /storage/kkm_last_doc_name [13:11:02]save OK [13:11:02]Clear old archive folders... [13:11:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:11:02]tlvbuf is 01AFA6E0 [13:11:02]SAM_PROTO_ClearQueue [13:11:02]wFMCommunicate request_size=4 [13:11:02]MH_SAM_APDU [13:11:02]CAPDU: 80 09 00 00 [13:11:02]Write to MH i2c: E2 08 00 8F 80 80 09 00 00 00 00 00 00 81 [13:11:02]Write i2c OK [13:11:02]MH_I2C_Read... [13:11:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:11:02]Read from MH i2c: E2 [13:11:02]MH_I2C_Read... [13:11:02]Read from MH i2c: E2 03 00 [13:11:02]MH_I2C_Read... [13:11:02]Read from MH i2c: E2 03 00 8F 80 00 90 00 83 [13:11:02]RAPDU: 90 00 [13:11:02]wFMCommunicate OK [13:11:02]SAM_PROTO_ClearQueue done [13:11:02]KKMCreateOFDPacket [13:11:02]OFDProtocolAddRootSTLVToBuf [13:11:02]FM_MakeSignedData [13:11:02]FM_MakeSignedData [13:11:02]SAM_PROTO_SignData [13:11:02]wFMCommunicate request_size=4 [13:11:02]MH_SAM_APDU [13:11:02]CAPDU: 80 0D 01 02 [13:11:02]Write to MH i2c: E2 08 00 90 80 80 0D 01 02 00 00 00 00 89 [13:11:02]Write i2c OK [13:11:02]MH_I2C_Read... [13:11:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:11:02]Read from MH i2c: E2 [13:11:02]MH_I2C_Read... [13:11:02]Read from MH i2c: E2 03 00 [13:11:02]MH_I2C_Read... [13:11:02]Read from MH i2c: E2 03 00 90 80 00 90 00 84 [13:11:02]RAPDU: 90 00 [13:11:02]wFMCommunicate OK [13:11:02]wFMCommunicate request_size=255 [13:11:02]MH_SAM_APDU [13:11:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 27 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 2D FC 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 FB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 1A 00 00 00 00 07 04 06 00 F4 FB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 ED 32 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0B 70 00 00 35 04 06 00 53 [13:11:02]Write to MH i2c: E2 02 01 91 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 35 FF 03 08 00 03 38 27 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 2D FC 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 FB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 1A 00 00 00 00 07 04 06 00 F4 FB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 ED 32 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0B 70 00 00 35 04 06 00 53 00 00 CD [13:11:02]Write i2c OK [13:11:02]MH_I2C_Read... [13:11:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:11:02]Read from MH i2c: E2 [13:11:02]MH_I2C_Read... [13:11:02]Read from MH i2c: E2 03 00 [13:11:02]MH_I2C_Read... [13:11:02]Read from MH i2c: E2 03 00 91 80 00 90 00 85 [13:11:02]RAPDU: 90 00 [13:11:02]wFMCommunicate OK [13:11:02]wFMCommunicate request_size=10 [13:11:02]MH_SAM_APDU [13:11:02]CAPDU: 80 0D 02 02 05 CC 72 70 51 DD [13:11:02]Write to MH i2c: E2 0D 00 92 80 80 0D 02 02 05 00 CC 72 70 51 DD 00 00 72 [13:11:02]Write i2c OK [13:11:02]MH_I2C_Read... [13:11:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:11:02]Read from MH i2c: E2 [13:11:02]MH_I2C_Read... [13:11:02]Read from MH i2c: E2 03 00 [13:11:02]MH_I2C_Read... [13:11:02]Read from MH i2c: E2 03 00 92 80 00 90 00 86 [13:11:02]RAPDU: 90 00 [13:11:02]wFMCommunicate OK [13:11:02]wFMCommunicate request_size=4 [13:11:02]MH_SAM_APDU [13:11:02]CAPDU: 80 0D 03 02 [13:11:02]Write to MH i2c: E2 08 00 93 80 80 0D 03 02 00 00 00 00 8E [13:11:02]Write i2c OK [13:11:02]MH_I2C_Read... [13:11:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:11:02]Read from MH i2c: E2 [13:11:02]MH_I2C_Read... [13:11:02]Read from MH i2c: E2 0B 00 [13:11:02]MH_I2C_Read... [13:11:02]Read from MH i2c: E2 0B 00 93 80 00 05 4B 1F CC 1E 57 82 E2 90 00 A3 [13:11:02]RAPDU: 05 4B 1F CC 1E 57 82 E2 90 00 [13:11:02]wFMCommunicate OK [13:11:02]SAM_PROTO_SignData done [13:11:02]FM_MakeSignedData done [13:11:02]CreateOFDProtocolMessage [13:11:02]wFMCommunicate request_size=4 [13:11:02]MH_SAM_APDU [13:11:02]CAPDU: 80 11 00 00 [13:11:02]Write to MH i2c: E2 08 00 94 80 80 11 00 00 00 00 00 00 8E [13:11:02]Write i2c OK [13:11:02]MH_I2C_Read... [13:11:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:11:02]Read from MH i2c: E2 [13:11:02]MH_I2C_Read... [13:11:02]Read from MH i2c: E2 17 00 [13:11:02]MH_I2C_Read... [13:11:02]Read from MH i2c: E2 17 00 94 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 DD [13:11:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:11:02]wFMCommunicate OK [13:11:02]CreateOFDProtocolMessage done [13:11:02]OFDSenderStorePacket 28683 [13:11:02]StoreOFDPacket docnum=28683 [13:11:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 FC A6 07 01 9B 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 27 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 2D FC 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 FB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 1A 00 00 00 00 07 04 06 00 F4 FB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 ED 32 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0B 70 00 00 35 04 06 00 53 CC 72 70 51 DD 05 4B 1F CC 1E 57 82 E2 [13:11:02]CheckFolder [13:11:02]dirname=/storage/ofd_packets [13:11:02]CheckFolder done [13:11:02]ProducePacketName [13:11:02]name=ofd_packets/00028683 [13:11:02]NVStorageSaveData ofd_packets/00028683 [13:11:02]File name is /storage/ofd_packets/00028683 [13:11:02]Write 301 bytes [13:11:02]NVStorageSaveData done [13:11:02]OFDSenderStorePacket done [13:11:02]KKMCreateOFDPacket done [13:11:02]NVStorageSaveData kkm_last_timestamp [13:11:02]File name is /storage/kkm_last_timestamp [13:11:02]Write 4 bytes [13:11:02]NVStorageSaveData done [13:11:02]ExternCall_PrintAddStr [13:11:02]wPrintStart [13:11:02]Write to MH i2c: 01 00 00 95 80 15 [13:11:02]Write i2c OK [13:11:02]MH_I2C_Read... [13:11:02]Read from MH i2c: 01 [13:11:02]MH_I2C_Read... [13:11:02]Read from MH i2c: 01 07 00 [13:11:02]MH_I2C_Read... [13:11:02]Read from MH i2c: 01 07 00 95 80 00 00 00 00 00 FF 0F 2A [13:11:02]RasterBufferAndPrint [13:11:02]line Счет N : (1)347016 [13:11:02]line ИНН: 02508201610067 [13:11:02]line Контрольно-Кассовый Чек [13:11:02]line ПРОДАЖА [13:11:02]line ТРК (МРК, ГНК) : 32 [13:11:02]line Товар: 2710124130 [13:11:02]line Аи-92-К-5 [13:11:02]line 10.040 * 64.30 [13:11:02]line = 645.57 [13:11:02]line НДС 12% НСП 1% [13:11:02]line > о реализуемом товаре [13:11:02]line ОКРУГЛЕНИЕ: -0.57 [13:11:02]line ИТОГО: 645.00 [13:11:02]line Внесено: 645.00 [13:11:02]line СДАЧА: 0.00 [13:11:02]line НСП 1% : 5.71 [13:11:02]line НДС 12% : 68.56 [13:11:02]line Наличными: 645.00 [13:11:02]line Безнал.: 0.00 [13:11:02]line Место: АЗС № 108 "Партнер Нефть" [13:11:02]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [13:11:02]line СНО: Общий режим [13:11:02]line Чек 132 12.04.2024 13:11 [13:11:02]line Смена: 113 ФФД: 1.0 [13:11:02]line ЗНМ: 0300000027 [13:11:02]line РНМ: 0000138879044617 [13:11:02]line Версия ККМ: 001 [13:11:02]line ФМ: 0000000000963154 [13:11:02]line ФД: 28683 [13:11:02]line ФПД: 92137558397405 [13:11:03]line 1/tax-web-control/client/api/v1/ticket?date=20240412T131109&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28683&fm=92137558397405&tin=02508201610067®Number=0000138879044617&sum=64500 [13:11:03]OFD Sender: Processing packet 28683 [packets to send 8, broken 7] [13:11:03]ProducePacketName [13:11:03]name=ofd_packets/00028683 [13:11:03]OFD Sender: To server: pG, [13:11:03]CommunicateWithHost lk.salyk.kg:30040 [13:11:03]ConnectInit lk.salyk.kg [13:11:03]written 0, free lines is 4095 [13:11:03]Connected sock=7 [13:11:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 FC A6 07 01 9B 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 27 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 2D FC 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 FB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 1A 00 00 00 00 07 04 06 00 F4 FB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 ED 32 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0B 70 00 00 35 04 06 00 53 CC 72 70 51 DD 05 4B 1F CC 1E 57 82 E2 [13:11:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 45 58 47 00 04 7D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0B 70 00 00 F4 03 04 00 97 DD 18 66 B6 04 01 00 00 28 91 EF FC 1E 8C B7 BC [13:11:03]CommunicateWithHost err = 0 [13:11:03]CheckOFDResponse [13:11:03]1017 (14) - 77093643461234 [13:11:03]1041 (16) - 0000000000963154 [13:11:03]1040 (4) - 28683 [13:11:03]1012 (4) - 12.04.2024 07:07 [13:11:03]1206 (1) - 0 [13:11:03]OFD Sender: Remove packet 28683 [13:11:03]ProducePacketName [13:11:03]name=ofd_packets/00028683 [13:11:03]NVStorageDeleteData [13:11:03]Write to MH i2c: 01 00 00 BF 80 3F [13:11:03]Write i2c OK [13:11:03]MH_I2C_Read... [13:11:03]Read from MH i2c: 01 [13:11:03]MH_I2C_Read... [13:11:03]Read from MH i2c: 01 07 00 [13:11:03]MH_I2C_Read... [13:11:03]Read from MH i2c: 01 07 00 BF 80 00 00 00 00 00 D1 0C 23 [13:11:03]RasterBufferAndPrint [13:11:03]line [13:11:03]line [13:11:03]line [13:11:03]line [13:11:03]line [13:11:03]written 0, free lines is 3288 [13:11:03]MH_Cut [13:11:03]Write to MH i2c: D1 01 00 C6 80 01 18 [13:11:03]Write i2c OK [13:11:03]MH_I2C_Read... [13:11:03]Read from MH i2c: D1 [13:11:03]MH_I2C_Read... [13:11:03]Read from MH i2c: D1 01 00 [13:11:03]MH_I2C_Read... [13:11:03]Read from MH i2c: D1 01 00 C6 80 00 17 [13:11:03]Write to MH i2c: 01 00 00 C7 80 47 [13:11:03]Write i2c OK [13:11:03]MH_I2C_Read... [13:11:03]OFD Sender: No OFD packet to send [13:11:04]*** Cut start [13:11:04]*** Partial cut [13:11:04]*** CUTSNS_PIN = 1 [13:11:04]*** CUTSNS_PIN = 0 [13:11:04]*** Brake cut motor [13:11:04]Read from MH i2c: 01 [13:11:04]MH_I2C_Read... [13:11:04]*** Stop cut motor [13:11:04]*** Cut end [13:11:04]Read from MH i2c: 01 07 00 [13:11:04]MH_I2C_Read... [13:11:04]Read from MH i2c: 01 07 00 C7 80 00 00 00 00 00 FF 0F 5C [13:11:04]process_action close_receipt done [13:11:04]requested_data is exist [13:11:04]produce_requested_data [13:11:04]requested_item fm.sn is exist - process it [13:11:04]wFMCommunicate request_size=4 [13:11:04]MH_SAM_APDU [13:11:04]CAPDU: 80 11 00 00 [13:11:04]Write to MH i2c: E2 08 00 C8 80 80 11 00 00 00 00 00 00 C2 [13:11:04]Write i2c OK [13:11:04]MH_I2C_Read... [13:11:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:11:04]Read from MH i2c: E2 [13:11:04]MH_I2C_Read... [13:11:04]Read from MH i2c: E2 17 00 [13:11:04]MH_I2C_Read... [13:11:04]Read from MH i2c: E2 17 00 C8 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 11 [13:11:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:11:04]wFMCommunicate OK [13:11:04]requested_item fd.num is exist - process it [13:11:04]SAM_PROTO_GetFieldsCounters [13:11:04]wFMCommunicate request_size=4 [13:11:04]MH_SAM_APDU [13:11:04]CAPDU: 80 13 00 00 [13:11:04]Write to MH i2c: E2 08 00 C9 80 80 13 00 00 00 00 00 00 C5 [13:11:04]Write i2c OK [13:11:04]MH_I2C_Read... [13:11:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:11:05]Read from MH i2c: E2 [13:11:05]MH_I2C_Read... [13:11:05]Read from MH i2c: E2 62 00 [13:11:05]MH_I2C_Read... [13:11:05]Read from MH i2c: E2 62 00 C9 80 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 0B 70 00 00 0E 04 04 00 71 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 7B [13:11:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 0B 70 00 00 0E 04 04 00 71 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:11:05]wFMCommunicate OK [13:11:05]SAM_PROTO_GetFieldsCounters done [13:11:05]requested_item shift.num is exist - process it [13:11:05]requested_item shift.opened is exist - process it [13:11:05]req_shift_opened [13:11:05]FM_GetShiftState [13:11:05]SAM_PROTO_GetShiftState [13:11:05]wFMCommunicate request_size=4 [13:11:05]MH_SAM_APDU [13:11:05]CAPDU: 80 13 01 00 [13:11:05]Write to MH i2c: E2 08 00 CA 80 80 13 01 00 00 00 00 00 C7 [13:11:05]Write i2c OK [13:11:05]MH_I2C_Read... [13:11:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:11:05]Read from MH i2c: E2 [13:11:05]MH_I2C_Read... [13:11:05]Read from MH i2c: E2 0E 00 [13:11:05]MH_I2C_Read... [13:11:05]Read from MH i2c: E2 0E 00 CA 80 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 D8 [13:11:05]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [13:11:05]wFMCommunicate OK [13:11:05]SAM_PROTO_GetShiftState done [13:11:05]FM_GetShiftState done [13:11:05]req_shift_opened done [13:11:05]requested_item shift.open_date is exist - process it [13:11:05]req_shift_open_date [13:11:05]req_shift_open_date done [13:11:05]produce_requested_data done [13:11:05]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28683,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [13:11:05]process_action_free close_receipt [13:11:05]json_value_free [13:11:05]json_value_free done [13:11:05]process_json_proto returns [13:11:05]Send response to host [13:11:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28683,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [13:11:05]free response buf [13:11:05]execute_script done [13:11:05]execute_script returns [13:11:05]free content buf [13:11:05]Sock 5.Close socket [13:11:05]Sock 5.Thread stoped [13:11:08]OFD Sender: No OFD packet to send [13:11:13]OFD Sender: No OFD packet to send [13:11:18]OFD Sender: No OFD packet to send [13:11:23]OFD Sender: No OFD packet to send [13:11:28]OFD Sender: No OFD packet to send [13:11:33]OFD Sender: No OFD packet to send [13:11:38]OFD Sender: No OFD packet to send [13:11:43]OFD Sender: No OFD packet to send [13:11:48]OFD Sender: No OFD packet to send [13:11:53]OFD Sender: No OFD packet to send [13:11:58]OFD Sender: No OFD packet to send [13:12:03]OFD Sender: No OFD packet to send [13:12:08]OFD Sender: No OFD packet to send [13:12:13]OFD Sender: No OFD packet to send [13:12:18]OFD Sender: No OFD packet to send [13:12:23]OFD Sender: No OFD packet to send [13:12:28]OFD Sender: No OFD packet to send [13:12:33]OFD Sender: No OFD packet to send [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:04]accept exits with 6 [13:14:04]New connection [13:14:04]New thread 3066641764 created [13:14:04]Thread 3066498404 joined [13:14:04]Waiting for new connection... [13:14:04] Sock 6.Parse request [13:14:04]Sock 6.Check first char [13:14:04]Sock 6.First char is OK [13:14:04]request: POST /json_proto HTTP/1.0 [13:14:04]Method: POST [13:14:04]URL: /json_proto [13:14:04]Method is POST - this is cgi request [13:14:04]url: /json_proto [13:14:04]query_string will be loaded in cgi processing [13:14:04]execute_cgi json_proto POST (null) [13:14:04]execute_cgi path=json_proto method=POST [13:14:04]POST find Content-Length [13:14:04]Host: 172.17.33.3:8080 [13:14:04]Content-Length: 685 [13:14:04]Content-Type: application/json [13:14:04] [13:14:04]POST finish read [13:14:04]Found Content-Length = 685 [13:14:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347017", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 41.190, "sum" : 1355.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1355.00, "total" : 1355.00, "payments": [ { "type": 0, "sum" : 1355.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:14:04]execute_script... [13:14: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)347017", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 41.190, "sum" : 1355.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1355.00, "total" : 1355.00, "payments": [ { "type": 0, "sum" : 1355.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:14:04]POST & json_proto [13:14:04]process_json_proto [13:14:04]json parsed OK: [13:14:04]protocol is kg_v1.0 [13:14:04]action value=close_receipt [13:14:04]process_action close_receipt [13:14:04]cmd_close_receipt [13:14:04]MH_GetDate [13:14:04]Write to MH i2c: F0 00 00 CB 80 3A [13:14:04]Write i2c OK [13:14:04]MH_I2C_Read... [13:14:04]Read from MH i2c: F0 [13:14:04]MH_I2C_Read... [13:14:04]Read from MH i2c: F0 09 00 [13:14:04]MH_I2C_Read... [13:14:04]Read from MH i2c: F0 09 00 CB 80 00 A4 33 19 66 23 5B 8F 65 0B [13:14:04]GetLastDocTimeStamp 1712927469 [13:14:04]current date 1712927652 [13:14:04]FM_GetShiftState [13:14:04]SAM_PROTO_GetShiftState [13:14:04]wFMCommunicate request_size=4 [13:14:04]MH_SAM_APDU [13:14:04]CAPDU: 80 13 01 00 [13:14:04]Write to MH i2c: E2 08 00 CC 80 80 13 01 00 00 00 00 00 C9 [13:14:04]Write i2c OK [13:14:04]MH_I2C_Read... [13:14:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:14:04]Read from MH i2c: E2 [13:14:04]MH_I2C_Read... [13:14:04]Read from MH i2c: E2 0E 00 [13:14:04]MH_I2C_Read... [13:14:04]Read from MH i2c: E2 0E 00 CC 80 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 DA [13:14:04]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [13:14:04]wFMCommunicate OK [13:14:04]SAM_PROTO_GetShiftState done [13:14:04]FM_GetShiftState done [13:14:04]opened in 1712881416 [13:14:04]opened+sec_in_day 1712967816 [13:14:04]quantity*price = 135515 [13:14:04]sum+1 = 135516 [13:14:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 1355.00 Внесено: 1355.00 СДАЧА: 0.00 НСП 1% : 11.99 НДС 12% : 143.91 Наличными: 1355.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 133 12.04.2024 13:14 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28684 ФПД: 123691111144369 1/tax-web-control/client/api/v1/ticket?date=20240412T131412&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28684&fm=123691111144369&tin=02508201610067®Number=0000138879044617&sum=135500 [13:14:05]StoreToDocumentArchive [13:14:05]shift 113 fd 28684 [13:14:05]save to /storage/0113/doc_00028684 [13:14:05]save last doc name /storage/0113/doc_00028684 to /storage/kkm_last_doc_name [13:14:05]save OK [13:14:05]Clear old archive folders... [13:14:05]ProcessDocumentItem done err = 0, tmpTLVsize=250 [13:14:05]tlvbuf is 01B55050 [13:14:05]SAM_PROTO_ClearQueue [13:14:05]wFMCommunicate request_size=4 [13:14:05]MH_SAM_APDU [13:14:05]CAPDU: 80 09 00 00 [13:14:05]Write to MH i2c: E2 08 00 D9 80 80 09 00 00 00 00 00 00 CB [13:14:05]Write i2c OK [13:14:05]MH_I2C_Read... [13:14:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:14:05]Read from MH i2c: E2 [13:14:05]MH_I2C_Read... [13:14:05]Read from MH i2c: E2 03 00 [13:14:05]MH_I2C_Read... [13:14:05]Read from MH i2c: E2 03 00 D9 80 00 90 00 CD [13:14:05]RAPDU: 90 00 [13:14:05]wFMCommunicate OK [13:14:05]SAM_PROTO_ClearQueue done [13:14:05]KKMCreateOFDPacket [13:14:05]OFDProtocolAddRootSTLVToBuf [13:14:05]FM_MakeSignedData [13:14:05]FM_MakeSignedData [13:14:05]SAM_PROTO_SignData [13:14:05]wFMCommunicate request_size=4 [13:14:05]MH_SAM_APDU [13:14:05]CAPDU: 80 0D 01 02 [13:14:05]Write to MH i2c: E2 08 00 DA 80 80 0D 01 02 00 00 00 00 D3 [13:14:05]Write i2c OK [13:14:05]MH_I2C_Read... [13:14:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:14:05]Read from MH i2c: E2 [13:14:05]MH_I2C_Read... [13:14:05]Read from MH i2c: E2 03 00 [13:14:05]MH_I2C_Read... [13:14:05]Read from MH i2c: E2 03 00 DA 80 00 90 00 CE [13:14:05]RAPDU: 90 00 [13:14:05]wFMCommunicate OK [13:14:05]wFMCommunicate request_size=255 [13:14:05]MH_SAM_APDU [13:14:05]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 E6 A0 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 5B 11 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 11 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AF 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 38 00 00 00 00 07 04 06 00 4C 11 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 A4 33 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0C 70 00 00 35 04 06 00 70 7F [13:14:05]Write to MH i2c: E2 02 01 DB 80 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 E6 A0 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 5B 11 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 11 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AF 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 38 00 00 00 00 07 04 06 00 4C 11 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 A4 33 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0C 70 00 00 35 04 06 00 70 7F 00 00 1B [13:14:05]Write i2c OK [13:14:05]MH_I2C_Read... [13:14:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:14:05]Read from MH i2c: E2 [13:14:05]MH_I2C_Read... [13:14:05]Read from MH i2c: E2 03 00 [13:14:05]MH_I2C_Read... [13:14:05]Read from MH i2c: E2 03 00 DB 80 00 90 00 CF [13:14:05]RAPDU: 90 00 [13:14:05]wFMCommunicate OK [13:14:05]wFMCommunicate request_size=9 [13:14:05]MH_SAM_APDU [13:14:05]CAPDU: 80 0D 02 02 04 14 BD DB B1 [13:14:05]Write to MH i2c: E2 0C 00 DC 80 80 0D 02 02 04 00 14 BD DB B1 00 00 3B [13:14:05]Write i2c OK [13:14:05]MH_I2C_Read... [13:14:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:14:05]Read from MH i2c: E2 [13:14:05]MH_I2C_Read... [13:14:05]Read from MH i2c: E2 03 00 [13:14:05]MH_I2C_Read... [13:14:05]Read from MH i2c: E2 03 00 DC 80 00 90 00 D0 [13:14:05]RAPDU: 90 00 [13:14:05]wFMCommunicate OK [13:14:05]wFMCommunicate request_size=4 [13:14:05]MH_SAM_APDU [13:14:05]CAPDU: 80 0D 03 02 [13:14:05]Write to MH i2c: E2 08 00 DD 80 80 0D 03 02 00 00 00 00 D8 [13:14:05]Write i2c OK [13:14:05]MH_I2C_Read... [13:14:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:14:05]Read from MH i2c: E2 [13:14:05]MH_I2C_Read... [13:14:05]Read from MH i2c: E2 0B 00 [13:14:05]MH_I2C_Read... [13:14:05]Read from MH i2c: E2 0B 00 DD 80 00 03 D1 96 8D 74 FE 23 EE 90 00 53 [13:14:05]RAPDU: 03 D1 96 8D 74 FE 23 EE 90 00 [13:14:05]wFMCommunicate OK [13:14:05]SAM_PROTO_SignData done [13:14:05]FM_MakeSignedData done [13:14:05]CreateOFDProtocolMessage [13:14:05]wFMCommunicate request_size=4 [13:14:05]MH_SAM_APDU [13:14:05]CAPDU: 80 11 00 00 [13:14:05]Write to MH i2c: E2 08 00 DE 80 80 11 00 00 00 00 00 00 D8 [13:14:05]Write i2c OK [13:14:05]MH_I2C_Read... [13:14:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:14:06]Read from MH i2c: E2 [13:14:06]MH_I2C_Read... [13:14:06]Read from MH i2c: E2 17 00 [13:14:06]MH_I2C_Read... [13:14:06]Read from MH i2c: E2 17 00 DE 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 27 [13:14:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:14:06]wFMCommunicate OK [13:14:06]CreateOFDProtocolMessage done [13:14:06]OFDSenderStorePacket 28684 [13:14:06]StoreOFDPacket docnum=28684 [13:14:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 34 11 06 01 37 BF 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 E6 A0 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 5B 11 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 11 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AF 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 38 00 00 00 00 07 04 06 00 4C 11 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 A4 33 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0C 70 00 00 35 04 06 00 70 7F 14 BD DB B1 03 D1 96 8D 74 FE 23 EE [13:14:06]CheckFolder [13:14:06]dirname=/storage/ofd_packets [13:14:06]CheckFolder done [13:14:06]ProducePacketName [13:14:06]name=ofd_packets/00028684 [13:14:06]NVStorageSaveData ofd_packets/00028684 [13:14:06]File name is /storage/ofd_packets/00028684 [13:14:06]Write 300 bytes [13:14:06]NVStorageSaveData done [13:14:06]OFDSenderStorePacket done [13:14:06]KKMCreateOFDPacket done [13:14:06]NVStorageSaveData kkm_last_timestamp [13:14:06]File name is /storage/kkm_last_timestamp [13:14:06]Write 4 bytes [13:14:06]NVStorageSaveData done [13:14:06]ExternCall_PrintAddStr [13:14:06]wPrintStart [13:14:06]Write to MH i2c: 01 00 00 DF 80 5F [13:14:06]Write i2c OK [13:14:06]MH_I2C_Read... [13:14:06]Read from MH i2c: 01 [13:14:06]MH_I2C_Read... [13:14:06]Read from MH i2c: 01 07 00 [13:14:06]MH_I2C_Read... [13:14:06]Read from MH i2c: 01 07 00 DF 80 00 00 00 00 00 FF 0F 74 [13:14:06]RasterBufferAndPrint [13:14:06]line Счет N : (1)347017 [13:14:06]line ИНН: 02508201610067 [13:14:06]line Контрольно-Кассовый Чек [13:14:06]line ПРОДАЖА [13:14:06]line ТРК (МРК, ГНК) : 71 [13:14:06]line Товар: 2711129700 [13:14:06]line ГАЗ-К-5 [13:14:06]line 41.190 * 32.90 [13:14:06]line = 1355.15 [13:14:06]line НДС 12% НСП 1% [13:14:06]line > о реализуемом товаре [13:14:06]line ОКРУГЛЕНИЕ: -0.15 [13:14:06]line ИТОГО: 1355.00 [13:14:06]line Внесено: 1355.00 [13:14:06]line СДАЧА: 0.00 [13:14:06]line НСП 1% : 11.99 [13:14:06]line НДС 12% : 143.91 [13:14:06]line Наличными: 1355.00 [13:14:06]line Безнал.: 0.00 [13:14:06]line Место: АЗС № 108 "Партнер Нефть" [13:14:06]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [13:14:06]line СНО: Общий режим [13:14:06]line Чек 133 12.04.2024 13:14 [13:14:06]line Смена: 113 ФФД: 1.0 [13:14:06]line ЗНМ: 0300000027 [13:14:06]line РНМ: 0000138879044617 [13:14:06]line Версия ККМ: 001 [13:14:06]line ФМ: 0000000000963154 [13:14:06]line ФД: 28684 [13:14:06]line ФПД: 123691111144369 [13:14:06]line 1/tax-web-control/client/api/v1/ticket?date=20240412T131412&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28684&fm=123691111144369&tin=02508201610067®Number=0000138879044617&sum=135500 [13:14:06]OFD Sender: Processing packet 28684 [packets to send 8, broken 7] [13:14:06]ProducePacketName [13:14:06]name=ofd_packets/00028684 [13:14:06]OFD Sender: To server: pG, [13:14:06]CommunicateWithHost lk.salyk.kg:30040 [13:14:06]ConnectInit lk.salyk.kg [13:14:06]written 0, free lines is 4095 [13:14:06]Connected sock=5 [13:14:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 34 11 06 01 37 BF 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 E6 A0 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 5B 11 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 11 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AF 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 38 00 00 00 00 07 04 06 00 4C 11 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 A4 33 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0C 70 00 00 35 04 06 00 70 7F 14 BD DB B1 03 D1 96 8D 74 FE 23 EE [13:14:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 4C EA 47 00 D4 32 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0C 70 00 00 F4 03 04 00 4E DE 18 66 B6 04 01 00 00 66 22 44 91 A3 DF 57 7F [13:14:06]CommunicateWithHost err = 0 [13:14:06]CheckOFDResponse [13:14:06]1017 (14) - 77093643461234 [13:14:06]1041 (16) - 0000000000963154 [13:14:06]1040 (4) - 28684 [13:14:06]1012 (4) - 12.04.2024 07:10 [13:14:06]1206 (1) - 0 [13:14:06]OFD Sender: Remove packet 28684 [13:14:06]ProducePacketName [13:14:06]name=ofd_packets/00028684 [13:14:06]NVStorageDeleteData [13:14:06]Write to MH i2c: 01 00 00 09 81 8A [13:14:06]Write i2c OK [13:14:06]MH_I2C_Read... [13:14:06]Read from MH i2c: 01 [13:14:06]MH_I2C_Read... [13:14:06]Read from MH i2c: 01 07 00 [13:14:06]MH_I2C_Read... [13:14:06]Read from MH i2c: 01 07 00 09 81 00 00 00 00 00 CD 0C 6A [13:14:06]RasterBufferAndPrint [13:14:06]line [13:14:06]line [13:14:06]line [13:14:06]line [13:14:06]line [13:14:06]written 0, free lines is 3283 [13:14:06]MH_Cut [13:14:06]Write to MH i2c: D1 01 00 10 81 01 63 [13:14:06]Write i2c OK [13:14:06]MH_I2C_Read... [13:14:06]Read from MH i2c: D1 [13:14:06]MH_I2C_Read... [13:14:06]Read from MH i2c: D1 01 00 [13:14:06]MH_I2C_Read... [13:14:06]Read from MH i2c: D1 01 00 10 81 00 62 [13:14:06]Write to MH i2c: 01 00 00 11 81 92 [13:14:06]Write i2c OK [13:14:06]MH_I2C_Read... [13:14:07]OFD Sender: No OFD packet to send [13:14:07]*** Cut start [13:14:07]*** Partial cut [13:14:07]*** CUTSNS_PIN = 1 [13:14:07]*** CUTSNS_PIN = 0 [13:14:07]*** Brake cut motor [13:14:08]Read from MH i2c: 01 [13:14:08]MH_I2C_Read... [13:14:08]*** Stop cut motor [13:14:08]*** Cut end [13:14:08]Read from MH i2c: 01 07 00 [13:14:08]MH_I2C_Read... [13:14:08]Read from MH i2c: 01 07 00 11 81 00 00 00 00 00 FF 0F A7 [13:14:08]process_action close_receipt done [13:14:08]requested_data is exist [13:14:08]produce_requested_data [13:14:08]requested_item fm.sn is exist - process it [13:14:08]wFMCommunicate request_size=4 [13:14:08]MH_SAM_APDU [13:14:08]CAPDU: 80 11 00 00 [13:14:08]Write to MH i2c: E2 08 00 12 81 80 11 00 00 00 00 00 00 0D [13:14:08]Write i2c OK [13:14:08]MH_I2C_Read... [13:14:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:14:08]Read from MH i2c: E2 [13:14:08]MH_I2C_Read... [13:14:08]Read from MH i2c: E2 17 00 [13:14:08]MH_I2C_Read... [13:14:08]Read from MH i2c: E2 17 00 12 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 5C [13:14:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:14:08]wFMCommunicate OK [13:14:08]requested_item fd.num is exist - process it [13:14:08]SAM_PROTO_GetFieldsCounters [13:14:08]wFMCommunicate request_size=4 [13:14:08]MH_SAM_APDU [13:14:08]CAPDU: 80 13 00 00 [13:14:08]Write to MH i2c: E2 08 00 13 81 80 13 00 00 00 00 00 00 10 [13:14:08]Write i2c OK [13:14:08]MH_I2C_Read... [13:14:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:14:08]Read from MH i2c: E2 [13:14:08]MH_I2C_Read... [13:14:08]Read from MH i2c: E2 62 00 [13:14:08]MH_I2C_Read... [13:14:08]Read from MH i2c: E2 62 00 13 81 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 0C 70 00 00 0E 04 04 00 71 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 CA [13:14:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 0C 70 00 00 0E 04 04 00 71 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:14:08]wFMCommunicate OK [13:14:08]SAM_PROTO_GetFieldsCounters done [13:14:08]requested_item shift.num is exist - process it [13:14:08]requested_item shift.opened is exist - process it [13:14:08]req_shift_opened [13:14:08]FM_GetShiftState [13:14:08]SAM_PROTO_GetShiftState [13:14:08]wFMCommunicate request_size=4 [13:14:08]MH_SAM_APDU [13:14:08]CAPDU: 80 13 01 00 [13:14:08]Write to MH i2c: E2 08 00 14 81 80 13 01 00 00 00 00 00 12 [13:14:08]Write i2c OK [13:14:08]MH_I2C_Read... [13:14:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:14:08]Read from MH i2c: E2 [13:14:08]MH_I2C_Read... [13:14:08]Read from MH i2c: E2 0E 00 [13:14:08]MH_I2C_Read... [13:14:08]Read from MH i2c: E2 0E 00 14 81 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 23 [13:14:08]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [13:14:08]wFMCommunicate OK [13:14:08]SAM_PROTO_GetShiftState done [13:14:08]FM_GetShiftState done [13:14:08]req_shift_opened done [13:14:08]requested_item shift.open_date is exist - process it [13:14:08]req_shift_open_date [13:14:08]req_shift_open_date done [13:14:08]produce_requested_data done [13:14:08]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28684,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [13:14:08]process_action_free close_receipt [13:14:08]json_value_free [13:14:08]json_value_free done [13:14:08]process_json_proto returns [13:14:08]Send response to host [13:14:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28684,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [13:14:08]free response buf [13:14:08]execute_script done [13:14:08]execute_script returns [13:14:08]free content buf [13:14:08]Sock 6.Close socket [13:14:08]Sock 6.Thread stoped [13:14:12]OFD Sender: No OFD packet to send [13:14:17]OFD Sender: No OFD packet to send [13:14:22]OFD Sender: No OFD packet to send [13:14:27]OFD Sender: No OFD packet to send [13:14:32]OFD Sender: No OFD packet to send [13:14:37]OFD Sender: No OFD packet to send [13:14:42]OFD Sender: No OFD packet to send [13:14:47]OFD Sender: No OFD packet to send [13:14:52]OFD Sender: No OFD packet to send [13:14:57]OFD Sender: No OFD packet to send [13:15:02]OFD Sender: No OFD packet to send [13:15:07]OFD Sender: No OFD packet to send [13:15:12]OFD Sender: No OFD packet to send [13:15:17]OFD Sender: No OFD packet to send [13:15:22]OFD Sender: No OFD packet to send [13:15:27]OFD Sender: No OFD packet to send [13:15:32]OFD Sender: No OFD packet to send [13:15:37]OFD Sender: No OFD packet to send [13:15:42]OFD Sender: No OFD packet to send [13:15:47]OFD Sender: No OFD packet to send [13:15:52]OFD Sender: No OFD packet to send [13:15:57]OFD Sender: No OFD packet to send [13:16:02]OFD Sender: No OFD packet to send [13:16:07]OFD Sender: No OFD packet to send [13:16:12]OFD Sender: No OFD packet to send [13:16:17]OFD Sender: No OFD packet to send [13:16:22]OFD Sender: No OFD packet to send [13:16:27]OFD Sender: No OFD packet to send [13:16:32]OFD Sender: No OFD packet to send [13:16:37]OFD Sender: No OFD packet to send [13:16:42]OFD Sender: No OFD packet to send [13:16:47]OFD Sender: No OFD packet to send [13:16:52]OFD Sender: No OFD packet to send [13:16:57]OFD Sender: No OFD packet to send [13:17:02]OFD Sender: No OFD packet to send [13:17:07]OFD Sender: No OFD packet to send [13:17:12]OFD Sender: No OFD packet to send [13:17:17]OFD Sender: No OFD packet to send [13:17:22]OFD Sender: No OFD packet to send [13:17:27]OFD Sender: No OFD packet to send [13:17:32]OFD Sender: No OFD packet to send [13:17:37]OFD Sender: No OFD packet to send [13:17:42]OFD Sender: No OFD packet to send [13:17:47]OFD Sender: No OFD packet to send [13:17:52]OFD Sender: No OFD packet to send [13:17:55]accept exits with 7 [13:17:55]New connection [13:17:55]New thread 3066498404 created [13:17:55]Thread 3066641764 joined [13:17:55]Waiting for new connection... [13:17:55] Sock 7.Parse request [13:17:55]Sock 7.Check first char [13:17:55]Sock 7.First char is OK [13:17:55]request: POST /json_proto HTTP/1.0 [13:17:55]Method: POST [13:17:55]URL: /json_proto [13:17:55]Method is POST - this is cgi request [13:17:55]url: /json_proto [13:17:55]query_string will be loaded in cgi processing [13:17:55]execute_cgi json_proto POST (null) [13:17:55]execute_cgi path=json_proto method=POST [13:17:55]POST find Content-Length [13:17:55]Host: 172.17.33.3:8080 [13:17:55]Content-Length: 674 [13:17:55]Content-Type: application/json [13:17:55] [13:17:55]POST finish read [13:17:55]Found Content-Length = 674 [13:17:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347019", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 6.910, "sum" : 500.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:17:55]execute_script... [13:17: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)347019", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 6.910, "sum" : 500.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:17:55]POST & json_proto [13:17:55]process_json_proto [13:17:55]json parsed OK: [13:17:55]protocol is kg_v1.0 [13:17:55]action value=close_receipt [13:17:55]process_action close_receipt [13:17:55]cmd_close_receipt [13:17:55]MH_GetDate [13:17:55]Write to MH i2c: F0 00 00 15 81 85 [13:17:55]Write i2c OK [13:17:55]MH_I2C_Read... [13:17:55]Read from MH i2c: F0 [13:17:55]MH_I2C_Read... [13:17:55]Read from MH i2c: F0 09 00 [13:17:55]MH_I2C_Read... [13:17:55]Read from MH i2c: F0 09 00 15 81 00 8B 34 19 66 23 5B 8F 65 3E [13:17:55]GetLastDocTimeStamp 1712927652 [13:17:55]current date 1712927883 [13:17:55]FM_GetShiftState [13:17:55]SAM_PROTO_GetShiftState [13:17:55]wFMCommunicate request_size=4 [13:17:55]MH_SAM_APDU [13:17:55]CAPDU: 80 13 01 00 [13:17:55]Write to MH i2c: E2 08 00 16 81 80 13 01 00 00 00 00 00 14 [13:17:55]Write i2c OK [13:17:55]MH_I2C_Read... [13:17:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:17:55]Read from MH i2c: E2 [13:17:55]MH_I2C_Read... [13:17:55]Read from MH i2c: E2 0E 00 [13:17:55]MH_I2C_Read... [13:17:55]Read from MH i2c: E2 0E 00 16 81 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 25 [13:17:55]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [13:17:55]wFMCommunicate OK [13:17:55]SAM_PROTO_GetShiftState done [13:17:55]FM_GetShiftState done [13:17:55]opened in 1712881416 [13:17:55]opened+sec_in_day 1712967816 [13:17:55]quantity*price = 50028 [13:17:55]sum+1 = 50029 [13:17:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 134 12.04.2024 13:18 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28685 ФПД: 209172972468660 1/tax-web-control/client/api/v1/ticket?date=20240412T131803&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28685&fm=209172972468660&tin=02508201610067®Number=0000138879044617&sum=50000 [13:17:56]StoreToDocumentArchive [13:17:56]shift 113 fd 28685 [13:17:56]save to /storage/0113/doc_00028685 [13:17:56]save last doc name /storage/0113/doc_00028685 to /storage/kkm_last_doc_name [13:17:56]save OK [13:17:56]Clear old archive folders... [13:17:56]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:17:56]tlvbuf is 01BB4BA0 [13:17:56]SAM_PROTO_ClearQueue [13:17:56]wFMCommunicate request_size=4 [13:17:56]MH_SAM_APDU [13:17:56]CAPDU: 80 09 00 00 [13:17:56]Write to MH i2c: E2 08 00 23 81 80 09 00 00 00 00 00 00 16 [13:17:56]Write i2c OK [13:17:56]MH_I2C_Read... [13:17:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:17:56]Read from MH i2c: E2 [13:17:56]MH_I2C_Read... [13:17:56]Read from MH i2c: E2 03 00 [13:17:56]MH_I2C_Read... [13:17:56]Read from MH i2c: E2 03 00 23 81 00 90 00 18 [13:17:56]RAPDU: 90 00 [13:17:56]wFMCommunicate OK [13:17:56]SAM_PROTO_ClearQueue done [13:17:56]KKMCreateOFDPacket [13:17:56]OFDProtocolAddRootSTLVToBuf [13:17:56]FM_MakeSignedData [13:17:56]FM_MakeSignedData [13:17:56]SAM_PROTO_SignData [13:17:56]wFMCommunicate request_size=4 [13:17:56]MH_SAM_APDU [13:17:56]CAPDU: 80 0D 01 02 [13:17:56]Write to MH i2c: E2 08 00 24 81 80 0D 01 02 00 00 00 00 1E [13:17:56]Write i2c OK [13:17:56]MH_I2C_Read... [13:17:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:17:56]Read from MH i2c: E2 [13:17:56]MH_I2C_Read... [13:17:56]Read from MH i2c: E2 03 00 [13:17:56]MH_I2C_Read... [13:17:56]Read from MH i2c: E2 03 00 24 81 00 90 00 19 [13:17:56]RAPDU: 90 00 [13:17:56]wFMCommunicate OK [13:17:56]wFMCommunicate request_size=255 [13:17:56]MH_SAM_APDU [13:17: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 35 FF 03 08 00 03 FE 1A 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 6C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 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 8B 34 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0D 70 00 00 35 04 06 00 BE 3D E0 B8 [13:17:56]Write to MH i2c: E2 02 01 25 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 35 FF 03 08 00 03 FE 1A 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 6C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 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 8B 34 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0D 70 00 00 35 04 06 00 BE 3D E0 B8 00 00 3F [13:17:56]Write i2c OK [13:17:56]MH_I2C_Read... [13:17:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:17:57]Read from MH i2c: E2 [13:17:57]MH_I2C_Read... [13:17:57]Read from MH i2c: E2 03 00 [13:17:57]MH_I2C_Read... [13:17:57]Read from MH i2c: E2 03 00 25 81 00 90 00 1A [13:17:57]RAPDU: 90 00 [13:17:57]wFMCommunicate OK [13:17:57]wFMCommunicate request_size=7 [13:17:57]MH_SAM_APDU [13:17:57]CAPDU: 80 0D 02 02 02 79 B4 [13:17:57]Write to MH i2c: E2 0A 00 26 81 80 0D 02 02 02 00 79 B4 00 00 52 [13:17:57]Write i2c OK [13:17:57]MH_I2C_Read... [13:17:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:17:57]Read from MH i2c: E2 [13:17:57]MH_I2C_Read... [13:17:57]Read from MH i2c: E2 03 00 [13:17:57]MH_I2C_Read... [13:17:57]Read from MH i2c: E2 03 00 26 81 00 90 00 1B [13:17:57]RAPDU: 90 00 [13:17:57]wFMCommunicate OK [13:17:57]wFMCommunicate request_size=4 [13:17:57]MH_SAM_APDU [13:17:57]CAPDU: 80 0D 03 02 [13:17:57]Write to MH i2c: E2 08 00 27 81 80 0D 03 02 00 00 00 00 23 [13:17:57]Write i2c OK [13:17:57]MH_I2C_Read... [13:17:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:17:57]Read from MH i2c: E2 [13:17:57]MH_I2C_Read... [13:17:57]Read from MH i2c: E2 0B 00 [13:17:57]MH_I2C_Read... [13:17:57]Read from MH i2c: E2 0B 00 27 81 00 AA AB E2 FD 3E 3D FB 30 90 00 FE [13:17:57]RAPDU: AA AB E2 FD 3E 3D FB 30 90 00 [13:17:57]wFMCommunicate OK [13:17:57]SAM_PROTO_SignData done [13:17:57]FM_MakeSignedData done [13:17:57]CreateOFDProtocolMessage [13:17:57]wFMCommunicate request_size=4 [13:17:57]MH_SAM_APDU [13:17:57]CAPDU: 80 11 00 00 [13:17:57]Write to MH i2c: E2 08 00 28 81 80 11 00 00 00 00 00 00 23 [13:17:57]Write i2c OK [13:17:57]MH_I2C_Read... [13:17:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:17:57]Read from MH i2c: E2 [13:17:57]MH_I2C_Read... [13:17:57]Read from MH i2c: E2 17 00 [13:17:57]MH_I2C_Read... [13:17:57]Read from MH i2c: E2 17 00 28 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 72 [13:17:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:17:57]wFMCommunicate OK [13:17:57]CreateOFDProtocolMessage done [13:17:57]OFDSenderStorePacket 28685 [13:17:57]StoreOFDPacket docnum=28685 [13:17:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 52 5E 04 01 86 04 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FE 1A 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 6C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 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 8B 34 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0D 70 00 00 35 04 06 00 BE 3D E0 B8 79 B4 AA AB E2 FD 3E 3D FB 30 [13:17:57]CheckFolder [13:17:57]dirname=/storage/ofd_packets [13:17:57]CheckFolder done [13:17:57]ProducePacketName [13:17:57]name=ofd_packets/00028685 [13:17:57]NVStorageSaveData ofd_packets/00028685 [13:17:57]File name is /storage/ofd_packets/00028685 [13:17:57]Write 298 bytes [13:17:57]NVStorageSaveData done [13:17:57]OFDSenderStorePacket done [13:17:57]KKMCreateOFDPacket done [13:17:57]NVStorageSaveData kkm_last_timestamp [13:17:57]File name is /storage/kkm_last_timestamp [13:17:57]Write 4 bytes [13:17:57]NVStorageSaveData done [13:17:57]ExternCall_PrintAddStr [13:17:57]wPrintStart [13:17:57]Write to MH i2c: 01 00 00 29 81 AA [13:17:57]Write i2c OK [13:17:57]MH_I2C_Read... [13:17:57]Read from MH i2c: 01 [13:17:57]MH_I2C_Read... [13:17:57]Read from MH i2c: 01 07 00 [13:17:57]MH_I2C_Read... [13:17:57]Read from MH i2c: 01 07 00 29 81 00 00 00 00 00 FF 0F BF [13:17:57]RasterBufferAndPrint [13:17:57]line Счет N : (1)347019 [13:17:57]line ИНН: 02508201610067 [13:17:57]line Контрольно-Кассовый Чек [13:17:57]line ПРОДАЖА [13:17:57]line ТРК (МРК, ГНК) : 61 [13:17:57]line Товар: 2710194210 [13:17:57]line ДТ-К-5 [13:17:57]line 6.910 * 72.40 [13:17:57]line = 500.28 [13:17:57]line НДС 12% НСП 1% [13:17:57]line > о реализуемом товаре [13:17:57]line ОКРУГЛЕНИЕ: -0.28 [13:17:57]line ИТОГО: 500.00 [13:17:57]line Внесено: 500.00 [13:17:57]line СДАЧА: 0.00 [13:17:57]line НСП 1% : 4.43 [13:17:57]line НДС 12% : 53.13 [13:17:57]line Наличными: 500.00 [13:17:57]line Безнал.: 0.00 [13:17:57]line Место: АЗС № 108 "Партнер Нефть" [13:17:57]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [13:17:57]line СНО: Общий режим [13:17:57]line Чек 134 12.04.2024 13:18 [13:17:57]line Смена: 113 ФФД: 1.0 [13:17:57]line ЗНМ: 0300000027 [13:17:57]line РНМ: 0000138879044617 [13:17:57]line Версия ККМ: 001 [13:17:57]line ФМ: 0000000000963154 [13:17:57]line ФД: 28685 [13:17:57]line ФПД: 209172972468660 [13:17:57]line 1/tax-web-control/client/api/v1/ticket?date=20240412T131803&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28685&fm=209172972468660&tin=02508201610067®Number=0000138879044617&sum=50000 [13:17:57]OFD Sender: Processing packet 28685 [packets to send 8, broken 7] [13:17:57]ProducePacketName [13:17:57]name=ofd_packets/00028685 [13:17:57]OFD Sender: To server: pG, [13:17:57]CommunicateWithHost lk.salyk.kg:30040 [13:17:57]ConnectInit lk.salyk.kg [13:17:57]written 0, free lines is 4095 [13:17:57]Connected sock=6 [13:17:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 52 5E 04 01 86 04 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FE 1A 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 6C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 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 8B 34 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0D 70 00 00 35 04 06 00 BE 3D E0 B8 79 B4 AA AB E2 FD 3E 3D FB 30 [13:17:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 C2 45 47 00 6A 68 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0D 70 00 00 F4 03 04 00 35 DF 18 66 B6 04 01 00 00 42 B8 91 48 80 20 91 42 [13:17:57]CommunicateWithHost err = 0 [13:17:57]CheckOFDResponse [13:17:57]1017 (14) - 77093643461234 [13:17:57]1041 (16) - 0000000000963154 [13:17:57]1040 (4) - 28685 [13:17:57]1012 (4) - 12.04.2024 07:13 [13:17:57]1206 (1) - 0 [13:17:57]OFD Sender: Remove packet 28685 [13:17:57]ProducePacketName [13:17:57]name=ofd_packets/00028685 [13:17:57]NVStorageDeleteData [13:17:57]Write to MH i2c: 01 00 00 53 81 D4 [13:17:57]Write i2c OK [13:17:57]MH_I2C_Read... [13:17:57]Read from MH i2c: 01 [13:17:57]MH_I2C_Read... [13:17:57]Read from MH i2c: 01 07 00 [13:17:57]MH_I2C_Read... [13:17:57]Read from MH i2c: 01 07 00 53 81 00 00 00 00 00 D3 0C BA [13:17:57]RasterBufferAndPrint [13:17:57]line [13:17:57]line [13:17:57]line [13:17:57]line [13:17:57]line [13:17:57]written 0, free lines is 3289 [13:17:58]MH_Cut [13:17:58]Write to MH i2c: D1 01 00 5A 81 01 AD [13:17:58]Write i2c OK [13:17:58]MH_I2C_Read... [13:17:58]Read from MH i2c: D1 [13:17:58]MH_I2C_Read... [13:17:58]Read from MH i2c: D1 01 00 [13:17:58]MH_I2C_Read... [13:17:58]Read from MH i2c: D1 01 00 5A 81 00 AC [13:17:58]Write to MH i2c: 01 00 00 5B 81 DC [13:17:58]Write i2c OK [13:17:58]MH_I2C_Read... [13:17:58]OFD Sender: No OFD packet to send [13:17:58]*** Cut start [13:17:58]*** Partial cut [13:17:58]*** CUTSNS_PIN = 1 [13:17:58]*** CUTSNS_PIN = 0 [13:17:59]*** Brake cut motor [13:17:59]Read from MH i2c: 01 [13:17:59]MH_I2C_Read... [13:17:59]*** Stop cut motor [13:17:59]*** Cut end [13:17:59]Read from MH i2c: 01 07 00 [13:17:59]MH_I2C_Read... [13:17:59]Read from MH i2c: 01 07 00 5B 81 00 00 00 00 00 FF 0F F1 [13:17:59]process_action close_receipt done [13:17:59]requested_data is exist [13:17:59]produce_requested_data [13:17:59]requested_item fm.sn is exist - process it [13:17:59]wFMCommunicate request_size=4 [13:17:59]MH_SAM_APDU [13:17:59]CAPDU: 80 11 00 00 [13:17:59]Write to MH i2c: E2 08 00 5C 81 80 11 00 00 00 00 00 00 57 [13:17:59]Write i2c OK [13:17:59]MH_I2C_Read... [13:17:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:17:59]Read from MH i2c: E2 [13:17:59]MH_I2C_Read... [13:17:59]Read from MH i2c: E2 17 00 [13:17:59]MH_I2C_Read... [13:17:59]Read from MH i2c: E2 17 00 5C 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 A6 [13:17:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:17:59]wFMCommunicate OK [13:17:59]requested_item fd.num is exist - process it [13:17:59]SAM_PROTO_GetFieldsCounters [13:17:59]wFMCommunicate request_size=4 [13:17:59]MH_SAM_APDU [13:17:59]CAPDU: 80 13 00 00 [13:17:59]Write to MH i2c: E2 08 00 5D 81 80 13 00 00 00 00 00 00 5A [13:17:59]Write i2c OK [13:17:59]MH_I2C_Read... [13:17:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:17:59]Read from MH i2c: E2 [13:17:59]MH_I2C_Read... [13:17:59]Read from MH i2c: E2 62 00 [13:17:59]MH_I2C_Read... [13:17:59]Read from MH i2c: E2 62 00 5D 81 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 0D 70 00 00 0E 04 04 00 71 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 18 [13:17:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 0D 70 00 00 0E 04 04 00 71 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:17:59]wFMCommunicate OK [13:17:59]SAM_PROTO_GetFieldsCounters done [13:17:59]requested_item shift.num is exist - process it [13:17:59]requested_item shift.opened is exist - process it [13:17:59]req_shift_opened [13:17:59]FM_GetShiftState [13:17:59]SAM_PROTO_GetShiftState [13:17:59]wFMCommunicate request_size=4 [13:17:59]MH_SAM_APDU [13:17:59]CAPDU: 80 13 01 00 [13:17:59]Write to MH i2c: E2 08 00 5E 81 80 13 01 00 00 00 00 00 5C [13:17:59]Write i2c OK [13:17:59]MH_I2C_Read... [13:17:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:17:59]Read from MH i2c: E2 [13:17:59]MH_I2C_Read... [13:17:59]Read from MH i2c: E2 0E 00 [13:17:59]MH_I2C_Read... [13:17:59]Read from MH i2c: E2 0E 00 5E 81 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 6D [13:17:59]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [13:17:59]wFMCommunicate OK [13:17:59]SAM_PROTO_GetShiftState done [13:17:59]FM_GetShiftState done [13:17:59]req_shift_opened done [13:17:59]requested_item shift.open_date is exist - process it [13:17:59]req_shift_open_date [13:17:59]req_shift_open_date done [13:17:59]produce_requested_data done [13:17:59]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28685,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [13:17:59]process_action_free close_receipt [13:17:59]json_value_free [13:17:59]json_value_free done [13:17:59]process_json_proto returns [13:17:59]Send response to host [13:17:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28685,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [13:17:59]free response buf [13:17:59]execute_script done [13:17:59]execute_script returns [13:17:59]free content buf [13:17:59]Sock 7.Close socket [13:17:59]Sock 7.Thread stoped [13:18:03]OFD Sender: No OFD packet to send [13:18:08]OFD Sender: No OFD packet to send [13:18:13]OFD Sender: No OFD packet to send [13:18:18]OFD Sender: No OFD packet to send [13:18:23]OFD Sender: No OFD packet to send [13:18:28]OFD Sender: No OFD packet to send [13:18:33]OFD Sender: No OFD packet to send [13:18:38]OFD Sender: No OFD packet to send [13:18:43]OFD Sender: No OFD packet to send [13:18:48]OFD Sender: No OFD packet to send [13:18:53]OFD Sender: No OFD packet to send [13:18:58]OFD Sender: No OFD packet to send [13:19:03]OFD Sender: No OFD packet to send [13:19:08]OFD Sender: No OFD packet to send [13:19:13]OFD Sender: No OFD packet to send [13:19:17]accept exits with 5 [13:19:17]New connection [13:19:17]New thread 3066641764 created [13:19:17]Thread 3066498404 joined [13:19:17]Waiting for new connection... [13:19:17] Sock 5.Parse request [13:19:17]Sock 5.Check first char [13:19:17]Sock 5.First char is OK [13:19:17]request: POST /json_proto HTTP/1.0 [13:19:17]Method: POST [13:19:17]URL: /json_proto [13:19:17]Method is POST - this is cgi request [13:19:17]url: /json_proto [13:19:17]query_string will be loaded in cgi processing [13:19:17]execute_cgi json_proto POST (null) [13:19:17]execute_cgi path=json_proto method=POST [13:19:17]POST find Content-Length [13:19:17]Host: 172.17.33.3:8080 [13:19:17]Content-Length: 685 [13:19:17]Content-Type: application/json [13:19:17] [13:19:17]POST finish read [13:19:17]Found Content-Length = 685 [13:19:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347018", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 45.600, "sum" : 1500.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:19:17]execute_script... [13:19: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)347018", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 45.600, "sum" : 1500.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:19:17]POST & json_proto [13:19:17]process_json_proto [13:19:17]json parsed OK: [13:19:17]protocol is kg_v1.0 [13:19:17]action value=close_receipt [13:19:17]process_action close_receipt [13:19:17]cmd_close_receipt [13:19:17]MH_GetDate [13:19:17]Write to MH i2c: F0 00 00 5F 81 CF [13:19:17]Write i2c OK [13:19:17]MH_I2C_Read... [13:19:17]Read from MH i2c: F0 [13:19:17]MH_I2C_Read... [13:19:17]Read from MH i2c: F0 09 00 [13:19:17]MH_I2C_Read... [13:19:17]Read from MH i2c: F0 09 00 5F 81 00 DD 34 19 66 23 5B 8F 65 DA [13:19:17]GetLastDocTimeStamp 1712927883 [13:19:17]current date 1712927965 [13:19:17]FM_GetShiftState [13:19:17]SAM_PROTO_GetShiftState [13:19:17]wFMCommunicate request_size=4 [13:19:17]MH_SAM_APDU [13:19:17]CAPDU: 80 13 01 00 [13:19:17]Write to MH i2c: E2 08 00 60 81 80 13 01 00 00 00 00 00 5E [13:19:17]Write i2c OK [13:19:17]MH_I2C_Read... [13:19:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:19:17]Read from MH i2c: E2 [13:19:17]MH_I2C_Read... [13:19:17]Read from MH i2c: E2 0E 00 [13:19:17]MH_I2C_Read... [13:19:17]Read from MH i2c: E2 0E 00 60 81 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 6F [13:19:17]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [13:19:17]wFMCommunicate OK [13:19:17]SAM_PROTO_GetShiftState done [13:19:17]FM_GetShiftState done [13:19:17]opened in 1712881416 [13:19:17]opened+sec_in_day 1712967816 [13:19:17]quantity*price = 150024 [13:19:17]sum+1 = 150025 [13:19:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.32 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 135 12.04.2024 13:19 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28686 ФПД: 208124077352202 1/tax-web-control/client/api/v1/ticket?date=20240412T131925&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28686&fm=208124077352202&tin=02508201610067®Number=0000138879044617&sum=150000 [13:19:18]StoreToDocumentArchive [13:19:18]shift 113 fd 28686 [13:19:18]save to /storage/0113/doc_00028686 [13:19:18]save last doc name /storage/0113/doc_00028686 to /storage/kkm_last_doc_name [13:19:18]save OK [13:19:18]Clear old archive folders... [13:19:18]ProcessDocumentItem done err = 0, tmpTLVsize=250 [13:19:18]tlvbuf is 01AE94B0 [13:19:18]SAM_PROTO_ClearQueue [13:19:18]wFMCommunicate request_size=4 [13:19:18]MH_SAM_APDU [13:19:18]CAPDU: 80 09 00 00 [13:19:18]Write to MH i2c: E2 08 00 6D 81 80 09 00 00 00 00 00 00 60 [13:19:18]Write i2c OK [13:19:18]MH_I2C_Read... [13:19:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:19:18]Read from MH i2c: E2 [13:19:18]MH_I2C_Read... [13:19:18]Read from MH i2c: E2 03 00 [13:19:18]MH_I2C_Read... [13:19:18]Read from MH i2c: E2 03 00 6D 81 00 90 00 62 [13:19:18]RAPDU: 90 00 [13:19:18]wFMCommunicate OK [13:19:18]SAM_PROTO_ClearQueue done [13:19:18]KKMCreateOFDPacket [13:19:18]OFDProtocolAddRootSTLVToBuf [13:19:18]FM_MakeSignedData [13:19:18]FM_MakeSignedData [13:19:18]SAM_PROTO_SignData [13:19:18]wFMCommunicate request_size=4 [13:19:18]MH_SAM_APDU [13:19:18]CAPDU: 80 0D 01 02 [13:19:18]Write to MH i2c: E2 08 00 6E 81 80 0D 01 02 00 00 00 00 68 [13:19:18]Write i2c OK [13:19:18]MH_I2C_Read... [13:19:18]OFD Sender: No OFD packet to send [13:19:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:19:18]Read from MH i2c: E2 [13:19:18]MH_I2C_Read... [13:19:18]Read from MH i2c: E2 03 00 [13:19:18]MH_I2C_Read... [13:19:18]Read from MH i2c: E2 03 00 6E 81 00 90 00 63 [13:19:18]RAPDU: 90 00 [13:19:18]wFMCommunicate OK [13:19:18]wFMCommunicate request_size=255 [13:19:18]MH_SAM_APDU [13:19:18]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 20 B2 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 08 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 3C 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 87 00 00 00 F4 03 04 00 DD 34 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0E 70 00 00 35 04 06 00 BD 49 [13:19:18]Write to MH i2c: E2 02 01 6F 81 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 20 B2 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 08 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 3C 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 87 00 00 00 F4 03 04 00 DD 34 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0E 70 00 00 35 04 06 00 BD 49 00 00 7C [13:19:18]Write i2c OK [13:19:18]MH_I2C_Read... [13:19:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:19:18]Read from MH i2c: E2 [13:19:18]MH_I2C_Read... [13:19:18]Read from MH i2c: E2 03 00 [13:19:18]MH_I2C_Read... [13:19:18]Read from MH i2c: E2 03 00 6F 81 00 90 00 64 [13:19:18]RAPDU: 90 00 [13:19:18]wFMCommunicate OK [13:19:18]wFMCommunicate request_size=9 [13:19:18]MH_SAM_APDU [13:19:18]CAPDU: 80 0D 02 02 04 A9 B3 25 0A [13:19:18]Write to MH i2c: E2 0C 00 70 81 80 0D 02 02 04 00 A9 B3 25 0A 00 00 FE [13:19:18]Write i2c OK [13:19:18]MH_I2C_Read... [13:19:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:19:18]Read from MH i2c: E2 [13:19:18]MH_I2C_Read... [13:19:18]Read from MH i2c: E2 03 00 [13:19:18]MH_I2C_Read... [13:19:18]Read from MH i2c: E2 03 00 70 81 00 90 00 65 [13:19:18]RAPDU: 90 00 [13:19:18]wFMCommunicate OK [13:19:18]wFMCommunicate request_size=4 [13:19:18]MH_SAM_APDU [13:19:18]CAPDU: 80 0D 03 02 [13:19:18]Write to MH i2c: E2 08 00 71 81 80 0D 03 02 00 00 00 00 6D [13:19:18]Write i2c OK [13:19:18]MH_I2C_Read... [13:19:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:19:18]Read from MH i2c: E2 [13:19:18]MH_I2C_Read... [13:19:18]Read from MH i2c: E2 0B 00 [13:19:18]MH_I2C_Read... [13:19:18]Read from MH i2c: E2 0B 00 71 81 00 53 0C B1 6D 76 84 FB F3 90 00 D3 [13:19:18]RAPDU: 53 0C B1 6D 76 84 FB F3 90 00 [13:19:18]wFMCommunicate OK [13:19:18]SAM_PROTO_SignData done [13:19:18]FM_MakeSignedData done [13:19:18]CreateOFDProtocolMessage [13:19:18]wFMCommunicate request_size=4 [13:19:18]MH_SAM_APDU [13:19:18]CAPDU: 80 11 00 00 [13:19:18]Write to MH i2c: E2 08 00 72 81 80 11 00 00 00 00 00 00 6D [13:19:18]Write i2c OK [13:19:18]MH_I2C_Read... [13:19:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:19:18]Read from MH i2c: E2 [13:19:18]MH_I2C_Read... [13:19:18]Read from MH i2c: E2 17 00 [13:19:18]MH_I2C_Read... [13:19:18]Read from MH i2c: E2 17 00 72 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 BC [13:19:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:19:18]wFMCommunicate OK [13:19:18]CreateOFDProtocolMessage done [13:19:18]OFDSenderStorePacket 28686 [13:19:18]StoreOFDPacket docnum=28686 [13:19:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 A1 60 06 01 42 6D 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 20 B2 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 08 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 3C 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 87 00 00 00 F4 03 04 00 DD 34 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0E 70 00 00 35 04 06 00 BD 49 A9 B3 25 0A 53 0C B1 6D 76 84 FB F3 [13:19:18]CheckFolder [13:19:18]dirname=/storage/ofd_packets [13:19:18]CheckFolder done [13:19:18]ProducePacketName [13:19:18]name=ofd_packets/00028686 [13:19:18]NVStorageSaveData ofd_packets/00028686 [13:19:18]File name is /storage/ofd_packets/00028686 [13:19:18]Write 300 bytes [13:19:18]NVStorageSaveData done [13:19:18]OFDSenderStorePacket done [13:19:18]KKMCreateOFDPacket done [13:19:18]NVStorageSaveData kkm_last_timestamp [13:19:18]File name is /storage/kkm_last_timestamp [13:19:18]Write 4 bytes [13:19:18]NVStorageSaveData done [13:19:18]ExternCall_PrintAddStr [13:19:18]wPrintStart [13:19:18]Write to MH i2c: 01 00 00 73 81 F4 [13:19:18]Write i2c OK [13:19:18]MH_I2C_Read... [13:19:18]Read from MH i2c: 01 [13:19:18]MH_I2C_Read... [13:19:18]Read from MH i2c: 01 07 00 [13:19:18]MH_I2C_Read... [13:19:18]Read from MH i2c: 01 07 00 73 81 00 00 00 00 00 FF 0F 09 [13:19:18]RasterBufferAndPrint [13:19:18]line Счет N : (1)347018 [13:19:18]line ИНН: 02508201610067 [13:19:18]line Контрольно-Кассовый Чек [13:19:18]line ПРОДАЖА [13:19:18]line ТРК (МРК, ГНК) : 71 [13:19:18]line Товар: 2711129700 [13:19:18]line ГАЗ-К-5 [13:19:18]line 45.600 * 32.90 [13:19:18]line = 1500.24 [13:19:18]line НДС 12% НСП 1% [13:19:18]line > о реализуемом товаре [13:19:18]line ОКРУГЛЕНИЕ: -0.24 [13:19:18]line ИТОГО: 1500.00 [13:19:18]line Внесено: 1500.00 [13:19:18]line СДАЧА: 0.00 [13:19:18]line НСП 1% : 13.28 [13:19:18]line НДС 12% : 159.32 [13:19:18]line Наличными: 1500.00 [13:19:18]line Безнал.: 0.00 [13:19:18]line Место: АЗС № 108 "Партнер Нефть" [13:19:18]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [13:19:18]line СНО: Общий режим [13:19:18]line Чек 135 12.04.2024 13:19 [13:19:18]line Смена: 113 ФФД: 1.0 [13:19:18]line ЗНМ: 0300000027 [13:19:18]line РНМ: 0000138879044617 [13:19:18]line Версия ККМ: 001 [13:19:18]line ФМ: 0000000000963154 [13:19:18]line ФД: 28686 [13:19:18]line ФПД: 208124077352202 [13:19:19]line 1/tax-web-control/client/api/v1/ticket?date=20240412T131925&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28686&fm=208124077352202&tin=02508201610067®Number=0000138879044617&sum=150000 [13:19:19]OFD Sender: Processing packet 28686 [packets to send 8, broken 7] [13:19:19]ProducePacketName [13:19:19]name=ofd_packets/00028686 [13:19:19]OFD Sender: To server: pG, [13:19:19]CommunicateWithHost lk.salyk.kg:30040 [13:19:19]ConnectInit lk.salyk.kg [13:19:19]written 0, free lines is 4095 [13:19:19]Connected sock=7 [13:19:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 A1 60 06 01 42 6D 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 20 B2 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 08 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 3C 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 87 00 00 00 F4 03 04 00 DD 34 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0E 70 00 00 35 04 06 00 BD 49 A9 B3 25 0A 53 0C B1 6D 76 84 FB F3 [13:19:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 43 80 47 00 AF AC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0E 70 00 00 F4 03 04 00 87 DF 18 66 B6 04 01 00 00 65 EB BD 9A 74 4D 72 D5 [13:19:19]CommunicateWithHost err = 0 [13:19:19]CheckOFDResponse [13:19:19]1017 (14) - 77093643461234 [13:19:19]1041 (16) - 0000000000963154 [13:19:19]1040 (4) - 28686 [13:19:19]1012 (4) - 12.04.2024 07:15 [13:19:19]1206 (1) - 0 [13:19:19]OFD Sender: Remove packet 28686 [13:19:19]ProducePacketName [13:19:19]name=ofd_packets/00028686 [13:19:19]NVStorageDeleteData [13:19:19]Write to MH i2c: 01 00 00 9D 81 1E [13:19:19]Write i2c OK [13:19:19]MH_I2C_Read... [13:19:19]Read from MH i2c: 01 [13:19:19]MH_I2C_Read... [13:19:19]Read from MH i2c: 01 07 00 [13:19:19]MH_I2C_Read... [13:19:19]Read from MH i2c: 01 07 00 9D 81 00 00 00 00 00 C4 0C F5 [13:19:19]RasterBufferAndPrint [13:19:19]line [13:19:19]line [13:19:19]line [13:19:19]line [13:19:19]line [13:19:19]written 0, free lines is 3273 [13:19:19]MH_Cut [13:19:19]Write to MH i2c: D1 01 00 A4 81 01 F7 [13:19:19]Write i2c OK [13:19:19]MH_I2C_Read... [13:19:19]Read from MH i2c: D1 [13:19:19]MH_I2C_Read... [13:19:19]Read from MH i2c: D1 01 00 [13:19:19]MH_I2C_Read... [13:19:19]Read from MH i2c: D1 01 00 A4 81 00 F6 [13:19:19]Write to MH i2c: 01 00 00 A5 81 26 [13:19:19]Write i2c OK [13:19:19]MH_I2C_Read... [13:19:20]OFD Sender: No OFD packet to send [13:19:20]*** Cut start [13:19:20]*** Partial cut [13:19:20]*** CUTSNS_PIN = 1 [13:19:20]*** CUTSNS_PIN = 0 [13:19:20]*** Brake cut motor [13:19:21]Read from MH i2c: 01 [13:19:21]MH_I2C_Read... [13:19:21]*** Stop cut motor [13:19:21]*** Cut end [13:19:21]Read from MH i2c: 01 07 00 [13:19:21]MH_I2C_Read... [13:19:21]Read from MH i2c: 01 07 00 A5 81 00 00 00 00 00 FF 0F 3B [13:19:21]process_action close_receipt done [13:19:21]requested_data is exist [13:19:21]produce_requested_data [13:19:21]requested_item fm.sn is exist - process it [13:19:21]wFMCommunicate request_size=4 [13:19:21]MH_SAM_APDU [13:19:21]CAPDU: 80 11 00 00 [13:19:21]Write to MH i2c: E2 08 00 A6 81 80 11 00 00 00 00 00 00 A1 [13:19:21]Write i2c OK [13:19:21]MH_I2C_Read... [13:19:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:19:21]Read from MH i2c: E2 [13:19:21]MH_I2C_Read... [13:19:21]Read from MH i2c: E2 17 00 [13:19:21]MH_I2C_Read... [13:19:21]Read from MH i2c: E2 17 00 A6 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 F0 [13:19:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:19:21]wFMCommunicate OK [13:19:21]requested_item fd.num is exist - process it [13:19:21]SAM_PROTO_GetFieldsCounters [13:19:21]wFMCommunicate request_size=4 [13:19:21]MH_SAM_APDU [13:19:21]CAPDU: 80 13 00 00 [13:19:21]Write to MH i2c: E2 08 00 A7 81 80 13 00 00 00 00 00 00 A4 [13:19:21]Write i2c OK [13:19:21]MH_I2C_Read... [13:19:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:19:21]Read from MH i2c: E2 [13:19:21]MH_I2C_Read... [13:19:21]Read from MH i2c: E2 62 00 [13:19:21]MH_I2C_Read... [13:19:21]Read from MH i2c: E2 62 00 A7 81 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 0E 70 00 00 0E 04 04 00 71 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 66 [13:19:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 0E 70 00 00 0E 04 04 00 71 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 [13:19:21]wFMCommunicate OK [13:19:21]SAM_PROTO_GetFieldsCounters done [13:19:21]requested_item shift.num is exist - process it [13:19:21]requested_item shift.opened is exist - process it [13:19:21]req_shift_opened [13:19:21]FM_GetShiftState [13:19:21]SAM_PROTO_GetShiftState [13:19:21]wFMCommunicate request_size=4 [13:19:21]MH_SAM_APDU [13:19:21]CAPDU: 80 13 01 00 [13:19:21]Write to MH i2c: E2 08 00 A8 81 80 13 01 00 00 00 00 00 A6 [13:19:21]Write i2c OK [13:19:21]MH_I2C_Read... [13:19:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:19:21]Read from MH i2c: E2 [13:19:21]MH_I2C_Read... [13:19:21]Read from MH i2c: E2 0E 00 [13:19:21]MH_I2C_Read... [13:19:21]Read from MH i2c: E2 0E 00 A8 81 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 B7 [13:19:21]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [13:19:21]wFMCommunicate OK [13:19:21]SAM_PROTO_GetShiftState done [13:19:21]FM_GetShiftState done [13:19:21]req_shift_opened done [13:19:21]requested_item shift.open_date is exist - process it [13:19:21]req_shift_open_date [13:19:21]req_shift_open_date done [13:19:21]produce_requested_data done [13:19:21]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28686,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [13:19:21]process_action_free close_receipt [13:19:21]json_value_free [13:19:21]json_value_free done [13:19:21]process_json_proto returns [13:19:21]Send response to host [13:19:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28686,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [13:19:21]free response buf [13:19:21]execute_script done [13:19:21]execute_script returns [13:19:21]free content buf [13:19:21]Sock 5.Close socket [13:19:21]Sock 5.Thread stoped [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:14]accept exits with 6 [13:21:14]New connection [13:21:14]New thread 3066498404 created [13:21:14]Thread 3066641764 joined [13:21:14]Waiting for new connection... [13:21:14] Sock 6.Parse request [13:21:14]Sock 6.Check first char [13:21:14]Sock 6.First char is OK [13:21:14]request: POST /json_proto HTTP/1.0 [13:21:14]Method: POST [13:21:14]URL: /json_proto [13:21:14]Method is POST - this is cgi request [13:21:14]url: /json_proto [13:21:14]query_string will be loaded in cgi processing [13:21:14]execute_cgi json_proto POST (null) [13:21:14]execute_cgi path=json_proto method=POST [13:21:14]POST find Content-Length [13:21:14]Host: 172.17.33.3:8080 [13:21:14]Content-Length: 677 [13:21:14]Content-Type: application/json [13:21:14] [13:21:14]POST finish read [13:21:14]Found Content-Length = 677 [13:21:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347020", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 7.780, "sum" : 500.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:14]execute_script... [13:21: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)347020", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 7.780, "sum" : 500.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:14]POST & json_proto [13:21:14]process_json_proto [13:21:14]json parsed OK: [13:21:14]protocol is kg_v1.0 [13:21:14]action value=close_receipt [13:21:14]process_action close_receipt [13:21:14]cmd_close_receipt [13:21:14]MH_GetDate [13:21:14]Write to MH i2c: F0 00 00 A9 81 19 [13:21:14]Write i2c OK [13:21:14]MH_I2C_Read... [13:21:14]Read from MH i2c: F0 [13:21:14]MH_I2C_Read... [13:21:14]Read from MH i2c: F0 09 00 [13:21:14]MH_I2C_Read... [13:21:14]Read from MH i2c: F0 09 00 A9 81 00 53 35 19 66 23 5B 8F 65 9B [13:21:14]GetLastDocTimeStamp 1712927965 [13:21:14]current date 1712928083 [13:21:14]FM_GetShiftState [13:21:14]SAM_PROTO_GetShiftState [13:21:14]wFMCommunicate request_size=4 [13:21:14]MH_SAM_APDU [13:21:14]CAPDU: 80 13 01 00 [13:21:14]Write to MH i2c: E2 08 00 AA 81 80 13 01 00 00 00 00 00 A8 [13:21:14]Write i2c OK [13:21:14]MH_I2C_Read... [13:21:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:21:15]Read from MH i2c: E2 [13:21:15]MH_I2C_Read... [13:21:15]Read from MH i2c: E2 0E 00 [13:21:15]MH_I2C_Read... [13:21:15]Read from MH i2c: E2 0E 00 AA 81 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 B9 [13:21:15]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [13:21:15]wFMCommunicate OK [13:21:15]SAM_PROTO_GetShiftState done [13:21:15]FM_GetShiftState done [13:21:15]opened in 1712881416 [13:21:15]opened+sec_in_day 1712967816 [13:21:15]quantity*price = 50025 [13:21:15]sum+1 = 50026 [13:21:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 136 12.04.2024 13:21 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28687 ФПД: 28211069134440 1/tax-web-control/client/api/v1/ticket?date=20240412T132123&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28687&fm=28211069134440&tin=02508201610067®Number=0000138879044617&sum=50000 [13:21:16]StoreToDocumentArchive [13:21:16]shift 113 fd 28687 [13:21:16]save to /storage/0113/doc_00028687 [13:21:16]save last doc name /storage/0113/doc_00028687 to /storage/kkm_last_doc_name [13:21:16]save OK [13:21:16]Clear old archive folders... [13:21:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:21:16]tlvbuf is 01BF9DF0 [13:21:16]SAM_PROTO_ClearQueue [13:21:16]wFMCommunicate request_size=4 [13:21:16]MH_SAM_APDU [13:21:16]CAPDU: 80 09 00 00 [13:21:16]Write to MH i2c: E2 08 00 B7 81 80 09 00 00 00 00 00 00 AA [13:21:16]Write i2c OK [13:21:16]MH_I2C_Read... [13:21:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:21:16]Read from MH i2c: E2 [13:21:16]MH_I2C_Read... [13:21:16]Read from MH i2c: E2 03 00 [13:21:16]MH_I2C_Read... [13:21:16]Read from MH i2c: E2 03 00 B7 81 00 90 00 AC [13:21:16]RAPDU: 90 00 [13:21:16]wFMCommunicate OK [13:21:16]SAM_PROTO_ClearQueue done [13:21:16]KKMCreateOFDPacket [13:21:16]OFDProtocolAddRootSTLVToBuf [13:21:16]FM_MakeSignedData [13:21:16]FM_MakeSignedData [13:21:16]SAM_PROTO_SignData [13:21:16]wFMCommunicate request_size=4 [13:21:16]MH_SAM_APDU [13:21:16]CAPDU: 80 0D 01 02 [13:21:16]Write to MH i2c: E2 08 00 B8 81 80 0D 01 02 00 00 00 00 B2 [13:21:16]Write i2c OK [13:21:16]MH_I2C_Read... [13:21:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:21:16]Read from MH i2c: E2 [13:21:16]MH_I2C_Read... [13:21:16]Read from MH i2c: E2 03 00 [13:21:16]MH_I2C_Read... [13:21:16]Read from MH i2c: E2 03 00 B8 81 00 90 00 AD [13:21:16]RAPDU: 90 00 [13:21:16]wFMCommunicate OK [13:21:16]wFMCommunicate request_size=255 [13:21:16]MH_SAM_APDU [13:21:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 53 35 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0F 70 00 00 35 04 06 00 19 [13:21:16]Write to MH i2c: E2 02 01 B9 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 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 53 35 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0F 70 00 00 35 04 06 00 19 00 00 0C [13:21:16]Write i2c OK [13:21:16]MH_I2C_Read... [13:21:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:21:16]Read from MH i2c: E2 [13:21:16]MH_I2C_Read... [13:21:16]Read from MH i2c: E2 03 00 [13:21:16]MH_I2C_Read... [13:21:16]Read from MH i2c: E2 03 00 B9 81 00 90 00 AE [13:21:16]RAPDU: 90 00 [13:21:16]wFMCommunicate OK [13:21:16]wFMCommunicate request_size=10 [13:21:16]MH_SAM_APDU [13:21:16]CAPDU: 80 0D 02 02 05 A8 66 C1 26 68 [13:21:16]Write to MH i2c: E2 0D 00 BA 81 80 0D 02 02 05 00 A8 66 C1 26 68 00 00 1C [13:21:16]Write i2c OK [13:21:16]MH_I2C_Read... [13:21:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:21:16]Read from MH i2c: E2 [13:21:16]MH_I2C_Read... [13:21:16]Read from MH i2c: E2 03 00 [13:21:16]MH_I2C_Read... [13:21:16]Read from MH i2c: E2 03 00 BA 81 00 90 00 AF [13:21:16]RAPDU: 90 00 [13:21:16]wFMCommunicate OK [13:21:16]wFMCommunicate request_size=4 [13:21:16]MH_SAM_APDU [13:21:16]CAPDU: 80 0D 03 02 [13:21:16]Write to MH i2c: E2 08 00 BB 81 80 0D 03 02 00 00 00 00 B7 [13:21:16]Write i2c OK [13:21:16]MH_I2C_Read... [13:21:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:21:16]Read from MH i2c: E2 [13:21:16]MH_I2C_Read... [13:21:16]Read from MH i2c: E2 0B 00 [13:21:16]MH_I2C_Read... [13:21:16]Read from MH i2c: E2 0B 00 BB 81 00 57 D9 A4 7A 2E DB B0 95 90 00 54 [13:21:16]RAPDU: 57 D9 A4 7A 2E DB B0 95 90 00 [13:21:16]wFMCommunicate OK [13:21:16]SAM_PROTO_SignData done [13:21:16]FM_MakeSignedData done [13:21:16]CreateOFDProtocolMessage [13:21:16]wFMCommunicate request_size=4 [13:21:16]MH_SAM_APDU [13:21:16]CAPDU: 80 11 00 00 [13:21:16]Write to MH i2c: E2 08 00 BC 81 80 11 00 00 00 00 00 00 B7 [13:21:16]Write i2c OK [13:21:16]MH_I2C_Read... [13:21:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:21:16]Read from MH i2c: E2 [13:21:16]MH_I2C_Read... [13:21:16]Read from MH i2c: E2 17 00 [13:21:16]MH_I2C_Read... [13:21:16]Read from MH i2c: E2 17 00 BC 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 06 [13:21:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:21:16]wFMCommunicate OK [13:21:16]CreateOFDProtocolMessage done [13:21:16]OFDSenderStorePacket 28687 [13:21:16]StoreOFDPacket docnum=28687 [13:21:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 36 0F 07 01 C3 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 53 35 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0F 70 00 00 35 04 06 00 19 A8 66 C1 26 68 57 D9 A4 7A 2E DB B0 95 [13:21:16]CheckFolder [13:21:16]dirname=/storage/ofd_packets [13:21:16]CheckFolder done [13:21:16]ProducePacketName [13:21:16]name=ofd_packets/00028687 [13:21:16]NVStorageSaveData ofd_packets/00028687 [13:21:16]File name is /storage/ofd_packets/00028687 [13:21:16]Write 301 bytes [13:21:16]NVStorageSaveData done [13:21:16]OFDSenderStorePacket done [13:21:16]KKMCreateOFDPacket done [13:21:16]NVStorageSaveData kkm_last_timestamp [13:21:16]File name is /storage/kkm_last_timestamp [13:21:16]Write 4 bytes [13:21:16]NVStorageSaveData done [13:21:16]ExternCall_PrintAddStr [13:21:16]wPrintStart [13:21:16]Write to MH i2c: 01 00 00 BD 81 3E [13:21:16]Write i2c OK [13:21:16]MH_I2C_Read... [13:21:16]Read from MH i2c: 01 [13:21:16]MH_I2C_Read... [13:21:16]Read from MH i2c: 01 07 00 [13:21:16]MH_I2C_Read... [13:21:16]Read from MH i2c: 01 07 00 BD 81 00 00 00 00 00 FF 0F 53 [13:21:16]RasterBufferAndPrint [13:21:16]line Счет N : (1)347020 [13:21:16]line ИНН: 02508201610067 [13:21:16]line Контрольно-Кассовый Чек [13:21:16]line ПРОДАЖА [13:21:16]line ТРК (МРК, ГНК) : 42 [13:21:16]line Товар: 2710124130 [13:21:16]line Аи-92-К-5 [13:21:16]line 7.780 * 64.30 [13:21:16]line = 500.25 [13:21:16]line НДС 12% НСП 1% [13:21:16]line > о реализуемом товаре [13:21:16]line ОКРУГЛЕНИЕ: -0.25 [13:21:16]line ИТОГО: 500.00 [13:21:16]line Внесено: 500.00 [13:21:16]line СДАЧА: 0.00 [13:21:16]line НСП 1% : 4.43 [13:21:16]line НДС 12% : 53.12 [13:21:16]line Наличными: 500.00 [13:21:16]line Безнал.: 0.00 [13:21:16]line Место: АЗС № 108 "Партнер Нефть" [13:21:16]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [13:21:16]line СНО: Общий режим [13:21:16]line Чек 136 12.04.2024 13:21 [13:21:16]line Смена: 113 ФФД: 1.0 [13:21:16]line ЗНМ: 0300000027 [13:21:16]line РНМ: 0000138879044617 [13:21:16]line Версия ККМ: 001 [13:21:16]line ФМ: 0000000000963154 [13:21:16]line ФД: 28687 [13:21:16]line ФПД: 28211069134440 [13:21:17]line 1/tax-web-control/client/api/v1/ticket?date=20240412T132123&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28687&fm=28211069134440&tin=02508201610067®Number=0000138879044617&sum=50000 [13:21:17]OFD Sender: Processing packet 28687 [packets to send 8, broken 7] [13:21:17]ProducePacketName [13:21:17]name=ofd_packets/00028687 [13:21:17]OFD Sender: To server: pG, [13:21:17]CommunicateWithHost lk.salyk.kg:30040 [13:21:17]ConnectInit lk.salyk.kg [13:21:17]written 0, free lines is 4095 [13:21:17]Connected sock=5 [13:21:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 36 0F 07 01 C3 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 53 35 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0F 70 00 00 35 04 06 00 19 A8 66 C1 26 68 57 D9 A4 7A 2E DB B0 95 [13:21:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 03 5F 47 00 86 B4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0F 70 00 00 F4 03 04 00 FD DF 18 66 B6 04 01 00 00 41 C6 CE 9C 85 6A 22 42 [13:21:17]CommunicateWithHost err = 0 [13:21:17]CheckOFDResponse [13:21:17]1017 (14) - 77093643461234 [13:21:17]1041 (16) - 0000000000963154 [13:21:17]1040 (4) - 28687 [13:21:17]1012 (4) - 12.04.2024 07:17 [13:21:17]1206 (1) - 0 [13:21:17]OFD Sender: Remove packet 28687 [13:21:17]ProducePacketName [13:21:17]name=ofd_packets/00028687 [13:21:17]NVStorageDeleteData [13:21:17]Write to MH i2c: 01 00 00 E7 81 68 [13:21:17]Write i2c OK [13:21:17]MH_I2C_Read... [13:21:17]Read from MH i2c: 01 [13:21:17]MH_I2C_Read... [13:21:17]Read from MH i2c: 01 07 00 [13:21:17]MH_I2C_Read... [13:21:17]Read from MH i2c: 01 07 00 E7 81 00 00 00 00 00 CC 0C 47 [13:21:17]RasterBufferAndPrint [13:21:17]line [13:21:17]line [13:21:17]line [13:21:17]line [13:21:17]line [13:21:17]written 0, free lines is 3282 [13:21:17]MH_Cut [13:21:17]Write to MH i2c: D1 01 00 EE 81 01 41 [13:21:17]Write i2c OK [13:21:17]MH_I2C_Read... [13:21:17]Read from MH i2c: D1 [13:21:17]MH_I2C_Read... [13:21:17]Read from MH i2c: D1 01 00 [13:21:17]MH_I2C_Read... [13:21:17]Read from MH i2c: D1 01 00 EE 81 00 40 [13:21:17]Write to MH i2c: 01 00 00 EF 81 70 [13:21:17]Write i2c OK [13:21:17]MH_I2C_Read... [13:21:17]OFD Sender: No OFD packet to send [13:21:18]*** Cut start [13:21:18]*** Partial cut [13:21:18]*** CUTSNS_PIN = 1 [13:21:18]*** CUTSNS_PIN = 0 [13:21:18]*** Brake cut motor [13:21:18]Read from MH i2c: 01 [13:21:18]MH_I2C_Read... [13:21:18]*** Stop cut motor [13:21:18]*** Cut end [13:21:18]Read from MH i2c: 01 07 00 [13:21:18]MH_I2C_Read... [13:21:18]Read from MH i2c: 01 07 00 EF 81 00 00 00 00 00 FF 0F 85 [13:21:18]process_action close_receipt done [13:21:18]requested_data is exist [13:21:18]produce_requested_data [13:21:18]requested_item fm.sn is exist - process it [13:21:18]wFMCommunicate request_size=4 [13:21:18]MH_SAM_APDU [13:21:18]CAPDU: 80 11 00 00 [13:21:18]Write to MH i2c: E2 08 00 F0 81 80 11 00 00 00 00 00 00 EB [13:21:18]Write i2c OK [13:21:18]MH_I2C_Read... [13:21:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:21:18]Read from MH i2c: E2 [13:21:18]MH_I2C_Read... [13:21:18]Read from MH i2c: E2 17 00 [13:21:18]MH_I2C_Read... [13:21:18]Read from MH i2c: E2 17 00 F0 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 3A [13:21:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:21:18]wFMCommunicate OK [13:21:18]requested_item fd.num is exist - process it [13:21:18]SAM_PROTO_GetFieldsCounters [13:21:18]wFMCommunicate request_size=4 [13:21:18]MH_SAM_APDU [13:21:18]CAPDU: 80 13 00 00 [13:21:18]Write to MH i2c: E2 08 00 F1 81 80 13 00 00 00 00 00 00 EE [13:21:18]Write i2c OK [13:21:18]MH_I2C_Read... [13:21:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:21:19]Read from MH i2c: E2 [13:21:19]MH_I2C_Read... [13:21:19]Read from MH i2c: E2 62 00 [13:21:19]MH_I2C_Read... [13:21:19]Read from MH i2c: E2 62 00 F1 81 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 0F 70 00 00 0E 04 04 00 71 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 B4 [13:21:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 0F 70 00 00 0E 04 04 00 71 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 [13:21:19]wFMCommunicate OK [13:21:19]SAM_PROTO_GetFieldsCounters done [13:21:19]requested_item shift.num is exist - process it [13:21:19]requested_item shift.opened is exist - process it [13:21:19]req_shift_opened [13:21:19]FM_GetShiftState [13:21:19]SAM_PROTO_GetShiftState [13:21:19]wFMCommunicate request_size=4 [13:21:19]MH_SAM_APDU [13:21:19]CAPDU: 80 13 01 00 [13:21:19]Write to MH i2c: E2 08 00 F2 81 80 13 01 00 00 00 00 00 F0 [13:21:19]Write i2c OK [13:21:19]MH_I2C_Read... [13:21:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:21:19]Read from MH i2c: E2 [13:21:19]MH_I2C_Read... [13:21:19]Read from MH i2c: E2 0E 00 [13:21:19]MH_I2C_Read... [13:21:19]Read from MH i2c: E2 0E 00 F2 81 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 01 [13:21:19]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [13:21:19]wFMCommunicate OK [13:21:19]SAM_PROTO_GetShiftState done [13:21:19]FM_GetShiftState done [13:21:19]req_shift_opened done [13:21:19]requested_item shift.open_date is exist - process it [13:21:19]req_shift_open_date [13:21:19]req_shift_open_date done [13:21:19]produce_requested_data done [13:21:19]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28687,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [13:21:19]process_action_free close_receipt [13:21:19]json_value_free [13:21:19]json_value_free done [13:21:19]process_json_proto returns [13:21:19]Send response to host [13:21:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28687,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [13:21:19]free response buf [13:21:19]execute_script done [13:21:19]execute_script returns [13:21:19]free content buf [13:21:19]Sock 6.Close socket [13:21:19]Sock 6.Thread stoped [13:21:22]OFD Sender: No OFD packet to send [13:21:27]OFD Sender: No OFD packet to send [13:21:32]OFD Sender: No OFD packet to send [13:21:37]OFD Sender: No OFD packet to send [13:21:42]OFD Sender: No OFD packet to send [13:21:47]OFD Sender: No OFD packet to send [13:21:52]OFD Sender: No OFD packet to send [13:21:57]OFD Sender: No OFD packet to send [13:22:02]OFD Sender: No OFD packet to send [13:22:07]OFD Sender: No OFD packet to send [13:22:12]OFD Sender: No OFD packet to send [13:22:17]OFD Sender: No OFD packet to send [13:22:22]OFD Sender: No OFD packet to send [13:22:27]OFD Sender: No OFD packet to send [13:22:32]OFD Sender: No OFD packet to send [13:22:37]OFD Sender: No OFD packet to send [13:22:42]OFD Sender: No OFD packet to send [13:22: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:31]accept exits with 7 [13:23:31]New connection [13:23:31]New thread 3066641764 created [13:23:31]Thread 3066498404 joined [13:23:31]Waiting for new connection... [13:23:31] Sock 7.Parse request [13:23:31]Sock 7.Check first char [13:23:31]Sock 7.First char is OK [13:23:31]request: POST /json_proto HTTP/1.0 [13:23:31]Method: POST [13:23:31]URL: /json_proto [13:23:31]Method is POST - this is cgi request [13:23:31]url: /json_proto [13:23:31]query_string will be loaded in cgi processing [13:23:31]execute_cgi json_proto POST (null) [13:23:31]execute_cgi path=json_proto method=POST [13:23:31]POST find Content-Length [13:23:31]Host: 172.17.33.3:8080 [13:23:31]Content-Length: 685 [13:23:31]Content-Type: application/json [13:23:31] [13:23:31]POST finish read [13:23:31]Found Content-Length = 685 [13:23:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347021", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 36.480, "sum" : 1200.19, "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" ] } } [13:23:31]execute_script... [13:23: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)347021", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 36.480, "sum" : 1200.19, "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" ] } } [13:23:31]POST & json_proto [13:23:31]process_json_proto [13:23:31]json parsed OK: [13:23:31]protocol is kg_v1.0 [13:23:31]action value=close_receipt [13:23:31]process_action close_receipt [13:23:31]cmd_close_receipt [13:23:31]MH_GetDate [13:23:31]Write to MH i2c: F0 00 00 F3 81 63 [13:23:31]Write i2c OK [13:23:31]MH_I2C_Read... [13:23:31]Read from MH i2c: F0 [13:23:31]MH_I2C_Read... [13:23:31]Read from MH i2c: F0 09 00 [13:23:31]MH_I2C_Read... [13:23:31]Read from MH i2c: F0 09 00 F3 81 00 DB 35 19 66 23 5B 8F 65 6D [13:23:31]GetLastDocTimeStamp 1712928083 [13:23:31]current date 1712928219 [13:23:31]FM_GetShiftState [13:23:31]SAM_PROTO_GetShiftState [13:23:31]wFMCommunicate request_size=4 [13:23:31]MH_SAM_APDU [13:23:31]CAPDU: 80 13 01 00 [13:23:31]Write to MH i2c: E2 08 00 F4 81 80 13 01 00 00 00 00 00 F2 [13:23:31]Write i2c OK [13:23:31]MH_I2C_Read... [13:23:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:23:31]Read from MH i2c: E2 [13:23:31]MH_I2C_Read... [13:23:31]Read from MH i2c: E2 0E 00 [13:23:31]MH_I2C_Read... [13:23:31]Read from MH i2c: E2 0E 00 F4 81 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 03 [13:23:31]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [13:23:31]wFMCommunicate OK [13:23:31]SAM_PROTO_GetShiftState done [13:23:31]FM_GetShiftState done [13:23:31]opened in 1712881416 [13:23:31]opened+sec_in_day 1712967816 [13:23:31]quantity*price = 120019 [13:23:31]sum+1 = 120020 [13:23:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 137 12.04.2024 13:23 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28688 ФПД: 159928497499037 1/tax-web-control/client/api/v1/ticket?date=20240412T132339&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28688&fm=159928497499037&tin=02508201610067®Number=0000138879044617&sum=120000 [13:23:32]StoreToDocumentArchive [13:23:32]shift 113 fd 28688 [13:23:32]save to /storage/0113/doc_00028688 [13:23:32]save last doc name /storage/0113/doc_00028688 to /storage/kkm_last_doc_name [13:23:32]save OK [13:23:32]Clear old archive folders... [13:23:32]ProcessDocumentItem done err = 0, tmpTLVsize=250 [13:23:32]tlvbuf is 01BB1A50 [13:23:32]SAM_PROTO_ClearQueue [13:23:32]wFMCommunicate request_size=4 [13:23:32]MH_SAM_APDU [13:23:32]CAPDU: 80 09 00 00 [13:23:32]Write to MH i2c: E2 08 00 01 82 80 09 00 00 00 00 00 00 F5 [13:23:32]Write i2c OK [13:23:32]MH_I2C_Read... [13:23:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:23:32]Read from MH i2c: E2 [13:23:32]MH_I2C_Read... [13:23:32]Read from MH i2c: E2 03 00 [13:23:32]MH_I2C_Read... [13:23:32]Read from MH i2c: E2 03 00 01 82 00 90 00 F7 [13:23:32]RAPDU: 90 00 [13:23:32]wFMCommunicate OK [13:23:32]SAM_PROTO_ClearQueue done [13:23:32]KKMCreateOFDPacket [13:23:32]OFDProtocolAddRootSTLVToBuf [13:23:32]FM_MakeSignedData [13:23:32]FM_MakeSignedData [13:23:32]SAM_PROTO_SignData [13:23:32]wFMCommunicate request_size=4 [13:23:32]MH_SAM_APDU [13:23:32]CAPDU: 80 0D 01 02 [13:23:32]Write to MH i2c: E2 08 00 02 82 80 0D 01 02 00 00 00 00 FD [13:23:32]Write i2c OK [13:23:32]MH_I2C_Read... [13:23:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:23:32]Read from MH i2c: E2 [13:23:32]MH_I2C_Read... [13:23:32]Read from MH i2c: E2 03 00 [13:23:32]MH_I2C_Read... [13:23:32]Read from MH i2c: E2 03 00 02 82 00 90 00 F8 [13:23:32]RAPDU: 90 00 [13:23:32]wFMCommunicate OK [13:23:32]wFMCommunicate request_size=255 [13:23:32]MH_SAM_APDU [13:23:32]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 80 8E 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 D3 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 89 00 00 00 F4 03 04 00 DB 35 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 10 70 00 00 35 04 06 00 91 74 [13:23:32]Write to MH i2c: E2 02 01 03 82 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 80 8E 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 D3 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 89 00 00 00 F4 03 04 00 DB 35 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 10 70 00 00 35 04 06 00 91 74 00 00 CC [13:23:32]Write i2c OK [13:23:32]MH_I2C_Read... [13:23:32]Read from MH i2c: E2 [13:23:32]MH_I2C_Read... [13:23:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:23:32]Read from MH i2c: E2 03 00 [13:23:32]MH_I2C_Read... [13:23:32]Read from MH i2c: E2 03 00 03 82 00 90 00 F9 [13:23:32]RAPDU: 90 00 [13:23:32]wFMCommunicate OK [13:23:32]wFMCommunicate request_size=9 [13:23:32]MH_SAM_APDU [13:23:32]CAPDU: 80 0D 02 02 04 41 48 6B 9D [13:23:32]Write to MH i2c: E2 0C 00 04 82 80 0D 02 02 04 00 41 48 6B 9D 00 00 99 [13:23:32]Write i2c OK [13:23:32]MH_I2C_Read... [13:23:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:23:32]Read from MH i2c: E2 [13:23:32]MH_I2C_Read... [13:23:32]Read from MH i2c: E2 03 00 [13:23:32]MH_I2C_Read... [13:23:32]Read from MH i2c: E2 03 00 04 82 00 90 00 FA [13:23:32]RAPDU: 90 00 [13:23:32]wFMCommunicate OK [13:23:32]wFMCommunicate request_size=4 [13:23:32]MH_SAM_APDU [13:23:32]CAPDU: 80 0D 03 02 [13:23:32]Write to MH i2c: E2 08 00 05 82 80 0D 03 02 00 00 00 00 02 [13:23:32]Write i2c OK [13:23:32]MH_I2C_Read... [13:23:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:23:32]Read from MH i2c: E2 [13:23:32]MH_I2C_Read... [13:23:32]Read from MH i2c: E2 0B 00 [13:23:32]MH_I2C_Read... [13:23:32]Read from MH i2c: E2 0B 00 05 82 00 AD 50 CA 56 35 BC B7 0F 90 00 D7 [13:23:32]RAPDU: AD 50 CA 56 35 BC B7 0F 90 00 [13:23:32]wFMCommunicate OK [13:23:32]SAM_PROTO_SignData done [13:23:32]FM_MakeSignedData done [13:23:32]CreateOFDProtocolMessage [13:23:32]wFMCommunicate request_size=4 [13:23:32]MH_SAM_APDU [13:23:32]CAPDU: 80 11 00 00 [13:23:32]Write to MH i2c: E2 08 00 06 82 80 11 00 00 00 00 00 00 02 [13:23:32]Write i2c OK [13:23:32]MH_I2C_Read... [13:23:32]OFD Sender: No OFD packet to send [13:23:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:23:32]Read from MH i2c: E2 [13:23:32]MH_I2C_Read... [13:23:32]Read from MH i2c: E2 17 00 [13:23:32]MH_I2C_Read... [13:23:32]Read from MH i2c: E2 17 00 06 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 51 [13:23:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:23:32]wFMCommunicate OK [13:23:32]CreateOFDProtocolMessage done [13:23:32]OFDSenderStorePacket 28688 [13:23:32]StoreOFDPacket docnum=28688 [13:23:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 95 1A 06 01 9A B6 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 80 8E 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 D3 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 89 00 00 00 F4 03 04 00 DB 35 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 10 70 00 00 35 04 06 00 91 74 41 48 6B 9D AD 50 CA 56 35 BC B7 0F [13:23:32]CheckFolder [13:23:32]dirname=/storage/ofd_packets [13:23:32]CheckFolder done [13:23:32]ProducePacketName [13:23:32]name=ofd_packets/00028688 [13:23:32]NVStorageSaveData ofd_packets/00028688 [13:23:32]File name is /storage/ofd_packets/00028688 [13:23:32]Write 300 bytes [13:23:32]NVStorageSaveData done [13:23:32]OFDSenderStorePacket done [13:23:32]KKMCreateOFDPacket done [13:23:32]NVStorageSaveData kkm_last_timestamp [13:23:32]File name is /storage/kkm_last_timestamp [13:23:32]Write 4 bytes [13:23:32]NVStorageSaveData done [13:23:32]ExternCall_PrintAddStr [13:23:32]wPrintStart [13:23:32]Write to MH i2c: 01 00 00 07 82 89 [13:23:32]Write i2c OK [13:23:32]MH_I2C_Read... [13:23:32]Read from MH i2c: 01 [13:23:32]MH_I2C_Read... [13:23:32]Read from MH i2c: 01 07 00 [13:23:32]MH_I2C_Read... [13:23:32]Read from MH i2c: 01 07 00 07 82 00 00 00 00 00 FF 0F 9E [13:23:32]RasterBufferAndPrint [13:23:32]line Счет N : (1)347021 [13:23:32]line ИНН: 02508201610067 [13:23:32]line Контрольно-Кассовый Чек [13:23:32]line ПРОДАЖА [13:23:32]line ТРК (МРК, ГНК) : 71 [13:23:32]line Товар: 2711129700 [13:23:32]line ГАЗ-К-5 [13:23:32]line 36.480 * 32.90 [13:23:32]line = 1200.19 [13:23:32]line НДС 12% НСП 1% [13:23:32]line > о реализуемом товаре [13:23:32]line ОКРУГЛЕНИЕ: -0.19 [13:23:32]line ИТОГО: 1200.00 [13:23:32]line Внесено: 1200.00 [13:23:32]line СДАЧА: 0.00 [13:23:32]line НСП 1% : 10.62 [13:23:32]line НДС 12% : 127.45 [13:23:32]line Наличными: 1200.00 [13:23:32]line Безнал.: 0.00 [13:23:32]line Место: АЗС № 108 "Партнер Нефть" [13:23:32]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [13:23:32]line СНО: Общий режим [13:23:32]line Чек 137 12.04.2024 13:23 [13:23:32]line Смена: 113 ФФД: 1.0 [13:23:32]line ЗНМ: 0300000027 [13:23:32]line РНМ: 0000138879044617 [13:23:32]line Версия ККМ: 001 [13:23:32]line ФМ: 0000000000963154 [13:23:32]line ФД: 28688 [13:23:32]line ФПД: 159928497499037 [13:23:33]line 1/tax-web-control/client/api/v1/ticket?date=20240412T132339&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28688&fm=159928497499037&tin=02508201610067®Number=0000138879044617&sum=120000 [13:23:33]OFD Sender: Processing packet 28688 [packets to send 8, broken 7] [13:23:33]ProducePacketName [13:23:33]name=ofd_packets/00028688 [13:23:33]OFD Sender: To server: pG, [13:23:33]CommunicateWithHost lk.salyk.kg:30040 [13:23:33]ConnectInit lk.salyk.kg [13:23:33]written 0, free lines is 4095 [13:23:33]Connected sock=6 [13:23:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 95 1A 06 01 9A B6 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 80 8E 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 D3 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 89 00 00 00 F4 03 04 00 DB 35 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 10 70 00 00 35 04 06 00 91 74 41 48 6B 9D AD 50 CA 56 35 BC B7 0F [13:23:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 C1 49 47 00 F6 BE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 10 70 00 00 F4 03 04 00 85 E0 18 66 B6 04 01 00 00 44 1C 62 65 07 21 DD 20 [13:23:33]CommunicateWithHost err = 0 [13:23:33]CheckOFDResponse [13:23:33]1017 (14) - 77093643461234 [13:23:33]1041 (16) - 0000000000963154 [13:23:33]1040 (4) - 28688 [13:23:33]1012 (4) - 12.04.2024 07:19 [13:23:33]1206 (1) - 0 [13:23:33]OFD Sender: Remove packet 28688 [13:23:33]ProducePacketName [13:23:33]name=ofd_packets/00028688 [13:23:33]NVStorageDeleteData [13:23:33]Write to MH i2c: 01 00 00 31 82 B3 [13:23:33]Write i2c OK [13:23:33]MH_I2C_Read... [13:23:33]Read from MH i2c: 01 [13:23:33]MH_I2C_Read... [13:23:33]Read from MH i2c: 01 07 00 [13:23:33]MH_I2C_Read... [13:23:33]Read from MH i2c: 01 07 00 31 82 00 00 00 00 00 D2 0C 98 [13:23:33]RasterBufferAndPrint [13:23:33]line [13:23:33]line [13:23:33]line [13:23:33]line [13:23:33]line [13:23:33]written 0, free lines is 3288 [13:23:33]MH_Cut [13:23:33]Write to MH i2c: D1 01 00 38 82 01 8C [13:23:33]Write i2c OK [13:23:33]MH_I2C_Read... [13:23:33]Read from MH i2c: D1 [13:23:33]MH_I2C_Read... [13:23:33]Read from MH i2c: D1 01 00 [13:23:33]MH_I2C_Read... [13:23:33]Read from MH i2c: D1 01 00 38 82 00 8B [13:23:33]Write to MH i2c: 01 00 00 39 82 BB [13:23:33]Write i2c OK [13:23:33]MH_I2C_Read... [13:23:34]OFD Sender: No OFD packet to send [13:23:34]*** Cut start [13:23:34]*** Partial cut [13:23:34]*** CUTSNS_PIN = 1 [13:23:34]*** CUTSNS_PIN = 0 [13:23:34]*** Brake cut motor [13:23:35]Read from MH i2c: 01 [13:23:35]MH_I2C_Read... [13:23:35]*** Stop cut motor [13:23:35]*** Cut end [13:23:35]Read from MH i2c: 01 07 00 [13:23:35]MH_I2C_Read... [13:23:35]Read from MH i2c: 01 07 00 39 82 00 00 00 00 00 FF 0F D0 [13:23:35]process_action close_receipt done [13:23:35]requested_data is exist [13:23:35]produce_requested_data [13:23:35]requested_item fm.sn is exist - process it [13:23:35]wFMCommunicate request_size=4 [13:23:35]MH_SAM_APDU [13:23:35]CAPDU: 80 11 00 00 [13:23:35]Write to MH i2c: E2 08 00 3A 82 80 11 00 00 00 00 00 00 36 [13:23:35]Write i2c OK [13:23:35]MH_I2C_Read... [13:23:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:23:35]Read from MH i2c: E2 [13:23:35]MH_I2C_Read... [13:23:35]Read from MH i2c: E2 17 00 [13:23:35]MH_I2C_Read... [13:23:35]Read from MH i2c: E2 17 00 3A 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 85 [13:23:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:23:35]wFMCommunicate OK [13:23:35]requested_item fd.num is exist - process it [13:23:35]SAM_PROTO_GetFieldsCounters [13:23:35]wFMCommunicate request_size=4 [13:23:35]MH_SAM_APDU [13:23:35]CAPDU: 80 13 00 00 [13:23:35]Write to MH i2c: E2 08 00 3B 82 80 13 00 00 00 00 00 00 39 [13:23:35]Write i2c OK [13:23:35]MH_I2C_Read... [13:23:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:23:35]Read from MH i2c: E2 [13:23:35]MH_I2C_Read... [13:23:35]Read from MH i2c: E2 62 00 [13:23:35]MH_I2C_Read... [13:23:35]Read from MH i2c: E2 62 00 3B 82 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 10 70 00 00 0E 04 04 00 71 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 03 [13:23:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 10 70 00 00 0E 04 04 00 71 00 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:23:35]wFMCommunicate OK [13:23:35]SAM_PROTO_GetFieldsCounters done [13:23:35]requested_item shift.num is exist - process it [13:23:35]requested_item shift.opened is exist - process it [13:23:35]req_shift_opened [13:23:35]FM_GetShiftState [13:23:35]SAM_PROTO_GetShiftState [13:23:35]wFMCommunicate request_size=4 [13:23:35]MH_SAM_APDU [13:23:35]CAPDU: 80 13 01 00 [13:23:35]Write to MH i2c: E2 08 00 3C 82 80 13 01 00 00 00 00 00 3B [13:23:35]Write i2c OK [13:23:35]MH_I2C_Read... [13:23:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:23:35]Read from MH i2c: E2 [13:23:35]MH_I2C_Read... [13:23:35]Read from MH i2c: E2 0E 00 [13:23:35]MH_I2C_Read... [13:23:35]Read from MH i2c: E2 0E 00 3C 82 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 4C [13:23:35]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [13:23:35]wFMCommunicate OK [13:23:35]SAM_PROTO_GetShiftState done [13:23:35]FM_GetShiftState done [13:23:35]req_shift_opened done [13:23:35]requested_item shift.open_date is exist - process it [13:23:35]req_shift_open_date [13:23:35]req_shift_open_date done [13:23:35]produce_requested_data done [13:23:35]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28688,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [13:23:35]process_action_free close_receipt [13:23:35]json_value_free [13:23:35]json_value_free done [13:23:35]process_json_proto returns [13:23:35]Send response to host [13:23:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28688,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [13:23:35]free response buf [13:23:35]execute_script done [13:23:35]execute_script returns [13:23:35]free content buf [13:23:35]Sock 7.Close socket [13:23:35]Sock 7.Thread stoped [13:23:39]OFD Sender: No OFD packet to send [13:23:44]OFD Sender: No OFD packet to send [13:23:49]OFD Sender: No OFD packet to send [13:23:54]OFD Sender: No OFD packet to send [13:23:59]OFD Sender: No OFD packet to send [13:24:04]OFD Sender: No OFD packet to send [13:24:09]OFD Sender: No OFD packet to send [13:24:14]OFD Sender: No OFD packet to send [13:24:19]OFD Sender: No OFD packet to send [13:24:24]OFD Sender: No OFD packet to send [13:24:29]OFD Sender: No OFD packet to send [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:25]accept exits with 5 [13:26:25]New connection [13:26:25]New thread 3066498404 created [13:26:25]Thread 3066641764 joined [13:26:25]Waiting for new connection... [13:26:25] Sock 5.Parse request [13:26:25]Sock 5.Check first char [13:26:25]Sock 5.First char is OK [13:26:25]request: POST /json_proto HTTP/1.0 [13:26:25]Method: POST [13:26:25]URL: /json_proto [13:26:25]Method is POST - this is cgi request [13:26:25]url: /json_proto [13:26:25]query_string will be loaded in cgi processing [13:26:25]execute_cgi json_proto POST (null) [13:26:25]execute_cgi path=json_proto method=POST [13:26:25]POST find Content-Length [13:26:25]Host: 172.17.33.3:8080 [13:26:25]Content-Length: 679 [13:26:25]Content-Type: application/json [13:26:25] [13:26:25]POST finish read [13:26:25]Found Content-Length = 679 [13:26:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347022", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 13.820, "sum" : 1000.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:26:25]execute_script... [13:26: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)347022", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 13.820, "sum" : 1000.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:26:25]POST & json_proto [13:26:25]process_json_proto [13:26:25]json parsed OK: [13:26:25]protocol is kg_v1.0 [13:26:25]action value=close_receipt [13:26:25]process_action close_receipt [13:26:25]cmd_close_receipt [13:26:25]MH_GetDate [13:26:25]Write to MH i2c: F0 00 00 3D 82 AE [13:26:25]Write i2c OK [13:26:25]MH_I2C_Read... [13:26:25]Read from MH i2c: F0 [13:26:25]MH_I2C_Read... [13:26:25]Read from MH i2c: F0 09 00 [13:26:25]MH_I2C_Read... [13:26:25]Read from MH i2c: F0 09 00 3D 82 00 8A 36 19 66 23 5B 8F 65 68 [13:26:25]GetLastDocTimeStamp 1712928219 [13:26:25]current date 1712928394 [13:26:25]FM_GetShiftState [13:26:25]SAM_PROTO_GetShiftState [13:26:25]wFMCommunicate request_size=4 [13:26:25]MH_SAM_APDU [13:26:25]CAPDU: 80 13 01 00 [13:26:25]Write to MH i2c: E2 08 00 3E 82 80 13 01 00 00 00 00 00 3D [13:26:25]Write i2c OK [13:26:25]MH_I2C_Read... [13:26:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:26:26]Read from MH i2c: E2 [13:26:26]MH_I2C_Read... [13:26:26]Read from MH i2c: E2 0E 00 [13:26:26]MH_I2C_Read... [13:26:26]Read from MH i2c: E2 0E 00 3E 82 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 4E [13:26:26]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [13:26:26]wFMCommunicate OK [13:26:26]SAM_PROTO_GetShiftState done [13:26:26]FM_GetShiftState done [13:26:26]opened in 1712881416 [13:26:26]opened+sec_in_day 1712967816 [13:26:26]quantity*price = 100056 [13:26:26]sum+1 = 100058 [13:26:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 138 12.04.2024 13:26 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28689 ФПД: 188150927014285 1/tax-web-control/client/api/v1/ticket?date=20240412T132634&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28689&fm=188150927014285&tin=02508201610067®Number=0000138879044617&sum=100000 [13:26:27]StoreToDocumentArchive [13:26:27]shift 113 fd 28689 [13:26:27]save to /storage/0113/doc_00028689 [13:26:27]save last doc name /storage/0113/doc_00028689 to /storage/kkm_last_doc_name [13:26:27]save OK [13:26:27]Clear old archive folders... [13:26:27]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:26:27]tlvbuf is 01AE1B60 [13:26:27]SAM_PROTO_ClearQueue [13:26:27]wFMCommunicate request_size=4 [13:26:27]MH_SAM_APDU [13:26:27]CAPDU: 80 09 00 00 [13:26:27]Write to MH i2c: E2 08 00 4B 82 80 09 00 00 00 00 00 00 3F [13:26:27]Write i2c OK [13:26:27]MH_I2C_Read... [13:26:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:26:27]Read from MH i2c: E2 [13:26:27]MH_I2C_Read... [13:26:27]Read from MH i2c: E2 03 00 [13:26:27]MH_I2C_Read... [13:26:27]Read from MH i2c: E2 03 00 4B 82 00 90 00 41 [13:26:27]RAPDU: 90 00 [13:26:27]wFMCommunicate OK [13:26:27]SAM_PROTO_ClearQueue done [13:26:27]KKMCreateOFDPacket [13:26:27]OFDProtocolAddRootSTLVToBuf [13:26:27]FM_MakeSignedData [13:26:27]FM_MakeSignedData [13:26:27]SAM_PROTO_SignData [13:26:27]wFMCommunicate request_size=4 [13:26:27]MH_SAM_APDU [13:26:27]CAPDU: 80 0D 01 02 [13:26:27]Write to MH i2c: E2 08 00 4C 82 80 0D 01 02 00 00 00 00 47 [13:26:27]Write i2c OK [13:26:27]MH_I2C_Read... [13:26:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:26:27]Read from MH i2c: E2 [13:26:27]MH_I2C_Read... [13:26:27]Read from MH i2c: E2 03 00 [13:26:27]MH_I2C_Read... [13:26:27]Read from MH i2c: E2 03 00 4C 82 00 90 00 42 [13:26:27]RAPDU: 90 00 [13:26:27]wFMCommunicate OK [13:26:27]wFMCommunicate request_size=255 [13:26:27]MH_SAM_APDU [13:26: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 35 FF 03 08 00 03 FC 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D9 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 8A 00 00 00 F4 03 04 00 8A 36 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 11 70 00 00 35 04 06 00 AB 1F 4D 2B [13:26:27]Write to MH i2c: E2 02 01 4D 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 35 FF 03 08 00 03 FC 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D9 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 8A 00 00 00 F4 03 04 00 8A 36 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 11 70 00 00 35 04 06 00 AB 1F 4D 2B 00 00 23 [13:26:27]Write i2c OK [13:26:27]MH_I2C_Read... [13:26:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:26:27]Read from MH i2c: E2 [13:26:27]MH_I2C_Read... [13:26:27]Read from MH i2c: E2 03 00 [13:26:27]MH_I2C_Read... [13:26:27]Read from MH i2c: E2 03 00 4D 82 00 90 00 43 [13:26:27]RAPDU: 90 00 [13:26:27]wFMCommunicate OK [13:26:27]wFMCommunicate request_size=7 [13:26:27]MH_SAM_APDU [13:26:27]CAPDU: 80 0D 02 02 02 39 8D [13:26:27]Write to MH i2c: E2 0A 00 4E 82 80 0D 02 02 02 00 39 8D 00 00 14 [13:26:27]Write i2c OK [13:26:27]MH_I2C_Read... [13:26:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:26:27]Read from MH i2c: E2 [13:26:27]MH_I2C_Read... [13:26:27]Read from MH i2c: E2 03 00 [13:26:27]MH_I2C_Read... [13:26:27]Read from MH i2c: E2 03 00 4E 82 00 90 00 44 [13:26:27]RAPDU: 90 00 [13:26:27]wFMCommunicate OK [13:26:27]wFMCommunicate request_size=4 [13:26:27]MH_SAM_APDU [13:26:27]CAPDU: 80 0D 03 02 [13:26:27]Write to MH i2c: E2 08 00 4F 82 80 0D 03 02 00 00 00 00 4C [13:26:27]Write i2c OK [13:26:27]MH_I2C_Read... [13:26:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:26:27]Read from MH i2c: E2 [13:26:27]MH_I2C_Read... [13:26:27]Read from MH i2c: E2 0B 00 [13:26:27]MH_I2C_Read... [13:26:27]Read from MH i2c: E2 0B 00 4F 82 00 23 6D C3 D8 0E 95 D8 34 90 00 27 [13:26:27]RAPDU: 23 6D C3 D8 0E 95 D8 34 90 00 [13:26:27]wFMCommunicate OK [13:26:27]SAM_PROTO_SignData done [13:26:27]FM_MakeSignedData done [13:26:27]CreateOFDProtocolMessage [13:26:27]wFMCommunicate request_size=4 [13:26:27]MH_SAM_APDU [13:26:27]CAPDU: 80 11 00 00 [13:26:27]Write to MH i2c: E2 08 00 50 82 80 11 00 00 00 00 00 00 4C [13:26:27]Write i2c OK [13:26:27]MH_I2C_Read... [13:26:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:26:27]Read from MH i2c: E2 [13:26:27]MH_I2C_Read... [13:26:27]Read from MH i2c: E2 17 00 [13:26:27]MH_I2C_Read... [13:26:27]Read from MH i2c: E2 17 00 50 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 9B [13:26:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:26:27]wFMCommunicate OK [13:26:27]CreateOFDProtocolMessage done [13:26:27]OFDSenderStorePacket 28689 [13:26:27]StoreOFDPacket docnum=28689 [13:26:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 36 27 04 01 45 FD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FC 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D9 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 8A 00 00 00 F4 03 04 00 8A 36 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 11 70 00 00 35 04 06 00 AB 1F 4D 2B 39 8D 23 6D C3 D8 0E 95 D8 34 [13:26:27]CheckFolder [13:26:27]dirname=/storage/ofd_packets [13:26:27]CheckFolder done [13:26:27]ProducePacketName [13:26:27]name=ofd_packets/00028689 [13:26:27]NVStorageSaveData ofd_packets/00028689 [13:26:27]File name is /storage/ofd_packets/00028689 [13:26:27]Write 298 bytes [13:26:27]NVStorageSaveData done [13:26:27]OFDSenderStorePacket done [13:26:27]KKMCreateOFDPacket done [13:26:27]NVStorageSaveData kkm_last_timestamp [13:26:27]File name is /storage/kkm_last_timestamp [13:26:27]Write 4 bytes [13:26:27]NVStorageSaveData done [13:26:27]ExternCall_PrintAddStr [13:26:27]wPrintStart [13:26:27]Write to MH i2c: 01 00 00 51 82 D3 [13:26:27]Write i2c OK [13:26:27]MH_I2C_Read... [13:26:27]Read from MH i2c: 01 [13:26:27]MH_I2C_Read... [13:26:27]Read from MH i2c: 01 07 00 [13:26:27]MH_I2C_Read... [13:26:27]Read from MH i2c: 01 07 00 51 82 00 00 00 00 00 FF 0F E8 [13:26:27]RasterBufferAndPrint [13:26:27]line Счет N : (1)347022 [13:26:27]line ИНН: 02508201610067 [13:26:27]line Контрольно-Кассовый Чек [13:26:27]line ПРОДАЖА [13:26:27]line ТРК (МРК, ГНК) : 21 [13:26:27]line Товар: 2710194210 [13:26:27]line ДТ-К-5 [13:26:27]line 13.820 * 72.40 [13:26:27]line = 1000.57 [13:26:27]line НДС 12% НСП 1% [13:26:27]line > о реализуемом товаре [13:26:27]line ОКРУГЛЕНИЕ: -0.57 [13:26:27]line ИТОГО: 1000.00 [13:26:27]line Внесено: 1000.00 [13:26:27]line СДАЧА: 0.00 [13:26:27]line НСП 1% : 8.85 [13:26:27]line НДС 12% : 106.25 [13:26:27]line Наличными: 1000.00 [13:26:27]line Безнал.: 0.00 [13:26:27]line Место: АЗС № 108 "Партнер Нефть" [13:26:27]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [13:26:27]line СНО: Общий режим [13:26:27]line Чек 138 12.04.2024 13:26 [13:26:27]line Смена: 113 ФФД: 1.0 [13:26:27]line ЗНМ: 0300000027 [13:26:27]line РНМ: 0000138879044617 [13:26:27]line Версия ККМ: 001 [13:26:27]line ФМ: 0000000000963154 [13:26:27]line ФД: 28689 [13:26:27]line ФПД: 188150927014285 [13:26:28]line 1/tax-web-control/client/api/v1/ticket?date=20240412T132634&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28689&fm=188150927014285&tin=02508201610067®Number=0000138879044617&sum=100000 [13:26:28]OFD Sender: Processing packet 28689 [packets to send 8, broken 7] [13:26:28]ProducePacketName [13:26:28]name=ofd_packets/00028689 [13:26:28]OFD Sender: To server: pG, [13:26:28]CommunicateWithHost lk.salyk.kg:30040 [13:26:28]ConnectInit lk.salyk.kg [13:26:28]written 0, free lines is 4095 [13:26:28]Connected sock=7 [13:26:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 36 27 04 01 45 FD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FC 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D9 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 8A 00 00 00 F4 03 04 00 8A 36 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 11 70 00 00 35 04 06 00 AB 1F 4D 2B 39 8D 23 6D C3 D8 0E 95 D8 34 [13:26:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 F4 31 47 00 AA CF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 11 70 00 00 F4 03 04 00 34 E1 18 66 B6 04 01 00 00 61 04 57 C9 49 9A 1E 0A [13:26:28]CommunicateWithHost err = 0 [13:26:28]CheckOFDResponse [13:26:28]1017 (14) - 77093643461234 [13:26:28]1041 (16) - 0000000000963154 [13:26:28]1040 (4) - 28689 [13:26:28]1012 (4) - 12.04.2024 07:22 [13:26:28]1206 (1) - 0 [13:26:28]OFD Sender: Remove packet 28689 [13:26:28]ProducePacketName [13:26:28]name=ofd_packets/00028689 [13:26:28]NVStorageDeleteData [13:26:28]Write to MH i2c: 01 00 00 7B 82 FD [13:26:28]Write i2c OK [13:26:28]MH_I2C_Read... [13:26:28]Read from MH i2c: 01 [13:26:28]MH_I2C_Read... [13:26:28]Read from MH i2c: 01 07 00 [13:26:28]MH_I2C_Read... [13:26:28]Read from MH i2c: 01 07 00 7B 82 00 00 00 00 00 F3 0C 03 [13:26:28]RasterBufferAndPrint [13:26:28]line [13:26:28]line [13:26:28]line [13:26:28]line [13:26:28]line [13:26:28]written 0, free lines is 3321 [13:26:28]MH_Cut [13:26:28]Write to MH i2c: D1 01 00 82 82 01 D6 [13:26:28]Write i2c OK [13:26:28]MH_I2C_Read... [13:26:28]Read from MH i2c: D1 [13:26:28]MH_I2C_Read... [13:26:28]Read from MH i2c: D1 01 00 [13:26:28]MH_I2C_Read... [13:26:28]Read from MH i2c: D1 01 00 82 82 00 D5 [13:26:28]Write to MH i2c: 01 00 00 83 82 05 [13:26:28]Write i2c OK [13:26:28]MH_I2C_Read... [13:26:28]OFD Sender: No OFD packet to send [13:26:29]*** Cut start [13:26:29]*** Partial cut [13:26:29]*** CUTSNS_PIN = 1 [13:26:29]*** CUTSNS_PIN = 0 [13:26:29]*** Brake cut motor [13:26:29]Read from MH i2c: 01 [13:26:29]MH_I2C_Read... [13:26:29]*** Stop cut motor [13:26:29]*** Cut end [13:26:29]Read from MH i2c: 01 07 00 [13:26:29]MH_I2C_Read... [13:26:29]Read from MH i2c: 01 07 00 83 82 00 00 00 00 00 FF 0F 1A [13:26:29]process_action close_receipt done [13:26:29]requested_data is exist [13:26:29]produce_requested_data [13:26:29]requested_item fm.sn is exist - process it [13:26:29]wFMCommunicate request_size=4 [13:26:29]MH_SAM_APDU [13:26:29]CAPDU: 80 11 00 00 [13:26:29]Write to MH i2c: E2 08 00 84 82 80 11 00 00 00 00 00 00 80 [13:26:29]Write i2c OK [13:26:29]MH_I2C_Read... [13:26:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:26:29]Read from MH i2c: E2 [13:26:29]MH_I2C_Read... [13:26:29]Read from MH i2c: E2 17 00 [13:26:29]MH_I2C_Read... [13:26:29]Read from MH i2c: E2 17 00 84 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 CF [13:26:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:26:29]wFMCommunicate OK [13:26:29]requested_item fd.num is exist - process it [13:26:29]SAM_PROTO_GetFieldsCounters [13:26:29]wFMCommunicate request_size=4 [13:26:29]MH_SAM_APDU [13:26:29]CAPDU: 80 13 00 00 [13:26:29]Write to MH i2c: E2 08 00 85 82 80 13 00 00 00 00 00 00 83 [13:26:29]Write i2c OK [13:26:29]MH_I2C_Read... [13:26:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:26:30]Read from MH i2c: E2 [13:26:30]MH_I2C_Read... [13:26:30]Read from MH i2c: E2 62 00 [13:26:30]MH_I2C_Read... [13:26:30]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 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 11 70 00 00 0E 04 04 00 71 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 51 [13:26:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 11 70 00 00 0E 04 04 00 71 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 [13:26:30]wFMCommunicate OK [13:26:30]SAM_PROTO_GetFieldsCounters done [13:26:30]requested_item shift.num is exist - process it [13:26:30]requested_item shift.opened is exist - process it [13:26:30]req_shift_opened [13:26:30]FM_GetShiftState [13:26:30]SAM_PROTO_GetShiftState [13:26:30]wFMCommunicate request_size=4 [13:26:30]MH_SAM_APDU [13:26:30]CAPDU: 80 13 01 00 [13:26:30]Write to MH i2c: E2 08 00 86 82 80 13 01 00 00 00 00 00 85 [13:26:30]Write i2c OK [13:26:30]MH_I2C_Read... [13:26:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:26:30]Read from MH i2c: E2 [13:26:30]MH_I2C_Read... [13:26:30]Read from MH i2c: E2 0E 00 [13:26:30]MH_I2C_Read... [13:26:30]Read from MH i2c: E2 0E 00 86 82 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 96 [13:26:30]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [13:26:30]wFMCommunicate OK [13:26:30]SAM_PROTO_GetShiftState done [13:26:30]FM_GetShiftState done [13:26:30]req_shift_opened done [13:26:30]requested_item shift.open_date is exist - process it [13:26:30]req_shift_open_date [13:26:30]req_shift_open_date done [13:26:30]produce_requested_data done [13:26:30]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28689,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [13:26:30]process_action_free close_receipt [13:26:30]json_value_free [13:26:30]json_value_free done [13:26:30]process_json_proto returns [13:26:30]Send response to host [13:26:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28689,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [13:26:30]free response buf [13:26:30]execute_script done [13:26:30]execute_script returns [13:26:30]free content buf [13:26:30]Sock 5.Close socket [13:26:30]Sock 5.Thread stoped [13:26:33]OFD Sender: No OFD packet to send [13:26:38]OFD Sender: No OFD packet to send [13:26:43]OFD Sender: No OFD packet to send [13:26:48]OFD Sender: No OFD packet to send [13:26:53]OFD Sender: No OFD packet to send [13:26:58]OFD Sender: No OFD packet to send [13:27:03]OFD Sender: No OFD packet to send [13:27:08]OFD Sender: No OFD packet to send [13:27:13]OFD Sender: No OFD packet to send [13:27:18]OFD Sender: No OFD packet to send [13:27:23]OFD Sender: No OFD packet to send [13:27:28]OFD Sender: No OFD packet to send [13:27:33]OFD Sender: No OFD packet to send [13:27:38]OFD Sender: No OFD packet to send [13:27:43]OFD Sender: No OFD packet to send [13:27:48]OFD Sender: No OFD packet to send [13:27:53]OFD Sender: No OFD packet to send [13:27:58]OFD Sender: No OFD packet to send [13:28:03]OFD Sender: No OFD packet to send [13:28:08]OFD Sender: No OFD packet to send [13:28:13]OFD Sender: No OFD packet to send [13:28:18]OFD Sender: No OFD packet to send [13:28:23]OFD Sender: No OFD packet to send [13:28:28]OFD Sender: No OFD packet to send [13:28:33]OFD Sender: No OFD packet to send [13:28:38]OFD Sender: No OFD packet to send [13:28:43]OFD Sender: No OFD packet to send [13:28:48]OFD Sender: No OFD packet to send [13:28:53]OFD Sender: No OFD packet to send [13:28:58]OFD Sender: No OFD packet to send [13:29:03]OFD Sender: No OFD packet to send [13:29:08]OFD Sender: No OFD packet to send [13:29:13]OFD Sender: No OFD packet to send [13:29:18]OFD Sender: No OFD packet to send [13:29:23]OFD Sender: No OFD packet to send [13:29:28]OFD Sender: No OFD packet to send [13:29:33]accept exits with 6 [13:29:33]New connection [13:29:33]New thread 3066641764 created [13:29:33]Thread 3066498404 joined [13:29:33]Waiting for new connection... [13:29:33] Sock 6.Parse request [13:29:33]Sock 6.Check first char [13:29:33]Sock 6.First char is OK [13:29:33]request: POST /json_proto HTTP/1.0 [13:29:33]Method: POST [13:29:33]URL: /json_proto [13:29:33]Method is POST - this is cgi request [13:29:33]url: /json_proto [13:29:33]query_string will be loaded in cgi processing [13:29:33]execute_cgi json_proto POST (null) [13:29:33]execute_cgi path=json_proto method=POST [13:29:33]POST find Content-Length [13:29:33]Host: 172.17.33.3:8080 [13:29:33]Content-Length: 801 [13:29:33]Content-Type: application/json [13:29:33] [13:29:33]POST finish read [13:29:33]Found Content-Length = 801 [13:29:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347023", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 30.630, "sum" : 2000.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.14 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:29:33]execute_script... [13:29: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)347023", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 30.630, "sum" : 2000.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.14 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:29:33]POST & json_proto [13:29:33]process_json_proto [13:29:33]json parsed OK: [13:29:33]protocol is kg_v1.0 [13:29:33]action value=close_receipt [13:29:33]process_action close_receipt [13:29:33]cmd_close_receipt [13:29:33]MH_GetDate [13:29:33]Write to MH i2c: F0 00 00 87 82 F8 [13:29:33]Write i2c OK [13:29:33]MH_I2C_Read... [13:29:33]Read from MH i2c: F0 [13:29:33]MH_I2C_Read... [13:29:33]Read from MH i2c: F0 09 00 [13:29:33]MH_I2C_Read... [13:29:33]Read from MH i2c: F0 09 00 87 82 00 45 37 19 66 23 5B 8F 65 6E [13:29:33]GetLastDocTimeStamp 1712928394 [13:29:33]current date 1712928581 [13:29:33]FM_GetShiftState [13:29:33]SAM_PROTO_GetShiftState [13:29:33]wFMCommunicate request_size=4 [13:29:33]MH_SAM_APDU [13:29:33]CAPDU: 80 13 01 00 [13:29:33]Write to MH i2c: E2 08 00 88 82 80 13 01 00 00 00 00 00 87 [13:29:33]Write i2c OK [13:29:33]MH_I2C_Read... [13:29:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:29:33]Read from MH i2c: E2 [13:29:33]MH_I2C_Read... [13:29:33]Read from MH i2c: E2 0E 00 [13:29:33]MH_I2C_Read... [13:29:33]Read from MH i2c: E2 0E 00 88 82 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 98 [13:29:33]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [13:29:33]wFMCommunicate OK [13:29:33]SAM_PROTO_GetShiftState done [13:29:33]FM_GetShiftState done [13:29:33]opened in 1712881416 [13:29:33]opened+sec_in_day 1712967816 [13:29:33]quantity*price = 200013 [13:29:33]sum+1 = 200015 [13:29:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.14 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 0.00 Безнал.: 2000.14 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 139 12.04.2024 13:29 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 28690 ФПД: 96706660647187 1/tax-web-control/client/api/v1/ticket?date=20240412T132941&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28690&fm=96706660647187&tin=02508201610067®Number=0000138879044617&sum=200014 [13:29:34]StoreToDocumentArchive [13:29:34]shift 113 fd 28690 [13:29:34]save to /storage/0113/doc_00028690 [13:29:34]save last doc name /storage/0113/doc_00028690 to /storage/kkm_last_doc_name [13:29:34]save OK [13:29:34]Clear old archive folders... [13:29:34]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:29:34]tlvbuf is 01B550A0 [13:29:34]SAM_PROTO_ClearQueue [13:29:34]wFMCommunicate request_size=4 [13:29:34]MH_SAM_APDU [13:29:34]CAPDU: 80 09 00 00 [13:29:34]Write to MH i2c: E2 08 00 95 82 80 09 00 00 00 00 00 00 89 [13:29:34]Write i2c OK [13:29:34]MH_I2C_Read... [13:29:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:29:34]Read from MH i2c: E2 [13:29:34]MH_I2C_Read... [13:29:34]Read from MH i2c: E2 03 00 [13:29:34]MH_I2C_Read... [13:29:34]Read from MH i2c: E2 03 00 95 82 00 90 00 8B [13:29:34]RAPDU: 90 00 [13:29:34]wFMCommunicate OK [13:29:34]SAM_PROTO_ClearQueue done [13:29:34]KKMCreateOFDPacket [13:29:34]OFDProtocolAddRootSTLVToBuf [13:29:34]FM_MakeSignedData [13:29:34]FM_MakeSignedData [13:29:34]SAM_PROTO_SignData [13:29:34]wFMCommunicate request_size=4 [13:29:34]MH_SAM_APDU [13:29:34]CAPDU: 80 0D 01 02 [13:29:34]Write to MH i2c: E2 08 00 96 82 80 0D 01 02 00 00 00 00 91 [13:29:34]Write i2c OK [13:29:34]MH_I2C_Read... [13:29:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:29:34]Read from MH i2c: E2 [13:29:34]MH_I2C_Read... [13:29:34]Read from MH i2c: E2 03 00 [13:29:34]MH_I2C_Read... [13:29:34]Read from MH i2c: E2 03 00 96 82 00 90 00 8C [13:29:34]RAPDU: 90 00 [13:29:34]wFMCommunicate OK [13:29:34]wFMCommunicate request_size=255 [13:29:34]MH_SAM_APDU [13:29:34]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 77 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 4E 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4E 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4E 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 45 37 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 12 70 00 00 35 04 06 00 [13:29:34]Write to MH i2c: E2 02 01 97 82 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 77 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 4E 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4E 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4E 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 45 37 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 12 70 00 00 35 04 06 00 00 00 E7 [13:29:34]Write i2c OK [13:29:34]MH_I2C_Read... [13:29:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:29:35]Read from MH i2c: E2 [13:29:35]MH_I2C_Read... [13:29:35]Read from MH i2c: E2 03 00 [13:29:35]MH_I2C_Read... [13:29:35]Read from MH i2c: E2 03 00 97 82 00 90 00 8D [13:29:35]RAPDU: 90 00 [13:29:35]wFMCommunicate OK [13:29:35]wFMCommunicate request_size=11 [13:29:35]MH_SAM_APDU [13:29:35]CAPDU: 80 0D 02 02 06 57 F4 46 27 C1 13 [13:29:35]Write to MH i2c: E2 0E 00 98 82 80 0D 02 02 06 00 57 F4 46 27 C1 13 00 00 2C [13:29:35]Write i2c OK [13:29:35]MH_I2C_Read... [13:29:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:29:35]Read from MH i2c: E2 [13:29:35]MH_I2C_Read... [13:29:35]Read from MH i2c: E2 03 00 [13:29:35]MH_I2C_Read... [13:29:35]Read from MH i2c: E2 03 00 98 82 00 90 00 8E [13:29:35]RAPDU: 90 00 [13:29:35]wFMCommunicate OK [13:29:35]wFMCommunicate request_size=4 [13:29:35]MH_SAM_APDU [13:29:35]CAPDU: 80 0D 03 02 [13:29:35]Write to MH i2c: E2 08 00 99 82 80 0D 03 02 00 00 00 00 96 [13:29:35]Write i2c OK [13:29:35]MH_I2C_Read... [13:29:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:29:35]Read from MH i2c: E2 [13:29:35]MH_I2C_Read... [13:29:35]Read from MH i2c: E2 0B 00 [13:29:35]MH_I2C_Read... [13:29:35]Read from MH i2c: E2 0B 00 99 82 00 D3 B8 60 8B 05 FF D0 E7 90 00 C8 [13:29:35]RAPDU: D3 B8 60 8B 05 FF D0 E7 90 00 [13:29:35]wFMCommunicate OK [13:29:35]SAM_PROTO_SignData done [13:29:35]FM_MakeSignedData done [13:29:35]CreateOFDProtocolMessage [13:29:35]wFMCommunicate request_size=4 [13:29:35]MH_SAM_APDU [13:29:35]CAPDU: 80 11 00 00 [13:29:35]Write to MH i2c: E2 08 00 9A 82 80 11 00 00 00 00 00 00 96 [13:29:35]Write i2c OK [13:29:35]MH_I2C_Read... [13:29:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:29:35]Read from MH i2c: E2 [13:29:35]MH_I2C_Read... [13:29:35]Read from MH i2c: E2 17 00 [13:29:35]MH_I2C_Read... [13:29:35]Read from MH i2c: E2 17 00 9A 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 E5 [13:29:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:29:35]wFMCommunicate OK [13:29:35]CreateOFDProtocolMessage done [13:29:35]OFDSenderStorePacket 28690 [13:29:35]StoreOFDPacket docnum=28690 [13:29:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 94 90 08 01 84 E2 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 77 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 4E 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4E 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4E 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 45 37 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 12 70 00 00 35 04 06 00 57 F4 46 27 C1 13 D3 B8 60 8B 05 FF D0 E7 [13:29:35]CheckFolder [13:29:35]dirname=/storage/ofd_packets [13:29:35]CheckFolder done [13:29:35]ProducePacketName [13:29:35]name=ofd_packets/00028690 [13:29:35]NVStorageSaveData ofd_packets/00028690 [13:29:35]File name is /storage/ofd_packets/00028690 [13:29:35]Write 302 bytes [13:29:35]NVStorageSaveData done [13:29:35]OFDSenderStorePacket done [13:29:35]KKMCreateOFDPacket done [13:29:35]NVStorageSaveData kkm_last_timestamp [13:29:35]File name is /storage/kkm_last_timestamp [13:29:35]Write 4 bytes [13:29:35]NVStorageSaveData done [13:29:35]ExternCall_PrintAddStr [13:29:35]wPrintStart [13:29:35]Write to MH i2c: 01 00 00 9B 82 1D [13:29:35]Write i2c OK [13:29:35]MH_I2C_Read... [13:29:35]Read from MH i2c: 01 [13:29:35]MH_I2C_Read... [13:29:35]Read from MH i2c: 01 07 00 [13:29:35]MH_I2C_Read... [13:29:35]Read from MH i2c: 01 07 00 9B 82 00 00 00 00 00 FF 0F 32 [13:29:35]RasterBufferAndPrint [13:29:35]line Счет N : (1)347023 [13:29:35]line ИНН: 02508201610067 [13:29:35]line Контрольно-Кассовый Чек [13:29:35]line ПРОДАЖА [13:29:35]line ТРК (МРК, ГНК) : 41 [13:29:35]line Товар: 2710124130 [13:29:35]line SUPER-92-К-5 [13:29:35]line 30.630 * 65.30 [13:29:35]line = 2000.14 [13:29:35]line НДС 12% НСП 1% [13:29:35]line > о реализуемом товаре [13:29:35]line ИТОГО: 2000.14 [13:29:35]line НСП 1% : 17.70 [13:29:35]line НДС 12% : 212.40 [13:29:35]line Наличными: 0.00 [13:29:35]line Безнал.: 2000.14 [13:29:35]line Место: АЗС № 108 "Партнер Нефть" [13:29:35]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [13:29:35]line СНО: Общий режим [13:29:35]line Чек 139 12.04.2024 13:29 [13:29:35]line Смена: 113 ФФД: 1.0 [13:29:35]line ЗНМ: 0300000027 [13:29:35]line РНМ: 0000138879044617 [13:29:35]line Версия ККМ: 001 [13:29:35]line Платежная система: О! деньги [13:29:35]line ФМ: 0000000000963154 [13:29:35]line ФД: 28690 [13:29:35]line ФПД: 96706660647187 [13:29:35]line 1/tax-web-control/client/api/v1/ticket?date=20240412T132941&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28690&fm=96706660647187&tin=02508201610067®Number=0000138879044617&sum=200014 [13:29:35]OFD Sender: Processing packet 28690 [packets to send 8, broken 7] [13:29:35]ProducePacketName [13:29:35]name=ofd_packets/00028690 [13:29:35]OFD Sender: To server: pG, [13:29:35]CommunicateWithHost lk.salyk.kg:30040 [13:29:35]ConnectInit lk.salyk.kg [13:29:35]written 0, free lines is 4095 [13:29:35]Connected sock=5 [13:29:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 94 90 08 01 84 E2 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 77 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 4E 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4E 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4E 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 45 37 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 12 70 00 00 35 04 06 00 57 F4 46 27 C1 13 D3 B8 60 8B 05 FF D0 E7 [13:29:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 DA A8 47 00 56 E1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 12 70 00 00 F4 03 04 00 EF E1 18 66 B6 04 01 00 00 75 10 A8 58 24 4D DB AA [13:29:35]CommunicateWithHost err = 0 [13:29:35]CheckOFDResponse [13:29:35]1017 (14) - 77093643461234 [13:29:35]1041 (16) - 0000000000963154 [13:29:35]1040 (4) - 28690 [13:29:35]1012 (4) - 12.04.2024 07:25 [13:29:35]1206 (1) - 0 [13:29:35]OFD Sender: Remove packet 28690 [13:29:35]ProducePacketName [13:29:35]name=ofd_packets/00028690 [13:29:35]NVStorageDeleteData [13:29:35]Write to MH i2c: 01 00 00 C4 82 46 [13:29:35]Write i2c OK [13:29:35]MH_I2C_Read... [13:29:35]Read from MH i2c: 01 [13:29:35]MH_I2C_Read... [13:29:35]Read from MH i2c: 01 07 00 [13:29:35]MH_I2C_Read... [13:29:35]Read from MH i2c: 01 07 00 C4 82 00 00 00 00 00 DE 0C 37 [13:29:35]RasterBufferAndPrint [13:29:35]line [13:29:35]line [13:29:35]line [13:29:35]line [13:29:35]line [13:29:35]written 0, free lines is 3303 [13:29:35]MH_Cut [13:29:35]Write to MH i2c: D1 01 00 CB 82 01 1F [13:29:35]Write i2c OK [13:29:35]MH_I2C_Read... [13:29:35]Read from MH i2c: D1 [13:29:35]MH_I2C_Read... [13:29:35]Read from MH i2c: D1 01 00 [13:29:35]MH_I2C_Read... [13:29:35]Read from MH i2c: D1 01 00 CB 82 00 1E [13:29:35]Write to MH i2c: 01 00 00 CC 82 4E [13:29:35]Write i2c OK [13:29:35]MH_I2C_Read... [13:29:36]OFD Sender: No OFD packet to send [13:29:36]*** Cut start [13:29:36]*** Partial cut [13:29:36]*** CUTSNS_PIN = 1 [13:29:36]*** CUTSNS_PIN = 0 [13:29:37]*** Brake cut motor [13:29:37]Read from MH i2c: 01 [13:29:37]MH_I2C_Read... [13:29:37]*** Stop cut motor [13:29:37]*** Cut end [13:29:37]Read from MH i2c: 01 07 00 [13:29:37]MH_I2C_Read... [13:29:37]Read from MH i2c: 01 07 00 CC 82 00 00 00 00 00 FF 0F 63 [13:29:37]process_action close_receipt done [13:29:37]requested_data is exist [13:29:37]produce_requested_data [13:29:37]requested_item fm.sn is exist - process it [13:29:37]wFMCommunicate request_size=4 [13:29:37]MH_SAM_APDU [13:29:37]CAPDU: 80 11 00 00 [13:29:37]Write to MH i2c: E2 08 00 CD 82 80 11 00 00 00 00 00 00 C9 [13:29:37]Write i2c OK [13:29:37]MH_I2C_Read... [13:29:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:29:37]Read from MH i2c: E2 [13:29:37]MH_I2C_Read... [13:29:37]Read from MH i2c: E2 17 00 [13:29:37]MH_I2C_Read... [13:29:37]Read from MH i2c: E2 17 00 CD 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 18 [13:29:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:29:37]wFMCommunicate OK [13:29:37]requested_item fd.num is exist - process it [13:29:37]SAM_PROTO_GetFieldsCounters [13:29:37]wFMCommunicate request_size=4 [13:29:37]MH_SAM_APDU [13:29:37]CAPDU: 80 13 00 00 [13:29:37]Write to MH i2c: E2 08 00 CE 82 80 13 00 00 00 00 00 00 CC [13:29:37]Write i2c OK [13:29:37]MH_I2C_Read... [13:29:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:29:37]Read from MH i2c: E2 [13:29:37]MH_I2C_Read... [13:29:37]Read from MH i2c: E2 62 00 [13:29:37]MH_I2C_Read... [13:29:37]Read from MH i2c: E2 62 00 CE 82 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 12 70 00 00 0E 04 04 00 71 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 9E [13:29:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 12 70 00 00 0E 04 04 00 71 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 [13:29:37]wFMCommunicate OK [13:29:37]SAM_PROTO_GetFieldsCounters done [13:29:37]requested_item shift.num is exist - process it [13:29:37]requested_item shift.opened is exist - process it [13:29:37]req_shift_opened [13:29:37]FM_GetShiftState [13:29:37]SAM_PROTO_GetShiftState [13:29:37]wFMCommunicate request_size=4 [13:29:37]MH_SAM_APDU [13:29:37]CAPDU: 80 13 01 00 [13:29:37]Write to MH i2c: E2 08 00 CF 82 80 13 01 00 00 00 00 00 CE [13:29:37]Write i2c OK [13:29:37]MH_I2C_Read... [13:29:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:29:37]Read from MH i2c: E2 [13:29:37]MH_I2C_Read... [13:29:37]Read from MH i2c: E2 0E 00 [13:29:37]MH_I2C_Read... [13:29:37]Read from MH i2c: E2 0E 00 CF 82 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 DF [13:29:37]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [13:29:37]wFMCommunicate OK [13:29:37]SAM_PROTO_GetShiftState done [13:29:37]FM_GetShiftState done [13:29:37]req_shift_opened done [13:29:37]requested_item shift.open_date is exist - process it [13:29:37]req_shift_open_date [13:29:37]req_shift_open_date done [13:29:37]produce_requested_data done [13:29:37]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28690,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [13:29:37]process_action_free close_receipt [13:29:37]json_value_free [13:29:37]json_value_free done [13:29:37]process_json_proto returns [13:29:37]Send response to host [13:29:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28690,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [13:29:37]free response buf [13:29:37]execute_script done [13:29:37]execute_script returns [13:29:37]free content buf [13:29:37]Sock 6.Close socket [13:29:37]Sock 6.Thread stoped [13:29:41]OFD Sender: No OFD packet to send [13:29:46]OFD Sender: No OFD packet to send [13:29:51]OFD Sender: No OFD packet to send [13:29:56]OFD Sender: No OFD packet to send [13:30:01]OFD Sender: No OFD packet to send [13:30:06]OFD Sender: No OFD packet to send [13:30:11]OFD Sender: No OFD packet to send [13:30:16]OFD Sender: No OFD packet to send [13:30:21]OFD Sender: No OFD packet to send [13:30:26]OFD Sender: No OFD packet to send [13:30:31]OFD Sender: No OFD packet to send [13:30:35]accept exits with 7 [13:30:35]New connection [13:30:35]New thread 3066498404 created [13:30:35]Thread 3066641764 joined [13:30:35]Waiting for new connection... [13:30:35] Sock 7.Parse request [13:30:35]Sock 7.Check first char [13:30:35]Sock 7.First char is OK [13:30:35]request: POST /json_proto HTTP/1.0 [13:30:35]Method: POST [13:30:35]URL: /json_proto [13:30:35]Method is POST - this is cgi request [13:30:35]url: /json_proto [13:30:35]query_string will be loaded in cgi processing [13:30:35]execute_cgi json_proto POST (null) [13:30:35]execute_cgi path=json_proto method=POST [13:30:35]POST find Content-Length [13:30:35]Host: 172.17.33.3:8080 [13:30:35]Content-Length: 677 [13:30:35]Content-Type: application/json [13:30:35] [13:30:35]POST finish read [13:30:35]Found Content-Length = 677 [13:30:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347024", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 9.340, "sum" : 600.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:30:35]execute_script... [13:30: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)347024", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 9.340, "sum" : 600.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:30:35]POST & json_proto [13:30:35]process_json_proto [13:30:35]json parsed OK: [13:30:35]protocol is kg_v1.0 [13:30:35]action value=close_receipt [13:30:35]process_action close_receipt [13:30:35]cmd_close_receipt [13:30:35]MH_GetDate [13:30:35]Write to MH i2c: F0 00 00 D0 82 41 [13:30:35]Write i2c OK [13:30:35]MH_I2C_Read... [13:30:35]Read from MH i2c: F0 [13:30:35]MH_I2C_Read... [13:30:35]Read from MH i2c: F0 09 00 [13:30:35]MH_I2C_Read... [13:30:35]Read from MH i2c: F0 09 00 D0 82 00 83 37 19 66 23 5B 8F 65 F5 [13:30:35]GetLastDocTimeStamp 1712928581 [13:30:35]current date 1712928643 [13:30:35]FM_GetShiftState [13:30:35]SAM_PROTO_GetShiftState [13:30:35]wFMCommunicate request_size=4 [13:30:35]MH_SAM_APDU [13:30:35]CAPDU: 80 13 01 00 [13:30:35]Write to MH i2c: E2 08 00 D1 82 80 13 01 00 00 00 00 00 D0 [13:30:35]Write i2c OK [13:30:35]MH_I2C_Read... [13:30:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:30:35]Read from MH i2c: E2 [13:30:35]MH_I2C_Read... [13:30:35]Read from MH i2c: E2 0E 00 [13:30:35]MH_I2C_Read... [13:30:35]Read from MH i2c: E2 0E 00 D1 82 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 E1 [13:30:35]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [13:30:35]wFMCommunicate OK [13:30:35]SAM_PROTO_GetShiftState done [13:30:35]FM_GetShiftState done [13:30:35]opened in 1712881416 [13:30:35]opened+sec_in_day 1712967816 [13:30:35]quantity*price = 60056 [13:30:35]sum+1 = 60057 [13:30:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.78 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 140 12.04.2024 13:30 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28691 ФПД: 62659822987030 1/tax-web-control/client/api/v1/ticket?date=20240412T133043&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28691&fm=62659822987030&tin=02508201610067®Number=0000138879044617&sum=60000 [13:30:36]StoreToDocumentArchive [13:30:36]shift 113 fd 28691 [13:30:36]save to /storage/0113/doc_00028691 [13:30:36]save last doc name /storage/0113/doc_00028691 to /storage/kkm_last_doc_name [13:30:36]save OK [13:30:36]Clear old archive folders... [13:30:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:30:36]tlvbuf is 01ABDA70 [13:30:36]SAM_PROTO_ClearQueue [13:30:36]wFMCommunicate request_size=4 [13:30:36]MH_SAM_APDU [13:30:36]CAPDU: 80 09 00 00 [13:30:36]Write to MH i2c: E2 08 00 DE 82 80 09 00 00 00 00 00 00 D2 [13:30:36]Write i2c OK [13:30:36]MH_I2C_Read... [13:30:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:30:36]Read from MH i2c: E2 [13:30:36]MH_I2C_Read... [13:30:36]Read from MH i2c: E2 03 00 [13:30:36]MH_I2C_Read... [13:30:36]Read from MH i2c: E2 03 00 DE 82 00 90 00 D4 [13:30:36]RAPDU: 90 00 [13:30:36]wFMCommunicate OK [13:30:36]SAM_PROTO_ClearQueue done [13:30:36]KKMCreateOFDPacket [13:30:36]OFDProtocolAddRootSTLVToBuf [13:30:36]FM_MakeSignedData [13:30:36]FM_MakeSignedData [13:30:36]SAM_PROTO_SignData [13:30:36]wFMCommunicate request_size=4 [13:30:36]MH_SAM_APDU [13:30:36]CAPDU: 80 0D 01 02 [13:30:36]Write to MH i2c: E2 08 00 DF 82 80 0D 01 02 00 00 00 00 DA [13:30:36]Write i2c OK [13:30:36]MH_I2C_Read... [13:30:36]Read from MH i2c: E2 [13:30:36]MH_I2C_Read... [13:30:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:30:36]Read from MH i2c: E2 03 00 [13:30:36]MH_I2C_Read... [13:30:36]Read from MH i2c: E2 03 00 DF 82 00 90 00 D5 [13:30:36]RAPDU: 90 00 [13:30:36]wFMCommunicate OK [13:30:36]wFMCommunicate request_size=255 [13:30:36]MH_SAM_APDU [13:30:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7C 24 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 98 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 EA 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 8C 00 00 00 F4 03 04 00 83 37 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 13 70 00 00 35 04 06 00 38 [13:30:36]Write to MH i2c: E2 02 01 E0 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 35 FF 03 08 00 03 7C 24 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 98 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 EA 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 8C 00 00 00 F4 03 04 00 83 37 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 13 70 00 00 35 04 06 00 38 00 00 F6 [13:30:36]Write i2c OK [13:30:36]MH_I2C_Read... [13:30:36]OFD Sender: No OFD packet to send [13:30:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:30:36]Read from MH i2c: E2 [13:30:36]MH_I2C_Read... [13:30:36]Read from MH i2c: E2 03 00 [13:30:36]MH_I2C_Read... [13:30:36]Read from MH i2c: E2 03 00 E0 82 00 90 00 D6 [13:30:36]RAPDU: 90 00 [13:30:36]wFMCommunicate OK [13:30:36]wFMCommunicate request_size=10 [13:30:36]MH_SAM_APDU [13:30:36]CAPDU: 80 0D 02 02 05 FD 20 7D A7 16 [13:30:36]Write to MH i2c: E2 0D 00 E1 82 80 0D 02 02 05 00 FD 20 7D A7 16 00 00 3E [13:30:36]Write i2c OK [13:30:36]MH_I2C_Read... [13:30:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:30:36]Read from MH i2c: E2 [13:30:36]MH_I2C_Read... [13:30:36]Read from MH i2c: E2 03 00 [13:30:36]MH_I2C_Read... [13:30:36]Read from MH i2c: E2 03 00 E1 82 00 90 00 D7 [13:30:36]RAPDU: 90 00 [13:30:36]wFMCommunicate OK [13:30:36]wFMCommunicate request_size=4 [13:30:36]MH_SAM_APDU [13:30:36]CAPDU: 80 0D 03 02 [13:30:36]Write to MH i2c: E2 08 00 E2 82 80 0D 03 02 00 00 00 00 DF [13:30:36]Write i2c OK [13:30:36]MH_I2C_Read... [13:30:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:30:36]Read from MH i2c: E2 [13:30:36]MH_I2C_Read... [13:30:36]Read from MH i2c: E2 0B 00 [13:30:36]MH_I2C_Read... [13:30:36]Read from MH i2c: E2 0B 00 E2 82 00 3B BA 22 2D 1D CE D1 CC 90 00 AC [13:30:36]RAPDU: 3B BA 22 2D 1D CE D1 CC 90 00 [13:30:36]wFMCommunicate OK [13:30:36]SAM_PROTO_SignData done [13:30:36]FM_MakeSignedData done [13:30:36]CreateOFDProtocolMessage [13:30:36]wFMCommunicate request_size=4 [13:30:36]MH_SAM_APDU [13:30:36]CAPDU: 80 11 00 00 [13:30:36]Write to MH i2c: E2 08 00 E3 82 80 11 00 00 00 00 00 00 DF [13:30:36]Write i2c OK [13:30:36]MH_I2C_Read... [13:30:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:30:36]Read from MH i2c: E2 [13:30:36]MH_I2C_Read... [13:30:36]Read from MH i2c: E2 17 00 [13:30:36]MH_I2C_Read... [13:30:36]Read from MH i2c: E2 17 00 E3 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 2E [13:30:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:30:36]wFMCommunicate OK [13:30:36]CreateOFDProtocolMessage done [13:30:36]OFDSenderStorePacket 28691 [13:30:36]StoreOFDPacket docnum=28691 [13:30:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 83 46 07 01 9C 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 35 FF 03 08 00 03 7C 24 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 98 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 EA 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 8C 00 00 00 F4 03 04 00 83 37 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 13 70 00 00 35 04 06 00 38 FD 20 7D A7 16 3B BA 22 2D 1D CE D1 CC [13:30:36]CheckFolder [13:30:36]dirname=/storage/ofd_packets [13:30:36]CheckFolder done [13:30:36]ProducePacketName [13:30:36]name=ofd_packets/00028691 [13:30:36]NVStorageSaveData ofd_packets/00028691 [13:30:36]File name is /storage/ofd_packets/00028691 [13:30:36]Write 301 bytes [13:30:36]NVStorageSaveData done [13:30:36]OFDSenderStorePacket done [13:30:36]KKMCreateOFDPacket done [13:30:36]NVStorageSaveData kkm_last_timestamp [13:30:36]File name is /storage/kkm_last_timestamp [13:30:36]Write 4 bytes [13:30:36]NVStorageSaveData done [13:30:36]ExternCall_PrintAddStr [13:30:36]wPrintStart [13:30:36]Write to MH i2c: 01 00 00 E4 82 66 [13:30:36]Write i2c OK [13:30:36]MH_I2C_Read... [13:30:36]Read from MH i2c: 01 [13:30:36]MH_I2C_Read... [13:30:36]Read from MH i2c: 01 07 00 [13:30:36]MH_I2C_Read... [13:30:36]Read from MH i2c: 01 07 00 E4 82 00 00 00 00 00 FF 0F 7B [13:30:36]RasterBufferAndPrint [13:30:36]line Счет N : (1)347024 [13:30:36]line ИНН: 02508201610067 [13:30:36]line Контрольно-Кассовый Чек [13:30:36]line ПРОДАЖА [13:30:36]line ТРК (МРК, ГНК) : 13 [13:30:36]line Товар: 2710124130 [13:30:36]line Аи-92-К-5 [13:30:36]line 9.340 * 64.30 [13:30:36]line = 600.56 [13:30:36]line НДС 12% НСП 1% [13:30:36]line > о реализуемом товаре [13:30:36]line ОКРУГЛЕНИЕ: -0.56 [13:30:36]line ИТОГО: 600.00 [13:30:36]line Внесено: 600.00 [13:30:36]line СДАЧА: 0.00 [13:30:36]line НСП 1% : 5.31 [13:30:36]line НДС 12% : 63.78 [13:30:36]line Наличными: 600.00 [13:30:36]line Безнал.: 0.00 [13:30:36]line Место: АЗС № 108 "Партнер Нефть" [13:30:36]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [13:30:36]line СНО: Общий режим [13:30:36]line Чек 140 12.04.2024 13:30 [13:30:36]line Смена: 113 ФФД: 1.0 [13:30:36]line ЗНМ: 0300000027 [13:30:36]line РНМ: 0000138879044617 [13:30:36]line Версия ККМ: 001 [13:30:36]line ФМ: 0000000000963154 [13:30:36]line ФД: 28691 [13:30:36]line ФПД: 62659822987030 [13:30:37]line 1/tax-web-control/client/api/v1/ticket?date=20240412T133043&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28691&fm=62659822987030&tin=02508201610067®Number=0000138879044617&sum=60000 [13:30:37]OFD Sender: Processing packet 28691 [packets to send 8, broken 7] [13:30:37]ProducePacketName [13:30:37]name=ofd_packets/00028691 [13:30:37]OFD Sender: To server: pG, [13:30:37]CommunicateWithHost lk.salyk.kg:30040 [13:30:37]ConnectInit lk.salyk.kg [13:30:37]written 0, free lines is 4095 [13:30:37]Connected sock=6 [13:30:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 83 46 07 01 9C 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 35 FF 03 08 00 03 7C 24 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 98 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 EA 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 8C 00 00 00 F4 03 04 00 83 37 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 13 70 00 00 35 04 06 00 38 FD 20 7D A7 16 3B BA 22 2D 1D CE D1 CC [13:30:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 7E F9 47 00 BE 6B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 13 70 00 00 F4 03 04 00 2D E2 18 66 B6 04 01 00 00 65 4C CE 27 E4 77 77 EA [13:30:37]CommunicateWithHost err = 0 [13:30:37]CheckOFDResponse [13:30:37]1017 (14) - 77093643461234 [13:30:37]1041 (16) - 0000000000963154 [13:30:37]1040 (4) - 28691 [13:30:37]1012 (4) - 12.04.2024 07:26 [13:30:37]1206 (1) - 0 [13:30:37]OFD Sender: Remove packet 28691 [13:30:37]ProducePacketName [13:30:37]name=ofd_packets/00028691 [13:30:37]NVStorageDeleteData [13:30:37]Write to MH i2c: 01 00 00 0E 83 91 [13:30:37]Write i2c OK [13:30:37]MH_I2C_Read... [13:30:37]Read from MH i2c: 01 [13:30:37]MH_I2C_Read... [13:30:37]Read from MH i2c: 01 07 00 [13:30:37]MH_I2C_Read... [13:30:37]Read from MH i2c: 01 07 00 0E 83 00 00 00 00 00 D0 0C 74 [13:30:37]RasterBufferAndPrint [13:30:37]line [13:30:37]line [13:30:37]line [13:30:37]line [13:30:37]line [13:30:37]written 0, free lines is 3285 [13:30:37]MH_Cut [13:30:37]Write to MH i2c: D1 01 00 15 83 01 6A [13:30:37]Write i2c OK [13:30:37]MH_I2C_Read... [13:30:37]Read from MH i2c: D1 [13:30:37]MH_I2C_Read... [13:30:37]Read from MH i2c: D1 01 00 [13:30:37]MH_I2C_Read... [13:30:37]Read from MH i2c: D1 01 00 15 83 00 69 [13:30:37]Write to MH i2c: 01 00 00 16 83 99 [13:30:37]Write i2c OK [13:30:37]MH_I2C_Read... [13:30:37]OFD Sender: No OFD packet to send [13:30:38]*** Cut start [13:30:38]*** Partial cut [13:30:38]*** CUTSNS_PIN = 1 [13:30:38]*** CUTSNS_PIN = 0 [13:30:38]*** Brake cut motor [13:30:38]Read from MH i2c: 01 [13:30:38]MH_I2C_Read... [13:30:38]*** Stop cut motor [13:30:38]*** Cut end [13:30:38]Read from MH i2c: 01 07 00 [13:30:38]MH_I2C_Read... [13:30:38]Read from MH i2c: 01 07 00 16 83 00 00 00 00 00 FF 0F AE [13:30:38]process_action close_receipt done [13:30:38]requested_data is exist [13:30:38]produce_requested_data [13:30:38]requested_item fm.sn is exist - process it [13:30:38]wFMCommunicate request_size=4 [13:30:38]MH_SAM_APDU [13:30:38]CAPDU: 80 11 00 00 [13:30:38]Write to MH i2c: E2 08 00 17 83 80 11 00 00 00 00 00 00 14 [13:30:38]Write i2c OK [13:30:38]MH_I2C_Read... [13:30:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:30:38]Read from MH i2c: E2 [13:30:38]MH_I2C_Read... [13:30:38]Read from MH i2c: E2 17 00 [13:30:38]MH_I2C_Read... [13:30:38]Read from MH i2c: E2 17 00 17 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 63 [13:30:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:30:38]wFMCommunicate OK [13:30:38]requested_item fd.num is exist - process it [13:30:38]SAM_PROTO_GetFieldsCounters [13:30:38]wFMCommunicate request_size=4 [13:30:38]MH_SAM_APDU [13:30:38]CAPDU: 80 13 00 00 [13:30:38]Write to MH i2c: E2 08 00 18 83 80 13 00 00 00 00 00 00 17 [13:30:38]Write i2c OK [13:30:38]MH_I2C_Read... [13:30:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:30:39]Read from MH i2c: E2 [13:30:39]MH_I2C_Read... [13:30:39]Read from MH i2c: E2 62 00 [13:30:39]MH_I2C_Read... [13:30:39]Read from MH i2c: E2 62 00 18 83 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 13 70 00 00 0E 04 04 00 71 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 ED [13:30:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 13 70 00 00 0E 04 04 00 71 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 [13:30:39]wFMCommunicate OK [13:30:39]SAM_PROTO_GetFieldsCounters done [13:30:39]requested_item shift.num is exist - process it [13:30:39]requested_item shift.opened is exist - process it [13:30:39]req_shift_opened [13:30:39]FM_GetShiftState [13:30:39]SAM_PROTO_GetShiftState [13:30:39]wFMCommunicate request_size=4 [13:30:39]MH_SAM_APDU [13:30:39]CAPDU: 80 13 01 00 [13:30:39]Write to MH i2c: E2 08 00 19 83 80 13 01 00 00 00 00 00 19 [13:30:39]Write i2c OK [13:30:39]MH_I2C_Read... [13:30:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:30:39]Read from MH i2c: E2 [13:30:39]MH_I2C_Read... [13:30:39]Read from MH i2c: E2 0E 00 [13:30:39]MH_I2C_Read... [13:30:39]Read from MH i2c: E2 0E 00 19 83 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 2A [13:30:39]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [13:30:39]wFMCommunicate OK [13:30:39]SAM_PROTO_GetShiftState done [13:30:39]FM_GetShiftState done [13:30:39]req_shift_opened done [13:30:39]requested_item shift.open_date is exist - process it [13:30:39]req_shift_open_date [13:30:39]req_shift_open_date done [13:30:39]produce_requested_data done [13:30:39]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28691,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [13:30:39]process_action_free close_receipt [13:30:39]json_value_free [13:30:39]json_value_free done [13:30:39]process_json_proto returns [13:30:39]Send response to host [13:30:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28691,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [13:30:39]free response buf [13:30:39]execute_script done [13:30:39]execute_script returns [13:30:39]free content buf [13:30:39]Sock 7.Close socket [13:30:39]Sock 7.Thread stoped [13:30:42]OFD Sender: No OFD packet to send [13:30:47]OFD Sender: No OFD packet to send [13:30:52]OFD Sender: No OFD packet to send [13:30:57]OFD Sender: No OFD packet to send [13:31:02]OFD Sender: No OFD packet to send [13:31:07]OFD Sender: No OFD packet to send [13:31:12]OFD Sender: No OFD packet to send [13:31:17]OFD Sender: No OFD packet to send [13:31:22]OFD Sender: No OFD packet to send [13:31:27]OFD Sender: No OFD packet to send [13:31:32]OFD Sender: No OFD packet to send [13:31:37]OFD Sender: No OFD packet to send [13:31:42]OFD Sender: No OFD packet to send [13:31:47]OFD Sender: No OFD packet to send [13:31:52]OFD Sender: No OFD packet to send [13:31:57]OFD Sender: No OFD packet to send [13:32:02]OFD Sender: No OFD packet to send [13:32:07]OFD Sender: No OFD packet to send [13:32:12]OFD Sender: No OFD packet to send [13:32:17]OFD Sender: No OFD packet to send [13:32:22]OFD Sender: No OFD packet to send [13:32:27]OFD Sender: No OFD packet to send [13:32:32]OFD Sender: No OFD packet to send [13:32:37]OFD Sender: No OFD packet to send [13:32:42]OFD Sender: No OFD packet to send [13:32:47]OFD Sender: No OFD packet to send [13:32:52]OFD Sender: No OFD packet to send [13:32:57]OFD Sender: No OFD packet to send [13:33:02]OFD Sender: No OFD packet to send [13:33:07]OFD Sender: No OFD packet to send [13:33:12]OFD Sender: No OFD packet to send [13:33:17]OFD Sender: No OFD packet to send [13:33:22]OFD Sender: No OFD packet to send [13:33:27]OFD Sender: No OFD packet to send [13:33:32]OFD Sender: No OFD packet to send [13:33:37]OFD Sender: No OFD packet to send [13:33:42]OFD Sender: No OFD packet to send [13:33:47]OFD Sender: No OFD packet to send [13:33:52]OFD Sender: No OFD packet to send [13:33:57]OFD Sender: No OFD packet to send [13:34:02]OFD Sender: No OFD packet to send [13:34:07]OFD Sender: No OFD packet to send [13:34:12]OFD Sender: No OFD packet to send [13:34:17]OFD Sender: No OFD packet to send [13:34:22]OFD Sender: No OFD packet to send [13:34:27]OFD Sender: No OFD packet to send [13:34:32]OFD Sender: No OFD packet to send [13:34:37]OFD Sender: No OFD packet to send [13:34:42]OFD Sender: No OFD packet to send [13:34:47]OFD Sender: No OFD packet to send [13:34:52]OFD Sender: No OFD packet to send [13:34:58]OFD Sender: No OFD packet to send [13:35:03]OFD Sender: No OFD packet to send [13:35:08]OFD Sender: No OFD packet to send [13:35:13]OFD Sender: No OFD packet to send [13:35:18]OFD Sender: No OFD packet to send [13:35:23]OFD Sender: No OFD packet to send [13:35:28]OFD Sender: No OFD packet to send [13:35:33]OFD Sender: No OFD packet to send [13:35:38]OFD Sender: No OFD packet to send [13:35:43]OFD Sender: No OFD packet to send [13:35:48]OFD Sender: No OFD packet to send [13:35:53]OFD Sender: No OFD packet to send [13:35:58]OFD Sender: No OFD packet to send [13:36:03]OFD Sender: No OFD packet to send [13:36:08]OFD Sender: No OFD packet to send [13:36:13]OFD Sender: No OFD packet to send [13:36:18]OFD Sender: No OFD packet to send [13:36:23]OFD Sender: No OFD packet to send [13:36:28]OFD Sender: No OFD packet to send [13:36:33]OFD Sender: No OFD packet to send [13:36:38]OFD Sender: No OFD packet to send [13:36:43]OFD Sender: No OFD packet to send [13:36:48]OFD Sender: No OFD packet to send [13:36:53]OFD Sender: No OFD packet to send [13:36:58]OFD Sender: No OFD packet to send [13:37:03]OFD Sender: No OFD packet to send [13:37: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:28]OFD Sender: No OFD packet to send [13:41:33]OFD Sender: No OFD packet to send [13:41:38]OFD Sender: No OFD packet to send [13:41:38]accept exits with 5 [13:41:38]New connection [13:41:38]New thread 3066641764 created [13:41:38]Thread 3066498404 joined [13:41:38]Waiting for new connection... [13:41:38] Sock 5.Parse request [13:41:38]Sock 5.Check first char [13:41:38]Sock 5.First char is OK [13:41:38]request: POST /json_proto HTTP/1.0 [13:41:38]Method: POST [13:41:38]URL: /json_proto [13:41:38]Method is POST - this is cgi request [13:41:38]url: /json_proto [13:41:38]query_string will be loaded in cgi processing [13:41:38]execute_cgi json_proto POST (null) [13:41:38]execute_cgi path=json_proto method=POST [13:41:38]POST find Content-Length [13:41:38]Host: 172.17.33.3:8080 [13:41:38]Content-Length: 677 [13:41:38]Content-Type: application/json [13:41:38] [13:41:38]POST finish read [13:41:38]Found Content-Length = 677 [13:41:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347025", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 9.340, "sum" : 600.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:41:38]execute_script... [13:41: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)347025", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 9.340, "sum" : 600.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:41:38]POST & json_proto [13:41:38]process_json_proto [13:41:38]json parsed OK: [13:41:38]protocol is kg_v1.0 [13:41:38]action value=close_receipt [13:41:38]process_action close_receipt [13:41:38]cmd_close_receipt [13:41:38]MH_GetDate [13:41:38]Write to MH i2c: F0 00 00 1A 83 8C [13:41:38]Write i2c OK [13:41:38]MH_I2C_Read... [13:41:38]Read from MH i2c: F0 [13:41:38]MH_I2C_Read... [13:41:38]Read from MH i2c: F0 09 00 [13:41:38]MH_I2C_Read... [13:41:38]Read from MH i2c: F0 09 00 1A 83 00 1B 3A 19 66 23 5B 8F 65 DB [13:41:38]GetLastDocTimeStamp 1712928643 [13:41:38]current date 1712929307 [13:41:38]FM_GetShiftState [13:41:38]SAM_PROTO_GetShiftState [13:41:38]wFMCommunicate request_size=4 [13:41:38]MH_SAM_APDU [13:41:38]CAPDU: 80 13 01 00 [13:41:38]Write to MH i2c: E2 08 00 1B 83 80 13 01 00 00 00 00 00 1B [13:41:38]Write i2c OK [13:41:38]MH_I2C_Read... [13:41:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:41:39]Read from MH i2c: E2 [13:41:39]MH_I2C_Read... [13:41:39]Read from MH i2c: E2 0E 00 [13:41:39]MH_I2C_Read... [13:41:39]Read from MH i2c: E2 0E 00 1B 83 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 2C [13:41:39]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [13:41:39]wFMCommunicate OK [13:41:39]SAM_PROTO_GetShiftState done [13:41:39]FM_GetShiftState done [13:41:39]opened in 1712881416 [13:41:39]opened+sec_in_day 1712967816 [13:41:39]quantity*price = 60056 [13:41:39]sum+1 = 60057 [13:41:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.78 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 141 12.04.2024 13:41 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28692 ФПД: 199493479387772 1/tax-web-control/client/api/v1/ticket?date=20240412T134147&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28692&fm=199493479387772&tin=02508201610067®Number=0000138879044617&sum=60000 [13:41:40]StoreToDocumentArchive [13:41:40]shift 113 fd 28692 [13:41:40]save to /storage/0113/doc_00028692 [13:41:40]save last doc name /storage/0113/doc_00028692 to /storage/kkm_last_doc_name [13:41:40]save OK [13:41:40]Clear old archive folders... [13:41:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:41:40]tlvbuf is 01AEEDD0 [13:41:40]SAM_PROTO_ClearQueue [13:41:40]wFMCommunicate request_size=4 [13:41:40]MH_SAM_APDU [13:41:40]CAPDU: 80 09 00 00 [13:41:40]Write to MH i2c: E2 08 00 28 83 80 09 00 00 00 00 00 00 1D [13:41:40]Write i2c OK [13:41:40]MH_I2C_Read... [13:41:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:41:40]Read from MH i2c: E2 [13:41:40]MH_I2C_Read... [13:41:40]Read from MH i2c: E2 03 00 [13:41:40]MH_I2C_Read... [13:41:40]Read from MH i2c: E2 03 00 28 83 00 90 00 1F [13:41:40]RAPDU: 90 00 [13:41:40]wFMCommunicate OK [13:41:40]SAM_PROTO_ClearQueue done [13:41:40]KKMCreateOFDPacket [13:41:40]OFDProtocolAddRootSTLVToBuf [13:41:40]FM_MakeSignedData [13:41:40]FM_MakeSignedData [13:41:40]SAM_PROTO_SignData [13:41:40]wFMCommunicate request_size=4 [13:41:40]MH_SAM_APDU [13:41:40]CAPDU: 80 0D 01 02 [13:41:40]Write to MH i2c: E2 08 00 29 83 80 0D 01 02 00 00 00 00 25 [13:41:40]Write i2c OK [13:41:40]MH_I2C_Read... [13:41:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:41:40]Read from MH i2c: E2 [13:41:40]MH_I2C_Read... [13:41:40]Read from MH i2c: E2 03 00 [13:41:40]MH_I2C_Read... [13:41:40]Read from MH i2c: E2 03 00 29 83 00 90 00 20 [13:41:40]RAPDU: 90 00 [13:41:40]wFMCommunicate OK [13:41:40]wFMCommunicate request_size=255 [13:41:40]MH_SAM_APDU [13:41:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7C 24 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 98 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 EA 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 8D 00 00 00 F4 03 04 00 1B 3A 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 14 70 00 00 35 04 06 00 B5 [13:41:40]Write to MH i2c: E2 02 01 2A 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 35 FF 03 08 00 03 7C 24 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 98 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 EA 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 8D 00 00 00 F4 03 04 00 1B 3A 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 14 70 00 00 35 04 06 00 B5 00 00 5B [13:41:40]Write i2c OK [13:41:40]MH_I2C_Read... [13:41:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:41:40]Read from MH i2c: E2 [13:41:40]MH_I2C_Read... [13:41:40]Read from MH i2c: E2 03 00 [13:41:40]MH_I2C_Read... [13:41:40]Read from MH i2c: E2 03 00 2A 83 00 90 00 21 [13:41:40]RAPDU: 90 00 [13:41:40]wFMCommunicate OK [13:41:40]wFMCommunicate request_size=10 [13:41:40]MH_SAM_APDU [13:41:40]CAPDU: 80 0D 02 02 05 70 31 F9 52 7C [13:41:40]Write to MH i2c: E2 0D 00 2B 83 80 0D 02 02 05 00 70 31 F9 52 7C 00 00 9A [13:41:40]Write i2c OK [13:41:40]MH_I2C_Read... [13:41:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:41:40]Read from MH i2c: E2 [13:41:40]MH_I2C_Read... [13:41:40]Read from MH i2c: E2 03 00 [13:41:40]MH_I2C_Read... [13:41:40]Read from MH i2c: E2 03 00 2B 83 00 90 00 22 [13:41:40]RAPDU: 90 00 [13:41:40]wFMCommunicate OK [13:41:40]wFMCommunicate request_size=4 [13:41:40]MH_SAM_APDU [13:41:40]CAPDU: 80 0D 03 02 [13:41:40]Write to MH i2c: E2 08 00 2C 83 80 0D 03 02 00 00 00 00 2A [13:41:40]Write i2c OK [13:41:40]MH_I2C_Read... [13:41:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:41:40]Read from MH i2c: E2 [13:41:40]MH_I2C_Read... [13:41:40]Read from MH i2c: E2 0B 00 [13:41:40]MH_I2C_Read... [13:41:40]Read from MH i2c: E2 0B 00 2C 83 00 28 2F 72 AF 9D 61 23 CB 90 00 8F [13:41:40]RAPDU: 28 2F 72 AF 9D 61 23 CB 90 00 [13:41:40]wFMCommunicate OK [13:41:40]SAM_PROTO_SignData done [13:41:40]FM_MakeSignedData done [13:41:40]CreateOFDProtocolMessage [13:41:40]wFMCommunicate request_size=4 [13:41:40]MH_SAM_APDU [13:41:40]CAPDU: 80 11 00 00 [13:41:40]Write to MH i2c: E2 08 00 2D 83 80 11 00 00 00 00 00 00 2A [13:41:40]Write i2c OK [13:41:40]MH_I2C_Read... [13:41:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:41:40]Read from MH i2c: E2 [13:41:40]MH_I2C_Read... [13:41:40]Read from MH i2c: E2 17 00 [13:41:40]MH_I2C_Read... [13:41:40]Read from MH i2c: E2 17 00 2D 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 79 [13:41:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:41:40]wFMCommunicate OK [13:41:40]CreateOFDProtocolMessage done [13:41:40]OFDSenderStorePacket 28692 [13:41:40]StoreOFDPacket docnum=28692 [13:41:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 A8 E9 07 01 63 29 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7C 24 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 98 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 EA 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 8D 00 00 00 F4 03 04 00 1B 3A 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 14 70 00 00 35 04 06 00 B5 70 31 F9 52 7C 28 2F 72 AF 9D 61 23 CB [13:41:40]CheckFolder [13:41:40]dirname=/storage/ofd_packets [13:41:40]CheckFolder done [13:41:40]ProducePacketName [13:41:40]name=ofd_packets/00028692 [13:41:40]NVStorageSaveData ofd_packets/00028692 [13:41:40]File name is /storage/ofd_packets/00028692 [13:41:40]Write 301 bytes [13:41:40]NVStorageSaveData done [13:41:40]OFDSenderStorePacket done [13:41:40]KKMCreateOFDPacket done [13:41:40]NVStorageSaveData kkm_last_timestamp [13:41:40]File name is /storage/kkm_last_timestamp [13:41:40]Write 4 bytes [13:41:40]NVStorageSaveData done [13:41:40]ExternCall_PrintAddStr [13:41:40]wPrintStart [13:41:40]Write to MH i2c: 01 00 00 2E 83 B1 [13:41:40]Write i2c OK [13:41:40]MH_I2C_Read... [13:41:40]Read from MH i2c: 01 [13:41:40]MH_I2C_Read... [13:41:40]Read from MH i2c: 01 07 00 [13:41:40]MH_I2C_Read... [13:41:40]Read from MH i2c: 01 07 00 2E 83 00 00 00 00 00 FF 0F C6 [13:41:40]RasterBufferAndPrint [13:41:40]line Счет N : (1)347025 [13:41:40]line ИНН: 02508201610067 [13:41:40]line Контрольно-Кассовый Чек [13:41:40]line ПРОДАЖА [13:41:40]line ТРК (МРК, ГНК) : 13 [13:41:40]line Товар: 2710124130 [13:41:40]line Аи-92-К-5 [13:41:40]line 9.340 * 64.30 [13:41:40]line = 600.56 [13:41:40]line НДС 12% НСП 1% [13:41:40]line > о реализуемом товаре [13:41:40]line ОКРУГЛЕНИЕ: -0.56 [13:41:40]line ИТОГО: 600.00 [13:41:40]line Внесено: 600.00 [13:41:40]line СДАЧА: 0.00 [13:41:40]line НСП 1% : 5.31 [13:41:40]line НДС 12% : 63.78 [13:41:40]line Наличными: 600.00 [13:41:40]line Безнал.: 0.00 [13:41:40]line Место: АЗС № 108 "Партнер Нефть" [13:41:40]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [13:41:40]line СНО: Общий режим [13:41:40]line Чек 141 12.04.2024 13:41 [13:41:40]line Смена: 113 ФФД: 1.0 [13:41:40]line ЗНМ: 0300000027 [13:41:40]line РНМ: 0000138879044617 [13:41:40]line Версия ККМ: 001 [13:41:40]line ФМ: 0000000000963154 [13:41:40]line ФД: 28692 [13:41:40]line ФПД: 199493479387772 [13:41:40]line 1/tax-web-control/client/api/v1/ticket?date=20240412T134147&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28692&fm=199493479387772&tin=02508201610067®Number=0000138879044617&sum=60000 [13:41:40]OFD Sender: Processing packet 28692 [packets to send 8, broken 7] [13:41:40]ProducePacketName [13:41:40]name=ofd_packets/00028692 [13:41:40]OFD Sender: To server: pG, [13:41:40]CommunicateWithHost lk.salyk.kg:30040 [13:41:41]ConnectInit lk.salyk.kg [13:41:41]written 0, free lines is 4095 [13:41:41]Connected sock=7 [13:41:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 A8 E9 07 01 63 29 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7C 24 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 98 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 EA 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 8D 00 00 00 F4 03 04 00 1B 3A 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 14 70 00 00 35 04 06 00 B5 70 31 F9 52 7C 28 2F 72 AF 9D 61 23 CB [13:41:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 19 61 47 00 3E 78 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 14 70 00 00 F4 03 04 00 C5 E4 18 66 B6 04 01 00 00 48 4A 1F 96 51 C7 11 F6 [13:41:41]CommunicateWithHost err = 0 [13:41:41]CheckOFDResponse [13:41:41]1017 (14) - 77093643461234 [13:41:41]1041 (16) - 0000000000963154 [13:41:41]1040 (4) - 28692 [13:41:41]1012 (4) - 12.04.2024 07:37 [13:41:41]1206 (1) - 0 [13:41:41]OFD Sender: Remove packet 28692 [13:41:41]ProducePacketName [13:41:41]name=ofd_packets/00028692 [13:41:41]NVStorageDeleteData [13:41:41]Write to MH i2c: 01 00 00 58 83 DB [13:41:41]Write i2c OK [13:41:41]MH_I2C_Read... [13:41:41]Read from MH i2c: 01 [13:41:41]MH_I2C_Read... [13:41:41]Read from MH i2c: 01 07 00 [13:41:41]MH_I2C_Read... [13:41:41]Read from MH i2c: 01 07 00 58 83 00 00 00 00 00 D2 0C C0 [13:41:41]RasterBufferAndPrint [13:41:41]line [13:41:41]line [13:41:41]line [13:41:41]line [13:41:41]line [13:41:41]written 0, free lines is 3289 [13:41:41]MH_Cut [13:41:41]Write to MH i2c: D1 01 00 5F 83 01 B4 [13:41:41]Write i2c OK [13:41:41]MH_I2C_Read... [13:41:41]Read from MH i2c: D1 [13:41:41]MH_I2C_Read... [13:41:41]Read from MH i2c: D1 01 00 [13:41:41]MH_I2C_Read... [13:41:41]Read from MH i2c: D1 01 00 5F 83 00 B3 [13:41:41]Write to MH i2c: 01 00 00 60 83 E3 [13:41:41]Write i2c OK [13:41:41]MH_I2C_Read... [13:41:41]OFD Sender: No OFD packet to send [13:41:42]*** Cut start [13:41:42]*** Partial cut [13:41:42]*** CUTSNS_PIN = 1 [13:41:42]*** CUTSNS_PIN = 0 [13:41:42]*** Brake cut motor [13:41:42]Read from MH i2c: 01 [13:41:42]MH_I2C_Read... [13:41:42]*** Stop cut motor [13:41:42]*** Cut end [13:41:42]Read from MH i2c: 01 07 00 [13:41:42]MH_I2C_Read... [13:41:42]Read from MH i2c: 01 07 00 60 83 00 00 00 00 00 FF 0F F8 [13:41:42]process_action close_receipt done [13:41:42]requested_data is exist [13:41:42]produce_requested_data [13:41:42]requested_item fm.sn is exist - process it [13:41:42]wFMCommunicate request_size=4 [13:41:42]MH_SAM_APDU [13:41:42]CAPDU: 80 11 00 00 [13:41:42]Write to MH i2c: E2 08 00 61 83 80 11 00 00 00 00 00 00 5E [13:41:42]Write i2c OK [13:41:42]MH_I2C_Read... [13:41:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:41:42]Read from MH i2c: E2 [13:41:42]MH_I2C_Read... [13:41:42]Read from MH i2c: E2 17 00 [13:41:42]MH_I2C_Read... [13:41:42]Read from MH i2c: E2 17 00 61 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 AD [13:41:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:41:42]wFMCommunicate OK [13:41:42]requested_item fd.num is exist - process it [13:41:42]SAM_PROTO_GetFieldsCounters [13:41:42]wFMCommunicate request_size=4 [13:41:42]MH_SAM_APDU [13:41:42]CAPDU: 80 13 00 00 [13:41:42]Write to MH i2c: E2 08 00 62 83 80 13 00 00 00 00 00 00 61 [13:41:42]Write i2c OK [13:41:42]MH_I2C_Read... [13:41:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:41:43]Read from MH i2c: E2 [13:41:43]MH_I2C_Read... [13:41:43]Read from MH i2c: E2 62 00 [13:41:43]MH_I2C_Read... [13:41:43]Read from MH i2c: E2 62 00 62 83 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 14 70 00 00 0E 04 04 00 71 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 3B [13:41:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 14 70 00 00 0E 04 04 00 71 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 [13:41:43]wFMCommunicate OK [13:41:43]SAM_PROTO_GetFieldsCounters done [13:41:43]requested_item shift.num is exist - process it [13:41:43]requested_item shift.opened is exist - process it [13:41:43]req_shift_opened [13:41:43]FM_GetShiftState [13:41:43]SAM_PROTO_GetShiftState [13:41:43]wFMCommunicate request_size=4 [13:41:43]MH_SAM_APDU [13:41:43]CAPDU: 80 13 01 00 [13:41:43]Write to MH i2c: E2 08 00 63 83 80 13 01 00 00 00 00 00 63 [13:41:43]Write i2c OK [13:41:43]MH_I2C_Read... [13:41:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:41:43]Read from MH i2c: E2 [13:41:43]MH_I2C_Read... [13:41:43]Read from MH i2c: E2 0E 00 [13:41:43]MH_I2C_Read... [13:41:43]Read from MH i2c: E2 0E 00 63 83 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 74 [13:41:43]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [13:41:43]wFMCommunicate OK [13:41:43]SAM_PROTO_GetShiftState done [13:41:43]FM_GetShiftState done [13:41:43]req_shift_opened done [13:41:43]requested_item shift.open_date is exist - process it [13:41:43]req_shift_open_date [13:41:43]req_shift_open_date done [13:41:43]produce_requested_data done [13:41:43]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28692,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [13:41:43]process_action_free close_receipt [13:41:43]json_value_free [13:41:43]json_value_free done [13:41:43]process_json_proto returns [13:41:43]Send response to host [13:41:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28692,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [13:41:43]free response buf [13:41:43]execute_script done [13:41:43]execute_script returns [13:41:43]free content buf [13:41:43]Sock 5.Close socket [13:41:43]Sock 5.Thread stoped [13:41:46]OFD Sender: No OFD packet to send [13:41:51]OFD Sender: No OFD packet to send [13:41:56]OFD Sender: No OFD packet to send [13:42:01]OFD Sender: No OFD packet to send [13:42:06]OFD Sender: No OFD packet to send [13:42:11]OFD Sender: No OFD packet to send [13:42:16]OFD Sender: No OFD packet to send [13:42:21]OFD Sender: No OFD packet to send [13:42:26]OFD Sender: No OFD packet to send [13:42:31]OFD Sender: No OFD packet to send [13:42:36]OFD Sender: No OFD packet to send [13:42:41]OFD Sender: No OFD packet to send [13:42:46]OFD Sender: No OFD packet to send [13:42:51]OFD Sender: No OFD packet to send [13:42:56]OFD Sender: No OFD packet to send [13:43:01]OFD Sender: No OFD packet to send [13:43:06]OFD Sender: No OFD packet to send [13:43:11]OFD Sender: No OFD packet to send [13:43:16]OFD Sender: No OFD packet to send [13:43:21]OFD Sender: No OFD packet to send [13:43:26]OFD Sender: No OFD packet to send [13:43:31]OFD Sender: No OFD packet to send [13:43:36]OFD Sender: No OFD packet to send [13:43:41]OFD Sender: No OFD packet to send [13:43:46]OFD Sender: No OFD packet to send [13:43:51]OFD Sender: No OFD packet to send [13:43:56]OFD Sender: No OFD packet to send [13:44:01]OFD Sender: No OFD packet to send [13:44:06]OFD Sender: No OFD packet to send [13:44:11]OFD Sender: No OFD packet to send [13:44:16]OFD Sender: No OFD packet to send [13:44:21]OFD Sender: No OFD packet to send [13:44:26]OFD Sender: No OFD packet to send [13:44:31]OFD Sender: No OFD packet to send [13:44:36]OFD Sender: No OFD packet to send [13:44:41]OFD Sender: No OFD packet to send [13:44:46]OFD Sender: No OFD packet to send [13:44:51]OFD Sender: No OFD packet to send [13:44:56]OFD Sender: No OFD packet to send [13:45:01]OFD Sender: No OFD packet to send [13:45:06]OFD Sender: No OFD packet to send [13:45:11]OFD Sender: No OFD packet to send [13:45:16]OFD Sender: No OFD packet to send [13:45:21]OFD Sender: No OFD packet to send [13:45:26]OFD Sender: No OFD packet to send [13:45:31]OFD Sender: No OFD packet to send [13:45:36]OFD Sender: No OFD packet to send [13:45:41]OFD Sender: No OFD packet to send [13:45:46]OFD Sender: No OFD packet to send [13:45:51]OFD Sender: No OFD packet to send [13:45:56]OFD Sender: No OFD packet to send [13:46:00]accept exits with 6 [13:46:00]New connection [13:46:00]New thread 3066498404 created [13:46:00]Thread 3066641764 joined [13:46:00]Waiting for new connection... [13:46:00] Sock 6.Parse request [13:46:00]Sock 6.Check first char [13:46:00]Sock 6.First char is OK [13:46:00]request: POST /json_proto HTTP/1.0 [13:46:00]Method: POST [13:46:00]URL: /json_proto [13:46:00]Method is POST - this is cgi request [13:46:00]url: /json_proto [13:46:00]query_string will be loaded in cgi processing [13:46:00]execute_cgi json_proto POST (null) [13:46:00]execute_cgi path=json_proto method=POST [13:46:00]POST find Content-Length [13:46:00]Host: 172.17.33.3:8080 [13:46:00]Content-Length: 675 [13:46:00]Content-Type: application/json [13:46:00] [13:46:00]POST finish read [13:46:00]Found Content-Length = 675 [13:46:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347026", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 10.230, "sum" : 740.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 740.00, "total" : 740.00, "payments": [ { "type": 0, "sum" : 740.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:46:00]execute_script... [13:46: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)347026", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 10.230, "sum" : 740.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 740.00, "total" : 740.00, "payments": [ { "type": 0, "sum" : 740.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:46:00]POST & json_proto [13:46:00]process_json_proto [13:46:00]json parsed OK: [13:46:00]protocol is kg_v1.0 [13:46:00]action value=close_receipt [13:46:00]process_action close_receipt [13:46:00]cmd_close_receipt [13:46:00]MH_GetDate [13:46:00]Write to MH i2c: F0 00 00 64 83 D6 [13:46:00]Write i2c OK [13:46:00]MH_I2C_Read... [13:46:00]Read from MH i2c: F0 [13:46:00]MH_I2C_Read... [13:46:00]Read from MH i2c: F0 09 00 [13:46:00]MH_I2C_Read... [13:46:00]Read from MH i2c: F0 09 00 64 83 00 20 3B 19 66 23 5B 8F 65 2B [13:46:00]GetLastDocTimeStamp 1712929307 [13:46:00]current date 1712929568 [13:46:00]FM_GetShiftState [13:46:00]SAM_PROTO_GetShiftState [13:46:00]wFMCommunicate request_size=4 [13:46:00]MH_SAM_APDU [13:46:00]CAPDU: 80 13 01 00 [13:46:00]Write to MH i2c: E2 08 00 65 83 80 13 01 00 00 00 00 00 65 [13:46:00]Write i2c OK [13:46:00]MH_I2C_Read... [13:46:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:46:00]Read from MH i2c: E2 [13:46:00]MH_I2C_Read... [13:46:00]Read from MH i2c: E2 0E 00 [13:46:00]MH_I2C_Read... [13:46:00]Read from MH i2c: E2 0E 00 65 83 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 76 [13:46:00]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [13:46:00]wFMCommunicate OK [13:46:00]SAM_PROTO_GetShiftState done [13:46:00]FM_GetShiftState done [13:46:00]opened in 1712881416 [13:46:00]opened+sec_in_day 1712967816 [13:46:00]quantity*price = 74065 [13:46:00]sum+1 = 74066 [13:46:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 740.00 Внесено: 740.00 СДАЧА: 0.00 НСП 1% : 6.55 НДС 12% : 78.65 Наличными: 740.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 142 12.04.2024 13:46 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28693 ФПД: 110465874010140 1/tax-web-control/client/api/v1/ticket?date=20240412T134608&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28693&fm=110465874010140&tin=02508201610067®Number=0000138879044617&sum=74000 [13:46:01]StoreToDocumentArchive [13:46:01]shift 113 fd 28693 [13:46:01]save to /storage/0113/doc_00028693 [13:46:01]save last doc name /storage/0113/doc_00028693 to /storage/kkm_last_doc_name [13:46:01]save OK [13:46:01]Clear old archive folders... [13:46:01]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:46:01]tlvbuf is 01AB6920 [13:46:01]SAM_PROTO_ClearQueue [13:46:01]wFMCommunicate request_size=4 [13:46:01]MH_SAM_APDU [13:46:01]CAPDU: 80 09 00 00 [13:46:01]Write to MH i2c: E2 08 00 72 83 80 09 00 00 00 00 00 00 67 [13:46:01]Write i2c OK [13:46:01]MH_I2C_Read... [13:46:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:46:01]Read from MH i2c: E2 [13:46:01]MH_I2C_Read... [13:46:01]Read from MH i2c: E2 03 00 [13:46:01]MH_I2C_Read... [13:46:01]Read from MH i2c: E2 03 00 72 83 00 90 00 69 [13:46:01]RAPDU: 90 00 [13:46:01]wFMCommunicate OK [13:46:01]SAM_PROTO_ClearQueue done [13:46:01]KKMCreateOFDPacket [13:46:01]OFDProtocolAddRootSTLVToBuf [13:46:01]FM_MakeSignedData [13:46:01]FM_MakeSignedData [13:46:01]SAM_PROTO_SignData [13:46:01]wFMCommunicate request_size=4 [13:46:01]MH_SAM_APDU [13:46:01]CAPDU: 80 0D 01 02 [13:46:01]Write to MH i2c: E2 08 00 73 83 80 0D 01 02 00 00 00 00 6F [13:46:01]Write i2c OK [13:46:01]MH_I2C_Read... [13:46:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:46:01]Read from MH i2c: E2 [13:46:01]MH_I2C_Read... [13:46:01]Read from MH i2c: E2 03 00 [13:46:01]MH_I2C_Read... [13:46:01]Read from MH i2c: E2 03 00 73 83 00 90 00 6A [13:46:01]RAPDU: 90 00 [13:46:01]wFMCommunicate OK [13:46:01]wFMCommunicate request_size=255 [13:46:01]MH_SAM_APDU [13:46:01]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F6 27 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 51 21 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 21 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 1E 00 00 00 00 07 04 06 00 10 21 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 20 3B 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 15 70 00 00 35 04 06 00 64 77 D7 2E [13:46:01]Write to MH i2c: E2 02 01 74 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 35 FF 03 08 00 03 F6 27 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 51 21 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 21 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 1E 00 00 00 00 07 04 06 00 10 21 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 20 3B 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 15 70 00 00 35 04 06 00 64 77 D7 2E 00 00 E7 [13:46:01]Write i2c OK [13:46:01]MH_I2C_Read... [13:46:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:46:01]Read from MH i2c: E2 [13:46:01]MH_I2C_Read... [13:46:01]Read from MH i2c: E2 03 00 [13:46:01]MH_I2C_Read... [13:46:01]Read from MH i2c: E2 03 00 74 83 00 90 00 6B [13:46:01]RAPDU: 90 00 [13:46:01]wFMCommunicate OK [13:46:01]wFMCommunicate request_size=7 [13:46:01]MH_SAM_APDU [13:46:01]CAPDU: 80 0D 02 02 02 20 1C [13:46:01]Write to MH i2c: E2 0A 00 75 83 80 0D 02 02 02 00 20 1C 00 00 B2 [13:46:01]Write i2c OK [13:46:01]MH_I2C_Read... [13:46:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:46:01]Read from MH i2c: E2 [13:46:01]MH_I2C_Read... [13:46:01]Read from MH i2c: E2 03 00 [13:46:01]MH_I2C_Read... [13:46:01]Read from MH i2c: E2 03 00 75 83 00 90 00 6C [13:46:01]RAPDU: 90 00 [13:46:01]wFMCommunicate OK [13:46:01]wFMCommunicate request_size=4 [13:46:01]MH_SAM_APDU [13:46:01]CAPDU: 80 0D 03 02 [13:46:01]Write to MH i2c: E2 08 00 76 83 80 0D 03 02 00 00 00 00 74 [13:46:01]Write i2c OK [13:46:01]MH_I2C_Read... [13:46:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:46:02]Read from MH i2c: E2 [13:46:02]MH_I2C_Read... [13:46:02]Read from MH i2c: E2 0B 00 [13:46:02]MH_I2C_Read... [13:46:02]Read from MH i2c: E2 0B 00 76 83 00 90 66 06 31 49 4B 76 16 90 00 C2 [13:46:02]RAPDU: 90 66 06 31 49 4B 76 16 90 00 [13:46:02]wFMCommunicate OK [13:46:02]SAM_PROTO_SignData done [13:46:02]FM_MakeSignedData done [13:46:02]CreateOFDProtocolMessage [13:46:02]wFMCommunicate request_size=4 [13:46:02]MH_SAM_APDU [13:46:02]CAPDU: 80 11 00 00 [13:46:02]Write to MH i2c: E2 08 00 77 83 80 11 00 00 00 00 00 00 74 [13:46:02]Write i2c OK [13:46:02]MH_I2C_Read... [13:46:02]OFD Sender: No OFD packet to send [13:46:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:46:02]Read from MH i2c: E2 [13:46:02]MH_I2C_Read... [13:46:02]Read from MH i2c: E2 17 00 [13:46:02]MH_I2C_Read... [13:46:02]Read from MH i2c: E2 17 00 77 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 C3 [13:46:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:46:02]wFMCommunicate OK [13:46:02]CreateOFDProtocolMessage done [13:46:02]OFDSenderStorePacket 28693 [13:46:02]StoreOFDPacket docnum=28693 [13:46:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 54 B3 04 01 B0 64 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F6 27 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 51 21 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 21 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 1E 00 00 00 00 07 04 06 00 10 21 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 20 3B 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 15 70 00 00 35 04 06 00 64 77 D7 2E 20 1C 90 66 06 31 49 4B 76 16 [13:46:02]CheckFolder [13:46:02]dirname=/storage/ofd_packets [13:46:02]CheckFolder done [13:46:02]ProducePacketName [13:46:02]name=ofd_packets/00028693 [13:46:02]NVStorageSaveData ofd_packets/00028693 [13:46:02]File name is /storage/ofd_packets/00028693 [13:46:02]Write 298 bytes [13:46:02]NVStorageSaveData done [13:46:02]OFDSenderStorePacket done [13:46:02]KKMCreateOFDPacket done [13:46:02]NVStorageSaveData kkm_last_timestamp [13:46:02]File name is /storage/kkm_last_timestamp [13:46:02]Write 4 bytes [13:46:02]NVStorageSaveData done [13:46:02]ExternCall_PrintAddStr [13:46:02]wPrintStart [13:46:02]Write to MH i2c: 01 00 00 78 83 FB [13:46:02]Write i2c OK [13:46:02]MH_I2C_Read... [13:46:02]Read from MH i2c: 01 [13:46:02]MH_I2C_Read... [13:46:02]Read from MH i2c: 01 07 00 [13:46:02]MH_I2C_Read... [13:46:02]Read from MH i2c: 01 07 00 78 83 00 00 00 00 00 FF 0F 10 [13:46:02]RasterBufferAndPrint [13:46:02]line Счет N : (1)347026 [13:46:02]line ИНН: 02508201610067 [13:46:02]line Контрольно-Кассовый Чек [13:46:02]line ПРОДАЖА [13:46:02]line ТРК (МРК, ГНК) : 11 [13:46:02]line Товар: 2710194210 [13:46:02]line ДТ-К-5 [13:46:02]line 10.230 * 72.40 [13:46:02]line = 740.65 [13:46:02]line НДС 12% НСП 1% [13:46:02]line > о реализуемом товаре [13:46:02]line ОКРУГЛЕНИЕ: -0.65 [13:46:02]line ИТОГО: 740.00 [13:46:02]line Внесено: 740.00 [13:46:02]line СДАЧА: 0.00 [13:46:02]line НСП 1% : 6.55 [13:46:02]line НДС 12% : 78.65 [13:46:02]line Наличными: 740.00 [13:46:02]line Безнал.: 0.00 [13:46:02]line Место: АЗС № 108 "Партнер Нефть" [13:46:02]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [13:46:02]line СНО: Общий режим [13:46:02]line Чек 142 12.04.2024 13:46 [13:46:02]line Смена: 113 ФФД: 1.0 [13:46:02]line ЗНМ: 0300000027 [13:46:02]line РНМ: 0000138879044617 [13:46:02]line Версия ККМ: 001 [13:46:02]line ФМ: 0000000000963154 [13:46:02]line ФД: 28693 [13:46:02]line ФПД: 110465874010140 [13:46:02]line 1/tax-web-control/client/api/v1/ticket?date=20240412T134608&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28693&fm=110465874010140&tin=02508201610067®Number=0000138879044617&sum=74000 [13:46:02]OFD Sender: Processing packet 28693 [packets to send 8, broken 7] [13:46:02]ProducePacketName [13:46:02]name=ofd_packets/00028693 [13:46:02]OFD Sender: To server: pG, [13:46:02]CommunicateWithHost lk.salyk.kg:30040 [13:46:02]ConnectInit lk.salyk.kg [13:46:02]written 0, free lines is 4095 [13:46:02]Connected sock=7 [13:46:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 54 B3 04 01 B0 64 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F6 27 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 51 21 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 21 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 1E 00 00 00 00 07 04 06 00 10 21 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 20 3B 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 15 70 00 00 35 04 06 00 64 77 D7 2E 20 1C 90 66 06 31 49 4B 76 16 [13:46:02]Write to MH i2c: 01 00 00 A2 83 25 [13:46:02]Write i2c OK [13:46:02]MH_I2C_Read... [13:46:02]Read from MH i2c: 01 [13:46:02]MH_I2C_Read... [13:46:02]Read from MH i2c: 01 07 00 [13:46:02]MH_I2C_Read... [13:46:02]Read from MH i2c: 01 07 00 A2 83 00 00 00 00 00 C7 0C FF [13:46:02]RasterBufferAndPrint [13:46:02]line [13:46:02]line [13:46:02]line [13:46:02]line [13:46:02]line [13:46:02]written 0, free lines is 3276 [13:46:02]MH_Cut [13:46:02]Write to MH i2c: D1 01 00 A9 83 01 FE [13:46:02]Write i2c OK [13:46:02]MH_I2C_Read... [13:46:02]Read from MH i2c: D1 [13:46:02]MH_I2C_Read... [13:46:02]Read from MH i2c: D1 01 00 [13:46:02]MH_I2C_Read... [13:46:02]Read from MH i2c: D1 01 00 A9 83 00 FD [13:46:02]Write to MH i2c: 01 00 00 AA 83 2D [13:46:02]Write i2c OK [13:46:02]MH_I2C_Read... [13:46:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 3F 6F 47 00 63 60 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 15 70 00 00 F4 03 04 00 CB E5 18 66 B6 04 01 00 00 8F BB 1B C6 3A 90 40 BD [13:46:03]CommunicateWithHost err = 0 [13:46:03]CheckOFDResponse [13:46:03]1017 (14) - 77093643461234 [13:46:03]1041 (16) - 0000000000963154 [13:46:03]1040 (4) - 28693 [13:46:03]1012 (4) - 12.04.2024 07:42 [13:46:03]1206 (1) - 0 [13:46:03]OFD Sender: Remove packet 28693 [13:46:03]ProducePacketName [13:46:03]name=ofd_packets/00028693 [13:46:03]NVStorageDeleteData [13:46:03]*** Cut start [13:46:03]*** Partial cut [13:46:03]*** CUTSNS_PIN = 1 [13:46:03]*** CUTSNS_PIN = 0 [13:46:03]OFD Sender: No OFD packet to send [13:46:03]*** Brake cut motor [13:46:04]Read from MH i2c: 01 [13:46:04]MH_I2C_Read... [13:46:04]*** Stop cut motor [13:46:04]*** Cut end [13:46:04]Read from MH i2c: 01 07 00 [13:46:04]MH_I2C_Read... [13:46:04]Read from MH i2c: 01 07 00 AA 83 00 00 00 00 00 FF 0F 42 [13:46:04]process_action close_receipt done [13:46:04]requested_data is exist [13:46:04]produce_requested_data [13:46:04]requested_item fm.sn is exist - process it [13:46:04]wFMCommunicate request_size=4 [13:46:04]MH_SAM_APDU [13:46:04]CAPDU: 80 11 00 00 [13:46:04]Write to MH i2c: E2 08 00 AB 83 80 11 00 00 00 00 00 00 A8 [13:46:04]Write i2c OK [13:46:04]MH_I2C_Read... [13:46:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:46:04]Read from MH i2c: E2 [13:46:04]MH_I2C_Read... [13:46:04]Read from MH i2c: E2 17 00 [13:46:04]MH_I2C_Read... [13:46:04]Read from MH i2c: E2 17 00 AB 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 F7 [13:46:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:46:04]wFMCommunicate OK [13:46:04]requested_item fd.num is exist - process it [13:46:04]SAM_PROTO_GetFieldsCounters [13:46:04]wFMCommunicate request_size=4 [13:46:04]MH_SAM_APDU [13:46:04]CAPDU: 80 13 00 00 [13:46:04]Write to MH i2c: E2 08 00 AC 83 80 13 00 00 00 00 00 00 AB [13:46:04]Write i2c OK [13:46:04]MH_I2C_Read... [13:46:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:46:04]Read from MH i2c: E2 [13:46:04]MH_I2C_Read... [13:46:04]Read from MH i2c: E2 62 00 [13:46:04]MH_I2C_Read... [13:46:04]Read from MH i2c: E2 62 00 AC 83 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 15 70 00 00 0E 04 04 00 71 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 89 [13:46:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 15 70 00 00 0E 04 04 00 71 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 [13:46:04]wFMCommunicate OK [13:46:04]SAM_PROTO_GetFieldsCounters done [13:46:04]requested_item shift.num is exist - process it [13:46:04]requested_item shift.opened is exist - process it [13:46:04]req_shift_opened [13:46:04]FM_GetShiftState [13:46:04]SAM_PROTO_GetShiftState [13:46:04]wFMCommunicate request_size=4 [13:46:04]MH_SAM_APDU [13:46:04]CAPDU: 80 13 01 00 [13:46:04]Write to MH i2c: E2 08 00 AD 83 80 13 01 00 00 00 00 00 AD [13:46:04]Write i2c OK [13:46:04]MH_I2C_Read... [13:46:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:46:04]Read from MH i2c: E2 [13:46:04]MH_I2C_Read... [13:46:04]Read from MH i2c: E2 0E 00 [13:46:04]MH_I2C_Read... [13:46:04]Read from MH i2c: E2 0E 00 AD 83 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 BE [13:46:04]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [13:46:04]wFMCommunicate OK [13:46:04]SAM_PROTO_GetShiftState done [13:46:04]FM_GetShiftState done [13:46:04]req_shift_opened done [13:46:04]requested_item shift.open_date is exist - process it [13:46:04]req_shift_open_date [13:46:04]req_shift_open_date done [13:46:04]produce_requested_data done [13:46:04]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28693,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [13:46:04]process_action_free close_receipt [13:46:04]json_value_free [13:46:04]json_value_free done [13:46:04]process_json_proto returns [13:46:04]Send response to host [13:46:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28693,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [13:46:04]free response buf [13:46:04]execute_script done [13:46:04]execute_script returns [13:46:04]free content buf [13:46:04]Sock 6.Close socket [13:46:04]Sock 6.Thread stoped [13:46:08]OFD Sender: No OFD packet to send [13:46:13]OFD Sender: No OFD packet to send [13:46:18]OFD Sender: No OFD packet to send [13:46:23]OFD Sender: No OFD packet to send [13:46:28]OFD Sender: No OFD packet to send [13:46:33]OFD Sender: No OFD packet to send [13:46:38]OFD Sender: No OFD packet to send [13:46:43]OFD Sender: No OFD packet to send [13:46:48]OFD Sender: No OFD packet to send [13:46:53]OFD Sender: No OFD packet to send [13:46:58]OFD Sender: No OFD packet to send [13:47:03]OFD Sender: No OFD packet to send [13:47:08]OFD Sender: No OFD packet to send [13:47:13]OFD Sender: No OFD packet to send [13:47:18]OFD Sender: No OFD packet to send [13:47:23]OFD Sender: No OFD packet to send [13:47:29]OFD Sender: No OFD packet to send [13:47:34]OFD Sender: No OFD packet to send [13:47:39]OFD Sender: No OFD packet to send [13:47:44]OFD Sender: No OFD packet to send [13:47:49]OFD Sender: No OFD packet to send [13:47:49]accept exits with 5 [13:47:49]New connection [13:47:49]New thread 3066641764 created [13:47:49]Thread 3066498404 joined [13:47:49]Waiting for new connection... [13:47:49] Sock 5.Parse request [13:47:49]Sock 5.Check first char [13:47:49]Sock 5.First char is OK [13:47:49]request: POST /json_proto HTTP/1.0 [13:47:49]Method: POST [13:47:49]URL: /json_proto [13:47:49]Method is POST - this is cgi request [13:47:49]url: /json_proto [13:47:49]query_string will be loaded in cgi processing [13:47:49]execute_cgi json_proto POST (null) [13:47:49]execute_cgi path=json_proto method=POST [13:47:49]POST find Content-Length [13:47:49]Host: 172.17.33.3:8080 [13:47:49]Content-Length: 675 [13:47:49]Content-Type: application/json [13:47:49] [13:47:49]POST finish read [13:47:49]Found Content-Length = 675 [13:47:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347027", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 15.320, "sum" : 1000.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:47:49]execute_script... [13:47: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)347027", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 15.320, "sum" : 1000.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:47:49]POST & json_proto [13:47:49]process_json_proto [13:47:49]json parsed OK: [13:47:49]protocol is kg_v1.0 [13:47:49]action value=close_receipt [13:47:49]process_action close_receipt [13:47:49]cmd_close_receipt [13:47:49]MH_GetDate [13:47:49]Write to MH i2c: F0 00 00 AE 83 20 [13:47:49]Write i2c OK [13:47:49]MH_I2C_Read... [13:47:49]Read from MH i2c: F0 [13:47:49]MH_I2C_Read... [13:47:49]Read from MH i2c: F0 09 00 [13:47:49]MH_I2C_Read... [13:47:49]Read from MH i2c: F0 09 00 AE 83 00 8D 3B 19 66 23 5B 8F 65 E2 [13:47:49]GetLastDocTimeStamp 1712929568 [13:47:49]current date 1712929677 [13:47:49]FM_GetShiftState [13:47:49]SAM_PROTO_GetShiftState [13:47:49]wFMCommunicate request_size=4 [13:47:49]MH_SAM_APDU [13:47:49]CAPDU: 80 13 01 00 [13:47:49]Write to MH i2c: E2 08 00 AF 83 80 13 01 00 00 00 00 00 AF [13:47:49]Write i2c OK [13:47:49]MH_I2C_Read... [13:47:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:47:49]Read from MH i2c: E2 [13:47:49]MH_I2C_Read... [13:47:49]Read from MH i2c: E2 0E 00 [13:47:49]MH_I2C_Read... [13:47:49]Read from MH i2c: E2 0E 00 AF 83 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 C0 [13:47:49]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [13:47:49]wFMCommunicate OK [13:47:49]SAM_PROTO_GetShiftState done [13:47:49]FM_GetShiftState done [13:47:49]opened in 1712881416 [13:47:49]opened+sec_in_day 1712967816 [13:47:49]quantity*price = 100039 [13:47:49]sum+1 = 100041 [13:47:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 143 12.04.2024 13:47 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28694 ФПД: 207636259462139 1/tax-web-control/client/api/v1/ticket?date=20240412T134757&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28694&fm=207636259462139&tin=02508201610067®Number=0000138879044617&sum=100000 [13:47:50]StoreToDocumentArchive [13:47:50]shift 113 fd 28694 [13:47:50]save to /storage/0113/doc_00028694 [13:47:50]save last doc name /storage/0113/doc_00028694 to /storage/kkm_last_doc_name [13:47:50]save OK [13:47:50]Clear old archive folders... [13:47:50]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:47:50]tlvbuf is 01AEEDB0 [13:47:50]SAM_PROTO_ClearQueue [13:47:50]wFMCommunicate request_size=4 [13:47:50]MH_SAM_APDU [13:47:50]CAPDU: 80 09 00 00 [13:47:50]Write to MH i2c: E2 08 00 BC 83 80 09 00 00 00 00 00 00 B1 [13:47:50]Write i2c OK [13:47:50]MH_I2C_Read... [13:47:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:47:50]Read from MH i2c: E2 [13:47:50]MH_I2C_Read... [13:47:50]Read from MH i2c: E2 03 00 [13:47:50]MH_I2C_Read... [13:47:50]Read from MH i2c: E2 03 00 BC 83 00 90 00 B3 [13:47:50]RAPDU: 90 00 [13:47:50]wFMCommunicate OK [13:47:50]SAM_PROTO_ClearQueue done [13:47:50]KKMCreateOFDPacket [13:47:50]OFDProtocolAddRootSTLVToBuf [13:47:50]FM_MakeSignedData [13:47:50]FM_MakeSignedData [13:47:50]SAM_PROTO_SignData [13:47:50]wFMCommunicate request_size=4 [13:47:50]MH_SAM_APDU [13:47:50]CAPDU: 80 0D 01 02 [13:47:50]Write to MH i2c: E2 08 00 BD 83 80 0D 01 02 00 00 00 00 B9 [13:47:50]Write i2c OK [13:47:50]MH_I2C_Read... [13:47:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:47:50]Read from MH i2c: E2 [13:47:50]MH_I2C_Read... [13:47:50]Read from MH i2c: E2 03 00 [13:47:50]MH_I2C_Read... [13:47:50]Read from MH i2c: E2 03 00 BD 83 00 90 00 B4 [13:47:50]RAPDU: 90 00 [13:47:50]wFMCommunicate OK [13:47:50]wFMCommunicate request_size=255 [13:47:50]MH_SAM_APDU [13:47:50]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 3B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 8D 3B 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 16 70 00 00 35 04 06 00 [13:47:50]Write to MH i2c: E2 02 01 BE 83 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 3B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 8D 3B 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 16 70 00 00 35 04 06 00 00 00 C3 [13:47:50]Write i2c OK [13:47:50]MH_I2C_Read... [13:47:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:47:51]Read from MH i2c: E2 [13:47:51]MH_I2C_Read... [13:47:51]Read from MH i2c: E2 03 00 [13:47:51]MH_I2C_Read... [13:47:51]Read from MH i2c: E2 03 00 BE 83 00 90 00 B5 [13:47:51]RAPDU: 90 00 [13:47:51]wFMCommunicate OK [13:47:51]wFMCommunicate request_size=11 [13:47:51]MH_SAM_APDU [13:47:51]CAPDU: 80 0D 02 02 06 BC D8 15 7C DB FB [13:47:51]Write to MH i2c: E2 0E 00 BF 83 80 0D 02 02 06 00 BC D8 15 7C DB FB 00 00 C3 [13:47:51]Write i2c OK [13:47:51]MH_I2C_Read... [13:47:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:47:51]Read from MH i2c: E2 [13:47:51]MH_I2C_Read... [13:47:51]Read from MH i2c: E2 03 00 [13:47:51]MH_I2C_Read... [13:47:51]Read from MH i2c: E2 03 00 BF 83 00 90 00 B6 [13:47:51]RAPDU: 90 00 [13:47:51]wFMCommunicate OK [13:47:51]wFMCommunicate request_size=4 [13:47:51]MH_SAM_APDU [13:47:51]CAPDU: 80 0D 03 02 [13:47:51]Write to MH i2c: E2 08 00 C0 83 80 0D 03 02 00 00 00 00 BE [13:47:51]Write i2c OK [13:47:51]MH_I2C_Read... [13:47:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:47:51]Read from MH i2c: E2 [13:47:51]MH_I2C_Read... [13:47:51]Read from MH i2c: E2 0B 00 [13:47:51]MH_I2C_Read... [13:47:51]Read from MH i2c: E2 0B 00 C0 83 00 A2 87 E6 95 6B 6C 5B A8 90 00 3D [13:47:51]RAPDU: A2 87 E6 95 6B 6C 5B A8 90 00 [13:47:51]wFMCommunicate OK [13:47:51]SAM_PROTO_SignData done [13:47:51]FM_MakeSignedData done [13:47:51]CreateOFDProtocolMessage [13:47:51]wFMCommunicate request_size=4 [13:47:51]MH_SAM_APDU [13:47:51]CAPDU: 80 11 00 00 [13:47:51]Write to MH i2c: E2 08 00 C1 83 80 11 00 00 00 00 00 00 BE [13:47:51]Write i2c OK [13:47:51]MH_I2C_Read... [13:47:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:47:51]Read from MH i2c: E2 [13:47:51]MH_I2C_Read... [13:47:51]Read from MH i2c: E2 17 00 [13:47:51]MH_I2C_Read... [13:47:51]Read from MH i2c: E2 17 00 C1 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 0D [13:47:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:47:51]wFMCommunicate OK [13:47:51]CreateOFDProtocolMessage done [13:47:51]OFDSenderStorePacket 28694 [13:47:51]StoreOFDPacket docnum=28694 [13:47:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 1F CA 08 01 26 19 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 3B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 8D 3B 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 16 70 00 00 35 04 06 00 BC D8 15 7C DB FB A2 87 E6 95 6B 6C 5B A8 [13:47:51]CheckFolder [13:47:51]dirname=/storage/ofd_packets [13:47:51]CheckFolder done [13:47:51]ProducePacketName [13:47:51]name=ofd_packets/00028694 [13:47:51]NVStorageSaveData ofd_packets/00028694 [13:47:51]File name is /storage/ofd_packets/00028694 [13:47:51]Write 302 bytes [13:47:51]NVStorageSaveData done [13:47:51]OFDSenderStorePacket done [13:47:51]KKMCreateOFDPacket done [13:47:51]NVStorageSaveData kkm_last_timestamp [13:47:51]File name is /storage/kkm_last_timestamp [13:47:51]Write 4 bytes [13:47:51]NVStorageSaveData done [13:47:51]ExternCall_PrintAddStr [13:47:51]wPrintStart [13:47:51]Write to MH i2c: 01 00 00 C2 83 45 [13:47:51]Write i2c OK [13:47:51]MH_I2C_Read... [13:47:51]Read from MH i2c: 01 [13:47:51]MH_I2C_Read... [13:47:51]Read from MH i2c: 01 07 00 [13:47:51]MH_I2C_Read... [13:47:51]Read from MH i2c: 01 07 00 C2 83 00 00 00 00 00 FF 0F 5A [13:47:51]RasterBufferAndPrint [13:47:51]line Счет N : (1)347027 [13:47:51]line ИНН: 02508201610067 [13:47:51]line Контрольно-Кассовый Чек [13:47:51]line ПРОДАЖА [13:47:51]line ТРК (МРК, ГНК) : 41 [13:47:51]line Товар: 2710124130 [13:47:51]line SUPER-92-К-5 [13:47:51]line 15.320 * 65.30 [13:47:51]line = 1000.40 [13:47:51]line НДС 12% НСП 1% [13:47:51]line > о реализуемом товаре [13:47:51]line ОКРУГЛЕНИЕ: -0.40 [13:47:51]line ИТОГО: 1000.00 [13:47:51]line Внесено: 1000.00 [13:47:51]line СДАЧА: 0.00 [13:47:51]line НСП 1% : 8.85 [13:47:51]line НДС 12% : 106.24 [13:47:51]line Наличными: 1000.00 [13:47:51]line Безнал.: 0.00 [13:47:51]line Место: АЗС № 108 "Партнер Нефть" [13:47:51]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [13:47:51]line СНО: Общий режим [13:47:51]line Чек 143 12.04.2024 13:47 [13:47:51]line Смена: 113 ФФД: 1.0 [13:47:51]line ЗНМ: 0300000027 [13:47:51]line РНМ: 0000138879044617 [13:47:51]line Версия ККМ: 001 [13:47:51]line ФМ: 0000000000963154 [13:47:51]line ФД: 28694 [13:47:51]line ФПД: 207636259462139 [13:47:51]line 1/tax-web-control/client/api/v1/ticket?date=20240412T134757&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28694&fm=207636259462139&tin=02508201610067®Number=0000138879044617&sum=100000 [13:47:51]OFD Sender: Processing packet 28694 [packets to send 8, broken 7] [13:47:51]ProducePacketName [13:47:51]name=ofd_packets/00028694 [13:47:51]OFD Sender: To server: pG, [13:47:51]CommunicateWithHost lk.salyk.kg:30040 [13:47:51]ConnectInit lk.salyk.kg [13:47:51]written 0, free lines is 4095 [13:47:51]Connected sock=7 [13:47:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 1F CA 08 01 26 19 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 3B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 8D 3B 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 16 70 00 00 35 04 06 00 BC D8 15 7C DB FB A2 87 E6 95 6B 6C 5B A8 [13:47:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 EB 9C 47 00 48 54 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 16 70 00 00 F4 03 04 00 37 E6 18 66 B6 04 01 00 00 63 40 CA 27 E6 C7 3C 77 [13:47:51]CommunicateWithHost err = 0 [13:47:51]CheckOFDResponse [13:47:51]1017 (14) - 77093643461234 [13:47:51]1041 (16) - 0000000000963154 [13:47:51]1040 (4) - 28694 [13:47:51]1012 (4) - 12.04.2024 07:43 [13:47:51]1206 (1) - 0 [13:47:51]OFD Sender: Remove packet 28694 [13:47:51]ProducePacketName [13:47:51]name=ofd_packets/00028694 [13:47:51]NVStorageDeleteData [13:47:52]Write to MH i2c: 01 00 00 EC 83 6F [13:47:52]Write i2c OK [13:47:52]MH_I2C_Read... [13:47:52]Read from MH i2c: 01 [13:47:52]MH_I2C_Read... [13:47:52]Read from MH i2c: 01 07 00 [13:47:52]MH_I2C_Read... [13:47:52]Read from MH i2c: 01 07 00 EC 83 00 00 00 00 00 CB 0C 4D [13:47:52]RasterBufferAndPrint [13:47:52]line [13:47:52]line [13:47:52]line [13:47:52]line [13:47:52]line [13:47:52]written 0, free lines is 3281 [13:47:52]MH_Cut [13:47:52]Write to MH i2c: D1 01 00 F3 83 01 48 [13:47:52]Write i2c OK [13:47:52]MH_I2C_Read... [13:47:52]Read from MH i2c: D1 [13:47:52]MH_I2C_Read... [13:47:52]Read from MH i2c: D1 01 00 [13:47:52]MH_I2C_Read... [13:47:52]Read from MH i2c: D1 01 00 F3 83 00 47 [13:47:52]Write to MH i2c: 01 00 00 F4 83 77 [13:47:52]Write i2c OK [13:47:52]MH_I2C_Read... [13:47:52]OFD Sender: No OFD packet to send [13:47:52]*** Cut start [13:47:52]*** Partial cut [13:47:52]*** CUTSNS_PIN = 1 [13:47:52]*** CUTSNS_PIN = 0 [13:47:53]*** Brake cut motor [13:47:53]Read from MH i2c: 01 [13:47:53]MH_I2C_Read... [13:47:53]*** Stop cut motor [13:47:53]*** Cut end [13:47:53]Read from MH i2c: 01 07 00 [13:47:53]MH_I2C_Read... [13:47:53]Read from MH i2c: 01 07 00 F4 83 00 00 00 00 00 FF 0F 8C [13:47:53]process_action close_receipt done [13:47:53]requested_data is exist [13:47:53]produce_requested_data [13:47:53]requested_item fm.sn is exist - process it [13:47:53]wFMCommunicate request_size=4 [13:47:53]MH_SAM_APDU [13:47:53]CAPDU: 80 11 00 00 [13:47:53]Write to MH i2c: E2 08 00 F5 83 80 11 00 00 00 00 00 00 F2 [13:47:53]Write i2c OK [13:47:53]MH_I2C_Read... [13:47:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:47:53]Read from MH i2c: E2 [13:47:53]MH_I2C_Read... [13:47:53]Read from MH i2c: E2 17 00 [13:47:53]MH_I2C_Read... [13:47:53]Read from MH i2c: E2 17 00 F5 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 41 [13:47:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:47:53]wFMCommunicate OK [13:47:53]requested_item fd.num is exist - process it [13:47:53]SAM_PROTO_GetFieldsCounters [13:47:53]wFMCommunicate request_size=4 [13:47:53]MH_SAM_APDU [13:47:53]CAPDU: 80 13 00 00 [13:47:53]Write to MH i2c: E2 08 00 F6 83 80 13 00 00 00 00 00 00 F5 [13:47:53]Write i2c OK [13:47:53]MH_I2C_Read... [13:47:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:47:53]Read from MH i2c: E2 [13:47:53]MH_I2C_Read... [13:47:53]Read from MH i2c: E2 62 00 [13:47:53]MH_I2C_Read... [13:47:53]Read from MH i2c: E2 62 00 F6 83 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 16 70 00 00 0E 04 04 00 71 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 D7 [13:47:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 16 70 00 00 0E 04 04 00 71 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 [13:47:53]wFMCommunicate OK [13:47:53]SAM_PROTO_GetFieldsCounters done [13:47:53]requested_item shift.num is exist - process it [13:47:53]requested_item shift.opened is exist - process it [13:47:53]req_shift_opened [13:47:53]FM_GetShiftState [13:47:53]SAM_PROTO_GetShiftState [13:47:53]wFMCommunicate request_size=4 [13:47:53]MH_SAM_APDU [13:47:53]CAPDU: 80 13 01 00 [13:47:53]Write to MH i2c: E2 08 00 F7 83 80 13 01 00 00 00 00 00 F7 [13:47:53]Write i2c OK [13:47:53]MH_I2C_Read... [13:47:53]Read from MH i2c: E2 [13:47:53]MH_I2C_Read... [13:47:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:47:53]Read from MH i2c: E2 0E 00 [13:47:53]MH_I2C_Read... [13:47:53]Read from MH i2c: E2 0E 00 F7 83 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 08 [13:47:53]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [13:47:53]wFMCommunicate OK [13:47:53]SAM_PROTO_GetShiftState done [13:47:53]FM_GetShiftState done [13:47:53]req_shift_opened done [13:47:53]requested_item shift.open_date is exist - process it [13:47:53]req_shift_open_date [13:47:53]req_shift_open_date done [13:47:53]produce_requested_data done [13:47:53]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28694,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [13:47:53]process_action_free close_receipt [13:47:53]json_value_free [13:47:53]json_value_free done [13:47:53]process_json_proto returns [13:47:53]Send response to host [13:47:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28694,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [13:47:53]free response buf [13:47:53]execute_script done [13:47:53]execute_script returns [13:47:53]free content buf [13:47:53]Sock 5.Close socket [13:47:53]Sock 5.Thread stoped [13:47:57]OFD Sender: No OFD packet to send [13:48:02]OFD Sender: No OFD packet to send [13:48:07]OFD Sender: No OFD packet to send [13:48:12]OFD Sender: No OFD packet to send [13:48:17]OFD Sender: No OFD packet to send [13:48:22]OFD Sender: No OFD packet to send [13:48:22]accept exits with 6 [13:48:22]New connection [13:48:22]New thread 3066498404 created [13:48:22]Thread 3066641764 joined [13:48:22]Waiting for new connection... [13:48:22] Sock 6.Parse request [13:48:22]Sock 6.Check first char [13:48:22]Sock 6.First char is OK [13:48:22]request: POST /json_proto HTTP/1.0 [13:48:22]Method: POST [13:48:22]URL: /json_proto [13:48:22]Method is POST - this is cgi request [13:48:22]url: /json_proto [13:48:22]query_string will be loaded in cgi processing [13:48:22]execute_cgi json_proto POST (null) [13:48:22]execute_cgi path=json_proto method=POST [13:48:22]POST find Content-Length [13:48:22]Host: 172.17.33.3:8080 [13:48:22]Content-Length: 682 [13:48:22]Content-Type: application/json [13:48:22] [13:48:22]POST finish read [13:48:22]Found Content-Length = 682 [13:48:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347028", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 15.560, "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:48:22]execute_script... [13:48: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)347028", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 15.560, "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:48:22]POST & json_proto [13:48:22]process_json_proto [13:48:22]json parsed OK: [13:48:22]protocol is kg_v1.0 [13:48:22]action value=close_receipt [13:48:22]process_action close_receipt [13:48:22]cmd_close_receipt [13:48:22]MH_GetDate [13:48:22]Write to MH i2c: F0 00 00 F8 83 6A [13:48:22]Write i2c OK [13:48:22]MH_I2C_Read... [13:48:22]Read from MH i2c: F0 [13:48:22]MH_I2C_Read... [13:48:22]Read from MH i2c: F0 09 00 [13:48:22]MH_I2C_Read... [13:48:22]Read from MH i2c: F0 09 00 F8 83 00 AE 3B 19 66 23 5B 8F 65 4D [13:48:22]GetLastDocTimeStamp 1712929677 [13:48:22]current date 1712929710 [13:48:22]FM_GetShiftState [13:48:22]SAM_PROTO_GetShiftState [13:48:22]wFMCommunicate request_size=4 [13:48:22]MH_SAM_APDU [13:48:22]CAPDU: 80 13 01 00 [13:48:22]Write to MH i2c: E2 08 00 F9 83 80 13 01 00 00 00 00 00 F9 [13:48:22]Write i2c OK [13:48:22]MH_I2C_Read... [13:48:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:48:22]Read from MH i2c: E2 [13:48:22]MH_I2C_Read... [13:48:22]Read from MH i2c: E2 0E 00 [13:48:22]MH_I2C_Read... [13:48:22]Read from MH i2c: E2 0E 00 F9 83 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 0A [13:48:22]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [13:48:22]wFMCommunicate OK [13:48:22]SAM_PROTO_GetShiftState done [13:48:22]FM_GetShiftState done [13:48:22]opened in 1712881416 [13:48:22]opened+sec_in_day 1712967816 [13:48:22]quantity*price = 100050 [13:48:22]sum+1 = 100052 [13:48: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 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 144 12.04.2024 13:48 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28695 ФПД: 111074235041450 1/tax-web-control/client/api/v1/ticket?date=20240412T134830&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28695&fm=111074235041450&tin=02508201610067®Number=0000138879044617&sum=100000 [13:48:23]StoreToDocumentArchive [13:48:23]shift 113 fd 28695 [13:48:23]save to /storage/0113/doc_00028695 [13:48:23]save last doc name /storage/0113/doc_00028695 to /storage/kkm_last_doc_name [13:48:23]save OK [13:48:23]Clear old archive folders... [13:48:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:48:23]tlvbuf is 01B2FDE0 [13:48:23]SAM_PROTO_ClearQueue [13:48:23]wFMCommunicate request_size=4 [13:48:23]MH_SAM_APDU [13:48:23]CAPDU: 80 09 00 00 [13:48:23]Write to MH i2c: E2 08 00 06 84 80 09 00 00 00 00 00 00 FC [13:48:23]Write i2c OK [13:48:23]MH_I2C_Read... [13:48:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:48:23]Read from MH i2c: E2 [13:48:23]MH_I2C_Read... [13:48:23]Read from MH i2c: E2 03 00 [13:48:23]MH_I2C_Read... [13:48:23]Read from MH i2c: E2 03 00 06 84 00 90 00 FE [13:48:23]RAPDU: 90 00 [13:48:23]wFMCommunicate OK [13:48:23]SAM_PROTO_ClearQueue done [13:48:23]KKMCreateOFDPacket [13:48:23]OFDProtocolAddRootSTLVToBuf [13:48:23]FM_MakeSignedData [13:48:23]FM_MakeSignedData [13:48:23]SAM_PROTO_SignData [13:48:23]wFMCommunicate request_size=4 [13:48:23]MH_SAM_APDU [13:48:23]CAPDU: 80 0D 01 02 [13:48:23]Write to MH i2c: E2 08 00 07 84 80 0D 01 02 00 00 00 00 04 [13:48:23]Write i2c OK [13:48:23]MH_I2C_Read... [13:48:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:48:23]Read from MH i2c: E2 [13:48:23]MH_I2C_Read... [13:48:23]Read from MH i2c: E2 03 00 [13:48:23]MH_I2C_Read... [13:48:23]Read from MH i2c: E2 03 00 07 84 00 90 00 FF [13:48:23]RAPDU: 90 00 [13:48:23]wFMCommunicate OK [13:48:23]wFMCommunicate request_size=255 [13:48:23]MH_SAM_APDU [13:48: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 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 90 00 00 00 F4 03 04 00 AE 3B 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 17 70 00 00 35 04 06 00 65 [13:48:23]Write to MH i2c: E2 02 01 08 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 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 90 00 00 00 F4 03 04 00 AE 3B 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 17 70 00 00 35 04 06 00 65 00 00 85 [13:48:23]Write i2c OK [13:48:23]MH_I2C_Read... [13:48:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:48:24]Read from MH i2c: E2 [13:48:24]MH_I2C_Read... [13:48:24]Read from MH i2c: E2 03 00 [13:48:24]MH_I2C_Read... [13:48:24]Read from MH i2c: E2 03 00 08 84 00 90 00 00 [13:48:24]RAPDU: 90 00 [13:48:24]wFMCommunicate OK [13:48:24]wFMCommunicate request_size=10 [13:48:24]MH_SAM_APDU [13:48:24]CAPDU: 80 0D 02 02 05 05 7C 52 C6 AA [13:48:24]Write to MH i2c: E2 0D 00 09 84 80 0D 02 02 05 00 05 7C 52 C6 AA 00 00 54 [13:48:24]Write i2c OK [13:48:24]MH_I2C_Read... [13:48:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:48:24]Read from MH i2c: E2 [13:48:24]MH_I2C_Read... [13:48:24]Read from MH i2c: E2 03 00 [13:48:24]MH_I2C_Read... [13:48:24]Read from MH i2c: E2 03 00 09 84 00 90 00 01 [13:48:24]RAPDU: 90 00 [13:48:24]wFMCommunicate OK [13:48:24]wFMCommunicate request_size=4 [13:48:24]MH_SAM_APDU [13:48:24]CAPDU: 80 0D 03 02 [13:48:24]Write to MH i2c: E2 08 00 0A 84 80 0D 03 02 00 00 00 00 09 [13:48:24]Write i2c OK [13:48:24]MH_I2C_Read... [13:48:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:48:24]Read from MH i2c: E2 [13:48:24]MH_I2C_Read... [13:48:24]Read from MH i2c: E2 0B 00 [13:48:24]MH_I2C_Read... [13:48:24]Read from MH i2c: E2 0B 00 0A 84 00 FE 53 FA 38 7C C3 1B 20 90 00 07 [13:48:24]RAPDU: FE 53 FA 38 7C C3 1B 20 90 00 [13:48:24]wFMCommunicate OK [13:48:24]SAM_PROTO_SignData done [13:48:24]FM_MakeSignedData done [13:48:24]CreateOFDProtocolMessage [13:48:24]wFMCommunicate request_size=4 [13:48:24]MH_SAM_APDU [13:48:24]CAPDU: 80 11 00 00 [13:48:24]Write to MH i2c: E2 08 00 0B 84 80 11 00 00 00 00 00 00 09 [13:48:24]Write i2c OK [13:48:24]MH_I2C_Read... [13:48:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:48:24]Read from MH i2c: E2 [13:48:24]MH_I2C_Read... [13:48:24]Read from MH i2c: E2 17 00 [13:48:24]MH_I2C_Read... [13:48:24]Read from MH i2c: E2 17 00 0B 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 58 [13:48:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:48:24]wFMCommunicate OK [13:48:24]CreateOFDProtocolMessage done [13:48:24]OFDSenderStorePacket 28695 [13:48:24]StoreOFDPacket docnum=28695 [13:48:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 15 B5 07 01 80 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 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 90 00 00 00 F4 03 04 00 AE 3B 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 17 70 00 00 35 04 06 00 65 05 7C 52 C6 AA FE 53 FA 38 7C C3 1B 20 [13:48:24]CheckFolder [13:48:24]dirname=/storage/ofd_packets [13:48:24]CheckFolder done [13:48:24]ProducePacketName [13:48:24]name=ofd_packets/00028695 [13:48:24]NVStorageSaveData ofd_packets/00028695 [13:48:24]File name is /storage/ofd_packets/00028695 [13:48:24]Write 301 bytes [13:48:24]NVStorageSaveData done [13:48:24]OFDSenderStorePacket done [13:48:24]KKMCreateOFDPacket done [13:48:24]NVStorageSaveData kkm_last_timestamp [13:48:24]File name is /storage/kkm_last_timestamp [13:48:24]Write 4 bytes [13:48:24]NVStorageSaveData done [13:48:24]ExternCall_PrintAddStr [13:48:24]wPrintStart [13:48:24]Write to MH i2c: 01 00 00 0C 84 90 [13:48:24]Write i2c OK [13:48:24]MH_I2C_Read... [13:48:24]Read from MH i2c: 01 [13:48:24]MH_I2C_Read... [13:48:24]Read from MH i2c: 01 07 00 [13:48:24]MH_I2C_Read... [13:48:24]Read from MH i2c: 01 07 00 0C 84 00 00 00 00 00 FF 0F A5 [13:48:24]RasterBufferAndPrint [13:48:24]line Счет N : (1)347028 [13:48:24]line ИНН: 02508201610067 [13:48:24]line Контрольно-Кассовый Чек [13:48:24]line ПРОДАЖА [13:48:24]line ТРК (МРК, ГНК) : 23 [13:48:24]line Товар: 2710124130 [13:48:24]line Аи-92-К-5 [13:48:24]line 15.560 * 64.30 [13:48:24]line = 1000.51 [13:48:24]line НДС 12% НСП 1% [13:48:24]line > о реализуемом товаре [13:48:24]line ОКРУГЛЕНИЕ: -0.51 [13:48:24]line ИТОГО: 1000.00 [13:48:24]line Внесено: 1000.00 [13:48:24]line СДАЧА: 0.00 [13:48:24]line НСП 1% : 8.85 [13:48:24]line НДС 12% : 106.25 [13:48:24]line Наличными: 1000.00 [13:48:24]line Безнал.: 0.00 [13:48:24]line Место: АЗС № 108 "Партнер Нефть" [13:48:24]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [13:48:24]line СНО: Общий режим [13:48:24]line Чек 144 12.04.2024 13:48 [13:48:24]line Смена: 113 ФФД: 1.0 [13:48:24]line ЗНМ: 0300000027 [13:48:24]line РНМ: 0000138879044617 [13:48:24]line Версия ККМ: 001 [13:48:24]line ФМ: 0000000000963154 [13:48:24]line ФД: 28695 [13:48:24]line ФПД: 111074235041450 [13:48:24]line 1/tax-web-control/client/api/v1/ticket?date=20240412T134830&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28695&fm=111074235041450&tin=02508201610067®Number=0000138879044617&sum=100000 [13:48:24]OFD Sender: Processing packet 28695 [packets to send 8, broken 7] [13:48:24]ProducePacketName [13:48:24]name=ofd_packets/00028695 [13:48:24]OFD Sender: To server: pG, [13:48:24]CommunicateWithHost lk.salyk.kg:30040 [13:48:24]ConnectInit lk.salyk.kg [13:48:24]written 0, free lines is 4095 [13:48:24]Connected sock=7 [13:48:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 15 B5 07 01 80 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 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 90 00 00 00 F4 03 04 00 AE 3B 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 17 70 00 00 35 04 06 00 65 05 7C 52 C6 AA FE 53 FA 38 7C C3 1B 20 [13:48:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 A1 2C 47 00 8F 78 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 17 70 00 00 F4 03 04 00 58 E6 18 66 B6 04 01 00 00 49 2B 0E E3 CF 88 2C 03 [13:48:24]CommunicateWithHost err = 0 [13:48:24]CheckOFDResponse [13:48:24]1017 (14) - 77093643461234 [13:48:24]1041 (16) - 0000000000963154 [13:48:24]1040 (4) - 28695 [13:48:24]1012 (4) - 12.04.2024 07:44 [13:48:24]1206 (1) - 0 [13:48:24]OFD Sender: Remove packet 28695 [13:48:24]ProducePacketName [13:48:24]name=ofd_packets/00028695 [13:48:24]NVStorageDeleteData [13:48:25]Write to MH i2c: 01 00 00 36 84 BA [13:48:25]Write i2c OK [13:48:25]MH_I2C_Read... [13:48:25]Read from MH i2c: 01 [13:48:25]MH_I2C_Read... [13:48:25]Read from MH i2c: 01 07 00 [13:48:25]MH_I2C_Read... [13:48:25]Read from MH i2c: 01 07 00 36 84 00 00 00 00 00 C8 0C 95 [13:48:25]RasterBufferAndPrint [13:48:25]line [13:48:25]line [13:48:25]line [13:48:25]line [13:48:25]line [13:48:25]written 0, free lines is 3278 [13:48:25]MH_Cut [13:48:25]Write to MH i2c: D1 01 00 3D 84 01 93 [13:48:25]Write i2c OK [13:48:25]MH_I2C_Read... [13:48:25]Read from MH i2c: D1 [13:48:25]MH_I2C_Read... [13:48:25]Read from MH i2c: D1 01 00 [13:48:25]MH_I2C_Read... [13:48:25]Read from MH i2c: D1 01 00 3D 84 00 92 [13:48:25]Write to MH i2c: 01 00 00 3E 84 C2 [13:48:25]Write i2c OK [13:48:25]MH_I2C_Read... [13:48:25]OFD Sender: No OFD packet to send [13:48:25]*** Cut start [13:48:25]*** Partial cut [13:48:25]*** CUTSNS_PIN = 1 [13:48:25]*** CUTSNS_PIN = 0 [13:48:26]*** Brake cut motor [13:48:26]Read from MH i2c: 01 [13:48:26]MH_I2C_Read... [13:48:26]*** Stop cut motor [13:48:26]*** Cut end [13:48:26]Read from MH i2c: 01 07 00 [13:48:26]MH_I2C_Read... [13:48:26]Read from MH i2c: 01 07 00 3E 84 00 00 00 00 00 FF 0F D7 [13:48:26]process_action close_receipt done [13:48:26]requested_data is exist [13:48:26]produce_requested_data [13:48:26]requested_item fm.sn is exist - process it [13:48:26]wFMCommunicate request_size=4 [13:48:26]MH_SAM_APDU [13:48:26]CAPDU: 80 11 00 00 [13:48:26]Write to MH i2c: E2 08 00 3F 84 80 11 00 00 00 00 00 00 3D [13:48:26]Write i2c OK [13:48:26]MH_I2C_Read... [13:48:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:48:26]Read from MH i2c: E2 [13:48:26]MH_I2C_Read... [13:48:26]Read from MH i2c: E2 17 00 [13:48:26]MH_I2C_Read... [13:48:26]Read from MH i2c: E2 17 00 3F 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 8C [13:48:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:48:26]wFMCommunicate OK [13:48:26]requested_item fd.num is exist - process it [13:48:26]SAM_PROTO_GetFieldsCounters [13:48:26]wFMCommunicate request_size=4 [13:48:26]MH_SAM_APDU [13:48:26]CAPDU: 80 13 00 00 [13:48:26]Write to MH i2c: E2 08 00 40 84 80 13 00 00 00 00 00 00 40 [13:48:26]Write i2c OK [13:48:26]MH_I2C_Read... [13:48:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:48:26]Read from MH i2c: E2 [13:48:26]MH_I2C_Read... [13:48:26]Read from MH i2c: E2 62 00 [13:48:26]MH_I2C_Read... [13:48:26]Read from MH i2c: E2 62 00 40 84 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 17 70 00 00 0E 04 04 00 71 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 26 [13:48:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 17 70 00 00 0E 04 04 00 71 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 [13:48:26]wFMCommunicate OK [13:48:26]SAM_PROTO_GetFieldsCounters done [13:48:26]requested_item shift.num is exist - process it [13:48:26]requested_item shift.opened is exist - process it [13:48:26]req_shift_opened [13:48:26]FM_GetShiftState [13:48:26]SAM_PROTO_GetShiftState [13:48:26]wFMCommunicate request_size=4 [13:48:26]MH_SAM_APDU [13:48:26]CAPDU: 80 13 01 00 [13:48:26]Write to MH i2c: E2 08 00 41 84 80 13 01 00 00 00 00 00 42 [13:48:26]Write i2c OK [13:48:26]MH_I2C_Read... [13:48:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:48:26]Read from MH i2c: E2 [13:48:26]MH_I2C_Read... [13:48:26]Read from MH i2c: E2 0E 00 [13:48:26]MH_I2C_Read... [13:48:26]Read from MH i2c: E2 0E 00 41 84 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 53 [13:48:26]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [13:48:26]wFMCommunicate OK [13:48:26]SAM_PROTO_GetShiftState done [13:48:26]FM_GetShiftState done [13:48:26]req_shift_opened done [13:48:26]requested_item shift.open_date is exist - process it [13:48:26]req_shift_open_date [13:48:26]req_shift_open_date done [13:48:26]produce_requested_data done [13:48:26]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28695,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [13:48:26]process_action_free close_receipt [13:48:26]json_value_free [13:48:26]json_value_free done [13:48:26]process_json_proto returns [13:48:26]Send response to host [13:48:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28695,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [13:48:26]free response buf [13:48:26]execute_script done [13:48:26]execute_script returns [13:48:26]free content buf [13:48:26]Sock 6.Close socket [13:48:26]Sock 6.Thread stoped [13:48:30]OFD Sender: No OFD packet to send [13:48:35]OFD Sender: No OFD packet to send [13:48:40]OFD Sender: No OFD packet to send [13:48:45]OFD Sender: No OFD packet to send [13:48:50]OFD Sender: No OFD packet to send [13:48:55]OFD Sender: No OFD packet to send [13:49:00]OFD Sender: No OFD packet to send [13:49:05]OFD Sender: No OFD packet to send [13:49:10]OFD Sender: No OFD packet to send [13:49:15]OFD Sender: No OFD packet to send [13:49:20]OFD Sender: No OFD packet to send [13:49:25]OFD Sender: No OFD packet to send [13:49:30]OFD Sender: No OFD packet to send [13:49:35]OFD Sender: No OFD packet to send [13:49:40]OFD Sender: No OFD packet to send [13:49:45]OFD Sender: No OFD packet to send [13:49:50]OFD Sender: No OFD packet to send [13:49:55]OFD Sender: No OFD packet to send [13:50:00]OFD Sender: No OFD packet to send [13:50:05]OFD Sender: No OFD packet to send [13:50:10]OFD Sender: No OFD packet to send [13:50:15]OFD Sender: No OFD packet to send [13:50:20]OFD Sender: No OFD packet to send [13:50:25]OFD Sender: No OFD packet to send [13:50:30]OFD Sender: No OFD packet to send [13:50:35]OFD Sender: No OFD packet to send [13:50:40]OFD Sender: No OFD packet to send [13:50:45]OFD Sender: No OFD packet to send [13:50:50]OFD Sender: No OFD packet to send [13:50:55]OFD Sender: No OFD packet to send [13:51:00]OFD Sender: No OFD packet to send [13:51:05]OFD Sender: No OFD packet to send [13:51:10]OFD Sender: No OFD packet to send [13:51:15]OFD Sender: No OFD packet to send [13:51:20]OFD Sender: No OFD packet to send [13:51:25]OFD Sender: No OFD packet to send [13:51:30]OFD Sender: No OFD packet to send [13:51:35]OFD Sender: No OFD packet to send [13:51:40]OFD Sender: No OFD packet to send [13:51:45]OFD Sender: No OFD packet to send [13:51:50]OFD Sender: No OFD packet to send [13:51:55]OFD Sender: No OFD packet to send [13:52:00]OFD Sender: No OFD packet to send [13:52:05]OFD Sender: No OFD packet to send [13:52:10]OFD Sender: No OFD packet to send [13:52:15]OFD Sender: No OFD packet to send [13:52:20]OFD Sender: No OFD packet to send [13:52:25]OFD Sender: No OFD packet to send [13:52:30]OFD Sender: No OFD packet to send [13:52:35]OFD Sender: No OFD packet to send [13:52:40]OFD Sender: No OFD packet to send [13:52:45]OFD Sender: No OFD packet to send [13:52:50]OFD Sender: No OFD packet to send [13:52:55]OFD Sender: No OFD packet to send [13:53:00]OFD Sender: No OFD packet to send [13:53:05]OFD Sender: No OFD packet to send [13:53:10]OFD Sender: No OFD packet to send [13:53:15]OFD Sender: No OFD packet to send [13:53:20]OFD Sender: No OFD packet to send [13:53:25]OFD Sender: No OFD packet to send [13:53:30]OFD Sender: No OFD packet to send [13:53:35]OFD Sender: No OFD packet to send [13:53:40]OFD Sender: No OFD packet to send [13:53:45]OFD Sender: No OFD packet to send [13:53:50]OFD Sender: No OFD packet to send [13:53:55]OFD Sender: No OFD packet to send [13:54:00]OFD Sender: No OFD packet to send [13:54:05]OFD Sender: No OFD packet to send [13:54:10]OFD Sender: No OFD packet to send [13:54:15]OFD Sender: No OFD packet to send [13:54:20]OFD Sender: No OFD packet to send [13:54:25]OFD Sender: No OFD packet to send [13:54:30]OFD Sender: No OFD packet to send [13:54:35]OFD Sender: No OFD packet to send [13:54:40]OFD Sender: No OFD packet to send [13:54:45]OFD Sender: No OFD packet to send [13:54:50]OFD Sender: No OFD packet to send [13:54:55]OFD Sender: No OFD packet to send [13:55:00]OFD Sender: No OFD packet to send [13:55:02]accept exits with 5 [13:55:02]New connection [13:55:02]New thread 3066641764 created [13:55:02]Thread 3066498404 joined [13:55:02]Waiting for new connection... [13:55:02] Sock 5.Parse request [13:55:02]Sock 5.Check first char [13:55:02]Sock 5.First char is OK [13:55:02]request: POST /json_proto HTTP/1.0 [13:55:02]Method: POST [13:55:02]URL: /json_proto [13:55:02]Method is POST - this is cgi request [13:55:02]url: /json_proto [13:55:02]query_string will be loaded in cgi processing [13:55:02]execute_cgi json_proto POST (null) [13:55:02]execute_cgi path=json_proto method=POST [13:55:02]POST find Content-Length [13:55:02]Host: 172.17.33.3:8080 [13:55:02]Content-Length: 682 [13:55:02]Content-Type: application/json [13:55:02] [13:55:02]POST finish read [13:55:02]Found Content-Length = 682 [13:55:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347029", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.50, "quantity" : 13.800, "sum" : 1000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:55:02]execute_script... [13:55: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)347029", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.50, "quantity" : 13.800, "sum" : 1000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:55:02]POST & json_proto [13:55:02]process_json_proto [13:55:02]json parsed OK: [13:55:02]protocol is kg_v1.0 [13:55:02]action value=close_receipt [13:55:02]process_action close_receipt [13:55:02]cmd_close_receipt [13:55:02]MH_GetDate [13:55:02]Write to MH i2c: F0 00 00 42 84 B5 [13:55:02]Write i2c OK [13:55:02]MH_I2C_Read... [13:55:02]Read from MH i2c: F0 [13:55:02]MH_I2C_Read... [13:55:02]Read from MH i2c: F0 09 00 [13:55:02]MH_I2C_Read... [13:55:02]Read from MH i2c: F0 09 00 42 84 00 3E 3D 19 66 23 5B 8F 65 2A [13:55:02]GetLastDocTimeStamp 1712929710 [13:55:02]current date 1712930110 [13:55:02]FM_GetShiftState [13:55:02]SAM_PROTO_GetShiftState [13:55:02]wFMCommunicate request_size=4 [13:55:02]MH_SAM_APDU [13:55:02]CAPDU: 80 13 01 00 [13:55:02]Write to MH i2c: E2 08 00 43 84 80 13 01 00 00 00 00 00 44 [13:55:02]Write i2c OK [13:55:02]MH_I2C_Read... [13:55:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:55:02]Read from MH i2c: E2 [13:55:02]MH_I2C_Read... [13:55:02]Read from MH i2c: E2 0E 00 [13:55:02]MH_I2C_Read... [13:55:02]Read from MH i2c: E2 0E 00 43 84 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 55 [13:55:02]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [13:55:02]wFMCommunicate OK [13:55:02]SAM_PROTO_GetShiftState done [13:55:02]FM_GetShiftState done [13:55:02]opened in 1712881416 [13:55:02]opened+sec_in_day 1712967816 [13:55:02]quantity*price = 100050 [13:55:02]sum+1 = 100051 [13:55:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 145 12.04.2024 13:55 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28696 ФПД: 207664335858192 1/tax-web-control/client/api/v1/ticket?date=20240412T135510&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28696&fm=207664335858192&tin=02508201610067®Number=0000138879044617&sum=100000 [13:55:03]StoreToDocumentArchive [13:55:03]shift 113 fd 28696 [13:55:03]save to /storage/0113/doc_00028696 [13:55:03]save last doc name /storage/0113/doc_00028696 to /storage/kkm_last_doc_name [13:55:03]save OK [13:55:03]Clear old archive folders... [13:55:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:55:03]tlvbuf is 01ACCB30 [13:55:03]SAM_PROTO_ClearQueue [13:55:03]wFMCommunicate request_size=4 [13:55:03]MH_SAM_APDU [13:55:03]CAPDU: 80 09 00 00 [13:55:03]Write to MH i2c: E2 08 00 50 84 80 09 00 00 00 00 00 00 46 [13:55:03]Write i2c OK [13:55:03]MH_I2C_Read... [13:55:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:55:03]Read from MH i2c: E2 [13:55:03]MH_I2C_Read... [13:55:03]Read from MH i2c: E2 03 00 [13:55:03]MH_I2C_Read... [13:55:03]Read from MH i2c: E2 03 00 50 84 00 90 00 48 [13:55:03]RAPDU: 90 00 [13:55:03]wFMCommunicate OK [13:55:03]SAM_PROTO_ClearQueue done [13:55:03]KKMCreateOFDPacket [13:55:03]OFDProtocolAddRootSTLVToBuf [13:55:03]FM_MakeSignedData [13:55:03]FM_MakeSignedData [13:55:03]SAM_PROTO_SignData [13:55:03]wFMCommunicate request_size=4 [13:55:03]MH_SAM_APDU [13:55:03]CAPDU: 80 0D 01 02 [13:55:03]Write to MH i2c: E2 08 00 51 84 80 0D 01 02 00 00 00 00 4E [13:55:03]Write i2c OK [13:55:03]MH_I2C_Read... [13:55:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:55:03]Read from MH i2c: E2 [13:55:03]MH_I2C_Read... [13:55:03]Read from MH i2c: E2 03 00 [13:55:03]MH_I2C_Read... [13:55:03]Read from MH i2c: E2 03 00 51 84 00 90 00 49 [13:55:03]RAPDU: 90 00 [13:55:03]wFMCommunicate OK [13:55:03]wFMCommunicate request_size=255 [13:55:03]MH_SAM_APDU [13:55: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 35 FF 03 08 00 03 E8 35 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 D2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 91 00 00 00 F4 03 04 00 3E 3D 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 18 70 00 00 35 04 06 00 BC [13:55:03]Write to MH i2c: E2 02 01 52 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E8 35 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 D2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 91 00 00 00 F4 03 04 00 3E 3D 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 18 70 00 00 35 04 06 00 BC 00 00 0D [13:55:03]Write i2c OK [13:55:03]MH_I2C_Read... [13:55:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:55:03]Read from MH i2c: E2 [13:55:03]MH_I2C_Read... [13:55:03]Read from MH i2c: E2 03 00 [13:55:03]MH_I2C_Read... [13:55:03]Read from MH i2c: E2 03 00 52 84 00 90 00 4A [13:55:03]RAPDU: 90 00 [13:55:03]wFMCommunicate OK [13:55:03]wFMCommunicate request_size=10 [13:55:03]MH_SAM_APDU [13:55:03]CAPDU: 80 0D 02 02 05 DE 9E F8 AA 10 [13:55:03]Write to MH i2c: E2 0D 00 53 84 80 0D 02 02 05 00 DE 9E F8 AA 10 00 00 89 [13:55:03]Write i2c OK [13:55:03]MH_I2C_Read... [13:55:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:55:03]Read from MH i2c: E2 [13:55:03]MH_I2C_Read... [13:55:03]Read from MH i2c: E2 03 00 [13:55:03]MH_I2C_Read... [13:55:03]Read from MH i2c: E2 03 00 53 84 00 90 00 4B [13:55:03]RAPDU: 90 00 [13:55:03]wFMCommunicate OK [13:55:03]wFMCommunicate request_size=4 [13:55:03]MH_SAM_APDU [13:55:03]CAPDU: 80 0D 03 02 [13:55:03]Write to MH i2c: E2 08 00 54 84 80 0D 03 02 00 00 00 00 53 [13:55:03]Write i2c OK [13:55:03]MH_I2C_Read... [13:55:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:55:03]Read from MH i2c: E2 [13:55:03]MH_I2C_Read... [13:55:03]Read from MH i2c: E2 0B 00 [13:55:03]MH_I2C_Read... [13:55:03]Read from MH i2c: E2 0B 00 54 84 00 07 78 EF 30 9A 7D E5 C7 90 00 B5 [13:55:03]RAPDU: 07 78 EF 30 9A 7D E5 C7 90 00 [13:55:03]wFMCommunicate OK [13:55:03]SAM_PROTO_SignData done [13:55:03]FM_MakeSignedData done [13:55:03]CreateOFDProtocolMessage [13:55:03]wFMCommunicate request_size=4 [13:55:03]MH_SAM_APDU [13:55:03]CAPDU: 80 11 00 00 [13:55:03]Write to MH i2c: E2 08 00 55 84 80 11 00 00 00 00 00 00 53 [13:55:04]Write i2c OK [13:55:04]MH_I2C_Read... [13:55:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:55:04]Read from MH i2c: E2 [13:55:04]MH_I2C_Read... [13:55:04]Read from MH i2c: E2 17 00 [13:55:04]MH_I2C_Read... [13:55:04]Read from MH i2c: E2 17 00 55 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 A2 [13:55:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:55:04]wFMCommunicate OK [13:55:04]CreateOFDProtocolMessage done [13:55:04]OFDSenderStorePacket 28696 [13:55:04]StoreOFDPacket docnum=28696 [13:55:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 5A 56 07 01 5F E3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E8 35 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 D2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 91 00 00 00 F4 03 04 00 3E 3D 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 18 70 00 00 35 04 06 00 BC DE 9E F8 AA 10 07 78 EF 30 9A 7D E5 C7 [13:55:04]CheckFolder [13:55:04]dirname=/storage/ofd_packets [13:55:04]CheckFolder done [13:55:04]ProducePacketName [13:55:04]name=ofd_packets/00028696 [13:55:04]NVStorageSaveData ofd_packets/00028696 [13:55:04]File name is /storage/ofd_packets/00028696 [13:55:04]Write 301 bytes [13:55:04]NVStorageSaveData done [13:55:04]OFDSenderStorePacket done [13:55:04]KKMCreateOFDPacket done [13:55:04]NVStorageSaveData kkm_last_timestamp [13:55:04]File name is /storage/kkm_last_timestamp [13:55:04]Write 4 bytes [13:55:04]NVStorageSaveData done [13:55:04]ExternCall_PrintAddStr [13:55:04]wPrintStart [13:55:04]Write to MH i2c: 01 00 00 56 84 DA [13:55:04]Write i2c OK [13:55:04]MH_I2C_Read... [13:55:04]Read from MH i2c: 01 [13:55:04]MH_I2C_Read... [13:55:04]Read from MH i2c: 01 07 00 [13:55:04]MH_I2C_Read... [13:55:04]Read from MH i2c: 01 07 00 56 84 00 00 00 00 00 FF 0F EF [13:55:04]RasterBufferAndPrint [13:55:04]line Счет N : (1)347029 [13:55:04]line ИНН: 02508201610067 [13:55:04]line Контрольно-Кассовый Чек [13:55:04]line ПРОДАЖА [13:55:04]line ТРК (МРК, ГНК) : 43 [13:55:04]line Товар: 2710124500 [13:55:04]line Аи-95-К-5 [13:55:04]line 13.800 * 72.50 [13:55:04]line = 1000.50 [13:55:04]line НДС 12% НСП 1% [13:55:04]line > о реализуемом товаре [13:55:04]line ОКРУГЛЕНИЕ: -0.50 [13:55:04]line ИТОГО: 1000.00 [13:55:04]line Внесено: 1000.00 [13:55:04]line СДАЧА: 0.00 [13:55:04]line НСП 1% : 8.85 [13:55:04]line НДС 12% : 106.25 [13:55:04]line Наличными: 1000.00 [13:55:04]line Безнал.: 0.00 [13:55:04]line Место: АЗС № 108 "Партнер Нефть" [13:55:04]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [13:55:04]line СНО: Общий режим [13:55:04]line Чек 145 12.04.2024 13:55 [13:55:04]line Смена: 113 ФФД: 1.0 [13:55:04]line ЗНМ: 0300000027 [13:55:04]line РНМ: 0000138879044617 [13:55:04]line Версия ККМ: 001 [13:55:04]line ФМ: 0000000000963154 [13:55:04]line ФД: 28696 [13:55:04]line ФПД: 207664335858192 [13:55:04]line 1/tax-web-control/client/api/v1/ticket?date=20240412T135510&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28696&fm=207664335858192&tin=02508201610067®Number=0000138879044617&sum=100000 [13:55:04]OFD Sender: Processing packet 28696 [packets to send 8, broken 7] [13:55:04]ProducePacketName [13:55:04]name=ofd_packets/00028696 [13:55:04]OFD Sender: To server: pG, [13:55:04]CommunicateWithHost lk.salyk.kg:30040 [13:55:04]ConnectInit lk.salyk.kg [13:55:04]written 0, free lines is 4095 [13:55:04]Connected sock=7 [13:55:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 5A 56 07 01 5F E3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E8 35 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 D2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 91 00 00 00 F4 03 04 00 3E 3D 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 18 70 00 00 35 04 06 00 BC DE 9E F8 AA 10 07 78 EF 30 9A 7D E5 C7 [13:55:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 C2 76 47 00 D1 F5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 18 70 00 00 F4 03 04 00 E8 E7 18 66 B6 04 01 00 00 90 4B 47 EB D4 82 E9 A6 [13:55:04]CommunicateWithHost err = 0 [13:55:04]CheckOFDResponse [13:55:04]1017 (14) - 77093643461234 [13:55:04]1041 (16) - 0000000000963154 [13:55:04]1040 (4) - 28696 [13:55:04]1012 (4) - 12.04.2024 07:51 [13:55:04]1206 (1) - 0 [13:55:04]OFD Sender: Remove packet 28696 [13:55:04]ProducePacketName [13:55:04]name=ofd_packets/00028696 [13:55:04]NVStorageDeleteData [13:55:04]Write to MH i2c: 01 00 00 80 84 04 [13:55:04]Write i2c OK [13:55:04]MH_I2C_Read... [13:55:04]Read from MH i2c: 01 [13:55:04]MH_I2C_Read... [13:55:04]Read from MH i2c: 01 07 00 [13:55:04]MH_I2C_Read... [13:55:04]Read from MH i2c: 01 07 00 80 84 00 00 00 00 00 D7 0C EE [13:55:04]RasterBufferAndPrint [13:55:04]line [13:55:04]line [13:55:04]line [13:55:04]line [13:55:04]line [13:55:04]written 0, free lines is 3294 [13:55:04]MH_Cut [13:55:04]Write to MH i2c: D1 01 00 87 84 01 DD [13:55:04]Write i2c OK [13:55:04]MH_I2C_Read... [13:55:04]Read from MH i2c: D1 [13:55:04]MH_I2C_Read... [13:55:04]Read from MH i2c: D1 01 00 [13:55:04]MH_I2C_Read... [13:55:04]Read from MH i2c: D1 01 00 87 84 00 DC [13:55:04]Write to MH i2c: 01 00 00 88 84 0C [13:55:04]Write i2c OK [13:55:04]MH_I2C_Read... [13:55:05]OFD Sender: No OFD packet to send [13:55:05]*** Cut start [13:55:05]*** Partial cut [13:55:05]*** CUTSNS_PIN = 1 [13:55:05]*** CUTSNS_PIN = 0 [13:55:05]*** Brake cut motor [13:55:06]Read from MH i2c: 01 [13:55:06]MH_I2C_Read... [13:55:06]*** Stop cut motor [13:55:06]*** Cut end [13:55:06]Read from MH i2c: 01 07 00 [13:55:06]MH_I2C_Read... [13:55:06]Read from MH i2c: 01 07 00 88 84 00 00 00 00 00 FF 0F 21 [13:55:06]process_action close_receipt done [13:55:06]requested_data is exist [13:55:06]produce_requested_data [13:55:06]requested_item fm.sn is exist - process it [13:55:06]wFMCommunicate request_size=4 [13:55:06]MH_SAM_APDU [13:55:06]CAPDU: 80 11 00 00 [13:55:06]Write to MH i2c: E2 08 00 89 84 80 11 00 00 00 00 00 00 87 [13:55:06]Write i2c OK [13:55:06]MH_I2C_Read... [13:55:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:55:06]Read from MH i2c: E2 [13:55:06]MH_I2C_Read... [13:55:06]Read from MH i2c: E2 17 00 [13:55:06]MH_I2C_Read... [13:55:06]Read from MH i2c: E2 17 00 89 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D6 [13:55:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:55:06]wFMCommunicate OK [13:55:06]requested_item fd.num is exist - process it [13:55:06]SAM_PROTO_GetFieldsCounters [13:55:06]wFMCommunicate request_size=4 [13:55:06]MH_SAM_APDU [13:55:06]CAPDU: 80 13 00 00 [13:55:06]Write to MH i2c: E2 08 00 8A 84 80 13 00 00 00 00 00 00 8A [13:55:06]Write i2c OK [13:55:06]MH_I2C_Read... [13:55:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:55:06]Read from MH i2c: E2 [13:55:06]MH_I2C_Read... [13:55:06]Read from MH i2c: E2 62 00 [13:55:06]MH_I2C_Read... [13:55:06]Read from MH i2c: E2 62 00 8A 84 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 18 70 00 00 0E 04 04 00 71 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 74 [13:55:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 18 70 00 00 0E 04 04 00 71 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 [13:55:06]wFMCommunicate OK [13:55:06]SAM_PROTO_GetFieldsCounters done [13:55:06]requested_item shift.num is exist - process it [13:55:06]requested_item shift.opened is exist - process it [13:55:06]req_shift_opened [13:55:06]FM_GetShiftState [13:55:06]SAM_PROTO_GetShiftState [13:55:06]wFMCommunicate request_size=4 [13:55:06]MH_SAM_APDU [13:55:06]CAPDU: 80 13 01 00 [13:55:06]Write to MH i2c: E2 08 00 8B 84 80 13 01 00 00 00 00 00 8C [13:55:06]Write i2c OK [13:55:06]MH_I2C_Read... [13:55:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:55:06]Read from MH i2c: E2 [13:55:06]MH_I2C_Read... [13:55:06]Read from MH i2c: E2 0E 00 [13:55:06]MH_I2C_Read... [13:55:06]Read from MH i2c: E2 0E 00 8B 84 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 9D [13:55:06]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [13:55:06]wFMCommunicate OK [13:55:06]SAM_PROTO_GetShiftState done [13:55:06]FM_GetShiftState done [13:55:06]req_shift_opened done [13:55:06]requested_item shift.open_date is exist - process it [13:55:06]req_shift_open_date [13:55:06]req_shift_open_date done [13:55:06]produce_requested_data done [13:55:06]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28696,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [13:55:06]process_action_free close_receipt [13:55:06]json_value_free [13:55:06]json_value_free done [13:55:06]process_json_proto returns [13:55:06]Send response to host [13:55:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28696,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [13:55:06]free response buf [13:55:06]execute_script done [13:55:06]execute_script returns [13:55:06]free content buf [13:55:06]Sock 5.Close socket [13:55:06]Sock 5.Thread stoped [13:55:10]OFD Sender: No OFD packet to send [13:55:15]OFD Sender: No OFD packet to send [13:55:20]OFD Sender: No OFD packet to send [13:55:25]OFD Sender: No OFD packet to send [13:55:30]OFD Sender: No OFD packet to send [13:55:35]OFD Sender: No OFD packet to send [13:55:40]OFD Sender: No OFD packet to send [13:55:45]OFD Sender: No OFD packet to send [13:55:50]OFD Sender: No OFD packet to send [13:55:55]OFD Sender: No OFD packet to send [13:56:00]OFD Sender: No OFD packet to send [13:56:05]OFD Sender: No OFD packet to send [13:56:10]OFD Sender: No OFD packet to send [13:56:15]OFD Sender: No OFD packet to send [13:56:20]OFD Sender: No OFD packet to send [13:56:25]OFD Sender: No OFD packet to send [13:56:30]OFD Sender: No OFD packet to send [13:56:35]OFD Sender: No OFD packet to send [13:56:40]OFD Sender: No OFD packet to send [13:56:45]OFD Sender: No OFD packet to send [13:56:50]OFD Sender: No OFD packet to send [13:56:55]OFD Sender: No OFD packet to send [13:57:00]OFD Sender: No OFD packet to send [13:57:05]OFD Sender: No OFD packet to send [13:57:10]OFD Sender: No OFD packet to send [13:57:15]OFD Sender: No OFD packet to send [13:57:20]OFD Sender: No OFD packet to send [13:57:25]OFD Sender: No OFD packet to send [13:57:30]OFD Sender: No OFD packet to send [13:57:35]OFD Sender: No OFD packet to send [13:57:40]OFD Sender: No OFD packet to send [13:57:45]OFD Sender: No OFD packet to send [13:57:50]OFD Sender: No OFD packet to send [13:57:55]OFD Sender: No OFD packet to send [13:58:00]OFD Sender: No OFD packet to send [13:58:05]OFD Sender: No OFD packet to send [13:58:10]OFD Sender: No OFD packet to send [13:58:15]OFD Sender: No OFD packet to send [13:58:20]OFD Sender: No OFD packet to send [13:58:25]OFD Sender: No OFD packet to send [13:58:30]OFD Sender: No OFD packet to send [13:58:35]OFD Sender: No OFD packet to send [13:58:40]OFD Sender: No OFD packet to send [13:58:45]OFD Sender: No OFD packet to send [13:58:50]OFD Sender: No OFD packet to send [13:58:55]OFD Sender: No OFD packet to send [13:59:00]OFD Sender: No OFD packet to send [13:59:05]OFD Sender: No OFD packet to send [13:59:10]OFD Sender: No OFD packet to send [13:59:15]OFD Sender: No OFD packet to send [13:59:20]OFD Sender: No OFD packet to send [13:59:25]OFD Sender: No OFD packet to send [13:59:30]OFD Sender: No OFD packet to send [13:59:35]OFD Sender: No OFD packet to send [13:59:40]OFD Sender: No OFD packet to send [13:59:45]OFD Sender: No OFD packet to send [13:59:50]OFD Sender: No OFD packet to send [13:59:55]OFD Sender: No OFD packet to send [14:00:00]OFD Sender: No OFD packet to send [14:00:05]OFD Sender: No OFD packet to send [14:00:10]OFD Sender: No OFD packet to send [14:00:15]OFD Sender: No OFD packet to send [14:00:20]OFD Sender: No OFD packet to send [14:00:25]OFD Sender: No OFD packet to send [14:00:30]OFD Sender: No OFD packet to send [14:00:35]OFD Sender: No OFD packet to send [14:00:40]OFD Sender: No OFD packet to send [14:00:45]OFD Sender: No OFD packet to send [14:00:50]OFD Sender: No OFD packet to send [14:00:55]OFD Sender: No OFD packet to send [14:01:00]OFD Sender: No OFD packet to send [14:01:05]OFD Sender: No OFD packet to send [14:01:10]OFD Sender: No OFD packet to send [14:01:15]OFD Sender: No OFD packet to send [14:01:20]OFD Sender: No OFD packet to send [14:01:25]OFD Sender: No OFD packet to send [14:01:30]OFD Sender: No OFD packet to send [14:01:35]OFD Sender: No OFD packet to send [14:01:40]OFD Sender: No OFD packet to send [14:01:45]OFD Sender: No OFD packet to send [14:01:50]OFD Sender: No OFD packet to send [14:01:55]OFD Sender: No OFD packet to send [14:02:00]OFD Sender: No OFD packet to send [14:02:05]OFD Sender: No OFD packet to send [14:02:10]OFD Sender: No OFD packet to send [14:02:15]OFD Sender: No OFD packet to send [14:02:20]OFD Sender: No OFD packet to send [14:02:25]OFD Sender: No OFD packet to send [14:02:30]OFD Sender: No OFD packet to send [14:02:35]OFD Sender: No OFD packet to send [14:02:40]OFD Sender: No OFD packet to send [14:02:45]OFD Sender: No OFD packet to send [14:02:50]OFD Sender: No OFD packet to send [14:02:55]OFD Sender: No OFD packet to send [14:02:58]accept exits with 6 [14:02:58]New connection [14:02:58]New thread 3066498404 created [14:02:58]Thread 3066641764 joined [14:02:58]Waiting for new connection... [14:02:58] Sock 6.Parse request [14:02:58]Sock 6.Check first char [14:02:58]Sock 6.First char is OK [14:02:58]request: POST /json_proto HTTP/1.0 [14:02:58]Method: POST [14:02:58]URL: /json_proto [14:02:58]Method is POST - this is cgi request [14:02:58]url: /json_proto [14:02:58]query_string will be loaded in cgi processing [14:02:58]execute_cgi json_proto POST (null) [14:02:58]execute_cgi path=json_proto method=POST [14:02:58]POST find Content-Length [14:02:58]Host: 172.17.33.3:8080 [14:02:58]Content-Length: 820 [14:02:58]Content-Type: application/json [14:02:58] [14:02:58]POST finish read [14:02:58]Found Content-Length = 820 [14:02:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347030", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 15.200, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.08 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:02:58]execute_script... [14:02:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347030", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 15.200, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.08 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:02:58]POST & json_proto [14:02:58]process_json_proto [14:02:58]json parsed OK: [14:02:58]protocol is kg_v1.0 [14:02:58]action value=close_receipt [14:02:58]process_action close_receipt [14:02:58]cmd_close_receipt [14:02:58]MH_GetDate [14:02:58]Write to MH i2c: F0 00 00 8C 84 FF [14:02:58]Write i2c OK [14:02:58]MH_I2C_Read... [14:02:58]Read from MH i2c: F0 [14:02:58]MH_I2C_Read... [14:02:58]Read from MH i2c: F0 09 00 [14:02:58]MH_I2C_Read... [14:02:58]Read from MH i2c: F0 09 00 8C 84 00 1B 3F 19 66 23 5B 8F 65 53 [14:02:58]GetLastDocTimeStamp 1712930110 [14:02:58]current date 1712930587 [14:02:58]FM_GetShiftState [14:02:58]SAM_PROTO_GetShiftState [14:02:58]wFMCommunicate request_size=4 [14:02:58]MH_SAM_APDU [14:02:58]CAPDU: 80 13 01 00 [14:02:58]Write to MH i2c: E2 08 00 8D 84 80 13 01 00 00 00 00 00 8E [14:02:58]Write i2c OK [14:02:58]MH_I2C_Read... [14:02:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:02:58]Read from MH i2c: E2 [14:02:58]MH_I2C_Read... [14:02:58]Read from MH i2c: E2 0E 00 [14:02:58]MH_I2C_Read... [14:02:58]Read from MH i2c: E2 0E 00 8D 84 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 9F [14:02:58]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [14:02:58]wFMCommunicate OK [14:02:58]SAM_PROTO_GetShiftState done [14:02:58]FM_GetShiftState done [14:02:58]opened in 1712881416 [14:02:58]opened+sec_in_day 1712967816 [14:02:58]quantity*price = 50008 [14:02:58]sum+1 = 50009 [14:02:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.08 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 0.00 Безнал.: 500.08 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 146 12.04.2024 14:03 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000963154 ФД: 28697 ФПД: 80484364814516 1/tax-web-control/client/api/v1/ticket?date=20240412T140307&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28697&fm=80484364814516&tin=02508201610067®Number=0000138879044617&sum=50008 [14:03:00]StoreToDocumentArchive [14:03:00]shift 113 fd 28697 [14:03:00]save to /storage/0113/doc_00028697 [14:03:00]save last doc name /storage/0113/doc_00028697 to /storage/kkm_last_doc_name [14:03:00]save OK [14:03:00]Clear old archive folders... [14:03:00]ProcessDocumentItem done err = 0, tmpTLVsize=250 [14:03:00]tlvbuf is 01AD7910 [14:03:00]SAM_PROTO_ClearQueue [14:03:00]wFMCommunicate request_size=4 [14:03:00]MH_SAM_APDU [14:03:00]CAPDU: 80 09 00 00 [14:03:00]Write to MH i2c: E2 08 00 9A 84 80 09 00 00 00 00 00 00 90 [14:03:00]Write i2c OK [14:03:00]MH_I2C_Read... [14:03:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:03:00]Read from MH i2c: E2 [14:03:00]MH_I2C_Read... [14:03:00]Read from MH i2c: E2 03 00 [14:03:00]MH_I2C_Read... [14:03:00]Read from MH i2c: E2 03 00 9A 84 00 90 00 92 [14:03:00]RAPDU: 90 00 [14:03:00]wFMCommunicate OK [14:03:00]SAM_PROTO_ClearQueue done [14:03:00]KKMCreateOFDPacket [14:03:00]OFDProtocolAddRootSTLVToBuf [14:03:00]FM_MakeSignedData [14:03:00]FM_MakeSignedData [14:03:00]SAM_PROTO_SignData [14:03:00]wFMCommunicate request_size=4 [14:03:00]MH_SAM_APDU [14:03:00]CAPDU: 80 0D 01 02 [14:03:00]Write to MH i2c: E2 08 00 9B 84 80 0D 01 02 00 00 00 00 98 [14:03:00]Write i2c OK [14:03:00]MH_I2C_Read... [14:03:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:03:00]Read from MH i2c: E2 [14:03:00]MH_I2C_Read... [14:03:00]Read from MH i2c: E2 03 00 [14:03:00]MH_I2C_Read... [14:03:00]Read from MH i2c: E2 03 00 9B 84 00 90 00 93 [14:03:00]RAPDU: 90 00 [14:03:00]wFMCommunicate OK [14:03:00]wFMCommunicate request_size=255 [14:03:00]MH_SAM_APDU [14:03:00]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 1B 3F 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 19 70 00 00 35 04 06 00 49 33 [14:03:00]Write to MH i2c: E2 02 01 9C 84 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 1B 3F 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 19 70 00 00 35 04 06 00 49 33 00 00 B0 [14:03:00]Write i2c OK [14:03:00]MH_I2C_Read... [14:03:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:03:00]Read from MH i2c: E2 [14:03:00]MH_I2C_Read... [14:03:00]Read from MH i2c: E2 03 00 [14:03:00]MH_I2C_Read... [14:03:00]Read from MH i2c: E2 03 00 9C 84 00 90 00 94 [14:03:00]RAPDU: 90 00 [14:03:00]wFMCommunicate OK [14:03:00]wFMCommunicate request_size=9 [14:03:00]MH_SAM_APDU [14:03:00]CAPDU: 80 0D 02 02 04 39 F9 88 B4 [14:03:00]Write to MH i2c: E2 0C 00 9D 84 80 0D 02 02 04 00 39 F9 88 B4 00 00 11 [14:03:00]Write i2c OK [14:03:00]MH_I2C_Read... [14:03:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:03:00]Read from MH i2c: E2 [14:03:00]MH_I2C_Read... [14:03:00]Read from MH i2c: E2 03 00 [14:03:00]MH_I2C_Read... [14:03:00]Read from MH i2c: E2 03 00 9D 84 00 90 00 95 [14:03:00]RAPDU: 90 00 [14:03:00]wFMCommunicate OK [14:03:00]wFMCommunicate request_size=4 [14:03:00]MH_SAM_APDU [14:03:00]CAPDU: 80 0D 03 02 [14:03:00]Write to MH i2c: E2 08 00 9E 84 80 0D 03 02 00 00 00 00 9D [14:03:00]Write i2c OK [14:03:00]MH_I2C_Read... [14:03:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:03:00]Read from MH i2c: E2 [14:03:00]MH_I2C_Read... [14:03:00]Read from MH i2c: E2 0B 00 [14:03:00]MH_I2C_Read... [14:03:00]Read from MH i2c: E2 0B 00 9E 84 00 25 56 D3 D2 57 A3 EB 9E 90 00 41 [14:03:00]RAPDU: 25 56 D3 D2 57 A3 EB 9E 90 00 [14:03:00]wFMCommunicate OK [14:03:00]SAM_PROTO_SignData done [14:03:00]FM_MakeSignedData done [14:03:00]CreateOFDProtocolMessage [14:03:00]wFMCommunicate request_size=4 [14:03:00]MH_SAM_APDU [14:03:00]CAPDU: 80 11 00 00 [14:03:00]Write to MH i2c: E2 08 00 9F 84 80 11 00 00 00 00 00 00 9D [14:03:00]Write i2c OK [14:03:00]MH_I2C_Read... [14:03:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:03:00]Read from MH i2c: E2 [14:03:00]MH_I2C_Read... [14:03:00]Read from MH i2c: E2 17 00 [14:03:00]MH_I2C_Read... [14:03:00]Read from MH i2c: E2 17 00 9F 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 EC [14:03:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:03:00]wFMCommunicate OK [14:03:00]CreateOFDProtocolMessage done [14:03:00]OFDSenderStorePacket 28697 [14:03:00]StoreOFDPacket docnum=28697 [14:03:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 40 9F 06 01 10 3E 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 1B 3F 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 19 70 00 00 35 04 06 00 49 33 39 F9 88 B4 25 56 D3 D2 57 A3 EB 9E [14:03:00]CheckFolder [14:03:00]dirname=/storage/ofd_packets [14:03:00]CheckFolder done [14:03:00]ProducePacketName [14:03:00]name=ofd_packets/00028697 [14:03:00]NVStorageSaveData ofd_packets/00028697 [14:03:00]File name is /storage/ofd_packets/00028697 [14:03:00]Write 300 bytes [14:03:00]NVStorageSaveData done [14:03:00]OFDSenderStorePacket done [14:03:00]KKMCreateOFDPacket done [14:03:00]NVStorageSaveData kkm_last_timestamp [14:03:00]File name is /storage/kkm_last_timestamp [14:03:00]Write 4 bytes [14:03:00]NVStorageSaveData done [14:03:00]ExternCall_PrintAddStr [14:03:00]wPrintStart [14:03:00]Write to MH i2c: 01 00 00 A0 84 24 [14:03:00]Write i2c OK [14:03:00]MH_I2C_Read... [14:03:00]Read from MH i2c: 01 [14:03:00]MH_I2C_Read... [14:03:00]Read from MH i2c: 01 07 00 [14:03:00]MH_I2C_Read... [14:03:00]Read from MH i2c: 01 07 00 A0 84 00 00 00 00 00 FF 0F 39 [14:03:00]RasterBufferAndPrint [14:03:00]line Счет N : (1)347030 [14:03:00]line ИНН: 02508201610067 [14:03:00]line Контрольно-Кассовый Чек [14:03:00]line ПРОДАЖА [14:03:00]line ТРК (МРК, ГНК) : 71 [14:03:00]line Товар: 2711129700 [14:03:00]line ГАЗ-К-5 [14:03:00]line 15.200 * 32.90 [14:03:00]line = 500.08 [14:03:00]line НДС 12% НСП 1% [14:03:00]line > о реализуемом товаре [14:03:00]line ИТОГО: 500.08 [14:03:00]line НСП 1% : 4.42 [14:03:00]line НДС 12% : 53.11 [14:03:00]line Наличными: 0.00 [14:03:00]line Безнал.: 500.08 [14:03:00]line Место: АЗС № 108 "Партнер Нефть" [14:03:00]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [14:03:00]line СНО: Общий режим [14:03:00]line Чек 146 12.04.2024 14:03 [14:03:00]line Смена: 113 ФФД: 1.0 [14:03:00]line ЗНМ: 0300000027 [14:03:00]line РНМ: 0000138879044617 [14:03:00]line Версия ККМ: 001 [14:03:00]line Платежная система: Бакай Банк [14:03:00]line ФМ: 0000000000963154 [14:03:00]line ФД: 28697 [14:03:00]line ФПД: 80484364814516 [14:03:00]line 1/tax-web-control/client/api/v1/ticket?date=20240412T140307&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28697&fm=80484364814516&tin=02508201610067®Number=0000138879044617&sum=50008 [14:03:00]OFD Sender: Processing packet 28697 [packets to send 8, broken 7] [14:03:00]ProducePacketName [14:03:00]name=ofd_packets/00028697 [14:03:00]OFD Sender: To server: pG, [14:03:00]CommunicateWithHost lk.salyk.kg:30040 [14:03:00]ConnectInit lk.salyk.kg [14:03:00]written 0, free lines is 4095 [14:03:00]Connected sock=7 [14:03:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 40 9F 06 01 10 3E 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 1B 3F 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 19 70 00 00 35 04 06 00 49 33 39 F9 88 B4 25 56 D3 D2 57 A3 EB 9E [14:03:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 45 70 47 00 5E 1D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 19 70 00 00 F4 03 04 00 C5 E9 18 66 B6 04 01 00 00 69 A7 7E D1 66 F6 AF 6E [14:03:01]CommunicateWithHost err = 0 [14:03:01]CheckOFDResponse [14:03:01]1017 (14) - 77093643461234 [14:03:01]1041 (16) - 0000000000963154 [14:03:01]1040 (4) - 28697 [14:03:01]1012 (4) - 12.04.2024 07:59 [14:03:01]1206 (1) - 0 [14:03:01]OFD Sender: Remove packet 28697 [14:03:01]ProducePacketName [14:03:01]name=ofd_packets/00028697 [14:03:01]NVStorageDeleteData [14:03:01]Write to MH i2c: 01 00 00 C9 84 4D [14:03:01]Write i2c OK [14:03:01]MH_I2C_Read... [14:03:01]Read from MH i2c: 01 [14:03:01]MH_I2C_Read... [14:03:01]Read from MH i2c: 01 07 00 [14:03:01]MH_I2C_Read... [14:03:01]Read from MH i2c: 01 07 00 C9 84 00 00 00 00 00 DB 0C 3B [14:03:01]RasterBufferAndPrint [14:03:01]line [14:03:01]line [14:03:01]line [14:03:01]line [14:03:01]line [14:03:01]written 0, free lines is 3301 [14:03:01]MH_Cut [14:03:01]Write to MH i2c: D1 01 00 D0 84 01 26 [14:03:01]Write i2c OK [14:03:01]MH_I2C_Read... [14:03:01]Read from MH i2c: D1 [14:03:01]MH_I2C_Read... [14:03:01]Read from MH i2c: D1 01 00 [14:03:01]MH_I2C_Read... [14:03:01]Read from MH i2c: D1 01 00 D0 84 00 25 [14:03:01]Write to MH i2c: 01 00 00 D1 84 55 [14:03:01]Write i2c OK [14:03:01]MH_I2C_Read... [14:03:01]OFD Sender: No OFD packet to send [14:03:02]*** Cut start [14:03:02]*** Partial cut [14:03:02]*** CUTSNS_PIN = 1 [14:03:02]*** CUTSNS_PIN = 0 [14:03:02]*** Brake cut motor [14:03:02]Read from MH i2c: 01 [14:03:02]MH_I2C_Read... [14:03:02]*** Stop cut motor [14:03:02]*** Cut end [14:03:02]Read from MH i2c: 01 07 00 [14:03:02]MH_I2C_Read... [14:03:02]Read from MH i2c: 01 07 00 D1 84 00 00 00 00 00 FF 0F 6A [14:03:02]process_action close_receipt done [14:03:02]requested_data is exist [14:03:02]produce_requested_data [14:03:02]requested_item fm.sn is exist - process it [14:03:02]wFMCommunicate request_size=4 [14:03:02]MH_SAM_APDU [14:03:02]CAPDU: 80 11 00 00 [14:03:02]Write to MH i2c: E2 08 00 D2 84 80 11 00 00 00 00 00 00 D0 [14:03:02]Write i2c OK [14:03:02]MH_I2C_Read... [14:03:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:03:02]Read from MH i2c: E2 [14:03:02]MH_I2C_Read... [14:03:02]Read from MH i2c: E2 17 00 [14:03:02]MH_I2C_Read... [14:03:02]Read from MH i2c: E2 17 00 D2 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 1F [14:03:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:03:02]wFMCommunicate OK [14:03:02]requested_item fd.num is exist - process it [14:03:02]SAM_PROTO_GetFieldsCounters [14:03:02]wFMCommunicate request_size=4 [14:03:02]MH_SAM_APDU [14:03:02]CAPDU: 80 13 00 00 [14:03:02]Write to MH i2c: E2 08 00 D3 84 80 13 00 00 00 00 00 00 D3 [14:03:02]Write i2c OK [14:03:02]MH_I2C_Read... [14:03:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:03:02]Read from MH i2c: E2 [14:03:02]MH_I2C_Read... [14:03:02]Read from MH i2c: E2 62 00 [14:03:02]MH_I2C_Read... [14:03:02]Read from MH i2c: E2 62 00 D3 84 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 19 70 00 00 0E 04 04 00 71 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 C1 [14:03:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 19 70 00 00 0E 04 04 00 71 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:03:02]wFMCommunicate OK [14:03:02]SAM_PROTO_GetFieldsCounters done [14:03:02]requested_item shift.num is exist - process it [14:03:02]requested_item shift.opened is exist - process it [14:03:02]req_shift_opened [14:03:02]FM_GetShiftState [14:03:02]SAM_PROTO_GetShiftState [14:03:02]wFMCommunicate request_size=4 [14:03:02]MH_SAM_APDU [14:03:02]CAPDU: 80 13 01 00 [14:03:02]Write to MH i2c: E2 08 00 D4 84 80 13 01 00 00 00 00 00 D5 [14:03:02]Write i2c OK [14:03:02]MH_I2C_Read... [14:03:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:03:03]Read from MH i2c: E2 [14:03:03]MH_I2C_Read... [14:03:03]Read from MH i2c: E2 0E 00 [14:03:03]MH_I2C_Read... [14:03:03]Read from MH i2c: E2 0E 00 D4 84 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 E6 [14:03:03]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [14:03:03]wFMCommunicate OK [14:03:03]SAM_PROTO_GetShiftState done [14:03:03]FM_GetShiftState done [14:03:03]req_shift_opened done [14:03:03]requested_item shift.open_date is exist - process it [14:03:03]req_shift_open_date [14:03:03]req_shift_open_date done [14:03:03]produce_requested_data done [14:03:03]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28697,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [14:03:03]process_action_free close_receipt [14:03:03]json_value_free [14:03:03]json_value_free done [14:03:03]process_json_proto returns [14:03:03]Send response to host [14:03:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28697,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [14:03:03]free response buf [14:03:03]execute_script done [14:03:03]execute_script returns [14:03:03]free content buf [14:03:03]Sock 6.Close socket [14:03:03]Sock 6.Thread stoped [14:03:06]OFD Sender: No OFD packet to send [14:03:11]OFD Sender: No OFD packet to send [14:03:16]OFD Sender: No OFD packet to send [14:03:21]OFD Sender: No OFD packet to send [14:03:26]OFD Sender: No OFD packet to send [14:03:31]OFD Sender: No OFD packet to send [14:03:36]OFD Sender: No OFD packet to send [14:03:41]OFD Sender: No OFD packet to send [14:03:46]OFD Sender: No OFD packet to send [14:03:51]OFD Sender: No OFD packet to send [14:03:56]OFD Sender: No OFD packet to send [14:04:01]OFD Sender: No OFD packet to send [14:04:06]OFD Sender: No OFD packet to send [14:04:11]OFD Sender: No OFD packet to send [14:04:16]OFD Sender: No OFD packet to send [14:04:21]OFD Sender: No OFD packet to send [14:04:26]OFD Sender: No OFD packet to send [14:04:31]OFD Sender: No OFD packet to send [14:04:36]OFD Sender: No OFD packet to send [14:04:41]OFD Sender: No OFD packet to send [14:04:46]OFD Sender: No OFD packet to send [14:04:51]OFD Sender: No OFD packet to send [14:04:56]OFD Sender: No OFD packet to send [14:05:01]OFD Sender: No OFD packet to send [14:05:06]OFD Sender: No OFD packet to send [14:05:11]OFD Sender: No OFD packet to send [14:05:16]OFD Sender: No OFD packet to send [14:05:21]OFD Sender: No OFD packet to send [14:05:26]OFD Sender: No OFD packet to send [14:05:31]OFD Sender: No OFD packet to send [14:05:36]OFD Sender: No OFD packet to send [14:05:41]OFD Sender: No OFD packet to send [14:05:46]OFD Sender: No OFD packet to send [14:05:51]OFD Sender: No OFD packet to send [14:05:56]OFD Sender: No OFD packet to send [14:06:01]OFD Sender: No OFD packet to send [14:06:06]OFD Sender: No OFD packet to send [14:06:11]OFD Sender: No OFD packet to send [14:06:16]OFD Sender: No OFD packet to send [14:06:21]OFD Sender: No OFD packet to send [14:06:26]OFD Sender: No OFD packet to send [14:06:31]OFD Sender: No OFD packet to send [14:06:36]OFD Sender: No OFD packet to send [14:06:41]OFD Sender: No OFD packet to send [14:06:46]OFD Sender: No OFD packet to send [14:06:51]OFD Sender: No OFD packet to send [14:06:56]OFD Sender: No OFD packet to send [14:07:01]OFD Sender: No OFD packet to send [14:07:06]OFD Sender: No OFD packet to send [14:07:11]OFD Sender: No OFD packet to send [14:07:16]OFD Sender: No OFD packet to send [14:07:21]OFD Sender: No OFD packet to send [14:07:26]OFD Sender: No OFD packet to send [14:07:31]OFD Sender: No OFD packet to send [14:07:36]OFD Sender: No OFD packet to send [14:07:41]OFD Sender: No OFD packet to send [14:07:46]OFD Sender: No OFD packet to send [14:07:51]OFD Sender: No OFD packet to send [14:07:56]OFD Sender: No OFD packet to send [14:08:01]OFD Sender: No OFD packet to send [14:08:06]OFD Sender: No OFD packet to send [14:08:11]OFD Sender: No OFD packet to send [14:08:16]OFD Sender: No OFD packet to send [14:08:21]OFD Sender: No OFD packet to send [14:08:26]OFD Sender: No OFD packet to send [14:08:31]OFD Sender: No OFD packet to send [14:08:36]OFD Sender: No OFD packet to send [14:08:41]OFD Sender: No OFD packet to send [14:08:46]OFD Sender: No OFD packet to send [14:08:51]OFD Sender: No OFD packet to send [14:08:56]OFD Sender: No OFD packet to send [14:09:01]OFD Sender: No OFD packet to send [14:09:06]OFD Sender: No OFD packet to send [14:09:11]OFD Sender: No OFD packet to send [14:09:16]OFD Sender: No OFD packet to send [14:09:21]OFD Sender: No OFD packet to send [14:09:26]OFD Sender: No OFD packet to send [14:09:31]OFD Sender: No OFD packet to send [14:09:36]OFD Sender: No OFD packet to send [14:09:41]OFD Sender: No OFD packet to send [14:09:44]*** FLAG_PRN_KEY set [14:09:44]*** FLAG_PRN_KEY reset [14:09:44]*** FLAG_PRN_KEY set [14:09:45]*** FLAG_PRN_KEY reset [14:09:45]*** FLAG_PRN_KEY set [14:09:45]*** FLAG_PRN_KEY reset [14:09:45]*** FLAG_PRN_KEY set [14:09:45]*** FLAG_PRN_KEY reset [14:09:46]OFD Sender: No OFD packet to send [14:09:52]OFD Sender: No OFD packet to send [14:09:57]OFD Sender: No OFD packet to send [14:10:02]OFD Sender: No OFD packet to send [14:10:07]OFD Sender: No OFD packet to send [14:10:12]OFD Sender: No OFD packet to send [14:10:17]OFD Sender: No OFD packet to send [14:10:22]OFD Sender: No OFD packet to send [14:10:27]OFD Sender: No OFD packet to send [14:10:32]OFD Sender: No OFD packet to send [14:10:37]OFD Sender: No OFD packet to send [14:10:42]OFD Sender: No OFD packet to send [14:10:47]OFD Sender: No OFD packet to send [14:10:52]OFD Sender: No OFD packet to send [14:10:57]OFD Sender: No OFD packet to send [14:11:02]OFD Sender: No OFD packet to send [14:11:07]OFD Sender: No OFD packet to send [14:11:12]OFD Sender: No OFD packet to send [14:11:17]OFD Sender: No OFD packet to send [14:11:22]OFD Sender: No OFD packet to send [14:11:27]OFD Sender: No OFD packet to send [14:11:32]OFD Sender: No OFD packet to send [14:11:37]OFD Sender: No OFD packet to send [14:11:42]OFD Sender: No OFD packet to send [14:11:47]OFD Sender: No OFD packet to send [14:11:52]OFD Sender: No OFD packet to send [14:11:57]OFD Sender: No OFD packet to send [14:12:02]OFD Sender: No OFD packet to send [14:12:07]OFD Sender: No OFD packet to send [14:12:12]OFD Sender: No OFD packet to send [14:12:17]OFD Sender: No OFD packet to send [14:12:22]OFD Sender: No OFD packet to send [14:12:27]OFD Sender: No OFD packet to send [14:12:32]OFD Sender: No OFD packet to send [14:12:37]OFD Sender: No OFD packet to send [14:12:42]OFD Sender: No OFD packet to send [14:12:47]OFD Sender: No OFD packet to send [14:12:52]OFD Sender: No OFD packet to send [14:12:57]OFD Sender: No OFD packet to send [14:13:02]OFD Sender: No OFD packet to send [14:13:07]OFD Sender: No OFD packet to send [14:13:12]OFD Sender: No OFD packet to send [14:13:16]accept exits with 5 [14:13:16]New connection [14:13:16]New thread 3066641764 created [14:13:16]Thread 3066498404 joined [14:13:16]Waiting for new connection... [14:13:16] Sock 5.Parse request [14:13:16]Sock 5.Check first char [14:13:16]Sock 5.First char is OK [14:13:16]request: POST /json_proto HTTP/1.0 [14:13:16]Method: POST [14:13:16]URL: /json_proto [14:13:16]Method is POST - this is cgi request [14:13:16]url: /json_proto [14:13:16]query_string will be loaded in cgi processing [14:13:16]execute_cgi json_proto POST (null) [14:13:16]execute_cgi path=json_proto method=POST [14:13:16]POST find Content-Length [14:13:16]Host: 172.17.33.3:8080 [14:13:16]Content-Length: 840 [14:13:16]Content-Type: application/json [14:13:16] [14:13:16]POST finish read [14:13:16]Found Content-Length = 840 [14:13:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347031", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 4.670, "sum" : 300.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.28 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:13:16]execute_script... [14:13:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347031", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 4.670, "sum" : 300.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.28 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:13:16]POST & json_proto [14:13:16]process_json_proto [14:13:16]json parsed OK: [14:13:16]protocol is kg_v1.0 [14:13:16]action value=close_receipt [14:13:16]process_action close_receipt [14:13:16]cmd_close_receipt [14:13:16]MH_GetDate [14:13:16]Write to MH i2c: F0 00 00 D5 84 48 [14:13:16]Write i2c OK [14:13:16]MH_I2C_Read... [14:13:16]Read from MH i2c: F0 [14:13:16]MH_I2C_Read... [14:13:16]Read from MH i2c: F0 09 00 [14:13:16]MH_I2C_Read... [14:13:16]Read from MH i2c: F0 09 00 D5 84 00 85 41 19 66 23 5B 8F 65 08 [14:13:16]GetLastDocTimeStamp 1712930587 [14:13:16]current date 1712931205 [14:13:16]FM_GetShiftState [14:13:16]SAM_PROTO_GetShiftState [14:13:16]wFMCommunicate request_size=4 [14:13:16]MH_SAM_APDU [14:13:16]CAPDU: 80 13 01 00 [14:13:16]Write to MH i2c: E2 08 00 D6 84 80 13 01 00 00 00 00 00 D7 [14:13:16]Write i2c OK [14:13:16]MH_I2C_Read... [14:13:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:13:16]Read from MH i2c: E2 [14:13:16]MH_I2C_Read... [14:13:16]Read from MH i2c: E2 0E 00 [14:13:16]MH_I2C_Read... [14:13:16]Read from MH i2c: E2 0E 00 D6 84 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 E8 [14:13:16]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [14:13:16]wFMCommunicate OK [14:13:16]SAM_PROTO_GetShiftState done [14:13:16]FM_GetShiftState done [14:13:16]opened in 1712881416 [14:13:16]opened+sec_in_day 1712967816 [14:13:16]quantity*price = 30028 [14:13:16]sum+1 = 30029 [14:13:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.28 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 0.00 Безнал.: 300.28 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 147 12.04.2024 14:13 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 28698 ФПД: 33800886884291 1/tax-web-control/client/api/v1/ticket?date=20240412T141325&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28698&fm=33800886884291&tin=02508201610067®Number=0000138879044617&sum=30028 [14:13:17]StoreToDocumentArchive [14:13:17]shift 113 fd 28698 [14:13:17]save to /storage/0113/doc_00028698 [14:13:17]save last doc name /storage/0113/doc_00028698 to /storage/kkm_last_doc_name [14:13:17]save OK [14:13:17]Clear old archive folders... [14:13:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:13:17]tlvbuf is 01B55420 [14:13:17]SAM_PROTO_ClearQueue [14:13:17]wFMCommunicate request_size=4 [14:13:17]MH_SAM_APDU [14:13:17]CAPDU: 80 09 00 00 [14:13:17]Write to MH i2c: E2 08 00 E3 84 80 09 00 00 00 00 00 00 D9 [14:13:17]Write i2c OK [14:13:17]MH_I2C_Read... [14:13:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:13:17]Read from MH i2c: E2 [14:13:17]MH_I2C_Read... [14:13:17]Read from MH i2c: E2 03 00 [14:13:17]MH_I2C_Read... [14:13:17]Read from MH i2c: E2 03 00 E3 84 00 90 00 DB [14:13:17]RAPDU: 90 00 [14:13:17]wFMCommunicate OK [14:13:17]SAM_PROTO_ClearQueue done [14:13:17]KKMCreateOFDPacket [14:13:17]OFDProtocolAddRootSTLVToBuf [14:13:17]FM_MakeSignedData [14:13:17]FM_MakeSignedData [14:13:17]SAM_PROTO_SignData [14:13:17]wFMCommunicate request_size=4 [14:13:17]MH_SAM_APDU [14:13:17]CAPDU: 80 0D 01 02 [14:13:17]Write to MH i2c: E2 08 00 E4 84 80 0D 01 02 00 00 00 00 E1 [14:13:17]Write i2c OK [14:13:17]MH_I2C_Read... [14:13:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:13:17]Read from MH i2c: E2 [14:13:17]MH_I2C_Read... [14:13:17]Read from MH i2c: E2 03 00 [14:13:17]MH_I2C_Read... [14:13:17]Read from MH i2c: E2 03 00 E4 84 00 90 00 DC [14:13:17]RAPDU: 90 00 [14:13:17]wFMCommunicate OK [14:13:17]wFMCommunicate request_size=255 [14:13:17]MH_SAM_APDU [14:13:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3E 12 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 85 41 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1A 70 00 00 35 04 06 00 1E [14:13:17]Write to MH i2c: E2 02 01 E5 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 35 FF 03 08 00 03 3E 12 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 85 41 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1A 70 00 00 35 04 06 00 1E 00 00 4F [14:13:17]Write i2c OK [14:13:17]MH_I2C_Read... [14:13:18]Read from MH i2c: E2 [14:13:18]MH_I2C_Read... [14:13:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:13:18]Read from MH i2c: E2 03 00 [14:13:18]MH_I2C_Read... [14:13:18]Read from MH i2c: E2 03 00 E5 84 00 90 00 DD [14:13:18]RAPDU: 90 00 [14:13:18]wFMCommunicate OK [14:13:18]wFMCommunicate request_size=10 [14:13:18]MH_SAM_APDU [14:13:18]CAPDU: 80 0D 02 02 05 BD E1 DB 17 C3 [14:13:18]Write to MH i2c: E2 0D 00 E6 84 80 0D 02 02 05 00 BD E1 DB 17 C3 00 00 41 [14:13:18]Write i2c OK [14:13:18]MH_I2C_Read... [14:13:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:13:18]Read from MH i2c: E2 [14:13:18]MH_I2C_Read... [14:13:18]Read from MH i2c: E2 03 00 [14:13:18]MH_I2C_Read... [14:13:18]Read from MH i2c: E2 03 00 E6 84 00 90 00 DE [14:13:18]RAPDU: 90 00 [14:13:18]wFMCommunicate OK [14:13:18]wFMCommunicate request_size=4 [14:13:18]MH_SAM_APDU [14:13:18]CAPDU: 80 0D 03 02 [14:13:18]Write to MH i2c: E2 08 00 E7 84 80 0D 03 02 00 00 00 00 E6 [14:13:18]Write i2c OK [14:13:18]MH_I2C_Read... [14:13:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:13:18]Read from MH i2c: E2 [14:13:18]MH_I2C_Read... [14:13:18]Read from MH i2c: E2 0B 00 [14:13:18]MH_I2C_Read... [14:13:18]Read from MH i2c: E2 0B 00 E7 84 00 66 1F A2 2F 04 71 A1 F4 90 00 47 [14:13:18]RAPDU: 66 1F A2 2F 04 71 A1 F4 90 00 [14:13:18]wFMCommunicate OK [14:13:18]SAM_PROTO_SignData done [14:13:18]FM_MakeSignedData done [14:13:18]CreateOFDProtocolMessage [14:13:18]wFMCommunicate request_size=4 [14:13:18]MH_SAM_APDU [14:13:18]CAPDU: 80 11 00 00 [14:13:18]Write to MH i2c: E2 08 00 E8 84 80 11 00 00 00 00 00 00 E6 [14:13:18]Write i2c OK [14:13:18]MH_I2C_Read... [14:13:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:13:18]Read from MH i2c: E2 [14:13:18]MH_I2C_Read... [14:13:18]Read from MH i2c: E2 17 00 [14:13:18]MH_I2C_Read... [14:13:18]Read from MH i2c: E2 17 00 E8 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 35 [14:13:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:13:18]wFMCommunicate OK [14:13:18]CreateOFDProtocolMessage done [14:13:18]OFDSenderStorePacket 28698 [14:13:18]StoreOFDPacket docnum=28698 [14:13:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 CF 56 07 01 E1 CC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3E 12 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 85 41 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1A 70 00 00 35 04 06 00 1E BD E1 DB 17 C3 66 1F A2 2F 04 71 A1 F4 [14:13:18]CheckFolder [14:13:18]dirname=/storage/ofd_packets [14:13:18]CheckFolder done [14:13:18]ProducePacketName [14:13:18]name=ofd_packets/00028698 [14:13:18]NVStorageSaveData ofd_packets/00028698 [14:13:18]File name is /storage/ofd_packets/00028698 [14:13:18]Write 301 bytes [14:13:18]NVStorageSaveData done [14:13:18]OFDSenderStorePacket done [14:13:18]KKMCreateOFDPacket done [14:13:18]NVStorageSaveData kkm_last_timestamp [14:13:18]File name is /storage/kkm_last_timestamp [14:13:18]Write 4 bytes [14:13:18]NVStorageSaveData done [14:13:18]ExternCall_PrintAddStr [14:13:18]wPrintStart [14:13:18]Write to MH i2c: 01 00 00 E9 84 6D [14:13:18]Write i2c OK [14:13:18]MH_I2C_Read... [14:13:18]Read from MH i2c: 01 [14:13:18]MH_I2C_Read... [14:13:18]Read from MH i2c: 01 07 00 [14:13:18]MH_I2C_Read... [14:13:18]Read from MH i2c: 01 07 00 E9 84 00 00 00 00 00 FF 0F 82 [14:13:18]RasterBufferAndPrint [14:13:18]line Счет N : (1)347031 [14:13:18]line ИНН: 02508201610067 [14:13:18]line Контрольно-Кассовый Чек [14:13:18]line ПРОДАЖА [14:13:18]line ТРК (МРК, ГНК) : 23 [14:13:18]line Товар: 2710124130 [14:13:18]line Аи-92-К-5 [14:13:18]line 4.670 * 64.30 [14:13:18]line = 300.28 [14:13:18]line НДС 12% НСП 1% [14:13:18]line > о реализуемом товаре [14:13:18]line ИТОГО: 300.28 [14:13:18]line НСП 1% : 2.66 [14:13:18]line НДС 12% : 31.89 [14:13:18]line Наличными: 0.00 [14:13:18]line Безнал.: 300.28 [14:13:18]line Место: АЗС № 108 "Партнер Нефть" [14:13:18]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [14:13:18]line СНО: Общий режим [14:13:18]line Чек 147 12.04.2024 14:13 [14:13:18]line Смена: 113 ФФД: 1.0 [14:13:18]line ЗНМ: 0300000027 [14:13:18]line РНМ: 0000138879044617 [14:13:18]line Версия ККМ: 001 [14:13:18]line Платежная система: АКБ Кыргызстан [14:13:18]line ФМ: 0000000000963154 [14:13:18]line ФД: 28698 [14:13:18]line ФПД: 33800886884291 [14:13:18]line 1/tax-web-control/client/api/v1/ticket?date=20240412T141325&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28698&fm=33800886884291&tin=02508201610067®Number=0000138879044617&sum=30028 [14:13:18]OFD Sender: Processing packet 28698 [packets to send 8, broken 7] [14:13:18]ProducePacketName [14:13:18]name=ofd_packets/00028698 [14:13:18]OFD Sender: To server: pG, [14:13:18]CommunicateWithHost lk.salyk.kg:30040 [14:13:18]ConnectInit lk.salyk.kg [14:13:18]written 0, free lines is 4095 [14:13:18]Connected sock=7 [14:13:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 CF 56 07 01 E1 CC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3E 12 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 85 41 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1A 70 00 00 35 04 06 00 1E BD E1 DB 17 C3 66 1F A2 2F 04 71 A1 F4 [14:13:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 32 2C 47 00 90 D6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1A 70 00 00 F4 03 04 00 2F EC 18 66 B6 04 01 00 00 9B 88 02 67 14 DF 8E 5E [14:13:18]CommunicateWithHost err = 0 [14:13:18]CheckOFDResponse [14:13:18]1017 (14) - 77093643461234 [14:13:18]1041 (16) - 0000000000963154 [14:13:18]1040 (4) - 28698 [14:13:18]1012 (4) - 12.04.2024 08:09 [14:13:18]1206 (1) - 0 [14:13:18]OFD Sender: Remove packet 28698 [14:13:18]ProducePacketName [14:13:18]name=ofd_packets/00028698 [14:13:18]NVStorageDeleteData [14:13:19]Write to MH i2c: 01 00 00 12 85 97 [14:13:19]Write i2c OK [14:13:19]MH_I2C_Read... [14:13:19]Read from MH i2c: 01 [14:13:19]MH_I2C_Read... [14:13:19]Read from MH i2c: 01 07 00 [14:13:19]MH_I2C_Read... [14:13:19]Read from MH i2c: 01 07 00 12 85 00 00 00 00 00 E4 0C 8E [14:13:19]RasterBufferAndPrint [14:13:19]line [14:13:19]line [14:13:19]line [14:13:19]line [14:13:19]line [14:13:19]written 0, free lines is 3306 [14:13:19]MH_Cut [14:13:19]Write to MH i2c: D1 01 00 19 85 01 70 [14:13:19]Write i2c OK [14:13:19]MH_I2C_Read... [14:13:19]Read from MH i2c: D1 [14:13:19]MH_I2C_Read... [14:13:19]Read from MH i2c: D1 01 00 [14:13:19]MH_I2C_Read... [14:13:19]Read from MH i2c: D1 01 00 19 85 00 6F [14:13:19]Write to MH i2c: 01 00 00 1A 85 9F [14:13:19]Write i2c OK [14:13:19]MH_I2C_Read... [14:13:19]OFD Sender: No OFD packet to send [14:13:19]*** Cut start [14:13:19]*** Partial cut [14:13:19]*** CUTSNS_PIN = 1 [14:13:19]*** CUTSNS_PIN = 0 [14:13:20]*** Brake cut motor [14:13:20]Read from MH i2c: 01 [14:13:20]MH_I2C_Read... [14:13:20]*** Stop cut motor [14:13:20]*** Cut end [14:13:20]Read from MH i2c: 01 07 00 [14:13:20]MH_I2C_Read... [14:13:20]Read from MH i2c: 01 07 00 1A 85 00 00 00 00 00 FF 0F B4 [14:13:20]process_action close_receipt done [14:13:20]requested_data is exist [14:13:20]produce_requested_data [14:13:20]requested_item fm.sn is exist - process it [14:13:20]wFMCommunicate request_size=4 [14:13:20]MH_SAM_APDU [14:13:20]CAPDU: 80 11 00 00 [14:13:20]Write to MH i2c: E2 08 00 1B 85 80 11 00 00 00 00 00 00 1A [14:13:20]Write i2c OK [14:13:20]MH_I2C_Read... [14:13:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:13:20]Read from MH i2c: E2 [14:13:20]MH_I2C_Read... [14:13:20]Read from MH i2c: E2 17 00 [14:13:20]MH_I2C_Read... [14:13:20]Read from MH i2c: E2 17 00 1B 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 69 [14:13:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:13:20]wFMCommunicate OK [14:13:20]requested_item fd.num is exist - process it [14:13:20]SAM_PROTO_GetFieldsCounters [14:13:20]wFMCommunicate request_size=4 [14:13:20]MH_SAM_APDU [14:13:20]CAPDU: 80 13 00 00 [14:13:20]Write to MH i2c: E2 08 00 1C 85 80 13 00 00 00 00 00 00 1D [14:13:20]Write i2c OK [14:13:20]MH_I2C_Read... [14:13:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:13:20]Read from MH i2c: E2 [14:13:20]MH_I2C_Read... [14:13:20]Read from MH i2c: E2 62 00 [14:13:20]MH_I2C_Read... [14:13:20]Read from MH i2c: E2 62 00 1C 85 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 1A 70 00 00 0E 04 04 00 71 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 0F [14:13:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 1A 70 00 00 0E 04 04 00 71 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:13:20]wFMCommunicate OK [14:13:20]SAM_PROTO_GetFieldsCounters done [14:13:20]requested_item shift.num is exist - process it [14:13:20]requested_item shift.opened is exist - process it [14:13:20]req_shift_opened [14:13:20]FM_GetShiftState [14:13:20]SAM_PROTO_GetShiftState [14:13:20]wFMCommunicate request_size=4 [14:13:20]MH_SAM_APDU [14:13:20]CAPDU: 80 13 01 00 [14:13:20]Write to MH i2c: E2 08 00 1D 85 80 13 01 00 00 00 00 00 1F [14:13:20]Write i2c OK [14:13:20]MH_I2C_Read... [14:13:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:13:20]Read from MH i2c: E2 [14:13:20]MH_I2C_Read... [14:13:20]Read from MH i2c: E2 0E 00 [14:13:20]MH_I2C_Read... [14:13:20]Read from MH i2c: E2 0E 00 1D 85 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 30 [14:13:20]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [14:13:20]wFMCommunicate OK [14:13:20]SAM_PROTO_GetShiftState done [14:13:20]FM_GetShiftState done [14:13:20]req_shift_opened done [14:13:20]requested_item shift.open_date is exist - process it [14:13:20]req_shift_open_date [14:13:20]req_shift_open_date done [14:13:20]produce_requested_data done [14:13:20]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28698,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [14:13:20]process_action_free close_receipt [14:13:20]json_value_free [14:13:20]json_value_free done [14:13:20]process_json_proto returns [14:13:20]Send response to host [14:13:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28698,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [14:13:20]free response buf [14:13:20]execute_script done [14:13:20]execute_script returns [14:13:20]free content buf [14:13:20]Sock 5.Close socket [14:13:20]Sock 5.Thread stoped [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:49]OFD Sender: No OFD packet to send [14:15:54]OFD Sender: No OFD packet to send [14:15:59]OFD Sender: No OFD packet to send [14:16:04]OFD Sender: No OFD packet to send [14:16:09]OFD Sender: No OFD packet to send [14:16:14]OFD Sender: No OFD packet to send [14:16:19]OFD Sender: No OFD packet to send [14:16:24]OFD Sender: No OFD packet to send [14:16:29]OFD Sender: No OFD packet to send [14:16:34]OFD Sender: No OFD packet to send [14:16:39]OFD Sender: No OFD packet to send [14:16:44]OFD Sender: No OFD packet to send [14:16:49]OFD Sender: No OFD packet to send [14:16:54]OFD Sender: No OFD packet to send [14:16:59]OFD Sender: No OFD packet to send [14:17:04]OFD Sender: No OFD packet to send [14:17:09]OFD Sender: No OFD packet to send [14:17:14]OFD Sender: No OFD packet to send [14:17:19]OFD Sender: No OFD packet to send [14:17:24]OFD Sender: No OFD packet to send [14:17:29]OFD Sender: No OFD packet to send [14:17:34]OFD Sender: No OFD packet to send [14:17:39]OFD Sender: No OFD packet to send [14:17:44]OFD Sender: No OFD packet to send [14:17:49]OFD Sender: No OFD packet to send [14:17:54]OFD Sender: No OFD packet to send [14:17:59]OFD Sender: No OFD packet to send [14:18:04]OFD Sender: No OFD packet to send [14:18:09]OFD Sender: No OFD packet to send [14:18:14]OFD Sender: No OFD packet to send [14:18:19]OFD Sender: No OFD packet to send [14:18:24]OFD Sender: No OFD packet to send [14:18:29]OFD Sender: No OFD packet to send [14:18:34]OFD Sender: No OFD packet to send [14:18:39]OFD Sender: No OFD packet to send [14:18:44]OFD Sender: No OFD packet to send [14:18:49]OFD Sender: No OFD packet to send [14:18:54]OFD Sender: No OFD packet to send [14:18:59]OFD Sender: No OFD packet to send [14:19:02]accept exits with 6 [14:19:02]New connection [14:19:02]New thread 3066498404 created [14:19:02]Thread 3066641764 joined [14:19:02]Waiting for new connection... [14:19:02] Sock 6.Parse request [14:19:02]Sock 6.Check first char [14:19:02]Sock 6.First char is OK [14:19:02]request: POST /json_proto HTTP/1.0 [14:19:02]Method: POST [14:19:02]URL: /json_proto [14:19:02]Method is POST - this is cgi request [14:19:02]url: /json_proto [14:19:02]query_string will be loaded in cgi processing [14:19:02]execute_cgi json_proto POST (null) [14:19:02]execute_cgi path=json_proto method=POST [14:19:02]POST find Content-Length [14:19:02]Host: 172.17.33.3:8080 [14:19:02]Content-Length: 677 [14:19:02]Content-Type: application/json [14:19:02] [14:19:02]POST finish read [14:19:02]Found Content-Length = 677 [14:19:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347032", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 7.780, "sum" : 500.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:19:02]execute_script... [14:19: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)347032", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 7.780, "sum" : 500.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:19:02]POST & json_proto [14:19:02]process_json_proto [14:19:02]json parsed OK: [14:19:02]protocol is kg_v1.0 [14:19:02]action value=close_receipt [14:19:02]process_action close_receipt [14:19:02]cmd_close_receipt [14:19:02]MH_GetDate [14:19:02]Write to MH i2c: F0 00 00 1E 85 92 [14:19:02]Write i2c OK [14:19:02]MH_I2C_Read... [14:19:02]Read from MH i2c: F0 [14:19:02]MH_I2C_Read... [14:19:02]Read from MH i2c: F0 09 00 [14:19:02]MH_I2C_Read... [14:19:02]Read from MH i2c: F0 09 00 1E 85 00 DE 42 19 66 23 5B 8F 65 AC [14:19:02]GetLastDocTimeStamp 1712931205 [14:19:02]current date 1712931550 [14:19:02]FM_GetShiftState [14:19:02]SAM_PROTO_GetShiftState [14:19:02]wFMCommunicate request_size=4 [14:19:02]MH_SAM_APDU [14:19:02]CAPDU: 80 13 01 00 [14:19:02]Write to MH i2c: E2 08 00 1F 85 80 13 01 00 00 00 00 00 21 [14:19:02]Write i2c OK [14:19:02]MH_I2C_Read... [14:19:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:19:02]Read from MH i2c: E2 [14:19:02]MH_I2C_Read... [14:19:02]Read from MH i2c: E2 0E 00 [14:19:02]MH_I2C_Read... [14:19:02]Read from MH i2c: E2 0E 00 1F 85 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 32 [14:19:02]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [14:19:02]wFMCommunicate OK [14:19:02]SAM_PROTO_GetShiftState done [14:19:02]FM_GetShiftState done [14:19:02]opened in 1712881416 [14:19:02]opened+sec_in_day 1712967816 [14:19:02]quantity*price = 50025 [14:19:02]sum+1 = 50026 [14:19:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 148 12.04.2024 14:19 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28699 ФПД: 124273557038856 1/tax-web-control/client/api/v1/ticket?date=20240412T141910&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28699&fm=124273557038856&tin=02508201610067®Number=0000138879044617&sum=50000 [14:19:03]StoreToDocumentArchive [14:19:03]shift 113 fd 28699 [14:19:03]save to /storage/0113/doc_00028699 [14:19:03]save last doc name /storage/0113/doc_00028699 to /storage/kkm_last_doc_name [14:19:03]save OK [14:19:03]Clear old archive folders... [14:19:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:19:03]tlvbuf is 01BF9F40 [14:19:03]SAM_PROTO_ClearQueue [14:19:03]wFMCommunicate request_size=4 [14:19:03]MH_SAM_APDU [14:19:03]CAPDU: 80 09 00 00 [14:19:03]Write to MH i2c: E2 08 00 2C 85 80 09 00 00 00 00 00 00 23 [14:19:03]Write i2c OK [14:19:03]MH_I2C_Read... [14:19:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:19:03]Read from MH i2c: E2 [14:19:03]MH_I2C_Read... [14:19:03]Read from MH i2c: E2 03 00 [14:19:03]MH_I2C_Read... [14:19:03]Read from MH i2c: E2 03 00 2C 85 00 90 00 25 [14:19:03]RAPDU: 90 00 [14:19:03]wFMCommunicate OK [14:19:03]SAM_PROTO_ClearQueue done [14:19:03]KKMCreateOFDPacket [14:19:03]OFDProtocolAddRootSTLVToBuf [14:19:03]FM_MakeSignedData [14:19:03]FM_MakeSignedData [14:19:03]SAM_PROTO_SignData [14:19:03]wFMCommunicate request_size=4 [14:19:03]MH_SAM_APDU [14:19:03]CAPDU: 80 0D 01 02 [14:19:03]Write to MH i2c: E2 08 00 2D 85 80 0D 01 02 00 00 00 00 2B [14:19:03]Write i2c OK [14:19:03]MH_I2C_Read... [14:19:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:19:03]Read from MH i2c: E2 [14:19:03]MH_I2C_Read... [14:19:03]Read from MH i2c: E2 03 00 [14:19:03]MH_I2C_Read... [14:19:03]Read from MH i2c: E2 03 00 2D 85 00 90 00 26 [14:19:03]RAPDU: 90 00 [14:19:03]wFMCommunicate OK [14:19:03]wFMCommunicate request_size=255 [14:19:03]MH_SAM_APDU [14:19:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 DE 42 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1B 70 00 00 35 04 06 00 71 [14:19:03]Write to MH i2c: E2 02 01 2E 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 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 DE 42 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1B 70 00 00 35 04 06 00 71 00 00 8D [14:19:03]Write i2c OK [14:19:03]MH_I2C_Read... [14:19:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:19:03]Read from MH i2c: E2 [14:19:03]MH_I2C_Read... [14:19:03]Read from MH i2c: E2 03 00 [14:19:03]MH_I2C_Read... [14:19:03]Read from MH i2c: E2 03 00 2E 85 00 90 00 27 [14:19:03]RAPDU: 90 00 [14:19:03]wFMCommunicate OK [14:19:03]wFMCommunicate request_size=10 [14:19:03]MH_SAM_APDU [14:19:03]CAPDU: 80 0D 02 02 05 06 B1 38 E7 08 [14:19:03]Write to MH i2c: E2 0D 00 2F 85 80 0D 02 02 05 00 06 B1 38 E7 08 00 00 16 [14:19:03]Write i2c OK [14:19:03]MH_I2C_Read... [14:19:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:19:03]Read from MH i2c: E2 [14:19:03]MH_I2C_Read... [14:19:03]Read from MH i2c: E2 03 00 [14:19:03]MH_I2C_Read... [14:19:03]Read from MH i2c: E2 03 00 2F 85 00 90 00 28 [14:19:03]RAPDU: 90 00 [14:19:03]wFMCommunicate OK [14:19:03]wFMCommunicate request_size=4 [14:19:03]MH_SAM_APDU [14:19:03]CAPDU: 80 0D 03 02 [14:19:03]Write to MH i2c: E2 08 00 30 85 80 0D 03 02 00 00 00 00 30 [14:19:03]Write i2c OK [14:19:03]MH_I2C_Read... [14:19:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:19:03]Read from MH i2c: E2 [14:19:03]MH_I2C_Read... [14:19:03]Read from MH i2c: E2 0B 00 [14:19:03]MH_I2C_Read... [14:19:03]Read from MH i2c: E2 0B 00 30 85 00 1C 58 67 3F 8D FA C3 47 90 00 DC [14:19:03]RAPDU: 1C 58 67 3F 8D FA C3 47 90 00 [14:19:03]wFMCommunicate OK [14:19:03]SAM_PROTO_SignData done [14:19:03]FM_MakeSignedData done [14:19:03]CreateOFDProtocolMessage [14:19:03]wFMCommunicate request_size=4 [14:19:03]MH_SAM_APDU [14:19:03]CAPDU: 80 11 00 00 [14:19:03]Write to MH i2c: E2 08 00 31 85 80 11 00 00 00 00 00 00 30 [14:19:03]Write i2c OK [14:19:03]MH_I2C_Read... [14:19:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:19:03]Read from MH i2c: E2 [14:19:03]MH_I2C_Read... [14:19:03]Read from MH i2c: E2 17 00 [14:19:03]MH_I2C_Read... [14:19:03]Read from MH i2c: E2 17 00 31 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 7F [14:19:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:19:03]wFMCommunicate OK [14:19:03]CreateOFDProtocolMessage done [14:19:03]OFDSenderStorePacket 28699 [14:19:03]StoreOFDPacket docnum=28699 [14:19:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 82 3F 07 01 41 D9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 DE 42 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1B 70 00 00 35 04 06 00 71 06 B1 38 E7 08 1C 58 67 3F 8D FA C3 47 [14:19:03]CheckFolder [14:19:03]dirname=/storage/ofd_packets [14:19:03]CheckFolder done [14:19:03]ProducePacketName [14:19:03]name=ofd_packets/00028699 [14:19:03]NVStorageSaveData ofd_packets/00028699 [14:19:03]File name is /storage/ofd_packets/00028699 [14:19:03]Write 301 bytes [14:19:03]NVStorageSaveData done [14:19:03]OFDSenderStorePacket done [14:19:03]KKMCreateOFDPacket done [14:19:03]NVStorageSaveData kkm_last_timestamp [14:19:03]File name is /storage/kkm_last_timestamp [14:19:03]Write 4 bytes [14:19:03]NVStorageSaveData done [14:19:03]ExternCall_PrintAddStr [14:19:03]wPrintStart [14:19:03]Write to MH i2c: 01 00 00 32 85 B7 [14:19:03]Write i2c OK [14:19:03]MH_I2C_Read... [14:19:03]Read from MH i2c: 01 [14:19:03]MH_I2C_Read... [14:19:03]Read from MH i2c: 01 07 00 [14:19:03]MH_I2C_Read... [14:19:03]Read from MH i2c: 01 07 00 32 85 00 00 00 00 00 FF 0F CC [14:19:03]RasterBufferAndPrint [14:19:03]line Счет N : (1)347032 [14:19:03]line ИНН: 02508201610067 [14:19:03]line Контрольно-Кассовый Чек [14:19:03]line ПРОДАЖА [14:19:03]line ТРК (МРК, ГНК) : 42 [14:19:03]line Товар: 2710124130 [14:19:03]line Аи-92-К-5 [14:19:03]line 7.780 * 64.30 [14:19:03]line = 500.25 [14:19:03]line НДС 12% НСП 1% [14:19:03]line > о реализуемом товаре [14:19:03]line ОКРУГЛЕНИЕ: -0.25 [14:19:03]line ИТОГО: 500.00 [14:19:03]line Внесено: 500.00 [14:19:03]line СДАЧА: 0.00 [14:19:03]line НСП 1% : 4.43 [14:19:03]line НДС 12% : 53.12 [14:19:03]line Наличными: 500.00 [14:19:03]line Безнал.: 0.00 [14:19:03]line Место: АЗС № 108 "Партнер Нефть" [14:19:03]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [14:19:03]line СНО: Общий режим [14:19:03]line Чек 148 12.04.2024 14:19 [14:19:03]line Смена: 113 ФФД: 1.0 [14:19:03]line ЗНМ: 0300000027 [14:19:03]line РНМ: 0000138879044617 [14:19:03]line Версия ККМ: 001 [14:19:03]line ФМ: 0000000000963154 [14:19:03]line ФД: 28699 [14:19:03]line ФПД: 124273557038856 [14:19:03]line 1/tax-web-control/client/api/v1/ticket?date=20240412T141910&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28699&fm=124273557038856&tin=02508201610067®Number=0000138879044617&sum=50000 [14:19:04]OFD Sender: Processing packet 28699 [packets to send 8, broken 7] [14:19:04]ProducePacketName [14:19:04]name=ofd_packets/00028699 [14:19:04]OFD Sender: To server: pG, [14:19:04]CommunicateWithHost lk.salyk.kg:30040 [14:19:04]ConnectInit lk.salyk.kg [14:19:04]written 0, free lines is 4095 [14:19:04]Connected sock=7 [14:19:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 82 3F 07 01 41 D9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 DE 42 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1B 70 00 00 35 04 06 00 71 06 B1 38 E7 08 1C 58 67 3F 8D FA C3 47 [14:19:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 CA D2 47 00 8D A4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1B 70 00 00 F4 03 04 00 88 ED 18 66 B6 04 01 00 00 5C 8E 1F 1C 62 AE 48 24 [14:19:04]CommunicateWithHost err = 0 [14:19:04]CheckOFDResponse [14:19:04]1017 (14) - 77093643461234 [14:19:04]1041 (16) - 0000000000963154 [14:19:04]1040 (4) - 28699 [14:19:04]1012 (4) - 12.04.2024 08:15 [14:19:04]1206 (1) - 0 [14:19:04]OFD Sender: Remove packet 28699 [14:19:04]ProducePacketName [14:19:04]name=ofd_packets/00028699 [14:19:04]NVStorageDeleteData [14:19:04]Write to MH i2c: 01 00 00 5C 85 E1 [14:19:04]Write i2c OK [14:19:04]MH_I2C_Read... [14:19:04]Read from MH i2c: 01 [14:19:04]MH_I2C_Read... [14:19:04]Read from MH i2c: 01 07 00 [14:19:04]MH_I2C_Read... [14:19:04]Read from MH i2c: 01 07 00 5C 85 00 00 00 00 00 C2 0C B6 [14:19:04]RasterBufferAndPrint [14:19:04]line [14:19:04]line [14:19:04]line [14:19:04]line [14:19:04]line [14:19:04]written 0, free lines is 3270 [14:19:04]MH_Cut [14:19:04]Write to MH i2c: D1 01 00 63 85 01 BA [14:19:04]Write i2c OK [14:19:04]MH_I2C_Read... [14:19:04]Read from MH i2c: D1 [14:19:04]MH_I2C_Read... [14:19:04]Read from MH i2c: D1 01 00 [14:19:04]MH_I2C_Read... [14:19:04]Read from MH i2c: D1 01 00 63 85 00 B9 [14:19:04]Write to MH i2c: 01 00 00 64 85 E9 [14:19:04]Write i2c OK [14:19:04]MH_I2C_Read... [14:19:04]OFD Sender: No OFD packet to send [14:19:05]*** Cut start [14:19:05]*** Partial cut [14:19:05]*** CUTSNS_PIN = 1 [14:19:05]*** CUTSNS_PIN = 0 [14:19:05]*** Brake cut motor [14:19:05]Read from MH i2c: 01 [14:19:05]MH_I2C_Read... [14:19:05]*** Stop cut motor [14:19:05]*** Cut end [14:19:05]Read from MH i2c: 01 07 00 [14:19:05]MH_I2C_Read... [14:19:05]Read from MH i2c: 01 07 00 64 85 00 00 00 00 00 FF 0F FE [14:19:05]process_action close_receipt done [14:19:05]requested_data is exist [14:19:05]produce_requested_data [14:19:05]requested_item fm.sn is exist - process it [14:19:05]wFMCommunicate request_size=4 [14:19:05]MH_SAM_APDU [14:19:05]CAPDU: 80 11 00 00 [14:19:05]Write to MH i2c: E2 08 00 65 85 80 11 00 00 00 00 00 00 64 [14:19:05]Write i2c OK [14:19:05]MH_I2C_Read... [14:19:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:19:05]Read from MH i2c: E2 [14:19:05]MH_I2C_Read... [14:19:05]Read from MH i2c: E2 17 00 [14:19:05]MH_I2C_Read... [14:19:05]Read from MH i2c: E2 17 00 65 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 B3 [14:19:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:19:05]wFMCommunicate OK [14:19:05]requested_item fd.num is exist - process it [14:19:05]SAM_PROTO_GetFieldsCounters [14:19:05]wFMCommunicate request_size=4 [14:19:05]MH_SAM_APDU [14:19:05]CAPDU: 80 13 00 00 [14:19:05]Write to MH i2c: E2 08 00 66 85 80 13 00 00 00 00 00 00 67 [14:19:05]Write i2c OK [14:19:05]MH_I2C_Read... [14:19:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:19:06]Read from MH i2c: E2 [14:19:06]MH_I2C_Read... [14:19:06]Read from MH i2c: E2 62 00 [14:19:06]MH_I2C_Read... [14:19:06]Read from MH i2c: E2 62 00 66 85 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 1B 70 00 00 0E 04 04 00 71 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 5D [14:19:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 1B 70 00 00 0E 04 04 00 71 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:19:06]wFMCommunicate OK [14:19:06]SAM_PROTO_GetFieldsCounters done [14:19:06]requested_item shift.num is exist - process it [14:19:06]requested_item shift.opened is exist - process it [14:19:06]req_shift_opened [14:19:06]FM_GetShiftState [14:19:06]SAM_PROTO_GetShiftState [14:19:06]wFMCommunicate request_size=4 [14:19:06]MH_SAM_APDU [14:19:06]CAPDU: 80 13 01 00 [14:19:06]Write to MH i2c: E2 08 00 67 85 80 13 01 00 00 00 00 00 69 [14:19:06]Write i2c OK [14:19:06]MH_I2C_Read... [14:19:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:19:06]Read from MH i2c: E2 [14:19:06]MH_I2C_Read... [14:19:06]Read from MH i2c: E2 0E 00 [14:19:06]MH_I2C_Read... [14:19:06]Read from MH i2c: E2 0E 00 67 85 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 7A [14:19:06]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [14:19:06]wFMCommunicate OK [14:19:06]SAM_PROTO_GetShiftState done [14:19:06]FM_GetShiftState done [14:19:06]req_shift_opened done [14:19:06]requested_item shift.open_date is exist - process it [14:19:06]req_shift_open_date [14:19:06]req_shift_open_date done [14:19:06]produce_requested_data done [14:19:06]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28699,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [14:19:06]process_action_free close_receipt [14:19:06]json_value_free [14:19:06]json_value_free done [14:19:06]process_json_proto returns [14:19:06]Send response to host [14:19:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28699,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [14:19:06]free response buf [14:19:06]execute_script done [14:19:06]execute_script returns [14:19:06]free content buf [14:19:06]Sock 6.Close socket [14:19:06]Sock 6.Thread stoped [14:19:09]OFD Sender: No OFD packet to send [14:19:14]OFD Sender: No OFD packet to send [14:19:19]OFD Sender: No OFD packet to send [14:19:24]OFD Sender: No OFD packet to send [14:19:29]OFD Sender: No OFD packet to send [14:19:34]OFD Sender: No OFD packet to send [14:19:39]OFD Sender: No OFD packet to send [14:19:44]OFD Sender: No OFD packet to send [14:19:49]OFD Sender: No OFD packet to send [14:19:54]OFD Sender: No OFD packet to send [14:19:59]OFD Sender: No OFD packet to send [14:20:04]OFD Sender: No OFD packet to send [14:20:09]OFD Sender: No OFD packet to send [14:20:14]OFD Sender: No OFD packet to send [14:20:19]OFD Sender: No OFD packet to send [14:20:24]OFD Sender: No OFD packet to send [14:20:29]OFD Sender: No OFD packet to send [14:20:34]OFD Sender: No OFD packet to send [14:20:39]OFD Sender: No OFD packet to send [14:20:44]OFD Sender: No OFD packet to send [14:20:49]OFD Sender: No OFD packet to send [14:20:54]OFD Sender: No OFD packet to send [14:20:59]OFD Sender: No OFD packet to send [14:21:04]OFD Sender: No OFD packet to send [14:21:09]OFD Sender: No OFD packet to send [14:21:14]OFD Sender: No OFD packet to send [14:21:19]OFD Sender: No OFD packet to send [14:21:24]OFD Sender: No OFD packet to send [14:21:29]OFD Sender: No OFD packet to send [14:21:34]OFD Sender: No OFD packet to send [14:21:39]OFD Sender: No OFD packet to send [14:21:44]OFD Sender: No OFD packet to send [14:21:49]OFD Sender: No OFD packet to send [14:21:54]OFD Sender: No OFD packet to send [14:21:59]OFD Sender: No OFD packet to send [14:22:04]OFD Sender: No OFD packet to send [14:22:09]OFD Sender: No OFD packet to send [14:22:14]OFD Sender: No OFD packet to send [14:22:19]OFD Sender: No OFD packet to send [14:22:25]OFD Sender: No OFD packet to send [14:22:30]OFD Sender: No OFD packet to send [14:22:35]OFD Sender: No OFD packet to send [14:22:40]OFD Sender: No OFD packet to send [14:22:45]OFD Sender: No OFD packet to send [14:22:50]OFD Sender: No OFD packet to send [14:22:55]OFD Sender: No OFD packet to send [14:23:00]OFD Sender: No OFD packet to send [14:23:05]OFD Sender: No OFD packet to send [14:23:10]OFD Sender: No OFD packet to send [14:23:15]OFD Sender: No OFD packet to send [14:23:20]OFD Sender: No OFD packet to send [14:23:25]OFD Sender: No OFD packet to send [14:23:30]OFD Sender: No OFD packet to send [14:23:35]OFD Sender: No OFD packet to send [14:23:40]OFD Sender: No OFD packet to send [14:23:45]OFD Sender: No OFD packet to send [14:23:50]OFD Sender: No OFD packet to send [14:23:55]OFD Sender: No OFD packet to send [14:24:00]OFD Sender: No OFD packet to send [14:24:05]OFD Sender: No OFD packet to send [14:24:10]OFD Sender: No OFD packet to send [14:24:15]OFD Sender: No OFD packet to send [14:24:20]OFD Sender: No OFD packet to send [14:24:25]OFD Sender: No OFD packet to send [14:24:30]OFD Sender: No OFD packet to send [14:24:35]OFD Sender: No OFD packet to send [14:24:40]OFD Sender: No OFD packet to send [14:24:45]OFD Sender: No OFD packet to send [14:24:50]OFD Sender: No OFD packet to send [14:24:55]OFD Sender: No OFD packet to send [14:25:00]OFD Sender: No OFD packet to send [14:25:05]OFD Sender: No OFD packet to send [14:25:10]OFD Sender: No OFD packet to send [14:25:15]OFD Sender: No OFD packet to send [14:25:20]OFD Sender: No OFD packet to send [14:25:25]OFD Sender: No OFD packet to send [14:25:30]OFD Sender: No OFD packet to send [14:25:35]OFD Sender: No OFD packet to send [14:25:40]OFD Sender: No OFD packet to send [14:25:45]OFD Sender: No OFD packet to send [14:25:50]OFD Sender: No OFD packet to send [14:25:55]OFD Sender: No OFD packet to send [14:26:00]OFD Sender: No OFD packet to send [14:26:05]OFD Sender: No OFD packet to send [14:26:10]OFD Sender: No OFD packet to send [14:26:15]OFD Sender: No OFD packet to send [14:26:20]OFD Sender: No OFD packet to send [14:26:25]OFD Sender: No OFD packet to send [14:26:30]OFD Sender: No OFD packet to send [14:26:35]OFD Sender: No OFD packet to send [14:26:40]OFD Sender: No OFD packet to send [14:26:45]OFD Sender: No OFD packet to send [14:26:50]OFD Sender: No OFD packet to send [14:26:55]OFD Sender: No OFD packet to send [14:26:58]accept exits with 5 [14:26:58]New connection [14:26:58]New thread 3066641764 created [14:26:58]Thread 3066498404 joined [14:26:58]Waiting for new connection... [14:26:58] Sock 5.Parse request [14:26:58]Sock 5.Check first char [14:26:58]Sock 5.First char is OK [14:26:58]request: POST /json_proto HTTP/1.0 [14:26:58]Method: POST [14:26:58]URL: /json_proto [14:26:58]Method is POST - this is cgi request [14:26:58]url: /json_proto [14:26:58]query_string will be loaded in cgi processing [14:26:58]execute_cgi json_proto POST (null) [14:26:58]execute_cgi path=json_proto method=POST [14:26:58]POST find Content-Length [14:26:58]Host: 172.17.33.3:8080 [14:26:58]Content-Length: 682 [14:26:58]Content-Type: application/json [14:26:58] [14:26:58]POST finish read [14:26:58]Found Content-Length = 682 [14:26:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347033", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 15.560, "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:26:58]execute_script... [14:26: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)347033", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 15.560, "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:26:58]POST & json_proto [14:26:58]process_json_proto [14:26:58]json parsed OK: [14:26:58]protocol is kg_v1.0 [14:26:58]action value=close_receipt [14:26:58]process_action close_receipt [14:26:58]cmd_close_receipt [14:26:58]MH_GetDate [14:26:58]Write to MH i2c: F0 00 00 68 85 DC [14:26:58]Write i2c OK [14:26:58]MH_I2C_Read... [14:26:58]Read from MH i2c: F0 [14:26:58]MH_I2C_Read... [14:26:58]Read from MH i2c: F0 09 00 [14:26:58]MH_I2C_Read... [14:26:58]Read from MH i2c: F0 09 00 68 85 00 BA 44 19 66 23 5B 8F 65 D4 [14:26:58]GetLastDocTimeStamp 1712931550 [14:26:58]current date 1712932026 [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 69 85 80 13 01 00 00 00 00 00 6B [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 69 85 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 7C [14:26:58]RAPDU: 09 00 01 08 7F 18 66 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]opened in 1712881416 [14:26:58]opened+sec_in_day 1712967816 [14:26:58]quantity*price = 100050 [14:26:58]sum+1 = 100052 [14:26: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 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 149 12.04.2024 14:27 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28700 ФПД: 73935663975056 1/tax-web-control/client/api/v1/ticket?date=20240412T142706&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28700&fm=73935663975056&tin=02508201610067®Number=0000138879044617&sum=100000 [14:26:59]StoreToDocumentArchive [14:26:59]shift 113 fd 28700 [14:26:59]save to /storage/0113/doc_00028700 [14:26:59]save last doc name /storage/0113/doc_00028700 to /storage/kkm_last_doc_name [14:26:59]save OK [14:26:59]Clear old archive folders... [14:26:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:26:59]tlvbuf is 01AEEE60 [14:26:59]SAM_PROTO_ClearQueue [14:26:59]wFMCommunicate request_size=4 [14:26:59]MH_SAM_APDU [14:26:59]CAPDU: 80 09 00 00 [14:26:59]Write to MH i2c: E2 08 00 76 85 80 09 00 00 00 00 00 00 6D [14:26:59]Write i2c OK [14:26:59]MH_I2C_Read... [14:26:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:26:59]Read from MH i2c: E2 [14:26:59]MH_I2C_Read... [14:26:59]Read from MH i2c: E2 03 00 [14:26:59]MH_I2C_Read... [14:26:59]Read from MH i2c: E2 03 00 76 85 00 90 00 6F [14:26:59]RAPDU: 90 00 [14:26:59]wFMCommunicate OK [14:26:59]SAM_PROTO_ClearQueue done [14:26:59]KKMCreateOFDPacket [14:26:59]OFDProtocolAddRootSTLVToBuf [14:26:59]FM_MakeSignedData [14:26:59]FM_MakeSignedData [14:26:59]SAM_PROTO_SignData [14:26:59]wFMCommunicate request_size=4 [14:26:59]MH_SAM_APDU [14:26:59]CAPDU: 80 0D 01 02 [14:26:59]Write to MH i2c: E2 08 00 77 85 80 0D 01 02 00 00 00 00 75 [14:26:59]Write i2c OK [14:26:59]MH_I2C_Read... [14:26:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:26:59]Read from MH i2c: E2 [14:26:59]MH_I2C_Read... [14:26:59]Read from MH i2c: E2 03 00 [14:26:59]MH_I2C_Read... [14:26:59]Read from MH i2c: E2 03 00 77 85 00 90 00 70 [14:26:59]RAPDU: 90 00 [14:26:59]wFMCommunicate OK [14:26:59]wFMCommunicate request_size=255 [14:26:59]MH_SAM_APDU [14:26:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 95 00 00 00 F4 03 04 00 BA 44 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1C 70 00 00 35 04 06 00 43 [14:26:59]Write to MH i2c: E2 02 01 78 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 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 95 00 00 00 F4 03 04 00 BA 44 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1C 70 00 00 35 04 06 00 43 00 00 F3 [14:26:59]Write i2c OK [14:26:59]MH_I2C_Read... [14:26:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:26:59]Read from MH i2c: E2 [14:26:59]MH_I2C_Read... [14:26:59]Read from MH i2c: E2 03 00 [14:26:59]MH_I2C_Read... [14:26:59]Read from MH i2c: E2 03 00 78 85 00 90 00 71 [14:26:59]RAPDU: 90 00 [14:26:59]wFMCommunicate OK [14:26:59]wFMCommunicate request_size=10 [14:26:59]MH_SAM_APDU [14:26:59]CAPDU: 80 0D 02 02 05 3E 7C FC CA 90 [14:26:59]Write to MH i2c: E2 0D 00 79 85 80 0D 02 02 05 00 3E 7C FC CA 90 00 00 92 [14:26:59]Write i2c OK [14:26:59]MH_I2C_Read... [14:26:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:26:59]Read from MH i2c: E2 [14:26:59]MH_I2C_Read... [14:26:59]Read from MH i2c: E2 03 00 [14:26:59]MH_I2C_Read... [14:26:59]Read from MH i2c: E2 03 00 79 85 00 90 00 72 [14:26:59]RAPDU: 90 00 [14:26:59]wFMCommunicate OK [14:26:59]wFMCommunicate request_size=4 [14:26:59]MH_SAM_APDU [14:26:59]CAPDU: 80 0D 03 02 [14:26:59]Write to MH i2c: E2 08 00 7A 85 80 0D 03 02 00 00 00 00 7A [14:26:59]Write i2c OK [14:26:59]MH_I2C_Read... [14:26:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:26:59]Read from MH i2c: E2 [14:26:59]MH_I2C_Read... [14:26:59]Read from MH i2c: E2 0B 00 [14:26:59]MH_I2C_Read... [14:26:59]Read from MH i2c: E2 0B 00 7A 85 00 41 BF FD FB 46 2F BD 63 90 00 08 [14:26:59]RAPDU: 41 BF FD FB 46 2F BD 63 90 00 [14:26:59]wFMCommunicate OK [14:26:59]SAM_PROTO_SignData done [14:26:59]FM_MakeSignedData done [14:26:59]CreateOFDProtocolMessage [14:26:59]wFMCommunicate request_size=4 [14:26:59]MH_SAM_APDU [14:26:59]CAPDU: 80 11 00 00 [14:26:59]Write to MH i2c: E2 08 00 7B 85 80 11 00 00 00 00 00 00 7A [14:26:59]Write i2c OK [14:26:59]MH_I2C_Read... [14:26:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:26:59]Read from MH i2c: E2 [14:26:59]MH_I2C_Read... [14:26:59]Read from MH i2c: E2 17 00 [14:26:59]MH_I2C_Read... [14:26:59]Read from MH i2c: E2 17 00 7B 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 C9 [14:26:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:26:59]wFMCommunicate OK [14:26:59]CreateOFDProtocolMessage done [14:26:59]OFDSenderStorePacket 28700 [14:26:59]StoreOFDPacket docnum=28700 [14:26:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 31 57 07 01 CD 28 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 95 00 00 00 F4 03 04 00 BA 44 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1C 70 00 00 35 04 06 00 43 3E 7C FC CA 90 41 BF FD FB 46 2F BD 63 [14:26:59]CheckFolder [14:26:59]dirname=/storage/ofd_packets [14:26:59]CheckFolder done [14:26:59]ProducePacketName [14:26:59]name=ofd_packets/00028700 [14:26:59]NVStorageSaveData ofd_packets/00028700 [14:26:59]File name is /storage/ofd_packets/00028700 [14:26:59]Write 301 bytes [14:26:59]NVStorageSaveData done [14:26:59]OFDSenderStorePacket done [14:26:59]KKMCreateOFDPacket done [14:26:59]NVStorageSaveData kkm_last_timestamp [14:26:59]File name is /storage/kkm_last_timestamp [14:26:59]Write 4 bytes [14:26:59]NVStorageSaveData done [14:26:59]ExternCall_PrintAddStr [14:26:59]wPrintStart [14:26:59]Write to MH i2c: 01 00 00 7C 85 01 [14:26:59]Write i2c OK [14:26:59]MH_I2C_Read... [14:26:59]Read from MH i2c: 01 [14:26:59]MH_I2C_Read... [14:26:59]Read from MH i2c: 01 07 00 [14:26:59]MH_I2C_Read... [14:26:59]Read from MH i2c: 01 07 00 7C 85 00 00 00 00 00 FF 0F 16 [14:26:59]RasterBufferAndPrint [14:26:59]line Счет N : (1)347033 [14:26:59]line ИНН: 02508201610067 [14:26:59]line Контрольно-Кассовый Чек [14:26:59]line ПРОДАЖА [14:26:59]line ТРК (МРК, ГНК) : 32 [14:26:59]line Товар: 2710124130 [14:26:59]line Аи-92-К-5 [14:26:59]line 15.560 * 64.30 [14:26:59]line = 1000.51 [14:26:59]line НДС 12% НСП 1% [14:26:59]line > о реализуемом товаре [14:26:59]line ОКРУГЛЕНИЕ: -0.51 [14:26:59]line ИТОГО: 1000.00 [14:26:59]line Внесено: 1000.00 [14:26:59]line СДАЧА: 0.00 [14:26:59]line НСП 1% : 8.85 [14:26:59]line НДС 12% : 106.25 [14:26:59]line Наличными: 1000.00 [14:26:59]line Безнал.: 0.00 [14:26:59]line Место: АЗС № 108 "Партнер Нефть" [14:26:59]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [14:26:59]line СНО: Общий режим [14:26:59]line Чек 149 12.04.2024 14:27 [14:26:59]line Смена: 113 ФФД: 1.0 [14:26:59]line ЗНМ: 0300000027 [14:26:59]line РНМ: 0000138879044617 [14:26:59]line Версия ККМ: 001 [14:26:59]line ФМ: 0000000000963154 [14:26:59]line ФД: 28700 [14:26:59]line ФПД: 73935663975056 [14:27:00]line 1/tax-web-control/client/api/v1/ticket?date=20240412T142706&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28700&fm=73935663975056&tin=02508201610067®Number=0000138879044617&sum=100000 [14:27:00]OFD Sender: Processing packet 28700 [packets to send 8, broken 7] [14:27:00]ProducePacketName [14:27:00]name=ofd_packets/00028700 [14:27:00]OFD Sender: To server: pG, [14:27:00]CommunicateWithHost lk.salyk.kg:30040 [14:27:00]ConnectInit lk.salyk.kg [14:27:00]written 0, free lines is 4095 [14:27:00]Connected sock=7 [14:27:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 31 57 07 01 CD 28 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 95 00 00 00 F4 03 04 00 BA 44 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1C 70 00 00 35 04 06 00 43 3E 7C FC CA 90 41 BF FD FB 46 2F BD 63 [14:27:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 AF E2 47 00 D5 08 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1C 70 00 00 F4 03 04 00 64 EF 18 66 B6 04 01 00 00 AC 11 F6 17 49 A8 EE 42 [14:27:00]CommunicateWithHost err = 0 [14:27:00]CheckOFDResponse [14:27:00]1017 (14) - 77093643461234 [14:27:00]1041 (16) - 0000000000963154 [14:27:00]1040 (4) - 28700 [14:27:00]1012 (4) - 12.04.2024 08:23 [14:27:00]1206 (1) - 0 [14:27:00]OFD Sender: Remove packet 28700 [14:27:00]ProducePacketName [14:27:00]name=ofd_packets/00028700 [14:27:00]NVStorageDeleteData [14:27:00]Write to MH i2c: 01 00 00 A6 85 2B [14:27:00]Write i2c OK [14:27:00]MH_I2C_Read... [14:27:00]Read from MH i2c: 01 [14:27:00]MH_I2C_Read... [14:27:00]Read from MH i2c: 01 07 00 [14:27:00]MH_I2C_Read... [14:27:00]Read from MH i2c: 01 07 00 A6 85 00 00 00 00 00 C2 0C 00 [14:27:00]RasterBufferAndPrint [14:27:00]line [14:27:00]line [14:27:00]line [14:27:00]line [14:27:00]line [14:27:00]written 0, free lines is 3272 [14:27:00]MH_Cut [14:27:00]Write to MH i2c: D1 01 00 AD 85 01 04 [14:27:00]Write i2c OK [14:27:00]MH_I2C_Read... [14:27:00]Read from MH i2c: D1 [14:27:00]MH_I2C_Read... [14:27:00]Read from MH i2c: D1 01 00 [14:27:00]MH_I2C_Read... [14:27:00]Read from MH i2c: D1 01 00 AD 85 00 03 [14:27:00]Write to MH i2c: 01 00 00 AE 85 33 [14:27:00]Write i2c OK [14:27:00]MH_I2C_Read... [14:27:01]OFD Sender: No OFD packet to send [14:27:01]*** Cut start [14:27:01]*** Partial cut [14:27:01]*** CUTSNS_PIN = 1 [14:27:01]*** CUTSNS_PIN = 0 [14:27:01]*** Brake cut motor [14:27:02]Read from MH i2c: 01 [14:27:02]MH_I2C_Read... [14:27:02]*** Stop cut motor [14:27:02]*** Cut end [14:27:02]Read from MH i2c: 01 07 00 [14:27:02]MH_I2C_Read... [14:27:02]Read from MH i2c: 01 07 00 AE 85 00 00 00 00 00 FF 0F 48 [14:27:02]process_action close_receipt done [14:27:02]requested_data is exist [14:27:02]produce_requested_data [14:27:02]requested_item fm.sn is exist - process it [14:27:02]wFMCommunicate request_size=4 [14:27:02]MH_SAM_APDU [14:27:02]CAPDU: 80 11 00 00 [14:27:02]Write to MH i2c: E2 08 00 AF 85 80 11 00 00 00 00 00 00 AE [14:27:02]Write i2c OK [14:27:02]MH_I2C_Read... [14:27:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:27:02]Read from MH i2c: E2 [14:27:02]MH_I2C_Read... [14:27:02]Read from MH i2c: E2 17 00 [14:27:02]MH_I2C_Read... [14:27:02]Read from MH i2c: E2 17 00 AF 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 FD [14:27:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:27:02]wFMCommunicate OK [14:27:02]requested_item fd.num is exist - process it [14:27:02]SAM_PROTO_GetFieldsCounters [14:27:02]wFMCommunicate request_size=4 [14:27:02]MH_SAM_APDU [14:27:02]CAPDU: 80 13 00 00 [14:27:02]Write to MH i2c: E2 08 00 B0 85 80 13 00 00 00 00 00 00 B1 [14:27:02]Write i2c OK [14:27:02]MH_I2C_Read... [14:27:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:27:02]Read from MH i2c: E2 [14:27:02]MH_I2C_Read... [14:27:02]Read from MH i2c: E2 62 00 [14:27:02]MH_I2C_Read... [14:27:02]Read from MH i2c: E2 62 00 B0 85 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 1C 70 00 00 0E 04 04 00 71 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 AB [14:27:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 1C 70 00 00 0E 04 04 00 71 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:27:02]wFMCommunicate OK [14:27:02]SAM_PROTO_GetFieldsCounters done [14:27:02]requested_item shift.num is exist - process it [14:27:02]requested_item shift.opened is exist - process it [14:27:02]req_shift_opened [14:27:02]FM_GetShiftState [14:27:02]SAM_PROTO_GetShiftState [14:27:02]wFMCommunicate request_size=4 [14:27:02]MH_SAM_APDU [14:27:02]CAPDU: 80 13 01 00 [14:27:02]Write to MH i2c: E2 08 00 B1 85 80 13 01 00 00 00 00 00 B3 [14:27:02]Write i2c OK [14:27:02]MH_I2C_Read... [14:27:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:27:02]Read from MH i2c: E2 [14:27:02]MH_I2C_Read... [14:27:02]Read from MH i2c: E2 0E 00 [14:27:02]MH_I2C_Read... [14:27:02]Read from MH i2c: E2 0E 00 B1 85 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 C4 [14:27:02]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [14:27:02]wFMCommunicate OK [14:27:02]SAM_PROTO_GetShiftState done [14:27:02]FM_GetShiftState done [14:27:02]req_shift_opened done [14:27:02]requested_item shift.open_date is exist - process it [14:27:02]req_shift_open_date [14:27:02]req_shift_open_date done [14:27:02]produce_requested_data done [14:27:02]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28700,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [14:27:02]process_action_free close_receipt [14:27:02]json_value_free [14:27:02]json_value_free done [14:27:02]process_json_proto returns [14:27:02]Send response to host [14:27:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28700,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [14:27:02]free response buf [14:27:02]execute_script done [14:27:02]execute_script returns [14:27:02]free content buf [14:27:02]Sock 5.Close socket [14:27:02]Sock 5.Thread stoped [14:27:06]OFD Sender: No OFD packet to send [14:27:11]OFD Sender: No OFD packet to send [14:27:16]OFD Sender: No OFD packet to send [14:27:21]OFD Sender: No OFD packet to send [14:27:26]OFD Sender: No OFD packet to send [14:27:31]OFD Sender: No OFD packet to send [14:27:36]OFD Sender: No OFD packet to send [14:27:41]OFD Sender: No OFD packet to send [14:27:46]OFD Sender: No OFD packet to send [14:27:51]OFD Sender: No OFD packet to send [14:27:56]OFD Sender: No OFD packet to send [14:28:01]OFD Sender: No OFD packet to send [14:28:06]OFD Sender: No OFD packet to send [14:28:11]OFD Sender: No OFD packet to send [14:28:16]OFD Sender: No OFD packet to send [14:28:21]OFD Sender: No OFD packet to send [14:28:26]OFD Sender: No OFD packet to send [14:28:31]OFD Sender: No OFD packet to send [14:28:36]OFD Sender: No OFD packet to send [14:28:41]OFD Sender: No OFD packet to send [14:28:46]OFD Sender: No OFD packet to send [14:28:51]OFD Sender: No OFD packet to send [14:28:56]OFD Sender: No OFD packet to send [14:29:01]OFD Sender: No OFD packet to send [14:29:06]OFD Sender: No OFD packet to send [14:29:11]OFD Sender: No OFD packet to send [14:29:16]OFD Sender: No OFD packet to send [14:29:21]OFD Sender: No OFD packet to send [14:29:26]OFD Sender: No OFD packet to send [14:29:31]OFD Sender: No OFD packet to send [14:29:36]OFD Sender: No OFD packet to send [14:29:41]OFD Sender: No OFD packet to send [14:29:46]OFD Sender: No OFD packet to send [14:29:51]OFD Sender: No OFD packet to send [14:29:56]OFD Sender: No OFD packet to send [14:30:01]OFD Sender: No OFD packet to send [14:30:06]OFD Sender: No OFD packet to send [14:30:11]OFD Sender: No OFD packet to send [14:30:16]OFD Sender: No OFD packet to send [14:30:21]OFD Sender: No OFD packet to send [14:30:26]OFD Sender: No OFD packet to send [14:30:31]OFD Sender: No OFD packet to send [14:30:36]OFD Sender: No OFD packet to send [14:30:41]OFD Sender: No OFD packet to send [14:30:46]OFD Sender: No OFD packet to send [14:30:51]OFD Sender: No OFD packet to send [14:30:56]OFD Sender: No OFD packet to send [14:31:01]OFD Sender: No OFD packet to send [14:31:06]OFD Sender: No OFD packet to send [14:31:11]OFD Sender: No OFD packet to send [14:31:16]OFD Sender: No OFD packet to send [14:31:21]OFD Sender: No OFD packet to send [14:31:26]OFD Sender: No OFD packet to send [14:31:31]OFD Sender: No OFD packet to send [14:31:36]OFD Sender: No OFD packet to send [14:31:41]OFD Sender: No OFD packet to send [14:31:46]OFD Sender: No OFD packet to send [14:31:51]OFD Sender: No OFD packet to send [14:31:56]OFD Sender: No OFD packet to send [14:32:01]OFD Sender: No OFD packet to send [14:32:06]OFD Sender: No OFD packet to send [14:32:11]OFD Sender: No OFD packet to send [14:32:16]OFD Sender: No OFD packet to send [14:32:21]OFD Sender: No OFD packet to send [14:32:26]OFD Sender: No OFD packet to send [14:32:31]OFD Sender: No OFD packet to send [14:32:36]OFD Sender: No OFD packet to send [14:32:41]OFD Sender: No OFD packet to send [14:32:46]OFD Sender: No OFD packet to send [14:32:51]OFD Sender: No OFD packet to send [14:32:56]OFD Sender: No OFD packet to send [14:33:01]OFD Sender: No OFD packet to send [14:33:06]OFD Sender: No OFD packet to send [14:33:11]OFD Sender: No OFD packet to send [14:33:16]OFD Sender: No OFD packet to send [14:33:21]OFD Sender: No OFD packet to send [14:33:26]OFD Sender: No OFD packet to send [14:33:31]OFD Sender: No OFD packet to send [14:33:36]OFD Sender: No OFD packet to send [14:33:41]OFD Sender: No OFD packet to send [14:33:46]OFD Sender: No OFD packet to send [14:33:51]OFD Sender: No OFD packet to send [14:33:56]OFD Sender: No OFD packet to send [14:34:01]OFD Sender: No OFD packet to send [14:34:06]OFD Sender: No OFD packet to send [14:34:11]OFD Sender: No OFD packet to send [14:34:16]OFD Sender: No OFD packet to send [14:34:21]OFD Sender: No OFD packet to send [14:34:26]OFD Sender: No OFD packet to send [14:34:31]OFD Sender: No OFD packet to send [14:34:36]OFD Sender: No OFD packet to send [14:34:41]OFD Sender: No OFD packet to send [14:34:46]OFD Sender: No OFD packet to send [14:34:51]OFD Sender: No OFD packet to send [14:34:56]OFD Sender: No OFD packet to send [14:35:01]OFD Sender: No OFD packet to send [14:35:06]OFD Sender: No OFD packet to send [14:35:11]OFD Sender: No OFD packet to send [14:35:16]OFD Sender: No OFD packet to send [14:35:21]OFD Sender: No OFD packet to send [14:35:26]OFD Sender: No OFD packet to send [14:35:31]OFD Sender: No OFD packet to send [14:35:36]OFD Sender: No OFD packet to send [14:35:41]OFD Sender: No OFD packet to send [14:35:46]OFD Sender: No OFD packet to send [14:35:51]OFD Sender: No OFD packet to send [14:35:56]OFD Sender: No OFD packet to send [14:36:01]OFD Sender: No OFD packet to send [14:36:06]OFD Sender: No OFD packet to send [14:36:11]OFD Sender: No OFD packet to send [14:36:16]OFD Sender: No OFD packet to send [14:36:21]OFD Sender: No OFD packet to send [14:36:26]OFD Sender: No OFD packet to send [14:36:31]OFD Sender: No OFD packet to send [14:36:36]OFD Sender: No OFD packet to send [14:36:41]OFD Sender: No OFD packet to send [14:36:46]OFD Sender: No OFD packet to send [14:36:51]OFD Sender: No OFD packet to send [14:36:56]OFD Sender: No OFD packet to send [14:37:01]OFD Sender: No OFD packet to send [14:37:06]OFD Sender: No OFD packet to send [14:37:11]OFD Sender: No OFD packet to send [14:37:16]OFD Sender: No OFD packet to send [14:37:21]OFD Sender: No OFD packet to send [14:37:26]OFD Sender: No OFD packet to send [14:37:31]OFD Sender: No OFD packet to send [14:37:36]OFD Sender: No OFD packet to send [14:37:41]OFD Sender: No OFD packet to send [14:37:46]OFD Sender: No OFD packet to send [14:37:51]OFD Sender: No OFD packet to send [14:37:56]OFD Sender: No OFD packet to send [14:38:01]OFD Sender: No OFD packet to send [14:38:06]OFD Sender: No OFD packet to send [14:38:11]OFD Sender: No OFD packet to send [14:38:16]OFD Sender: No OFD packet to send [14:38:21]OFD Sender: No OFD packet to send [14:38:26]OFD Sender: No OFD packet to send [14:38:31]OFD Sender: No OFD packet to send [14:38:36]OFD Sender: No OFD packet to send [14:38:41]OFD Sender: No OFD packet to send [14:38:46]OFD Sender: No OFD packet to send [14:38:51]OFD Sender: No OFD packet to send [14:38:56]OFD Sender: No OFD packet to send [14:39:01]OFD Sender: No OFD packet to send [14:39:06]OFD Sender: No OFD packet to send [14:39:11]OFD Sender: No OFD packet to send [14:39:16]OFD Sender: No OFD packet to send [14:39:21]OFD Sender: No OFD packet to send [14:39:26]OFD Sender: No OFD packet to send [14:39:31]OFD Sender: No OFD packet to send [14:39:36]OFD Sender: No OFD packet to send [14:39:41]OFD Sender: No OFD packet to send [14:39:46]OFD Sender: No OFD packet to send [14:39:48]accept exits with 6 [14:39:48]New connection [14:39:48]New thread 3066498404 created [14:39:48]Thread 3066641764 joined [14:39:48]Waiting for new connection... [14:39:48] Sock 6.Parse request [14:39:48]Sock 6.Check first char [14:39:48]Sock 6.First char is OK [14:39:48]request: POST /json_proto HTTP/1.0 [14:39:48]Method: POST [14:39:48]URL: /json_proto [14:39:48]Method is POST - this is cgi request [14:39:48]url: /json_proto [14:39:48]query_string will be loaded in cgi processing [14:39:48]execute_cgi json_proto POST (null) [14:39:48]execute_cgi path=json_proto method=POST [14:39:48]POST find Content-Length [14:39:48]Host: 172.17.33.3:8080 [14:39:48]Content-Length: 677 [14:39:48]Content-Type: application/json [14:39:48] [14:39:48]POST finish read [14:39:48]Found Content-Length = 677 [14:39:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347034", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 6.230, "sum" : 400.59, "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:39:48]execute_script... [14:39: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)347034", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 6.230, "sum" : 400.59, "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:39:48]POST & json_proto [14:39:48]process_json_proto [14:39:48]json parsed OK: [14:39:48]protocol is kg_v1.0 [14:39:48]action value=close_receipt [14:39:48]process_action close_receipt [14:39:48]cmd_close_receipt [14:39:48]MH_GetDate [14:39:48]Write to MH i2c: F0 00 00 B2 85 26 [14:39:48]Write i2c OK [14:39:48]MH_I2C_Read... [14:39:48]Read from MH i2c: F0 [14:39:48]MH_I2C_Read... [14:39:48]Read from MH i2c: F0 09 00 [14:39:48]MH_I2C_Read... [14:39:48]Read from MH i2c: F0 09 00 B2 85 00 BD 47 19 66 23 5B 8F 65 24 [14:39:48]GetLastDocTimeStamp 1712932026 [14:39:48]current date 1712932797 [14:39:48]FM_GetShiftState [14:39:48]SAM_PROTO_GetShiftState [14:39:48]wFMCommunicate request_size=4 [14:39:48]MH_SAM_APDU [14:39:48]CAPDU: 80 13 01 00 [14:39:48]Write to MH i2c: E2 08 00 B3 85 80 13 01 00 00 00 00 00 B5 [14:39:48]Write i2c OK [14:39:48]MH_I2C_Read... [14:39:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:39:48]Read from MH i2c: E2 [14:39:48]MH_I2C_Read... [14:39:48]Read from MH i2c: E2 0E 00 [14:39:48]MH_I2C_Read... [14:39:48]Read from MH i2c: E2 0E 00 B3 85 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 C6 [14:39:48]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [14:39:48]wFMCommunicate OK [14:39:48]SAM_PROTO_GetShiftState done [14:39:48]FM_GetShiftState done [14:39:48]opened in 1712881416 [14:39:48]opened+sec_in_day 1712967816 [14:39:48]quantity*price = 40058 [14:39:48]sum+1 = 40060 [14:39:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.54 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 150 12.04.2024 14:39 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28701 ФПД: 154085306046637 1/tax-web-control/client/api/v1/ticket?date=20240412T143957&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28701&fm=154085306046637&tin=02508201610067®Number=0000138879044617&sum=40000 [14:39:49]StoreToDocumentArchive [14:39:49]shift 113 fd 28701 [14:39:49]save to /storage/0113/doc_00028701 [14:39:49]save last doc name /storage/0113/doc_00028701 to /storage/kkm_last_doc_name [14:39:49]save OK [14:39:49]Clear old archive folders... [14:39:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:39:49]tlvbuf is 01AE5190 [14:39:49]SAM_PROTO_ClearQueue [14:39:49]wFMCommunicate request_size=4 [14:39:49]MH_SAM_APDU [14:39:49]CAPDU: 80 09 00 00 [14:39:49]Write to MH i2c: E2 08 00 C0 85 80 09 00 00 00 00 00 00 B7 [14:39:49]Write i2c OK [14:39:49]MH_I2C_Read... [14:39:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:39:49]Read from MH i2c: E2 [14:39:49]MH_I2C_Read... [14:39:49]Read from MH i2c: E2 03 00 [14:39:49]MH_I2C_Read... [14:39:49]Read from MH i2c: E2 03 00 C0 85 00 90 00 B9 [14:39:49]RAPDU: 90 00 [14:39:49]wFMCommunicate OK [14:39:49]SAM_PROTO_ClearQueue done [14:39:49]KKMCreateOFDPacket [14:39:49]OFDProtocolAddRootSTLVToBuf [14:39:49]FM_MakeSignedData [14:39:49]FM_MakeSignedData [14:39:49]SAM_PROTO_SignData [14:39:49]wFMCommunicate request_size=4 [14:39:49]MH_SAM_APDU [14:39:49]CAPDU: 80 0D 01 02 [14:39:49]Write to MH i2c: E2 08 00 C1 85 80 0D 01 02 00 00 00 00 BF [14:39:49]Write i2c OK [14:39:49]MH_I2C_Read... [14:39:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:39:49]Read from MH i2c: E2 [14:39:49]MH_I2C_Read... [14:39:49]Read from MH i2c: E2 03 00 [14:39:49]MH_I2C_Read... [14:39:49]Read from MH i2c: E2 03 00 C1 85 00 90 00 BA [14:39:49]RAPDU: 90 00 [14:39:49]wFMCommunicate OK [14:39:49]wFMCommunicate request_size=255 [14:39:49]MH_SAM_APDU [14:39:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 56 18 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 7B 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 9E 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 BD 47 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1D 70 00 00 35 04 06 00 8C [14:39:49]Write to MH i2c: E2 02 01 C2 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 35 FF 03 08 00 03 56 18 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 7B 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 9E 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 BD 47 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1D 70 00 00 35 04 06 00 8C 00 00 0E [14:39:49]Write i2c OK [14:39:49]MH_I2C_Read... [14:39:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:39:50]Read from MH i2c: E2 [14:39:50]MH_I2C_Read... [14:39:50]Read from MH i2c: E2 03 00 [14:39:50]MH_I2C_Read... [14:39:50]Read from MH i2c: E2 03 00 C2 85 00 90 00 BB [14:39:50]RAPDU: 90 00 [14:39:50]wFMCommunicate OK [14:39:50]wFMCommunicate request_size=10 [14:39:50]MH_SAM_APDU [14:39:50]CAPDU: 80 0D 02 02 05 23 C7 EE 98 AD [14:39:50]Write to MH i2c: E2 0D 00 C3 85 80 0D 02 02 05 00 23 C7 EE 98 AD 00 00 E9 [14:39:50]Write i2c OK [14:39:50]MH_I2C_Read... [14:39:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:39:50]Read from MH i2c: E2 [14:39:50]MH_I2C_Read... [14:39:50]Read from MH i2c: E2 03 00 [14:39:50]MH_I2C_Read... [14:39:50]Read from MH i2c: E2 03 00 C3 85 00 90 00 BC [14:39:50]RAPDU: 90 00 [14:39:50]wFMCommunicate OK [14:39:50]wFMCommunicate request_size=4 [14:39:50]MH_SAM_APDU [14:39:50]CAPDU: 80 0D 03 02 [14:39:50]Write to MH i2c: E2 08 00 C4 85 80 0D 03 02 00 00 00 00 C4 [14:39:50]Write i2c OK [14:39:50]MH_I2C_Read... [14:39:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:39:50]Read from MH i2c: E2 [14:39:50]MH_I2C_Read... [14:39:50]Read from MH i2c: E2 0B 00 [14:39:50]MH_I2C_Read... [14:39:50]Read from MH i2c: E2 0B 00 C4 85 00 F6 51 2F 4A DC 3F 46 C8 90 00 AE [14:39:50]RAPDU: F6 51 2F 4A DC 3F 46 C8 90 00 [14:39:50]wFMCommunicate OK [14:39:50]SAM_PROTO_SignData done [14:39:50]FM_MakeSignedData done [14:39:50]CreateOFDProtocolMessage [14:39:50]wFMCommunicate request_size=4 [14:39:50]MH_SAM_APDU [14:39:50]CAPDU: 80 11 00 00 [14:39:50]Write to MH i2c: E2 08 00 C5 85 80 11 00 00 00 00 00 00 C4 [14:39:50]Write i2c OK [14:39:50]MH_I2C_Read... [14:39:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:39:50]Read from MH i2c: E2 [14:39:50]MH_I2C_Read... [14:39:50]Read from MH i2c: E2 17 00 [14:39:50]MH_I2C_Read... [14:39:50]Read from MH i2c: E2 17 00 C5 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 13 [14:39:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:39:50]wFMCommunicate OK [14:39:50]CreateOFDProtocolMessage done [14:39:50]OFDSenderStorePacket 28701 [14:39:50]StoreOFDPacket docnum=28701 [14:39:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 4F 5B 07 01 BA 8C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 56 18 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 7B 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 9E 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 BD 47 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1D 70 00 00 35 04 06 00 8C 23 C7 EE 98 AD F6 51 2F 4A DC 3F 46 C8 [14:39:50]CheckFolder [14:39:50]dirname=/storage/ofd_packets [14:39:50]CheckFolder done [14:39:50]ProducePacketName [14:39:50]name=ofd_packets/00028701 [14:39:50]NVStorageSaveData ofd_packets/00028701 [14:39:50]File name is /storage/ofd_packets/00028701 [14:39:50]Write 301 bytes [14:39:50]NVStorageSaveData done [14:39:50]OFDSenderStorePacket done [14:39:50]KKMCreateOFDPacket done [14:39:50]NVStorageSaveData kkm_last_timestamp [14:39:50]File name is /storage/kkm_last_timestamp [14:39:50]Write 4 bytes [14:39:50]NVStorageSaveData done [14:39:50]ExternCall_PrintAddStr [14:39:50]wPrintStart [14:39:50]Write to MH i2c: 01 00 00 C6 85 4B [14:39:50]Write i2c OK [14:39:50]MH_I2C_Read... [14:39:50]Read from MH i2c: 01 [14:39:50]MH_I2C_Read... [14:39:50]Read from MH i2c: 01 07 00 [14:39:50]MH_I2C_Read... [14:39:50]Read from MH i2c: 01 07 00 C6 85 00 00 00 00 00 FF 0F 60 [14:39:50]RasterBufferAndPrint [14:39:50]line Счет N : (1)347034 [14:39:50]line ИНН: 02508201610067 [14:39:50]line Контрольно-Кассовый Чек [14:39:50]line ПРОДАЖА [14:39:50]line ТРК (МРК, ГНК) : 32 [14:39:50]line Товар: 2710124130 [14:39:50]line Аи-92-К-5 [14:39:50]line 6.230 * 64.30 [14:39:50]line = 400.59 [14:39:50]line НДС 12% НСП 1% [14:39:50]line > о реализуемом товаре [14:39:50]line ОКРУГЛЕНИЕ: -0.59 [14:39:50]line ИТОГО: 400.00 [14:39:50]line Внесено: 400.00 [14:39:50]line СДАЧА: 0.00 [14:39:50]line НСП 1% : 3.54 [14:39:50]line НДС 12% : 42.54 [14:39:50]line Наличными: 400.00 [14:39:50]line Безнал.: 0.00 [14:39:50]line Место: АЗС № 108 "Партнер Нефть" [14:39:50]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [14:39:50]line СНО: Общий режим [14:39:50]line Чек 150 12.04.2024 14:39 [14:39:50]line Смена: 113 ФФД: 1.0 [14:39:50]line ЗНМ: 0300000027 [14:39:50]line РНМ: 0000138879044617 [14:39:50]line Версия ККМ: 001 [14:39:50]line ФМ: 0000000000963154 [14:39:50]line ФД: 28701 [14:39:50]line ФПД: 154085306046637 [14:39:50]line 1/tax-web-control/client/api/v1/ticket?date=20240412T143957&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28701&fm=154085306046637&tin=02508201610067®Number=0000138879044617&sum=40000 [14:39:50]OFD Sender: Processing packet 28701 [packets to send 8, broken 7] [14:39:50]ProducePacketName [14:39:50]name=ofd_packets/00028701 [14:39:50]OFD Sender: To server: pG, [14:39:50]CommunicateWithHost lk.salyk.kg:30040 [14:39:50]ConnectInit lk.salyk.kg [14:39:50]written 0, free lines is 4095 [14:39:50]Connected sock=7 [14:39:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 4F 5B 07 01 BA 8C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 56 18 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 7B 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 9E 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 BD 47 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1D 70 00 00 35 04 06 00 8C 23 C7 EE 98 AD F6 51 2F 4A DC 3F 46 C8 [14:39:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 7C F8 47 00 2A D9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1D 70 00 00 F4 03 04 00 67 F2 18 66 B6 04 01 00 00 8E BE 6F 44 81 ED E3 39 [14:39:51]CommunicateWithHost err = 0 [14:39:51]CheckOFDResponse [14:39:51]1017 (14) - 77093643461234 [14:39:51]1041 (16) - 0000000000963154 [14:39:51]1040 (4) - 28701 [14:39:51]1012 (4) - 12.04.2024 08:35 [14:39:51]1206 (1) - 0 [14:39:51]OFD Sender: Remove packet 28701 [14:39:51]ProducePacketName [14:39:51]name=ofd_packets/00028701 [14:39:51]NVStorageDeleteData [14:39:51]Write to MH i2c: 01 00 00 F0 85 75 [14:39:51]Write i2c OK [14:39:51]MH_I2C_Read... [14:39:51]Read from MH i2c: 01 [14:39:51]MH_I2C_Read... [14:39:51]Read from MH i2c: 01 07 00 [14:39:51]MH_I2C_Read... [14:39:51]Read from MH i2c: 01 07 00 F0 85 00 00 00 00 00 CB 0C 53 [14:39:51]RasterBufferAndPrint [14:39:51]line [14:39:51]line [14:39:51]line [14:39:51]line [14:39:51]line [14:39:51]written 0, free lines is 3281 [14:39:51]MH_Cut [14:39:51]Write to MH i2c: D1 01 00 F7 85 01 4E [14:39:51]Write i2c OK [14:39:51]MH_I2C_Read... [14:39:51]Read from MH i2c: D1 [14:39:51]MH_I2C_Read... [14:39:51]Read from MH i2c: D1 01 00 [14:39:51]MH_I2C_Read... [14:39:51]Read from MH i2c: D1 01 00 F7 85 00 4D [14:39:51]Write to MH i2c: 01 00 00 F8 85 7D [14:39:51]Write i2c OK [14:39:51]MH_I2C_Read... [14:39:51]OFD Sender: No OFD packet to send [14:39:51]*** Cut start [14:39:51]*** Partial cut [14:39:51]*** CUTSNS_PIN = 1 [14:39:52]*** CUTSNS_PIN = 0 [14:39:52]*** Brake cut motor [14:39:52]Read from MH i2c: 01 [14:39:52]MH_I2C_Read... [14:39:52]*** Stop cut motor [14:39:52]*** Cut end [14:39:52]Read from MH i2c: 01 07 00 [14:39:52]MH_I2C_Read... [14:39:52]Read from MH i2c: 01 07 00 F8 85 00 00 00 00 00 FF 0F 92 [14:39:52]process_action close_receipt done [14:39:52]requested_data is exist [14:39:52]produce_requested_data [14:39:52]requested_item fm.sn is exist - process it [14:39:52]wFMCommunicate request_size=4 [14:39:52]MH_SAM_APDU [14:39:52]CAPDU: 80 11 00 00 [14:39:52]Write to MH i2c: E2 08 00 F9 85 80 11 00 00 00 00 00 00 F8 [14:39:52]Write i2c OK [14:39:52]MH_I2C_Read... [14:39:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:39:52]Read from MH i2c: E2 [14:39:52]MH_I2C_Read... [14:39:52]Read from MH i2c: E2 17 00 [14:39:52]MH_I2C_Read... [14:39:52]Read from MH i2c: E2 17 00 F9 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 47 [14:39:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:39:52]wFMCommunicate OK [14:39:52]requested_item fd.num is exist - process it [14:39:52]SAM_PROTO_GetFieldsCounters [14:39:52]wFMCommunicate request_size=4 [14:39:52]MH_SAM_APDU [14:39:52]CAPDU: 80 13 00 00 [14:39:52]Write to MH i2c: E2 08 00 FA 85 80 13 00 00 00 00 00 00 FB [14:39:52]Write i2c OK [14:39:52]MH_I2C_Read... [14:39:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:39:52]Read from MH i2c: E2 [14:39:52]MH_I2C_Read... [14:39:52]Read from MH i2c: E2 62 00 [14:39:52]MH_I2C_Read... [14:39:52]Read from MH i2c: E2 62 00 FA 85 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 1D 70 00 00 0E 04 04 00 71 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 F9 [14:39:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 1D 70 00 00 0E 04 04 00 71 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:39:52]wFMCommunicate OK [14:39:52]SAM_PROTO_GetFieldsCounters done [14:39:52]requested_item shift.num is exist - process it [14:39:52]requested_item shift.opened is exist - process it [14:39:52]req_shift_opened [14:39:52]FM_GetShiftState [14:39:52]SAM_PROTO_GetShiftState [14:39:52]wFMCommunicate request_size=4 [14:39:52]MH_SAM_APDU [14:39:52]CAPDU: 80 13 01 00 [14:39:52]Write to MH i2c: E2 08 00 FB 85 80 13 01 00 00 00 00 00 FD [14:39:52]Write i2c OK [14:39:52]MH_I2C_Read... [14:39:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:39:52]Read from MH i2c: E2 [14:39:52]MH_I2C_Read... [14:39:52]Read from MH i2c: E2 0E 00 [14:39:52]MH_I2C_Read... [14:39:52]Read from MH i2c: E2 0E 00 FB 85 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 0E [14:39:52]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [14:39:52]wFMCommunicate OK [14:39:52]SAM_PROTO_GetShiftState done [14:39:52]FM_GetShiftState done [14:39:52]req_shift_opened done [14:39:52]requested_item shift.open_date is exist - process it [14:39:52]req_shift_open_date [14:39:52]req_shift_open_date done [14:39:52]produce_requested_data done [14:39:52]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28701,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [14:39:52]process_action_free close_receipt [14:39:52]json_value_free [14:39:52]json_value_free done [14:39:52]process_json_proto returns [14:39:52]Send response to host [14:39:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28701,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [14:39:52]free response buf [14:39:52]execute_script done [14:39:52]execute_script returns [14:39:52]free content buf [14:39:52]Sock 6.Close socket [14:39:52]Sock 6.Thread stoped [14:39:56]OFD Sender: No OFD packet to send [14:40:01]OFD Sender: No OFD packet to send [14:40:06]OFD Sender: No OFD packet to send [14:40:11]OFD Sender: No OFD packet to send [14:40:16]OFD Sender: No OFD packet to send [14:40:21]OFD Sender: No OFD packet to send [14:40:26]OFD Sender: No OFD packet to send [14:40:31]OFD Sender: No OFD packet to send [14:40:36]OFD Sender: No OFD packet to send [14:40:41]OFD Sender: No OFD packet to send [14:40:46]OFD Sender: No OFD packet to send [14:40:51]OFD Sender: No OFD packet to send [14:40:56]accept exits with 5 [14:40:56]New connection [14:40:56]New thread 3066641764 created [14:40:56]Thread 3066498404 joined [14:40:56]Waiting for new connection... [14:40:56] Sock 5.Parse request [14:40:56]Sock 5.Check first char [14:40:56]Sock 5.First char is OK [14:40:56]request: POST /json_proto HTTP/1.0 [14:40:56]Method: POST [14:40:56]URL: /json_proto [14:40:56]Method is POST - this is cgi request [14:40:56]url: /json_proto [14:40:56]query_string will be loaded in cgi processing [14:40:56]execute_cgi json_proto POST (null) [14:40:56]execute_cgi path=json_proto method=POST [14:40:56]POST find Content-Length [14:40:56]Host: 172.17.33.3:8080 [14:40:56]Content-Length: 677 [14:40:56]Content-Type: application/json [14:40:56] [14:40:56]POST finish read [14:40:56]Found Content-Length = 677 [14:40:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347035", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 7.780, "sum" : 500.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:40:56]execute_script... [14:40:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347035", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 7.780, "sum" : 500.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:40:56]POST & json_proto [14:40:56]process_json_proto [14:40:56]json parsed OK: [14:40:56]protocol is kg_v1.0 [14:40:56]action value=close_receipt [14:40:56]process_action close_receipt [14:40:56]cmd_close_receipt [14:40:56]MH_GetDate [14:40:56]Write to MH i2c: F0 00 00 FC 85 70 [14:40:56]Write i2c OK [14:40:56]MH_I2C_Read... [14:40:56]Read from MH i2c: F0 [14:40:56]MH_I2C_Read... [14:40:56]Read from MH i2c: F0 09 00 [14:40:56]MH_I2C_Read... [14:40:56]Read from MH i2c: F0 09 00 FC 85 00 01 48 19 66 23 5B 8F 65 B3 [14:40:56]GetLastDocTimeStamp 1712932797 [14:40:56]current date 1712932865 [14:40:56]FM_GetShiftState [14:40:56]SAM_PROTO_GetShiftState [14:40:56]wFMCommunicate request_size=4 [14:40:56]MH_SAM_APDU [14:40:56]CAPDU: 80 13 01 00 [14:40:56]Write to MH i2c: E2 08 00 FD 85 80 13 01 00 00 00 00 00 FF [14:40:56]Write i2c OK [14:40:56]MH_I2C_Read... [14:40:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:40:56]Read from MH i2c: E2 [14:40:56]MH_I2C_Read... [14:40:56]Read from MH i2c: E2 0E 00 [14:40:56]MH_I2C_Read... [14:40:56]Read from MH i2c: E2 0E 00 FD 85 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 10 [14:40:56]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [14:40:56]wFMCommunicate OK [14:40:56]SAM_PROTO_GetShiftState done [14:40:56]FM_GetShiftState done [14:40:56]opened in 1712881416 [14:40:56]opened+sec_in_day 1712967816 [14:40:56]quantity*price = 50025 [14:40:56]sum+1 = 50026 [14:40:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 151 12.04.2024 14:41 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28702 ФПД: 133842435396257 1/tax-web-control/client/api/v1/ticket?date=20240412T144105&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28702&fm=133842435396257&tin=02508201610067®Number=0000138879044617&sum=50000 [14:40:57]StoreToDocumentArchive [14:40:57]shift 113 fd 28702 [14:40:57]save to /storage/0113/doc_00028702 [14:40:57]save last doc name /storage/0113/doc_00028702 to /storage/kkm_last_doc_name [14:40:57]save OK [14:40:57]Clear old archive folders... [14:40:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:40:57]tlvbuf is 01AEED10 [14:40:57]SAM_PROTO_ClearQueue [14:40:57]wFMCommunicate request_size=4 [14:40:57]MH_SAM_APDU [14:40:57]CAPDU: 80 09 00 00 [14:40:57]Write to MH i2c: E2 08 00 0A 86 80 09 00 00 00 00 00 00 02 [14:40:57]Write i2c OK [14:40:57]MH_I2C_Read... [14:40:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:40:57]Read from MH i2c: E2 [14:40:57]MH_I2C_Read... [14:40:57]Read from MH i2c: E2 03 00 [14:40:57]MH_I2C_Read... [14:40:57]Read from MH i2c: E2 03 00 0A 86 00 90 00 04 [14:40:57]RAPDU: 90 00 [14:40:57]wFMCommunicate OK [14:40:57]SAM_PROTO_ClearQueue done [14:40:57]KKMCreateOFDPacket [14:40:57]OFDProtocolAddRootSTLVToBuf [14:40:57]FM_MakeSignedData [14:40:57]FM_MakeSignedData [14:40:57]SAM_PROTO_SignData [14:40:57]wFMCommunicate request_size=4 [14:40:57]MH_SAM_APDU [14:40:57]CAPDU: 80 0D 01 02 [14:40:57]Write to MH i2c: E2 08 00 0B 86 80 0D 01 02 00 00 00 00 0A [14:40:57]Write i2c OK [14:40:57]MH_I2C_Read... [14:40:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:40:57]Read from MH i2c: E2 [14:40:57]MH_I2C_Read... [14:40:57]Read from MH i2c: E2 03 00 [14:40:57]MH_I2C_Read... [14:40:57]Read from MH i2c: E2 03 00 0B 86 00 90 00 05 [14:40:57]RAPDU: 90 00 [14:40:57]wFMCommunicate OK [14:40:57]wFMCommunicate request_size=255 [14:40:57]MH_SAM_APDU [14:40:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 01 48 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1E 70 00 00 35 04 06 00 79 [14:40:57]Write to MH i2c: E2 02 01 0C 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 01 48 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1E 70 00 00 35 04 06 00 79 00 00 A3 [14:40:57]Write i2c OK [14:40:57]MH_I2C_Read... [14:40:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:40:58]Read from MH i2c: E2 [14:40:58]MH_I2C_Read... [14:40:58]Read from MH i2c: E2 03 00 [14:40:58]MH_I2C_Read... [14:40:58]Read from MH i2c: E2 03 00 0C 86 00 90 00 06 [14:40:58]RAPDU: 90 00 [14:40:58]wFMCommunicate OK [14:40:58]wFMCommunicate request_size=10 [14:40:58]MH_SAM_APDU [14:40:58]CAPDU: 80 0D 02 02 05 BA 9E D1 52 A1 [14:40:58]Write to MH i2c: E2 0D 00 0D 86 80 0D 02 02 05 00 BA 9E D1 52 A1 00 00 33 [14:40:58]Write i2c OK [14:40:58]MH_I2C_Read... [14:40:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:40:58]Read from MH i2c: E2 [14:40:58]MH_I2C_Read... [14:40:58]Read from MH i2c: E2 03 00 [14:40:58]MH_I2C_Read... [14:40:58]Read from MH i2c: E2 03 00 0D 86 00 90 00 07 [14:40:58]RAPDU: 90 00 [14:40:58]wFMCommunicate OK [14:40:58]wFMCommunicate request_size=4 [14:40:58]MH_SAM_APDU [14:40:58]CAPDU: 80 0D 03 02 [14:40:58]Write to MH i2c: E2 08 00 0E 86 80 0D 03 02 00 00 00 00 0F [14:40:58]Write i2c OK [14:40:58]MH_I2C_Read... [14:40:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:40:58]Read from MH i2c: E2 [14:40:58]MH_I2C_Read... [14:40:58]Read from MH i2c: E2 0B 00 [14:40:58]MH_I2C_Read... [14:40:58]Read from MH i2c: E2 0B 00 0E 86 00 48 B7 AA 82 CA E6 DD 78 90 00 40 [14:40:58]RAPDU: 48 B7 AA 82 CA E6 DD 78 90 00 [14:40:58]wFMCommunicate OK [14:40:58]SAM_PROTO_SignData done [14:40:58]FM_MakeSignedData done [14:40:58]CreateOFDProtocolMessage [14:40:58]wFMCommunicate request_size=4 [14:40:58]MH_SAM_APDU [14:40:58]CAPDU: 80 11 00 00 [14:40:58]Write to MH i2c: E2 08 00 0F 86 80 11 00 00 00 00 00 00 0F [14:40:58]Write i2c OK [14:40:58]MH_I2C_Read... [14:40:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:40:58]Read from MH i2c: E2 [14:40:58]MH_I2C_Read... [14:40:58]Read from MH i2c: E2 17 00 [14:40:58]MH_I2C_Read... [14:40:58]Read from MH i2c: E2 17 00 0F 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 5E [14:40:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:40:58]wFMCommunicate OK [14:40:58]CreateOFDProtocolMessage done [14:40:58]OFDSenderStorePacket 28702 [14:40:58]StoreOFDPacket docnum=28702 [14:40:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 82 C3 07 01 D5 CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 01 48 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1E 70 00 00 35 04 06 00 79 BA 9E D1 52 A1 48 B7 AA 82 CA E6 DD 78 [14:40:58]CheckFolder [14:40:58]dirname=/storage/ofd_packets [14:40:58]CheckFolder done [14:40:58]ProducePacketName [14:40:58]name=ofd_packets/00028702 [14:40:58]NVStorageSaveData ofd_packets/00028702 [14:40:58]File name is /storage/ofd_packets/00028702 [14:40:58]Write 301 bytes [14:40:58]NVStorageSaveData done [14:40:58]OFDSenderStorePacket done [14:40:58]KKMCreateOFDPacket done [14:40:58]NVStorageSaveData kkm_last_timestamp [14:40:58]File name is /storage/kkm_last_timestamp [14:40:58]Write 4 bytes [14:40:58]NVStorageSaveData done [14:40:58]ExternCall_PrintAddStr [14:40:58]wPrintStart [14:40:58]Write to MH i2c: 01 00 00 10 86 96 [14:40:58]Write i2c OK [14:40:58]MH_I2C_Read... [14:40:58]Read from MH i2c: 01 [14:40:58]MH_I2C_Read... [14:40:58]Read from MH i2c: 01 07 00 [14:40:58]MH_I2C_Read... [14:40:58]Read from MH i2c: 01 07 00 10 86 00 00 00 00 00 FF 0F AB [14:40:58]RasterBufferAndPrint [14:40:58]line Счет N : (1)347035 [14:40:58]line ИНН: 02508201610067 [14:40:58]line Контрольно-Кассовый Чек [14:40:58]line ПРОДАЖА [14:40:58]line ТРК (МРК, ГНК) : 13 [14:40:58]line Товар: 2710124130 [14:40:58]line Аи-92-К-5 [14:40:58]line 7.780 * 64.30 [14:40:58]line = 500.25 [14:40:58]line НДС 12% НСП 1% [14:40:58]line > о реализуемом товаре [14:40:58]line ОКРУГЛЕНИЕ: -0.25 [14:40:58]line ИТОГО: 500.00 [14:40:58]line Внесено: 500.00 [14:40:58]line СДАЧА: 0.00 [14:40:58]line НСП 1% : 4.43 [14:40:58]line НДС 12% : 53.12 [14:40:58]line Наличными: 500.00 [14:40:58]line Безнал.: 0.00 [14:40:58]line Место: АЗС № 108 "Партнер Нефть" [14:40:58]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [14:40:58]line СНО: Общий режим [14:40:58]line Чек 151 12.04.2024 14:41 [14:40:58]line Смена: 113 ФФД: 1.0 [14:40:58]line ЗНМ: 0300000027 [14:40:58]line РНМ: 0000138879044617 [14:40:58]line Версия ККМ: 001 [14:40:58]line ФМ: 0000000000963154 [14:40:58]line ФД: 28702 [14:40:58]line ФПД: 133842435396257 [14:40:58]line 1/tax-web-control/client/api/v1/ticket?date=20240412T144105&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28702&fm=133842435396257&tin=02508201610067®Number=0000138879044617&sum=50000 [14:40:58]OFD Sender: Processing packet 28702 [packets to send 8, broken 7] [14:40:58]ProducePacketName [14:40:58]name=ofd_packets/00028702 [14:40:58]OFD Sender: To server: pG, [14:40:58]CommunicateWithHost lk.salyk.kg:30040 [14:40:58]ConnectInit lk.salyk.kg [14:40:58]written 0, free lines is 4095 [14:40:58]Connected sock=7 [14:40:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 82 C3 07 01 D5 CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 01 48 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1E 70 00 00 35 04 06 00 79 BA 9E D1 52 A1 48 B7 AA 82 CA E6 DD 78 [14:40:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 A2 9E 47 00 C0 C9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1E 70 00 00 F4 03 04 00 AA F2 18 66 B6 04 01 00 00 F9 AB B4 6F 6E BF 35 04 [14:40:58]CommunicateWithHost err = 0 [14:40:58]CheckOFDResponse [14:40:58]1017 (14) - 77093643461234 [14:40:58]1041 (16) - 0000000000963154 [14:40:58]1040 (4) - 28702 [14:40:58]1012 (4) - 12.04.2024 08:36 [14:40:58]1206 (1) - 0 [14:40:58]OFD Sender: Remove packet 28702 [14:40:58]ProducePacketName [14:40:58]name=ofd_packets/00028702 [14:40:58]NVStorageDeleteData [14:40:58]Write to MH i2c: 01 00 00 3A 86 C0 [14:40:58]Write i2c OK [14:40:58]MH_I2C_Read... [14:40:58]Read from MH i2c: 01 [14:40:58]MH_I2C_Read... [14:40:58]Read from MH i2c: 01 07 00 [14:40:58]MH_I2C_Read... [14:40:58]Read from MH i2c: 01 07 00 3A 86 00 00 00 00 00 BB 0C 8E [14:40:58]RasterBufferAndPrint [14:40:58]line [14:40:58]line [14:40:58]line [14:40:58]line [14:40:58]line [14:40:58]written 0, free lines is 3265 [14:40:58]MH_Cut [14:40:58]Write to MH i2c: D1 01 00 41 86 01 99 [14:40:58]Write i2c OK [14:40:58]MH_I2C_Read... [14:40:58]Read from MH i2c: D1 [14:40:58]MH_I2C_Read... [14:40:58]Read from MH i2c: D1 01 00 [14:40:58]MH_I2C_Read... [14:40:58]Read from MH i2c: D1 01 00 41 86 00 98 [14:40:58]Write to MH i2c: 01 00 00 42 86 C8 [14:40:58]Write i2c OK [14:40:58]MH_I2C_Read... [14:40:59]OFD Sender: No OFD packet to send [14:40:59]*** Cut start [14:40:59]*** Partial cut [14:40:59]*** CUTSNS_PIN = 1 [14:40:59]*** CUTSNS_PIN = 0 [14:41:00]*** Brake cut motor [14:41:00]Read from MH i2c: 01 [14:41:00]MH_I2C_Read... [14:41:00]*** Stop cut motor [14:41:00]*** Cut end [14:41:00]Read from MH i2c: 01 07 00 [14:41:00]MH_I2C_Read... [14:41:00]Read from MH i2c: 01 07 00 42 86 00 00 00 00 00 FF 0F DD [14:41:00]process_action close_receipt done [14:41:00]requested_data is exist [14:41:00]produce_requested_data [14:41:00]requested_item fm.sn is exist - process it [14:41:00]wFMCommunicate request_size=4 [14:41:00]MH_SAM_APDU [14:41:00]CAPDU: 80 11 00 00 [14:41:00]Write to MH i2c: E2 08 00 43 86 80 11 00 00 00 00 00 00 43 [14:41:00]Write i2c OK [14:41:00]MH_I2C_Read... [14:41:00]Read from MH i2c: E2 [14:41:00]MH_I2C_Read... [14:41:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:41:00]Read from MH i2c: E2 17 00 [14:41:00]MH_I2C_Read... [14:41:00]Read from MH i2c: E2 17 00 43 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 92 [14:41:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:41:00]wFMCommunicate OK [14:41:00]requested_item fd.num is exist - process it [14:41:00]SAM_PROTO_GetFieldsCounters [14:41:00]wFMCommunicate request_size=4 [14:41:00]MH_SAM_APDU [14:41:00]CAPDU: 80 13 00 00 [14:41:00]Write to MH i2c: E2 08 00 44 86 80 13 00 00 00 00 00 00 46 [14:41:00]Write i2c OK [14:41:00]MH_I2C_Read... [14:41:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:41:00]Read from MH i2c: E2 [14:41:00]MH_I2C_Read... [14:41:00]Read from MH i2c: E2 62 00 [14:41:00]MH_I2C_Read... [14:41:00]Read from MH i2c: E2 62 00 44 86 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 1E 70 00 00 0E 04 04 00 71 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 48 [14:41:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 1E 70 00 00 0E 04 04 00 71 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:41:00]wFMCommunicate OK [14:41:00]SAM_PROTO_GetFieldsCounters done [14:41:00]requested_item shift.num is exist - process it [14:41:00]requested_item shift.opened is exist - process it [14:41:00]req_shift_opened [14:41:00]FM_GetShiftState [14:41:00]SAM_PROTO_GetShiftState [14:41:00]wFMCommunicate request_size=4 [14:41:00]MH_SAM_APDU [14:41:00]CAPDU: 80 13 01 00 [14:41:00]Write to MH i2c: E2 08 00 45 86 80 13 01 00 00 00 00 00 48 [14:41:00]Write i2c OK [14:41:00]MH_I2C_Read... [14:41:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:41:00]Read from MH i2c: E2 [14:41:00]MH_I2C_Read... [14:41:00]Read from MH i2c: E2 0E 00 [14:41:00]MH_I2C_Read... [14:41:00]Read from MH i2c: E2 0E 00 45 86 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 59 [14:41:00]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [14:41:00]wFMCommunicate OK [14:41:00]SAM_PROTO_GetShiftState done [14:41:00]FM_GetShiftState done [14:41:00]req_shift_opened done [14:41:00]requested_item shift.open_date is exist - process it [14:41:00]req_shift_open_date [14:41:00]req_shift_open_date done [14:41:00]produce_requested_data done [14:41:00]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28702,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [14:41:00]process_action_free close_receipt [14:41:00]json_value_free [14:41:00]json_value_free done [14:41:00]process_json_proto returns [14:41:00]Send response to host [14:41:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28702,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [14:41:00]free response buf [14:41:00]execute_script done [14:41:00]execute_script returns [14:41:00]free content buf [14:41:00]Sock 5.Close socket [14:41:00]Sock 5.Thread stoped [14:41:04]OFD Sender: No OFD packet to send [14:41:09]OFD Sender: No OFD packet to send [14:41:14]OFD Sender: No OFD packet to send [14:41:19]OFD Sender: No OFD packet to send [14:41:24]OFD Sender: No OFD packet to send [14:41:29]OFD Sender: No OFD packet to send [14:41:34]OFD Sender: No OFD packet to send [14:41:39]OFD Sender: No OFD packet to send [14:41:44]OFD Sender: No OFD packet to send [14:41:49]OFD Sender: No OFD packet to send [14:41:54]OFD Sender: No OFD packet to send [14:41:59]OFD Sender: No OFD packet to send [14:42:04]OFD Sender: No OFD packet to send [14:42:09]OFD Sender: No OFD packet to send [14:42:14]OFD Sender: No OFD packet to send [14:42:19]OFD Sender: No OFD packet to send [14:42:24]OFD Sender: No OFD packet to send [14:42:29]OFD Sender: No OFD packet to send [14:42:34]OFD Sender: No OFD packet to send [14:42:39]OFD Sender: No OFD packet to send [14:42:44]OFD Sender: No OFD packet to send [14:42:49]OFD Sender: No OFD packet to send [14:42:54]OFD Sender: No OFD packet to send [14:42:59]OFD Sender: No OFD packet to send [14:43:04]OFD Sender: No OFD packet to send [14:43:09]OFD Sender: No OFD packet to send [14:43:14]OFD Sender: No OFD packet to send [14:43:19]OFD Sender: No OFD packet to send [14:43:24]OFD Sender: No OFD packet to send [14:43:29]OFD Sender: No OFD packet to send [14:43:34]OFD Sender: No OFD packet to send [14:43:39]OFD Sender: No OFD packet to send [14:43:44]OFD Sender: No OFD packet to send [14:43:49]OFD Sender: No OFD packet to send [14:43:54]OFD Sender: No OFD packet to send [14:43:59]OFD Sender: No OFD packet to send [14:44:04]OFD Sender: No OFD packet to send [14:44:09]OFD Sender: No OFD packet to send [14:44:14]OFD Sender: No OFD packet to send [14:44:19]OFD Sender: No OFD packet to send [14:44:24]OFD Sender: No OFD packet to send [14:44:29]OFD Sender: No OFD packet to send [14:44:34]OFD Sender: No OFD packet to send [14:44:39]OFD Sender: No OFD packet to send [14:44:44]OFD Sender: No OFD packet to send [14:44:49]OFD Sender: No OFD packet to send [14:44:54]OFD Sender: No OFD packet to send [14:44:59]OFD Sender: No OFD packet to send [14:45:04]OFD Sender: No OFD packet to send [14:45:09]OFD Sender: No OFD packet to send [14:45:14]OFD Sender: No OFD packet to send [14:45:19]accept exits with 6 [14:45:19]New connection [14:45:19]New thread 3066498404 created [14:45:19]Thread 3066641764 joined [14:45:19]Waiting for new connection... [14:45:19] Sock 6.Parse request [14:45:19]Sock 6.Check first char [14:45:19]Sock 6.First char is OK [14:45:19]request: POST /json_proto HTTP/1.0 [14:45:19]Method: POST [14:45:19]URL: /json_proto [14:45:19]Method is POST - this is cgi request [14:45:19]url: /json_proto [14:45:19]query_string will be loaded in cgi processing [14:45:19]execute_cgi json_proto POST (null) [14:45:19]execute_cgi path=json_proto method=POST [14:45:19]POST find Content-Length [14:45:19]Host: 172.17.33.3:8080 [14:45:19]Content-Length: 678 [14:45:19]Content-Type: application/json [14:45:19] [14:45:19]POST finish read [14:45:19]Found Content-Length = 678 [14:45:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347036", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 12.450, "sum" : 800.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:45:19]execute_script... [14:45: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)347036", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 12.450, "sum" : 800.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:45:19]POST & json_proto [14:45:19]process_json_proto [14:45:19]json parsed OK: [14:45:19]protocol is kg_v1.0 [14:45:19]action value=close_receipt [14:45:19]process_action close_receipt [14:45:19]cmd_close_receipt [14:45:19]MH_GetDate [14:45:19]Write to MH i2c: F0 00 00 46 86 BB [14:45:19]Write i2c OK [14:45:19]MH_I2C_Read... [14:45:19]Read from MH i2c: F0 [14:45:19]MH_I2C_Read... [14:45:19]Read from MH i2c: F0 09 00 [14:45:19]MH_I2C_Read... [14:45:19]Read from MH i2c: F0 09 00 46 86 00 07 49 19 66 23 5B 8F 65 05 [14:45:19]GetLastDocTimeStamp 1712932865 [14:45:19]current date 1712933127 [14:45:19]FM_GetShiftState [14:45:19]SAM_PROTO_GetShiftState [14:45:19]wFMCommunicate request_size=4 [14:45:19]MH_SAM_APDU [14:45:19]CAPDU: 80 13 01 00 [14:45:19]Write to MH i2c: E2 08 00 47 86 80 13 01 00 00 00 00 00 4A [14:45:19]Write i2c OK [14:45:19]MH_I2C_Read... [14:45:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:45:19]Read from MH i2c: E2 [14:45:19]MH_I2C_Read... [14:45:19]Read from MH i2c: E2 0E 00 [14:45:19]MH_I2C_Read... [14:45:19]Read from MH i2c: E2 0E 00 47 86 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 5B [14:45:19]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [14:45:19]wFMCommunicate OK [14:45:19]SAM_PROTO_GetShiftState done [14:45:19]FM_GetShiftState done [14:45:19]opened in 1712881416 [14:45:19]opened+sec_in_day 1712967816 [14:45:19]quantity*price = 80053 [14:45:19]sum+1 = 80055 [14:45:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 85.01 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 152 12.04.2024 14:45 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28703 ФПД: 174583197949529 1/tax-web-control/client/api/v1/ticket?date=20240412T144528&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28703&fm=174583197949529&tin=02508201610067®Number=0000138879044617&sum=80000 [14:45:20]StoreToDocumentArchive [14:45:20]shift 113 fd 28703 [14:45:20]save to /storage/0113/doc_00028703 [14:45:20]save last doc name /storage/0113/doc_00028703 to /storage/kkm_last_doc_name [14:45:20]save OK [14:45:20]Clear old archive folders... [14:45:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:45:20]tlvbuf is 01BB4780 [14:45:20]SAM_PROTO_ClearQueue [14:45:20]wFMCommunicate request_size=4 [14:45:20]MH_SAM_APDU [14:45:20]CAPDU: 80 09 00 00 [14:45:20]Write to MH i2c: E2 08 00 54 86 80 09 00 00 00 00 00 00 4C [14:45:20]Write i2c OK [14:45:20]MH_I2C_Read... [14:45:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:45:20]Read from MH i2c: E2 [14:45:20]MH_I2C_Read... [14:45:20]Read from MH i2c: E2 03 00 [14:45:20]MH_I2C_Read... [14:45:20]Read from MH i2c: E2 03 00 54 86 00 90 00 4E [14:45:20]RAPDU: 90 00 [14:45:20]wFMCommunicate OK [14:45:20]SAM_PROTO_ClearQueue done [14:45:20]KKMCreateOFDPacket [14:45:20]OFDProtocolAddRootSTLVToBuf [14:45:20]FM_MakeSignedData [14:45:20]FM_MakeSignedData [14:45:20]SAM_PROTO_SignData [14:45:20]wFMCommunicate request_size=4 [14:45:20]MH_SAM_APDU [14:45:20]CAPDU: 80 0D 01 02 [14:45:20]Write to MH i2c: E2 08 00 55 86 80 0D 01 02 00 00 00 00 54 [14:45:20]Write i2c OK [14:45:20]MH_I2C_Read... [14:45:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:45:20]Read from MH i2c: E2 [14:45:20]MH_I2C_Read... [14:45:20]Read from MH i2c: E2 03 00 [14:45:20]MH_I2C_Read... [14:45:20]Read from MH i2c: E2 03 00 55 86 00 90 00 4F [14:45:20]RAPDU: 90 00 [14:45:20]wFMCommunicate OK [14:45:20]wFMCommunicate request_size=255 [14:45:20]MH_SAM_APDU [14:45:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 30 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 B6 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 08 49 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1F 70 00 00 35 04 06 00 9E [14:45:20]Write to MH i2c: E2 02 01 56 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 30 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 B6 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 08 49 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1F 70 00 00 35 04 06 00 9E 00 00 07 [14:45:20]Write i2c OK [14:45:20]MH_I2C_Read... [14:45:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:45:20]Read from MH i2c: E2 [14:45:20]MH_I2C_Read... [14:45:20]Read from MH i2c: E2 03 00 [14:45:20]MH_I2C_Read... [14:45:20]Read from MH i2c: E2 03 00 56 86 00 90 00 50 [14:45:20]RAPDU: 90 00 [14:45:20]wFMCommunicate OK [14:45:20]wFMCommunicate request_size=10 [14:45:20]MH_SAM_APDU [14:45:20]CAPDU: 80 0D 02 02 05 C8 51 7F 5E 59 [14:45:20]Write to MH i2c: E2 0D 00 57 86 80 0D 02 02 05 00 C8 51 7F 5E 59 00 00 B0 [14:45:20]Write i2c OK [14:45:20]MH_I2C_Read... [14:45:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:45:20]Read from MH i2c: E2 [14:45:20]MH_I2C_Read... [14:45:20]Read from MH i2c: E2 03 00 [14:45:20]MH_I2C_Read... [14:45:20]Read from MH i2c: E2 03 00 57 86 00 90 00 51 [14:45:20]RAPDU: 90 00 [14:45:20]wFMCommunicate OK [14:45:20]wFMCommunicate request_size=4 [14:45:20]MH_SAM_APDU [14:45:20]CAPDU: 80 0D 03 02 [14:45:20]Write to MH i2c: E2 08 00 58 86 80 0D 03 02 00 00 00 00 59 [14:45:20]Write i2c OK [14:45:20]MH_I2C_Read... [14:45:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:45:21]Read from MH i2c: E2 [14:45:21]MH_I2C_Read... [14:45:21]Read from MH i2c: E2 0B 00 [14:45:21]MH_I2C_Read... [14:45:21]Read from MH i2c: E2 0B 00 58 86 00 D6 93 17 0D 43 EF 65 4E 90 00 CC [14:45:21]RAPDU: D6 93 17 0D 43 EF 65 4E 90 00 [14:45:21]wFMCommunicate OK [14:45:21]SAM_PROTO_SignData done [14:45:21]FM_MakeSignedData done [14:45:21]CreateOFDProtocolMessage [14:45:21]wFMCommunicate request_size=4 [14:45:21]MH_SAM_APDU [14:45:21]CAPDU: 80 11 00 00 [14:45:21]Write to MH i2c: E2 08 00 59 86 80 11 00 00 00 00 00 00 59 [14:45:21]Write i2c OK [14:45:21]MH_I2C_Read... [14:45:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:45:21]Read from MH i2c: E2 [14:45:21]MH_I2C_Read... [14:45:21]Read from MH i2c: E2 17 00 [14:45:21]MH_I2C_Read... [14:45:21]Read from MH i2c: E2 17 00 59 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 A8 [14:45:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:45:21]wFMCommunicate OK [14:45:21]CreateOFDProtocolMessage done [14:45:21]OFDSenderStorePacket 28703 [14:45:21]StoreOFDPacket docnum=28703 [14:45:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 41 09 07 01 A6 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 30 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 B6 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 08 49 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1F 70 00 00 35 04 06 00 9E C8 51 7F 5E 59 D6 93 17 0D 43 EF 65 4E [14:45:21]CheckFolder [14:45:21]dirname=/storage/ofd_packets [14:45:21]CheckFolder done [14:45:21]ProducePacketName [14:45:21]name=ofd_packets/00028703 [14:45:21]NVStorageSaveData ofd_packets/00028703 [14:45:21]File name is /storage/ofd_packets/00028703 [14:45:21]Write 301 bytes [14:45:21]NVStorageSaveData done [14:45:21]OFDSenderStorePacket done [14:45:21]KKMCreateOFDPacket done [14:45:21]NVStorageSaveData kkm_last_timestamp [14:45:21]File name is /storage/kkm_last_timestamp [14:45:21]Write 4 bytes [14:45:21]NVStorageSaveData done [14:45:21]ExternCall_PrintAddStr [14:45:21]wPrintStart [14:45:21]Write to MH i2c: 01 00 00 5A 86 E0 [14:45:21]Write i2c OK [14:45:21]MH_I2C_Read... [14:45:21]Read from MH i2c: 01 [14:45:21]MH_I2C_Read... [14:45:21]Read from MH i2c: 01 07 00 [14:45:21]MH_I2C_Read... [14:45:21]Read from MH i2c: 01 07 00 5A 86 00 00 00 00 00 FF 0F F5 [14:45:21]RasterBufferAndPrint [14:45:21]line Счет N : (1)347036 [14:45:21]line ИНН: 02508201610067 [14:45:21]line Контрольно-Кассовый Чек [14:45:21]line ПРОДАЖА [14:45:21]line ТРК (МРК, ГНК) : 23 [14:45:21]line Товар: 2710124130 [14:45:21]line Аи-92-К-5 [14:45:21]line 12.450 * 64.30 [14:45:21]line = 800.54 [14:45:21]line НДС 12% НСП 1% [14:45:21]line > о реализуемом товаре [14:45:21]line ОКРУГЛЕНИЕ: -0.54 [14:45:21]line ИТОГО: 800.00 [14:45:21]line Внесено: 800.00 [14:45:21]line СДАЧА: 0.00 [14:45:21]line НСП 1% : 7.08 [14:45:21]line НДС 12% : 85.01 [14:45:21]line Наличными: 800.00 [14:45:21]line Безнал.: 0.00 [14:45:21]line Место: АЗС № 108 "Партнер Нефть" [14:45:21]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [14:45:21]line СНО: Общий режим [14:45:21]line Чек 152 12.04.2024 14:45 [14:45:21]line Смена: 113 ФФД: 1.0 [14:45:21]line ЗНМ: 0300000027 [14:45:21]line РНМ: 0000138879044617 [14:45:21]line Версия ККМ: 001 [14:45:21]line ФМ: 0000000000963154 [14:45:21]line ФД: 28703 [14:45:21]line ФПД: 174583197949529 [14:45:21]line 1/tax-web-control/client/api/v1/ticket?date=20240412T144528&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28703&fm=174583197949529&tin=02508201610067®Number=0000138879044617&sum=80000 [14:45:21]OFD Sender: Processing packet 28703 [packets to send 8, broken 7] [14:45:21]ProducePacketName [14:45:21]name=ofd_packets/00028703 [14:45:21]OFD Sender: To server: pG, [14:45:21]CommunicateWithHost lk.salyk.kg:30040 [14:45:21]ConnectInit lk.salyk.kg [14:45:21]written 0, free lines is 4095 [14:45:21]Connected sock=7 [14:45:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 41 09 07 01 A6 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 30 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 B6 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 08 49 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1F 70 00 00 35 04 06 00 9E C8 51 7F 5E 59 D6 93 17 0D 43 EF 65 4E [14:45:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 34 94 47 00 C0 FA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1F 70 00 00 F4 03 04 00 B1 F3 18 66 B6 04 01 00 00 35 6F 5F 08 5C D9 13 4A [14:45:21]CommunicateWithHost err = 0 [14:45:21]CheckOFDResponse [14:45:21]1017 (14) - 77093643461234 [14:45:21]1041 (16) - 0000000000963154 [14:45:21]1040 (4) - 28703 [14:45:21]1012 (4) - 12.04.2024 08:41 [14:45:21]1206 (1) - 0 [14:45:21]OFD Sender: Remove packet 28703 [14:45:21]ProducePacketName [14:45:21]name=ofd_packets/00028703 [14:45:21]NVStorageDeleteData [14:45:21]Write to MH i2c: 01 00 00 84 86 0A [14:45:21]Write i2c OK [14:45:21]MH_I2C_Read... [14:45:21]Read from MH i2c: 01 [14:45:21]MH_I2C_Read... [14:45:21]Read from MH i2c: 01 07 00 [14:45:21]MH_I2C_Read... [14:45:21]Read from MH i2c: 01 07 00 84 86 00 00 00 00 00 D5 0C F2 [14:45:21]RasterBufferAndPrint [14:45:21]line [14:45:21]line [14:45:21]line [14:45:21]line [14:45:21]line [14:45:21]written 0, free lines is 3292 [14:45:21]MH_Cut [14:45:21]Write to MH i2c: D1 01 00 8B 86 01 E3 [14:45:21]Write i2c OK [14:45:21]MH_I2C_Read... [14:45:21]Read from MH i2c: D1 [14:45:21]MH_I2C_Read... [14:45:21]Read from MH i2c: D1 01 00 [14:45:21]MH_I2C_Read... [14:45:21]Read from MH i2c: D1 01 00 8B 86 00 E2 [14:45:21]Write to MH i2c: 01 00 00 8C 86 12 [14:45:21]Write i2c OK [14:45:21]MH_I2C_Read... [14:45:22]OFD Sender: No OFD packet to send [14:45:22]*** Cut start [14:45:22]*** Partial cut [14:45:22]*** CUTSNS_PIN = 1 [14:45:22]*** CUTSNS_PIN = 0 [14:45:22]*** Brake cut motor [14:45:23]Read from MH i2c: 01 [14:45:23]MH_I2C_Read... [14:45:23]*** Stop cut motor [14:45:23]*** Cut end [14:45:23]Read from MH i2c: 01 07 00 [14:45:23]MH_I2C_Read... [14:45:23]Read from MH i2c: 01 07 00 8C 86 00 00 00 00 00 FF 0F 27 [14:45:23]process_action close_receipt done [14:45:23]requested_data is exist [14:45:23]produce_requested_data [14:45:23]requested_item fm.sn is exist - process it [14:45:23]wFMCommunicate request_size=4 [14:45:23]MH_SAM_APDU [14:45:23]CAPDU: 80 11 00 00 [14:45:23]Write to MH i2c: E2 08 00 8D 86 80 11 00 00 00 00 00 00 8D [14:45:23]Write i2c OK [14:45:23]MH_I2C_Read... [14:45:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:45:23]Read from MH i2c: E2 [14:45:23]MH_I2C_Read... [14:45:23]Read from MH i2c: E2 17 00 [14:45:23]MH_I2C_Read... [14:45:23]Read from MH i2c: E2 17 00 8D 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 DC [14:45:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:45:23]wFMCommunicate OK [14:45:23]requested_item fd.num is exist - process it [14:45:23]SAM_PROTO_GetFieldsCounters [14:45:23]wFMCommunicate request_size=4 [14:45:23]MH_SAM_APDU [14:45:23]CAPDU: 80 13 00 00 [14:45:23]Write to MH i2c: E2 08 00 8E 86 80 13 00 00 00 00 00 00 90 [14:45:23]Write i2c OK [14:45:23]MH_I2C_Read... [14:45:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:45:23]Read from MH i2c: E2 [14:45:23]MH_I2C_Read... [14:45:23]Read from MH i2c: E2 62 00 [14:45:23]MH_I2C_Read... [14:45:23]Read from MH i2c: E2 62 00 8E 86 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 1F 70 00 00 0E 04 04 00 71 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 96 [14:45:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 1F 70 00 00 0E 04 04 00 71 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:45:23]wFMCommunicate OK [14:45:23]SAM_PROTO_GetFieldsCounters done [14:45:23]requested_item shift.num is exist - process it [14:45:23]requested_item shift.opened is exist - process it [14:45:23]req_shift_opened [14:45:23]FM_GetShiftState [14:45:23]SAM_PROTO_GetShiftState [14:45:23]wFMCommunicate request_size=4 [14:45:23]MH_SAM_APDU [14:45:23]CAPDU: 80 13 01 00 [14:45:23]Write to MH i2c: E2 08 00 8F 86 80 13 01 00 00 00 00 00 92 [14:45:23]Write i2c OK [14:45:23]MH_I2C_Read... [14:45:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:45:23]Read from MH i2c: E2 [14:45:23]MH_I2C_Read... [14:45:23]Read from MH i2c: E2 0E 00 [14:45:23]MH_I2C_Read... [14:45:23]Read from MH i2c: E2 0E 00 8F 86 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 A3 [14:45:23]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [14:45:23]wFMCommunicate OK [14:45:23]SAM_PROTO_GetShiftState done [14:45:23]FM_GetShiftState done [14:45:23]req_shift_opened done [14:45:23]requested_item shift.open_date is exist - process it [14:45:23]req_shift_open_date [14:45:23]req_shift_open_date done [14:45:23]produce_requested_data done [14:45:23]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28703,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [14:45:23]process_action_free close_receipt [14:45:23]json_value_free [14:45:23]json_value_free done [14:45:23]process_json_proto returns [14:45:23]Send response to host [14:45:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28703,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [14:45:23]free response buf [14:45:23]execute_script done [14:45:23]execute_script returns [14:45:23]free content buf [14:45:23]Sock 6.Close socket [14:45:23]Sock 6.Thread stoped [14:45:23]accept exits with 5 [14:45:23]New connection [14:45:23]New thread 3066641764 created [14:45:23]Thread 3066498404 joined [14:45:23]Waiting for new connection... [14:45:23] Sock 5.Parse request [14:45:23]Sock 5.Check first char [14:45:23]Sock 5.First char is OK [14:45:23]request: POST /json_proto HTTP/1.0 [14:45:23]Method: POST [14:45:23]URL: /json_proto [14:45:23]Method is POST - this is cgi request [14:45:23]url: /json_proto [14:45:23]query_string will be loaded in cgi processing [14:45:23]execute_cgi json_proto POST (null) [14:45:23]execute_cgi path=json_proto method=POST [14:45:23]POST find Content-Length [14:45:23]Host: 172.17.33.3:8080 [14:45:23]Content-Length: 678 [14:45:23]Content-Type: application/json [14:45:23] [14:45:23]POST finish read [14:45:23]Found Content-Length = 678 [14:45:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347037", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 10.890, "sum" : 700.23, "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:45:23]execute_script... [14:45:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347037", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 10.890, "sum" : 700.23, "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:45:23]POST & json_proto [14:45:23]process_json_proto [14:45:23]json parsed OK: [14:45:23]protocol is kg_v1.0 [14:45:23]action value=close_receipt [14:45:23]process_action close_receipt [14:45:23]cmd_close_receipt [14:45:23]MH_GetDate [14:45:23]Write to MH i2c: F0 00 00 90 86 05 [14:45:23]Write i2c OK [14:45:23]MH_I2C_Read... [14:45:23]Read from MH i2c: F0 [14:45:23]MH_I2C_Read... [14:45:23]Read from MH i2c: F0 09 00 [14:45:23]MH_I2C_Read... [14:45:23]Read from MH i2c: F0 09 00 90 86 00 0C 49 19 66 23 5B 8F 65 54 [14:45:23]GetLastDocTimeStamp 1712933128 [14:45:23]current date 1712933132 [14:45:23]FM_GetShiftState [14:45:23]SAM_PROTO_GetShiftState [14:45:23]wFMCommunicate request_size=4 [14:45:23]MH_SAM_APDU [14:45:23]CAPDU: 80 13 01 00 [14:45:23]Write to MH i2c: E2 08 00 91 86 80 13 01 00 00 00 00 00 94 [14:45:23]Write i2c OK [14:45:23]MH_I2C_Read... [14:45:23]Read from MH i2c: E2 [14:45:23]MH_I2C_Read... [14:45:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:45:23]Read from MH i2c: E2 0E 00 [14:45:23]MH_I2C_Read... [14:45:23]Read from MH i2c: E2 0E 00 91 86 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 A5 [14:45:23]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [14:45:23]wFMCommunicate OK [14:45:23]SAM_PROTO_GetShiftState done [14:45:23]FM_GetShiftState done [14:45:23]opened in 1712881416 [14:45:23]opened+sec_in_day 1712967816 [14:45:23]quantity*price = 70022 [14:45:23]sum+1 = 70024 [14:45:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.36 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 153 12.04.2024 14:45 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28704 ФПД: 256342532397001 1/tax-web-control/client/api/v1/ticket?date=20240412T144532&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28704&fm=256342532397001&tin=02508201610067®Number=0000138879044617&sum=70000 [14:45:25]StoreToDocumentArchive [14:45:25]shift 113 fd 28704 [14:45:25]save to /storage/0113/doc_00028704 [14:45:25]save last doc name /storage/0113/doc_00028704 to /storage/kkm_last_doc_name [14:45:25]save OK [14:45:25]Clear old archive folders... [14:45:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:45:25]tlvbuf is 01AFA9D0 [14:45:25]SAM_PROTO_ClearQueue [14:45:25]wFMCommunicate request_size=4 [14:45:25]MH_SAM_APDU [14:45:25]CAPDU: 80 09 00 00 [14:45:25]Write to MH i2c: E2 08 00 9E 86 80 09 00 00 00 00 00 00 96 [14:45:25]Write i2c OK [14:45:25]MH_I2C_Read... [14:45:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:45:25]Read from MH i2c: E2 [14:45:25]MH_I2C_Read... [14:45:25]Read from MH i2c: E2 03 00 [14:45:25]MH_I2C_Read... [14:45:25]Read from MH i2c: E2 03 00 9E 86 00 90 00 98 [14:45:25]RAPDU: 90 00 [14:45:25]wFMCommunicate OK [14:45:25]SAM_PROTO_ClearQueue done [14:45:25]KKMCreateOFDPacket [14:45:25]OFDProtocolAddRootSTLVToBuf [14:45:25]FM_MakeSignedData [14:45:25]FM_MakeSignedData [14:45:25]SAM_PROTO_SignData [14:45:25]wFMCommunicate request_size=4 [14:45:25]MH_SAM_APDU [14:45:25]CAPDU: 80 0D 01 02 [14:45:25]Write to MH i2c: E2 08 00 9F 86 80 0D 01 02 00 00 00 00 9E [14:45:25]Write i2c OK [14:45:25]MH_I2C_Read... [14:45:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:45:25]Read from MH i2c: E2 [14:45:25]MH_I2C_Read... [14:45:25]Read from MH i2c: E2 03 00 [14:45:25]MH_I2C_Read... [14:45:25]Read from MH i2c: E2 03 00 9F 86 00 90 00 99 [14:45:25]RAPDU: 90 00 [14:45:25]wFMCommunicate OK [14:45:25]wFMCommunicate request_size=255 [14:45:25]MH_SAM_APDU [14:45:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 2A 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 87 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 99 00 00 00 F4 03 04 00 0C 49 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 20 70 00 00 35 04 06 00 E9 [14:45:25]Write to MH i2c: E2 02 01 A0 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 2A 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 87 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 99 00 00 00 F4 03 04 00 0C 49 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 20 70 00 00 35 04 06 00 E9 00 00 3B [14:45:25]Write i2c OK [14:45:25]MH_I2C_Read... [14:45:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:45:25]Read from MH i2c: E2 [14:45:25]MH_I2C_Read... [14:45:25]Read from MH i2c: E2 03 00 [14:45:25]MH_I2C_Read... [14:45:25]Read from MH i2c: E2 03 00 A0 86 00 90 00 9A [14:45:25]RAPDU: 90 00 [14:45:25]wFMCommunicate OK [14:45:25]wFMCommunicate request_size=10 [14:45:25]MH_SAM_APDU [14:45:25]CAPDU: 80 0D 02 02 05 24 65 95 97 C9 [14:45:25]Write to MH i2c: E2 0D 00 A1 86 80 0D 02 02 05 00 24 65 95 97 C9 00 00 29 [14:45:25]Write i2c OK [14:45:25]MH_I2C_Read... [14:45:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:45:25]Read from MH i2c: E2 [14:45:25]MH_I2C_Read... [14:45:25]Read from MH i2c: E2 03 00 [14:45:25]MH_I2C_Read... [14:45:25]Read from MH i2c: E2 03 00 A1 86 00 90 00 9B [14:45:25]RAPDU: 90 00 [14:45:25]wFMCommunicate OK [14:45:25]wFMCommunicate request_size=4 [14:45:25]MH_SAM_APDU [14:45:25]CAPDU: 80 0D 03 02 [14:45:25]Write to MH i2c: E2 08 00 A2 86 80 0D 03 02 00 00 00 00 A3 [14:45:25]Write i2c OK [14:45:25]MH_I2C_Read... [14:45:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:45:25]Read from MH i2c: E2 [14:45:25]MH_I2C_Read... [14:45:25]Read from MH i2c: E2 0B 00 [14:45:25]MH_I2C_Read... [14:45:25]Read from MH i2c: E2 0B 00 A2 86 00 56 E8 07 36 85 76 F1 50 90 00 5B [14:45:25]RAPDU: 56 E8 07 36 85 76 F1 50 90 00 [14:45:25]wFMCommunicate OK [14:45:25]SAM_PROTO_SignData done [14:45:25]FM_MakeSignedData done [14:45:25]CreateOFDProtocolMessage [14:45:25]wFMCommunicate request_size=4 [14:45:25]MH_SAM_APDU [14:45:25]CAPDU: 80 11 00 00 [14:45:25]Write to MH i2c: E2 08 00 A3 86 80 11 00 00 00 00 00 00 A3 [14:45:25]Write i2c OK [14:45:25]MH_I2C_Read... [14:45:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:45:25]Read from MH i2c: E2 [14:45:25]MH_I2C_Read... [14:45:25]Read from MH i2c: E2 17 00 [14:45:25]MH_I2C_Read... [14:45:25]Read from MH i2c: E2 17 00 A3 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 F2 [14:45:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:45:25]wFMCommunicate OK [14:45:25]CreateOFDProtocolMessage done [14:45:25]OFDSenderStorePacket 28704 [14:45:25]StoreOFDPacket docnum=28704 [14:45:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 E8 96 07 01 E5 77 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 2A 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 87 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 99 00 00 00 F4 03 04 00 0C 49 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 20 70 00 00 35 04 06 00 E9 24 65 95 97 C9 56 E8 07 36 85 76 F1 50 [14:45:26]CheckFolder [14:45:26]dirname=/storage/ofd_packets [14:45:26]CheckFolder done [14:45:26]ProducePacketName [14:45:26]name=ofd_packets/00028704 [14:45:26]NVStorageSaveData ofd_packets/00028704 [14:45:26]File name is /storage/ofd_packets/00028704 [14:45:26]Write 301 bytes [14:45:26]NVStorageSaveData done [14:45:26]OFDSenderStorePacket done [14:45:26]KKMCreateOFDPacket done [14:45:26]NVStorageSaveData kkm_last_timestamp [14:45:26]File name is /storage/kkm_last_timestamp [14:45:26]Write 4 bytes [14:45:26]NVStorageSaveData done [14:45:26]ExternCall_PrintAddStr [14:45:26]wPrintStart [14:45:26]Write to MH i2c: 01 00 00 A4 86 2A [14:45:26]Write i2c OK [14:45:26]MH_I2C_Read... [14:45:26]Read from MH i2c: 01 [14:45:26]MH_I2C_Read... [14:45:26]Read from MH i2c: 01 07 00 [14:45:26]MH_I2C_Read... [14:45:26]Read from MH i2c: 01 07 00 A4 86 00 00 00 00 00 FF 0F 3F [14:45:26]RasterBufferAndPrint [14:45:26]line Счет N : (1)347037 [14:45:26]line ИНН: 02508201610067 [14:45:26]line Контрольно-Кассовый Чек [14:45:26]line ПРОДАЖА [14:45:26]line ТРК (МРК, ГНК) : 42 [14:45:26]line Товар: 2710124130 [14:45:26]line Аи-92-К-5 [14:45:26]line 10.890 * 64.30 [14:45:26]line = 700.23 [14:45:26]line НДС 12% НСП 1% [14:45:26]line > о реализуемом товаре [14:45:26]line ОКРУГЛЕНИЕ: -0.23 [14:45:26]line ИТОГО: 700.00 [14:45:26]line Внесено: 700.00 [14:45:26]line СДАЧА: 0.00 [14:45:26]line НСП 1% : 6.20 [14:45:26]line НДС 12% : 74.36 [14:45:26]line Наличными: 700.00 [14:45:26]line Безнал.: 0.00 [14:45:26]line Место: АЗС № 108 "Партнер Нефть" [14:45:26]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [14:45:26]line СНО: Общий режим [14:45:26]line Чек 153 12.04.2024 14:45 [14:45:26]line Смена: 113 ФФД: 1.0 [14:45:26]line ЗНМ: 0300000027 [14:45:26]line РНМ: 0000138879044617 [14:45:26]line Версия ККМ: 001 [14:45:26]line ФМ: 0000000000963154 [14:45:26]line ФД: 28704 [14:45:26]line ФПД: 256342532397001 [14:45:26]line 1/tax-web-control/client/api/v1/ticket?date=20240412T144532&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28704&fm=256342532397001&tin=02508201610067®Number=0000138879044617&sum=70000 [14:45:26]written 0, free lines is 4095 [14:45:26]OFD Sender: Processing packet 28704 [packets to send 8, broken 7] [14:45:26]ProducePacketName [14:45:26]name=ofd_packets/00028704 [14:45:26]OFD Sender: To server: pG, [14:45:26]CommunicateWithHost lk.salyk.kg:30040 [14:45:26]ConnectInit lk.salyk.kg [14:45:26]Connected sock=7 [14:45:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 E8 96 07 01 E5 77 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 2A 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 87 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 99 00 00 00 F4 03 04 00 0C 49 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 20 70 00 00 35 04 06 00 E9 24 65 95 97 C9 56 E8 07 36 85 76 F1 50 [14:45:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 C9 47 47 00 54 B8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 20 70 00 00 F4 03 04 00 B6 F3 18 66 B6 04 01 00 00 EE AC 43 28 A8 20 C1 65 [14:45:26]CommunicateWithHost err = 0 [14:45:26]CheckOFDResponse [14:45:26]1017 (14) - 77093643461234 [14:45:26]1041 (16) - 0000000000963154 [14:45:26]1040 (4) - 28704 [14:45:26]1012 (4) - 12.04.2024 08:41 [14:45:26]1206 (1) - 0 [14:45:26]OFD Sender: Remove packet 28704 [14:45:26]ProducePacketName [14:45:26]name=ofd_packets/00028704 [14:45:26]NVStorageDeleteData [14:45:26]Write to MH i2c: 01 00 00 CE 86 54 [14:45:26]Write i2c OK [14:45:26]MH_I2C_Read... [14:45:26]Read from MH i2c: 01 [14:45:26]MH_I2C_Read... [14:45:26]Read from MH i2c: 01 07 00 [14:45:26]MH_I2C_Read... [14:45:26]Read from MH i2c: 01 07 00 CE 86 00 00 00 00 00 D8 0C 3F [14:45:26]RasterBufferAndPrint [14:45:26]line [14:45:26]line [14:45:26]line [14:45:26]line [14:45:26]line [14:45:26]written 0, free lines is 3304 [14:45:26]MH_Cut [14:45:26]Write to MH i2c: D1 01 00 D5 86 01 2D [14:45:26]Write i2c OK [14:45:26]MH_I2C_Read... [14:45:26]Read from MH i2c: D1 [14:45:26]MH_I2C_Read... [14:45:26]Read from MH i2c: D1 01 00 [14:45:26]MH_I2C_Read... [14:45:26]Read from MH i2c: D1 01 00 D5 86 00 2C [14:45:26]Write to MH i2c: 01 00 00 D6 86 5C [14:45:26]Write i2c OK [14:45:26]MH_I2C_Read... [14:45:27]OFD Sender: No OFD packet to send [14:45:27]*** Cut start [14:45:27]*** Partial cut [14:45:27]*** CUTSNS_PIN = 1 [14:45:27]*** CUTSNS_PIN = 0 [14:45:27]*** Brake cut motor [14:45:28]Read from MH i2c: 01 [14:45:28]MH_I2C_Read... [14:45:28]*** Stop cut motor [14:45:28]*** Cut end [14:45:28]Read from MH i2c: 01 07 00 [14:45:28]MH_I2C_Read... [14:45:28]Read from MH i2c: 01 07 00 D6 86 00 00 00 00 00 FF 0F 71 [14:45:28]process_action close_receipt done [14:45:28]requested_data is exist [14:45:28]produce_requested_data [14:45:28]requested_item fm.sn is exist - process it [14:45:28]wFMCommunicate request_size=4 [14:45:28]MH_SAM_APDU [14:45:28]CAPDU: 80 11 00 00 [14:45:28]Write to MH i2c: E2 08 00 D7 86 80 11 00 00 00 00 00 00 D7 [14:45:28]Write i2c OK [14:45:28]MH_I2C_Read... [14:45:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:45:28]Read from MH i2c: E2 [14:45:28]MH_I2C_Read... [14:45:28]Read from MH i2c: E2 17 00 [14:45:28]MH_I2C_Read... [14:45:28]Read from MH i2c: E2 17 00 D7 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 26 [14:45:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:45:28]wFMCommunicate OK [14:45:28]requested_item fd.num is exist - process it [14:45:28]SAM_PROTO_GetFieldsCounters [14:45:28]wFMCommunicate request_size=4 [14:45:28]MH_SAM_APDU [14:45:28]CAPDU: 80 13 00 00 [14:45:28]Write to MH i2c: E2 08 00 D8 86 80 13 00 00 00 00 00 00 DA [14:45:28]Write i2c OK [14:45:28]MH_I2C_Read... [14:45:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:45:28]Read from MH i2c: E2 [14:45:28]MH_I2C_Read... [14:45:28]Read from MH i2c: E2 62 00 [14:45:28]MH_I2C_Read... [14:45:28]Read from MH i2c: E2 62 00 D8 86 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 20 70 00 00 0E 04 04 00 71 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 E4 [14:45:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 20 70 00 00 0E 04 04 00 71 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:45:28]wFMCommunicate OK [14:45:28]SAM_PROTO_GetFieldsCounters done [14:45:28]requested_item shift.num is exist - process it [14:45:28]requested_item shift.opened is exist - process it [14:45:28]req_shift_opened [14:45:28]FM_GetShiftState [14:45:28]SAM_PROTO_GetShiftState [14:45:28]wFMCommunicate request_size=4 [14:45:28]MH_SAM_APDU [14:45:28]CAPDU: 80 13 01 00 [14:45:28]Write to MH i2c: E2 08 00 D9 86 80 13 01 00 00 00 00 00 DC [14:45:28]Write i2c OK [14:45:28]MH_I2C_Read... [14:45:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:45:28]Read from MH i2c: E2 [14:45:28]MH_I2C_Read... [14:45:28]Read from MH i2c: E2 0E 00 [14:45:28]MH_I2C_Read... [14:45:28]Read from MH i2c: E2 0E 00 D9 86 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 ED [14:45:28]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [14:45:28]wFMCommunicate OK [14:45:28]SAM_PROTO_GetShiftState done [14:45:28]FM_GetShiftState done [14:45:28]req_shift_opened done [14:45:28]requested_item shift.open_date is exist - process it [14:45:28]req_shift_open_date [14:45:28]req_shift_open_date done [14:45:28]produce_requested_data done [14:45:28]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28704,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [14:45:28]process_action_free close_receipt [14:45:28]json_value_free [14:45:28]json_value_free done [14:45:28]process_json_proto returns [14:45:28]Send response to host [14:45:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28704,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [14:45:28]free response buf [14:45:28]execute_script done [14:45:28]execute_script returns [14:45:28]free content buf [14:45:28]Sock 5.Close socket [14:45:28]Sock 5.Thread stoped [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:06]accept exits with 6 [14:48:06]New connection [14:48:06]New thread 3066498404 created [14:48:06]Thread 3066641764 joined [14:48:06]Waiting for new connection... [14:48:06] Sock 6.Parse request [14:48:06]Sock 6.Check first char [14:48:06]Sock 6.First char is OK [14:48:06]request: POST /json_proto HTTP/1.0 [14:48:06]Method: POST [14:48:06]URL: /json_proto [14:48:06]Method is POST - this is cgi request [14:48:06]url: /json_proto [14:48:06]query_string will be loaded in cgi processing [14:48:06]execute_cgi json_proto POST (null) [14:48:06]execute_cgi path=json_proto method=POST [14:48:06]POST find Content-Length [14:48:06]Host: 172.17.33.3:8080 [14:48:06]Content-Length: 677 [14:48:06]Content-Type: application/json [14:48:06] [14:48:06]POST finish read [14:48:06]Found Content-Length = 677 [14:48:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347039", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 7.780, "sum" : 500.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:48:06]execute_script... [14:48: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)347039", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 7.780, "sum" : 500.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:48:06]POST & json_proto [14:48:06]process_json_proto [14:48:06]json parsed OK: [14:48:06]protocol is kg_v1.0 [14:48:06]action value=close_receipt [14:48:06]process_action close_receipt [14:48:06]cmd_close_receipt [14:48:06]MH_GetDate [14:48:06]Write to MH i2c: F0 00 00 DA 86 4F [14:48:06]Write i2c OK [14:48:06]MH_I2C_Read... [14:48:06]Read from MH i2c: F0 [14:48:06]MH_I2C_Read... [14:48:06]Read from MH i2c: F0 09 00 [14:48:06]MH_I2C_Read... [14:48:06]Read from MH i2c: F0 09 00 DA 86 00 AE 49 19 66 23 5B 8F 65 40 [14:48:06]GetLastDocTimeStamp 1712933132 [14:48:06]current date 1712933294 [14:48:06]FM_GetShiftState [14:48:06]SAM_PROTO_GetShiftState [14:48:06]wFMCommunicate request_size=4 [14:48:06]MH_SAM_APDU [14:48:06]CAPDU: 80 13 01 00 [14:48:06]Write to MH i2c: E2 08 00 DB 86 80 13 01 00 00 00 00 00 DE [14:48:06]Write i2c OK [14:48:06]MH_I2C_Read... [14:48:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:48:06]Read from MH i2c: E2 [14:48:06]MH_I2C_Read... [14:48:06]Read from MH i2c: E2 0E 00 [14:48:06]MH_I2C_Read... [14:48:06]Read from MH i2c: E2 0E 00 DB 86 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 EF [14:48:06]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [14:48:06]wFMCommunicate OK [14:48:06]SAM_PROTO_GetShiftState done [14:48:06]FM_GetShiftState done [14:48:06]opened in 1712881416 [14:48:06]opened+sec_in_day 1712967816 [14:48:06]quantity*price = 50025 [14:48:06]sum+1 = 50026 [14:48:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 154 12.04.2024 14:48 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28705 ФПД: 279334345407806 1/tax-web-control/client/api/v1/ticket?date=20240412T144814&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28705&fm=279334345407806&tin=02508201610067®Number=0000138879044617&sum=50000 [14:48:07]StoreToDocumentArchive [14:48:07]shift 113 fd 28705 [14:48:07]save to /storage/0113/doc_00028705 [14:48:07]save last doc name /storage/0113/doc_00028705 to /storage/kkm_last_doc_name [14:48:07]save OK [14:48:07]Clear old archive folders... [14:48:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:48:07]tlvbuf is 01AEF110 [14:48:07]SAM_PROTO_ClearQueue [14:48:07]wFMCommunicate request_size=4 [14:48:07]MH_SAM_APDU [14:48:07]CAPDU: 80 09 00 00 [14:48:07]Write to MH i2c: E2 08 00 E8 86 80 09 00 00 00 00 00 00 E0 [14:48:07]Write i2c OK [14:48:07]MH_I2C_Read... [14:48:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:48:07]Read from MH i2c: E2 [14:48:07]MH_I2C_Read... [14:48:07]Read from MH i2c: E2 03 00 [14:48:07]MH_I2C_Read... [14:48:07]Read from MH i2c: E2 03 00 E8 86 00 90 00 E2 [14:48:07]RAPDU: 90 00 [14:48:07]wFMCommunicate OK [14:48:07]SAM_PROTO_ClearQueue done [14:48:07]KKMCreateOFDPacket [14:48:07]OFDProtocolAddRootSTLVToBuf [14:48:07]FM_MakeSignedData [14:48:07]FM_MakeSignedData [14:48:07]SAM_PROTO_SignData [14:48:07]wFMCommunicate request_size=4 [14:48:07]MH_SAM_APDU [14:48:07]CAPDU: 80 0D 01 02 [14:48:07]Write to MH i2c: E2 08 00 E9 86 80 0D 01 02 00 00 00 00 E8 [14:48:07]Write i2c OK [14:48:07]MH_I2C_Read... [14:48:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:48:07]Read from MH i2c: E2 [14:48:07]MH_I2C_Read... [14:48:07]Read from MH i2c: E2 03 00 [14:48:07]MH_I2C_Read... [14:48:07]Read from MH i2c: E2 03 00 E9 86 00 90 00 E3 [14:48:07]RAPDU: 90 00 [14:48:07]wFMCommunicate OK [14:48:07]wFMCommunicate request_size=255 [14:48:07]MH_SAM_APDU [14:48:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 AE 49 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 21 70 00 00 35 04 06 00 FE [14:48:07]Write to MH i2c: E2 02 01 EA 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 AE 49 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 21 70 00 00 35 04 06 00 FE 00 00 BA [14:48:07]Write i2c OK [14:48:07]MH_I2C_Read... [14:48:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:48:07]Read from MH i2c: E2 [14:48:07]MH_I2C_Read... [14:48:07]Read from MH i2c: E2 03 00 [14:48:07]MH_I2C_Read... [14:48:07]Read from MH i2c: E2 03 00 EA 86 00 90 00 E4 [14:48:07]RAPDU: 90 00 [14:48:07]wFMCommunicate OK [14:48:07]wFMCommunicate request_size=10 [14:48:07]MH_SAM_APDU [14:48:07]CAPDU: 80 0D 02 02 05 0D 98 6E 7D 3E [14:48:07]Write to MH i2c: E2 0D 00 EB 86 80 0D 02 02 05 00 0D 98 6E 7D 3E 00 00 C3 [14:48:07]Write i2c OK [14:48:07]MH_I2C_Read... [14:48:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:48:07]Read from MH i2c: E2 [14:48:07]MH_I2C_Read... [14:48:07]Read from MH i2c: E2 03 00 [14:48:07]MH_I2C_Read... [14:48:07]Read from MH i2c: E2 03 00 EB 86 00 90 00 E5 [14:48:07]RAPDU: 90 00 [14:48:07]wFMCommunicate OK [14:48:07]wFMCommunicate request_size=4 [14:48:07]MH_SAM_APDU [14:48:07]CAPDU: 80 0D 03 02 [14:48:07]Write to MH i2c: E2 08 00 EC 86 80 0D 03 02 00 00 00 00 ED [14:48:07]Write i2c OK [14:48:07]MH_I2C_Read... [14:48:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:48:07]Read from MH i2c: E2 [14:48:07]MH_I2C_Read... [14:48:07]Read from MH i2c: E2 0B 00 [14:48:07]MH_I2C_Read... [14:48:07]Read from MH i2c: E2 0B 00 EC 86 00 31 D6 19 1C EB C0 A6 4F 90 00 CA [14:48:07]RAPDU: 31 D6 19 1C EB C0 A6 4F 90 00 [14:48:07]wFMCommunicate OK [14:48:07]SAM_PROTO_SignData done [14:48:07]FM_MakeSignedData done [14:48:07]CreateOFDProtocolMessage [14:48:07]wFMCommunicate request_size=4 [14:48:07]MH_SAM_APDU [14:48:07]CAPDU: 80 11 00 00 [14:48:07]Write to MH i2c: E2 08 00 ED 86 80 11 00 00 00 00 00 00 ED [14:48:07]Write i2c OK [14:48:07]MH_I2C_Read... [14:48:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:48:07]Read from MH i2c: E2 [14:48:07]MH_I2C_Read... [14:48:07]Read from MH i2c: E2 17 00 [14:48:07]MH_I2C_Read... [14:48:07]Read from MH i2c: E2 17 00 ED 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 3C [14:48:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:48:07]wFMCommunicate OK [14:48:07]CreateOFDProtocolMessage done [14:48:07]OFDSenderStorePacket 28705 [14:48:07]StoreOFDPacket docnum=28705 [14:48:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 25 C8 07 01 83 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 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 AE 49 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 21 70 00 00 35 04 06 00 FE 0D 98 6E 7D 3E 31 D6 19 1C EB C0 A6 4F [14:48:07]CheckFolder [14:48:07]dirname=/storage/ofd_packets [14:48:07]CheckFolder done [14:48:07]ProducePacketName [14:48:07]name=ofd_packets/00028705 [14:48:07]NVStorageSaveData ofd_packets/00028705 [14:48:07]File name is /storage/ofd_packets/00028705 [14:48:07]Write 301 bytes [14:48:07]NVStorageSaveData done [14:48:07]OFDSenderStorePacket done [14:48:07]KKMCreateOFDPacket done [14:48:07]NVStorageSaveData kkm_last_timestamp [14:48:07]File name is /storage/kkm_last_timestamp [14:48:07]Write 4 bytes [14:48:07]NVStorageSaveData done [14:48:07]ExternCall_PrintAddStr [14:48:07]wPrintStart [14:48:07]Write to MH i2c: 01 00 00 EE 86 74 [14:48:07]Write i2c OK [14:48:07]MH_I2C_Read... [14:48:07]Read from MH i2c: 01 [14:48:07]MH_I2C_Read... [14:48:07]Read from MH i2c: 01 07 00 [14:48:07]MH_I2C_Read... [14:48:07]Read from MH i2c: 01 07 00 EE 86 00 00 00 00 00 FF 0F 89 [14:48:07]RasterBufferAndPrint [14:48:07]line Счет N : (1)347039 [14:48:07]line ИНН: 02508201610067 [14:48:07]line Контрольно-Кассовый Чек [14:48:07]line ПРОДАЖА [14:48:07]line ТРК (МРК, ГНК) : 13 [14:48:07]line Товар: 2710124130 [14:48:07]line Аи-92-К-5 [14:48:07]line 7.780 * 64.30 [14:48:07]line = 500.25 [14:48:07]line НДС 12% НСП 1% [14:48:07]line > о реализуемом товаре [14:48:07]line ОКРУГЛЕНИЕ: -0.25 [14:48:07]line ИТОГО: 500.00 [14:48:07]line Внесено: 500.00 [14:48:07]line СДАЧА: 0.00 [14:48:07]line НСП 1% : 4.43 [14:48:07]line НДС 12% : 53.12 [14:48:07]line Наличными: 500.00 [14:48:07]line Безнал.: 0.00 [14:48:07]line Место: АЗС № 108 "Партнер Нефть" [14:48:07]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [14:48:07]line СНО: Общий режим [14:48:07]line Чек 154 12.04.2024 14:48 [14:48:07]line Смена: 113 ФФД: 1.0 [14:48:07]line ЗНМ: 0300000027 [14:48:07]line РНМ: 0000138879044617 [14:48:07]line Версия ККМ: 001 [14:48:07]line ФМ: 0000000000963154 [14:48:07]line ФД: 28705 [14:48:07]line ФПД: 279334345407806 [14:48:08]line 1/tax-web-control/client/api/v1/ticket?date=20240412T144814&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28705&fm=279334345407806&tin=02508201610067®Number=0000138879044617&sum=50000 [14:48:08]OFD Sender: Processing packet 28705 [packets to send 8, broken 7] [14:48:08]ProducePacketName [14:48:08]name=ofd_packets/00028705 [14:48:08]OFD Sender: To server: pG, [14:48:08]CommunicateWithHost lk.salyk.kg:30040 [14:48:08]ConnectInit lk.salyk.kg [14:48:08]written 0, free lines is 4095 [14:48:08]Connected sock=5 [14:48:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 25 C8 07 01 83 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 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 AE 49 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 21 70 00 00 35 04 06 00 FE 0D 98 6E 7D 3E 31 D6 19 1C EB C0 A6 4F [14:48:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 82 24 47 00 90 17 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 21 70 00 00 F4 03 04 00 58 F4 18 66 B6 04 01 00 00 BF 6C D0 B5 83 85 9F 8D [14:48:08]CommunicateWithHost err = 0 [14:48:08]CheckOFDResponse [14:48:08]1017 (14) - 77093643461234 [14:48:08]1041 (16) - 0000000000963154 [14:48:08]1040 (4) - 28705 [14:48:08]1012 (4) - 12.04.2024 08:44 [14:48:08]1206 (1) - 0 [14:48:08]OFD Sender: Remove packet 28705 [14:48:08]ProducePacketName [14:48:08]name=ofd_packets/00028705 [14:48:08]NVStorageDeleteData [14:48:08]Write to MH i2c: 01 00 00 18 87 9F [14:48:08]Write i2c OK [14:48:08]MH_I2C_Read... [14:48:08]Read from MH i2c: 01 [14:48:08]MH_I2C_Read... [14:48:08]Read from MH i2c: 01 07 00 [14:48:08]MH_I2C_Read... [14:48:08]Read from MH i2c: 01 07 00 18 87 00 00 00 00 00 BD 0C 6F [14:48:08]RasterBufferAndPrint [14:48:08]line [14:48:08]line [14:48:08]line [14:48:08]line [14:48:08]line [14:48:08]written 0, free lines is 3268 [14:48:08]MH_Cut [14:48:08]Write to MH i2c: D1 01 00 1F 87 01 78 [14:48:08]Write i2c OK [14:48:08]MH_I2C_Read... [14:48:08]Read from MH i2c: D1 [14:48:08]MH_I2C_Read... [14:48:08]Read from MH i2c: D1 01 00 [14:48:08]MH_I2C_Read... [14:48:08]Read from MH i2c: D1 01 00 1F 87 00 77 [14:48:08]Write to MH i2c: 01 00 00 20 87 A7 [14:48:08]Write i2c OK [14:48:08]MH_I2C_Read... [14:48:08]OFD Sender: No OFD packet to send [14:48:09]*** Cut start [14:48:09]*** Partial cut [14:48:09]*** CUTSNS_PIN = 1 [14:48:09]*** CUTSNS_PIN = 0 [14:48:09]*** Brake cut motor [14:48:10]Read from MH i2c: 01 [14:48:10]MH_I2C_Read... [14:48:10]*** Stop cut motor [14:48:10]*** Cut end [14:48:10]Read from MH i2c: 01 07 00 [14:48:10]MH_I2C_Read... [14:48:10]Read from MH i2c: 01 07 00 20 87 00 00 00 00 00 FF 0F BC [14:48:10]process_action close_receipt done [14:48:10]requested_data is exist [14:48:10]produce_requested_data [14:48:10]requested_item fm.sn is exist - process it [14:48:10]wFMCommunicate request_size=4 [14:48:10]MH_SAM_APDU [14:48:10]CAPDU: 80 11 00 00 [14:48:10]Write to MH i2c: E2 08 00 21 87 80 11 00 00 00 00 00 00 22 [14:48:10]Write i2c OK [14:48:10]MH_I2C_Read... [14:48:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:48:10]Read from MH i2c: E2 [14:48:10]MH_I2C_Read... [14:48:10]Read from MH i2c: E2 17 00 [14:48:10]MH_I2C_Read... [14:48:10]Read from MH i2c: E2 17 00 21 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 71 [14:48:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:48:10]wFMCommunicate OK [14:48:10]requested_item fd.num is exist - process it [14:48:10]SAM_PROTO_GetFieldsCounters [14:48:10]wFMCommunicate request_size=4 [14:48:10]MH_SAM_APDU [14:48:10]CAPDU: 80 13 00 00 [14:48:10]Write to MH i2c: E2 08 00 22 87 80 13 00 00 00 00 00 00 25 [14:48:10]Write i2c OK [14:48:10]MH_I2C_Read... [14:48:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:48:10]Read from MH i2c: E2 [14:48:10]MH_I2C_Read... [14:48:10]Read from MH i2c: E2 62 00 [14:48:10]MH_I2C_Read... [14:48:10]Read from MH i2c: E2 62 00 22 87 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 21 70 00 00 0E 04 04 00 71 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 33 [14:48:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 21 70 00 00 0E 04 04 00 71 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:48:10]wFMCommunicate OK [14:48:10]SAM_PROTO_GetFieldsCounters done [14:48:10]requested_item shift.num is exist - process it [14:48:10]requested_item shift.opened is exist - process it [14:48:10]req_shift_opened [14:48:10]FM_GetShiftState [14:48:10]SAM_PROTO_GetShiftState [14:48:10]wFMCommunicate request_size=4 [14:48:10]MH_SAM_APDU [14:48:10]CAPDU: 80 13 01 00 [14:48:10]Write to MH i2c: E2 08 00 23 87 80 13 01 00 00 00 00 00 27 [14:48:10]Write i2c OK [14:48:10]MH_I2C_Read... [14:48:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:48:10]Read from MH i2c: E2 [14:48:10]MH_I2C_Read... [14:48:10]Read from MH i2c: E2 0E 00 [14:48:10]MH_I2C_Read... [14:48:10]Read from MH i2c: E2 0E 00 23 87 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 38 [14:48:10]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [14:48:10]wFMCommunicate OK [14:48:10]SAM_PROTO_GetShiftState done [14:48:10]FM_GetShiftState done [14:48:10]req_shift_opened done [14:48:10]requested_item shift.open_date is exist - process it [14:48:10]req_shift_open_date [14:48:10]req_shift_open_date done [14:48:10]produce_requested_data done [14:48:10]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28705,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [14:48:10]process_action_free close_receipt [14:48:10]json_value_free [14:48:10]json_value_free done [14:48:10]process_json_proto returns [14:48:10]Send response to host [14:48:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28705,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [14:48:10]free response buf [14:48:10]execute_script done [14:48:10]execute_script returns [14:48:10]free content buf [14:48:10]Sock 6.Close socket [14:48:10]Sock 6.Thread stoped [14:48:13]OFD Sender: No OFD packet to send [14:48:18]OFD Sender: No OFD packet to send [14:48:22]accept exits with 7 [14:48:22]New connection [14:48:22]New thread 3066641764 created [14:48:22]Thread 3066498404 joined [14:48:22]Waiting for new connection... [14:48:22] Sock 7.Parse request [14:48:22]Sock 7.Check first char [14:48:22]Sock 7.First char is OK [14:48:22]request: POST /json_proto HTTP/1.0 [14:48:22]Method: POST [14:48:22]URL: /json_proto [14:48:22]Method is POST - this is cgi request [14:48:22]url: /json_proto [14:48:22]query_string will be loaded in cgi processing [14:48:22]execute_cgi json_proto POST (null) [14:48:22]execute_cgi path=json_proto method=POST [14:48:22]POST find Content-Length [14:48:22]Host: 172.17.33.3:8080 [14:48:22]Content-Length: 1175 [14:48:22]Content-Type: application/json [14:48:22] [14:48:22]POST finish read [14:48:22]Found Content-Length = 1175 [14:48:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)347038\u000A12.04.2024 14:30\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 64.30\u000A\u0418\u0422\u041E\u0413: 1286.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30017182\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:48:22]execute_script... [14:48:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)347038\u000A12.04.2024 14:30\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 64.30\u000A\u0418\u0422\u041E\u0413: 1286.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30017182\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:48:22]POST & json_proto [14:48:22]process_json_proto [14:48:22]json parsed OK: [14:48:22]protocol is kg_v1.0 [14:48:22]action value=print_text [14:48:22]process_action print_text [14:48:22]cmd_print_text [14:48:22]ExternCall_PrintAddStr [14:48:22]wPrintStart [14:48:22]Write to MH i2c: 01 00 00 24 87 AB [14:48:22]Write i2c OK [14:48:22]MH_I2C_Read... [14:48:22]Read from MH i2c: 01 [14:48:22]MH_I2C_Read... [14:48:22]Read from MH i2c: 01 07 00 [14:48:22]MH_I2C_Read... [14:48:22]Read from MH i2c: 01 07 00 24 87 00 00 00 00 00 FF 0F C0 [14:48:22]RasterBufferAndPrint [14:48:22]line *****ТОВАРНЫЙ ЧЕК***** [14:48:22]line АЗС 108 [14:48:22]line Партнер нефть [14:48:22]line 02508201610067 [14:48:22]line Кассир : Джумагулова Н. [14:48:22]line Счет N : (1)347038 [14:48:22]line 12.04.2024 14:30 [14:48:22]line ПРОДАЖА [14:48:22]line ТРК (МРК, ГНК): 32 [14:48:22]line Вид ГСМ : 2710124130 [14:48:22]line Аи-92-К-5 [14:48:22]line 20.000 x 64.30 [14:48:22]line ИТОГ: 1286.00 [14:48:22]line Тип оплаты: Талоны: ТК ГПНА Online [14:48:22]line 30017182 [14:48:22]line ______________________ [14:48:22]line (подпись) [14:48:22]written 0, free lines is 4095 [14:48:22]Write to MH i2c: 01 00 00 39 87 C0 [14:48:22]Write i2c OK [14:48:22]MH_I2C_Read... [14:48:22]Read from MH i2c: 01 [14:48:22]MH_I2C_Read... [14:48:22]Read from MH i2c: 01 07 00 [14:48:22]MH_I2C_Read... [14:48:22]Read from MH i2c: 01 07 00 39 87 00 00 00 00 00 F5 0D C9 [14:48:22]RasterBufferAndPrint [14:48:22]line [14:48:22]line [14:48:22]line [14:48:22]line [14:48:22]line [14:48:22]written 0, free lines is 3575 [14:48:22]MH_Cut [14:48:22]Write to MH i2c: D1 01 00 40 87 01 99 [14:48:22]Write i2c OK [14:48:22]MH_I2C_Read... [14:48:22]Read from MH i2c: D1 [14:48:22]MH_I2C_Read... [14:48:22]Read from MH i2c: D1 01 00 [14:48:22]MH_I2C_Read... [14:48:22]Read from MH i2c: D1 01 00 40 87 00 98 [14:48:22]Write to MH i2c: 01 00 00 41 87 C8 [14:48:22]Write i2c OK [14:48:22]MH_I2C_Read... [14:48:22]*** Cut start [14:48:22]*** Partial cut [14:48:22]*** CUTSNS_PIN = 1 [14:48:22]*** CUTSNS_PIN = 0 [14:48:23]*** Brake cut motor [14:48:23]Read from MH i2c: 01 [14:48:23]MH_I2C_Read... [14:48:23]*** Stop cut motor [14:48:23]*** Cut end [14:48:23]Read from MH i2c: 01 07 00 [14:48:23]MH_I2C_Read... [14:48:23]Read from MH i2c: 01 07 00 41 87 00 00 00 00 00 FF 0F DD [14:48:23]process_action print_text done [14:48:23]requested_data is exist [14:48:23]produce_requested_data [14:48:23]requested_item fm.sn is exist - process it [14:48:23]wFMCommunicate request_size=4 [14:48:23]MH_SAM_APDU [14:48:23]CAPDU: 80 11 00 00 [14:48:23]Write to MH i2c: E2 08 00 42 87 80 11 00 00 00 00 00 00 43 [14:48:23]Write i2c OK [14:48:23]MH_I2C_Read... [14:48:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:48:23]Read from MH i2c: E2 [14:48:23]MH_I2C_Read... [14:48:23]Read from MH i2c: E2 17 00 [14:48:23]MH_I2C_Read... [14:48:23]Read from MH i2c: E2 17 00 42 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 92 [14:48:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:48:23]wFMCommunicate OK [14:48:23]requested_item fd.num is exist - process it [14:48:23]SAM_PROTO_GetFieldsCounters [14:48:23]wFMCommunicate request_size=4 [14:48:23]MH_SAM_APDU [14:48:23]CAPDU: 80 13 00 00 [14:48:23]Write to MH i2c: E2 08 00 43 87 80 13 00 00 00 00 00 00 46 [14:48:23]Write i2c OK [14:48:23]MH_I2C_Read... [14:48:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:48:23]Read from MH i2c: E2 [14:48:23]MH_I2C_Read... [14:48:23]Read from MH i2c: E2 62 00 [14:48:23]MH_I2C_Read... [14:48:23]Read from MH i2c: E2 62 00 43 87 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 21 70 00 00 0E 04 04 00 71 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 54 [14:48:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 21 70 00 00 0E 04 04 00 71 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:48:23]wFMCommunicate OK [14:48:23]SAM_PROTO_GetFieldsCounters done [14:48:23]requested_item shift.num is exist - process it [14:48:23]requested_item shift.opened is exist - process it [14:48:23]req_shift_opened [14:48:23]FM_GetShiftState [14:48:23]SAM_PROTO_GetShiftState [14:48:23]wFMCommunicate request_size=4 [14:48:23]MH_SAM_APDU [14:48:23]CAPDU: 80 13 01 00 [14:48:23]Write to MH i2c: E2 08 00 44 87 80 13 01 00 00 00 00 00 48 [14:48:23]Write i2c OK [14:48:23]MH_I2C_Read... [14:48:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:48:23]Read from MH i2c: E2 [14:48:23]MH_I2C_Read... [14:48:23]Read from MH i2c: E2 0E 00 [14:48:23]MH_I2C_Read... [14:48:23]Read from MH i2c: E2 0E 00 44 87 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 59 [14:48:23]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [14:48:23]wFMCommunicate OK [14:48:23]SAM_PROTO_GetShiftState done [14:48:23]FM_GetShiftState done [14:48:23]req_shift_opened done [14:48:23]requested_item shift.open_date is exist - process it [14:48:23]req_shift_open_date [14:48:23]req_shift_open_date done [14:48:23]produce_requested_data done [14:48:23]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28705,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [14:48:23]process_action_free print_text [14:48:23]json_value_free [14:48:23]json_value_free done [14:48:23]process_json_proto returns [14:48:23]Send response to host [14:48:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28705,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [14:48:23]free response buf [14:48:23]execute_script done [14:48:23]execute_script returns [14:48:23]free content buf [14:48:23]Sock 7.Close socket [14:48:23]Sock 7.Thread stoped [14:48:23]OFD Sender: No OFD packet to send [14:48:28]OFD Sender: No OFD packet to send [14:48:30]accept exits with 6 [14:48:30]New connection [14:48:30]New thread 3066498404 created [14:48:30]Thread 3066641764 joined [14:48:30]Waiting for new connection... [14:48:30] Sock 6.Parse request [14:48:30]Sock 6.Check first char [14:48:30]Sock 6.First char is OK [14:48:30]request: POST /json_proto HTTP/1.0 [14:48:30]Method: POST [14:48:30]URL: /json_proto [14:48:30]Method is POST - this is cgi request [14:48:30]url: /json_proto [14:48:30]query_string will be loaded in cgi processing [14:48:30]execute_cgi json_proto POST (null) [14:48:30]execute_cgi path=json_proto method=POST [14:48:30]POST find Content-Length [14:48:30]Host: 172.17.33.3:8080 [14:48:30]Content-Length: 808 [14:48:30]Content-Type: application/json [14:48:30] [14:48:30]POST finish read [14:48:30]Found Content-Length = 808 [14:48:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347040", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 23.330, "sum" : 1500.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:48:30]execute_script... [14:48: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)347040", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 23.330, "sum" : 1500.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:48:30]POST & json_proto [14:48:30]process_json_proto [14:48:30]json parsed OK: [14:48:30]protocol is kg_v1.0 [14:48:30]action value=close_receipt [14:48:30]process_action close_receipt [14:48:30]cmd_close_receipt [14:48:30]MH_GetDate [14:48:30]Write to MH i2c: F0 00 00 45 87 BB [14:48:30]Write i2c OK [14:48:30]MH_I2C_Read... [14:48:30]Read from MH i2c: F0 [14:48:30]MH_I2C_Read... [14:48:30]Read from MH i2c: F0 09 00 [14:48:30]MH_I2C_Read... [14:48:30]Read from MH i2c: F0 09 00 45 87 00 C7 49 19 66 23 5B 8F 65 C5 [14:48:30]GetLastDocTimeStamp 1712933294 [14:48:30]current date 1712933319 [14:48:30]FM_GetShiftState [14:48:30]SAM_PROTO_GetShiftState [14:48:30]wFMCommunicate request_size=4 [14:48:30]MH_SAM_APDU [14:48:30]CAPDU: 80 13 01 00 [14:48:30]Write to MH i2c: E2 08 00 46 87 80 13 01 00 00 00 00 00 4A [14:48:30]Write i2c OK [14:48:30]MH_I2C_Read... [14:48:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:48:30]Read from MH i2c: E2 [14:48:30]MH_I2C_Read... [14:48:30]Read from MH i2c: E2 0E 00 [14:48:30]MH_I2C_Read... [14:48:30]Read from MH i2c: E2 0E 00 46 87 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 5B [14:48:30]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [14:48:30]wFMCommunicate OK [14:48:30]SAM_PROTO_GetShiftState done [14:48:30]FM_GetShiftState done [14:48:30]opened in 1712881416 [14:48:30]opened+sec_in_day 1712967816 [14:48:30]quantity*price = 150011 [14:48:30]sum+1 = 150013 [14:48:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.12 НСП 1% : 13.27 НДС 12% : 159.30 Наличными: 0.00 Безнал.: 1500.12 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 155 12.04.2024 14:48 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 28706 ФПД: 46076943697533 1/tax-web-control/client/api/v1/ticket?date=20240412T144839&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28706&fm=46076943697533&tin=02508201610067®Number=0000138879044617&sum=150012 [14:48:32]StoreToDocumentArchive [14:48:32]shift 113 fd 28706 [14:48:32]save to /storage/0113/doc_00028706 [14:48:32]save last doc name /storage/0113/doc_00028706 to /storage/kkm_last_doc_name [14:48:32]save OK [14:48:32]Clear old archive folders... [14:48:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:48:32]tlvbuf is 01AEEE30 [14:48:32]SAM_PROTO_ClearQueue [14:48:32]wFMCommunicate request_size=4 [14:48:32]MH_SAM_APDU [14:48:32]CAPDU: 80 09 00 00 [14:48:32]Write to MH i2c: E2 08 00 53 87 80 09 00 00 00 00 00 00 4C [14:48:32]Write i2c OK [14:48:32]MH_I2C_Read... [14:48:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:48:32]Read from MH i2c: E2 [14:48:32]MH_I2C_Read... [14:48:32]Read from MH i2c: E2 03 00 [14:48:32]MH_I2C_Read... [14:48:32]Read from MH i2c: E2 03 00 53 87 00 90 00 4E [14:48:32]RAPDU: 90 00 [14:48:32]wFMCommunicate OK [14:48:32]SAM_PROTO_ClearQueue done [14:48:32]KKMCreateOFDPacket [14:48:32]OFDProtocolAddRootSTLVToBuf [14:48:32]FM_MakeSignedData [14:48:32]FM_MakeSignedData [14:48:32]SAM_PROTO_SignData [14:48:32]wFMCommunicate request_size=4 [14:48:32]MH_SAM_APDU [14:48:32]CAPDU: 80 0D 01 02 [14:48:32]Write to MH i2c: E2 08 00 54 87 80 0D 01 02 00 00 00 00 54 [14:48:32]Write i2c OK [14:48:32]MH_I2C_Read... [14:48:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:48:32]Read from MH i2c: E2 [14:48:32]MH_I2C_Read... [14:48:32]Read from MH i2c: E2 03 00 [14:48:32]MH_I2C_Read... [14:48:32]Read from MH i2c: E2 03 00 54 87 00 90 00 4F [14:48:32]RAPDU: 90 00 [14:48:32]wFMCommunicate OK [14:48:32]wFMCommunicate request_size=255 [14:48:32]MH_SAM_APDU [14:48:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 22 5B 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 FC 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 C7 49 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 22 70 00 00 35 04 06 00 29 [14:48:32]Write to MH i2c: E2 02 01 55 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 35 FF 03 08 00 03 22 5B 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 FC 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 C7 49 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 22 70 00 00 35 04 06 00 29 00 00 06 [14:48:32]Write i2c OK [14:48:32]MH_I2C_Read... [14:48:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:48:32]Read from MH i2c: E2 [14:48:32]MH_I2C_Read... [14:48:32]Read from MH i2c: E2 03 00 [14:48:32]MH_I2C_Read... [14:48:32]Read from MH i2c: E2 03 00 55 87 00 90 00 50 [14:48:32]RAPDU: 90 00 [14:48:32]wFMCommunicate OK [14:48:32]wFMCommunicate request_size=10 [14:48:32]MH_SAM_APDU [14:48:32]CAPDU: 80 0D 02 02 05 E8 1F DC 86 7D [14:48:32]Write to MH i2c: E2 0D 00 56 87 80 0D 02 02 05 00 E8 1F DC 86 7D 00 00 47 [14:48:32]Write i2c OK [14:48:32]MH_I2C_Read... [14:48:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:48:32]Read from MH i2c: E2 [14:48:32]MH_I2C_Read... [14:48:32]Read from MH i2c: E2 03 00 [14:48:32]MH_I2C_Read... [14:48:32]Read from MH i2c: E2 03 00 56 87 00 90 00 51 [14:48:32]RAPDU: 90 00 [14:48:32]wFMCommunicate OK [14:48:32]wFMCommunicate request_size=4 [14:48:32]MH_SAM_APDU [14:48:32]CAPDU: 80 0D 03 02 [14:48:32]Write to MH i2c: E2 08 00 57 87 80 0D 03 02 00 00 00 00 59 [14:48:32]Write i2c OK [14:48:32]MH_I2C_Read... [14:48:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:48:32]Read from MH i2c: E2 [14:48:32]MH_I2C_Read... [14:48:32]Read from MH i2c: E2 0B 00 [14:48:32]MH_I2C_Read... [14:48:32]Read from MH i2c: E2 0B 00 57 87 00 8B 53 70 E6 0E BD 54 02 90 00 AF [14:48:32]RAPDU: 8B 53 70 E6 0E BD 54 02 90 00 [14:48:32]wFMCommunicate OK [14:48:32]SAM_PROTO_SignData done [14:48:32]FM_MakeSignedData done [14:48:32]CreateOFDProtocolMessage [14:48:32]wFMCommunicate request_size=4 [14:48:32]MH_SAM_APDU [14:48:32]CAPDU: 80 11 00 00 [14:48:32]Write to MH i2c: E2 08 00 58 87 80 11 00 00 00 00 00 00 59 [14:48:32]Write i2c OK [14:48:32]MH_I2C_Read... [14:48:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:48:32]Read from MH i2c: E2 [14:48:32]MH_I2C_Read... [14:48:32]Read from MH i2c: E2 17 00 [14:48:32]MH_I2C_Read... [14:48:32]Read from MH i2c: E2 17 00 58 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 A8 [14:48:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:48:32]wFMCommunicate OK [14:48:32]CreateOFDProtocolMessage done [14:48:32]OFDSenderStorePacket 28706 [14:48:32]StoreOFDPacket docnum=28706 [14:48:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 F4 AB 07 01 08 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 35 FF 03 08 00 03 22 5B 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 FC 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 C7 49 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 22 70 00 00 35 04 06 00 29 E8 1F DC 86 7D 8B 53 70 E6 0E BD 54 02 [14:48:32]CheckFolder [14:48:32]dirname=/storage/ofd_packets [14:48:32]CheckFolder done [14:48:32]ProducePacketName [14:48:32]name=ofd_packets/00028706 [14:48:32]NVStorageSaveData ofd_packets/00028706 [14:48:32]File name is /storage/ofd_packets/00028706 [14:48:32]Write 301 bytes [14:48:32]NVStorageSaveData done [14:48:32]OFDSenderStorePacket done [14:48:32]KKMCreateOFDPacket done [14:48:32]NVStorageSaveData kkm_last_timestamp [14:48:32]File name is /storage/kkm_last_timestamp [14:48:32]Write 4 bytes [14:48:32]NVStorageSaveData done [14:48:32]ExternCall_PrintAddStr [14:48:32]wPrintStart [14:48:32]Write to MH i2c: 01 00 00 59 87 E0 [14:48:32]Write i2c OK [14:48:32]MH_I2C_Read... [14:48:32]Read from MH i2c: 01 [14:48:32]MH_I2C_Read... [14:48:32]Read from MH i2c: 01 07 00 [14:48:32]MH_I2C_Read... [14:48:32]Read from MH i2c: 01 07 00 59 87 00 00 00 00 00 FF 0F F5 [14:48:32]RasterBufferAndPrint [14:48:32]line Счет N : (1)347040 [14:48:32]line ИНН: 02508201610067 [14:48:32]line Контрольно-Кассовый Чек [14:48:32]line ПРОДАЖА [14:48:32]line ТРК (МРК, ГНК) : 23 [14:48:32]line Товар: 2710124130 [14:48:32]line Аи-92-К-5 [14:48:32]line 23.330 * 64.30 [14:48:32]line = 1500.12 [14:48:32]line НДС 12% НСП 1% [14:48:32]line > о реализуемом товаре [14:48:32]line ИТОГО: 1500.12 [14:48:32]line НСП 1% : 13.27 [14:48:32]line НДС 12% : 159.30 [14:48:32]line Наличными: 0.00 [14:48:32]line Безнал.: 1500.12 [14:48:32]line Место: АЗС № 108 "Партнер Нефть" [14:48:32]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [14:48:32]line СНО: Общий режим [14:48:32]line Чек 155 12.04.2024 14:48 [14:48:32]line Смена: 113 ФФД: 1.0 [14:48:32]line ЗНМ: 0300000027 [14:48:32]line РНМ: 0000138879044617 [14:48:32]line Версия ККМ: 001 [14:48:32]line Платежная система: О! деньги [14:48:32]line ФМ: 0000000000963154 [14:48:32]line ФД: 28706 [14:48:32]line ФПД: 46076943697533 [14:48:32]line 1/tax-web-control/client/api/v1/ticket?date=20240412T144839&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28706&fm=46076943697533&tin=02508201610067®Number=0000138879044617&sum=150012 [14:48:32]OFD Sender: Processing packet 28706 [packets to send 8, broken 7] [14:48:32]ProducePacketName [14:48:32]name=ofd_packets/00028706 [14:48:32]OFD Sender: To server: pG, [14:48:32]CommunicateWithHost lk.salyk.kg:30040 [14:48:32]ConnectInit lk.salyk.kg [14:48:32]written 0, free lines is 4095 [14:48:32]Connected sock=7 [14:48:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 F4 AB 07 01 08 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 35 FF 03 08 00 03 22 5B 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 FC 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 C7 49 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 22 70 00 00 35 04 06 00 29 E8 1F DC 86 7D 8B 53 70 E6 0E BD 54 02 [14:48:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 4C E5 47 00 7D 78 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 22 70 00 00 F4 03 04 00 71 F4 18 66 B6 04 01 00 00 64 0F 6C 35 CB EF 09 32 [14:48:33]CommunicateWithHost err = 0 [14:48:33]CheckOFDResponse [14:48:33]1017 (14) - 77093643461234 [14:48:33]1041 (16) - 0000000000963154 [14:48:33]1040 (4) - 28706 [14:48:33]1012 (4) - 12.04.2024 08:44 [14:48:33]1206 (1) - 0 [14:48:33]OFD Sender: Remove packet 28706 [14:48:33]ProducePacketName [14:48:33]name=ofd_packets/00028706 [14:48:33]NVStorageDeleteData [14:48:33]Write to MH i2c: 01 00 00 82 87 09 [14:48:33]Write i2c OK [14:48:33]MH_I2C_Read... [14:48:33]Read from MH i2c: 01 [14:48:33]MH_I2C_Read... [14:48:33]Read from MH i2c: 01 07 00 [14:48:33]MH_I2C_Read... [14:48:33]Read from MH i2c: 01 07 00 82 87 00 00 00 00 00 DC 0C F8 [14:48:33]RasterBufferAndPrint [14:48:33]line [14:48:33]line [14:48:33]line [14:48:33]line [14:48:33]line [14:48:33]written 0, free lines is 3298 [14:48:33]MH_Cut [14:48:33]Write to MH i2c: D1 01 00 89 87 01 E2 [14:48:33]Write i2c OK [14:48:33]MH_I2C_Read... [14:48:33]Read from MH i2c: D1 [14:48:33]MH_I2C_Read... [14:48:33]Read from MH i2c: D1 01 00 [14:48:33]MH_I2C_Read... [14:48:33]Read from MH i2c: D1 01 00 89 87 00 E1 [14:48:33]Write to MH i2c: 01 00 00 8A 87 11 [14:48:33]Write i2c OK [14:48:33]MH_I2C_Read... [14:48:33]OFD Sender: No OFD packet to send [14:48:34]*** Cut start [14:48:34]*** Partial cut [14:48:34]*** CUTSNS_PIN = 1 [14:48:34]*** CUTSNS_PIN = 0 [14:48:34]*** Brake cut motor [14:48:34]Read from MH i2c: 01 [14:48:34]MH_I2C_Read... [14:48:34]*** Stop cut motor [14:48:34]*** Cut end [14:48:34]Read from MH i2c: 01 07 00 [14:48:34]MH_I2C_Read... [14:48:34]Read from MH i2c: 01 07 00 8A 87 00 00 00 00 00 FF 0F 26 [14:48:34]process_action close_receipt done [14:48:34]requested_data is exist [14:48:34]produce_requested_data [14:48:34]requested_item fm.sn is exist - process it [14:48:34]wFMCommunicate request_size=4 [14:48:34]MH_SAM_APDU [14:48:34]CAPDU: 80 11 00 00 [14:48:34]Write to MH i2c: E2 08 00 8B 87 80 11 00 00 00 00 00 00 8C [14:48:34]Write i2c OK [14:48:34]MH_I2C_Read... [14:48:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:48:34]Read from MH i2c: E2 [14:48:34]MH_I2C_Read... [14:48:34]Read from MH i2c: E2 17 00 [14:48:34]MH_I2C_Read... [14:48:34]Read from MH i2c: E2 17 00 8B 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 DB [14:48:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:48:34]wFMCommunicate OK [14:48:34]requested_item fd.num is exist - process it [14:48:34]SAM_PROTO_GetFieldsCounters [14:48:34]wFMCommunicate request_size=4 [14:48:34]MH_SAM_APDU [14:48:34]CAPDU: 80 13 00 00 [14:48:34]Write to MH i2c: E2 08 00 8C 87 80 13 00 00 00 00 00 00 8F [14:48:34]Write i2c OK [14:48:34]MH_I2C_Read... [14:48:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:48:34]Read from MH i2c: E2 [14:48:34]MH_I2C_Read... [14:48:34]Read from MH i2c: E2 62 00 [14:48:34]MH_I2C_Read... [14:48:35]Read from MH i2c: E2 62 00 8C 87 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 22 70 00 00 0E 04 04 00 71 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 A1 [14:48:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 22 70 00 00 0E 04 04 00 71 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 [14:48:35]wFMCommunicate OK [14:48:35]SAM_PROTO_GetFieldsCounters done [14:48:35]requested_item shift.num is exist - process it [14:48:35]requested_item shift.opened is exist - process it [14:48:35]req_shift_opened [14:48:35]FM_GetShiftState [14:48:35]SAM_PROTO_GetShiftState [14:48:35]wFMCommunicate request_size=4 [14:48:35]MH_SAM_APDU [14:48:35]CAPDU: 80 13 01 00 [14:48:35]Write to MH i2c: E2 08 00 8D 87 80 13 01 00 00 00 00 00 91 [14:48:35]Write i2c OK [14:48:35]MH_I2C_Read... [14:48:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:48:35]Read from MH i2c: E2 [14:48:35]MH_I2C_Read... [14:48:35]Read from MH i2c: E2 0E 00 [14:48:35]MH_I2C_Read... [14:48:35]Read from MH i2c: E2 0E 00 8D 87 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 A2 [14:48:35]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [14:48:35]wFMCommunicate OK [14:48:35]SAM_PROTO_GetShiftState done [14:48:35]FM_GetShiftState done [14:48:35]req_shift_opened done [14:48:35]requested_item shift.open_date is exist - process it [14:48:35]req_shift_open_date [14:48:35]req_shift_open_date done [14:48:35]produce_requested_data done [14:48:35]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28706,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [14:48:35]process_action_free close_receipt [14:48:35]json_value_free [14:48:35]json_value_free done [14:48:35]process_json_proto returns [14:48:35]Send response to host [14:48:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28706,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [14:48:35]free response buf [14:48:35]execute_script done [14:48:35]execute_script returns [14:48:35]free content buf [14:48:35]Sock 6.Close socket [14:48:35]Sock 6.Thread stoped [14:48:38]OFD Sender: No OFD packet to send [14:48:43]OFD Sender: No OFD packet to send [14:48:48]OFD Sender: No OFD packet to send [14:48:53]OFD Sender: No OFD packet to send [14:48:58]OFD Sender: No OFD packet to send [14:49:03]*** FLAG_PRN_KEY set [14:49:03]*** FLAG_PRN_KEY reset [14:49:03]*** FLAG_PRN_KEY set [14:49:03]*** FLAG_PRN_KEY reset [14:49:03]*** FLAG_PRN_KEY set [14:49:03]*** FLAG_PRN_KEY reset [14:49:03]*** FLAG_PRN_KEY set [14:49:03]OFD Sender: No OFD packet to send [14:49:03]*** FLAG_PRN_KEY reset [14:49:03]*** FLAG_PRN_KEY set [14:49:04]*** FLAG_PRN_KEY reset [14:49:04]*** FLAG_PRN_KEY set [14:49:04]*** FLAG_PRN_KEY reset [14:49:04]*** FLAG_PRN_KEY set [14:49:04]*** FLAG_PRN_KEY reset [14:49:04]*** FLAG_PRN_KEY set [14:49:04]*** FLAG_PRN_KEY reset [14:49:08]OFD Sender: No OFD packet to send [14:49:13]OFD Sender: No OFD packet to send [14:49:18]OFD Sender: No OFD packet to send [14:49:23]OFD Sender: No OFD packet to send [14:49:28]OFD Sender: No OFD packet to send [14:49:32]accept exits with 5 [14:49:32]New connection [14:49:32]New thread 3066641764 created [14:49:32]Thread 3066498404 joined [14:49:32]Waiting for new connection... [14:49:32] Sock 5.Parse request [14:49:32]Sock 5.Check first char [14:49:32]Sock 5.First char is OK [14:49:32]request: POST /json_proto HTTP/1.0 [14:49:32]Method: POST [14:49:32]URL: /json_proto [14:49:32]Method is POST - this is cgi request [14:49:32]url: /json_proto [14:49:32]query_string will be loaded in cgi processing [14:49:32]execute_cgi json_proto POST (null) [14:49:32]execute_cgi path=json_proto method=POST [14:49:32]POST find Content-Length [14:49:32]Host: 172.17.33.3:8080 [14:49:32]Content-Length: 840 [14:49:32]Content-Type: application/json [14:49:32] [14:49:32]POST finish read [14:49:32]Found Content-Length = 840 [14:49:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347041", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 7.780, "sum" : 500.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:49:32]execute_script... [14:49: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)347041", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 7.780, "sum" : 500.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:49:32]POST & json_proto [14:49:32]process_json_proto [14:49:32]json parsed OK: [14:49:32]protocol is kg_v1.0 [14:49:32]action value=close_receipt [14:49:32]process_action close_receipt [14:49:32]cmd_close_receipt [14:49:32]MH_GetDate [14:49:32]Write to MH i2c: F0 00 00 8E 87 04 [14:49:32]Write i2c OK [14:49:32]MH_I2C_Read... [14:49:32]Read from MH i2c: F0 [14:49:32]MH_I2C_Read... [14:49:32]Read from MH i2c: F0 09 00 [14:49:32]MH_I2C_Read... [14:49:32]Read from MH i2c: F0 09 00 8E 87 00 05 4A 19 66 23 5B 8F 65 4D [14:49:32]GetLastDocTimeStamp 1712933319 [14:49:32]current date 1712933381 [14:49:32]FM_GetShiftState [14:49:32]SAM_PROTO_GetShiftState [14:49:32]wFMCommunicate request_size=4 [14:49:32]MH_SAM_APDU [14:49:32]CAPDU: 80 13 01 00 [14:49:32]Write to MH i2c: E2 08 00 8F 87 80 13 01 00 00 00 00 00 93 [14:49:32]Write i2c OK [14:49:32]MH_I2C_Read... [14:49:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:49:32]Read from MH i2c: E2 [14:49:32]MH_I2C_Read... [14:49:32]Read from MH i2c: E2 0E 00 [14:49:32]MH_I2C_Read... [14:49:32]Read from MH i2c: E2 0E 00 8F 87 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 A4 [14:49:32]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [14:49:32]wFMCommunicate OK [14:49:32]SAM_PROTO_GetShiftState done [14:49:32]FM_GetShiftState done [14:49:32]opened in 1712881416 [14:49:32]opened+sec_in_day 1712967816 [14:49:32]quantity*price = 50025 [14:49:32]sum+1 = 50026 [14:49:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.25 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 0.00 Безнал.: 500.25 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 156 12.04.2024 14:49 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 28707 ФПД: 253600411948809 1/tax-web-control/client/api/v1/ticket?date=20240412T144941&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28707&fm=253600411948809&tin=02508201610067®Number=0000138879044617&sum=50025 [14:49:33]StoreToDocumentArchive [14:49:33]shift 113 fd 28707 [14:49:33]save to /storage/0113/doc_00028707 [14:49:33]save last doc name /storage/0113/doc_00028707 to /storage/kkm_last_doc_name [14:49:33]save OK [14:49:33]Clear old archive folders... [14:49:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:49:33]tlvbuf is 01AA90C0 [14:49:33]SAM_PROTO_ClearQueue [14:49:33]wFMCommunicate request_size=4 [14:49:33]MH_SAM_APDU [14:49:33]CAPDU: 80 09 00 00 [14:49:33]Write to MH i2c: E2 08 00 9C 87 80 09 00 00 00 00 00 00 95 [14:49:33]Write i2c OK [14:49:33]MH_I2C_Read... [14:49:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:49:33]Read from MH i2c: E2 [14:49:33]MH_I2C_Read... [14:49:33]Read from MH i2c: E2 03 00 [14:49:33]MH_I2C_Read... [14:49:33]Read from MH i2c: E2 03 00 9C 87 00 90 00 97 [14:49:33]RAPDU: 90 00 [14:49:33]wFMCommunicate OK [14:49:33]SAM_PROTO_ClearQueue done [14:49:33]KKMCreateOFDPacket [14:49:33]OFDProtocolAddRootSTLVToBuf [14:49:33]FM_MakeSignedData [14:49:33]FM_MakeSignedData [14:49:33]SAM_PROTO_SignData [14:49:33]wFMCommunicate request_size=4 [14:49:33]MH_SAM_APDU [14:49:33]CAPDU: 80 0D 01 02 [14:49:33]Write to MH i2c: E2 08 00 9D 87 80 0D 01 02 00 00 00 00 9D [14:49:33]Write i2c OK [14:49:33]MH_I2C_Read... [14:49:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:49:33]Read from MH i2c: E2 [14:49:33]MH_I2C_Read... [14:49:33]Read from MH i2c: E2 03 00 [14:49:33]MH_I2C_Read... [14:49:33]Read from MH i2c: E2 03 00 9D 87 00 90 00 98 [14:49:33]RAPDU: 90 00 [14:49:33]wFMCommunicate OK [14:49:33]wFMCommunicate request_size=255 [14:49:33]MH_SAM_APDU [14:49: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 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 69 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 05 4A 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 23 70 00 00 35 04 06 00 E6 [14:49:33]Write to MH i2c: E2 02 01 9E 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 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 69 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 05 4A 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 23 70 00 00 35 04 06 00 E6 00 00 E5 [14:49:33]Write i2c OK [14:49:33]MH_I2C_Read... [14:49:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:49:34]Read from MH i2c: E2 [14:49:34]MH_I2C_Read... [14:49:34]Read from MH i2c: E2 03 00 [14:49:34]MH_I2C_Read... [14:49:34]Read from MH i2c: E2 03 00 9E 87 00 90 00 99 [14:49:34]RAPDU: 90 00 [14:49:34]wFMCommunicate OK [14:49:34]wFMCommunicate request_size=10 [14:49:34]MH_SAM_APDU [14:49:34]CAPDU: 80 0D 02 02 05 A5 F2 78 17 09 [14:49:34]Write to MH i2c: E2 0D 00 9F 87 80 0D 02 02 05 00 A5 F2 78 17 09 00 00 D9 [14:49:34]Write i2c OK [14:49:34]MH_I2C_Read... [14:49:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:49:34]Read from MH i2c: E2 [14:49:34]MH_I2C_Read... [14:49:34]Read from MH i2c: E2 03 00 [14:49:34]MH_I2C_Read... [14:49:34]Read from MH i2c: E2 03 00 9F 87 00 90 00 9A [14:49:34]RAPDU: 90 00 [14:49:34]wFMCommunicate OK [14:49:34]wFMCommunicate request_size=4 [14:49:34]MH_SAM_APDU [14:49:34]CAPDU: 80 0D 03 02 [14:49:34]Write to MH i2c: E2 08 00 A0 87 80 0D 03 02 00 00 00 00 A2 [14:49:34]Write i2c OK [14:49:34]MH_I2C_Read... [14:49:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:49:34]Read from MH i2c: E2 [14:49:34]MH_I2C_Read... [14:49:34]Read from MH i2c: E2 0B 00 [14:49:34]MH_I2C_Read... [14:49:34]Read from MH i2c: E2 0B 00 A0 87 00 84 BE AF 33 AC FD 4A 96 90 00 50 [14:49:34]RAPDU: 84 BE AF 33 AC FD 4A 96 90 00 [14:49:34]wFMCommunicate OK [14:49:34]SAM_PROTO_SignData done [14:49:34]FM_MakeSignedData done [14:49:34]CreateOFDProtocolMessage [14:49:34]wFMCommunicate request_size=4 [14:49:34]MH_SAM_APDU [14:49:34]CAPDU: 80 11 00 00 [14:49:34]Write to MH i2c: E2 08 00 A1 87 80 11 00 00 00 00 00 00 A2 [14:49:34]Write i2c OK [14:49:34]MH_I2C_Read... [14:49:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:49:34]Read from MH i2c: E2 [14:49:34]MH_I2C_Read... [14:49:34]Read from MH i2c: E2 17 00 [14:49:34]MH_I2C_Read... [14:49:34]Read from MH i2c: E2 17 00 A1 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 F1 [14:49:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:49:34]wFMCommunicate OK [14:49:34]CreateOFDProtocolMessage done [14:49:34]OFDSenderStorePacket 28707 [14:49:34]StoreOFDPacket docnum=28707 [14:49:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 19 64 07 01 95 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 69 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 05 4A 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 23 70 00 00 35 04 06 00 E6 A5 F2 78 17 09 84 BE AF 33 AC FD 4A 96 [14:49:34]CheckFolder [14:49:34]dirname=/storage/ofd_packets [14:49:34]CheckFolder done [14:49:34]ProducePacketName [14:49:34]name=ofd_packets/00028707 [14:49:34]NVStorageSaveData ofd_packets/00028707 [14:49:34]File name is /storage/ofd_packets/00028707 [14:49:34]Write 301 bytes [14:49:34]NVStorageSaveData done [14:49:34]OFDSenderStorePacket done [14:49:34]KKMCreateOFDPacket done [14:49:34]NVStorageSaveData kkm_last_timestamp [14:49:34]File name is /storage/kkm_last_timestamp [14:49:34]Write 4 bytes [14:49:34]NVStorageSaveData done [14:49:34]ExternCall_PrintAddStr [14:49:34]wPrintStart [14:49:34]Write to MH i2c: 01 00 00 A2 87 29 [14:49:34]Write i2c OK [14:49:34]MH_I2C_Read... [14:49:34]Read from MH i2c: 01 [14:49:34]MH_I2C_Read... [14:49:34]Read from MH i2c: 01 07 00 [14:49:34]MH_I2C_Read... [14:49:34]Read from MH i2c: 01 07 00 A2 87 00 00 00 00 00 FF 0F 3E [14:49:34]RasterBufferAndPrint [14:49:34]line Счет N : (1)347041 [14:49:34]line ИНН: 02508201610067 [14:49:34]line Контрольно-Кассовый Чек [14:49:34]line ПРОДАЖА [14:49:34]line ТРК (МРК, ГНК) : 42 [14:49:34]line Товар: 2710124130 [14:49:34]line Аи-92-К-5 [14:49:34]line 7.780 * 64.30 [14:49:34]line = 500.25 [14:49:34]line НДС 12% НСП 1% [14:49:34]line > о реализуемом товаре [14:49:34]line ИТОГО: 500.25 [14:49:34]line НСП 1% : 4.43 [14:49:34]line НДС 12% : 53.12 [14:49:34]line Наличными: 0.00 [14:49:34]line Безнал.: 500.25 [14:49:34]line Место: АЗС № 108 "Партнер Нефть" [14:49:34]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [14:49:34]line СНО: Общий режим [14:49:34]line Чек 156 12.04.2024 14:49 [14:49:34]line Смена: 113 ФФД: 1.0 [14:49:34]line ЗНМ: 0300000027 [14:49:34]line РНМ: 0000138879044617 [14:49:34]line Версия ККМ: 001 [14:49:34]line Платежная система: АКБ Кыргызстан [14:49:34]line ФМ: 0000000000963154 [14:49:34]line ФД: 28707 [14:49:34]line ФПД: 253600411948809 [14:49:34]line 1/tax-web-control/client/api/v1/ticket?date=20240412T144941&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28707&fm=253600411948809&tin=02508201610067®Number=0000138879044617&sum=50025 [14:49:34]OFD Sender: Processing packet 28707 [packets to send 8, broken 7] [14:49:34]ProducePacketName [14:49:34]name=ofd_packets/00028707 [14:49:34]OFD Sender: To server: pG, [14:49:34]CommunicateWithHost lk.salyk.kg:30040 [14:49:34]ConnectInit lk.salyk.kg [14:49:34]written 0, free lines is 4095 [14:49:34]Connected sock=7 [14:49:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 19 64 07 01 95 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 69 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 05 4A 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 23 70 00 00 35 04 06 00 E6 A5 F2 78 17 09 84 BE AF 33 AC FD 4A 96 [14:49:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 4F 54 47 00 80 93 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 23 70 00 00 F4 03 04 00 AF F4 18 66 B6 04 01 00 00 33 52 64 EE C3 C3 6E A4 [14:49:34]CommunicateWithHost err = 0 [14:49:34]CheckOFDResponse [14:49:34]1017 (14) - 77093643461234 [14:49:34]1041 (16) - 0000000000963154 [14:49:34]1040 (4) - 28707 [14:49:34]1012 (4) - 12.04.2024 08:45 [14:49:34]1206 (1) - 0 [14:49:34]OFD Sender: Remove packet 28707 [14:49:34]ProducePacketName [14:49:34]name=ofd_packets/00028707 [14:49:34]NVStorageDeleteData [14:49:35]Write to MH i2c: 01 00 00 CB 87 52 [14:49:35]Write i2c OK [14:49:35]MH_I2C_Read... [14:49:35]Read from MH i2c: 01 [14:49:35]MH_I2C_Read... [14:49:35]Read from MH i2c: 01 07 00 [14:49:35]MH_I2C_Read... [14:49:35]Read from MH i2c: 01 07 00 CB 87 00 00 00 00 00 DE 0C 43 [14:49:35]RasterBufferAndPrint [14:49:35]line [14:49:35]line [14:49:35]line [14:49:35]line [14:49:35]line [14:49:35]written 0, free lines is 3300 [14:49:35]MH_Cut [14:49:35]Write to MH i2c: D1 01 00 D2 87 01 2B [14:49:35]Write i2c OK [14:49:35]MH_I2C_Read... [14:49:35]Read from MH i2c: D1 [14:49:35]MH_I2C_Read... [14:49:35]Read from MH i2c: D1 01 00 [14:49:35]MH_I2C_Read... [14:49:35]Read from MH i2c: D1 01 00 D2 87 00 2A [14:49:35]Write to MH i2c: 01 00 00 D3 87 5A [14:49:35]Write i2c OK [14:49:35]MH_I2C_Read... [14:49:35]OFD Sender: No OFD packet to send [14:49:35]*** Cut start [14:49:35]*** Partial cut [14:49:35]*** CUTSNS_PIN = 1 [14:49:35]*** CUTSNS_PIN = 0 [14:49:36]*** Brake cut motor [14:49:36]Read from MH i2c: 01 [14:49:36]MH_I2C_Read... [14:49:36]*** Stop cut motor [14:49:36]*** Cut end [14:49:36]Read from MH i2c: 01 07 00 [14:49:36]MH_I2C_Read... [14:49:36]Read from MH i2c: 01 07 00 D3 87 00 00 00 00 00 FF 0F 6F [14:49:36]process_action close_receipt done [14:49:36]requested_data is exist [14:49:36]produce_requested_data [14:49:36]requested_item fm.sn is exist - process it [14:49:36]wFMCommunicate request_size=4 [14:49:36]MH_SAM_APDU [14:49:36]CAPDU: 80 11 00 00 [14:49:36]Write to MH i2c: E2 08 00 D4 87 80 11 00 00 00 00 00 00 D5 [14:49:36]Write i2c OK [14:49:36]MH_I2C_Read... [14:49:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:49:36]Read from MH i2c: E2 [14:49:36]MH_I2C_Read... [14:49:36]Read from MH i2c: E2 17 00 [14:49:36]MH_I2C_Read... [14:49:36]Read from MH i2c: E2 17 00 D4 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 24 [14:49:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:49:36]wFMCommunicate OK [14:49:36]requested_item fd.num is exist - process it [14:49:36]SAM_PROTO_GetFieldsCounters [14:49:36]wFMCommunicate request_size=4 [14:49:36]MH_SAM_APDU [14:49:36]CAPDU: 80 13 00 00 [14:49:36]Write to MH i2c: E2 08 00 D5 87 80 13 00 00 00 00 00 00 D8 [14:49:36]Write i2c OK [14:49:36]MH_I2C_Read... [14:49:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:49:36]Read from MH i2c: E2 [14:49:36]MH_I2C_Read... [14:49:36]Read from MH i2c: E2 62 00 [14:49:36]MH_I2C_Read... [14:49:36]Read from MH i2c: E2 62 00 D5 87 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 23 70 00 00 0E 04 04 00 71 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 EE [14:49:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 23 70 00 00 0E 04 04 00 71 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 [14:49:36]wFMCommunicate OK [14:49:36]SAM_PROTO_GetFieldsCounters done [14:49:36]requested_item shift.num is exist - process it [14:49:36]requested_item shift.opened is exist - process it [14:49:36]req_shift_opened [14:49:36]FM_GetShiftState [14:49:36]SAM_PROTO_GetShiftState [14:49:36]wFMCommunicate request_size=4 [14:49:36]MH_SAM_APDU [14:49:36]CAPDU: 80 13 01 00 [14:49:36]Write to MH i2c: E2 08 00 D6 87 80 13 01 00 00 00 00 00 DA [14:49:36]Write i2c OK [14:49:36]MH_I2C_Read... [14:49:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:49:36]Read from MH i2c: E2 [14:49:36]MH_I2C_Read... [14:49:36]Read from MH i2c: E2 0E 00 [14:49:36]MH_I2C_Read... [14:49:36]Read from MH i2c: E2 0E 00 D6 87 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 EB [14:49:36]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [14:49:36]wFMCommunicate OK [14:49:36]SAM_PROTO_GetShiftState done [14:49:36]FM_GetShiftState done [14:49:36]req_shift_opened done [14:49:36]requested_item shift.open_date is exist - process it [14:49:36]req_shift_open_date [14:49:36]req_shift_open_date done [14:49:36]produce_requested_data done [14:49:36]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28707,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [14:49:36]process_action_free close_receipt [14:49:36]json_value_free [14:49:36]json_value_free done [14:49:36]process_json_proto returns [14:49:36]Send response to host [14:49:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28707,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [14:49:36]free response buf [14:49:36]execute_script done [14:49:36]execute_script returns [14:49:36]free content buf [14:49:36]Sock 5.Close socket [14:49:36]Sock 5.Thread stoped [14:49:40]OFD Sender: No OFD packet to send [14:49:45]OFD Sender: No OFD packet to send [14:49:50]OFD Sender: No OFD packet to send [14:49:55]OFD Sender: No OFD packet to send [14:50:00]OFD Sender: No OFD packet to send [14:50:05]OFD Sender: No OFD packet to send [14:50:10]OFD Sender: No OFD packet to send [14:50:15]OFD Sender: No OFD packet to send [14:50:20]OFD Sender: No OFD packet to send [14:50:25]OFD Sender: No OFD packet to send [14:50:30]OFD Sender: No OFD packet to send [14:50:35]OFD Sender: No OFD packet to send [14:50:40]OFD Sender: No OFD packet to send [14:50:45]OFD Sender: No OFD packet to send [14:50:50]OFD Sender: No OFD packet to send [14:50:55]OFD Sender: No OFD packet to send [14:51:00]OFD Sender: No OFD packet to send [14:51:05]OFD Sender: No OFD packet to send [14:51:10]OFD Sender: No OFD packet to send [14:51:15]OFD Sender: No OFD packet to send [14:51:20]OFD Sender: No OFD packet to send [14:51:25]OFD Sender: No OFD packet to send [14:51:30]OFD Sender: No OFD packet to send [14:51:35]OFD Sender: No OFD packet to send [14:51:40]OFD Sender: No OFD packet to send [14:51:45]OFD Sender: No OFD packet to send [14:51:50]OFD Sender: No OFD packet to send [14:51:55]OFD Sender: No OFD packet to send [14:52:00]OFD Sender: No OFD packet to send [14:52:05]OFD Sender: No OFD packet to send [14:52:10]OFD Sender: No OFD packet to send [14:52:15]OFD Sender: No OFD packet to send [14:52:20]OFD Sender: No OFD packet to send [14:52:25]OFD Sender: No OFD packet to send [14:52:26]accept exits with 6 [14:52:26]New connection [14:52:26]New thread 3066498404 created [14:52:26]Thread 3066641764 joined [14:52:26]Waiting for new connection... [14:52:26] Sock 6.Parse request [14:52:26]Sock 6.Check first char [14:52:26]Sock 6.First char is OK [14:52:26]request: POST /json_proto HTTP/1.0 [14:52:26]Method: POST [14:52:26]URL: /json_proto [14:52:26]Method is POST - this is cgi request [14:52:26]url: /json_proto [14:52:26]query_string will be loaded in cgi processing [14:52:26]execute_cgi json_proto POST (null) [14:52:26]execute_cgi path=json_proto method=POST [14:52:26]POST find Content-Length [14:52:26]Host: 172.17.33.3:8080 [14:52:26]Content-Length: 682 [14:52:26]Content-Type: application/json [14:52:26] [14:52:26]POST finish read [14:52:26]Found Content-Length = 682 [14:52:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347042", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 18.670, "sum" : 1200.48, "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:52:26]execute_script... [14:52: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)347042", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 18.670, "sum" : 1200.48, "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:52:26]POST & json_proto [14:52:26]process_json_proto [14:52:26]json parsed OK: [14:52:26]protocol is kg_v1.0 [14:52:26]action value=close_receipt [14:52:26]process_action close_receipt [14:52:26]cmd_close_receipt [14:52:26]MH_GetDate [14:52:26]Write to MH i2c: F0 00 00 D7 87 4D [14:52:26]Write i2c OK [14:52:26]MH_I2C_Read... [14:52:26]Read from MH i2c: F0 [14:52:26]MH_I2C_Read... [14:52:26]Read from MH i2c: F0 09 00 [14:52:26]MH_I2C_Read... [14:52:26]Read from MH i2c: F0 09 00 D7 87 00 B3 4A 19 66 23 5B 8F 65 44 [14:52:26]GetLastDocTimeStamp 1712933381 [14:52:26]current date 1712933555 [14:52:26]FM_GetShiftState [14:52:26]SAM_PROTO_GetShiftState [14:52:26]wFMCommunicate request_size=4 [14:52:26]MH_SAM_APDU [14:52:26]CAPDU: 80 13 01 00 [14:52:26]Write to MH i2c: E2 08 00 D8 87 80 13 01 00 00 00 00 00 DC [14:52:26]Write i2c OK [14:52:26]MH_I2C_Read... [14:52:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:52:26]Read from MH i2c: E2 [14:52:26]MH_I2C_Read... [14:52:26]Read from MH i2c: E2 0E 00 [14:52:26]MH_I2C_Read... [14:52:26]Read from MH i2c: E2 0E 00 D8 87 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 ED [14:52:26]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [14:52:26]wFMCommunicate OK [14:52:26]SAM_PROTO_GetShiftState done [14:52:26]FM_GetShiftState done [14:52:26]opened in 1712881416 [14:52:26]opened+sec_in_day 1712967816 [14:52:26]quantity*price = 120048 [14:52:26]sum+1 = 120049 [14:52:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.48 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.48 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 157 12.04.2024 14:52 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28708 ФПД: 21330443432495 1/tax-web-control/client/api/v1/ticket?date=20240412T145235&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28708&fm=21330443432495&tin=02508201610067®Number=0000138879044617&sum=120000 [14:52:28]StoreToDocumentArchive [14:52:28]shift 113 fd 28708 [14:52:28]save to /storage/0113/doc_00028708 [14:52:28]save last doc name /storage/0113/doc_00028708 to /storage/kkm_last_doc_name [14:52:28]save OK [14:52:28]Clear old archive folders... [14:52:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:52:28]tlvbuf is 01AE5070 [14:52:28]SAM_PROTO_ClearQueue [14:52:28]wFMCommunicate request_size=4 [14:52:28]MH_SAM_APDU [14:52:28]CAPDU: 80 09 00 00 [14:52:28]Write to MH i2c: E2 08 00 E5 87 80 09 00 00 00 00 00 00 DE [14:52:28]Write i2c OK [14:52:28]MH_I2C_Read... [14:52:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:52:28]Read from MH i2c: E2 [14:52:28]MH_I2C_Read... [14:52:28]Read from MH i2c: E2 03 00 [14:52:28]MH_I2C_Read... [14:52:28]Read from MH i2c: E2 03 00 E5 87 00 90 00 E0 [14:52:28]RAPDU: 90 00 [14:52:28]wFMCommunicate OK [14:52:28]SAM_PROTO_ClearQueue done [14:52:28]KKMCreateOFDPacket [14:52:28]OFDProtocolAddRootSTLVToBuf [14:52:28]FM_MakeSignedData [14:52:28]FM_MakeSignedData [14:52:28]SAM_PROTO_SignData [14:52:28]wFMCommunicate request_size=4 [14:52:28]MH_SAM_APDU [14:52:28]CAPDU: 80 0D 01 02 [14:52:28]Write to MH i2c: E2 08 00 E6 87 80 0D 01 02 00 00 00 00 E6 [14:52:28]Write i2c OK [14:52:28]MH_I2C_Read... [14:52:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:52:28]Read from MH i2c: E2 [14:52:28]MH_I2C_Read... [14:52:28]Read from MH i2c: E2 03 00 [14:52:28]MH_I2C_Read... [14:52:28]Read from MH i2c: E2 03 00 E6 87 00 90 00 E1 [14:52:28]RAPDU: 90 00 [14:52:28]wFMCommunicate OK [14:52:28]wFMCommunicate request_size=255 [14:52:28]MH_SAM_APDU [14:52:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EE 48 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 F0 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 9D 00 00 00 F4 03 04 00 B3 4A 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 24 70 00 00 35 04 06 00 13 [14:52:28]Write to MH i2c: E2 02 01 E7 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 35 FF 03 08 00 03 EE 48 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 F0 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 9D 00 00 00 F4 03 04 00 B3 4A 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 24 70 00 00 35 04 06 00 13 00 00 C1 [14:52:28]Write i2c OK [14:52:28]MH_I2C_Read... [14:52:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:52:28]Read from MH i2c: E2 [14:52:28]MH_I2C_Read... [14:52:28]Read from MH i2c: E2 03 00 [14:52:28]MH_I2C_Read... [14:52:28]Read from MH i2c: E2 03 00 E7 87 00 90 00 E2 [14:52:28]RAPDU: 90 00 [14:52:28]wFMCommunicate OK [14:52:28]wFMCommunicate request_size=10 [14:52:28]MH_SAM_APDU [14:52:28]CAPDU: 80 0D 02 02 05 66 61 80 F2 2F [14:52:28]Write to MH i2c: E2 0D 00 E8 87 80 0D 02 02 05 00 66 61 80 F2 2F 00 00 5B [14:52:28]Write i2c OK [14:52:28]MH_I2C_Read... [14:52:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:52:28]Read from MH i2c: E2 [14:52:28]MH_I2C_Read... [14:52:28]Read from MH i2c: E2 03 00 [14:52:28]MH_I2C_Read... [14:52:28]Read from MH i2c: E2 03 00 E8 87 00 90 00 E3 [14:52:28]RAPDU: 90 00 [14:52:28]wFMCommunicate OK [14:52:28]wFMCommunicate request_size=4 [14:52:28]MH_SAM_APDU [14:52:28]CAPDU: 80 0D 03 02 [14:52:28]Write to MH i2c: E2 08 00 E9 87 80 0D 03 02 00 00 00 00 EB [14:52:28]Write i2c OK [14:52:28]MH_I2C_Read... [14:52:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:52:28]Read from MH i2c: E2 [14:52:28]MH_I2C_Read... [14:52:28]Read from MH i2c: E2 0B 00 [14:52:28]MH_I2C_Read... [14:52:28]Read from MH i2c: E2 0B 00 E9 87 00 11 CD 9C 44 F5 A0 E5 4E 90 00 72 [14:52:28]RAPDU: 11 CD 9C 44 F5 A0 E5 4E 90 00 [14:52:28]wFMCommunicate OK [14:52:28]SAM_PROTO_SignData done [14:52:28]FM_MakeSignedData done [14:52:28]CreateOFDProtocolMessage [14:52:28]wFMCommunicate request_size=4 [14:52:28]MH_SAM_APDU [14:52:28]CAPDU: 80 11 00 00 [14:52:28]Write to MH i2c: E2 08 00 EA 87 80 11 00 00 00 00 00 00 EB [14:52:28]Write i2c OK [14:52:28]MH_I2C_Read... [14:52:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:52:28]Read from MH i2c: E2 [14:52:28]MH_I2C_Read... [14:52:28]Read from MH i2c: E2 17 00 [14:52:28]MH_I2C_Read... [14:52:28]Read from MH i2c: E2 17 00 EA 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 3A [14:52:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:52:28]wFMCommunicate OK [14:52:28]CreateOFDProtocolMessage done [14:52:28]OFDSenderStorePacket 28708 [14:52:28]StoreOFDPacket docnum=28708 [14:52:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 C5 DB 07 01 65 57 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EE 48 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 F0 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 9D 00 00 00 F4 03 04 00 B3 4A 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 24 70 00 00 35 04 06 00 13 66 61 80 F2 2F 11 CD 9C 44 F5 A0 E5 4E [14:52:28]CheckFolder [14:52:28]dirname=/storage/ofd_packets [14:52:28]CheckFolder done [14:52:28]ProducePacketName [14:52:28]name=ofd_packets/00028708 [14:52:28]NVStorageSaveData ofd_packets/00028708 [14:52:28]File name is /storage/ofd_packets/00028708 [14:52:28]Write 301 bytes [14:52:28]NVStorageSaveData done [14:52:28]OFDSenderStorePacket done [14:52:28]KKMCreateOFDPacket done [14:52:28]NVStorageSaveData kkm_last_timestamp [14:52:28]File name is /storage/kkm_last_timestamp [14:52:28]Write 4 bytes [14:52:28]NVStorageSaveData done [14:52:28]ExternCall_PrintAddStr [14:52:28]wPrintStart [14:52:28]Write to MH i2c: 01 00 00 EB 87 72 [14:52:28]Write i2c OK [14:52:28]MH_I2C_Read... [14:52:28]Read from MH i2c: 01 [14:52:28]MH_I2C_Read... [14:52:28]Read from MH i2c: 01 07 00 [14:52:28]MH_I2C_Read... [14:52:28]Read from MH i2c: 01 07 00 EB 87 00 00 00 00 00 FF 0F 87 [14:52:28]RasterBufferAndPrint [14:52:28]line Счет N : (1)347042 [14:52:28]line ИНН: 02508201610067 [14:52:28]line Контрольно-Кассовый Чек [14:52:28]line ПРОДАЖА [14:52:28]line ТРК (МРК, ГНК) : 32 [14:52:28]line Товар: 2710124130 [14:52:28]line Аи-92-К-5 [14:52:28]line 18.670 * 64.30 [14:52:28]line = 1200.48 [14:52:28]line НДС 12% НСП 1% [14:52:28]line > о реализуемом товаре [14:52:28]line ОКРУГЛЕНИЕ: -0.48 [14:52:28]line ИТОГО: 1200.00 [14:52:28]line Внесено: 1200.00 [14:52:28]line СДАЧА: 0.00 [14:52:28]line НСП 1% : 10.62 [14:52:28]line НДС 12% : 127.48 [14:52:28]line Наличными: 1200.00 [14:52:28]line Безнал.: 0.00 [14:52:28]line Место: АЗС № 108 "Партнер Нефть" [14:52:28]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [14:52:28]line СНО: Общий режим [14:52:28]line Чек 157 12.04.2024 14:52 [14:52:28]line Смена: 113 ФФД: 1.0 [14:52:28]line ЗНМ: 0300000027 [14:52:28]line РНМ: 0000138879044617 [14:52:28]line Версия ККМ: 001 [14:52:28]line ФМ: 0000000000963154 [14:52:28]line ФД: 28708 [14:52:28]line ФПД: 21330443432495 [14:52:28]line 1/tax-web-control/client/api/v1/ticket?date=20240412T145235&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28708&fm=21330443432495&tin=02508201610067®Number=0000138879044617&sum=120000 [14:52:28]written 0, free lines is 4095 [14:52:28]OFD Sender: Processing packet 28708 [packets to send 8, broken 7] [14:52:28]ProducePacketName [14:52:28]name=ofd_packets/00028708 [14:52:28]OFD Sender: To server: pG, [14:52:28]CommunicateWithHost lk.salyk.kg:30040 [14:52:28]ConnectInit lk.salyk.kg [14:52:29]Connected sock=7 [14:52:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 C5 DB 07 01 65 57 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EE 48 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 F0 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 9D 00 00 00 F4 03 04 00 B3 4A 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 24 70 00 00 35 04 06 00 13 66 61 80 F2 2F 11 CD 9C 44 F5 A0 E5 4E [14:52:29]Write to MH i2c: 01 00 00 15 88 9D [14:52:29]Write i2c OK [14:52:29]MH_I2C_Read... [14:52:29]Read from MH i2c: 01 [14:52:29]MH_I2C_Read... [14:52:29]Read from MH i2c: 01 07 00 [14:52:29]MH_I2C_Read... [14:52:29]Read from MH i2c: 01 07 00 15 88 00 00 00 00 00 CA 0C 7A [14:52:29]RasterBufferAndPrint [14:52:29]line [14:52:29]line [14:52:29]line [14:52:29]line [14:52:29]line [14:52:29]written 0, free lines is 3280 [14:52:29]MH_Cut [14:52:29]Write to MH i2c: D1 01 00 1C 88 01 76 [14:52:29]Write i2c OK [14:52:29]MH_I2C_Read... [14:52:29]Read from MH i2c: D1 [14:52:29]MH_I2C_Read... [14:52:29]Read from MH i2c: D1 01 00 [14:52:29]MH_I2C_Read... [14:52:29]Read from MH i2c: D1 01 00 1C 88 00 75 [14:52:29]Write to MH i2c: 01 00 00 1D 88 A5 [14:52:29]Write i2c OK [14:52:29]MH_I2C_Read... [14:52:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 DF D6 47 00 BC CC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 24 70 00 00 F4 03 04 00 5D F5 18 66 B6 04 01 00 00 22 44 80 79 43 EF 85 90 [14:52:29]CommunicateWithHost err = 0 [14:52:29]CheckOFDResponse [14:52:29]1017 (14) - 77093643461234 [14:52:29]1041 (16) - 0000000000963154 [14:52:29]1040 (4) - 28708 [14:52:29]1012 (4) - 12.04.2024 08:48 [14:52:29]1206 (1) - 0 [14:52:29]OFD Sender: Remove packet 28708 [14:52:29]ProducePacketName [14:52:29]name=ofd_packets/00028708 [14:52:29]NVStorageDeleteData [14:52:29]OFD Sender: No OFD packet to send [14:52:29]*** Cut start [14:52:29]*** Partial cut [14:52:29]*** CUTSNS_PIN = 1 [14:52:29]*** CUTSNS_PIN = 0 [14:52:30]*** Brake cut motor [14:52:30]Read from MH i2c: 01 [14:52:30]MH_I2C_Read... [14:52:30]*** Stop cut motor [14:52:30]*** Cut end [14:52:30]Read from MH i2c: 01 07 00 [14:52:30]MH_I2C_Read... [14:52:30]Read from MH i2c: 01 07 00 1D 88 00 00 00 00 00 FF 0F BA [14:52:30]process_action close_receipt done [14:52:30]requested_data is exist [14:52:30]produce_requested_data [14:52:30]requested_item fm.sn is exist - process it [14:52:30]wFMCommunicate request_size=4 [14:52:30]MH_SAM_APDU [14:52:30]CAPDU: 80 11 00 00 [14:52:30]Write to MH i2c: E2 08 00 1E 88 80 11 00 00 00 00 00 00 20 [14:52:30]Write i2c OK [14:52:30]MH_I2C_Read... [14:52:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:52:30]Read from MH i2c: E2 [14:52:30]MH_I2C_Read... [14:52:30]Read from MH i2c: E2 17 00 [14:52:30]MH_I2C_Read... [14:52:30]Read from MH i2c: E2 17 00 1E 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 6F [14:52:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:52:30]wFMCommunicate OK [14:52:30]requested_item fd.num is exist - process it [14:52:30]SAM_PROTO_GetFieldsCounters [14:52:30]wFMCommunicate request_size=4 [14:52:30]MH_SAM_APDU [14:52:30]CAPDU: 80 13 00 00 [14:52:30]Write to MH i2c: E2 08 00 1F 88 80 13 00 00 00 00 00 00 23 [14:52:30]Write i2c OK [14:52:30]MH_I2C_Read... [14:52:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:52:30]Read from MH i2c: E2 [14:52:30]MH_I2C_Read... [14:52:30]Read from MH i2c: E2 62 00 [14:52:30]MH_I2C_Read... [14:52:30]Read from MH i2c: E2 62 00 1F 88 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 24 70 00 00 0E 04 04 00 71 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 3D [14:52:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 24 70 00 00 0E 04 04 00 71 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 [14:52:30]wFMCommunicate OK [14:52:30]SAM_PROTO_GetFieldsCounters done [14:52:30]requested_item shift.num is exist - process it [14:52:30]requested_item shift.opened is exist - process it [14:52:30]req_shift_opened [14:52:30]FM_GetShiftState [14:52:30]SAM_PROTO_GetShiftState [14:52:30]wFMCommunicate request_size=4 [14:52:30]MH_SAM_APDU [14:52:30]CAPDU: 80 13 01 00 [14:52:30]Write to MH i2c: E2 08 00 20 88 80 13 01 00 00 00 00 00 25 [14:52:30]Write i2c OK [14:52:30]MH_I2C_Read... [14:52:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:52:30]Read from MH i2c: E2 [14:52:30]MH_I2C_Read... [14:52:30]Read from MH i2c: E2 0E 00 [14:52:30]MH_I2C_Read... [14:52:30]Read from MH i2c: E2 0E 00 20 88 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 36 [14:52:30]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [14:52:30]wFMCommunicate OK [14:52:30]SAM_PROTO_GetShiftState done [14:52:30]FM_GetShiftState done [14:52:30]req_shift_opened done [14:52:30]requested_item shift.open_date is exist - process it [14:52:30]req_shift_open_date [14:52:30]req_shift_open_date done [14:52:30]produce_requested_data done [14:52:30]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28708,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [14:52:30]process_action_free close_receipt [14:52:30]json_value_free [14:52:30]json_value_free done [14:52:30]process_json_proto returns [14:52:30]Send response to host [14:52:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28708,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [14:52:30]free response buf [14:52:30]execute_script done [14:52:30]execute_script returns [14:52:30]free content buf [14:52:30]Sock 6.Close socket [14:52:30]Sock 6.Thread stoped [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:44]OFD Sender: No OFD packet to send [14:54:49]OFD Sender: No OFD packet to send [14:54:54]OFD Sender: No OFD packet to send [14:54:59]OFD Sender: No OFD packet to send [14:55:04]OFD Sender: No OFD packet to send [14:55:09]OFD Sender: No OFD packet to send [14:55:14]OFD Sender: No OFD packet to send [14:55:19]OFD Sender: No OFD packet to send [14:55:24]OFD Sender: No OFD packet to send [14:55:29]OFD Sender: No OFD packet to send [14:55:34]OFD Sender: No OFD packet to send [14:55:39]OFD Sender: No OFD packet to send [14:55:44]OFD Sender: No OFD packet to send [14:55:49]OFD Sender: No OFD packet to send [14:55:54]OFD Sender: No OFD packet to send [14:55:59]OFD Sender: No OFD packet to send [14:56:04]OFD Sender: No OFD packet to send [14:56:09]OFD Sender: No OFD packet to send [14:56:14]OFD Sender: No OFD packet to send [14:56:19]OFD Sender: No OFD packet to send [14:56:24]OFD Sender: No OFD packet to send [14:56:29]OFD Sender: No OFD packet to send [14:56:34]OFD Sender: No OFD packet to send [14:56:39]OFD Sender: No OFD packet to send [14:56:44]OFD Sender: No OFD packet to send [14:56:49]OFD Sender: No OFD packet to send [14:56:54]OFD Sender: No OFD packet to send [14:56:59]OFD Sender: No OFD packet to send [14:57:04]OFD Sender: No OFD packet to send [14:57:09]OFD Sender: No OFD packet to send [14:57:14]OFD Sender: No OFD packet to send [14:57:19]OFD Sender: No OFD packet to send [14:57:24]OFD Sender: No OFD packet to send [14:57:29]OFD Sender: No OFD packet to send [14:57:34]OFD Sender: No OFD packet to send [14:57:39]OFD Sender: No OFD packet to send [14:57:44]OFD Sender: No OFD packet to send [14:57:49]OFD Sender: No OFD packet to send [14:57:54]OFD Sender: No OFD packet to send [14:57:59]OFD Sender: No OFD packet to send [14:58:04]OFD Sender: No OFD packet to send [14:58:09]OFD Sender: No OFD packet to send [14:58:14]OFD Sender: No OFD packet to send [14:58:19]OFD Sender: No OFD packet to send [14:58:24]OFD Sender: No OFD packet to send [14:58:29]OFD Sender: No OFD packet to send [14:58:34]OFD Sender: No OFD packet to send [14:58:39]OFD Sender: No OFD packet to send [14:58:45]OFD Sender: No OFD packet to send [14:58:50]OFD Sender: No OFD packet to send [14:58:55]OFD Sender: No OFD packet to send [14:59:00]OFD Sender: No OFD packet to send [14:59:05]OFD Sender: No OFD packet to send [14:59:10]OFD Sender: No OFD packet to send [14:59:15]OFD Sender: No OFD packet to send [14:59:20]OFD Sender: No OFD packet to send [14:59:25]OFD Sender: No OFD packet to send [14:59:30]OFD Sender: No OFD packet to send [14:59:35]OFD Sender: No OFD packet to send [14:59:40]OFD Sender: No OFD packet to send [14:59:45]OFD Sender: No OFD packet to send [14:59:50]OFD Sender: No OFD packet to send [14:59:55]OFD Sender: No OFD packet to send [15:00:00]OFD Sender: No OFD packet to send [15:00:05]OFD Sender: No OFD packet to send [15:00:10]OFD Sender: No OFD packet to send [15:00:15]OFD Sender: No OFD packet to send [15:00:20]OFD Sender: No OFD packet to send [15:00:25]OFD Sender: No OFD packet to send [15:00:30]OFD Sender: No OFD packet to send [15:00:35]OFD Sender: No OFD packet to send [15:00:40]OFD Sender: No OFD packet to send [15:00:45]OFD Sender: No OFD packet to send [15:00:50]OFD Sender: No OFD packet to send [15:00:55]OFD Sender: No OFD packet to send [15:01:00]OFD Sender: No OFD packet to send [15:01:05]OFD Sender: No OFD packet to send [15:01:10]OFD Sender: No OFD packet to send [15:01:15]OFD Sender: No OFD packet to send [15:01:20]OFD Sender: No OFD packet to send [15:01:25]OFD Sender: No OFD packet to send [15:01:30]OFD Sender: No OFD packet to send [15:01:35]OFD Sender: No OFD packet to send [15:01:40]OFD Sender: No OFD packet to send [15:01:45]OFD Sender: No OFD packet to send [15:01:50]OFD Sender: No OFD packet to send [15:01:55]OFD Sender: No OFD packet to send [15:02:00]OFD Sender: No OFD packet to send [15:02:05]OFD Sender: No OFD packet to send [15:02:10]OFD Sender: No OFD packet to send [15:02:15]OFD Sender: No OFD packet to send [15:02:20]OFD Sender: No OFD packet to send [15:02:25]OFD Sender: No OFD packet to send [15:02:30]OFD Sender: No OFD packet to send [15:02:35]OFD Sender: No OFD packet to send [15:02:39]accept exits with 5 [15:02:39]New connection [15:02:39]New thread 3066641764 created [15:02:39]Thread 3066498404 joined [15:02:39]Waiting for new connection... [15:02:39] Sock 5.Parse request [15:02:39]Sock 5.Check first char [15:02:39]Sock 5.First char is OK [15:02:39]request: POST /json_proto HTTP/1.0 [15:02:39]Method: POST [15:02:39]URL: /json_proto [15:02:39]Method is POST - this is cgi request [15:02:39]url: /json_proto [15:02:39]query_string will be loaded in cgi processing [15:02:39]execute_cgi json_proto POST (null) [15:02:39]execute_cgi path=json_proto method=POST [15:02:39]POST find Content-Length [15:02:39]Host: 172.17.33.3:8080 [15:02:39]Content-Length: 678 [15:02:39]Content-Type: application/json [15:02:39] [15:02:39]POST finish read [15:02:39]Found Content-Length = 678 [15:02:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347043", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 12.450, "sum" : 800.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:02:39]execute_script... [15:02:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347043", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 12.450, "sum" : 800.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:02:39]POST & json_proto [15:02:39]process_json_proto [15:02:39]json parsed OK: [15:02:39]protocol is kg_v1.0 [15:02:39]action value=close_receipt [15:02:39]process_action close_receipt [15:02:39]cmd_close_receipt [15:02:39]MH_GetDate [15:02:39]Write to MH i2c: F0 00 00 21 88 98 [15:02:39]Write i2c OK [15:02:39]MH_I2C_Read... [15:02:39]Read from MH i2c: F0 [15:02:39]MH_I2C_Read... [15:02:39]Read from MH i2c: F0 09 00 [15:02:39]MH_I2C_Read... [15:02:39]Read from MH i2c: F0 09 00 21 88 00 18 4D 19 66 23 5B 8F 65 F7 [15:02:39]GetLastDocTimeStamp 1712933555 [15:02:39]current date 1712934168 [15:02:39]FM_GetShiftState [15:02:39]SAM_PROTO_GetShiftState [15:02:39]wFMCommunicate request_size=4 [15:02:39]MH_SAM_APDU [15:02:39]CAPDU: 80 13 01 00 [15:02:39]Write to MH i2c: E2 08 00 22 88 80 13 01 00 00 00 00 00 27 [15:02:39]Write i2c OK [15:02:39]MH_I2C_Read... [15:02:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:02:39]Read from MH i2c: E2 [15:02:39]MH_I2C_Read... [15:02:39]Read from MH i2c: E2 0E 00 [15:02:39]MH_I2C_Read... [15:02:39]Read from MH i2c: E2 0E 00 22 88 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 38 [15:02:39]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [15:02:39]wFMCommunicate OK [15:02:39]SAM_PROTO_GetShiftState done [15:02:39]FM_GetShiftState done [15:02:39]opened in 1712881416 [15:02:39]opened+sec_in_day 1712967816 [15:02:39]quantity*price = 80053 [15:02:39]sum+1 = 80055 [15:02:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 85.01 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 158 12.04.2024 15:02 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28709 ФПД: 251202608386871 1/tax-web-control/client/api/v1/ticket?date=20240412T150248&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28709&fm=251202608386871&tin=02508201610067®Number=0000138879044617&sum=80000 [15:02:40]StoreToDocumentArchive [15:02:40]shift 113 fd 28709 [15:02:40]save to /storage/0113/doc_00028709 [15:02:40]save last doc name /storage/0113/doc_00028709 to /storage/kkm_last_doc_name [15:02:40]save OK [15:02:40]Clear old archive folders... [15:02:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:02:40]tlvbuf is 01B30340 [15:02:40]SAM_PROTO_ClearQueue [15:02:40]wFMCommunicate request_size=4 [15:02:40]MH_SAM_APDU [15:02:40]CAPDU: 80 09 00 00 [15:02:40]Write to MH i2c: E2 08 00 2F 88 80 09 00 00 00 00 00 00 29 [15:02:40]Write i2c OK [15:02:40]MH_I2C_Read... [15:02:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:02:40]Read from MH i2c: E2 [15:02:40]MH_I2C_Read... [15:02:40]Read from MH i2c: E2 03 00 [15:02:40]MH_I2C_Read... [15:02:40]Read from MH i2c: E2 03 00 2F 88 00 90 00 2B [15:02:40]RAPDU: 90 00 [15:02:40]wFMCommunicate OK [15:02:40]SAM_PROTO_ClearQueue done [15:02:40]KKMCreateOFDPacket [15:02:40]OFDProtocolAddRootSTLVToBuf [15:02:40]FM_MakeSignedData [15:02:40]FM_MakeSignedData [15:02:40]SAM_PROTO_SignData [15:02:40]wFMCommunicate request_size=4 [15:02:40]MH_SAM_APDU [15:02:40]CAPDU: 80 0D 01 02 [15:02:40]Write to MH i2c: E2 08 00 30 88 80 0D 01 02 00 00 00 00 31 [15:02:40]Write i2c OK [15:02:40]MH_I2C_Read... [15:02:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:02:40]Read from MH i2c: E2 [15:02:40]MH_I2C_Read... [15:02:40]Read from MH i2c: E2 03 00 [15:02:40]MH_I2C_Read... [15:02:40]Read from MH i2c: E2 03 00 30 88 00 90 00 2C [15:02:40]RAPDU: 90 00 [15:02:40]wFMCommunicate OK [15:02:40]wFMCommunicate request_size=255 [15:02:40]MH_SAM_APDU [15:02:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 30 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 B6 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 18 4D 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 25 70 00 00 35 04 06 00 E4 [15:02:40]Write to MH i2c: E2 02 01 31 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 35 FF 03 08 00 03 A2 30 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 B6 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 18 4D 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 25 70 00 00 35 04 06 00 E4 00 00 4A [15:02:40]Write i2c OK [15:02:40]MH_I2C_Read... [15:02:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:02:41]Read from MH i2c: E2 [15:02:41]MH_I2C_Read... [15:02:41]Read from MH i2c: E2 03 00 [15:02:41]MH_I2C_Read... [15:02:41]Read from MH i2c: E2 03 00 31 88 00 90 00 2D [15:02:41]RAPDU: 90 00 [15:02:41]wFMCommunicate OK [15:02:41]wFMCommunicate request_size=10 [15:02:41]MH_SAM_APDU [15:02:41]CAPDU: 80 0D 02 02 05 77 AA 3D 53 37 [15:02:41]Write to MH i2c: E2 0D 00 32 88 80 0D 02 02 05 00 77 AA 3D 53 37 00 00 26 [15:02:41]Write i2c OK [15:02:41]MH_I2C_Read... [15:02:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:02:41]Read from MH i2c: E2 [15:02:41]MH_I2C_Read... [15:02:41]Read from MH i2c: E2 03 00 [15:02:41]MH_I2C_Read... [15:02:41]Read from MH i2c: E2 03 00 32 88 00 90 00 2E [15:02:41]RAPDU: 90 00 [15:02:41]wFMCommunicate OK [15:02:41]wFMCommunicate request_size=4 [15:02:41]MH_SAM_APDU [15:02:41]CAPDU: 80 0D 03 02 [15:02:41]Write to MH i2c: E2 08 00 33 88 80 0D 03 02 00 00 00 00 36 [15:02:41]Write i2c OK [15:02:41]MH_I2C_Read... [15:02:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:02:41]Read from MH i2c: E2 [15:02:41]MH_I2C_Read... [15:02:41]Read from MH i2c: E2 0B 00 [15:02:41]MH_I2C_Read... [15:02:41]Read from MH i2c: E2 0B 00 33 88 00 95 18 6D 0E DB B4 5A E8 90 00 30 [15:02:41]RAPDU: 95 18 6D 0E DB B4 5A E8 90 00 [15:02:41]wFMCommunicate OK [15:02:41]SAM_PROTO_SignData done [15:02:41]FM_MakeSignedData done [15:02:41]CreateOFDProtocolMessage [15:02:41]wFMCommunicate request_size=4 [15:02:41]MH_SAM_APDU [15:02:41]CAPDU: 80 11 00 00 [15:02:41]Write to MH i2c: E2 08 00 34 88 80 11 00 00 00 00 00 00 36 [15:02:41]Write i2c OK [15:02:41]MH_I2C_Read... [15:02:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:02:41]Read from MH i2c: E2 [15:02:41]MH_I2C_Read... [15:02:41]Read from MH i2c: E2 17 00 [15:02:41]MH_I2C_Read... [15:02:41]Read from MH i2c: E2 17 00 34 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 85 [15:02:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:02:41]wFMCommunicate OK [15:02:41]CreateOFDProtocolMessage done [15:02:41]OFDSenderStorePacket 28709 [15:02:41]StoreOFDPacket docnum=28709 [15:02:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 49 BA 07 01 DB CD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 30 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 B6 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 18 4D 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 25 70 00 00 35 04 06 00 E4 77 AA 3D 53 37 95 18 6D 0E DB B4 5A E8 [15:02:41]CheckFolder [15:02:41]dirname=/storage/ofd_packets [15:02:41]CheckFolder done [15:02:41]ProducePacketName [15:02:41]name=ofd_packets/00028709 [15:02:41]NVStorageSaveData ofd_packets/00028709 [15:02:41]File name is /storage/ofd_packets/00028709 [15:02:41]Write 301 bytes [15:02:41]NVStorageSaveData done [15:02:41]OFDSenderStorePacket done [15:02:41]KKMCreateOFDPacket done [15:02:41]NVStorageSaveData kkm_last_timestamp [15:02:41]File name is /storage/kkm_last_timestamp [15:02:41]Write 4 bytes [15:02:41]NVStorageSaveData done [15:02:41]ExternCall_PrintAddStr [15:02:41]wPrintStart [15:02:41]Write to MH i2c: 01 00 00 35 88 BD [15:02:41]Write i2c OK [15:02:41]MH_I2C_Read... [15:02:41]Read from MH i2c: 01 [15:02:41]MH_I2C_Read... [15:02:41]Read from MH i2c: 01 07 00 [15:02:41]MH_I2C_Read... [15:02:41]Read from MH i2c: 01 07 00 35 88 00 00 00 00 00 FF 0F D2 [15:02:41]RasterBufferAndPrint [15:02:41]line Счет N : (1)347043 [15:02:41]line ИНН: 02508201610067 [15:02:41]line Контрольно-Кассовый Чек [15:02:41]line ПРОДАЖА [15:02:41]line ТРК (МРК, ГНК) : 42 [15:02:41]line Товар: 2710124130 [15:02:41]line Аи-92-К-5 [15:02:41]line 12.450 * 64.30 [15:02:41]line = 800.54 [15:02:41]line НДС 12% НСП 1% [15:02:41]line > о реализуемом товаре [15:02:41]line ОКРУГЛЕНИЕ: -0.54 [15:02:41]line ИТОГО: 800.00 [15:02:41]line Внесено: 800.00 [15:02:41]line СДАЧА: 0.00 [15:02:41]line НСП 1% : 7.08 [15:02:41]line НДС 12% : 85.01 [15:02:41]line Наличными: 800.00 [15:02:41]line Безнал.: 0.00 [15:02:41]line Место: АЗС № 108 "Партнер Нефть" [15:02:41]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [15:02:41]line СНО: Общий режим [15:02:41]line Чек 158 12.04.2024 15:02 [15:02:41]line Смена: 113 ФФД: 1.0 [15:02:41]line ЗНМ: 0300000027 [15:02:41]line РНМ: 0000138879044617 [15:02:41]line Версия ККМ: 001 [15:02:41]line ФМ: 0000000000963154 [15:02:41]line ФД: 28709 [15:02:41]line ФПД: 251202608386871 [15:02:41]line 1/tax-web-control/client/api/v1/ticket?date=20240412T150248&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28709&fm=251202608386871&tin=02508201610067®Number=0000138879044617&sum=80000 [15:02:41]OFD Sender: Processing packet 28709 [packets to send 8, broken 7] [15:02:41]ProducePacketName [15:02:41]name=ofd_packets/00028709 [15:02:41]OFD Sender: To server: pG, [15:02:41]CommunicateWithHost lk.salyk.kg:30040 [15:02:41]ConnectInit lk.salyk.kg [15:02:41]written 0, free lines is 4095 [15:02:41]Connected sock=7 [15:02:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 49 BA 07 01 DB CD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 30 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 B6 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 18 4D 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 25 70 00 00 35 04 06 00 E4 77 AA 3D 53 37 95 18 6D 0E DB B4 5A E8 [15:02:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 E4 78 47 00 8C ED A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 25 70 00 00 F4 03 04 00 C2 F7 18 66 B6 04 01 00 00 42 07 6A 51 57 0D E9 17 [15:02:42]CommunicateWithHost err = 0 [15:02:42]CheckOFDResponse [15:02:42]1017 (14) - 77093643461234 [15:02:42]1041 (16) - 0000000000963154 [15:02:42]1040 (4) - 28709 [15:02:42]1012 (4) - 12.04.2024 08:58 [15:02:42]1206 (1) - 0 [15:02:42]OFD Sender: Remove packet 28709 [15:02:42]ProducePacketName [15:02:42]name=ofd_packets/00028709 [15:02:42]NVStorageDeleteData [15:02:42]Write to MH i2c: 01 00 00 5F 88 E7 [15:02:42]Write i2c OK [15:02:42]MH_I2C_Read... [15:02:42]Read from MH i2c: 01 [15:02:42]MH_I2C_Read... [15:02:42]Read from MH i2c: 01 07 00 [15:02:42]MH_I2C_Read... [15:02:42]Read from MH i2c: 01 07 00 5F 88 00 00 00 00 00 CE 0C C8 [15:02:42]RasterBufferAndPrint [15:02:42]line [15:02:42]line [15:02:42]line [15:02:42]line [15:02:42]line [15:02:42]written 0, free lines is 3285 [15:02:42]MH_Cut [15:02:42]Write to MH i2c: D1 01 00 66 88 01 C0 [15:02:42]Write i2c OK [15:02:42]MH_I2C_Read... [15:02:42]Read from MH i2c: D1 [15:02:42]MH_I2C_Read... [15:02:42]Read from MH i2c: D1 01 00 [15:02:42]MH_I2C_Read... [15:02:42]Read from MH i2c: D1 01 00 66 88 00 BF [15:02:42]Write to MH i2c: 01 00 00 67 88 EF [15:02:42]Write i2c OK [15:02:42]MH_I2C_Read... [15:02:42]OFD Sender: No OFD packet to send [15:02:42]*** Cut start [15:02:42]*** Partial cut [15:02:42]*** CUTSNS_PIN = 1 [15:02:43]*** CUTSNS_PIN = 0 [15:02:43]*** Brake cut motor [15:02:43]Read from MH i2c: 01 [15:02:43]MH_I2C_Read... [15:02:43]*** Stop cut motor [15:02:43]*** Cut end [15:02:43]Read from MH i2c: 01 07 00 [15:02:43]MH_I2C_Read... [15:02:43]Read from MH i2c: 01 07 00 67 88 00 00 00 00 00 FF 0F 04 [15:02:43]process_action close_receipt done [15:02:43]requested_data is exist [15:02:43]produce_requested_data [15:02:43]requested_item fm.sn is exist - process it [15:02:43]wFMCommunicate request_size=4 [15:02:43]MH_SAM_APDU [15:02:43]CAPDU: 80 11 00 00 [15:02:43]Write to MH i2c: E2 08 00 68 88 80 11 00 00 00 00 00 00 6A [15:02:43]Write i2c OK [15:02:43]MH_I2C_Read... [15:02:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:02:43]Read from MH i2c: E2 [15:02:43]MH_I2C_Read... [15:02:43]Read from MH i2c: E2 17 00 [15:02:43]MH_I2C_Read... [15:02:43]Read from MH i2c: E2 17 00 68 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 B9 [15:02:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:02:43]wFMCommunicate OK [15:02:43]requested_item fd.num is exist - process it [15:02:43]SAM_PROTO_GetFieldsCounters [15:02:43]wFMCommunicate request_size=4 [15:02:43]MH_SAM_APDU [15:02:43]CAPDU: 80 13 00 00 [15:02:43]Write to MH i2c: E2 08 00 69 88 80 13 00 00 00 00 00 00 6D [15:02:43]Write i2c OK [15:02:43]MH_I2C_Read... [15:02:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:02:43]Read from MH i2c: E2 [15:02:43]MH_I2C_Read... [15:02:43]Read from MH i2c: E2 62 00 [15:02:43]MH_I2C_Read... [15:02:43]Read from MH i2c: E2 62 00 69 88 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 25 70 00 00 0E 04 04 00 71 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 8B [15:02:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 25 70 00 00 0E 04 04 00 71 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:02:43]wFMCommunicate OK [15:02:43]SAM_PROTO_GetFieldsCounters done [15:02:43]requested_item shift.num is exist - process it [15:02:43]requested_item shift.opened is exist - process it [15:02:43]req_shift_opened [15:02:43]FM_GetShiftState [15:02:43]SAM_PROTO_GetShiftState [15:02:43]wFMCommunicate request_size=4 [15:02:43]MH_SAM_APDU [15:02:43]CAPDU: 80 13 01 00 [15:02:43]Write to MH i2c: E2 08 00 6A 88 80 13 01 00 00 00 00 00 6F [15:02:43]Write i2c OK [15:02:43]MH_I2C_Read... [15:02:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:02:43]Read from MH i2c: E2 [15:02:43]MH_I2C_Read... [15:02:43]Read from MH i2c: E2 0E 00 [15:02:43]MH_I2C_Read... [15:02:43]Read from MH i2c: E2 0E 00 6A 88 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 80 [15:02:43]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [15:02:43]wFMCommunicate OK [15:02:43]SAM_PROTO_GetShiftState done [15:02:43]FM_GetShiftState done [15:02:43]req_shift_opened done [15:02:43]requested_item shift.open_date is exist - process it [15:02:43]req_shift_open_date [15:02:43]req_shift_open_date done [15:02:43]produce_requested_data done [15:02:43]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28709,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [15:02:43]process_action_free close_receipt [15:02:43]json_value_free [15:02:43]json_value_free done [15:02:43]process_json_proto returns [15:02:43]Send response to host [15:02:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28709,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [15:02:43]free response buf [15:02:43]execute_script done [15:02:43]execute_script returns [15:02:43]free content buf [15:02:43]Sock 5.Close socket [15:02:43]Sock 5.Thread stoped [15:02:47]OFD Sender: No OFD packet to send [15:02:52]OFD Sender: No OFD packet to send [15:02:57]OFD Sender: No OFD packet to send [15:03:02]OFD Sender: No OFD packet to send [15:03:07]OFD Sender: No OFD packet to send [15:03:12]OFD Sender: No OFD packet to send [15:03:17]OFD Sender: No OFD packet to send [15:03:22]OFD Sender: No OFD packet to send [15:03:27]OFD Sender: No OFD packet to send [15:03:32]OFD Sender: No OFD packet to send [15:03:37]OFD Sender: No OFD packet to send [15:03:42]OFD Sender: No OFD packet to send [15:03:47]OFD Sender: No OFD packet to send [15:03:52]OFD Sender: No OFD packet to send [15:03:57]OFD Sender: No OFD packet to send [15:04:02]OFD Sender: No OFD packet to send [15:04:07]OFD Sender: No OFD packet to send [15:04:12]OFD Sender: No OFD packet to send [15:04:17]OFD Sender: No OFD packet to send [15:04:22]OFD Sender: No OFD packet to send [15:04:27]OFD Sender: No OFD packet to send [15:04:32]OFD Sender: No OFD packet to send [15:04:37]OFD Sender: No OFD packet to send [15:04:42]OFD Sender: No OFD packet to send [15:04:47]OFD Sender: No OFD packet to send [15:04:52]OFD Sender: No OFD packet to send [15:04:57]OFD Sender: No OFD packet to send [15:05:02]OFD Sender: No OFD packet to send [15:05:07]OFD Sender: No OFD packet to send [15:05:12]OFD Sender: No OFD packet to send [15:05:17]OFD Sender: No OFD packet to send [15:05:22]OFD Sender: No OFD packet to send [15:05:27]OFD Sender: No OFD packet to send [15:05:32]OFD Sender: No OFD packet to send [15:05:37]OFD Sender: No OFD packet to send [15:05:42]OFD Sender: No OFD packet to send [15:05:47]OFD Sender: No OFD packet to send [15:05:52]OFD Sender: No OFD packet to send [15:05:57]OFD Sender: No OFD packet to send [15:06:02]OFD Sender: No OFD packet to send [15:06:07]OFD Sender: No OFD packet to send [15:06:12]OFD Sender: No OFD packet to send [15:06:17]OFD Sender: No OFD packet to send [15:06:22]OFD Sender: No OFD packet to send [15:06:27]OFD Sender: No OFD packet to send [15:06:32]OFD Sender: No OFD packet to send [15:06:37]OFD Sender: No OFD packet to send [15:06:42]OFD Sender: No OFD packet to send [15:06:47]OFD Sender: No OFD packet to send [15:06:52]OFD Sender: No OFD packet to send [15:06:57]OFD Sender: No OFD packet to send [15:07:02]OFD Sender: No OFD packet to send [15:07:07]OFD Sender: No OFD packet to send [15:07:12]OFD Sender: No OFD packet to send [15:07:17]OFD Sender: No OFD packet to send [15:07:22]OFD Sender: No OFD packet to send [15:07:27]OFD Sender: No OFD packet to send [15:07:32]OFD Sender: No OFD packet to send [15:07:37]OFD Sender: No OFD packet to send [15:07:42]OFD Sender: No OFD packet to send [15:07:47]OFD Sender: No OFD packet to send [15:07:52]OFD Sender: No OFD packet to send [15:07:57]OFD Sender: No OFD packet to send [15:08:02]OFD Sender: No OFD packet to send [15:08:07]OFD Sender: No OFD packet to send [15:08:12]OFD Sender: No OFD packet to send [15:08:17]OFD Sender: No OFD packet to send [15:08:22]OFD Sender: No OFD packet to send [15:08:27]OFD Sender: No OFD packet to send [15:08:32]OFD Sender: No OFD packet to send [15:08:37]OFD Sender: No OFD packet to send [15:08:42]OFD Sender: No OFD packet to send [15:08:47]OFD Sender: No OFD packet to send [15:08:52]OFD Sender: No OFD packet to send [15:08:57]OFD Sender: No OFD packet to send [15:09:02]OFD Sender: No OFD packet to send [15:09:07]OFD Sender: No OFD packet to send [15:09:12]OFD Sender: No OFD packet to send [15:09:17]OFD Sender: No OFD packet to send [15:09:22]OFD Sender: No OFD packet to send [15:09:27]OFD Sender: No OFD packet to send [15:09:32]OFD Sender: No OFD packet to send [15:09:37]OFD Sender: No OFD packet to send [15:09:42]OFD Sender: No OFD packet to send [15:09:47]OFD Sender: No OFD packet to send [15:09:52]OFD Sender: No OFD packet to send [15:09:57]OFD Sender: No OFD packet to send [15:10:02]OFD Sender: No OFD packet to send [15:10:07]OFD Sender: No OFD packet to send [15:10:12]OFD Sender: No OFD packet to send [15:10:17]OFD Sender: No OFD packet to send [15:10:22]OFD Sender: No OFD packet to send [15:10:27]OFD Sender: No OFD packet to send [15:10:32]OFD Sender: No OFD packet to send [15:10:37]OFD Sender: No OFD packet to send [15:10:42]OFD Sender: No OFD packet to send [15:10:47]OFD Sender: No OFD packet to send [15:10:52]OFD Sender: No OFD packet to send [15:10:57]OFD Sender: No OFD packet to send [15:11:02]OFD Sender: No OFD packet to send [15:11:07]OFD Sender: No OFD packet to send [15:11:12]OFD Sender: No OFD packet to send [15:11:17]OFD Sender: No OFD packet to send [15:11:22]OFD Sender: No OFD packet to send [15:11:27]OFD Sender: No OFD packet to send [15:11:32]OFD Sender: No OFD packet to send [15:11:37]OFD Sender: No OFD packet to send [15:11:42]OFD Sender: No OFD packet to send [15:11:47]OFD Sender: No OFD packet to send [15:11:52]OFD Sender: No OFD packet to send [15:11:57]OFD Sender: No OFD packet to send [15:12:02]OFD Sender: No OFD packet to send [15:12:07]OFD Sender: No OFD packet to send [15:12:12]OFD Sender: No OFD packet to send [15:12:17]OFD Sender: No OFD packet to send [15:12:22]OFD Sender: No OFD packet to send [15:12:27]OFD Sender: No OFD packet to send [15:12:32]OFD Sender: No OFD packet to send [15:12:37]OFD Sender: No OFD packet to send [15:12:42]OFD Sender: No OFD packet to send [15:12:47]OFD Sender: No OFD packet to send [15:12:52]OFD Sender: No OFD packet to send [15:12:57]OFD Sender: No OFD packet to send [15:13:02]OFD Sender: No OFD packet to send [15:13:07]OFD Sender: No OFD packet to send [15:13:12]OFD Sender: No OFD packet to send [15:13:17]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:23]OFD Sender: No OFD packet to send [15:17:28]OFD Sender: No OFD packet to send [15:17:33]OFD Sender: No OFD packet to send [15:17:38]OFD Sender: No OFD packet to send [15:17:43]OFD Sender: No OFD packet to send [15:17:48]OFD Sender: No OFD packet to send [15:17:53]OFD Sender: No OFD packet to send [15:17:58]OFD Sender: No OFD packet to send [15:18:03]OFD Sender: No OFD packet to send [15:18:08]OFD Sender: No OFD packet to send [15:18:13]OFD Sender: No OFD packet to send [15:18:18]OFD Sender: No OFD packet to send [15:18:23]OFD Sender: No OFD packet to send [15:18:28]OFD Sender: No OFD packet to send [15:18:33]OFD Sender: No OFD packet to send [15:18:38]OFD Sender: No OFD packet to send [15:18:39]accept exits with 6 [15:18:39]New connection [15:18:39]New thread 3066498404 created [15:18:39]Thread 3066641764 joined [15:18:39]Waiting for new connection... [15:18:39] Sock 6.Parse request [15:18:39]Sock 6.Check first char [15:18:39]Sock 6.First char is OK [15:18:39]request: POST /json_proto HTTP/1.0 [15:18:39]Method: POST [15:18:39]URL: /json_proto [15:18:39]Method is POST - this is cgi request [15:18:39]url: /json_proto [15:18:39]query_string will be loaded in cgi processing [15:18:39]execute_cgi json_proto POST (null) [15:18:39]execute_cgi path=json_proto method=POST [15:18:39]POST find Content-Length [15:18:39]Host: 172.17.33.3:8080 [15:18:39]Content-Length: 813 [15:18:39]Content-Type: application/json [15:18:39] [15:18:39]POST finish read [15:18:39]Found Content-Length = 813 [15:18:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347045", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 8.290, "sum" : 600.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 600.20 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:18:39]execute_script... [15:18: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)347045", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 8.290, "sum" : 600.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 600.20 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:18:39]POST & json_proto [15:18:39]process_json_proto [15:18:39]json parsed OK: [15:18:39]protocol is kg_v1.0 [15:18:39]action value=close_receipt [15:18:39]process_action close_receipt [15:18:39]cmd_close_receipt [15:18:39]MH_GetDate [15:18:39]Write to MH i2c: F0 00 00 6B 88 E2 [15:18:39]Write i2c OK [15:18:39]MH_I2C_Read... [15:18:39]Read from MH i2c: F0 [15:18:39]MH_I2C_Read... [15:18:39]Read from MH i2c: F0 09 00 [15:18:39]MH_I2C_Read... [15:18:39]Read from MH i2c: F0 09 00 6B 88 00 D8 50 19 66 23 5B 8F 65 04 [15:18:39]GetLastDocTimeStamp 1712934168 [15:18:39]current date 1712935128 [15:18:39]FM_GetShiftState [15:18:39]SAM_PROTO_GetShiftState [15:18:39]wFMCommunicate request_size=4 [15:18:39]MH_SAM_APDU [15:18:39]CAPDU: 80 13 01 00 [15:18:39]Write to MH i2c: E2 08 00 6C 88 80 13 01 00 00 00 00 00 71 [15:18:39]Write i2c OK [15:18:39]MH_I2C_Read... [15:18:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:18:39]Read from MH i2c: E2 [15:18:39]MH_I2C_Read... [15:18:39]Read from MH i2c: E2 0E 00 [15:18:39]MH_I2C_Read... [15:18:39]Read from MH i2c: E2 0E 00 6C 88 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 82 [15:18:39]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [15:18:39]wFMCommunicate OK [15:18:39]SAM_PROTO_GetShiftState done [15:18:39]FM_GetShiftState done [15:18:39]opened in 1712881416 [15:18:39]opened+sec_in_day 1712967816 [15:18:39]quantity*price = 60019 [15:18:39]sum+1 = 60021 [15:18:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.20 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 0.00 Безнал.: 600.20 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 159 12.04.2024 15:18 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000963154 ФД: 28710 ФПД: 62531120307984 1/tax-web-control/client/api/v1/ticket?date=20240412T151848&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28710&fm=62531120307984&tin=02508201610067®Number=0000138879044617&sum=60020 [15:18:41]StoreToDocumentArchive [15:18:41]shift 113 fd 28710 [15:18:41]save to /storage/0113/doc_00028710 [15:18:41]save last doc name /storage/0113/doc_00028710 to /storage/kkm_last_doc_name [15:18:41]save OK [15:18:41]Clear old archive folders... [15:18:41]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:18:41]tlvbuf is 01ABC2B0 [15:18:41]SAM_PROTO_ClearQueue [15:18:41]wFMCommunicate request_size=4 [15:18:41]MH_SAM_APDU [15:18:41]CAPDU: 80 09 00 00 [15:18:41]Write to MH i2c: E2 08 00 79 88 80 09 00 00 00 00 00 00 73 [15:18:41]Write i2c OK [15:18:41]MH_I2C_Read... [15:18:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:18:41]Read from MH i2c: E2 [15:18:41]MH_I2C_Read... [15:18:41]Read from MH i2c: E2 03 00 [15:18:41]MH_I2C_Read... [15:18:41]Read from MH i2c: E2 03 00 79 88 00 90 00 75 [15:18:41]RAPDU: 90 00 [15:18:41]wFMCommunicate OK [15:18:41]SAM_PROTO_ClearQueue done [15:18:41]KKMCreateOFDPacket [15:18:41]OFDProtocolAddRootSTLVToBuf [15:18:41]FM_MakeSignedData [15:18:41]FM_MakeSignedData [15:18:41]SAM_PROTO_SignData [15:18:41]wFMCommunicate request_size=4 [15:18:41]MH_SAM_APDU [15:18:41]CAPDU: 80 0D 01 02 [15:18:41]Write to MH i2c: E2 08 00 7A 88 80 0D 01 02 00 00 00 00 7B [15:18:41]Write i2c OK [15:18:41]MH_I2C_Read... [15:18:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:18:41]Read from MH i2c: E2 [15:18:41]MH_I2C_Read... [15:18:41]Read from MH i2c: E2 03 00 [15:18:41]MH_I2C_Read... [15:18:41]Read from MH i2c: E2 03 00 7A 88 00 90 00 76 [15:18:41]RAPDU: 90 00 [15:18:41]wFMCommunicate OK [15:18:41]wFMCommunicate request_size=255 [15:18:41]MH_SAM_APDU [15:18: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 35 FF 03 08 00 03 62 20 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 74 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 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 E6 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 74 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 D8 50 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 26 70 00 00 35 04 06 00 38 DF 29 36 [15:18:41]Write to MH i2c: E2 02 01 7B 88 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 35 FF 03 08 00 03 62 20 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 74 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 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 E6 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 74 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 D8 50 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 26 70 00 00 35 04 06 00 38 DF 29 36 00 00 CB [15:18:41]Write i2c OK [15:18:41]MH_I2C_Read... [15:18:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:18:41]Read from MH i2c: E2 [15:18:41]MH_I2C_Read... [15:18:41]Read from MH i2c: E2 03 00 [15:18:41]MH_I2C_Read... [15:18:41]Read from MH i2c: E2 03 00 7B 88 00 90 00 77 [15:18:41]RAPDU: 90 00 [15:18:41]wFMCommunicate OK [15:18:41]wFMCommunicate request_size=7 [15:18:41]MH_SAM_APDU [15:18:41]CAPDU: 80 0D 02 02 02 9F 10 [15:18:41]Write to MH i2c: E2 0A 00 7C 88 80 0D 02 02 02 00 9F 10 00 00 31 [15:18:41]Write i2c OK [15:18:41]MH_I2C_Read... [15:18:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:18:41]Read from MH i2c: E2 [15:18:41]MH_I2C_Read... [15:18:41]Read from MH i2c: E2 03 00 [15:18:41]MH_I2C_Read... [15:18:41]Read from MH i2c: E2 03 00 7C 88 00 90 00 78 [15:18:41]RAPDU: 90 00 [15:18:41]wFMCommunicate OK [15:18:41]wFMCommunicate request_size=4 [15:18:41]MH_SAM_APDU [15:18:41]CAPDU: 80 0D 03 02 [15:18:41]Write to MH i2c: E2 08 00 7D 88 80 0D 03 02 00 00 00 00 80 [15:18:41]Write i2c OK [15:18:41]MH_I2C_Read... [15:18:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:18:41]Read from MH i2c: E2 [15:18:41]MH_I2C_Read... [15:18:41]Read from MH i2c: E2 0B 00 [15:18:41]MH_I2C_Read... [15:18:41]Read from MH i2c: E2 0B 00 7D 88 00 99 8F 43 73 59 D9 A6 5E 90 00 95 [15:18:41]RAPDU: 99 8F 43 73 59 D9 A6 5E 90 00 [15:18:41]wFMCommunicate OK [15:18:41]SAM_PROTO_SignData done [15:18:41]FM_MakeSignedData done [15:18:41]CreateOFDProtocolMessage [15:18:41]wFMCommunicate request_size=4 [15:18:41]MH_SAM_APDU [15:18:41]CAPDU: 80 11 00 00 [15:18:41]Write to MH i2c: E2 08 00 7E 88 80 11 00 00 00 00 00 00 80 [15:18:41]Write i2c OK [15:18:41]MH_I2C_Read... [15:18:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:18:41]Read from MH i2c: E2 [15:18:41]MH_I2C_Read... [15:18:41]Read from MH i2c: E2 17 00 [15:18:41]MH_I2C_Read... [15:18:41]Read from MH i2c: E2 17 00 7E 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 CF [15:18:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:18:41]wFMCommunicate OK [15:18:41]CreateOFDProtocolMessage done [15:18:41]OFDSenderStorePacket 28710 [15:18:41]StoreOFDPacket docnum=28710 [15:18:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 D8 4B 04 01 1D 73 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 62 20 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 74 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 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 E6 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 74 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 D8 50 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 26 70 00 00 35 04 06 00 38 DF 29 36 9F 10 99 8F 43 73 59 D9 A6 5E [15:18:41]CheckFolder [15:18:41]dirname=/storage/ofd_packets [15:18:41]CheckFolder done [15:18:41]ProducePacketName [15:18:41]name=ofd_packets/00028710 [15:18:41]NVStorageSaveData ofd_packets/00028710 [15:18:41]File name is /storage/ofd_packets/00028710 [15:18:41]Write 298 bytes [15:18:41]NVStorageSaveData done [15:18:41]OFDSenderStorePacket done [15:18:41]KKMCreateOFDPacket done [15:18:41]NVStorageSaveData kkm_last_timestamp [15:18:41]File name is /storage/kkm_last_timestamp [15:18:41]Write 4 bytes [15:18:41]NVStorageSaveData done [15:18:41]ExternCall_PrintAddStr [15:18:41]wPrintStart [15:18:41]Write to MH i2c: 01 00 00 7F 88 07 [15:18:41]Write i2c OK [15:18:41]MH_I2C_Read... [15:18:41]Read from MH i2c: 01 [15:18:41]MH_I2C_Read... [15:18:41]Read from MH i2c: 01 07 00 [15:18:41]MH_I2C_Read... [15:18:41]Read from MH i2c: 01 07 00 7F 88 00 00 00 00 00 FF 0F 1C [15:18:41]RasterBufferAndPrint [15:18:41]line Счет N : (1)347045 [15:18:41]line ИНН: 02508201610067 [15:18:41]line Контрольно-Кассовый Чек [15:18:41]line ПРОДАЖА [15:18:41]line ТРК (МРК, ГНК) : 11 [15:18:41]line Товар: 2710194210 [15:18:41]line ДТ-К-5 [15:18:41]line 8.290 * 72.40 [15:18:41]line = 600.20 [15:18:41]line НДС 12% НСП 1% [15:18:41]line > о реализуемом товаре [15:18:41]line ИТОГО: 600.20 [15:18:41]line НСП 1% : 5.31 [15:18:41]line НДС 12% : 63.74 [15:18:41]line Наличными: 0.00 [15:18:41]line Безнал.: 600.20 [15:18:41]line Место: АЗС № 108 "Партнер Нефть" [15:18:41]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [15:18:41]line СНО: Общий режим [15:18:41]line Чек 159 12.04.2024 15:18 [15:18:41]line Смена: 113 ФФД: 1.0 [15:18:41]line ЗНМ: 0300000027 [15:18:41]line РНМ: 0000138879044617 [15:18:41]line Версия ККМ: 001 [15:18:41]line Платежная система: Бакай Банк [15:18:41]line ФМ: 0000000000963154 [15:18:41]line ФД: 28710 [15:18:41]line ФПД: 62531120307984 [15:18:41]line 1/tax-web-control/client/api/v1/ticket?date=20240412T151848&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28710&fm=62531120307984&tin=02508201610067®Number=0000138879044617&sum=60020 [15:18:41]OFD Sender: Processing packet 28710 [packets to send 8, broken 7] [15:18:41]ProducePacketName [15:18:41]name=ofd_packets/00028710 [15:18:41]OFD Sender: To server: pG, [15:18:41]CommunicateWithHost lk.salyk.kg:30040 [15:18:41]ConnectInit lk.salyk.kg [15:18:41]written 0, free lines is 4095 [15:18:42]Write to MH i2c: 01 00 00 A8 88 30 [15:18:42]Write i2c OK [15:18:42]MH_I2C_Read... [15:18:42]Read from MH i2c: 01 [15:18:42]MH_I2C_Read... [15:18:42]Read from MH i2c: 01 07 00 [15:18:42]MH_I2C_Read... [15:18:42]Read from MH i2c: 01 07 00 A8 88 00 00 00 00 00 D0 0C 13 [15:18:42]RasterBufferAndPrint [15:18:42]line [15:18:42]line [15:18:42]line [15:18:42]line [15:18:42]line [15:18:42]written 0, free lines is 3287 [15:18:42]MH_Cut [15:18:42]Write to MH i2c: D1 01 00 AF 88 01 09 [15:18:42]Write i2c OK [15:18:42]MH_I2C_Read... [15:18:42]Read from MH i2c: D1 [15:18:42]MH_I2C_Read... [15:18:42]Read from MH i2c: D1 01 00 [15:18:42]MH_I2C_Read... [15:18:42]Read from MH i2c: D1 01 00 AF 88 00 08 [15:18:42]Write to MH i2c: 01 00 00 B0 88 38 [15:18:42]Write i2c OK [15:18:42]MH_I2C_Read... [15:18:43]Connected sock=7 [15:18:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 D8 4B 04 01 1D 73 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 62 20 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 74 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 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 E6 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 74 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 D8 50 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 26 70 00 00 35 04 06 00 38 DF 29 36 9F 10 99 8F 43 73 59 D9 A6 5E [15:18:43]*** Cut start [15:18:43]*** Partial cut [15:18:43]*** CUTSNS_PIN = 1 [15:18:43]*** CUTSNS_PIN = 0 [15:18:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 83 B0 47 00 FE C4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 26 70 00 00 F4 03 04 00 83 FB 18 66 B6 04 01 00 00 08 52 6B 8F 40 A8 98 10 [15:18:43]CommunicateWithHost err = 0 [15:18:43]CheckOFDResponse [15:18:43]1017 (14) - 77093643461234 [15:18:43]1041 (16) - 0000000000963154 [15:18:43]1040 (4) - 28710 [15:18:43]1012 (4) - 12.04.2024 09:14 [15:18:43]1206 (1) - 0 [15:18:43]OFD Sender: Remove packet 28710 [15:18:43]ProducePacketName [15:18:43]name=ofd_packets/00028710 [15:18:43]NVStorageDeleteData [15:18:43]*** Brake cut motor [15:18:43]OFD Sender: No OFD packet to send [15:18:43]Read from MH i2c: 01 [15:18:43]MH_I2C_Read... [15:18:43]*** Stop cut motor [15:18:43]*** Cut end [15:18:43]Read from MH i2c: 01 07 00 [15:18:43]MH_I2C_Read... [15:18:43]Read from MH i2c: 01 07 00 B0 88 00 00 00 00 00 FF 0F 4D [15:18:43]process_action close_receipt done [15:18:43]requested_data is exist [15:18:43]produce_requested_data [15:18:43]requested_item fm.sn is exist - process it [15:18:43]wFMCommunicate request_size=4 [15:18:43]MH_SAM_APDU [15:18:43]CAPDU: 80 11 00 00 [15:18:43]Write to MH i2c: E2 08 00 B1 88 80 11 00 00 00 00 00 00 B3 [15:18:43]Write i2c OK [15:18:43]MH_I2C_Read... [15:18:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:18:43]Read from MH i2c: E2 [15:18:43]MH_I2C_Read... [15:18:43]Read from MH i2c: E2 17 00 [15:18:43]MH_I2C_Read... [15:18:43]Read from MH i2c: E2 17 00 B1 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 02 [15:18:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:18:43]wFMCommunicate OK [15:18:43]requested_item fd.num is exist - process it [15:18:43]SAM_PROTO_GetFieldsCounters [15:18:43]wFMCommunicate request_size=4 [15:18:43]MH_SAM_APDU [15:18:43]CAPDU: 80 13 00 00 [15:18:43]Write to MH i2c: E2 08 00 B2 88 80 13 00 00 00 00 00 00 B6 [15:18:43]Write i2c OK [15:18:43]MH_I2C_Read... [15:18:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:18:43]Read from MH i2c: E2 [15:18:43]MH_I2C_Read... [15:18:43]Read from MH i2c: E2 62 00 [15:18:43]MH_I2C_Read... [15:18:43]Read from MH i2c: E2 62 00 B2 88 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 26 70 00 00 0E 04 04 00 71 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 D8 [15:18:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 26 70 00 00 0E 04 04 00 71 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:18:43]wFMCommunicate OK [15:18:43]SAM_PROTO_GetFieldsCounters done [15:18:43]requested_item shift.num is exist - process it [15:18:43]requested_item shift.opened is exist - process it [15:18:43]req_shift_opened [15:18:43]FM_GetShiftState [15:18:43]SAM_PROTO_GetShiftState [15:18:43]wFMCommunicate request_size=4 [15:18:43]MH_SAM_APDU [15:18:43]CAPDU: 80 13 01 00 [15:18:43]Write to MH i2c: E2 08 00 B3 88 80 13 01 00 00 00 00 00 B8 [15:18:43]Write i2c OK [15:18:43]MH_I2C_Read... [15:18:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:18:44]Read from MH i2c: E2 [15:18:44]MH_I2C_Read... [15:18:44]Read from MH i2c: E2 0E 00 [15:18:44]MH_I2C_Read... [15:18:44]Read from MH i2c: E2 0E 00 B3 88 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 C9 [15:18:44]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [15:18:44]wFMCommunicate OK [15:18:44]SAM_PROTO_GetShiftState done [15:18:44]FM_GetShiftState done [15:18:44]req_shift_opened done [15:18:44]requested_item shift.open_date is exist - process it [15:18:44]req_shift_open_date [15:18:44]req_shift_open_date done [15:18:44]produce_requested_data done [15:18:44]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28710,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [15:18:44]process_action_free close_receipt [15:18:44]json_value_free [15:18:44]json_value_free done [15:18:44]process_json_proto returns [15:18:44]Send response to host [15:18:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28710,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [15:18:44]free response buf [15:18:44]execute_script done [15:18:44]execute_script returns [15:18:44]free content buf [15:18:44]Sock 6.Close socket [15:18:44]Sock 6.Thread stoped [15:18:48]OFD Sender: No OFD packet to send [15:18:53]OFD Sender: No OFD packet to send [15:18:58]OFD Sender: No OFD packet to send [15:19:03]OFD Sender: No OFD packet to send [15:19:08]OFD Sender: No OFD packet to send [15:19:13]OFD Sender: No OFD packet to send [15:19:18]OFD Sender: No OFD packet to send [15:19:23]OFD Sender: No OFD packet to send [15:19:28]OFD Sender: No OFD packet to send [15:19:33]OFD Sender: No OFD packet to send [15:19:38]OFD Sender: No OFD packet to send [15:19:43]OFD Sender: No OFD packet to send [15:19:48]OFD Sender: No OFD packet to send [15:19:53]OFD Sender: No OFD packet to send [15:19:58]accept exits with 5 [15:19:58]New connection [15:19:58]New thread 3066641764 created [15:19:58]Thread 3066498404 joined [15:19:58]Waiting for new connection... [15:19:58] Sock 5.Parse request [15:19:58]Sock 5.Check first char [15:19:58]Sock 5.First char is OK [15:19:58]request: POST /json_proto HTTP/1.0 [15:19:58]Method: POST [15:19:58]URL: /json_proto [15:19:58]Method is POST - this is cgi request [15:19:58]url: /json_proto [15:19:58]query_string will be loaded in cgi processing [15:19:58]execute_cgi json_proto POST (null) [15:19:58]execute_cgi path=json_proto method=POST [15:19:58]POST find Content-Length [15:19:58]Host: 172.17.33.3:8080 [15:19:58]Content-Length: 681 [15:19:58]Content-Type: application/json [15:19:58] [15:19:58]POST finish read [15:19:58]Found Content-Length = 681 [15:19:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347044", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 15.200, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:19:58]execute_script... [15:19:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347044", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 15.200, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:19:58]POST & json_proto [15:19:58]process_json_proto [15:19:58]json parsed OK: [15:19:58]protocol is kg_v1.0 [15:19:58]action value=close_receipt [15:19:58]process_action close_receipt [15:19:58]cmd_close_receipt [15:19:58]MH_GetDate [15:19:58]Write to MH i2c: F0 00 00 B4 88 2B [15:19:58]Write i2c OK [15:19:58]MH_I2C_Read... [15:19:58]Read from MH i2c: F0 [15:19:58]MH_I2C_Read... [15:19:58]Read from MH i2c: F0 09 00 [15:19:58]MH_I2C_Read... [15:19:58]Read from MH i2c: F0 09 00 B4 88 00 26 51 19 66 23 5B 8F 65 9C [15:19:58]GetLastDocTimeStamp 1712935128 [15:19:58]current date 1712935206 [15:19:58]FM_GetShiftState [15:19:58]SAM_PROTO_GetShiftState [15:19:58]wFMCommunicate request_size=4 [15:19:58]MH_SAM_APDU [15:19:58]CAPDU: 80 13 01 00 [15:19:58]Write to MH i2c: E2 08 00 B5 88 80 13 01 00 00 00 00 00 BA [15:19:58]Write i2c OK [15:19:58]MH_I2C_Read... [15:19:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:19:58]Read from MH i2c: E2 [15:19:58]MH_I2C_Read... [15:19:58]Read from MH i2c: E2 0E 00 [15:19:58]MH_I2C_Read... [15:19:58]Read from MH i2c: E2 0E 00 B5 88 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 CB [15:19:58]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [15:19:58]wFMCommunicate OK [15:19:58]SAM_PROTO_GetShiftState done [15:19:58]FM_GetShiftState done [15:19:58]opened in 1712881416 [15:19:58]opened+sec_in_day 1712967816 [15:19:58]quantity*price = 50008 [15:19:58]sum+1 = 50009 [15:19:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 160 12.04.2024 15:20 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28711 ФПД: 212288495793224 1/tax-web-control/client/api/v1/ticket?date=20240412T152006&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28711&fm=212288495793224&tin=02508201610067®Number=0000138879044617&sum=50000 [15:19:59]StoreToDocumentArchive [15:19:59]shift 113 fd 28711 [15:19:59]save to /storage/0113/doc_00028711 [15:19:59]save last doc name /storage/0113/doc_00028711 to /storage/kkm_last_doc_name [15:19:59]save OK [15:19:59]Clear old archive folders... [15:19:59]ProcessDocumentItem done err = 0, tmpTLVsize=250 [15:19:59]tlvbuf is 01AD4980 [15:19:59]SAM_PROTO_ClearQueue [15:19:59]wFMCommunicate request_size=4 [15:19:59]MH_SAM_APDU [15:19:59]CAPDU: 80 09 00 00 [15:19:59]Write to MH i2c: E2 08 00 C2 88 80 09 00 00 00 00 00 00 BC [15:19:59]Write i2c OK [15:19:59]MH_I2C_Read... [15:19:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:19:59]Read from MH i2c: E2 [15:19:59]MH_I2C_Read... [15:19:59]Read from MH i2c: E2 03 00 [15:19:59]MH_I2C_Read... [15:19:59]Read from MH i2c: E2 03 00 C2 88 00 90 00 BE [15:19:59]RAPDU: 90 00 [15:19:59]wFMCommunicate OK [15:19:59]SAM_PROTO_ClearQueue done [15:19:59]KKMCreateOFDPacket [15:19:59]OFDProtocolAddRootSTLVToBuf [15:19:59]FM_MakeSignedData [15:19:59]FM_MakeSignedData [15:19:59]SAM_PROTO_SignData [15:19:59]wFMCommunicate request_size=4 [15:19:59]MH_SAM_APDU [15:19:59]CAPDU: 80 0D 01 02 [15:19:59]Write to MH i2c: E2 08 00 C3 88 80 0D 01 02 00 00 00 00 C4 [15:19:59]Write i2c OK [15:19:59]MH_I2C_Read... [15:19:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:19:59]Read from MH i2c: E2 [15:19:59]MH_I2C_Read... [15:19:59]Read from MH i2c: E2 03 00 [15:19:59]MH_I2C_Read... [15:19:59]Read from MH i2c: E2 03 00 C3 88 00 90 00 BF [15:19:59]RAPDU: 90 00 [15:19:59]wFMCommunicate OK [15:19:59]wFMCommunicate request_size=255 [15:19:59]MH_SAM_APDU [15:19:59]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 A0 00 00 00 F4 03 04 00 26 51 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 27 70 00 00 35 04 06 00 C1 13 [15:19:59]Write to MH i2c: E2 02 01 C4 88 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 A0 00 00 00 F4 03 04 00 26 51 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 27 70 00 00 35 04 06 00 C1 13 00 00 5D [15:19:59]Write i2c OK [15:19:59]MH_I2C_Read... [15:19:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:19:59]Read from MH i2c: E2 [15:19:59]MH_I2C_Read... [15:19:59]Read from MH i2c: E2 03 00 [15:19:59]MH_I2C_Read... [15:19:59]Read from MH i2c: E2 03 00 C4 88 00 90 00 C0 [15:19:59]RAPDU: 90 00 [15:19:59]wFMCommunicate OK [15:19:59]wFMCommunicate request_size=9 [15:19:59]MH_SAM_APDU [15:19:59]CAPDU: 80 0D 02 02 04 44 61 B4 48 [15:19:59]Write to MH i2c: E2 0C 00 C5 88 80 0D 02 02 04 00 44 61 B4 48 00 00 70 [15:19:59]Write i2c OK [15:19:59]MH_I2C_Read... [15:19:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:19:59]Read from MH i2c: E2 [15:19:59]MH_I2C_Read... [15:19:59]Read from MH i2c: E2 03 00 [15:19:59]MH_I2C_Read... [15:19:59]Read from MH i2c: E2 03 00 C5 88 00 90 00 C1 [15:19:59]RAPDU: 90 00 [15:19:59]wFMCommunicate OK [15:19:59]wFMCommunicate request_size=4 [15:19:59]MH_SAM_APDU [15:19:59]CAPDU: 80 0D 03 02 [15:19:59]Write to MH i2c: E2 08 00 C6 88 80 0D 03 02 00 00 00 00 C9 [15:19:59]Write i2c OK [15:19:59]MH_I2C_Read... [15:19:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:19:59]Read from MH i2c: E2 [15:19:59]MH_I2C_Read... [15:19:59]Read from MH i2c: E2 0B 00 [15:19:59]MH_I2C_Read... [15:19:59]Read from MH i2c: E2 0B 00 C6 88 00 38 5D A2 50 0E 45 25 B0 90 00 79 [15:19:59]RAPDU: 38 5D A2 50 0E 45 25 B0 90 00 [15:19:59]wFMCommunicate OK [15:19:59]SAM_PROTO_SignData done [15:19:59]FM_MakeSignedData done [15:19:59]CreateOFDProtocolMessage [15:19:59]wFMCommunicate request_size=4 [15:19:59]MH_SAM_APDU [15:19:59]CAPDU: 80 11 00 00 [15:19:59]Write to MH i2c: E2 08 00 C7 88 80 11 00 00 00 00 00 00 C9 [15:19:59]Write i2c OK [15:19:59]MH_I2C_Read... [15:19:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:19:59]Read from MH i2c: E2 [15:19:59]MH_I2C_Read... [15:19:59]Read from MH i2c: E2 17 00 [15:19:59]MH_I2C_Read... [15:19:59]Read from MH i2c: E2 17 00 C7 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 18 [15:19:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:19:59]wFMCommunicate OK [15:19:59]CreateOFDProtocolMessage done [15:19:59]OFDSenderStorePacket 28711 [15:19:59]StoreOFDPacket docnum=28711 [15:19:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 11 D9 06 01 8F 78 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 A0 00 00 00 F4 03 04 00 26 51 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 27 70 00 00 35 04 06 00 C1 13 44 61 B4 48 38 5D A2 50 0E 45 25 B0 [15:19:59]CheckFolder [15:19:59]dirname=/storage/ofd_packets [15:19:59]CheckFolder done [15:19:59]ProducePacketName [15:19:59]name=ofd_packets/00028711 [15:19:59]NVStorageSaveData ofd_packets/00028711 [15:19:59]File name is /storage/ofd_packets/00028711 [15:19:59]Write 300 bytes [15:19:59]NVStorageSaveData done [15:19:59]OFDSenderStorePacket done [15:19:59]KKMCreateOFDPacket done [15:19:59]NVStorageSaveData kkm_last_timestamp [15:19:59]File name is /storage/kkm_last_timestamp [15:19:59]Write 4 bytes [15:19:59]NVStorageSaveData done [15:19:59]ExternCall_PrintAddStr [15:19:59]wPrintStart [15:19:59]Write to MH i2c: 01 00 00 C8 88 50 [15:19:59]Write i2c OK [15:19:59]MH_I2C_Read... [15:19:59]Read from MH i2c: 01 [15:19:59]MH_I2C_Read... [15:19:59]Read from MH i2c: 01 07 00 [15:19:59]MH_I2C_Read... [15:19:59]Read from MH i2c: 01 07 00 C8 88 00 00 00 00 00 FF 0F 65 [15:19:59]RasterBufferAndPrint [15:19:59]line Счет N : (1)347044 [15:19:59]line ИНН: 02508201610067 [15:19:59]line Контрольно-Кассовый Чек [15:19:59]line ПРОДАЖА [15:19:59]line ТРК (МРК, ГНК) : 71 [15:19:59]line Товар: 2711129700 [15:19:59]line ГАЗ-К-5 [15:19:59]line 15.200 * 32.90 [15:19:59]line = 500.08 [15:19:59]line НДС 12% НСП 1% [15:19:59]line > о реализуемом товаре [15:19:59]line ОКРУГЛЕНИЕ: -0.08 [15:19:59]line ИТОГО: 500.00 [15:19:59]line Внесено: 500.00 [15:19:59]line СДАЧА: 0.00 [15:19:59]line НСП 1% : 4.42 [15:19:59]line НДС 12% : 53.11 [15:19:59]line Наличными: 500.00 [15:19:59]line Безнал.: 0.00 [15:19:59]line Место: АЗС № 108 "Партнер Нефть" [15:19:59]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [15:19:59]line СНО: Общий режим [15:19:59]line Чек 160 12.04.2024 15:20 [15:19:59]line Смена: 113 ФФД: 1.0 [15:19:59]line ЗНМ: 0300000027 [15:19:59]line РНМ: 0000138879044617 [15:19:59]line Версия ККМ: 001 [15:19:59]line ФМ: 0000000000963154 [15:19:59]line ФД: 28711 [15:19:59]line ФПД: 212288495793224 [15:19:59]line 1/tax-web-control/client/api/v1/ticket?date=20240412T152006&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28711&fm=212288495793224&tin=02508201610067®Number=0000138879044617&sum=50000 [15:20:00]OFD Sender: Processing packet 28711 [packets to send 8, broken 7] [15:20:00]ProducePacketName [15:20:00]name=ofd_packets/00028711 [15:20:00]OFD Sender: To server: pG, [15:20:00]CommunicateWithHost lk.salyk.kg:30040 [15:20:00]ConnectInit lk.salyk.kg [15:20:00]written 0, free lines is 4095 [15:20:00]Connected sock=7 [15:20:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 11 D9 06 01 8F 78 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 A0 00 00 00 F4 03 04 00 26 51 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 27 70 00 00 35 04 06 00 C1 13 44 61 B4 48 38 5D A2 50 0E 45 25 B0 [15:20:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 17 FC 47 00 24 68 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 27 70 00 00 F4 03 04 00 D0 FB 18 66 B6 04 01 00 00 9F 69 1E 1F 51 AD 8A DB [15:20:00]CommunicateWithHost err = 0 [15:20:00]CheckOFDResponse [15:20:00]1017 (14) - 77093643461234 [15:20:00]1041 (16) - 0000000000963154 [15:20:00]1040 (4) - 28711 [15:20:00]1012 (4) - 12.04.2024 09:16 [15:20:00]1206 (1) - 0 [15:20:00]OFD Sender: Remove packet 28711 [15:20:00]ProducePacketName [15:20:00]name=ofd_packets/00028711 [15:20:00]NVStorageDeleteData [15:20:00]Write to MH i2c: 01 00 00 F2 88 7A [15:20:00]Write i2c OK [15:20:00]MH_I2C_Read... [15:20:00]Read from MH i2c: 01 [15:20:00]MH_I2C_Read... [15:20:00]Read from MH i2c: 01 07 00 [15:20:00]MH_I2C_Read... [15:20:00]Read from MH i2c: 01 07 00 F2 88 00 00 00 00 00 CD 0C 5A [15:20:00]RasterBufferAndPrint [15:20:00]line [15:20:00]line [15:20:00]line [15:20:00]line [15:20:00]line [15:20:00]written 0, free lines is 3282 [15:20:00]MH_Cut [15:20:00]Write to MH i2c: D1 01 00 F9 88 01 53 [15:20:00]Write i2c OK [15:20:00]MH_I2C_Read... [15:20:00]Read from MH i2c: D1 [15:20:00]MH_I2C_Read... [15:20:00]Read from MH i2c: D1 01 00 [15:20:00]MH_I2C_Read... [15:20:00]Read from MH i2c: D1 01 00 F9 88 00 52 [15:20:00]Write to MH i2c: 01 00 00 FA 88 82 [15:20:00]Write i2c OK [15:20:00]MH_I2C_Read... [15:20:01]OFD Sender: No OFD packet to send [15:20:01]*** Cut start [15:20:01]*** Partial cut [15:20:01]*** CUTSNS_PIN = 1 [15:20:01]*** CUTSNS_PIN = 0 [15:20:01]*** Brake cut motor [15:20:02]Read from MH i2c: 01 [15:20:02]MH_I2C_Read... [15:20:02]*** Stop cut motor [15:20:02]*** Cut end [15:20:02]Read from MH i2c: 01 07 00 [15:20:02]MH_I2C_Read... [15:20:02]Read from MH i2c: 01 07 00 FA 88 00 00 00 00 00 FF 0F 97 [15:20:02]process_action close_receipt done [15:20:02]requested_data is exist [15:20:02]produce_requested_data [15:20:02]requested_item fm.sn is exist - process it [15:20:02]wFMCommunicate request_size=4 [15:20:02]MH_SAM_APDU [15:20:02]CAPDU: 80 11 00 00 [15:20:02]Write to MH i2c: E2 08 00 FB 88 80 11 00 00 00 00 00 00 FD [15:20:02]Write i2c OK [15:20:02]MH_I2C_Read... [15:20:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:20:02]Read from MH i2c: E2 [15:20:02]MH_I2C_Read... [15:20:02]Read from MH i2c: E2 17 00 [15:20:02]MH_I2C_Read... [15:20:02]Read from MH i2c: E2 17 00 FB 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 4C [15:20:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:20:02]wFMCommunicate OK [15:20:02]requested_item fd.num is exist - process it [15:20:02]SAM_PROTO_GetFieldsCounters [15:20:02]wFMCommunicate request_size=4 [15:20:02]MH_SAM_APDU [15:20:02]CAPDU: 80 13 00 00 [15:20:02]Write to MH i2c: E2 08 00 FC 88 80 13 00 00 00 00 00 00 00 [15:20:02]Write i2c OK [15:20:02]MH_I2C_Read... [15:20:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:20:02]Read from MH i2c: E2 [15:20:02]MH_I2C_Read... [15:20:02]Read from MH i2c: E2 62 00 [15:20:02]MH_I2C_Read... [15:20:02]Read from MH i2c: E2 62 00 FC 88 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 27 70 00 00 0E 04 04 00 71 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 26 [15:20:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 27 70 00 00 0E 04 04 00 71 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:20:02]wFMCommunicate OK [15:20:02]SAM_PROTO_GetFieldsCounters done [15:20:02]requested_item shift.num is exist - process it [15:20:02]requested_item shift.opened is exist - process it [15:20:02]req_shift_opened [15:20:02]FM_GetShiftState [15:20:02]SAM_PROTO_GetShiftState [15:20:02]wFMCommunicate request_size=4 [15:20:02]MH_SAM_APDU [15:20:02]CAPDU: 80 13 01 00 [15:20:02]Write to MH i2c: E2 08 00 FD 88 80 13 01 00 00 00 00 00 02 [15:20:02]Write i2c OK [15:20:02]MH_I2C_Read... [15:20:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:20:02]Read from MH i2c: E2 [15:20:02]MH_I2C_Read... [15:20:02]Read from MH i2c: E2 0E 00 [15:20:02]MH_I2C_Read... [15:20:02]Read from MH i2c: E2 0E 00 FD 88 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 13 [15:20:02]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [15:20:02]wFMCommunicate OK [15:20:02]SAM_PROTO_GetShiftState done [15:20:02]FM_GetShiftState done [15:20:02]req_shift_opened done [15:20:02]requested_item shift.open_date is exist - process it [15:20:02]req_shift_open_date [15:20:02]req_shift_open_date done [15:20:02]produce_requested_data done [15:20:02]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28711,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [15:20:02]process_action_free close_receipt [15:20:02]json_value_free [15:20:02]json_value_free done [15:20:02]process_json_proto returns [15:20:02]Send response to host [15:20:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28711,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [15:20:02]free response buf [15:20:02]execute_script done [15:20:02]execute_script returns [15:20:02]free content buf [15:20:02]Sock 5.Close socket [15:20:02]Sock 5.Thread stoped [15:20:06]OFD Sender: No OFD packet to send [15:20:11]OFD Sender: No OFD packet to send [15:20:16]OFD Sender: No OFD packet to send [15:20:21]OFD Sender: No OFD packet to send [15:20:26]OFD Sender: No OFD packet to send [15:20:31]OFD Sender: No OFD packet to send [15:20:36]OFD Sender: No OFD packet to send [15:20:41]OFD Sender: No OFD packet to send [15:20:46]OFD Sender: No OFD packet to send [15:20:51]OFD Sender: No OFD packet to send [15:20:56]OFD Sender: No OFD packet to send [15:21:01]OFD Sender: No OFD packet to send [15:21:06]OFD Sender: No OFD packet to send [15:21:11]OFD Sender: No OFD packet to send [15:21:16]OFD Sender: No OFD packet to send [15:21:21]OFD Sender: No OFD packet to send [15:21:26]OFD Sender: No OFD packet to send [15:21:31]OFD Sender: No OFD packet to send [15:21:36]OFD Sender: No OFD packet to send [15:21:41]OFD Sender: No OFD packet to send [15:21:46]OFD Sender: No OFD packet to send [15:21:51]OFD Sender: No OFD packet to send [15:21:56]OFD Sender: No OFD packet to send [15:22:00]accept exits with 6 [15:22:00]New connection [15:22:00]New thread 3066498404 created [15:22:00]Thread 3066641764 joined [15:22:00]Waiting for new connection... [15:22:00] Sock 6.Parse request [15:22:00]Sock 6.Check first char [15:22:00]Sock 6.First char is OK [15:22:00]request: POST /json_proto HTTP/1.0 [15:22:00]Method: POST [15:22:00]URL: /json_proto [15:22:00]Method is POST - this is cgi request [15:22:00]url: /json_proto [15:22:00]query_string will be loaded in cgi processing [15:22:00]execute_cgi json_proto POST (null) [15:22:00]execute_cgi path=json_proto method=POST [15:22:00]POST find Content-Length [15:22:00]Host: 172.17.33.3:8080 [15:22:00]Content-Length: 677 [15:22:00]Content-Type: application/json [15:22:00] [15:22:00]POST finish read [15:22:00]Found Content-Length = 677 [15:22:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347046", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 4.670, "sum" : 300.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:22:00]execute_script... [15:22: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)347046", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 4.670, "sum" : 300.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:22:00]POST & json_proto [15:22:00]process_json_proto [15:22:00]json parsed OK: [15:22:00]protocol is kg_v1.0 [15:22:00]action value=close_receipt [15:22:00]process_action close_receipt [15:22:00]cmd_close_receipt [15:22:00]MH_GetDate [15:22:00]Write to MH i2c: F0 00 00 FE 88 75 [15:22:00]Write i2c OK [15:22:00]MH_I2C_Read... [15:22:00]Read from MH i2c: F0 [15:22:00]MH_I2C_Read... [15:22:00]Read from MH i2c: F0 09 00 [15:22:00]MH_I2C_Read... [15:22:00]Read from MH i2c: F0 09 00 FE 88 00 A0 51 19 66 23 5B 8F 65 60 [15:22:00]GetLastDocTimeStamp 1712935206 [15:22:00]current date 1712935328 [15:22:00]FM_GetShiftState [15:22:00]SAM_PROTO_GetShiftState [15:22:00]wFMCommunicate request_size=4 [15:22:00]MH_SAM_APDU [15:22:00]CAPDU: 80 13 01 00 [15:22:00]Write to MH i2c: E2 08 00 FF 88 80 13 01 00 00 00 00 00 04 [15:22:00]Write i2c OK [15:22:00]MH_I2C_Read... [15:22:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:22:00]Read from MH i2c: E2 [15:22:00]MH_I2C_Read... [15:22:00]Read from MH i2c: E2 0E 00 [15:22:00]MH_I2C_Read... [15:22:00]Read from MH i2c: E2 0E 00 FF 88 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 15 [15:22:00]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [15:22:00]wFMCommunicate OK [15:22:00]SAM_PROTO_GetShiftState done [15:22:00]FM_GetShiftState done [15:22:00]opened in 1712881416 [15:22:00]opened+sec_in_day 1712967816 [15:22:00]quantity*price = 30028 [15:22:00]sum+1 = 30029 [15:22:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 161 12.04.2024 15:22 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28712 ФПД: 166560812386681 1/tax-web-control/client/api/v1/ticket?date=20240412T152208&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28712&fm=166560812386681&tin=02508201610067®Number=0000138879044617&sum=30000 [15:22:01]StoreToDocumentArchive [15:22:01]shift 113 fd 28712 [15:22:01]save to /storage/0113/doc_00028712 [15:22:01]save last doc name /storage/0113/doc_00028712 to /storage/kkm_last_doc_name [15:22:01]save OK [15:22:01]Clear old archive folders... [15:22:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:22:01]tlvbuf is 01ABC220 [15:22:01]SAM_PROTO_ClearQueue [15:22:01]wFMCommunicate request_size=4 [15:22:01]MH_SAM_APDU [15:22:01]CAPDU: 80 09 00 00 [15:22:01]Write to MH i2c: E2 08 00 0C 89 80 09 00 00 00 00 00 00 07 [15:22:01]Write i2c OK [15:22:01]MH_I2C_Read... [15:22:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:22:01]Read from MH i2c: E2 [15:22:01]MH_I2C_Read... [15:22:01]Read from MH i2c: E2 03 00 [15:22:01]MH_I2C_Read... [15:22:01]Read from MH i2c: E2 03 00 0C 89 00 90 00 09 [15:22:01]RAPDU: 90 00 [15:22:01]wFMCommunicate OK [15:22:01]SAM_PROTO_ClearQueue done [15:22:01]KKMCreateOFDPacket [15:22:01]OFDProtocolAddRootSTLVToBuf [15:22:01]FM_MakeSignedData [15:22:01]FM_MakeSignedData [15:22:01]SAM_PROTO_SignData [15:22:01]wFMCommunicate request_size=4 [15:22:01]MH_SAM_APDU [15:22:01]CAPDU: 80 0D 01 02 [15:22:01]Write to MH i2c: E2 08 00 0D 89 80 0D 01 02 00 00 00 00 0F [15:22:01]Write i2c OK [15:22:01]MH_I2C_Read... [15:22:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:22:01]Read from MH i2c: E2 [15:22:01]MH_I2C_Read... [15:22:01]Read from MH i2c: E2 03 00 [15:22:01]MH_I2C_Read... [15:22:01]Read from MH i2c: E2 03 00 0D 89 00 90 00 0A [15:22:01]RAPDU: 90 00 [15:22:01]wFMCommunicate OK [15:22:01]wFMCommunicate request_size=255 [15:22:01]MH_SAM_APDU [15:22:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3E 12 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 A0 51 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 28 70 00 00 35 04 06 00 97 [15:22:01]Write to MH i2c: E2 02 01 0E 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 35 FF 03 08 00 03 3E 12 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 A0 51 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 28 70 00 00 35 04 06 00 97 00 00 05 [15:22:01]Write i2c OK [15:22:01]MH_I2C_Read... [15:22:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:22:01]Read from MH i2c: E2 [15:22:01]MH_I2C_Read... [15:22:01]Read from MH i2c: E2 03 00 [15:22:01]MH_I2C_Read... [15:22:01]Read from MH i2c: E2 03 00 0E 89 00 90 00 0B [15:22:01]RAPDU: 90 00 [15:22:01]wFMCommunicate OK [15:22:01]wFMCommunicate request_size=10 [15:22:01]MH_SAM_APDU [15:22:01]CAPDU: 80 0D 02 02 05 7C 76 0E 49 79 [15:22:01]Write to MH i2c: E2 0D 00 0F 89 80 0D 02 02 05 00 7C 76 0E 49 79 00 00 DE [15:22:01]Write i2c OK [15:22:01]MH_I2C_Read... [15:22:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:22:01]Read from MH i2c: E2 [15:22:01]MH_I2C_Read... [15:22:01]Read from MH i2c: E2 03 00 [15:22:01]MH_I2C_Read... [15:22:01]Read from MH i2c: E2 03 00 0F 89 00 90 00 0C [15:22:01]RAPDU: 90 00 [15:22:01]wFMCommunicate OK [15:22:01]wFMCommunicate request_size=4 [15:22:01]MH_SAM_APDU [15:22:01]CAPDU: 80 0D 03 02 [15:22:01]Write to MH i2c: E2 08 00 10 89 80 0D 03 02 00 00 00 00 14 [15:22:01]Write i2c OK [15:22:01]MH_I2C_Read... [15:22:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:22:01]Read from MH i2c: E2 [15:22:01]MH_I2C_Read... [15:22:01]Read from MH i2c: E2 0B 00 [15:22:01]MH_I2C_Read... [15:22:01]Read from MH i2c: E2 0B 00 10 89 00 1B 4B EA A3 61 B4 AA EC 90 00 B3 [15:22:01]RAPDU: 1B 4B EA A3 61 B4 AA EC 90 00 [15:22:01]wFMCommunicate OK [15:22:01]SAM_PROTO_SignData done [15:22:01]FM_MakeSignedData done [15:22:01]CreateOFDProtocolMessage [15:22:01]wFMCommunicate request_size=4 [15:22:01]MH_SAM_APDU [15:22:01]CAPDU: 80 11 00 00 [15:22:01]Write to MH i2c: E2 08 00 11 89 80 11 00 00 00 00 00 00 14 [15:22:01]Write i2c OK [15:22:01]MH_I2C_Read... [15:22:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:22:01]Read from MH i2c: E2 [15:22:01]MH_I2C_Read... [15:22:01]Read from MH i2c: E2 17 00 [15:22:01]MH_I2C_Read... [15:22:01]Read from MH i2c: E2 17 00 11 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 63 [15:22:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:22:01]wFMCommunicate OK [15:22:01]CreateOFDProtocolMessage done [15:22:01]OFDSenderStorePacket 28712 [15:22:01]StoreOFDPacket docnum=28712 [15:22:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 C1 94 07 01 F5 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 35 FF 03 08 00 03 3E 12 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 A0 51 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 28 70 00 00 35 04 06 00 97 7C 76 0E 49 79 1B 4B EA A3 61 B4 AA EC [15:22:01]CheckFolder [15:22:01]dirname=/storage/ofd_packets [15:22:01]CheckFolder done [15:22:01]ProducePacketName [15:22:01]name=ofd_packets/00028712 [15:22:01]NVStorageSaveData ofd_packets/00028712 [15:22:01]File name is /storage/ofd_packets/00028712 [15:22:01]Write 301 bytes [15:22:01]NVStorageSaveData done [15:22:01]OFDSenderStorePacket done [15:22:01]KKMCreateOFDPacket done [15:22:01]NVStorageSaveData kkm_last_timestamp [15:22:01]File name is /storage/kkm_last_timestamp [15:22:01]Write 4 bytes [15:22:01]NVStorageSaveData done [15:22:01]ExternCall_PrintAddStr [15:22:01]wPrintStart [15:22:01]Write to MH i2c: 01 00 00 12 89 9B [15:22:01]Write i2c OK [15:22:01]MH_I2C_Read... [15:22:01]Read from MH i2c: 01 [15:22:01]MH_I2C_Read... [15:22:01]Read from MH i2c: 01 07 00 [15:22:01]MH_I2C_Read... [15:22:01]Read from MH i2c: 01 07 00 12 89 00 00 00 00 00 FF 0F B0 [15:22:01]RasterBufferAndPrint [15:22:01]line Счет N : (1)347046 [15:22:01]line ИНН: 02508201610067 [15:22:01]line Контрольно-Кассовый Чек [15:22:01]line ПРОДАЖА [15:22:01]line ТРК (МРК, ГНК) : 42 [15:22:01]line Товар: 2710124130 [15:22:01]line Аи-92-К-5 [15:22:01]line 4.670 * 64.30 [15:22:01]line = 300.28 [15:22:01]line НДС 12% НСП 1% [15:22:01]line > о реализуемом товаре [15:22:01]line ОКРУГЛЕНИЕ: -0.28 [15:22:01]line ИТОГО: 300.00 [15:22:01]line Внесено: 300.00 [15:22:01]line СДАЧА: 0.00 [15:22:01]line НСП 1% : 2.66 [15:22:01]line НДС 12% : 31.89 [15:22:01]line Наличными: 300.00 [15:22:01]line Безнал.: 0.00 [15:22:01]line Место: АЗС № 108 "Партнер Нефть" [15:22:01]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [15:22:01]line СНО: Общий режим [15:22:01]line Чек 161 12.04.2024 15:22 [15:22:01]line Смена: 113 ФФД: 1.0 [15:22:01]line ЗНМ: 0300000027 [15:22:01]line РНМ: 0000138879044617 [15:22:01]line Версия ККМ: 001 [15:22:01]line ФМ: 0000000000963154 [15:22:01]line ФД: 28712 [15:22:01]line ФПД: 166560812386681 [15:22:01]line 1/tax-web-control/client/api/v1/ticket?date=20240412T152208&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28712&fm=166560812386681&tin=02508201610067®Number=0000138879044617&sum=30000 [15:22:02]OFD Sender: Processing packet 28712 [packets to send 8, broken 7] [15:22:02]ProducePacketName [15:22:02]name=ofd_packets/00028712 [15:22:02]OFD Sender: To server: pG, [15:22:02]CommunicateWithHost lk.salyk.kg:30040 [15:22:02]ConnectInit lk.salyk.kg [15:22:02]written 0, free lines is 4095 [15:22:02]Connected sock=9 [15:22:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 C1 94 07 01 F5 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 35 FF 03 08 00 03 3E 12 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 A0 51 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 28 70 00 00 35 04 06 00 97 7C 76 0E 49 79 1B 4B EA A3 61 B4 AA EC [15:22:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 54 85 47 00 29 0B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 28 70 00 00 F4 03 04 00 4A FC 18 66 B6 04 01 00 00 6B 7D 3D E8 24 E1 77 CC [15:22:02]CommunicateWithHost err = 0 [15:22:02]CheckOFDResponse [15:22:02]1017 (14) - 77093643461234 [15:22:02]1041 (16) - 0000000000963154 [15:22:02]1040 (4) - 28712 [15:22:02]1012 (4) - 12.04.2024 09:18 [15:22:02]1206 (1) - 0 [15:22:02]OFD Sender: Remove packet 28712 [15:22:02]ProducePacketName [15:22:02]name=ofd_packets/00028712 [15:22:02]NVStorageDeleteData [15:22:02]Write to MH i2c: 01 00 00 3C 89 C5 [15:22:02]Write i2c OK [15:22:02]MH_I2C_Read... [15:22:02]Read from MH i2c: 01 [15:22:02]MH_I2C_Read... [15:22:02]Read from MH i2c: 01 07 00 [15:22:02]MH_I2C_Read... [15:22:02]Read from MH i2c: 01 07 00 3C 89 00 00 00 00 00 CB 0C A3 [15:22:02]RasterBufferAndPrint [15:22:02]line [15:22:02]line [15:22:02]line [15:22:02]line [15:22:02]line [15:22:02]written 0, free lines is 3281 [15:22:02]MH_Cut [15:22:02]Write to MH i2c: D1 01 00 43 89 01 9E [15:22:02]Write i2c OK [15:22:02]MH_I2C_Read... [15:22:02]Read from MH i2c: D1 [15:22:02]MH_I2C_Read... [15:22:02]Read from MH i2c: D1 01 00 [15:22:02]MH_I2C_Read... [15:22:02]Read from MH i2c: D1 01 00 43 89 00 9D [15:22:02]Write to MH i2c: 01 00 00 44 89 CD [15:22:02]Write i2c OK [15:22:02]MH_I2C_Read... [15:22:03]OFD Sender: No OFD packet to send [15:22:03]*** Cut start [15:22:03]*** Partial cut [15:22:03]*** CUTSNS_PIN = 1 [15:22:03]*** CUTSNS_PIN = 0 [15:22:03]*** Brake cut motor [15:22:04]Read from MH i2c: 01 [15:22:04]MH_I2C_Read... [15:22:04]*** Stop cut motor [15:22:04]*** Cut end [15:22:04]Read from MH i2c: 01 07 00 [15:22:04]MH_I2C_Read... [15:22:04]Read from MH i2c: 01 07 00 44 89 00 00 00 00 00 FF 0F E2 [15:22:04]process_action close_receipt done [15:22:04]requested_data is exist [15:22:04]produce_requested_data [15:22:04]requested_item fm.sn is exist - process it [15:22:04]wFMCommunicate request_size=4 [15:22:04]MH_SAM_APDU [15:22:04]CAPDU: 80 11 00 00 [15:22:04]Write to MH i2c: E2 08 00 45 89 80 11 00 00 00 00 00 00 48 [15:22:04]Write i2c OK [15:22:04]MH_I2C_Read... [15:22:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:22:04]Read from MH i2c: E2 [15:22:04]MH_I2C_Read... [15:22:04]Read from MH i2c: E2 17 00 [15:22:04]MH_I2C_Read... [15:22:04]Read from MH i2c: E2 17 00 45 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 97 [15:22:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:22:04]wFMCommunicate OK [15:22:04]requested_item fd.num is exist - process it [15:22:04]SAM_PROTO_GetFieldsCounters [15:22:04]wFMCommunicate request_size=4 [15:22:04]MH_SAM_APDU [15:22:04]CAPDU: 80 13 00 00 [15:22:04]Write to MH i2c: E2 08 00 46 89 80 13 00 00 00 00 00 00 4B [15:22:04]Write i2c OK [15:22:04]MH_I2C_Read... [15:22:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:22:04]Read from MH i2c: E2 [15:22:04]MH_I2C_Read... [15:22:04]Read from MH i2c: E2 62 00 [15:22:04]MH_I2C_Read... [15:22:04]Read from MH i2c: E2 62 00 46 89 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 28 70 00 00 0E 04 04 00 71 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 75 [15:22:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 28 70 00 00 0E 04 04 00 71 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:22:04]wFMCommunicate OK [15:22:04]SAM_PROTO_GetFieldsCounters done [15:22:04]requested_item shift.num is exist - process it [15:22:04]requested_item shift.opened is exist - process it [15:22:04]req_shift_opened [15:22:04]FM_GetShiftState [15:22:04]SAM_PROTO_GetShiftState [15:22:04]wFMCommunicate request_size=4 [15:22:04]MH_SAM_APDU [15:22:04]CAPDU: 80 13 01 00 [15:22:04]Write to MH i2c: E2 08 00 47 89 80 13 01 00 00 00 00 00 4D [15:22:04]Write i2c OK [15:22:04]MH_I2C_Read... [15:22:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:22:04]Read from MH i2c: E2 [15:22:04]MH_I2C_Read... [15:22:04]Read from MH i2c: E2 0E 00 [15:22:04]MH_I2C_Read... [15:22:04]Read from MH i2c: E2 0E 00 47 89 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 5E [15:22:04]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [15:22:04]wFMCommunicate OK [15:22:04]SAM_PROTO_GetShiftState done [15:22:04]FM_GetShiftState done [15:22:04]req_shift_opened done [15:22:04]requested_item shift.open_date is exist - process it [15:22:04]req_shift_open_date [15:22:04]req_shift_open_date done [15:22:04]produce_requested_data done [15:22:04]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28712,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [15:22:04]process_action_free close_receipt [15:22:04]json_value_free [15:22:04]json_value_free done [15:22:04]process_json_proto returns [15:22:04]Send response to host [15:22:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28712,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [15:22:04]free response buf [15:22:04]execute_script done [15:22:04]execute_script returns [15:22:04]free content buf [15:22:04]Sock 6.Close socket [15:22:04]Sock 6.Thread stoped [15:22:08]OFD Sender: No OFD packet to send [15:22:13]OFD Sender: No OFD packet to send [15:22:18]OFD Sender: No OFD packet to send [15:22:23]OFD Sender: No OFD packet to send [15:22:28]OFD Sender: No OFD packet to send [15:22:33]OFD Sender: No OFD packet to send [15:22:38]OFD Sender: No OFD packet to send [15:22:41]accept exits with 5 [15:22:41]New connection [15:22:41]New thread 3066641764 created [15:22:41]Thread 3066498404 joined [15:22:41]Waiting for new connection... [15:22:41] Sock 5.Parse request [15:22:41]Sock 5.Check first char [15:22:41]Sock 5.First char is OK [15:22:41]request: POST /json_proto HTTP/1.0 [15:22:41]Method: POST [15:22:41]URL: /json_proto [15:22:41]Method is POST - this is cgi request [15:22:41]url: /json_proto [15:22:41]query_string will be loaded in cgi processing [15:22:41]execute_cgi json_proto POST (null) [15:22:41]execute_cgi path=json_proto method=POST [15:22:41]POST find Content-Length [15:22:41]Host: 172.17.33.3:8080 [15:22:41]Content-Length: 670 [15:22:41]Content-Type: application/json [15:22:41] [15:22:41]POST finish read [15:22:41]Found Content-Length = 670 [15:22:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347047", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 7.660, "sum" : 500.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:22:41]execute_script... [15:22: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)347047", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 7.660, "sum" : 500.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:22:41]POST & json_proto [15:22:41]process_json_proto [15:22:41]json parsed OK: [15:22:41]protocol is kg_v1.0 [15:22:41]action value=close_receipt [15:22:41]process_action close_receipt [15:22:41]cmd_close_receipt [15:22:41]MH_GetDate [15:22:41]Write to MH i2c: F0 00 00 48 89 C0 [15:22:41]Write i2c OK [15:22:41]MH_I2C_Read... [15:22:41]Read from MH i2c: F0 [15:22:41]MH_I2C_Read... [15:22:41]Read from MH i2c: F0 09 00 [15:22:41]MH_I2C_Read... [15:22:41]Read from MH i2c: F0 09 00 48 89 00 CA 51 19 66 23 5B 8F 65 D5 [15:22:41]GetLastDocTimeStamp 1712935328 [15:22:41]current date 1712935370 [15:22:41]FM_GetShiftState [15:22:41]SAM_PROTO_GetShiftState [15:22:41]wFMCommunicate request_size=4 [15:22:41]MH_SAM_APDU [15:22:41]CAPDU: 80 13 01 00 [15:22:41]Write to MH i2c: E2 08 00 49 89 80 13 01 00 00 00 00 00 4F [15:22:41]Write i2c OK [15:22:41]MH_I2C_Read... [15:22:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:22:41]Read from MH i2c: E2 [15:22:41]MH_I2C_Read... [15:22:41]Read from MH i2c: E2 0E 00 [15:22:41]MH_I2C_Read... [15:22:41]Read from MH i2c: E2 0E 00 49 89 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 60 [15:22:41]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [15:22:41]wFMCommunicate OK [15:22:41]SAM_PROTO_GetShiftState done [15:22:41]FM_GetShiftState done [15:22:41]opened in 1712881416 [15:22:41]opened+sec_in_day 1712967816 [15:22:41]quantity*price = 50019 [15:22:41]sum+1 = 50021 [15:22:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 162 12.04.2024 15:22 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28713 ФПД: 169488333271820 1/tax-web-control/client/api/v1/ticket?date=20240412T152250&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28713&fm=169488333271820&tin=02508201610067®Number=0000138879044617&sum=50000 [15:22:42]StoreToDocumentArchive [15:22:42]shift 113 fd 28713 [15:22:42]save to /storage/0113/doc_00028713 [15:22:42]save last doc name /storage/0113/doc_00028713 to /storage/kkm_last_doc_name [15:22:42]save OK [15:22:42]Clear old archive folders... [15:22:42]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:22:42]tlvbuf is 01B5AB40 [15:22:42]SAM_PROTO_ClearQueue [15:22:42]wFMCommunicate request_size=4 [15:22:42]MH_SAM_APDU [15:22:42]CAPDU: 80 09 00 00 [15:22:42]Write to MH i2c: E2 08 00 56 89 80 09 00 00 00 00 00 00 51 [15:22:42]Write i2c OK [15:22:42]MH_I2C_Read... [15:22:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:22:42]Read from MH i2c: E2 [15:22:42]MH_I2C_Read... [15:22:42]Read from MH i2c: E2 03 00 [15:22:42]MH_I2C_Read... [15:22:42]Read from MH i2c: E2 03 00 56 89 00 90 00 53 [15:22:42]RAPDU: 90 00 [15:22:42]wFMCommunicate OK [15:22:42]SAM_PROTO_ClearQueue done [15:22:42]KKMCreateOFDPacket [15:22:42]OFDProtocolAddRootSTLVToBuf [15:22:42]FM_MakeSignedData [15:22:42]FM_MakeSignedData [15:22:42]SAM_PROTO_SignData [15:22:42]wFMCommunicate request_size=4 [15:22:42]MH_SAM_APDU [15:22:42]CAPDU: 80 0D 01 02 [15:22:42]Write to MH i2c: E2 08 00 57 89 80 0D 01 02 00 00 00 00 59 [15:22:42]Write i2c OK [15:22:42]MH_I2C_Read... [15:22:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:22:42]Read from MH i2c: E2 [15:22:42]MH_I2C_Read... [15:22:42]Read from MH i2c: E2 03 00 [15:22:42]MH_I2C_Read... [15:22:42]Read from MH i2c: E2 03 00 57 89 00 90 00 54 [15:22:42]RAPDU: 90 00 [15:22:42]wFMCommunicate OK [15:22:42]wFMCommunicate request_size=255 [15:22:42]MH_SAM_APDU [15:22:42]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 1D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 64 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 CA 51 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 29 70 00 00 35 04 06 00 [15:22:42]Write to MH i2c: E2 02 01 58 89 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 1D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 64 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 CA 51 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 29 70 00 00 35 04 06 00 00 00 F1 [15:22:42]Write i2c OK [15:22:42]MH_I2C_Read... [15:22:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:22:42]Read from MH i2c: E2 [15:22:42]MH_I2C_Read... [15:22:42]Read from MH i2c: E2 03 00 [15:22:42]MH_I2C_Read... [15:22:42]Read from MH i2c: E2 03 00 58 89 00 90 00 55 [15:22:42]RAPDU: 90 00 [15:22:42]wFMCommunicate OK [15:22:42]wFMCommunicate request_size=11 [15:22:42]MH_SAM_APDU [15:22:42]CAPDU: 80 0D 02 02 06 9A 26 13 E5 F3 0C [15:22:42]Write to MH i2c: E2 0E 00 59 89 80 0D 02 02 06 00 9A 26 13 E5 F3 0C 00 00 1F [15:22:42]Write i2c OK [15:22:42]MH_I2C_Read... [15:22:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:22:42]Read from MH i2c: E2 [15:22:42]MH_I2C_Read... [15:22:42]Read from MH i2c: E2 03 00 [15:22:42]MH_I2C_Read... [15:22:42]Read from MH i2c: E2 03 00 59 89 00 90 00 56 [15:22:42]RAPDU: 90 00 [15:22:42]wFMCommunicate OK [15:22:42]wFMCommunicate request_size=4 [15:22:42]MH_SAM_APDU [15:22:42]CAPDU: 80 0D 03 02 [15:22:42]Write to MH i2c: E2 08 00 5A 89 80 0D 03 02 00 00 00 00 5E [15:22:42]Write i2c OK [15:22:42]MH_I2C_Read... [15:22:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:22:43]Read from MH i2c: E2 [15:22:43]MH_I2C_Read... [15:22:43]Read from MH i2c: E2 0B 00 [15:22:43]MH_I2C_Read... [15:22:43]Read from MH i2c: E2 0B 00 5A 89 00 71 D8 51 24 0D 67 56 82 90 00 69 [15:22:43]RAPDU: 71 D8 51 24 0D 67 56 82 90 00 [15:22:43]wFMCommunicate OK [15:22:43]SAM_PROTO_SignData done [15:22:43]FM_MakeSignedData done [15:22:43]CreateOFDProtocolMessage [15:22:43]wFMCommunicate request_size=4 [15:22:43]MH_SAM_APDU [15:22:43]CAPDU: 80 11 00 00 [15:22:43]Write to MH i2c: E2 08 00 5B 89 80 11 00 00 00 00 00 00 5E [15:22:43]Write i2c OK [15:22:43]MH_I2C_Read... [15:22:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:22:43]Read from MH i2c: E2 [15:22:43]MH_I2C_Read... [15:22:43]Read from MH i2c: E2 17 00 [15:22:43]MH_I2C_Read... [15:22:43]Read from MH i2c: E2 17 00 5B 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 AD [15:22:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:22:43]wFMCommunicate OK [15:22:43]CreateOFDProtocolMessage done [15:22:43]OFDSenderStorePacket 28713 [15:22:43]StoreOFDPacket docnum=28713 [15:22:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 32 44 08 01 72 01 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 1D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 64 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 CA 51 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 29 70 00 00 35 04 06 00 9A 26 13 E5 F3 0C 71 D8 51 24 0D 67 56 82 [15:22:43]CheckFolder [15:22:43]dirname=/storage/ofd_packets [15:22:43]CheckFolder done [15:22:43]ProducePacketName [15:22:43]name=ofd_packets/00028713 [15:22:43]NVStorageSaveData ofd_packets/00028713 [15:22:43]File name is /storage/ofd_packets/00028713 [15:22:43]Write 302 bytes [15:22:43]NVStorageSaveData done [15:22:43]OFDSenderStorePacket done [15:22:43]KKMCreateOFDPacket done [15:22:43]NVStorageSaveData kkm_last_timestamp [15:22:43]File name is /storage/kkm_last_timestamp [15:22:43]Write 4 bytes [15:22:43]NVStorageSaveData done [15:22:43]ExternCall_PrintAddStr [15:22:43]wPrintStart [15:22:43]Write to MH i2c: 01 00 00 5C 89 E5 [15:22:43]Write i2c OK [15:22:43]MH_I2C_Read... [15:22:43]Read from MH i2c: 01 [15:22:43]MH_I2C_Read... [15:22:43]Read from MH i2c: 01 07 00 [15:22:43]MH_I2C_Read... [15:22:43]Read from MH i2c: 01 07 00 5C 89 00 00 00 00 00 FF 0F FA [15:22:43]RasterBufferAndPrint [15:22:43]line Счет N : (1)347047 [15:22:43]line ИНН: 02508201610067 [15:22:43]line Контрольно-Кассовый Чек [15:22:43]line ПРОДАЖА [15:22:43]line ТРК (МРК, ГНК) : 12 [15:22:43]line Товар: 2710124130 [15:22:43]line SUPER-92-К-5 [15:22:43]line 7.660 * 65.30 [15:22:43]line = 500.20 [15:22:43]line НДС 12% НСП 1% [15:22:43]line > о реализуемом товаре [15:22:43]line ОКРУГЛЕНИЕ: -0.20 [15:22:43]line ИТОГО: 500.00 [15:22:43]line Внесено: 500.00 [15:22:43]line СДАЧА: 0.00 [15:22:43]line НСП 1% : 4.43 [15:22:43]line НДС 12% : 53.12 [15:22:43]line Наличными: 500.00 [15:22:43]line Безнал.: 0.00 [15:22:43]line Место: АЗС № 108 "Партнер Нефть" [15:22:43]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [15:22:43]line СНО: Общий режим [15:22:43]line Чек 162 12.04.2024 15:22 [15:22:43]line Смена: 113 ФФД: 1.0 [15:22:43]line ЗНМ: 0300000027 [15:22:43]line РНМ: 0000138879044617 [15:22:43]line Версия ККМ: 001 [15:22:43]line ФМ: 0000000000963154 [15:22:43]line ФД: 28713 [15:22:43]line ФПД: 169488333271820 [15:22:43]line 1/tax-web-control/client/api/v1/ticket?date=20240412T152250&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28713&fm=169488333271820&tin=02508201610067®Number=0000138879044617&sum=50000 [15:22:43]OFD Sender: Processing packet 28713 [packets to send 8, broken 7] [15:22:43]ProducePacketName [15:22:43]name=ofd_packets/00028713 [15:22:43]OFD Sender: To server: pG, [15:22:43]CommunicateWithHost lk.salyk.kg:30040 [15:22:43]ConnectInit lk.salyk.kg [15:22:43]written 0, free lines is 4095 [15:22:43]Connected sock=7 [15:22:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 32 44 08 01 72 01 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 1D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 64 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 CA 51 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 29 70 00 00 35 04 06 00 9A 26 13 E5 F3 0C 71 D8 51 24 0D 67 56 82 [15:22:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 86 CE 47 00 52 13 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 29 70 00 00 F4 03 04 00 73 FC 18 66 B6 04 01 00 00 5D B1 31 9B 7E F2 98 E1 [15:22:43]CommunicateWithHost err = 0 [15:22:43]CheckOFDResponse [15:22:43]1017 (14) - 77093643461234 [15:22:43]1041 (16) - 0000000000963154 [15:22:43]1040 (4) - 28713 [15:22:43]1012 (4) - 12.04.2024 09:18 [15:22:43]1206 (1) - 0 [15:22:43]OFD Sender: Remove packet 28713 [15:22:43]ProducePacketName [15:22:43]name=ofd_packets/00028713 [15:22:43]NVStorageDeleteData [15:22:43]Write to MH i2c: 01 00 00 86 89 0F [15:22:43]Write i2c OK [15:22:43]MH_I2C_Read... [15:22:43]Read from MH i2c: 01 [15:22:43]MH_I2C_Read... [15:22:43]Read from MH i2c: 01 07 00 [15:22:43]MH_I2C_Read... [15:22:43]Read from MH i2c: 01 07 00 86 89 00 00 00 00 00 C8 0C EA [15:22:43]RasterBufferAndPrint [15:22:43]line [15:22:43]line [15:22:43]line [15:22:43]line [15:22:43]line [15:22:43]written 0, free lines is 3278 [15:22:43]MH_Cut [15:22:43]Write to MH i2c: D1 01 00 8D 89 01 E8 [15:22:43]Write i2c OK [15:22:43]MH_I2C_Read... [15:22:43]Read from MH i2c: D1 [15:22:43]MH_I2C_Read... [15:22:43]Read from MH i2c: D1 01 00 [15:22:43]MH_I2C_Read... [15:22:43]Read from MH i2c: D1 01 00 8D 89 00 E7 [15:22:43]Write to MH i2c: 01 00 00 8E 89 17 [15:22:43]Write i2c OK [15:22:43]MH_I2C_Read... [15:22:44]OFD Sender: No OFD packet to send [15:22:44]*** Cut start [15:22:44]*** Partial cut [15:22:44]*** CUTSNS_PIN = 1 [15:22:44]*** CUTSNS_PIN = 0 [15:22:44]*** Brake cut motor [15:22:45]Read from MH i2c: 01 [15:22:45]MH_I2C_Read... [15:22:45]*** Stop cut motor [15:22:45]*** Cut end [15:22:45]Read from MH i2c: 01 07 00 [15:22:45]MH_I2C_Read... [15:22:45]Read from MH i2c: 01 07 00 8E 89 00 00 00 00 00 FF 0F 2C [15:22:45]process_action close_receipt done [15:22:45]requested_data is exist [15:22:45]produce_requested_data [15:22:45]requested_item fm.sn is exist - process it [15:22:45]wFMCommunicate request_size=4 [15:22:45]MH_SAM_APDU [15:22:45]CAPDU: 80 11 00 00 [15:22:45]Write to MH i2c: E2 08 00 8F 89 80 11 00 00 00 00 00 00 92 [15:22:45]Write i2c OK [15:22:45]MH_I2C_Read... [15:22:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:22:45]Read from MH i2c: E2 [15:22:45]MH_I2C_Read... [15:22:45]Read from MH i2c: E2 17 00 [15:22:45]MH_I2C_Read... [15:22:45]Read from MH i2c: E2 17 00 8F 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 E1 [15:22:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:22:45]wFMCommunicate OK [15:22:45]requested_item fd.num is exist - process it [15:22:45]SAM_PROTO_GetFieldsCounters [15:22:45]wFMCommunicate request_size=4 [15:22:45]MH_SAM_APDU [15:22:45]CAPDU: 80 13 00 00 [15:22:45]Write to MH i2c: E2 08 00 90 89 80 13 00 00 00 00 00 00 95 [15:22:45]Write i2c OK [15:22:45]MH_I2C_Read... [15:22:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:22:45]Read from MH i2c: E2 [15:22:45]MH_I2C_Read... [15:22:45]Read from MH i2c: E2 62 00 [15:22:45]MH_I2C_Read... [15:22:45]Read from MH i2c: E2 62 00 90 89 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 29 70 00 00 0E 04 04 00 71 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 C3 [15:22:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 29 70 00 00 0E 04 04 00 71 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:22:45]wFMCommunicate OK [15:22:45]SAM_PROTO_GetFieldsCounters done [15:22:45]requested_item shift.num is exist - process it [15:22:45]requested_item shift.opened is exist - process it [15:22:45]req_shift_opened [15:22:45]FM_GetShiftState [15:22:45]SAM_PROTO_GetShiftState [15:22:45]wFMCommunicate request_size=4 [15:22:45]MH_SAM_APDU [15:22:45]CAPDU: 80 13 01 00 [15:22:45]Write to MH i2c: E2 08 00 91 89 80 13 01 00 00 00 00 00 97 [15:22:45]Write i2c OK [15:22:45]MH_I2C_Read... [15:22:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:22:45]Read from MH i2c: E2 [15:22:45]MH_I2C_Read... [15:22:45]Read from MH i2c: E2 0E 00 [15:22:45]MH_I2C_Read... [15:22:45]Read from MH i2c: E2 0E 00 91 89 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 A8 [15:22:45]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [15:22:45]wFMCommunicate OK [15:22:45]SAM_PROTO_GetShiftState done [15:22:45]FM_GetShiftState done [15:22:45]req_shift_opened done [15:22:45]requested_item shift.open_date is exist - process it [15:22:45]req_shift_open_date [15:22:45]req_shift_open_date done [15:22:45]produce_requested_data done [15:22:45]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28713,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [15:22:45]process_action_free close_receipt [15:22:45]json_value_free [15:22:45]json_value_free done [15:22:45]process_json_proto returns [15:22:45]Send response to host [15:22:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28713,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [15:22:45]free response buf [15:22:45]execute_script done [15:22:45]execute_script returns [15:22:45]free content buf [15:22:45]Sock 5.Close socket [15:22:45]Sock 5.Thread stoped [15:22:49]OFD Sender: No OFD packet to send [15:22:54]OFD Sender: No OFD packet to send [15:22:59]OFD Sender: No OFD packet to send [15:23:04]OFD Sender: No OFD packet to send [15:23:09]OFD Sender: No OFD packet to send [15:23:14]OFD Sender: No OFD packet to send [15:23:19]OFD Sender: No OFD packet to send [15:23:24]OFD Sender: No OFD packet to send [15:23:29]OFD Sender: No OFD packet to send [15:23:34]OFD Sender: No OFD packet to send [15:23:39]OFD Sender: No OFD packet to send [15:23:44]OFD Sender: No OFD packet to send [15:23:49]OFD Sender: No OFD packet to send [15:23:54]OFD Sender: No OFD packet to send [15:23:59]OFD Sender: No OFD packet to send [15:24:04]OFD Sender: No OFD packet to send [15:24:09]OFD Sender: No OFD packet to send [15:24:14]OFD Sender: No OFD packet to send [15:24:19]OFD Sender: No OFD packet to send [15:24:24]OFD Sender: No OFD packet to send [15:24:29]OFD Sender: No OFD packet to send [15:24:34]OFD Sender: No OFD packet to send [15:24:39]OFD Sender: No OFD packet to send [15:24:44]OFD Sender: No OFD packet to send [15:24:49]OFD Sender: No OFD packet to send [15:24:54]OFD Sender: No OFD packet to send [15:24:59]OFD Sender: No OFD packet to send [15:25:04]OFD Sender: No OFD packet to send [15:25:09]OFD Sender: No OFD packet to send [15:25:14]OFD Sender: No OFD packet to send [15:25:19]OFD Sender: No OFD packet to send [15:25:24]OFD Sender: No OFD packet to send [15:25:29]OFD Sender: No OFD packet to send [15:25:34]OFD Sender: No OFD packet to send [15:25:39]OFD Sender: No OFD packet to send [15:25:44]OFD Sender: No OFD packet to send [15:25:49]OFD Sender: No OFD packet to send [15:25:54]OFD Sender: No OFD packet to send [15:25:59]OFD Sender: No OFD packet to send [15:26:04]OFD Sender: No OFD packet to send [15:26:09]OFD Sender: No OFD packet to send [15:26:14]OFD Sender: No OFD packet to send [15:26:19]OFD Sender: No OFD packet to send [15:26:24]OFD Sender: No OFD packet to send [15:26:29]OFD Sender: No OFD packet to send [15:26:34]OFD Sender: No OFD packet to send [15:26:39]OFD Sender: No OFD packet to send [15:26:44]OFD Sender: No OFD packet to send [15:26:49]OFD Sender: No OFD packet to send [15:26:54]OFD Sender: No OFD packet to send [15:26:59]OFD Sender: No OFD packet to send [15:27:04]OFD Sender: No OFD packet to send [15:27:09]OFD Sender: No OFD packet to send [15:27:14]OFD Sender: No OFD packet to send [15:27:19]OFD Sender: No OFD packet to send [15:27:21]accept exits with 6 [15:27:21]New connection [15:27:21]New thread 3066498404 created [15:27:21]Thread 3066641764 joined [15:27:21]Waiting for new connection... [15:27:21] Sock 6.Parse request [15:27:21]Sock 6.Check first char [15:27:21]Sock 6.First char is OK [15:27:21]request: POST /json_proto HTTP/1.0 [15:27:21]Method: POST [15:27:21]URL: /json_proto [15:27:21]Method is POST - this is cgi request [15:27:21]url: /json_proto [15:27:21]query_string will be loaded in cgi processing [15:27:21]execute_cgi json_proto POST (null) [15:27:21]execute_cgi path=json_proto method=POST [15:27:21]POST find Content-Length [15:27:21]Host: 172.17.33.3:8080 [15:27:21]Content-Length: 671 [15:27:21]Content-Type: application/json [15:27:21] [15:27:21]POST finish read [15:27:21]Found Content-Length = 671 [15:27:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347048", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 13.860, "sum" : 905.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 905.00, "total" : 905.00, "payments": [ { "type": 0, "sum" : 905.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:27:21]execute_script... [15:27: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)347048", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 13.860, "sum" : 905.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 905.00, "total" : 905.00, "payments": [ { "type": 0, "sum" : 905.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:27:21]POST & json_proto [15:27:21]process_json_proto [15:27:21]json parsed OK: [15:27:21]protocol is kg_v1.0 [15:27:21]action value=close_receipt [15:27:21]process_action close_receipt [15:27:21]cmd_close_receipt [15:27:21]MH_GetDate [15:27:21]Write to MH i2c: F0 00 00 92 89 0A [15:27:21]Write i2c OK [15:27:21]MH_I2C_Read... [15:27:21]Read from MH i2c: F0 [15:27:21]MH_I2C_Read... [15:27:21]Read from MH i2c: F0 09 00 [15:27:21]MH_I2C_Read... [15:27:21]Read from MH i2c: F0 09 00 92 89 00 E1 52 19 66 23 5B 8F 65 37 [15:27:21]GetLastDocTimeStamp 1712935370 [15:27:21]current date 1712935649 [15:27:21]FM_GetShiftState [15:27:21]SAM_PROTO_GetShiftState [15:27:21]wFMCommunicate request_size=4 [15:27:21]MH_SAM_APDU [15:27:21]CAPDU: 80 13 01 00 [15:27:21]Write to MH i2c: E2 08 00 93 89 80 13 01 00 00 00 00 00 99 [15:27:21]Write i2c OK [15:27:21]MH_I2C_Read... [15:27:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:27:21]Read from MH i2c: E2 [15:27:21]MH_I2C_Read... [15:27:21]Read from MH i2c: E2 0E 00 [15:27:21]MH_I2C_Read... [15:27:21]Read from MH i2c: E2 0E 00 93 89 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 AA [15:27:21]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [15:27:21]wFMCommunicate OK [15:27:21]SAM_PROTO_GetShiftState done [15:27:21]FM_GetShiftState done [15:27:21]opened in 1712881416 [15:27:21]opened+sec_in_day 1712967816 [15:27:21]quantity*price = 90505 [15:27:21]sum+1 = 90507 [15:27:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 905.00 Внесено: 905.00 СДАЧА: 0.00 НСП 1% : 8.01 НДС 12% : 96.11 Наличными: 905.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 163 12.04.2024 15:27 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28714 ФПД: 22738666639180 1/tax-web-control/client/api/v1/ticket?date=20240412T152730&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28714&fm=22738666639180&tin=02508201610067®Number=0000138879044617&sum=90500 [15:27:22]StoreToDocumentArchive [15:27:22]shift 113 fd 28714 [15:27:22]save to /storage/0113/doc_00028714 [15:27:22]save last doc name /storage/0113/doc_00028714 to /storage/kkm_last_doc_name [15:27:22]save OK [15:27:22]Clear old archive folders... [15:27:22]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:27:22]tlvbuf is 01B553D0 [15:27:22]SAM_PROTO_ClearQueue [15:27:22]wFMCommunicate request_size=4 [15:27:22]MH_SAM_APDU [15:27:22]CAPDU: 80 09 00 00 [15:27:22]Write to MH i2c: E2 08 00 A0 89 80 09 00 00 00 00 00 00 9B [15:27:22]Write i2c OK [15:27:22]MH_I2C_Read... [15:27:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:27:22]Read from MH i2c: E2 [15:27:22]MH_I2C_Read... [15:27:22]Read from MH i2c: E2 03 00 [15:27:22]MH_I2C_Read... [15:27:22]Read from MH i2c: E2 03 00 A0 89 00 90 00 9D [15:27:22]RAPDU: 90 00 [15:27:22]wFMCommunicate OK [15:27:22]SAM_PROTO_ClearQueue done [15:27:22]KKMCreateOFDPacket [15:27:22]OFDProtocolAddRootSTLVToBuf [15:27:22]FM_MakeSignedData [15:27:22]FM_MakeSignedData [15:27:22]SAM_PROTO_SignData [15:27:22]wFMCommunicate request_size=4 [15:27:22]MH_SAM_APDU [15:27:22]CAPDU: 80 0D 01 02 [15:27:22]Write to MH i2c: E2 08 00 A1 89 80 0D 01 02 00 00 00 00 A3 [15:27:22]Write i2c OK [15:27:22]MH_I2C_Read... [15:27:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:27:22]Read from MH i2c: E2 [15:27:22]MH_I2C_Read... [15:27:22]Read from MH i2c: E2 03 00 [15:27:22]MH_I2C_Read... [15:27:22]Read from MH i2c: E2 03 00 A1 89 00 90 00 9E [15:27:22]RAPDU: 90 00 [15:27:22]wFMCommunicate OK [15:27:22]wFMCommunicate request_size=255 [15:27:22]MH_SAM_APDU [15:27:22]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 36 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 8A 61 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 61 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 21 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 25 00 00 00 00 07 04 06 00 84 61 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 E2 52 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2A 70 00 00 35 04 06 00 [15:27:22]Write to MH i2c: E2 02 01 A2 89 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 36 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 8A 61 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 61 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 21 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 25 00 00 00 00 07 04 06 00 84 61 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 E2 52 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2A 70 00 00 35 04 06 00 00 00 56 [15:27:22]Write i2c OK [15:27:22]MH_I2C_Read... [15:27:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:27:22]Read from MH i2c: E2 [15:27:22]MH_I2C_Read... [15:27:22]Read from MH i2c: E2 03 00 [15:27:22]MH_I2C_Read... [15:27:22]Read from MH i2c: E2 03 00 A2 89 00 90 00 9F [15:27:22]RAPDU: 90 00 [15:27:22]wFMCommunicate OK [15:27:22]wFMCommunicate request_size=11 [15:27:22]MH_SAM_APDU [15:27:22]CAPDU: 80 0D 02 02 06 14 AE 42 25 CF 4C [15:27:22]Write to MH i2c: E2 0E 00 A3 89 80 0D 02 02 06 00 14 AE 42 25 CF 4C 00 00 F6 [15:27:22]Write i2c OK [15:27:22]MH_I2C_Read... [15:27:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:27:22]Read from MH i2c: E2 [15:27:22]MH_I2C_Read... [15:27:22]Read from MH i2c: E2 03 00 [15:27:22]MH_I2C_Read... [15:27:22]Read from MH i2c: E2 03 00 A3 89 00 90 00 A0 [15:27:22]RAPDU: 90 00 [15:27:22]wFMCommunicate OK [15:27:22]wFMCommunicate request_size=4 [15:27:22]MH_SAM_APDU [15:27:22]CAPDU: 80 0D 03 02 [15:27:22]Write to MH i2c: E2 08 00 A4 89 80 0D 03 02 00 00 00 00 A8 [15:27:22]Write i2c OK [15:27:22]MH_I2C_Read... [15:27:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:27:22]Read from MH i2c: E2 [15:27:22]MH_I2C_Read... [15:27:22]Read from MH i2c: E2 0B 00 [15:27:22]MH_I2C_Read... [15:27:22]Read from MH i2c: E2 0B 00 A4 89 00 01 01 24 56 15 87 A3 02 90 00 66 [15:27:22]RAPDU: 01 01 24 56 15 87 A3 02 90 00 [15:27:22]wFMCommunicate OK [15:27:22]SAM_PROTO_SignData done [15:27:22]FM_MakeSignedData done [15:27:22]CreateOFDProtocolMessage [15:27:22]wFMCommunicate request_size=4 [15:27:22]MH_SAM_APDU [15:27:22]CAPDU: 80 11 00 00 [15:27:22]Write to MH i2c: E2 08 00 A5 89 80 11 00 00 00 00 00 00 A8 [15:27:22]Write i2c OK [15:27:22]MH_I2C_Read... [15:27:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:27:22]Read from MH i2c: E2 [15:27:22]MH_I2C_Read... [15:27:22]Read from MH i2c: E2 17 00 [15:27:22]MH_I2C_Read... [15:27:22]Read from MH i2c: E2 17 00 A5 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 F7 [15:27:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:27:22]wFMCommunicate OK [15:27:22]CreateOFDProtocolMessage done [15:27:22]OFDSenderStorePacket 28714 [15:27:22]StoreOFDPacket docnum=28714 [15:27:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 00 8F 08 01 EA FB 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 36 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 8A 61 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 61 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 21 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 25 00 00 00 00 07 04 06 00 84 61 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 E2 52 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2A 70 00 00 35 04 06 00 14 AE 42 25 CF 4C 01 01 24 56 15 87 A3 02 [15:27:22]CheckFolder [15:27:22]dirname=/storage/ofd_packets [15:27:22]CheckFolder done [15:27:22]ProducePacketName [15:27:22]name=ofd_packets/00028714 [15:27:22]NVStorageSaveData ofd_packets/00028714 [15:27:22]File name is /storage/ofd_packets/00028714 [15:27:22]Write 302 bytes [15:27:22]NVStorageSaveData done [15:27:22]OFDSenderStorePacket done [15:27:22]KKMCreateOFDPacket done [15:27:22]NVStorageSaveData kkm_last_timestamp [15:27:22]File name is /storage/kkm_last_timestamp [15:27:22]Write 4 bytes [15:27:22]NVStorageSaveData done [15:27:22]ExternCall_PrintAddStr [15:27:22]wPrintStart [15:27:22]Write to MH i2c: 01 00 00 A6 89 2F [15:27:22]Write i2c OK [15:27:22]MH_I2C_Read... [15:27:22]Read from MH i2c: 01 [15:27:22]MH_I2C_Read... [15:27:22]Read from MH i2c: 01 07 00 [15:27:22]MH_I2C_Read... [15:27:22]Read from MH i2c: 01 07 00 A6 89 00 00 00 00 00 FF 0F 44 [15:27:22]RasterBufferAndPrint [15:27:22]line Счет N : (1)347048 [15:27:22]line ИНН: 02508201610067 [15:27:22]line Контрольно-Кассовый Чек [15:27:22]line ПРОДАЖА [15:27:22]line ТРК (МРК, ГНК) : 41 [15:27:22]line Товар: 2710124130 [15:27:22]line SUPER-92-К-5 [15:27:22]line 13.860 * 65.30 [15:27:22]line = 905.06 [15:27:22]line НДС 12% НСП 1% [15:27:22]line > о реализуемом товаре [15:27:22]line ОКРУГЛЕНИЕ: -0.06 [15:27:22]line ИТОГО: 905.00 [15:27:22]line Внесено: 905.00 [15:27:22]line СДАЧА: 0.00 [15:27:22]line НСП 1% : 8.01 [15:27:22]line НДС 12% : 96.11 [15:27:22]line Наличными: 905.00 [15:27:22]line Безнал.: 0.00 [15:27:22]line Место: АЗС № 108 "Партнер Нефть" [15:27:22]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [15:27:22]line СНО: Общий режим [15:27:22]line Чек 163 12.04.2024 15:27 [15:27:22]line Смена: 113 ФФД: 1.0 [15:27:22]line ЗНМ: 0300000027 [15:27:22]line РНМ: 0000138879044617 [15:27:22]line Версия ККМ: 001 [15:27:22]line ФМ: 0000000000963154 [15:27:22]line ФД: 28714 [15:27:22]line ФПД: 22738666639180 [15:27:22]line 1/tax-web-control/client/api/v1/ticket?date=20240412T152730&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28714&fm=22738666639180&tin=02508201610067®Number=0000138879044617&sum=90500 [15:27:23]OFD Sender: Processing packet 28714 [packets to send 8, broken 7] [15:27:23]ProducePacketName [15:27:23]name=ofd_packets/00028714 [15:27:23]OFD Sender: To server: pG, [15:27:23]CommunicateWithHost lk.salyk.kg:30040 [15:27:23]ConnectInit lk.salyk.kg [15:27:23]written 0, free lines is 4095 [15:27:23]Connected sock=7 [15:27:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 00 8F 08 01 EA FB 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 36 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 8A 61 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 61 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 21 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 25 00 00 00 00 07 04 06 00 84 61 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 E2 52 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2A 70 00 00 35 04 06 00 14 AE 42 25 CF 4C 01 01 24 56 15 87 A3 02 [15:27:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 7E DE 47 00 6E 3C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2A 70 00 00 F4 03 04 00 8B FD 18 66 B6 04 01 00 00 56 6B B7 CD F1 85 90 82 [15:27:23]CommunicateWithHost err = 0 [15:27:23]CheckOFDResponse [15:27:23]1017 (14) - 77093643461234 [15:27:23]1041 (16) - 0000000000963154 [15:27:23]1040 (4) - 28714 [15:27:23]1012 (4) - 12.04.2024 09:23 [15:27:23]1206 (1) - 0 [15:27:23]OFD Sender: Remove packet 28714 [15:27:23]ProducePacketName [15:27:23]name=ofd_packets/00028714 [15:27:23]NVStorageDeleteData [15:27:23]Write to MH i2c: 01 00 00 D0 89 59 [15:27:23]Write i2c OK [15:27:23]MH_I2C_Read... [15:27:23]Read from MH i2c: 01 [15:27:23]MH_I2C_Read... [15:27:23]Read from MH i2c: 01 07 00 [15:27:23]MH_I2C_Read... [15:27:23]Read from MH i2c: 01 07 00 D0 89 00 00 00 00 00 BE 0C 2A [15:27:23]RasterBufferAndPrint [15:27:23]line [15:27:23]line [15:27:23]line [15:27:23]line [15:27:23]line [15:27:23]written 0, free lines is 3268 [15:27:23]MH_Cut [15:27:23]Write to MH i2c: D1 01 00 D7 89 01 32 [15:27:23]Write i2c OK [15:27:23]MH_I2C_Read... [15:27:23]Read from MH i2c: D1 [15:27:23]MH_I2C_Read... [15:27:23]Read from MH i2c: D1 01 00 [15:27:23]MH_I2C_Read... [15:27:23]Read from MH i2c: D1 01 00 D7 89 00 31 [15:27:23]Write to MH i2c: 01 00 00 D8 89 61 [15:27:23]Write i2c OK [15:27:23]MH_I2C_Read... [15:27:24]OFD Sender: No OFD packet to send [15:27:24]*** Cut start [15:27:24]*** Partial cut [15:27:24]*** CUTSNS_PIN = 1 [15:27:24]*** CUTSNS_PIN = 0 [15:27:24]*** Brake cut motor [15:27:25]Read from MH i2c: 01 [15:27:25]MH_I2C_Read... [15:27:25]*** Stop cut motor [15:27:25]*** Cut end [15:27:25]Read from MH i2c: 01 07 00 [15:27:25]MH_I2C_Read... [15:27:25]Read from MH i2c: 01 07 00 D8 89 00 00 00 00 00 FF 0F 76 [15:27:25]process_action close_receipt done [15:27:25]requested_data is exist [15:27:25]produce_requested_data [15:27:25]requested_item fm.sn is exist - process it [15:27:25]wFMCommunicate request_size=4 [15:27:25]MH_SAM_APDU [15:27:25]CAPDU: 80 11 00 00 [15:27:25]Write to MH i2c: E2 08 00 D9 89 80 11 00 00 00 00 00 00 DC [15:27:25]Write i2c OK [15:27:25]MH_I2C_Read... [15:27:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:27:25]Read from MH i2c: E2 [15:27:25]MH_I2C_Read... [15:27:25]Read from MH i2c: E2 17 00 [15:27:25]MH_I2C_Read... [15:27:25]Read from MH i2c: E2 17 00 D9 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 2B [15:27:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:27:25]wFMCommunicate OK [15:27:25]requested_item fd.num is exist - process it [15:27:25]SAM_PROTO_GetFieldsCounters [15:27:25]wFMCommunicate request_size=4 [15:27:25]MH_SAM_APDU [15:27:25]CAPDU: 80 13 00 00 [15:27:25]Write to MH i2c: E2 08 00 DA 89 80 13 00 00 00 00 00 00 DF [15:27:25]Write i2c OK [15:27:25]MH_I2C_Read... [15:27:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:27:25]Read from MH i2c: E2 [15:27:25]MH_I2C_Read... [15:27:25]Read from MH i2c: E2 62 00 [15:27:25]MH_I2C_Read... [15:27:25]Read from MH i2c: E2 62 00 DA 89 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 2A 70 00 00 0E 04 04 00 71 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 11 [15:27:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 2A 70 00 00 0E 04 04 00 71 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:27:25]wFMCommunicate OK [15:27:25]SAM_PROTO_GetFieldsCounters done [15:27:25]requested_item shift.num is exist - process it [15:27:25]requested_item shift.opened is exist - process it [15:27:25]req_shift_opened [15:27:25]FM_GetShiftState [15:27:25]SAM_PROTO_GetShiftState [15:27:25]wFMCommunicate request_size=4 [15:27:25]MH_SAM_APDU [15:27:25]CAPDU: 80 13 01 00 [15:27:25]Write to MH i2c: E2 08 00 DB 89 80 13 01 00 00 00 00 00 E1 [15:27:25]Write i2c OK [15:27:25]MH_I2C_Read... [15:27:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:27:25]Read from MH i2c: E2 [15:27:25]MH_I2C_Read... [15:27:25]Read from MH i2c: E2 0E 00 [15:27:25]MH_I2C_Read... [15:27:25]Read from MH i2c: E2 0E 00 DB 89 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 F2 [15:27:25]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [15:27:25]wFMCommunicate OK [15:27:25]SAM_PROTO_GetShiftState done [15:27:25]FM_GetShiftState done [15:27:25]req_shift_opened done [15:27:25]requested_item shift.open_date is exist - process it [15:27:25]req_shift_open_date [15:27:25]req_shift_open_date done [15:27:25]produce_requested_data done [15:27:25]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28714,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [15:27:25]process_action_free close_receipt [15:27:25]json_value_free [15:27:25]json_value_free done [15:27:25]process_json_proto returns [15:27:25]Send response to host [15:27:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28714,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [15:27:25]free response buf [15:27:25]execute_script done [15:27:25]execute_script returns [15:27:25]free content buf [15:27:25]Sock 6.Close socket [15:27:25]Sock 6.Thread stoped [15:27:29]OFD Sender: No OFD packet to send [15:27:34]OFD Sender: No OFD packet to send [15:27:39]OFD Sender: No OFD packet to send [15:27:44]OFD Sender: No OFD packet to send [15:27:49]OFD Sender: No OFD packet to send [15:27:54]OFD Sender: No OFD packet to send [15:27:59]OFD Sender: No OFD packet to send [15:28:04]OFD Sender: No OFD packet to send [15:28:09]OFD Sender: No OFD packet to send [15:28:14]OFD Sender: No OFD packet to send [15:28:19]OFD Sender: No OFD packet to send [15:28:24]OFD Sender: No OFD packet to send [15:28:29]OFD Sender: No OFD packet to send [15:28:34]OFD Sender: No OFD packet to send [15:28:39]OFD Sender: No OFD packet to send [15:28:44]OFD Sender: No OFD packet to send [15:28:49]OFD Sender: No OFD packet to send [15:28:54]OFD Sender: No OFD packet to send [15:28:59]OFD Sender: No OFD packet to send [15:29:04]OFD Sender: No OFD packet to send [15:29:09]OFD Sender: No OFD packet to send [15:29:14]OFD Sender: No OFD packet to send [15:29:19]OFD Sender: No OFD packet to send [15:29:24]OFD Sender: No OFD packet to send [15:29:29]OFD Sender: No OFD packet to send [15:29:34]OFD Sender: No OFD packet to send [15:29:39]OFD Sender: No OFD packet to send [15:29:44]OFD Sender: No OFD packet to send [15:29:49]OFD Sender: No OFD packet to send [15:29:54]OFD Sender: No OFD packet to send [15:29:59]OFD Sender: No OFD packet to send [15:30:04]OFD Sender: No OFD packet to send [15:30:09]OFD Sender: No OFD packet to send [15:30:14]OFD Sender: No OFD packet to send [15:30:19]OFD Sender: No OFD packet to send [15:30:24]OFD Sender: No OFD packet to send [15:30:29]OFD Sender: No OFD packet to send [15:30:34]OFD Sender: No OFD packet to send [15:30:39]OFD Sender: No OFD packet to send [15:30:44]OFD Sender: No OFD packet to send [15:30:49]OFD Sender: No OFD packet to send [15:30:54]OFD Sender: No OFD packet to send [15:30:59]OFD Sender: No OFD packet to send [15:31:04]OFD Sender: No OFD packet to send [15:31:09]OFD Sender: No OFD packet to send [15:31:14]OFD Sender: No OFD packet to send [15:31:19]OFD Sender: No OFD packet to send [15:31:24]OFD Sender: No OFD packet to send [15:31:29]OFD Sender: No OFD packet to send [15:31:34]OFD Sender: No OFD packet to send [15:31:39]OFD Sender: No OFD packet to send [15:31:44]OFD Sender: No OFD packet to send [15:31:49]OFD Sender: No OFD packet to send [15:31:54]OFD Sender: No OFD packet to send [15:31:59]OFD Sender: No OFD packet to send [15:32:04]OFD Sender: No OFD packet to send [15:32:09]OFD Sender: No OFD packet to send [15:32:14]OFD Sender: No OFD packet to send [15:32:19]OFD Sender: No OFD packet to send [15:32:24]OFD Sender: No OFD packet to send [15:32:29]OFD Sender: No OFD packet to send [15:32:34]OFD Sender: No OFD packet to send [15:32:39]OFD Sender: No OFD packet to send [15:32:44]OFD Sender: No OFD packet to send [15:32:49]OFD Sender: No OFD packet to send [15:32:54]OFD Sender: No OFD packet to send [15:32:59]OFD Sender: No OFD packet to send [15:33:04]OFD Sender: No OFD packet to send [15:33:09]OFD Sender: No OFD packet to send [15:33:14]OFD Sender: No OFD packet to send [15:33:19]OFD Sender: No OFD packet to send [15:33:24]OFD Sender: No OFD packet to send [15:33:29]OFD Sender: No OFD packet to send [15:33:34]OFD Sender: No OFD packet to send [15:33:39]OFD Sender: No OFD packet to send [15:33:44]OFD Sender: No OFD packet to send [15:33:49]OFD Sender: No OFD packet to send [15:33:54]OFD Sender: No OFD packet to send [15:33:59]OFD Sender: No OFD packet to send [15:34:04]OFD Sender: No OFD packet to send [15:34:09]OFD Sender: No OFD packet to send [15:34:14]OFD Sender: No OFD packet to send [15:34:19]OFD Sender: No OFD packet to send [15:34:24]OFD Sender: No OFD packet to send [15:34:29]OFD Sender: No OFD packet to send [15:34:34]OFD Sender: No OFD packet to send [15:34:39]OFD Sender: No OFD packet to send [15:34:44]OFD Sender: No OFD packet to send [15:34:49]OFD Sender: No OFD packet to send [15:34:54]OFD Sender: No OFD packet to send [15:34:59]OFD Sender: No OFD packet to send [15:35:04]OFD Sender: No OFD packet to send [15:35:09]OFD Sender: No OFD packet to send [15:35:14]OFD Sender: No OFD packet to send [15:35:19]OFD Sender: No OFD packet to send [15:35:24]OFD Sender: No OFD packet to send [15:35:29]OFD Sender: No OFD packet to send [15:35:34]OFD Sender: No OFD packet to send [15:35:39]OFD Sender: No OFD packet to send [15:35:44]OFD Sender: No OFD packet to send [15:35:49]OFD Sender: No OFD packet to send [15:35:54]OFD Sender: No OFD packet to send [15:35:59]OFD Sender: No OFD packet to send [15:36:04]OFD Sender: No OFD packet to send [15:36:09]OFD Sender: No OFD packet to send [15:36:14]OFD Sender: No OFD packet to send [15:36:19]OFD Sender: No OFD packet to send [15:36:24]OFD Sender: No OFD packet to send [15:36:29]OFD Sender: No OFD packet to send [15:36:34]OFD Sender: No OFD packet to send [15:36:39]OFD Sender: No OFD packet to send [15:36:44]OFD Sender: No OFD packet to send [15:36:49]OFD Sender: No OFD packet to send [15:36:54]OFD Sender: No OFD packet to send [15:36:59]OFD Sender: No OFD packet to send [15:37:02]accept exits with 5 [15:37:02]New connection [15:37:02]New thread 3066641764 created [15:37:02]Thread 3066498404 joined [15:37:02]Waiting for new connection... [15:37:02] Sock 5.Parse request [15:37:02]Sock 5.Check first char [15:37:02]Sock 5.First char is OK [15:37:02]request: POST /json_proto HTTP/1.0 [15:37:02]Method: POST [15:37:02]URL: /json_proto [15:37:02]Method is POST - this is cgi request [15:37:02]url: /json_proto [15:37:02]query_string will be loaded in cgi processing [15:37:02]execute_cgi json_proto POST (null) [15:37:02]execute_cgi path=json_proto method=POST [15:37:02]POST find Content-Length [15:37:02]Host: 172.17.33.3:8080 [15:37:02]Content-Length: 682 [15:37:02]Content-Type: application/json [15:37:02] [15:37:02]POST finish read [15:37:02]Found Content-Length = 682 [15:37:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347049", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 15.560, "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:37:02]execute_script... [15:37: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)347049", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 15.560, "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:37:02]POST & json_proto [15:37:02]process_json_proto [15:37:02]json parsed OK: [15:37:02]protocol is kg_v1.0 [15:37:02]action value=close_receipt [15:37:02]process_action close_receipt [15:37:02]cmd_close_receipt [15:37:02]MH_GetDate [15:37:02]Write to MH i2c: F0 00 00 DC 89 54 [15:37:02]Write i2c OK [15:37:02]MH_I2C_Read... [15:37:02]Read from MH i2c: F0 [15:37:02]MH_I2C_Read... [15:37:02]Read from MH i2c: F0 09 00 [15:37:02]MH_I2C_Read... [15:37:02]Read from MH i2c: F0 09 00 DC 89 00 27 55 19 66 23 5B 8F 65 CA [15:37:02]GetLastDocTimeStamp 1712935650 [15:37:02]current date 1712936231 [15:37:02]FM_GetShiftState [15:37:02]SAM_PROTO_GetShiftState [15:37:02]wFMCommunicate request_size=4 [15:37:02]MH_SAM_APDU [15:37:02]CAPDU: 80 13 01 00 [15:37:02]Write to MH i2c: E2 08 00 DD 89 80 13 01 00 00 00 00 00 E3 [15:37:02]Write i2c OK [15:37:02]MH_I2C_Read... [15:37:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:37:02]Read from MH i2c: E2 [15:37:02]MH_I2C_Read... [15:37:02]Read from MH i2c: E2 0E 00 [15:37:02]MH_I2C_Read... [15:37:02]Read from MH i2c: E2 0E 00 DD 89 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 F4 [15:37:02]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [15:37:02]wFMCommunicate OK [15:37:02]SAM_PROTO_GetShiftState done [15:37:02]FM_GetShiftState done [15:37:02]opened in 1712881416 [15:37:02]opened+sec_in_day 1712967816 [15:37:02]quantity*price = 100050 [15:37:02]sum+1 = 100052 [15:37:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 164 12.04.2024 15:37 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28715 ФПД: 234278844000398 1/tax-web-control/client/api/v1/ticket?date=20240412T153711&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28715&fm=234278844000398&tin=02508201610067®Number=0000138879044617&sum=100000 [15:37:04]StoreToDocumentArchive [15:37:04]shift 113 fd 28715 [15:37:04]save to /storage/0113/doc_00028715 [15:37:04]save last doc name /storage/0113/doc_00028715 to /storage/kkm_last_doc_name [15:37:04]save OK [15:37:04]Clear old archive folders... [15:37:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:37:04]tlvbuf is 01B5AB40 [15:37:04]SAM_PROTO_ClearQueue [15:37:04]wFMCommunicate request_size=4 [15:37:04]MH_SAM_APDU [15:37:04]CAPDU: 80 09 00 00 [15:37:04]Write to MH i2c: E2 08 00 EA 89 80 09 00 00 00 00 00 00 E5 [15:37:04]Write i2c OK [15:37:04]MH_I2C_Read... [15:37:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:37:04]Read from MH i2c: E2 [15:37:04]MH_I2C_Read... [15:37:04]Read from MH i2c: E2 03 00 [15:37:04]MH_I2C_Read... [15:37:04]Read from MH i2c: E2 03 00 EA 89 00 90 00 E7 [15:37:04]RAPDU: 90 00 [15:37:04]wFMCommunicate OK [15:37:04]SAM_PROTO_ClearQueue done [15:37:04]KKMCreateOFDPacket [15:37:04]OFDProtocolAddRootSTLVToBuf [15:37:04]FM_MakeSignedData [15:37:04]FM_MakeSignedData [15:37:04]SAM_PROTO_SignData [15:37:04]wFMCommunicate request_size=4 [15:37:04]MH_SAM_APDU [15:37:04]CAPDU: 80 0D 01 02 [15:37:04]Write to MH i2c: E2 08 00 EB 89 80 0D 01 02 00 00 00 00 ED [15:37:04]Write i2c OK [15:37:04]MH_I2C_Read... [15:37:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:37:04]Read from MH i2c: E2 [15:37:04]MH_I2C_Read... [15:37:04]Read from MH i2c: E2 03 00 [15:37:04]MH_I2C_Read... [15:37:04]Read from MH i2c: E2 03 00 EB 89 00 90 00 E8 [15:37:04]RAPDU: 90 00 [15:37:04]wFMCommunicate OK [15:37:04]wFMCommunicate request_size=255 [15:37:04]MH_SAM_APDU [15:37:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 A4 00 00 00 F4 03 04 00 27 55 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2B 70 00 00 35 04 06 00 D5 [15:37:04]Write to MH i2c: E2 02 01 EC 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 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 A4 00 00 00 F4 03 04 00 27 55 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2B 70 00 00 35 04 06 00 D5 00 00 99 [15:37:04]Write i2c OK [15:37:04]MH_I2C_Read... [15:37:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:37:04]Read from MH i2c: E2 [15:37:04]MH_I2C_Read... [15:37:04]Read from MH i2c: E2 03 00 [15:37:04]MH_I2C_Read... [15:37:04]Read from MH i2c: E2 03 00 EC 89 00 90 00 E9 [15:37:04]RAPDU: 90 00 [15:37:04]wFMCommunicate OK [15:37:04]wFMCommunicate request_size=10 [15:37:04]MH_SAM_APDU [15:37:04]CAPDU: 80 0D 02 02 05 13 4B 46 68 8E [15:37:04]Write to MH i2c: E2 0D 00 ED 89 80 0D 02 02 05 00 13 4B 46 68 8E 00 00 94 [15:37:04]Write i2c OK [15:37:04]MH_I2C_Read... [15:37:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:37:04]Read from MH i2c: E2 [15:37:04]MH_I2C_Read... [15:37:04]Read from MH i2c: E2 03 00 [15:37:04]MH_I2C_Read... [15:37:04]Read from MH i2c: E2 03 00 ED 89 00 90 00 EA [15:37:04]RAPDU: 90 00 [15:37:04]wFMCommunicate OK [15:37:04]wFMCommunicate request_size=4 [15:37:04]MH_SAM_APDU [15:37:04]CAPDU: 80 0D 03 02 [15:37:04]Write to MH i2c: E2 08 00 EE 89 80 0D 03 02 00 00 00 00 F2 [15:37:04]Write i2c OK [15:37:04]MH_I2C_Read... [15:37:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:37:04]OFD Sender: No OFD packet to send [15:37:04]Read from MH i2c: E2 [15:37:04]MH_I2C_Read... [15:37:04]Read from MH i2c: E2 0B 00 [15:37:04]MH_I2C_Read... [15:37:04]Read from MH i2c: E2 0B 00 EE 89 00 F0 81 08 01 F9 AE E3 C2 90 00 B9 [15:37:04]RAPDU: F0 81 08 01 F9 AE E3 C2 90 00 [15:37:04]wFMCommunicate OK [15:37:04]SAM_PROTO_SignData done [15:37:04]FM_MakeSignedData done [15:37:04]CreateOFDProtocolMessage [15:37:04]wFMCommunicate request_size=4 [15:37:04]MH_SAM_APDU [15:37:04]CAPDU: 80 11 00 00 [15:37:04]Write to MH i2c: E2 08 00 EF 89 80 11 00 00 00 00 00 00 F2 [15:37:04]Write i2c OK [15:37:04]MH_I2C_Read... [15:37:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:37:04]Read from MH i2c: E2 [15:37:04]MH_I2C_Read... [15:37:04]Read from MH i2c: E2 17 00 [15:37:04]MH_I2C_Read... [15:37:04]Read from MH i2c: E2 17 00 EF 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 41 [15:37:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:37:04]wFMCommunicate OK [15:37:04]CreateOFDProtocolMessage done [15:37:04]OFDSenderStorePacket 28715 [15:37:04]StoreOFDPacket docnum=28715 [15:37:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 84 9C 07 01 5A 89 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 A4 00 00 00 F4 03 04 00 27 55 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2B 70 00 00 35 04 06 00 D5 13 4B 46 68 8E F0 81 08 01 F9 AE E3 C2 [15:37:04]CheckFolder [15:37:04]dirname=/storage/ofd_packets [15:37:04]CheckFolder done [15:37:04]ProducePacketName [15:37:04]name=ofd_packets/00028715 [15:37:04]NVStorageSaveData ofd_packets/00028715 [15:37:04]File name is /storage/ofd_packets/00028715 [15:37:04]Write 301 bytes [15:37:04]NVStorageSaveData done [15:37:04]OFDSenderStorePacket done [15:37:04]KKMCreateOFDPacket done [15:37:04]NVStorageSaveData kkm_last_timestamp [15:37:04]File name is /storage/kkm_last_timestamp [15:37:04]Write 4 bytes [15:37:04]NVStorageSaveData done [15:37:04]ExternCall_PrintAddStr [15:37:04]wPrintStart [15:37:04]Write to MH i2c: 01 00 00 F0 89 79 [15:37:04]Write i2c OK [15:37:04]MH_I2C_Read... [15:37:04]Read from MH i2c: 01 [15:37:04]MH_I2C_Read... [15:37:04]Read from MH i2c: 01 07 00 [15:37:04]MH_I2C_Read... [15:37:04]Read from MH i2c: 01 07 00 F0 89 00 00 00 00 00 FF 0F 8E [15:37:04]RasterBufferAndPrint [15:37:04]line Счет N : (1)347049 [15:37:04]line ИНН: 02508201610067 [15:37:04]line Контрольно-Кассовый Чек [15:37:04]line ПРОДАЖА [15:37:04]line ТРК (МРК, ГНК) : 32 [15:37:04]line Товар: 2710124130 [15:37:04]line Аи-92-К-5 [15:37:04]line 15.560 * 64.30 [15:37:04]line = 1000.51 [15:37:04]line НДС 12% НСП 1% [15:37:04]line > о реализуемом товаре [15:37:04]line ОКРУГЛЕНИЕ: -0.51 [15:37:04]line ИТОГО: 1000.00 [15:37:04]line Внесено: 1000.00 [15:37:04]line СДАЧА: 0.00 [15:37:04]line НСП 1% : 8.85 [15:37:04]line НДС 12% : 106.25 [15:37:04]line Наличными: 1000.00 [15:37:04]line Безнал.: 0.00 [15:37:04]line Место: АЗС № 108 "Партнер Нефть" [15:37:04]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [15:37:04]line СНО: Общий режим [15:37:04]line Чек 164 12.04.2024 15:37 [15:37:04]line Смена: 113 ФФД: 1.0 [15:37:04]line ЗНМ: 0300000027 [15:37:04]line РНМ: 0000138879044617 [15:37:04]line Версия ККМ: 001 [15:37:04]line ФМ: 0000000000963154 [15:37:04]line ФД: 28715 [15:37:04]line ФПД: 234278844000398 [15:37:04]line 1/tax-web-control/client/api/v1/ticket?date=20240412T153711&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28715&fm=234278844000398&tin=02508201610067®Number=0000138879044617&sum=100000 [15:37:04]OFD Sender: Processing packet 28715 [packets to send 8, broken 7] [15:37:04]ProducePacketName [15:37:04]name=ofd_packets/00028715 [15:37:04]OFD Sender: To server: pG, [15:37:04]CommunicateWithHost lk.salyk.kg:30040 [15:37:04]ConnectInit lk.salyk.kg [15:37:04]written 0, free lines is 4095 [15:37:05]Connected sock=7 [15:37:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 84 9C 07 01 5A 89 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 A4 00 00 00 F4 03 04 00 27 55 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2B 70 00 00 35 04 06 00 D5 13 4B 46 68 8E F0 81 08 01 F9 AE E3 C2 [15:37:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 6C 78 47 00 BB 0B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2B 70 00 00 F4 03 04 00 D1 FF 18 66 B6 04 01 00 00 5B 86 68 90 0C F9 AE 7E [15:37:05]CommunicateWithHost err = 0 [15:37:05]CheckOFDResponse [15:37:05]1017 (14) - 77093643461234 [15:37:05]1041 (16) - 0000000000963154 [15:37:05]1040 (4) - 28715 [15:37:05]1012 (4) - 12.04.2024 09:33 [15:37:05]1206 (1) - 0 [15:37:05]OFD Sender: Remove packet 28715 [15:37:05]ProducePacketName [15:37:05]name=ofd_packets/00028715 [15:37:05]NVStorageDeleteData [15:37:05]Write to MH i2c: 01 00 00 1A 8A A4 [15:37:05]Write i2c OK [15:37:05]MH_I2C_Read... [15:37:05]Read from MH i2c: 01 [15:37:05]MH_I2C_Read... [15:37:05]Read from MH i2c: 01 07 00 [15:37:05]MH_I2C_Read... [15:37:05]Read from MH i2c: 01 07 00 1A 8A 00 00 00 00 00 CD 0C 84 [15:37:05]RasterBufferAndPrint [15:37:05]line [15:37:05]line [15:37:05]line [15:37:05]line [15:37:05]line [15:37:05]written 0, free lines is 3285 [15:37:05]MH_Cut [15:37:05]Write to MH i2c: D1 01 00 21 8A 01 7D [15:37:05]Write i2c OK [15:37:05]MH_I2C_Read... [15:37:05]Read from MH i2c: D1 [15:37:05]MH_I2C_Read... [15:37:05]Read from MH i2c: D1 01 00 [15:37:05]MH_I2C_Read... [15:37:05]Read from MH i2c: D1 01 00 21 8A 00 7C [15:37:05]Write to MH i2c: 01 00 00 22 8A AC [15:37:05]Write i2c OK [15:37:05]MH_I2C_Read... [15:37:05]OFD Sender: No OFD packet to send [15:37:06]*** Cut start [15:37:06]*** Partial cut [15:37:06]*** CUTSNS_PIN = 1 [15:37:06]*** CUTSNS_PIN = 0 [15:37:06]*** Brake cut motor [15:37:06]Read from MH i2c: 01 [15:37:06]MH_I2C_Read... [15:37:06]*** Stop cut motor [15:37:06]*** Cut end [15:37:06]Read from MH i2c: 01 07 00 [15:37:06]MH_I2C_Read... [15:37:06]Read from MH i2c: 01 07 00 22 8A 00 00 00 00 00 FF 0F C1 [15:37:06]process_action close_receipt done [15:37:06]requested_data is exist [15:37:06]produce_requested_data [15:37:06]requested_item fm.sn is exist - process it [15:37:06]wFMCommunicate request_size=4 [15:37:06]MH_SAM_APDU [15:37:06]CAPDU: 80 11 00 00 [15:37:06]Write to MH i2c: E2 08 00 23 8A 80 11 00 00 00 00 00 00 27 [15:37:06]Write i2c OK [15:37:06]MH_I2C_Read... [15:37:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:37:06]Read from MH i2c: E2 [15:37:06]MH_I2C_Read... [15:37:06]Read from MH i2c: E2 17 00 [15:37:06]MH_I2C_Read... [15:37:06]Read from MH i2c: E2 17 00 23 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 76 [15:37:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:37:06]wFMCommunicate OK [15:37:06]requested_item fd.num is exist - process it [15:37:06]SAM_PROTO_GetFieldsCounters [15:37:06]wFMCommunicate request_size=4 [15:37:06]MH_SAM_APDU [15:37:06]CAPDU: 80 13 00 00 [15:37:06]Write to MH i2c: E2 08 00 24 8A 80 13 00 00 00 00 00 00 2A [15:37:06]Write i2c OK [15:37:06]MH_I2C_Read... [15:37:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:37:07]Read from MH i2c: E2 [15:37:07]MH_I2C_Read... [15:37:07]Read from MH i2c: E2 62 00 [15:37:07]MH_I2C_Read... [15:37:07]Read from MH i2c: E2 62 00 24 8A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 2B 70 00 00 0E 04 04 00 71 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 60 [15:37:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 2B 70 00 00 0E 04 04 00 71 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:37:07]wFMCommunicate OK [15:37:07]SAM_PROTO_GetFieldsCounters done [15:37:07]requested_item shift.num is exist - process it [15:37:07]requested_item shift.opened is exist - process it [15:37:07]req_shift_opened [15:37:07]FM_GetShiftState [15:37:07]SAM_PROTO_GetShiftState [15:37:07]wFMCommunicate request_size=4 [15:37:07]MH_SAM_APDU [15:37:07]CAPDU: 80 13 01 00 [15:37:07]Write to MH i2c: E2 08 00 25 8A 80 13 01 00 00 00 00 00 2C [15:37:07]Write i2c OK [15:37:07]MH_I2C_Read... [15:37:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:37:07]Read from MH i2c: E2 [15:37:07]MH_I2C_Read... [15:37:07]Read from MH i2c: E2 0E 00 [15:37:07]MH_I2C_Read... [15:37:07]Read from MH i2c: E2 0E 00 25 8A 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 3D [15:37:07]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [15:37:07]wFMCommunicate OK [15:37:07]SAM_PROTO_GetShiftState done [15:37:07]FM_GetShiftState done [15:37:07]req_shift_opened done [15:37:07]requested_item shift.open_date is exist - process it [15:37:07]req_shift_open_date [15:37:07]req_shift_open_date done [15:37:07]produce_requested_data done [15:37:07]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28715,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [15:37:07]process_action_free close_receipt [15:37:07]json_value_free [15:37:07]json_value_free done [15:37:07]process_json_proto returns [15:37:07]Send response to host [15:37:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28715,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [15:37:07]free response buf [15:37:07]execute_script done [15:37:07]execute_script returns [15:37:07]free content buf [15:37:07]Sock 5.Close socket [15:37:07]Sock 5.Thread stoped [15:37:10]OFD Sender: No OFD packet to send [15:37:15]OFD Sender: No OFD packet to send [15:37:20]OFD Sender: No OFD packet to send [15:37:25]OFD Sender: No OFD packet to send [15:37:30]OFD Sender: No OFD packet to send [15:37:35]OFD Sender: No OFD packet to send [15:37:39]accept exits with 6 [15:37:39]New connection [15:37:39]New thread 3066498404 created [15:37:39]Thread 3066641764 joined [15:37:39]Waiting for new connection... [15:37:39] Sock 6.Parse request [15:37:39]Sock 6.Check first char [15:37:39]Sock 6.First char is OK [15:37:39]request: POST /json_proto HTTP/1.0 [15:37:39]Method: POST [15:37:39]URL: /json_proto [15:37:39]Method is POST - this is cgi request [15:37:39]url: /json_proto [15:37:39]query_string will be loaded in cgi processing [15:37:39]execute_cgi json_proto POST (null) [15:37:39]execute_cgi path=json_proto method=POST [15:37:39]POST find Content-Length [15:37:39]Host: 172.17.33.3:8080 [15:37:39]Content-Length: 675 [15:37:39]Content-Type: application/json [15:37:39] [15:37:39]POST finish read [15:37:39]Found Content-Length = 675 [15:37:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347050", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 15.320, "sum" : 1000.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:37:39]execute_script... [15:37: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)347050", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 15.320, "sum" : 1000.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:37:39]POST & json_proto [15:37:39]process_json_proto [15:37:39]json parsed OK: [15:37:39]protocol is kg_v1.0 [15:37:39]action value=close_receipt [15:37:39]process_action close_receipt [15:37:39]cmd_close_receipt [15:37:39]MH_GetDate [15:37:39]Write to MH i2c: F0 00 00 26 8A 9F [15:37:39]Write i2c OK [15:37:39]MH_I2C_Read... [15:37:39]Read from MH i2c: F0 [15:37:39]MH_I2C_Read... [15:37:39]Read from MH i2c: F0 09 00 [15:37:39]MH_I2C_Read... [15:37:39]Read from MH i2c: F0 09 00 26 8A 00 4C 55 19 66 23 5B 8F 65 3A [15:37:39]GetLastDocTimeStamp 1712936231 [15:37:39]current date 1712936268 [15:37:39]FM_GetShiftState [15:37:39]SAM_PROTO_GetShiftState [15:37:39]wFMCommunicate request_size=4 [15:37:39]MH_SAM_APDU [15:37:39]CAPDU: 80 13 01 00 [15:37:39]Write to MH i2c: E2 08 00 27 8A 80 13 01 00 00 00 00 00 2E [15:37:39]Write i2c OK [15:37:39]MH_I2C_Read... [15:37:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:37:39]Read from MH i2c: E2 [15:37:39]MH_I2C_Read... [15:37:39]Read from MH i2c: E2 0E 00 [15:37:39]MH_I2C_Read... [15:37:39]Read from MH i2c: E2 0E 00 27 8A 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 3F [15:37:39]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [15:37:39]wFMCommunicate OK [15:37:39]SAM_PROTO_GetShiftState done [15:37:39]FM_GetShiftState done [15:37:39]opened in 1712881416 [15:37:39]opened+sec_in_day 1712967816 [15:37:39]quantity*price = 100039 [15:37:39]sum+1 = 100041 [15:37:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 165 12.04.2024 15:37 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28716 ФПД: 159837021360937 1/tax-web-control/client/api/v1/ticket?date=20240412T153748&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28716&fm=159837021360937&tin=02508201610067®Number=0000138879044617&sum=100000 [15:37:41]StoreToDocumentArchive [15:37:41]shift 113 fd 28716 [15:37:41]save to /storage/0113/doc_00028716 [15:37:41]save last doc name /storage/0113/doc_00028716 to /storage/kkm_last_doc_name [15:37:41]save OK [15:37:41]Clear old archive folders... [15:37:41]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:37:41]tlvbuf is 01B55510 [15:37:41]SAM_PROTO_ClearQueue [15:37:41]wFMCommunicate request_size=4 [15:37:41]MH_SAM_APDU [15:37:41]CAPDU: 80 09 00 00 [15:37:41]Write to MH i2c: E2 08 00 34 8A 80 09 00 00 00 00 00 00 30 [15:37:41]Write i2c OK [15:37:41]MH_I2C_Read... [15:37:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:37:41]Read from MH i2c: E2 [15:37:41]MH_I2C_Read... [15:37:41]Read from MH i2c: E2 03 00 [15:37:41]MH_I2C_Read... [15:37:41]Read from MH i2c: E2 03 00 34 8A 00 90 00 32 [15:37:41]RAPDU: 90 00 [15:37:41]wFMCommunicate OK [15:37:41]SAM_PROTO_ClearQueue done [15:37:41]KKMCreateOFDPacket [15:37:41]OFDProtocolAddRootSTLVToBuf [15:37:41]FM_MakeSignedData [15:37:41]FM_MakeSignedData [15:37:41]SAM_PROTO_SignData [15:37:41]wFMCommunicate request_size=4 [15:37:41]MH_SAM_APDU [15:37:41]CAPDU: 80 0D 01 02 [15:37:41]Write to MH i2c: E2 08 00 35 8A 80 0D 01 02 00 00 00 00 38 [15:37:41]Write i2c OK [15:37:41]MH_I2C_Read... [15:37:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:37:41]Read from MH i2c: E2 [15:37:41]MH_I2C_Read... [15:37:41]Read from MH i2c: E2 03 00 [15:37:41]MH_I2C_Read... [15:37:41]Read from MH i2c: E2 03 00 35 8A 00 90 00 33 [15:37:41]RAPDU: 90 00 [15:37:41]wFMCommunicate OK [15:37:41]wFMCommunicate request_size=255 [15:37:41]MH_SAM_APDU [15:37:41]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 3B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 4C 55 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2C 70 00 00 35 04 06 00 [15:37:41]Write to MH i2c: E2 02 01 36 8A 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 3B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 4C 55 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2C 70 00 00 35 04 06 00 00 00 47 [15:37:41]Write i2c OK [15:37:41]MH_I2C_Read... [15:37:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:37:41]Read from MH i2c: E2 [15:37:41]MH_I2C_Read... [15:37:41]Read from MH i2c: E2 03 00 [15:37:41]MH_I2C_Read... [15:37:41]Read from MH i2c: E2 03 00 36 8A 00 90 00 34 [15:37:41]RAPDU: 90 00 [15:37:41]wFMCommunicate OK [15:37:41]wFMCommunicate request_size=11 [15:37:41]MH_SAM_APDU [15:37:41]CAPDU: 80 0D 02 02 06 91 5E F4 E1 53 29 [15:37:41]Write to MH i2c: E2 0E 00 37 8A 80 0D 02 02 06 00 91 5E F4 E1 53 29 00 00 87 [15:37:41]Write i2c OK [15:37:41]MH_I2C_Read... [15:37:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:37:41]Read from MH i2c: E2 [15:37:41]MH_I2C_Read... [15:37:41]Read from MH i2c: E2 03 00 [15:37:41]MH_I2C_Read... [15:37:41]Read from MH i2c: E2 03 00 37 8A 00 90 00 35 [15:37:41]RAPDU: 90 00 [15:37:41]wFMCommunicate OK [15:37:41]wFMCommunicate request_size=4 [15:37:41]MH_SAM_APDU [15:37:41]CAPDU: 80 0D 03 02 [15:37:41]Write to MH i2c: E2 08 00 38 8A 80 0D 03 02 00 00 00 00 3D [15:37:41]Write i2c OK [15:37:41]MH_I2C_Read... [15:37:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:37:41]Read from MH i2c: E2 [15:37:41]MH_I2C_Read... [15:37:41]Read from MH i2c: E2 0B 00 [15:37:41]MH_I2C_Read... [15:37:41]Read from MH i2c: E2 0B 00 38 8A 00 73 AC 31 B2 BE A8 1F 2A 90 00 EF [15:37:41]RAPDU: 73 AC 31 B2 BE A8 1F 2A 90 00 [15:37:41]wFMCommunicate OK [15:37:41]SAM_PROTO_SignData done [15:37:41]FM_MakeSignedData done [15:37:41]CreateOFDProtocolMessage [15:37:41]wFMCommunicate request_size=4 [15:37:41]MH_SAM_APDU [15:37:41]CAPDU: 80 11 00 00 [15:37:41]Write to MH i2c: E2 08 00 39 8A 80 11 00 00 00 00 00 00 3D [15:37:41]Write i2c OK [15:37:41]MH_I2C_Read... [15:37:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:37:41]Read from MH i2c: E2 [15:37:41]MH_I2C_Read... [15:37:41]Read from MH i2c: E2 17 00 [15:37:41]MH_I2C_Read... [15:37:41]Read from MH i2c: E2 17 00 39 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 8C [15:37:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:37:41]wFMCommunicate OK [15:37:41]CreateOFDProtocolMessage done [15:37:41]OFDSenderStorePacket 28716 [15:37:41]StoreOFDPacket docnum=28716 [15:37:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 15 ED 08 01 0E 0C 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 3B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 4C 55 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2C 70 00 00 35 04 06 00 91 5E F4 E1 53 29 73 AC 31 B2 BE A8 1F 2A [15:37:41]CheckFolder [15:37:41]dirname=/storage/ofd_packets [15:37:41]CheckFolder done [15:37:41]ProducePacketName [15:37:41]name=ofd_packets/00028716 [15:37:41]NVStorageSaveData ofd_packets/00028716 [15:37:41]File name is /storage/ofd_packets/00028716 [15:37:41]Write 302 bytes [15:37:41]NVStorageSaveData done [15:37:41]OFDSenderStorePacket done [15:37:41]KKMCreateOFDPacket done [15:37:41]NVStorageSaveData kkm_last_timestamp [15:37:41]File name is /storage/kkm_last_timestamp [15:37:41]Write 4 bytes [15:37:41]NVStorageSaveData done [15:37:41]ExternCall_PrintAddStr [15:37:41]wPrintStart [15:37:41]Write to MH i2c: 01 00 00 3A 8A C4 [15:37:41]Write i2c OK [15:37:41]MH_I2C_Read... [15:37:41]Read from MH i2c: 01 [15:37:41]MH_I2C_Read... [15:37:41]Read from MH i2c: 01 07 00 [15:37:41]MH_I2C_Read... [15:37:41]Read from MH i2c: 01 07 00 3A 8A 00 00 00 00 00 FF 0F D9 [15:37:41]RasterBufferAndPrint [15:37:41]line Счет N : (1)347050 [15:37:41]line ИНН: 02508201610067 [15:37:41]line Контрольно-Кассовый Чек [15:37:41]line ПРОДАЖА [15:37:41]line ТРК (МРК, ГНК) : 12 [15:37:41]line Товар: 2710124130 [15:37:41]line SUPER-92-К-5 [15:37:41]line 15.320 * 65.30 [15:37:41]line = 1000.40 [15:37:41]line НДС 12% НСП 1% [15:37:41]line > о реализуемом товаре [15:37:41]line ОКРУГЛЕНИЕ: -0.40 [15:37:41]line ИТОГО: 1000.00 [15:37:41]line Внесено: 1000.00 [15:37:41]line СДАЧА: 0.00 [15:37:41]line НСП 1% : 8.85 [15:37:41]line НДС 12% : 106.24 [15:37:41]line Наличными: 1000.00 [15:37:41]line Безнал.: 0.00 [15:37:41]line Место: АЗС № 108 "Партнер Нефть" [15:37:41]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [15:37:41]line СНО: Общий режим [15:37:41]line Чек 165 12.04.2024 15:37 [15:37:41]line Смена: 113 ФФД: 1.0 [15:37:41]line ЗНМ: 0300000027 [15:37:41]line РНМ: 0000138879044617 [15:37:41]line Версия ККМ: 001 [15:37:41]line ФМ: 0000000000963154 [15:37:41]line ФД: 28716 [15:37:41]line ФПД: 159837021360937 [15:37:41]line 1/tax-web-control/client/api/v1/ticket?date=20240412T153748&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28716&fm=159837021360937&tin=02508201610067®Number=0000138879044617&sum=100000 [15:37:41]OFD Sender: Processing packet 28716 [packets to send 8, broken 7] [15:37:41]ProducePacketName [15:37:41]name=ofd_packets/00028716 [15:37:41]OFD Sender: To server: pG, [15:37:41]CommunicateWithHost lk.salyk.kg:30040 [15:37:41]ConnectInit lk.salyk.kg [15:37:41]written 0, free lines is 4095 [15:37:41]Connected sock=7 [15:37:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 15 ED 08 01 0E 0C 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 3B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 4C 55 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2C 70 00 00 35 04 06 00 91 5E F4 E1 53 29 73 AC 31 B2 BE A8 1F 2A [15:37:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 10 9B 47 00 6C D7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2C 70 00 00 F4 03 04 00 F6 FF 18 66 B6 04 01 00 00 DF 4C EE B3 B2 D5 DE 28 [15:37:42]CommunicateWithHost err = 0 [15:37:42]CheckOFDResponse [15:37:42]1017 (14) - 77093643461234 [15:37:42]1041 (16) - 0000000000963154 [15:37:42]1040 (4) - 28716 [15:37:42]1012 (4) - 12.04.2024 09:33 [15:37:42]1206 (1) - 0 [15:37:42]OFD Sender: Remove packet 28716 [15:37:42]ProducePacketName [15:37:42]name=ofd_packets/00028716 [15:37:42]NVStorageDeleteData [15:37:42]Write to MH i2c: 01 00 00 64 8A EE [15:37:42]Write i2c OK [15:37:42]MH_I2C_Read... [15:37:42]Read from MH i2c: 01 [15:37:42]MH_I2C_Read... [15:37:42]Read from MH i2c: 01 07 00 [15:37:42]MH_I2C_Read... [15:37:42]Read from MH i2c: 01 07 00 64 8A 00 00 00 00 00 C9 0C CA [15:37:42]RasterBufferAndPrint [15:37:42]line [15:37:42]line [15:37:42]line [15:37:42]line [15:37:42]line [15:37:42]written 0, free lines is 3279 [15:37:42]MH_Cut [15:37:42]Write to MH i2c: D1 01 00 6B 8A 01 C7 [15:37:42]Write i2c OK [15:37:42]MH_I2C_Read... [15:37:42]Read from MH i2c: D1 [15:37:42]MH_I2C_Read... [15:37:42]Read from MH i2c: D1 01 00 [15:37:42]MH_I2C_Read... [15:37:42]Read from MH i2c: D1 01 00 6B 8A 00 C6 [15:37:42]Write to MH i2c: 01 00 00 6C 8A F6 [15:37:42]Write i2c OK [15:37:42]MH_I2C_Read... [15:37:42]OFD Sender: No OFD packet to send [15:37:43]*** Cut start [15:37:43]*** Partial cut [15:37:43]*** CUTSNS_PIN = 1 [15:37:43]*** CUTSNS_PIN = 0 [15:37:43]*** Brake cut motor [15:37:43]Read from MH i2c: 01 [15:37:43]MH_I2C_Read... [15:37:43]*** Stop cut motor [15:37:43]*** Cut end [15:37:43]Read from MH i2c: 01 07 00 [15:37:43]MH_I2C_Read... [15:37:43]Read from MH i2c: 01 07 00 6C 8A 00 00 00 00 00 FF 0F 0B [15:37:43]process_action close_receipt done [15:37:43]requested_data is exist [15:37:43]produce_requested_data [15:37:43]requested_item fm.sn is exist - process it [15:37:43]wFMCommunicate request_size=4 [15:37:43]MH_SAM_APDU [15:37:43]CAPDU: 80 11 00 00 [15:37:43]Write to MH i2c: E2 08 00 6D 8A 80 11 00 00 00 00 00 00 71 [15:37:43]Write i2c OK [15:37:43]MH_I2C_Read... [15:37:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:37:43]Read from MH i2c: E2 [15:37:43]MH_I2C_Read... [15:37:43]Read from MH i2c: E2 17 00 [15:37:43]MH_I2C_Read... [15:37:43]Read from MH i2c: E2 17 00 6D 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 C0 [15:37:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:37:43]wFMCommunicate OK [15:37:43]requested_item fd.num is exist - process it [15:37:43]SAM_PROTO_GetFieldsCounters [15:37:43]wFMCommunicate request_size=4 [15:37:43]MH_SAM_APDU [15:37:43]CAPDU: 80 13 00 00 [15:37:43]Write to MH i2c: E2 08 00 6E 8A 80 13 00 00 00 00 00 00 74 [15:37:43]Write i2c OK [15:37:43]MH_I2C_Read... [15:37:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:37:43]Read from MH i2c: E2 [15:37:43]MH_I2C_Read... [15:37:43]Read from MH i2c: E2 62 00 [15:37:43]MH_I2C_Read... [15:37:43]Read from MH i2c: E2 62 00 6E 8A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 2C 70 00 00 0E 04 04 00 71 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 AE [15:37:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 2C 70 00 00 0E 04 04 00 71 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:37:43]wFMCommunicate OK [15:37:43]SAM_PROTO_GetFieldsCounters done [15:37:43]requested_item shift.num is exist - process it [15:37:43]requested_item shift.opened is exist - process it [15:37:43]req_shift_opened [15:37:43]FM_GetShiftState [15:37:43]SAM_PROTO_GetShiftState [15:37:43]wFMCommunicate request_size=4 [15:37:43]MH_SAM_APDU [15:37:43]CAPDU: 80 13 01 00 [15:37:43]Write to MH i2c: E2 08 00 6F 8A 80 13 01 00 00 00 00 00 76 [15:37:43]Write i2c OK [15:37:43]MH_I2C_Read... [15:37:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:37:43]Read from MH i2c: E2 [15:37:43]MH_I2C_Read... [15:37:43]Read from MH i2c: E2 0E 00 [15:37:44]MH_I2C_Read... [15:37:44]Read from MH i2c: E2 0E 00 6F 8A 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 87 [15:37:44]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [15:37:44]wFMCommunicate OK [15:37:44]SAM_PROTO_GetShiftState done [15:37:44]FM_GetShiftState done [15:37:44]req_shift_opened done [15:37:44]requested_item shift.open_date is exist - process it [15:37:44]req_shift_open_date [15:37:44]req_shift_open_date done [15:37:44]produce_requested_data done [15:37:44]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28716,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [15:37:44]process_action_free close_receipt [15:37:44]json_value_free [15:37:44]json_value_free done [15:37:44]process_json_proto returns [15:37:44]Send response to host [15:37:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28716,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [15:37:44]free response buf [15:37:44]execute_script done [15:37:44]execute_script returns [15:37:44]free content buf [15:37:44]Sock 6.Close socket [15:37:44]Sock 6.Thread stoped [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]OFD Sender: No OFD packet to send [15:38:07]OFD Sender: No OFD packet to send [15:38:12]OFD Sender: No OFD packet to send [15:38:17]OFD Sender: No OFD packet to send [15:38:22]OFD Sender: No OFD packet to send [15:38:27]OFD Sender: No OFD packet to send [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:45]accept exits with 5 [15:40:45]New connection [15:40:45]New thread 3066641764 created [15:40:45]Thread 3066498404 joined [15:40:45]Waiting for new connection... [15:40:45] Sock 5.Parse request [15:40:45]Sock 5.Check first char [15:40:45]Sock 5.First char is OK [15:40:45]request: POST /json_proto HTTP/1.0 [15:40:45]Method: POST [15:40:45]URL: /json_proto [15:40:45]Method is POST - this is cgi request [15:40:45]url: /json_proto [15:40:45]query_string will be loaded in cgi processing [15:40:45]execute_cgi json_proto POST (null) [15:40:45]execute_cgi path=json_proto method=POST [15:40:45]POST find Content-Length [15:40:45]Host: 172.17.33.3:8080 [15:40:45]Content-Length: 1224 [15:40:45]Content-Type: application/json [15:40:45] [15:40:45]POST finish read [15:40:45]Found Content-Length = 1224 [15:40:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)347051\u000A12.04.2024 15:22\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 51\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 41.440 x 72.40\u000A\u0418\u0422\u041E\u0413: 3000.26\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3698325;3698326;3685987;3792652\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:40:45]execute_script... [15:40:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)347051\u000A12.04.2024 15:22\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 51\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 41.440 x 72.40\u000A\u0418\u0422\u041E\u0413: 3000.26\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3698325;3698326;3685987;3792652\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:40:45]POST & json_proto [15:40:45]process_json_proto [15:40:45]json parsed OK: [15:40:45]protocol is kg_v1.0 [15:40:45]action value=print_text [15:40:45]process_action print_text [15:40:45]cmd_print_text [15:40:45]ExternCall_PrintAddStr [15:40:45]wPrintStart [15:40:45]Write to MH i2c: 01 00 00 70 8A FA [15:40:45]Write i2c OK [15:40:45]MH_I2C_Read... [15:40:45]Read from MH i2c: 01 [15:40:45]MH_I2C_Read... [15:40:45]Read from MH i2c: 01 07 00 [15:40:45]MH_I2C_Read... [15:40:45]Read from MH i2c: 01 07 00 70 8A 00 00 00 00 00 FF 0F 0F [15:40:45]RasterBufferAndPrint [15:40:45]line *****ТОВАРНЫЙ ЧЕК***** [15:40:45]line АЗС 108 [15:40:45]line Партнер нефть [15:40:45]line 02508201610067 [15:40:45]line Кассир : Джумагулова Н. [15:40:45]line Счет N : (1)347051 [15:40:45]line 12.04.2024 15:22 [15:40:45]line ПРОДАЖА [15:40:45]line ТРК (МРК, ГНК): 51 [15:40:45]line Вид ГСМ : 2710194210 [15:40:45]line ДТ-К-5 [15:40:45]line 41.440 x 72.40 [15:40:45]line ИТОГ: 3000.26 [15:40:45]line Тип оплаты: Талоны: Партнер нефть [15:40:45]line 3698325;3698326;3685987;3792652 [15:40:45]line ______________________ [15:40:45]line (подпись) [15:40:45]written 0, free lines is 4095 [15:40:46]Write to MH i2c: 01 00 00 86 8A 10 [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 86 8A 00 00 00 00 00 E9 0D 0D [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 3563 [15:40:46]MH_Cut [15:40:46]Write to MH i2c: D1 01 00 8D 8A 01 E9 [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 8D 8A 00 E8 [15:40:46]Write to MH i2c: 01 00 00 8E 8A 18 [15:40:46]Write i2c OK [15:40:46]MH_I2C_Read... [15:40:46]*** Cut start [15:40:46]*** Partial cut [15:40:46]*** CUTSNS_PIN = 1 [15:40:46]*** CUTSNS_PIN = 0 [15:40:47]*** Brake cut motor [15:40:47]Read from MH i2c: 01 [15:40:47]MH_I2C_Read... [15:40:47]*** Stop cut motor [15:40:47]*** Cut end [15:40:47]Read from MH i2c: 01 07 00 [15:40:47]MH_I2C_Read... [15:40:47]Read from MH i2c: 01 07 00 8E 8A 00 00 00 00 00 FF 0F 2D [15:40:47]process_action print_text done [15:40:47]requested_data is exist [15:40:47]produce_requested_data [15:40:47]requested_item fm.sn is exist - process it [15:40:47]wFMCommunicate request_size=4 [15:40:47]MH_SAM_APDU [15:40:47]CAPDU: 80 11 00 00 [15:40:47]Write to MH i2c: E2 08 00 8F 8A 80 11 00 00 00 00 00 00 93 [15:40:47]Write i2c OK [15:40:47]MH_I2C_Read... [15:40:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:40:47]Read from MH i2c: E2 [15:40:47]MH_I2C_Read... [15:40:47]Read from MH i2c: E2 17 00 [15:40:47]MH_I2C_Read... [15:40:47]Read from MH i2c: E2 17 00 8F 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 E2 [15:40:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:40:47]wFMCommunicate OK [15:40:47]requested_item fd.num is exist - process it [15:40:47]SAM_PROTO_GetFieldsCounters [15:40:47]wFMCommunicate request_size=4 [15:40:47]MH_SAM_APDU [15:40:47]CAPDU: 80 13 00 00 [15:40:47]Write to MH i2c: E2 08 00 90 8A 80 13 00 00 00 00 00 00 96 [15:40:47]Write i2c OK [15:40:47]MH_I2C_Read... [15:40:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:40:47]Read from MH i2c: E2 [15:40:47]MH_I2C_Read... [15:40:47]Read from MH i2c: E2 62 00 [15:40:47]MH_I2C_Read... [15:40:47]Read from MH i2c: E2 62 00 90 8A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 2C 70 00 00 0E 04 04 00 71 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 D0 [15:40:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 2C 70 00 00 0E 04 04 00 71 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:47]wFMCommunicate OK [15:40:47]SAM_PROTO_GetFieldsCounters done [15:40:47]requested_item shift.num is exist - process it [15:40:47]requested_item shift.opened is exist - process it [15:40:47]req_shift_opened [15:40:47]FM_GetShiftState [15:40:47]SAM_PROTO_GetShiftState [15:40:47]wFMCommunicate request_size=4 [15:40:47]MH_SAM_APDU [15:40:47]CAPDU: 80 13 01 00 [15:40:47]Write to MH i2c: E2 08 00 91 8A 80 13 01 00 00 00 00 00 98 [15:40:47]Write i2c OK [15:40:47]MH_I2C_Read... [15:40:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:40:47]Read from MH i2c: E2 [15:40:47]MH_I2C_Read... [15:40:47]Read from MH i2c: E2 0E 00 [15:40:47]MH_I2C_Read... [15:40:47]Read from MH i2c: E2 0E 00 91 8A 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 A9 [15:40:47]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [15:40:47]wFMCommunicate OK [15:40:47]SAM_PROTO_GetShiftState done [15:40:47]FM_GetShiftState done [15:40:47]req_shift_opened done [15:40:47]requested_item shift.open_date is exist - process it [15:40:47]req_shift_open_date [15:40:47]req_shift_open_date done [15:40:47]produce_requested_data done [15:40:47]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28716,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [15:40:47]process_action_free print_text [15:40:47]json_value_free [15:40:47]json_value_free done [15:40:47]process_json_proto returns [15:40:47]Send response to host [15:40:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28716,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [15:40:47]free response buf [15:40:47]execute_script done [15:40:47]execute_script returns [15:40:47]free content buf [15:40:47]Sock 5.Close socket [15:40:47]Sock 5.Thread stoped [15:40:47]OFD Sender: No OFD packet to send [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:32]OFD Sender: No OFD packet to send [15:44:37]accept exits with 6 [15:44:37]New connection [15:44:37]New thread 3066498404 created [15:44:37]Thread 3066641764 joined [15:44:37]Waiting for new connection... [15:44:37] Sock 6.Parse request [15:44:37]Sock 6.Check first char [15:44:37]Sock 6.First char is OK [15:44:37]request: POST /json_proto HTTP/1.0 [15:44:37]Method: POST [15:44:37]URL: /json_proto [15:44:37]Method is POST - this is cgi request [15:44:37]url: /json_proto [15:44:37]query_string will be loaded in cgi processing [15:44:37]execute_cgi json_proto POST (null) [15:44:37]execute_cgi path=json_proto method=POST [15:44:37]POST find Content-Length [15:44:37]Host: 172.17.33.3:8080 [15:44:37]Content-Length: 1207 [15:44:37]Content-Type: application/json [15:44:37] [15:44:37]POST finish read [15:44:37]Found Content-Length = 1207 [15:44:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)347053\u000A12.04.2024 15:26\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 12.480 x 72.40\u000A\u0418\u0422\u041E\u0413: 903.55\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A2142358;3792652\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:44:37]execute_script... [15:44:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)347053\u000A12.04.2024 15:26\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 12.480 x 72.40\u000A\u0418\u0422\u041E\u0413: 903.55\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A2142358;3792652\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:44:37]POST & json_proto [15:44:37]process_json_proto [15:44:37]json parsed OK: [15:44:37]protocol is kg_v1.0 [15:44:37]action value=print_text [15:44:37]process_action print_text [15:44:37]cmd_print_text [15:44:37]ExternCall_PrintAddStr [15:44:37]wPrintStart [15:44:37]Write to MH i2c: 01 00 00 92 8A 1C [15:44:37]Write i2c OK [15:44:37]MH_I2C_Read... [15:44:37]Read from MH i2c: 01 [15:44:37]MH_I2C_Read... [15:44:37]Read from MH i2c: 01 07 00 [15:44:37]MH_I2C_Read... [15:44:37]Read from MH i2c: 01 07 00 92 8A 00 00 00 00 00 FF 0F 31 [15:44:37]RasterBufferAndPrint [15:44:37]line *****ТОВАРНЫЙ ЧЕК***** [15:44:37]line АЗС 108 [15:44:37]line Партнер нефть [15:44:37]line 02508201610067 [15:44:37]line Кассир : Джумагулова Н. [15:44:37]line Счет N : (1)347053 [15:44:37]line 12.04.2024 15:26 [15:44:37]line ПРОДАЖА [15:44:37]line ТРК (МРК, ГНК): 11 [15:44:37]line Вид ГСМ : 2710194210 [15:44:37]line ДТ-К-5 [15:44:37]line 12.480 x 72.40 [15:44:37]line ИТОГ: 903.55 [15:44:37]line Тип оплаты: Талоны: Партнер нефть [15:44:37]line 2142358;3792652 [15:44:37]line ______________________ [15:44:37]line (подпись) [15:44:37]written 0, free lines is 4095 [15:44:37]Write to MH i2c: 01 00 00 A7 8A 31 [15:44:37]Write i2c OK [15:44:37]MH_I2C_Read... [15:44:37]Read from MH i2c: 01 [15:44:37]MH_I2C_Read... [15:44:37]Read from MH i2c: 01 07 00 [15:44:37]MH_I2C_Read... [15:44:37]Read from MH i2c: 01 07 00 A7 8A 00 00 00 00 00 F8 0D 3D [15:44:37]RasterBufferAndPrint [15:44:37]line [15:44:37]line [15:44:37]line [15:44:37]line [15:44:37]line [15:44:37]written 0, free lines is 3578 [15:44:37]MH_Cut [15:44:37]Write to MH i2c: D1 01 00 AE 8A 01 0A [15:44:37]Write i2c OK [15:44:37]MH_I2C_Read... [15:44:37]Read from MH i2c: D1 [15:44:37]MH_I2C_Read... [15:44:37]Read from MH i2c: D1 01 00 [15:44:37]MH_I2C_Read... [15:44:37]Read from MH i2c: D1 01 00 AE 8A 00 09 [15:44:37]Write to MH i2c: 01 00 00 AF 8A 39 [15:44:37]Write i2c OK [15:44:37]MH_I2C_Read... [15:44:37]*** Cut start [15:44:37]*** Partial cut [15:44:37]*** CUTSNS_PIN = 1 [15:44:37]*** CUTSNS_PIN = 0 [15:44:38]OFD Sender: No OFD packet to send [15:44:38]*** Brake cut motor [15:44:38]Read from MH i2c: 01 [15:44:38]MH_I2C_Read... [15:44:38]*** Stop cut motor [15:44:38]*** Cut end [15:44:38]Read from MH i2c: 01 07 00 [15:44:38]MH_I2C_Read... [15:44:38]Read from MH i2c: 01 07 00 AF 8A 00 00 00 00 00 FF 0F 4E [15:44:38]process_action print_text done [15:44:38]requested_data is exist [15:44:38]produce_requested_data [15:44:38]requested_item fm.sn is exist - process it [15:44:38]wFMCommunicate request_size=4 [15:44:38]MH_SAM_APDU [15:44:38]CAPDU: 80 11 00 00 [15:44:38]Write to MH i2c: E2 08 00 B0 8A 80 11 00 00 00 00 00 00 B4 [15:44:38]Write i2c OK [15:44:38]MH_I2C_Read... [15:44:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:44:38]Read from MH i2c: E2 [15:44:38]MH_I2C_Read... [15:44:38]Read from MH i2c: E2 17 00 [15:44:38]MH_I2C_Read... [15:44:38]Read from MH i2c: E2 17 00 B0 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 03 [15:44:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:44:38]wFMCommunicate OK [15:44:38]requested_item fd.num is exist - process it [15:44:38]SAM_PROTO_GetFieldsCounters [15:44:38]wFMCommunicate request_size=4 [15:44:38]MH_SAM_APDU [15:44:38]CAPDU: 80 13 00 00 [15:44:38]Write to MH i2c: E2 08 00 B1 8A 80 13 00 00 00 00 00 00 B7 [15:44:38]Write i2c OK [15:44:38]MH_I2C_Read... [15:44:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:44:38]Read from MH i2c: E2 [15:44:38]MH_I2C_Read... [15:44:38]Read from MH i2c: E2 62 00 [15:44:38]MH_I2C_Read... [15:44:38]Read from MH i2c: E2 62 00 B1 8A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 2C 70 00 00 0E 04 04 00 71 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 F1 [15:44:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 2C 70 00 00 0E 04 04 00 71 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:44:38]wFMCommunicate OK [15:44:38]SAM_PROTO_GetFieldsCounters done [15:44:38]requested_item shift.num is exist - process it [15:44:38]requested_item shift.opened is exist - process it [15:44:38]req_shift_opened [15:44:38]FM_GetShiftState [15:44:38]SAM_PROTO_GetShiftState [15:44:38]wFMCommunicate request_size=4 [15:44:38]MH_SAM_APDU [15:44:38]CAPDU: 80 13 01 00 [15:44:38]Write to MH i2c: E2 08 00 B2 8A 80 13 01 00 00 00 00 00 B9 [15:44:38]Write i2c OK [15:44:38]MH_I2C_Read... [15:44:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:44:38]Read from MH i2c: E2 [15:44:38]MH_I2C_Read... [15:44:38]Read from MH i2c: E2 0E 00 [15:44:38]MH_I2C_Read... [15:44:38]Read from MH i2c: E2 0E 00 B2 8A 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 CA [15:44:38]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [15:44:38]wFMCommunicate OK [15:44:38]SAM_PROTO_GetShiftState done [15:44:38]FM_GetShiftState done [15:44:38]req_shift_opened done [15:44:38]requested_item shift.open_date is exist - process it [15:44:38]req_shift_open_date [15:44:38]req_shift_open_date done [15:44:38]produce_requested_data done [15:44:38]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28716,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [15:44:38]process_action_free print_text [15:44:38]json_value_free [15:44:38]json_value_free done [15:44:38]process_json_proto returns [15:44:38]Send response to host [15:44:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28716,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [15:44:38]free response buf [15:44:38]execute_script done [15:44:38]execute_script returns [15:44:38]free content buf [15:44:38]Sock 6.Close socket [15:44:38]Sock 6.Thread stoped [15:44:43]OFD Sender: No OFD packet to send [15:44:45]accept exits with 5 [15:44:45]New connection [15:44:45]New thread 3066641764 created [15:44:45]Thread 3066498404 joined [15:44:45]Waiting for new connection... [15:44:45] Sock 5.Parse request [15:44:45]Sock 5.Check first char [15:44:45]Sock 5.First char is OK [15:44:45]request: POST /json_proto HTTP/1.0 [15:44:45]Method: POST [15:44:45]URL: /json_proto [15:44:45]Method is POST - this is cgi request [15:44:45]url: /json_proto [15:44:45]query_string will be loaded in cgi processing [15:44:45]execute_cgi json_proto POST (null) [15:44:45]execute_cgi path=json_proto method=POST [15:44:45]POST find Content-Length [15:44:45]Host: 172.17.33.3:8080 [15:44:45]Content-Length: 674 [15:44:45]Content-Type: application/json [15:44:45] [15:44:45]POST finish read [15:44:45]Found Content-Length = 674 [15:44:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347054", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 1.390, "sum" : 100.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:44:45]execute_script... [15:44: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)347054", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 1.390, "sum" : 100.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:44:45]POST & json_proto [15:44:45]process_json_proto [15:44:45]json parsed OK: [15:44:45]protocol is kg_v1.0 [15:44:45]action value=close_receipt [15:44:45]process_action close_receipt [15:44:45]cmd_close_receipt [15:44:45]MH_GetDate [15:44:45]Write to MH i2c: F0 00 00 B3 8A 2C [15:44:45]Write i2c OK [15:44:45]MH_I2C_Read... [15:44:45]Read from MH i2c: F0 [15:44:45]MH_I2C_Read... [15:44:45]Read from MH i2c: F0 09 00 [15:44:45]MH_I2C_Read... [15:44:45]Read from MH i2c: F0 09 00 B3 8A 00 F6 56 19 66 23 5B 8F 65 72 [15:44:45]GetLastDocTimeStamp 1712936268 [15:44:45]current date 1712936694 [15:44:45]FM_GetShiftState [15:44:45]SAM_PROTO_GetShiftState [15:44:45]wFMCommunicate request_size=4 [15:44:45]MH_SAM_APDU [15:44:45]CAPDU: 80 13 01 00 [15:44:45]Write to MH i2c: E2 08 00 B4 8A 80 13 01 00 00 00 00 00 BB [15:44:45]Write i2c OK [15:44:45]MH_I2C_Read... [15:44:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:44:45]Read from MH i2c: E2 [15:44:45]MH_I2C_Read... [15:44:45]Read from MH i2c: E2 0E 00 [15:44:45]MH_I2C_Read... [15:44:45]Read from MH i2c: E2 0E 00 B4 8A 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 CC [15:44:45]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [15:44:45]wFMCommunicate OK [15:44:45]SAM_PROTO_GetShiftState done [15:44:45]FM_GetShiftState done [15:44:45]opened in 1712881416 [15:44:45]opened+sec_in_day 1712967816 [15:44:45]quantity*price = 10063 [15:44:45]sum+1 = 10065 [15:44:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.64 ИТОГО: 100.00 Внесено: 100.00 СДАЧА: 0.00 НСП 1% : 0.89 НДС 12% : 10.69 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 166 12.04.2024 15:44 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28717 ФПД: 105523834465676 1/tax-web-control/client/api/v1/ticket?date=20240412T154454&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28717&fm=105523834465676&tin=02508201610067®Number=0000138879044617&sum=10000 [15:44:46]StoreToDocumentArchive [15:44:46]shift 113 fd 28717 [15:44:46]save to /storage/0113/doc_00028717 [15:44:46]save last doc name /storage/0113/doc_00028717 to /storage/kkm_last_doc_name [15:44:46]save OK [15:44:46]Clear old archive folders... [15:44:46]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:44:46]tlvbuf is 01BFA320 [15:44:46]SAM_PROTO_ClearQueue [15:44:46]wFMCommunicate request_size=4 [15:44:46]MH_SAM_APDU [15:44:46]CAPDU: 80 09 00 00 [15:44:46]Write to MH i2c: E2 08 00 C1 8A 80 09 00 00 00 00 00 00 BD [15:44:46]Write i2c OK [15:44:46]MH_I2C_Read... [15:44:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:44:46]Read from MH i2c: E2 [15:44:46]MH_I2C_Read... [15:44:46]Read from MH i2c: E2 03 00 [15:44:46]MH_I2C_Read... [15:44:46]Read from MH i2c: E2 03 00 C1 8A 00 90 00 BF [15:44:46]RAPDU: 90 00 [15:44:46]wFMCommunicate OK [15:44:46]SAM_PROTO_ClearQueue done [15:44:46]KKMCreateOFDPacket [15:44:46]OFDProtocolAddRootSTLVToBuf [15:44:46]FM_MakeSignedData [15:44:46]FM_MakeSignedData [15:44:46]SAM_PROTO_SignData [15:44:46]wFMCommunicate request_size=4 [15:44:46]MH_SAM_APDU [15:44:46]CAPDU: 80 0D 01 02 [15:44:46]Write to MH i2c: E2 08 00 C2 8A 80 0D 01 02 00 00 00 00 C5 [15:44:46]Write i2c OK [15:44:46]MH_I2C_Read... [15:44:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:44:46]Read from MH i2c: E2 [15:44:46]MH_I2C_Read... [15:44:46]Read from MH i2c: E2 03 00 [15:44:46]MH_I2C_Read... [15:44:46]Read from MH i2c: E2 03 00 C2 8A 00 90 00 C0 [15:44:46]RAPDU: 90 00 [15:44:46]wFMCommunicate OK [15:44:46]wFMCommunicate request_size=255 [15:44:46]MH_SAM_APDU [15:44:46]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6E 05 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 50 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2D 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 F6 56 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2D 70 00 00 35 04 06 00 5F F9 2E AB [15:44:46]Write to MH i2c: E2 02 01 C3 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 35 FF 03 08 00 03 6E 05 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 50 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2D 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 F6 56 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2D 70 00 00 35 04 06 00 5F F9 2E AB 00 00 35 [15:44:46]Write i2c OK [15:44:46]MH_I2C_Read... [15:44:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:44:47]Read from MH i2c: E2 [15:44:47]MH_I2C_Read... [15:44:47]Read from MH i2c: E2 03 00 [15:44:47]MH_I2C_Read... [15:44:47]Read from MH i2c: E2 03 00 C3 8A 00 90 00 C1 [15:44:47]RAPDU: 90 00 [15:44:47]wFMCommunicate OK [15:44:47]wFMCommunicate request_size=7 [15:44:47]MH_SAM_APDU [15:44:47]CAPDU: 80 0D 02 02 02 2D 8C [15:44:47]Write to MH i2c: E2 0A 00 C4 8A 80 0D 02 02 02 00 2D 8C 00 00 85 [15:44:47]Write i2c OK [15:44:47]MH_I2C_Read... [15:44:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:44:47]Read from MH i2c: E2 [15:44:47]MH_I2C_Read... [15:44:47]Read from MH i2c: E2 03 00 [15:44:47]MH_I2C_Read... [15:44:47]Read from MH i2c: E2 03 00 C4 8A 00 90 00 C2 [15:44:47]RAPDU: 90 00 [15:44:47]wFMCommunicate OK [15:44:47]wFMCommunicate request_size=4 [15:44:47]MH_SAM_APDU [15:44:47]CAPDU: 80 0D 03 02 [15:44:47]Write to MH i2c: E2 08 00 C5 8A 80 0D 03 02 00 00 00 00 CA [15:44:47]Write i2c OK [15:44:47]MH_I2C_Read... [15:44:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:44:47]Read from MH i2c: E2 [15:44:47]MH_I2C_Read... [15:44:47]Read from MH i2c: E2 0B 00 [15:44:47]MH_I2C_Read... [15:44:47]Read from MH i2c: E2 0B 00 C5 8A 00 0F 69 5C 37 A9 CA 74 30 90 00 ED [15:44:47]RAPDU: 0F 69 5C 37 A9 CA 74 30 90 00 [15:44:47]wFMCommunicate OK [15:44:47]SAM_PROTO_SignData done [15:44:47]FM_MakeSignedData done [15:44:47]CreateOFDProtocolMessage [15:44:47]wFMCommunicate request_size=4 [15:44:47]MH_SAM_APDU [15:44:47]CAPDU: 80 11 00 00 [15:44:47]Write to MH i2c: E2 08 00 C6 8A 80 11 00 00 00 00 00 00 CA [15:44:47]Write i2c OK [15:44:47]MH_I2C_Read... [15:44:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:44:47]Read from MH i2c: E2 [15:44:47]MH_I2C_Read... [15:44:47]Read from MH i2c: E2 17 00 [15:44:47]MH_I2C_Read... [15:44:47]Read from MH i2c: E2 17 00 C6 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 19 [15:44:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:44:47]wFMCommunicate OK [15:44:47]CreateOFDProtocolMessage done [15:44:47]OFDSenderStorePacket 28717 [15:44:47]StoreOFDPacket docnum=28717 [15:44:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 1B 50 04 01 AD 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 35 FF 03 08 00 03 6E 05 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 50 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2D 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 F6 56 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2D 70 00 00 35 04 06 00 5F F9 2E AB 2D 8C 0F 69 5C 37 A9 CA 74 30 [15:44:47]CheckFolder [15:44:47]dirname=/storage/ofd_packets [15:44:47]CheckFolder done [15:44:47]ProducePacketName [15:44:47]name=ofd_packets/00028717 [15:44:47]NVStorageSaveData ofd_packets/00028717 [15:44:47]File name is /storage/ofd_packets/00028717 [15:44:47]Write 298 bytes [15:44:47]NVStorageSaveData done [15:44:47]OFDSenderStorePacket done [15:44:47]KKMCreateOFDPacket done [15:44:47]NVStorageSaveData kkm_last_timestamp [15:44:47]File name is /storage/kkm_last_timestamp [15:44:47]Write 4 bytes [15:44:47]NVStorageSaveData done [15:44:47]ExternCall_PrintAddStr [15:44:47]wPrintStart [15:44:47]Write to MH i2c: 01 00 00 C7 8A 51 [15:44:47]Write i2c OK [15:44:47]MH_I2C_Read... [15:44:47]Read from MH i2c: 01 [15:44:47]MH_I2C_Read... [15:44:47]Read from MH i2c: 01 07 00 [15:44:47]MH_I2C_Read... [15:44:47]Read from MH i2c: 01 07 00 C7 8A 00 00 00 00 00 FF 0F 66 [15:44:47]RasterBufferAndPrint [15:44:47]line Счет N : (1)347054 [15:44:47]line ИНН: 02508201610067 [15:44:47]line Контрольно-Кассовый Чек [15:44:47]line ПРОДАЖА [15:44:47]line ТРК (МРК, ГНК) : 11 [15:44:47]line Товар: 2710194210 [15:44:47]line ДТ-К-5 [15:44:47]line 1.390 * 72.40 [15:44:47]line = 100.64 [15:44:47]line НДС 12% НСП 1% [15:44:47]line > о реализуемом товаре [15:44:47]line ОКРУГЛЕНИЕ: -0.64 [15:44:47]line ИТОГО: 100.00 [15:44:47]line Внесено: 100.00 [15:44:47]line СДАЧА: 0.00 [15:44:47]line НСП 1% : 0.89 [15:44:47]line НДС 12% : 10.69 [15:44:47]line Наличными: 100.00 [15:44:47]line Безнал.: 0.00 [15:44:47]line Место: АЗС № 108 "Партнер Нефть" [15:44:47]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [15:44:47]line СНО: Общий режим [15:44:47]line Чек 166 12.04.2024 15:44 [15:44:47]line Смена: 113 ФФД: 1.0 [15:44:47]line ЗНМ: 0300000027 [15:44:47]line РНМ: 0000138879044617 [15:44:47]line Версия ККМ: 001 [15:44:47]line ФМ: 0000000000963154 [15:44:47]line ФД: 28717 [15:44:47]line ФПД: 105523834465676 [15:44:47]line 1/tax-web-control/client/api/v1/ticket?date=20240412T154454&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28717&fm=105523834465676&tin=02508201610067®Number=0000138879044617&sum=10000 [15:44:47]OFD Sender: Processing packet 28717 [packets to send 8, broken 7] [15:44:47]ProducePacketName [15:44:47]name=ofd_packets/00028717 [15:44:47]OFD Sender: To server: pG, [15:44:47]CommunicateWithHost lk.salyk.kg:30040 [15:44:47]ConnectInit lk.salyk.kg [15:44:47]written 0, free lines is 4095 [15:44:47]Connected sock=7 [15:44:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 1B 50 04 01 AD 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 35 FF 03 08 00 03 6E 05 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 50 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2D 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 F6 56 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2D 70 00 00 35 04 06 00 5F F9 2E AB 2D 8C 0F 69 5C 37 A9 CA 74 30 [15:44:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 A4 A8 47 00 69 38 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2D 70 00 00 F4 03 04 00 A0 01 19 66 B6 04 01 00 00 16 0B A4 D6 C6 89 E5 7D [15:44:47]CommunicateWithHost err = 0 [15:44:47]CheckOFDResponse [15:44:47]1017 (14) - 77093643461234 [15:44:47]1041 (16) - 0000000000963154 [15:44:47]1040 (4) - 28717 [15:44:47]1012 (4) - 12.04.2024 09:40 [15:44:47]1206 (1) - 0 [15:44:47]OFD Sender: Remove packet 28717 [15:44:47]ProducePacketName [15:44:47]name=ofd_packets/00028717 [15:44:47]NVStorageDeleteData [15:44:47]Write to MH i2c: 01 00 00 F1 8A 7B [15:44:47]Write i2c OK [15:44:47]MH_I2C_Read... [15:44:47]Read from MH i2c: 01 [15:44:47]MH_I2C_Read... [15:44:47]Read from MH i2c: 01 07 00 [15:44:47]MH_I2C_Read... [15:44:47]Read from MH i2c: 01 07 00 F1 8A 00 00 00 00 00 BC 0C 4A [15:44:47]RasterBufferAndPrint [15:44:47]line [15:44:47]line [15:44:47]line [15:44:47]line [15:44:47]line [15:44:47]written 0, free lines is 3266 [15:44:47]MH_Cut [15:44:47]Write to MH i2c: D1 01 00 F8 8A 01 54 [15:44:47]Write i2c OK [15:44:47]MH_I2C_Read... [15:44:47]Read from MH i2c: D1 [15:44:47]MH_I2C_Read... [15:44:47]Read from MH i2c: D1 01 00 [15:44:47]MH_I2C_Read... [15:44:47]Read from MH i2c: D1 01 00 F8 8A 00 53 [15:44:47]Write to MH i2c: 01 00 00 F9 8A 83 [15:44:47]Write i2c OK [15:44:47]MH_I2C_Read... [15:44:48]OFD Sender: No OFD packet to send [15:44:48]*** Cut start [15:44:48]*** Partial cut [15:44:48]*** CUTSNS_PIN = 1 [15:44:48]*** CUTSNS_PIN = 0 [15:44:49]*** Brake cut motor [15:44:49]Read from MH i2c: 01 [15:44:49]MH_I2C_Read... [15:44:49]*** Stop cut motor [15:44:49]*** Cut end [15:44:49]Read from MH i2c: 01 07 00 [15:44:49]MH_I2C_Read... [15:44:49]Read from MH i2c: 01 07 00 F9 8A 00 00 00 00 00 FF 0F 98 [15:44:49]process_action close_receipt done [15:44:49]requested_data is exist [15:44:49]produce_requested_data [15:44:49]requested_item fm.sn is exist - process it [15:44:49]wFMCommunicate request_size=4 [15:44:49]MH_SAM_APDU [15:44:49]CAPDU: 80 11 00 00 [15:44:49]Write to MH i2c: E2 08 00 FA 8A 80 11 00 00 00 00 00 00 FE [15:44:49]Write i2c OK [15:44:49]MH_I2C_Read... [15:44:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:44:49]Read from MH i2c: E2 [15:44:49]MH_I2C_Read... [15:44:49]Read from MH i2c: E2 17 00 [15:44:49]MH_I2C_Read... [15:44:49]Read from MH i2c: E2 17 00 FA 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 4D [15:44:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:44:49]wFMCommunicate OK [15:44:49]requested_item fd.num is exist - process it [15:44:49]SAM_PROTO_GetFieldsCounters [15:44:49]wFMCommunicate request_size=4 [15:44:49]MH_SAM_APDU [15:44:49]CAPDU: 80 13 00 00 [15:44:49]Write to MH i2c: E2 08 00 FB 8A 80 13 00 00 00 00 00 00 01 [15:44:49]Write i2c OK [15:44:49]MH_I2C_Read... [15:44:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:44:49]Read from MH i2c: E2 [15:44:49]MH_I2C_Read... [15:44:49]Read from MH i2c: E2 62 00 [15:44:49]MH_I2C_Read... [15:44:49]Read from MH i2c: E2 62 00 FB 8A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 2D 70 00 00 0E 04 04 00 71 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 3F [15:44:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 2D 70 00 00 0E 04 04 00 71 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:49]wFMCommunicate OK [15:44:49]SAM_PROTO_GetFieldsCounters done [15:44:49]requested_item shift.num is exist - process it [15:44:49]requested_item shift.opened is exist - process it [15:44:49]req_shift_opened [15:44:49]FM_GetShiftState [15:44:49]SAM_PROTO_GetShiftState [15:44:49]wFMCommunicate request_size=4 [15:44:49]MH_SAM_APDU [15:44:49]CAPDU: 80 13 01 00 [15:44:49]Write to MH i2c: E2 08 00 FC 8A 80 13 01 00 00 00 00 00 03 [15:44:49]Write i2c OK [15:44:49]MH_I2C_Read... [15:44:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:44:49]Read from MH i2c: E2 [15:44:49]MH_I2C_Read... [15:44:49]Read from MH i2c: E2 0E 00 [15:44:49]MH_I2C_Read... [15:44:49]Read from MH i2c: E2 0E 00 FC 8A 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 14 [15:44:49]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [15:44:49]wFMCommunicate OK [15:44:49]SAM_PROTO_GetShiftState done [15:44:49]FM_GetShiftState done [15:44:49]req_shift_opened done [15:44:49]requested_item shift.open_date is exist - process it [15:44:49]req_shift_open_date [15:44:49]req_shift_open_date done [15:44:49]produce_requested_data done [15:44:49]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28717,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [15:44:49]process_action_free close_receipt [15:44:49]json_value_free [15:44:49]json_value_free done [15:44:49]process_json_proto returns [15:44:49]Send response to host [15:44:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28717,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [15:44:49]free response buf [15:44:49]execute_script done [15:44:49]execute_script returns [15:44:49]free content buf [15:44:49]Sock 5.Close socket [15:44:49]Sock 5.Thread stoped [15:44:53]OFD Sender: No OFD packet to send [15:44:58]OFD Sender: No OFD packet to send [15:45:03]OFD Sender: No OFD packet to send [15:45:08]OFD Sender: No OFD packet to send [15:45:13]OFD Sender: No OFD packet to send [15:45:18]OFD Sender: No OFD packet to send [15:45:23]OFD Sender: No OFD packet to send [15:45:28]OFD Sender: No OFD packet to send [15:45:33]OFD Sender: No OFD packet to send [15:45:38]OFD Sender: No OFD packet to send [15:45:43]OFD Sender: No OFD packet to send [15:45:48]OFD Sender: No OFD packet to send [15:45:53]OFD Sender: No OFD packet to send [15:45:58]OFD Sender: No OFD packet to send [15:46:03]OFD Sender: No OFD packet to send [15:46:08]OFD Sender: No OFD packet to send [15:46:13]OFD Sender: No OFD packet to send [15:46:18]OFD Sender: No OFD packet to send [15:46:23]OFD Sender: No OFD packet to send [15:46:28]OFD Sender: No OFD packet to send [15:46:33]OFD Sender: No OFD packet to send [15:46:38]OFD Sender: No OFD packet to send [15:46:38]*** FLAG_PRN_KEY set [15:46:39]*** FLAG_PRN_KEY reset [15:46:43]OFD Sender: No OFD packet to send [15:46:48]OFD Sender: No OFD packet to send [15:46:53]OFD Sender: No OFD packet to send [15:46:57]accept exits with 6 [15:46:57]New connection [15:46:57]New thread 3066498404 created [15:46:57]Thread 3066641764 joined [15:46:57]Waiting for new connection... [15:46:57] Sock 6.Parse request [15:46:57]Sock 6.Check first char [15:46:57]Sock 6.First char is OK [15:46:57]request: POST /json_proto HTTP/1.0 [15:46:57]Method: POST [15:46:57]URL: /json_proto [15:46:57]Method is POST - this is cgi request [15:46:57]url: /json_proto [15:46:57]query_string will be loaded in cgi processing [15:46:57]execute_cgi json_proto POST (null) [15:46:57]execute_cgi path=json_proto method=POST [15:46:57]POST find Content-Length [15:46:57]Host: 172.17.33.3:8080 [15:46:57]Content-Length: 841 [15:46:57]Content-Type: application/json [15:46:57] [15:46:57]POST finish read [15:46:57]Found Content-Length = 841 [15:46:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347055", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 10.000, "sum" : 643.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 643.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:46:57]execute_script... [15:46: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)347055", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 10.000, "sum" : 643.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 643.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:46:57]POST & json_proto [15:46:57]process_json_proto [15:46:57]json parsed OK: [15:46:57]protocol is kg_v1.0 [15:46:57]action value=close_receipt [15:46:57]process_action close_receipt [15:46:57]cmd_close_receipt [15:46:57]MH_GetDate [15:46:57]Write to MH i2c: F0 00 00 FD 8A 76 [15:46:57]Write i2c OK [15:46:57]MH_I2C_Read... [15:46:57]Read from MH i2c: F0 [15:46:57]MH_I2C_Read... [15:46:57]Read from MH i2c: F0 09 00 [15:46:57]MH_I2C_Read... [15:46:57]Read from MH i2c: F0 09 00 FD 8A 00 7A 57 19 66 23 5B 8F 65 41 [15:46:57]GetLastDocTimeStamp 1712936694 [15:46:57]current date 1712936826 [15:46:57]FM_GetShiftState [15:46:57]SAM_PROTO_GetShiftState [15:46:57]wFMCommunicate request_size=4 [15:46:57]MH_SAM_APDU [15:46:57]CAPDU: 80 13 01 00 [15:46:57]Write to MH i2c: E2 08 00 FE 8A 80 13 01 00 00 00 00 00 05 [15:46:57]Write i2c OK [15:46:57]MH_I2C_Read... [15:46:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:46:57]Read from MH i2c: E2 [15:46:57]MH_I2C_Read... [15:46:57]Read from MH i2c: E2 0E 00 [15:46:57]MH_I2C_Read... [15:46:57]Read from MH i2c: E2 0E 00 FE 8A 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 16 [15:46:57]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [15:46:57]wFMCommunicate OK [15:46:57]SAM_PROTO_GetShiftState done [15:46:57]FM_GetShiftState done [15:46:57]opened in 1712881416 [15:46:57]opened+sec_in_day 1712967816 [15:46:57]quantity*price = 64300 [15:46:57]sum+1 = 64301 [15:46:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 643.00 НСП 1% : 5.69 НДС 12% : 68.28 Наличными: 0.00 Безнал.: 643.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 167 12.04.2024 15:47 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 28718 ФПД: 240283133240516 1/tax-web-control/client/api/v1/ticket?date=20240412T154706&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28718&fm=240283133240516&tin=02508201610067®Number=0000138879044617&sum=64300 [15:46:58]StoreToDocumentArchive [15:46:58]shift 113 fd 28718 [15:46:58]save to /storage/0113/doc_00028718 [15:46:58]save last doc name /storage/0113/doc_00028718 to /storage/kkm_last_doc_name [15:46:58]save OK [15:46:58]Clear old archive folders... [15:46:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:46:58]tlvbuf is 01ABC410 [15:46:58]SAM_PROTO_ClearQueue [15:46:58]wFMCommunicate request_size=4 [15:46:58]MH_SAM_APDU [15:46:58]CAPDU: 80 09 00 00 [15:46:58]Write to MH i2c: E2 08 00 0B 8B 80 09 00 00 00 00 00 00 08 [15:46:58]Write i2c OK [15:46:58]MH_I2C_Read... [15:46:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:46:58]Read from MH i2c: E2 [15:46:58]MH_I2C_Read... [15:46:58]Read from MH i2c: E2 03 00 [15:46:58]MH_I2C_Read... [15:46:58]Read from MH i2c: E2 03 00 0B 8B 00 90 00 0A [15:46:58]RAPDU: 90 00 [15:46:58]wFMCommunicate OK [15:46:58]SAM_PROTO_ClearQueue done [15:46:58]KKMCreateOFDPacket [15:46:58]OFDProtocolAddRootSTLVToBuf [15:46:58]FM_MakeSignedData [15:46:58]FM_MakeSignedData [15:46:58]SAM_PROTO_SignData [15:46:58]wFMCommunicate request_size=4 [15:46:58]MH_SAM_APDU [15:46:58]CAPDU: 80 0D 01 02 [15:46:58]Write to MH i2c: E2 08 00 0C 8B 80 0D 01 02 00 00 00 00 10 [15:46:58]Write i2c OK [15:46:58]MH_I2C_Read... [15:46:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:46:58]Read from MH i2c: E2 [15:46:58]MH_I2C_Read... [15:46:58]Read from MH i2c: E2 03 00 [15:46:58]MH_I2C_Read... [15:46:58]Read from MH i2c: E2 03 00 0C 8B 00 90 00 0B [15:46:58]RAPDU: 90 00 [15:46:58]wFMCommunicate OK [15:46:58]wFMCommunicate request_size=255 [15:46:58]MH_SAM_APDU [15:46:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 2C FB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C FB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C FB 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 7A 57 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2E 70 00 00 35 04 06 00 DA [15:46:58]Write to MH i2c: E2 02 01 0D 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 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 2C FB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C FB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C FB 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 7A 57 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2E 70 00 00 35 04 06 00 DA 00 00 FB [15:46:58]Write i2c OK [15:46:58]MH_I2C_Read... [15:46:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:46:58]Read from MH i2c: E2 [15:46:58]MH_I2C_Read... [15:46:58]Read from MH i2c: E2 03 00 [15:46:58]MH_I2C_Read... [15:46:58]Read from MH i2c: E2 03 00 0D 8B 00 90 00 0C [15:46:58]RAPDU: 90 00 [15:46:58]wFMCommunicate OK [15:46:58]wFMCommunicate request_size=10 [15:46:58]MH_SAM_APDU [15:46:58]CAPDU: 80 0D 02 02 05 89 46 CD 64 C4 [15:46:58]Write to MH i2c: E2 0D 00 0E 8B 80 0D 02 02 05 00 89 46 CD 64 C4 00 00 E1 [15:46:58]Write i2c OK [15:46:58]MH_I2C_Read... [15:46:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:46:58]Read from MH i2c: E2 [15:46:58]MH_I2C_Read... [15:46:58]Read from MH i2c: E2 03 00 [15:46:58]MH_I2C_Read... [15:46:58]Read from MH i2c: E2 03 00 0E 8B 00 90 00 0D [15:46:58]RAPDU: 90 00 [15:46:58]wFMCommunicate OK [15:46:58]wFMCommunicate request_size=4 [15:46:58]MH_SAM_APDU [15:46:58]CAPDU: 80 0D 03 02 [15:46:58]Write to MH i2c: E2 08 00 0F 8B 80 0D 03 02 00 00 00 00 15 [15:46:58]Write i2c OK [15:46:58]MH_I2C_Read... [15:46:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:46:58]Read from MH i2c: E2 [15:46:58]MH_I2C_Read... [15:46:58]Read from MH i2c: E2 0B 00 [15:46:58]MH_I2C_Read... [15:46:59]Read from MH i2c: E2 0B 00 0F 8B 00 4F F3 FD AF E6 45 72 80 90 00 21 [15:46:59]RAPDU: 4F F3 FD AF E6 45 72 80 90 00 [15:46:59]wFMCommunicate OK [15:46:59]SAM_PROTO_SignData done [15:46:59]FM_MakeSignedData done [15:46:59]CreateOFDProtocolMessage [15:46:59]wFMCommunicate request_size=4 [15:46:59]MH_SAM_APDU [15:46:59]CAPDU: 80 11 00 00 [15:46:59]Write to MH i2c: E2 08 00 10 8B 80 11 00 00 00 00 00 00 15 [15:46:59]Write i2c OK [15:46:59]MH_I2C_Read... [15:46:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:46:59]Read from MH i2c: E2 [15:46:59]MH_I2C_Read... [15:46:59]Read from MH i2c: E2 17 00 [15:46:59]MH_I2C_Read... [15:46:59]Read from MH i2c: E2 17 00 10 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 64 [15:46:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:46:59]wFMCommunicate OK [15:46:59]CreateOFDProtocolMessage done [15:46:59]OFDSenderStorePacket 28718 [15:46:59]StoreOFDPacket docnum=28718 [15:46:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 69 DB 07 01 67 86 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 2C FB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C FB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C FB 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 7A 57 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2E 70 00 00 35 04 06 00 DA 89 46 CD 64 C4 4F F3 FD AF E6 45 72 80 [15:46:59]CheckFolder [15:46:59]dirname=/storage/ofd_packets [15:46:59]CheckFolder done [15:46:59]ProducePacketName [15:46:59]name=ofd_packets/00028718 [15:46:59]NVStorageSaveData ofd_packets/00028718 [15:46:59]File name is /storage/ofd_packets/00028718 [15:46:59]Write 301 bytes [15:46:59]NVStorageSaveData done [15:46:59]OFDSenderStorePacket done [15:46:59]KKMCreateOFDPacket done [15:46:59]NVStorageSaveData kkm_last_timestamp [15:46:59]File name is /storage/kkm_last_timestamp [15:46:59]Write 4 bytes [15:46:59]NVStorageSaveData done [15:46:59]ExternCall_PrintAddStr [15:46:59]wPrintStart [15:46:59]Write to MH i2c: 01 00 00 11 8B 9C [15:46:59]Write i2c OK [15:46:59]MH_I2C_Read... [15:46:59]Read from MH i2c: 01 [15:46:59]MH_I2C_Read... [15:46:59]Read from MH i2c: 01 07 00 [15:46:59]MH_I2C_Read... [15:46:59]Read from MH i2c: 01 07 00 11 8B 00 00 00 00 00 FF 0F B1 [15:46:59]RasterBufferAndPrint [15:46:59]line Счет N : (1)347055 [15:46:59]line ИНН: 02508201610067 [15:46:59]line Контрольно-Кассовый Чек [15:46:59]line ПРОДАЖА [15:46:59]line ТРК (МРК, ГНК) : 32 [15:46:59]line Товар: 2710124130 [15:46:59]line Аи-92-К-5 [15:46:59]line 10.000 * 64.30 [15:46:59]line = 643.00 [15:46:59]line НДС 12% НСП 1% [15:46:59]line > о реализуемом товаре [15:46:59]line ИТОГО: 643.00 [15:46:59]line НСП 1% : 5.69 [15:46:59]line НДС 12% : 68.28 [15:46:59]line Наличными: 0.00 [15:46:59]line Безнал.: 643.00 [15:46:59]line Место: АЗС № 108 "Партнер Нефть" [15:46:59]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [15:46:59]line СНО: Общий режим [15:46:59]line Чек 167 12.04.2024 15:47 [15:46:59]line Смена: 113 ФФД: 1.0 [15:46:59]line ЗНМ: 0300000027 [15:46:59]line РНМ: 0000138879044617 [15:46:59]line Версия ККМ: 001 [15:46:59]line Платежная система: АКБ Кыргызстан [15:46:59]line ФМ: 0000000000963154 [15:46:59]line ФД: 28718 [15:46:59]line ФПД: 240283133240516 [15:46:59]line 1/tax-web-control/client/api/v1/ticket?date=20240412T154706&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28718&fm=240283133240516&tin=02508201610067®Number=0000138879044617&sum=64300 [15:46:59]OFD Sender: Processing packet 28718 [packets to send 8, broken 7] [15:46:59]ProducePacketName [15:46:59]name=ofd_packets/00028718 [15:46:59]OFD Sender: To server: pG, [15:46:59]CommunicateWithHost lk.salyk.kg:30040 [15:46:59]ConnectInit lk.salyk.kg [15:46:59]written 0, free lines is 4095 [15:46:59]Connected sock=9 [15:46:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 69 DB 07 01 67 86 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 2C FB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C FB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C FB 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 7A 57 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2E 70 00 00 35 04 06 00 DA 89 46 CD 64 C4 4F F3 FD AF E6 45 72 80 [15:46:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 86 7F 47 00 0B 43 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2E 70 00 00 F4 03 04 00 23 02 19 66 B6 04 01 00 00 CD 12 4C C1 60 B8 59 73 [15:46:59]CommunicateWithHost err = 0 [15:46:59]CheckOFDResponse [15:46:59]1017 (14) - 77093643461234 [15:46:59]1041 (16) - 0000000000963154 [15:46:59]1040 (4) - 28718 [15:46:59]1012 (4) - 12.04.2024 09:42 [15:46:59]1206 (1) - 0 [15:46:59]OFD Sender: Remove packet 28718 [15:46:59]ProducePacketName [15:46:59]name=ofd_packets/00028718 [15:46:59]NVStorageDeleteData [15:46:59]Write to MH i2c: 01 00 00 3A 8B C5 [15:46:59]Write i2c OK [15:46:59]MH_I2C_Read... [15:46:59]Read from MH i2c: 01 [15:46:59]MH_I2C_Read... [15:46:59]Read from MH i2c: 01 07 00 [15:46:59]MH_I2C_Read... [15:46:59]Read from MH i2c: 01 07 00 3A 8B 00 00 00 00 00 DF 0C B7 [15:46:59]RasterBufferAndPrint [15:46:59]line [15:46:59]line [15:46:59]line [15:46:59]line [15:46:59]line [15:46:59]written 0, free lines is 3301 [15:46:59]MH_Cut [15:46:59]Write to MH i2c: D1 01 00 41 8B 01 9E [15:46:59]Write i2c OK [15:46:59]MH_I2C_Read... [15:46:59]Read from MH i2c: D1 [15:46:59]MH_I2C_Read... [15:46:59]Read from MH i2c: D1 01 00 [15:46:59]MH_I2C_Read... [15:46:59]Read from MH i2c: D1 01 00 41 8B 00 9D [15:46:59]Write to MH i2c: 01 00 00 42 8B CD [15:46:59]Write i2c OK [15:46:59]MH_I2C_Read... [15:47:00]OFD Sender: No OFD packet to send [15:47:00]*** Cut start [15:47:00]*** Partial cut [15:47:00]*** CUTSNS_PIN = 1 [15:47:00]*** CUTSNS_PIN = 0 [15:47:00]*** Brake cut motor [15:47:01]Read from MH i2c: 01 [15:47:01]MH_I2C_Read... [15:47:01]*** Stop cut motor [15:47:01]*** Cut end [15:47:01]Read from MH i2c: 01 07 00 [15:47:01]MH_I2C_Read... [15:47:01]Read from MH i2c: 01 07 00 42 8B 00 00 00 00 00 FF 0F E2 [15:47:01]process_action close_receipt done [15:47:01]requested_data is exist [15:47:01]produce_requested_data [15:47:01]requested_item fm.sn is exist - process it [15:47:01]wFMCommunicate request_size=4 [15:47:01]MH_SAM_APDU [15:47:01]CAPDU: 80 11 00 00 [15:47:01]Write to MH i2c: E2 08 00 43 8B 80 11 00 00 00 00 00 00 48 [15:47:01]Write i2c OK [15:47:01]MH_I2C_Read... [15:47:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:47:01]Read from MH i2c: E2 [15:47:01]MH_I2C_Read... [15:47:01]Read from MH i2c: E2 17 00 [15:47:01]MH_I2C_Read... [15:47:01]Read from MH i2c: E2 17 00 43 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 97 [15:47:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:47:01]wFMCommunicate OK [15:47:01]requested_item fd.num is exist - process it [15:47:01]SAM_PROTO_GetFieldsCounters [15:47:01]wFMCommunicate request_size=4 [15:47:01]MH_SAM_APDU [15:47:01]CAPDU: 80 13 00 00 [15:47:01]Write to MH i2c: E2 08 00 44 8B 80 13 00 00 00 00 00 00 4B [15:47:01]Write i2c OK [15:47:01]MH_I2C_Read... [15:47:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:47:01]Read from MH i2c: E2 [15:47:01]MH_I2C_Read... [15:47:01]Read from MH i2c: E2 62 00 [15:47:01]MH_I2C_Read... [15:47:01]Read from MH i2c: E2 62 00 44 8B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 2E 70 00 00 0E 04 04 00 71 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 8D [15:47:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 2E 70 00 00 0E 04 04 00 71 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:47:01]wFMCommunicate OK [15:47:01]SAM_PROTO_GetFieldsCounters done [15:47:01]requested_item shift.num is exist - process it [15:47:01]requested_item shift.opened is exist - process it [15:47:01]req_shift_opened [15:47:01]FM_GetShiftState [15:47:01]SAM_PROTO_GetShiftState [15:47:01]wFMCommunicate request_size=4 [15:47:01]MH_SAM_APDU [15:47:01]CAPDU: 80 13 01 00 [15:47:01]Write to MH i2c: E2 08 00 45 8B 80 13 01 00 00 00 00 00 4D [15:47:01]Write i2c OK [15:47:01]MH_I2C_Read... [15:47:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:47:01]Read from MH i2c: E2 [15:47:01]MH_I2C_Read... [15:47:01]Read from MH i2c: E2 0E 00 [15:47:01]MH_I2C_Read... [15:47:01]Read from MH i2c: E2 0E 00 45 8B 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 5E [15:47:01]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [15:47:01]wFMCommunicate OK [15:47:01]SAM_PROTO_GetShiftState done [15:47:01]FM_GetShiftState done [15:47:01]req_shift_opened done [15:47:01]requested_item shift.open_date is exist - process it [15:47:01]req_shift_open_date [15:47:01]req_shift_open_date done [15:47:01]produce_requested_data done [15:47:01]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28718,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [15:47:01]process_action_free close_receipt [15:47:01]json_value_free [15:47:01]json_value_free done [15:47:01]process_json_proto returns [15:47:01]Send response to host [15:47:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28718,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [15:47:01]free response buf [15:47:01]execute_script done [15:47:01]execute_script returns [15:47:01]free content buf [15:47:01]Sock 6.Close socket [15:47:01]Sock 6.Thread stoped [15:47:05]OFD Sender: No OFD packet to send [15:47:10]OFD Sender: No OFD packet to send [15:47:15]OFD Sender: No OFD packet to send [15:47:20]OFD Sender: No OFD packet to send [15:47:25]OFD Sender: No OFD packet to send [15:47:30]OFD Sender: No OFD packet to send [15:47:35]OFD Sender: No OFD packet to send [15:47:40]OFD Sender: No OFD packet to send [15:47:45]OFD Sender: No OFD packet to send [15:47:50]OFD Sender: No OFD packet to send [15:47:55]OFD Sender: No OFD packet to send [15:48:00]OFD Sender: No OFD packet to send [15:48:04]accept exits with 5 [15:48:04]New connection [15:48:04]New thread 3066641764 created [15:48:04]Thread 3066498404 joined [15:48:04]Waiting for new connection... [15:48:04] Sock 5.Parse request [15:48:04]Sock 5.Check first char [15:48:04]Sock 5.First char is OK [15:48:04]request: POST /json_proto HTTP/1.0 [15:48:04]Method: POST [15:48:04]URL: /json_proto [15:48:04]Method is POST - this is cgi request [15:48:04]url: /json_proto [15:48:04]query_string will be loaded in cgi processing [15:48:04]execute_cgi json_proto POST (null) [15:48:04]execute_cgi path=json_proto method=POST [15:48:04]POST find Content-Length [15:48:04]Host: 172.17.33.3:8080 [15:48:04]Content-Length: 1241 [15:48:04]Content-Type: application/json [15:48:04] [15:48:04]POST finish read [15:48:04]Found Content-Length = 1241 [15:48:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)347052\u000A12.04.2024 15:30\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 51\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 110.000 x 72.40\u000A\u0418\u0422\u041E\u0413: 7964.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3729661;662;663;664;665;666;667;668;669;670;671\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:48:04]execute_script... [15:48:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)347052\u000A12.04.2024 15:30\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 51\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 110.000 x 72.40\u000A\u0418\u0422\u041E\u0413: 7964.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3729661;662;663;664;665;666;667;668;669;670;671\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:48:04]POST & json_proto [15:48:04]process_json_proto [15:48:04]json parsed OK: [15:48:04]protocol is kg_v1.0 [15:48:04]action value=print_text [15:48:04]process_action print_text [15:48:04]cmd_print_text [15:48:04]ExternCall_PrintAddStr [15:48:04]wPrintStart [15:48:04]Write to MH i2c: 01 00 00 46 8B D1 [15:48:04]Write i2c OK [15:48:04]MH_I2C_Read... [15:48:04]Read from MH i2c: 01 [15:48:04]MH_I2C_Read... [15:48:04]Read from MH i2c: 01 07 00 [15:48:04]MH_I2C_Read... [15:48:04]Read from MH i2c: 01 07 00 46 8B 00 00 00 00 00 FF 0F E6 [15:48:04]RasterBufferAndPrint [15:48:04]line *****ТОВАРНЫЙ ЧЕК***** [15:48:04]line АЗС 108 [15:48:04]line Партнер нефть [15:48:04]line 02508201610067 [15:48:04]line Кассир : Джумагулова Н. [15:48:04]line Счет N : (1)347052 [15:48:04]line 12.04.2024 15:30 [15:48:04]line ПРОДАЖА [15:48:04]line ТРК (МРК, ГНК): 51 [15:48:04]line Вид ГСМ : 2710194210 [15:48:04]line ДТ-К-5 [15:48:04]line 110.000 x 72.40 [15:48:04]line ИТОГ: 7964.00 [15:48:04]line Тип оплаты: Талоны: Партнер нефть [15:48:04]line 3729661;662;663;664;665;666;667;668;669;670;671 [15:48:04]line ______________________ [15:48:04]line (подпись) [15:48:05]written 0, free lines is 4095 [15:48:05]OFD Sender: No OFD packet to send [15:48:05]Write to MH i2c: 01 00 00 5C 8B E7 [15:48:05]Write i2c OK [15:48:05]MH_I2C_Read... [15:48:05]Read from MH i2c: 01 [15:48:05]MH_I2C_Read... [15:48:05]Read from MH i2c: 01 07 00 [15:48:05]MH_I2C_Read... [15:48:05]Read from MH i2c: 01 07 00 5C 8B 00 00 00 00 00 F3 0D EE [15:48:05]RasterBufferAndPrint [15:48:05]line [15:48:05]line [15:48:05]line [15:48:05]line [15:48:05]line [15:48:05]written 0, free lines is 3574 [15:48:05]MH_Cut [15:48:05]Write to MH i2c: D1 01 00 63 8B 01 C0 [15:48:05]Write i2c OK [15:48:05]MH_I2C_Read... [15:48:05]Read from MH i2c: D1 [15:48:05]MH_I2C_Read... [15:48:05]Read from MH i2c: D1 01 00 [15:48:05]MH_I2C_Read... [15:48:05]Read from MH i2c: D1 01 00 63 8B 00 BF [15:48:05]Write to MH i2c: 01 00 00 64 8B EF [15:48:05]Write i2c OK [15:48:05]MH_I2C_Read... [15:48:06]*** Cut start [15:48:06]*** Partial cut [15:48:06]*** CUTSNS_PIN = 1 [15:48:06]*** CUTSNS_PIN = 0 [15:48:06]*** Brake cut motor [15:48:06]Read from MH i2c: 01 [15:48:06]MH_I2C_Read... [15:48:06]*** Stop cut motor [15:48:06]*** Cut end [15:48:06]Read from MH i2c: 01 07 00 [15:48:06]MH_I2C_Read... [15:48:06]Read from MH i2c: 01 07 00 64 8B 00 00 00 00 00 FF 0F 04 [15:48:06]process_action print_text done [15:48:06]requested_data is exist [15:48:06]produce_requested_data [15:48:06]requested_item fm.sn is exist - process it [15:48:06]wFMCommunicate request_size=4 [15:48:06]MH_SAM_APDU [15:48:06]CAPDU: 80 11 00 00 [15:48:06]Write to MH i2c: E2 08 00 65 8B 80 11 00 00 00 00 00 00 6A [15:48:06]Write i2c OK [15:48:06]MH_I2C_Read... [15:48:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:48:06]Read from MH i2c: E2 [15:48:06]MH_I2C_Read... [15:48:06]Read from MH i2c: E2 17 00 [15:48:06]MH_I2C_Read... [15:48:06]Read from MH i2c: E2 17 00 65 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 B9 [15:48:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:48:06]wFMCommunicate OK [15:48:06]requested_item fd.num is exist - process it [15:48:06]SAM_PROTO_GetFieldsCounters [15:48:06]wFMCommunicate request_size=4 [15:48:06]MH_SAM_APDU [15:48:06]CAPDU: 80 13 00 00 [15:48:06]Write to MH i2c: E2 08 00 66 8B 80 13 00 00 00 00 00 00 6D [15:48:06]Write i2c OK [15:48:06]MH_I2C_Read... [15:48:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:48:06]Read from MH i2c: E2 [15:48:06]MH_I2C_Read... [15:48:06]Read from MH i2c: E2 62 00 [15:48:06]MH_I2C_Read... [15:48:06]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 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 2E 70 00 00 0E 04 04 00 71 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 AF [15:48:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 2E 70 00 00 0E 04 04 00 71 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:06]wFMCommunicate OK [15:48:06]SAM_PROTO_GetFieldsCounters done [15:48:06]requested_item shift.num is exist - process it [15:48:06]requested_item shift.opened is exist - process it [15:48:06]req_shift_opened [15:48:06]FM_GetShiftState [15:48:06]SAM_PROTO_GetShiftState [15:48:06]wFMCommunicate request_size=4 [15:48:06]MH_SAM_APDU [15:48:06]CAPDU: 80 13 01 00 [15:48:06]Write to MH i2c: E2 08 00 67 8B 80 13 01 00 00 00 00 00 6F [15:48:06]Write i2c OK [15:48:06]MH_I2C_Read... [15:48:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:48:06]Read from MH i2c: E2 [15:48:06]MH_I2C_Read... [15:48:06]Read from MH i2c: E2 0E 00 [15:48:06]MH_I2C_Read... [15:48:06]Read from MH i2c: E2 0E 00 67 8B 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 80 [15:48:06]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [15:48:06]wFMCommunicate OK [15:48:06]SAM_PROTO_GetShiftState done [15:48:06]FM_GetShiftState done [15:48:06]req_shift_opened done [15:48:06]requested_item shift.open_date is exist - process it [15:48:06]req_shift_open_date [15:48:06]req_shift_open_date done [15:48:06]produce_requested_data done [15:48:06]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28718,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [15:48:06]process_action_free print_text [15:48:06]json_value_free [15:48:06]json_value_free done [15:48:06]process_json_proto returns [15:48:06]Send response to host [15:48:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28718,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [15:48:06]free response buf [15:48:06]execute_script done [15:48:06]execute_script returns [15:48:06]free content buf [15:48:06]Sock 5.Close socket [15:48:06]Sock 5.Thread stoped [15:48:10]OFD Sender: No OFD packet to send [15:48:15]OFD Sender: No OFD packet to send [15:48:20]OFD Sender: No OFD packet to send [15:48:25]OFD Sender: No OFD packet to send [15:48:30]OFD Sender: No OFD packet to send [15:48:35]OFD Sender: No OFD packet to send [15:48:40]OFD Sender: No OFD packet to send [15:48:45]OFD Sender: No OFD packet to send [15:48:50]OFD Sender: No OFD packet to send [15:48:55]OFD Sender: No OFD packet to send [15:49:00]OFD Sender: No OFD packet to send [15:49:05]OFD Sender: No OFD packet to send [15:49:10]OFD Sender: No OFD packet to send [15:49:15]OFD Sender: No OFD packet to send [15:49:20]OFD Sender: No OFD packet to send [15:49:25]OFD Sender: No OFD packet to send [15:49:30]OFD Sender: No OFD packet to send [15:49:35]OFD Sender: No OFD packet to send [15:49:40]OFD Sender: No OFD packet to send [15:49:45]OFD Sender: No OFD packet to send [15:49:50]OFD Sender: No OFD packet to send [15:49:55]OFD Sender: No OFD packet to send [15:50:00]OFD Sender: No OFD packet to send [15:50:05]OFD Sender: No OFD packet to send [15:50:10]OFD Sender: No OFD packet to send [15:50:15]OFD Sender: No OFD packet to send [15:50:20]OFD Sender: No OFD packet to send [15:50:25]OFD Sender: No OFD packet to send [15:50:30]OFD Sender: No OFD packet to send [15:50:35]OFD Sender: No OFD packet to send [15:50:40]OFD Sender: No OFD packet to send [15:50:45]OFD Sender: No OFD packet to send [15:50:48]*** FLAG_PRN_KEY set [15:50:48]*** FLAG_PRN_KEY reset [15:50:50]OFD Sender: No OFD packet to send [15:50:55]OFD Sender: No OFD packet to send [15:51:00]OFD Sender: No OFD packet to send [15:51:05]OFD Sender: No OFD packet to send [15:51:10]OFD Sender: No OFD packet to send [15:51:15]OFD Sender: No OFD packet to send [15:51:20]OFD Sender: No OFD packet to send [15:51:25]OFD Sender: No OFD packet to send [15:51:30]OFD Sender: No OFD packet to send [15:51:35]OFD Sender: No OFD packet to send [15:51:40]OFD Sender: No OFD packet to send [15:51:41]accept exits with 6 [15:51:41]New connection [15:51:41]New thread 3066498404 created [15:51:41]Thread 3066641764 joined [15:51:41]Waiting for new connection... [15:51:41] Sock 6.Parse request [15:51:41]Sock 6.Check first char [15:51:41]Sock 6.First char is OK [15:51:41]request: POST /json_proto HTTP/1.0 [15:51:41]Method: POST [15:51:41]URL: /json_proto [15:51:41]Method is POST - this is cgi request [15:51:41]url: /json_proto [15:51:41]query_string will be loaded in cgi processing [15:51:41]execute_cgi json_proto POST (null) [15:51:41]execute_cgi path=json_proto method=POST [15:51:41]POST find Content-Length [15:51:41]Host: 172.17.33.3:8080 [15:51:41]Content-Length: 840 [15:51:41]Content-Type: application/json [15:51:41] [15:51:41]POST finish read [15:51:41]Found Content-Length = 840 [15:51:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347056", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 48.350, "sum" : 3500.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 3500.54 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:51:41]execute_script... [15:51: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)347056", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 48.350, "sum" : 3500.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 3500.54 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:51:41]POST & json_proto [15:51:41]process_json_proto [15:51:41]json parsed OK: [15:51:41]protocol is kg_v1.0 [15:51:41]action value=close_receipt [15:51:41]process_action close_receipt [15:51:41]cmd_close_receipt [15:51:41]MH_GetDate [15:51:41]Write to MH i2c: F0 00 00 68 8B E2 [15:51:41]Write i2c OK [15:51:41]MH_I2C_Read... [15:51:41]Read from MH i2c: F0 [15:51:41]MH_I2C_Read... [15:51:41]Read from MH i2c: F0 09 00 [15:51:41]MH_I2C_Read... [15:51:41]Read from MH i2c: F0 09 00 68 8B 00 96 58 19 66 23 5B 8F 65 CA [15:51:41]GetLastDocTimeStamp 1712936826 [15:51:41]current date 1712937110 [15:51:41]FM_GetShiftState [15:51:41]SAM_PROTO_GetShiftState [15:51:41]wFMCommunicate request_size=4 [15:51:41]MH_SAM_APDU [15:51:41]CAPDU: 80 13 01 00 [15:51:41]Write to MH i2c: E2 08 00 69 8B 80 13 01 00 00 00 00 00 71 [15:51:41]Write i2c OK [15:51:41]MH_I2C_Read... [15:51:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:51:41]Read from MH i2c: E2 [15:51:41]MH_I2C_Read... [15:51:41]Read from MH i2c: E2 0E 00 [15:51:41]MH_I2C_Read... [15:51:41]Read from MH i2c: E2 0E 00 69 8B 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 82 [15:51:41]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [15:51:41]wFMCommunicate OK [15:51:41]SAM_PROTO_GetShiftState done [15:51:41]FM_GetShiftState done [15:51:41]opened in 1712881416 [15:51:41]opened+sec_in_day 1712967816 [15:51:41]quantity*price = 350054 [15:51:41]sum+1 = 350055 [15:51:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3500.54 НСП 1% : 30.98 НДС 12% : 371.74 Наличными: 0.00 Безнал.: 3500.54 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 168 12.04.2024 15:51 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 28719 ФПД: 136094366678185 1/tax-web-control/client/api/v1/ticket?date=20240412T155150&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28719&fm=136094366678185&tin=02508201610067®Number=0000138879044617&sum=350054 [15:51:42]StoreToDocumentArchive [15:51:42]shift 113 fd 28719 [15:51:42]save to /storage/0113/doc_00028719 [15:51:42]save last doc name /storage/0113/doc_00028719 to /storage/kkm_last_doc_name [15:51:42]save OK [15:51:42]Clear old archive folders... [15:51:42]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:51:42]tlvbuf is 01BC2A50 [15:51:42]SAM_PROTO_ClearQueue [15:51:42]wFMCommunicate request_size=4 [15:51:42]MH_SAM_APDU [15:51:42]CAPDU: 80 09 00 00 [15:51:42]Write to MH i2c: E2 08 00 76 8B 80 09 00 00 00 00 00 00 73 [15:51:42]Write i2c OK [15:51:42]MH_I2C_Read... [15:51:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:51:42]Read from MH i2c: E2 [15:51:42]MH_I2C_Read... [15:51:42]Read from MH i2c: E2 03 00 [15:51:42]MH_I2C_Read... [15:51:42]Read from MH i2c: E2 03 00 76 8B 00 90 00 75 [15:51:42]RAPDU: 90 00 [15:51:42]wFMCommunicate OK [15:51:42]SAM_PROTO_ClearQueue done [15:51:42]KKMCreateOFDPacket [15:51:42]OFDProtocolAddRootSTLVToBuf [15:51:42]FM_MakeSignedData [15:51:42]FM_MakeSignedData [15:51:42]SAM_PROTO_SignData [15:51:42]wFMCommunicate request_size=4 [15:51:42]MH_SAM_APDU [15:51:42]CAPDU: 80 0D 01 02 [15:51:42]Write to MH i2c: E2 08 00 77 8B 80 0D 01 02 00 00 00 00 7B [15:51:42]Write i2c OK [15:51:42]MH_I2C_Read... [15:51:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:51:42]Read from MH i2c: E2 [15:51:42]MH_I2C_Read... [15:51:42]Read from MH i2c: E2 03 00 [15:51:42]MH_I2C_Read... [15:51:42]Read from MH i2c: E2 03 00 77 8B 00 90 00 76 [15:51:42]RAPDU: 90 00 [15:51:42]wFMCommunicate OK [15:51:42]wFMCommunicate request_size=255 [15:51:42]MH_SAM_APDU [15:51: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 35 FF 03 08 00 03 DE BC 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 66 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 66 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 36 91 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 66 57 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 96 58 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2F 70 00 00 35 04 06 00 7B C6 F0 61 [15:51:42]Write to MH i2c: E2 02 01 78 8B 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 35 FF 03 08 00 03 DE BC 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 66 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 66 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 36 91 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 66 57 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 96 58 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2F 70 00 00 35 04 06 00 7B C6 F0 61 00 00 DD [15:51:42]Write i2c OK [15:51:42]MH_I2C_Read... [15:51:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:51:43]Read from MH i2c: E2 [15:51:43]MH_I2C_Read... [15:51:43]Read from MH i2c: E2 03 00 [15:51:43]MH_I2C_Read... [15:51:43]Read from MH i2c: E2 03 00 78 8B 00 90 00 77 [15:51:43]RAPDU: 90 00 [15:51:43]wFMCommunicate OK [15:51:43]wFMCommunicate request_size=7 [15:51:43]MH_SAM_APDU [15:51:43]CAPDU: 80 0D 02 02 02 BC A9 [15:51:43]Write to MH i2c: E2 0A 00 79 8B 80 0D 02 02 02 00 BC A9 00 00 E7 [15:51:43]Write i2c OK [15:51:43]MH_I2C_Read... [15:51:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:51:43]Read from MH i2c: E2 [15:51:43]MH_I2C_Read... [15:51:43]Read from MH i2c: E2 03 00 [15:51:43]MH_I2C_Read... [15:51:43]Read from MH i2c: E2 03 00 79 8B 00 90 00 78 [15:51:43]RAPDU: 90 00 [15:51:43]wFMCommunicate OK [15:51:43]wFMCommunicate request_size=4 [15:51:43]MH_SAM_APDU [15:51:43]CAPDU: 80 0D 03 02 [15:51:43]Write to MH i2c: E2 08 00 7A 8B 80 0D 03 02 00 00 00 00 80 [15:51:43]Write i2c OK [15:51:43]MH_I2C_Read... [15:51:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:51:43]Read from MH i2c: E2 [15:51:43]MH_I2C_Read... [15:51:43]Read from MH i2c: E2 0B 00 [15:51:43]MH_I2C_Read... [15:51:43]Read from MH i2c: E2 0B 00 7A 8B 00 93 B7 C0 FA BB 32 74 FE 90 00 E4 [15:51:43]RAPDU: 93 B7 C0 FA BB 32 74 FE 90 00 [15:51:43]wFMCommunicate OK [15:51:43]SAM_PROTO_SignData done [15:51:43]FM_MakeSignedData done [15:51:43]CreateOFDProtocolMessage [15:51:43]wFMCommunicate request_size=4 [15:51:43]MH_SAM_APDU [15:51:43]CAPDU: 80 11 00 00 [15:51:43]Write to MH i2c: E2 08 00 7B 8B 80 11 00 00 00 00 00 00 80 [15:51:43]Write i2c OK [15:51:43]MH_I2C_Read... [15:51:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:51:43]Read from MH i2c: E2 [15:51:43]MH_I2C_Read... [15:51:43]Read from MH i2c: E2 17 00 [15:51:43]MH_I2C_Read... [15:51:43]Read from MH i2c: E2 17 00 7B 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 CF [15:51:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:51:43]wFMCommunicate OK [15:51:43]CreateOFDProtocolMessage done [15:51:43]OFDSenderStorePacket 28719 [15:51:43]StoreOFDPacket docnum=28719 [15:51:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 37 E3 04 01 BA C8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DE BC 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 66 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 66 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 36 91 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 66 57 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 96 58 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2F 70 00 00 35 04 06 00 7B C6 F0 61 BC A9 93 B7 C0 FA BB 32 74 FE [15:51:43]CheckFolder [15:51:43]dirname=/storage/ofd_packets [15:51:43]CheckFolder done [15:51:43]ProducePacketName [15:51:43]name=ofd_packets/00028719 [15:51:43]NVStorageSaveData ofd_packets/00028719 [15:51:43]File name is /storage/ofd_packets/00028719 [15:51:43]Write 298 bytes [15:51:43]NVStorageSaveData done [15:51:43]OFDSenderStorePacket done [15:51:43]KKMCreateOFDPacket done [15:51:43]NVStorageSaveData kkm_last_timestamp [15:51:43]File name is /storage/kkm_last_timestamp [15:51:43]Write 4 bytes [15:51:43]NVStorageSaveData done [15:51:43]ExternCall_PrintAddStr [15:51:43]wPrintStart [15:51:43]Write to MH i2c: 01 00 00 7C 8B 07 [15:51:43]Write i2c OK [15:51:43]MH_I2C_Read... [15:51:43]Read from MH i2c: 01 [15:51:43]MH_I2C_Read... [15:51:43]Read from MH i2c: 01 07 00 [15:51:43]MH_I2C_Read... [15:51:43]Read from MH i2c: 01 07 00 7C 8B 00 00 00 00 00 FF 0F 1C [15:51:43]RasterBufferAndPrint [15:51:43]line Счет N : (1)347056 [15:51:43]line ИНН: 02508201610067 [15:51:43]line Контрольно-Кассовый Чек [15:51:43]line ПРОДАЖА [15:51:43]line ТРК (МРК, ГНК) : 11 [15:51:43]line Товар: 2710194210 [15:51:43]line ДТ-К-5 [15:51:43]line 48.350 * 72.40 [15:51:43]line = 3500.54 [15:51:43]line НДС 12% НСП 1% [15:51:43]line > о реализуемом товаре [15:51:43]line ИТОГО: 3500.54 [15:51:43]line НСП 1% : 30.98 [15:51:43]line НДС 12% : 371.74 [15:51:43]line Наличными: 0.00 [15:51:43]line Безнал.: 3500.54 [15:51:43]line Место: АЗС № 108 "Партнер Нефть" [15:51:43]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [15:51:43]line СНО: Общий режим [15:51:43]line Чек 168 12.04.2024 15:51 [15:51:43]line Смена: 113 ФФД: 1.0 [15:51:43]line ЗНМ: 0300000027 [15:51:43]line РНМ: 0000138879044617 [15:51:43]line Версия ККМ: 001 [15:51:43]line Платежная система: АКБ Кыргызстан [15:51:43]line ФМ: 0000000000963154 [15:51:43]line ФД: 28719 [15:51:43]line ФПД: 136094366678185 [15:51:43]line 1/tax-web-control/client/api/v1/ticket?date=20240412T155150&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28719&fm=136094366678185&tin=02508201610067®Number=0000138879044617&sum=350054 [15:51:43]OFD Sender: Processing packet 28719 [packets to send 8, broken 7] [15:51:43]ProducePacketName [15:51:43]name=ofd_packets/00028719 [15:51:43]OFD Sender: To server: pG, [15:51:43]CommunicateWithHost lk.salyk.kg:30040 [15:51:43]ConnectInit lk.salyk.kg [15:51:43]written 0, free lines is 4095 [15:51:43]Connected sock=7 [15:51:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 37 E3 04 01 BA C8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DE BC 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 66 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 66 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 36 91 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 66 57 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 96 58 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2F 70 00 00 35 04 06 00 7B C6 F0 61 BC A9 93 B7 C0 FA BB 32 74 FE [15:51:43]Write to MH i2c: 01 00 00 A5 8B 30 [15:51:43]Write i2c OK [15:51:43]MH_I2C_Read... [15:51:43]Read from MH i2c: 01 [15:51:43]MH_I2C_Read... [15:51:43]Read from MH i2c: 01 07 00 [15:51:43]MH_I2C_Read... [15:51:43]Read from MH i2c: 01 07 00 A5 8B 00 00 00 00 00 DA 0C 1D [15:51:43]RasterBufferAndPrint [15:51:43]line [15:51:43]line [15:51:43]line [15:51:43]line [15:51:43]line [15:51:43]written 0, free lines is 3297 [15:51:43]MH_Cut [15:51:43]Write to MH i2c: D1 01 00 AC 8B 01 09 [15:51:43]Write i2c OK [15:51:43]MH_I2C_Read... [15:51:43]Read from MH i2c: D1 [15:51:43]MH_I2C_Read... [15:51:43]Read from MH i2c: D1 01 00 [15:51:43]MH_I2C_Read... [15:51:43]Read from MH i2c: D1 01 00 AC 8B 00 08 [15:51:43]Write to MH i2c: 01 00 00 AD 8B 38 [15:51:43]Write i2c OK [15:51:43]MH_I2C_Read... [15:51:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 2B 55 47 00 E1 F1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2F 70 00 00 F4 03 04 00 40 03 19 66 B6 04 01 00 00 D7 0D 8A 27 E8 52 4F 31 [15:51:44]CommunicateWithHost err = 0 [15:51:44]CheckOFDResponse [15:51:44]1017 (14) - 77093643461234 [15:51:44]1041 (16) - 0000000000963154 [15:51:44]1040 (4) - 28719 [15:51:44]1012 (4) - 12.04.2024 09:47 [15:51:44]1206 (1) - 0 [15:51:44]OFD Sender: Remove packet 28719 [15:51:44]ProducePacketName [15:51:44]name=ofd_packets/00028719 [15:51:44]NVStorageDeleteData [15:51:44]OFD Sender: No OFD packet to send [15:51:44]*** Cut start [15:51:44]*** Partial cut [15:51:44]*** CUTSNS_PIN = 1 [15:51:44]*** CUTSNS_PIN = 0 [15:51:44]*** Brake cut motor [15:51:45]Read from MH i2c: 01 [15:51:45]MH_I2C_Read... [15:51:45]*** Stop cut motor [15:51:45]*** Cut end [15:51:45]Read from MH i2c: 01 07 00 [15:51:45]MH_I2C_Read... [15:51:45]Read from MH i2c: 01 07 00 AD 8B 00 00 00 00 00 FF 0F 4D [15:51:45]process_action close_receipt done [15:51:45]requested_data is exist [15:51:45]produce_requested_data [15:51:45]requested_item fm.sn is exist - process it [15:51:45]wFMCommunicate request_size=4 [15:51:45]MH_SAM_APDU [15:51:45]CAPDU: 80 11 00 00 [15:51:45]Write to MH i2c: E2 08 00 AE 8B 80 11 00 00 00 00 00 00 B3 [15:51:45]Write i2c OK [15:51:45]MH_I2C_Read... [15:51:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:51:45]Read from MH i2c: E2 [15:51:45]MH_I2C_Read... [15:51:45]Read from MH i2c: E2 17 00 [15:51:45]MH_I2C_Read... [15:51:45]Read from MH i2c: E2 17 00 AE 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 02 [15:51:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:51:45]wFMCommunicate OK [15:51:45]requested_item fd.num is exist - process it [15:51:45]SAM_PROTO_GetFieldsCounters [15:51:45]wFMCommunicate request_size=4 [15:51:45]MH_SAM_APDU [15:51:45]CAPDU: 80 13 00 00 [15:51:45]Write to MH i2c: E2 08 00 AF 8B 80 13 00 00 00 00 00 00 B6 [15:51:45]Write i2c OK [15:51:45]MH_I2C_Read... [15:51:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:51:45]Read from MH i2c: E2 [15:51:45]MH_I2C_Read... [15:51:45]Read from MH i2c: E2 62 00 [15:51:45]MH_I2C_Read... [15:51:45]Read from MH i2c: E2 62 00 AF 8B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 2F 70 00 00 0E 04 04 00 71 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 FC [15:51:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 2F 70 00 00 0E 04 04 00 71 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:51:45]wFMCommunicate OK [15:51:45]SAM_PROTO_GetFieldsCounters done [15:51:45]requested_item shift.num is exist - process it [15:51:45]requested_item shift.opened is exist - process it [15:51:45]req_shift_opened [15:51:45]FM_GetShiftState [15:51:45]SAM_PROTO_GetShiftState [15:51:45]wFMCommunicate request_size=4 [15:51:45]MH_SAM_APDU [15:51:45]CAPDU: 80 13 01 00 [15:51:45]Write to MH i2c: E2 08 00 B0 8B 80 13 01 00 00 00 00 00 B8 [15:51:45]Write i2c OK [15:51:45]MH_I2C_Read... [15:51:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:51:45]Read from MH i2c: E2 [15:51:45]MH_I2C_Read... [15:51:45]Read from MH i2c: E2 0E 00 [15:51:45]MH_I2C_Read... [15:51:45]Read from MH i2c: E2 0E 00 B0 8B 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 C9 [15:51:45]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [15:51:45]wFMCommunicate OK [15:51:45]SAM_PROTO_GetShiftState done [15:51:45]FM_GetShiftState done [15:51:45]req_shift_opened done [15:51:45]requested_item shift.open_date is exist - process it [15:51:45]req_shift_open_date [15:51:45]req_shift_open_date done [15:51:45]produce_requested_data done [15:51:45]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28719,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [15:51:45]process_action_free close_receipt [15:51:45]json_value_free [15:51:45]json_value_free done [15:51:45]process_json_proto returns [15:51:45]Send response to host [15:51:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28719,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [15:51:45]free response buf [15:51:45]execute_script done [15:51:45]execute_script returns [15:51:45]free content buf [15:51:45]Sock 6.Close socket [15:51:45]Sock 6.Thread stoped [15:51:49]OFD Sender: No OFD packet to send [15:51:54]OFD Sender: No OFD packet to send [15:51:59]OFD Sender: No OFD packet to send [15:52:04]OFD Sender: No OFD packet to send [15:52:09]OFD Sender: No OFD packet to send [15:52:14]OFD Sender: No OFD packet to send [15:52:19]OFD Sender: No OFD packet to send [15:52:24]OFD Sender: No OFD packet to send [15:52:29]OFD Sender: No OFD packet to send [15:52:34]OFD Sender: No OFD packet to send [15:52:39]OFD Sender: No OFD packet to send [15:52:44]OFD Sender: No OFD packet to send [15:52:49]OFD Sender: No OFD packet to send [15:52:54]OFD Sender: No OFD packet to send [15:52:59]OFD Sender: No OFD packet to send [15:53:04]OFD Sender: No OFD packet to send [15:53:09]OFD Sender: No OFD packet to send [15:53:14]OFD Sender: No OFD packet to send [15:53:19]OFD Sender: No OFD packet to send [15:53:24]OFD Sender: No OFD packet to send [15:53:29]OFD Sender: No OFD packet to send [15:53:34]OFD Sender: No OFD packet to send [15:53:39]OFD Sender: No OFD packet to send [15:53:44]OFD Sender: No OFD packet to send [15:53:49]OFD Sender: No OFD packet to send [15:53:54]OFD Sender: No OFD packet to send [15:53:59]OFD Sender: No OFD packet to send [15:54:04]OFD Sender: No OFD packet to send [15:54:09]OFD Sender: No OFD packet to send [15:54:14]OFD Sender: No OFD packet to send [15:54:19]OFD Sender: No OFD packet to send [15:54:24]OFD Sender: No OFD packet to send [15:54:29]OFD Sender: No OFD packet to send [15:54:34]OFD Sender: No OFD packet to send [15:54:39]OFD Sender: No OFD packet to send [15:54:44]OFD Sender: No OFD packet to send [15:54:49]OFD Sender: No OFD packet to send [15:54:54]OFD Sender: No OFD packet to send [15:54:59]OFD Sender: No OFD packet to send [15:55:04]OFD Sender: No OFD packet to send [15:55:09]OFD Sender: No OFD packet to send [15:55:14]OFD Sender: No OFD packet to send [15:55:19]OFD Sender: No OFD packet to send [15:55:24]OFD Sender: No OFD packet to send [15:55:29]OFD Sender: No OFD packet to send [15:55:34]OFD Sender: No OFD packet to send [15:55:39]OFD Sender: No OFD packet to send [15:55:44]OFD Sender: No OFD packet to send [15:55:49]OFD Sender: No OFD packet to send [15:55:54]OFD Sender: No OFD packet to send [15:55:59]OFD Sender: No OFD packet to send [15:56:04]OFD Sender: No OFD packet to send [15:56:09]OFD Sender: No OFD packet to send [15:56:14]OFD Sender: No OFD packet to send [15:56:19]OFD Sender: No OFD packet to send [15:56:24]OFD Sender: No OFD packet to send [15:56:29]OFD Sender: No OFD packet to send [15:56:34]OFD Sender: No OFD packet to send [15:56:39]OFD Sender: No OFD packet to send [15:56:44]OFD Sender: No OFD packet to send [15:56:49]OFD Sender: No OFD packet to send [15:56:54]OFD Sender: No OFD packet to send [15:56:59]OFD Sender: No OFD packet to send [15:57:04]OFD Sender: No OFD packet to send [15:57:09]OFD Sender: No OFD packet to send [15:57:13]accept exits with 5 [15:57:13]New connection [15:57:13]New thread 3066641764 created [15:57:13]Thread 3066498404 joined [15:57:13]Waiting for new connection... [15:57:13] Sock 5.Parse request [15:57:13]Sock 5.Check first char [15:57:13]Sock 5.First char is OK [15:57:13]request: POST /json_proto HTTP/1.0 [15:57:13]Method: POST [15:57:13]URL: /json_proto [15:57:13]Method is POST - this is cgi request [15:57:13]url: /json_proto [15:57:13]query_string will be loaded in cgi processing [15:57:13]execute_cgi json_proto POST (null) [15:57:13]execute_cgi path=json_proto method=POST [15:57:13]POST find Content-Length [15:57:13]Host: 172.17.33.3:8080 [15:57:13]Content-Length: 685 [15:57:13]Content-Type: application/json [15:57:13] [15:57:13]POST finish read [15:57:13]Found Content-Length = 685 [15:57:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347057", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 30.400, "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:57:13]execute_script... [15:57:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347057", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 30.400, "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:57:13]POST & json_proto [15:57:13]process_json_proto [15:57:13]json parsed OK: [15:57:13]protocol is kg_v1.0 [15:57:13]action value=close_receipt [15:57:13]process_action close_receipt [15:57:13]cmd_close_receipt [15:57:13]MH_GetDate [15:57:13]Write to MH i2c: F0 00 00 B1 8B 2B [15:57:13]Write i2c OK [15:57:13]MH_I2C_Read... [15:57:13]Read from MH i2c: F0 [15:57:13]MH_I2C_Read... [15:57:13]Read from MH i2c: F0 09 00 [15:57:13]MH_I2C_Read... [15:57:13]Read from MH i2c: F0 09 00 B1 8B 00 E1 59 19 66 23 5B 8F 65 5F [15:57:13]GetLastDocTimeStamp 1712937110 [15:57:13]current date 1712937441 [15:57:13]FM_GetShiftState [15:57:13]SAM_PROTO_GetShiftState [15:57:13]wFMCommunicate request_size=4 [15:57:13]MH_SAM_APDU [15:57:13]CAPDU: 80 13 01 00 [15:57:13]Write to MH i2c: E2 08 00 B2 8B 80 13 01 00 00 00 00 00 BA [15:57:13]Write i2c OK [15:57:13]MH_I2C_Read... [15:57:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:57:13]Read from MH i2c: E2 [15:57:13]MH_I2C_Read... [15:57:13]Read from MH i2c: E2 0E 00 [15:57:13]MH_I2C_Read... [15:57:13]Read from MH i2c: E2 0E 00 B2 8B 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 CB [15:57:13]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [15:57:13]wFMCommunicate OK [15:57:13]SAM_PROTO_GetShiftState done [15:57:13]FM_GetShiftState done [15:57:13]opened in 1712881416 [15:57:13]opened+sec_in_day 1712967816 [15:57:13]quantity*price = 100016 [15:57:13]sum+1 = 100017 [15:57:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 169 12.04.2024 15:57 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28720 ФПД: 277934435946481 1/tax-web-control/client/api/v1/ticket?date=20240412T155721&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28720&fm=277934435946481&tin=02508201610067®Number=0000138879044617&sum=100000 [15:57:14]StoreToDocumentArchive [15:57:14]shift 113 fd 28720 [15:57:14]save to /storage/0113/doc_00028720 [15:57:14]save last doc name /storage/0113/doc_00028720 to /storage/kkm_last_doc_name [15:57:14]save OK [15:57:14]Clear old archive folders... [15:57:14]ProcessDocumentItem done err = 0, tmpTLVsize=250 [15:57:14]tlvbuf is 01AEF1A0 [15:57:14]SAM_PROTO_ClearQueue [15:57:14]wFMCommunicate request_size=4 [15:57:14]MH_SAM_APDU [15:57:14]CAPDU: 80 09 00 00 [15:57:14]Write to MH i2c: E2 08 00 BF 8B 80 09 00 00 00 00 00 00 BC [15:57:14]Write i2c OK [15:57:14]MH_I2C_Read... [15:57:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:57:14]Read from MH i2c: E2 [15:57:14]MH_I2C_Read... [15:57:14]Read from MH i2c: E2 03 00 [15:57:14]MH_I2C_Read... [15:57:14]Read from MH i2c: E2 03 00 BF 8B 00 90 00 BE [15:57:14]RAPDU: 90 00 [15:57:14]wFMCommunicate OK [15:57:14]SAM_PROTO_ClearQueue done [15:57:14]KKMCreateOFDPacket [15:57:14]OFDProtocolAddRootSTLVToBuf [15:57:14]FM_MakeSignedData [15:57:14]FM_MakeSignedData [15:57:14]SAM_PROTO_SignData [15:57:14]wFMCommunicate request_size=4 [15:57:14]MH_SAM_APDU [15:57:14]CAPDU: 80 0D 01 02 [15:57:14]Write to MH i2c: E2 08 00 C0 8B 80 0D 01 02 00 00 00 00 C4 [15:57:14]Write i2c OK [15:57:14]MH_I2C_Read... [15:57:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:57:14]Read from MH i2c: E2 [15:57:14]MH_I2C_Read... [15:57:14]Read from MH i2c: E2 03 00 [15:57:14]MH_I2C_Read... [15:57:14]Read from MH i2c: E2 03 00 C0 8B 00 90 00 BF [15:57:14]RAPDU: 90 00 [15:57:14]wFMCommunicate OK [15:57:14]wFMCommunicate request_size=255 [15:57:14]MH_SAM_APDU [15:57:14]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 DA 0C 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 A9 00 00 00 F4 03 04 00 E1 59 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 30 70 00 00 35 04 06 00 FC C7 [15:57:14]Write to MH i2c: E2 02 01 C1 8B 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 DA 0C 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 A9 00 00 00 F4 03 04 00 E1 59 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 30 70 00 00 35 04 06 00 FC C7 00 00 90 [15:57:14]Write i2c OK [15:57:14]MH_I2C_Read... [15:57:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:57:14]Read from MH i2c: E2 [15:57:14]MH_I2C_Read... [15:57:14]Read from MH i2c: E2 03 00 [15:57:14]MH_I2C_Read... [15:57:14]Read from MH i2c: E2 03 00 C1 8B 00 90 00 C0 [15:57:14]RAPDU: 90 00 [15:57:14]wFMCommunicate OK [15:57:14]wFMCommunicate request_size=9 [15:57:14]MH_SAM_APDU [15:57:14]CAPDU: 80 0D 02 02 04 A7 53 4F F1 [15:57:14]Write to MH i2c: E2 0C 00 C2 8B 80 0D 02 02 04 00 A7 53 4F F1 00 00 09 [15:57:14]Write i2c OK [15:57:14]MH_I2C_Read... [15:57:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:57:14]Read from MH i2c: E2 [15:57:14]MH_I2C_Read... [15:57:14]Read from MH i2c: E2 03 00 [15:57:14]MH_I2C_Read... [15:57:14]Read from MH i2c: E2 03 00 C2 8B 00 90 00 C1 [15:57:14]RAPDU: 90 00 [15:57:14]wFMCommunicate OK [15:57:14]wFMCommunicate request_size=4 [15:57:14]MH_SAM_APDU [15:57:14]CAPDU: 80 0D 03 02 [15:57:14]Write to MH i2c: E2 08 00 C3 8B 80 0D 03 02 00 00 00 00 C9 [15:57:14]Write i2c OK [15:57:14]MH_I2C_Read... [15:57:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:57:14]Read from MH i2c: E2 [15:57:14]MH_I2C_Read... [15:57:14]Read from MH i2c: E2 0B 00 [15:57:14]MH_I2C_Read... [15:57:14]Read from MH i2c: E2 0B 00 C3 8B 00 5A E8 CE 37 0C FB 66 7F 90 00 FD [15:57:14]RAPDU: 5A E8 CE 37 0C FB 66 7F 90 00 [15:57:14]wFMCommunicate OK [15:57:14]SAM_PROTO_SignData done [15:57:14]FM_MakeSignedData done [15:57:14]CreateOFDProtocolMessage [15:57:14]wFMCommunicate request_size=4 [15:57:14]MH_SAM_APDU [15:57:14]CAPDU: 80 11 00 00 [15:57:14]Write to MH i2c: E2 08 00 C4 8B 80 11 00 00 00 00 00 00 C9 [15:57:14]Write i2c OK [15:57:14]MH_I2C_Read... [15:57:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:57:14]Read from MH i2c: E2 [15:57:14]MH_I2C_Read... [15:57:14]Read from MH i2c: E2 17 00 [15:57:14]MH_I2C_Read... [15:57:14]Read from MH i2c: E2 17 00 C4 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 18 [15:57:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:57:14]wFMCommunicate OK [15:57:14]CreateOFDProtocolMessage done [15:57:14]OFDSenderStorePacket 28720 [15:57:14]StoreOFDPacket docnum=28720 [15:57:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 9C EA 06 01 05 0C 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 DA 0C 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 A9 00 00 00 F4 03 04 00 E1 59 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 30 70 00 00 35 04 06 00 FC C7 A7 53 4F F1 5A E8 CE 37 0C FB 66 7F [15:57:14]CheckFolder [15:57:14]dirname=/storage/ofd_packets [15:57:14]CheckFolder done [15:57:14]ProducePacketName [15:57:14]name=ofd_packets/00028720 [15:57:14]NVStorageSaveData ofd_packets/00028720 [15:57:14]File name is /storage/ofd_packets/00028720 [15:57:14]Write 300 bytes [15:57:14]NVStorageSaveData done [15:57:14]OFDSenderStorePacket done [15:57:14]KKMCreateOFDPacket done [15:57:14]NVStorageSaveData kkm_last_timestamp [15:57:14]File name is /storage/kkm_last_timestamp [15:57:14]Write 4 bytes [15:57:14]NVStorageSaveData done [15:57:14]ExternCall_PrintAddStr [15:57:14]wPrintStart [15:57:14]Write to MH i2c: 01 00 00 C5 8B 50 [15:57:14]Write i2c OK [15:57:14]MH_I2C_Read... [15:57:14]Read from MH i2c: 01 [15:57:14]MH_I2C_Read... [15:57:14]Read from MH i2c: 01 07 00 [15:57:14]MH_I2C_Read... [15:57:14]Read from MH i2c: 01 07 00 C5 8B 00 00 00 00 00 FF 0F 65 [15:57:14]RasterBufferAndPrint [15:57:14]line Счет N : (1)347057 [15:57:14]line ИНН: 02508201610067 [15:57:14]line Контрольно-Кассовый Чек [15:57:14]line ПРОДАЖА [15:57:14]line ТРК (МРК, ГНК) : 71 [15:57:14]line Товар: 2711129700 [15:57:14]line ГАЗ-К-5 [15:57:14]line 30.400 * 32.90 [15:57:14]line = 1000.16 [15:57:14]line НДС 12% НСП 1% [15:57:14]line > о реализуемом товаре [15:57:14]line ОКРУГЛЕНИЕ: -0.16 [15:57:14]line ИТОГО: 1000.00 [15:57:14]line Внесено: 1000.00 [15:57:14]line СДАЧА: 0.00 [15:57:14]line НСП 1% : 8.85 [15:57:14]line НДС 12% : 106.21 [15:57:14]line Наличными: 1000.00 [15:57:14]line Безнал.: 0.00 [15:57:14]line Место: АЗС № 108 "Партнер Нефть" [15:57:14]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [15:57:14]line СНО: Общий режим [15:57:14]line Чек 169 12.04.2024 15:57 [15:57:14]line Смена: 113 ФФД: 1.0 [15:57:14]line ЗНМ: 0300000027 [15:57:14]line РНМ: 0000138879044617 [15:57:14]line Версия ККМ: 001 [15:57:14]line ФМ: 0000000000963154 [15:57:14]line ФД: 28720 [15:57:14]line ФПД: 277934435946481 [15:57:14]line 1/tax-web-control/client/api/v1/ticket?date=20240412T155721&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28720&fm=277934435946481&tin=02508201610067®Number=0000138879044617&sum=100000 [15:57:15]OFD Sender: Processing packet 28720 [packets to send 8, broken 7] [15:57:15]ProducePacketName [15:57:15]name=ofd_packets/00028720 [15:57:15]OFD Sender: To server: pG, [15:57:15]CommunicateWithHost lk.salyk.kg:30040 [15:57:15]ConnectInit lk.salyk.kg [15:57:15]written 0, free lines is 4095 [15:57:15]Connected sock=7 [15:57:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 9C EA 06 01 05 0C 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 DA 0C 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 A9 00 00 00 F4 03 04 00 E1 59 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 30 70 00 00 35 04 06 00 FC C7 A7 53 4F F1 5A E8 CE 37 0C FB 66 7F [15:57:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 40 4A 47 00 2D C0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 30 70 00 00 F4 03 04 00 8B 04 19 66 B6 04 01 00 00 7F 58 7B 00 D3 0C 23 32 [15:57:15]CommunicateWithHost err = 0 [15:57:15]CheckOFDResponse [15:57:15]1017 (14) - 77093643461234 [15:57:15]1041 (16) - 0000000000963154 [15:57:15]1040 (4) - 28720 [15:57:15]1012 (4) - 12.04.2024 09:53 [15:57:15]1206 (1) - 0 [15:57:15]OFD Sender: Remove packet 28720 [15:57:15]ProducePacketName [15:57:15]name=ofd_packets/00028720 [15:57:15]NVStorageDeleteData [15:57:15]Write to MH i2c: 01 00 00 EF 8B 7A [15:57:15]Write i2c OK [15:57:15]MH_I2C_Read... [15:57:15]Read from MH i2c: 01 [15:57:15]MH_I2C_Read... [15:57:15]Read from MH i2c: 01 07 00 [15:57:15]MH_I2C_Read... [15:57:15]Read from MH i2c: 01 07 00 EF 8B 00 00 00 00 00 C2 0C 4F [15:57:15]RasterBufferAndPrint [15:57:15]line [15:57:15]line [15:57:15]line [15:57:15]line [15:57:15]line [15:57:15]written 0, free lines is 3272 [15:57:15]MH_Cut [15:57:15]Write to MH i2c: D1 01 00 F6 8B 01 53 [15:57:15]Write i2c OK [15:57:15]MH_I2C_Read... [15:57:15]Read from MH i2c: D1 [15:57:15]MH_I2C_Read... [15:57:15]Read from MH i2c: D1 01 00 [15:57:15]MH_I2C_Read... [15:57:15]Read from MH i2c: D1 01 00 F6 8B 00 52 [15:57:15]Write to MH i2c: 01 00 00 F7 8B 82 [15:57:15]Write i2c OK [15:57:15]MH_I2C_Read... [15:57:15]OFD Sender: No OFD packet to send [15:57:16]*** Cut start [15:57:16]*** Partial cut [15:57:16]*** CUTSNS_PIN = 1 [15:57:16]*** CUTSNS_PIN = 0 [15:57:16]*** Brake cut motor [15:57:16]Read from MH i2c: 01 [15:57:16]MH_I2C_Read... [15:57:16]*** Stop cut motor [15:57:16]*** Cut end [15:57:16]Read from MH i2c: 01 07 00 [15:57:16]MH_I2C_Read... [15:57:16]Read from MH i2c: 01 07 00 F7 8B 00 00 00 00 00 FF 0F 97 [15:57:16]process_action close_receipt done [15:57:16]requested_data is exist [15:57:16]produce_requested_data [15:57:16]requested_item fm.sn is exist - process it [15:57:16]wFMCommunicate request_size=4 [15:57:16]MH_SAM_APDU [15:57:16]CAPDU: 80 11 00 00 [15:57:16]Write to MH i2c: E2 08 00 F8 8B 80 11 00 00 00 00 00 00 FD [15:57:16]Write i2c OK [15:57:16]MH_I2C_Read... [15:57:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:57:16]Read from MH i2c: E2 [15:57:16]MH_I2C_Read... [15:57:16]Read from MH i2c: E2 17 00 [15:57:16]MH_I2C_Read... [15:57:16]Read from MH i2c: E2 17 00 F8 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 4C [15:57:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:57:16]wFMCommunicate OK [15:57:16]requested_item fd.num is exist - process it [15:57:16]SAM_PROTO_GetFieldsCounters [15:57:16]wFMCommunicate request_size=4 [15:57:16]MH_SAM_APDU [15:57:16]CAPDU: 80 13 00 00 [15:57:16]Write to MH i2c: E2 08 00 F9 8B 80 13 00 00 00 00 00 00 00 [15:57:16]Write i2c OK [15:57:16]MH_I2C_Read... [15:57:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:57:17]Read from MH i2c: E2 [15:57:17]MH_I2C_Read... [15:57:17]Read from MH i2c: E2 62 00 [15:57:17]MH_I2C_Read... [15:57:17]Read from MH i2c: E2 62 00 F9 8B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 30 70 00 00 0E 04 04 00 71 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 4A [15:57:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 30 70 00 00 0E 04 04 00 71 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:57:17]wFMCommunicate OK [15:57:17]SAM_PROTO_GetFieldsCounters done [15:57:17]requested_item shift.num is exist - process it [15:57:17]requested_item shift.opened is exist - process it [15:57:17]req_shift_opened [15:57:17]FM_GetShiftState [15:57:17]SAM_PROTO_GetShiftState [15:57:17]wFMCommunicate request_size=4 [15:57:17]MH_SAM_APDU [15:57:17]CAPDU: 80 13 01 00 [15:57:17]Write to MH i2c: E2 08 00 FA 8B 80 13 01 00 00 00 00 00 02 [15:57:17]Write i2c OK [15:57:17]MH_I2C_Read... [15:57:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:57:17]Read from MH i2c: E2 [15:57:17]MH_I2C_Read... [15:57:17]Read from MH i2c: E2 0E 00 [15:57:17]MH_I2C_Read... [15:57:17]Read from MH i2c: E2 0E 00 FA 8B 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 13 [15:57:17]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [15:57:17]wFMCommunicate OK [15:57:17]SAM_PROTO_GetShiftState done [15:57:17]FM_GetShiftState done [15:57:17]req_shift_opened done [15:57:17]requested_item shift.open_date is exist - process it [15:57:17]req_shift_open_date [15:57:17]req_shift_open_date done [15:57:17]produce_requested_data done [15:57:17]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28720,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [15:57:17]process_action_free close_receipt [15:57:17]json_value_free [15:57:17]json_value_free done [15:57:17]process_json_proto returns [15:57:17]Send response to host [15:57:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28720,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [15:57:17]free response buf [15:57:17]execute_script done [15:57:17]execute_script returns [15:57:17]free content buf [15:57:17]Sock 5.Close socket [15:57:17]Sock 5.Thread stoped [15:57:20]OFD Sender: No OFD packet to send [15:57:25]OFD Sender: No OFD packet to send [15:57:30]OFD Sender: No OFD packet to send [15:57:35]OFD Sender: No OFD packet to send [15:57:40]OFD Sender: No OFD packet to send [15:57:45]OFD Sender: No OFD packet to send [15:57:50]OFD Sender: No OFD packet to send [15:57:52]accept exits with 6 [15:57:52]New connection [15:57:52]New thread 3066498404 created [15:57:52]Thread 3066641764 joined [15:57:52]Waiting for new connection... [15:57:52] Sock 6.Parse request [15:57:52]Sock 6.Check first char [15:57:52]Sock 6.First char is OK [15:57:52]request: POST /json_proto HTTP/1.0 [15:57:52]Method: POST [15:57:52]URL: /json_proto [15:57:52]Method is POST - this is cgi request [15:57:52]url: /json_proto [15:57:52]query_string will be loaded in cgi processing [15:57:52]execute_cgi json_proto POST (null) [15:57:52]execute_cgi path=json_proto method=POST [15:57:52]POST find Content-Length [15:57:52]Host: 172.17.33.3:8080 [15:57:52]Content-Length: 640 [15:57:52]Content-Type: application/json [15:57:52] [15:57:52]POST finish read [15:57:52]Found Content-Length = 640 [15:57:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347058", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 10.000, "sum" : 643.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 643.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:57:52]execute_script... [15:57:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347058", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 10.000, "sum" : 643.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 643.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:57:52]POST & json_proto [15:57:52]process_json_proto [15:57:52]json parsed OK: [15:57:52]protocol is kg_v1.0 [15:57:52]action value=close_receipt [15:57:52]process_action close_receipt [15:57:52]cmd_close_receipt [15:57:52]MH_GetDate [15:57:52]Write to MH i2c: F0 00 00 FB 8B 75 [15:57:52]Write i2c OK [15:57:52]MH_I2C_Read... [15:57:52]Read from MH i2c: F0 [15:57:52]MH_I2C_Read... [15:57:52]Read from MH i2c: F0 09 00 [15:57:52]MH_I2C_Read... [15:57:52]Read from MH i2c: F0 09 00 FB 8B 00 09 5A 19 66 23 5B 8F 65 D2 [15:57:52]GetLastDocTimeStamp 1712937441 [15:57:52]current date 1712937481 [15:57:52]FM_GetShiftState [15:57:52]SAM_PROTO_GetShiftState [15:57:52]wFMCommunicate request_size=4 [15:57:52]MH_SAM_APDU [15:57:52]CAPDU: 80 13 01 00 [15:57:52]Write to MH i2c: E2 08 00 FC 8B 80 13 01 00 00 00 00 00 04 [15:57:52]Write i2c OK [15:57:52]MH_I2C_Read... [15:57:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:57:52]Read from MH i2c: E2 [15:57:52]MH_I2C_Read... [15:57:52]Read from MH i2c: E2 0E 00 [15:57:52]MH_I2C_Read... [15:57:52]Read from MH i2c: E2 0E 00 FC 8B 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 15 [15:57:52]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [15:57:52]wFMCommunicate OK [15:57:52]SAM_PROTO_GetShiftState done [15:57:52]FM_GetShiftState done [15:57:52]opened in 1712881416 [15:57:52]opened+sec_in_day 1712967816 [15:57:52]quantity*price = 64300 [15:57:52]sum+1 = 64301 [15:57:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 643.00 НСП 1% : 5.69 НДС 12% : 68.28 Наличными: 643.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 170 12.04.2024 15:58 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28721 ФПД: 121758466963828 1/tax-web-control/client/api/v1/ticket?date=20240412T155801&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28721&fm=121758466963828&tin=02508201610067®Number=0000138879044617&sum=64300 [15:57:53]StoreToDocumentArchive [15:57:53]shift 113 fd 28721 [15:57:53]save to /storage/0113/doc_00028721 [15:57:53]save last doc name /storage/0113/doc_00028721 to /storage/kkm_last_doc_name [15:57:53]save OK [15:57:53]Clear old archive folders... [15:57:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:57:53]tlvbuf is 01C5A5B0 [15:57:53]SAM_PROTO_ClearQueue [15:57:53]wFMCommunicate request_size=4 [15:57:53]MH_SAM_APDU [15:57:53]CAPDU: 80 09 00 00 [15:57:53]Write to MH i2c: E2 08 00 09 8C 80 09 00 00 00 00 00 00 07 [15:57:53]Write i2c OK [15:57:53]MH_I2C_Read... [15:57:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:57:53]Read from MH i2c: E2 [15:57:53]MH_I2C_Read... [15:57:53]Read from MH i2c: E2 03 00 [15:57:53]MH_I2C_Read... [15:57:53]Read from MH i2c: E2 03 00 09 8C 00 90 00 09 [15:57:53]RAPDU: 90 00 [15:57:53]wFMCommunicate OK [15:57:53]SAM_PROTO_ClearQueue done [15:57:53]KKMCreateOFDPacket [15:57:53]OFDProtocolAddRootSTLVToBuf [15:57:53]FM_MakeSignedData [15:57:53]FM_MakeSignedData [15:57:53]SAM_PROTO_SignData [15:57:53]wFMCommunicate request_size=4 [15:57:53]MH_SAM_APDU [15:57:53]CAPDU: 80 0D 01 02 [15:57:53]Write to MH i2c: E2 08 00 0A 8C 80 0D 01 02 00 00 00 00 0F [15:57:53]Write i2c OK [15:57:53]MH_I2C_Read... [15:57:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:57:53]Read from MH i2c: E2 [15:57:53]MH_I2C_Read... [15:57:53]Read from MH i2c: E2 03 00 [15:57:53]MH_I2C_Read... [15:57:53]Read from MH i2c: E2 03 00 0A 8C 00 90 00 0A [15:57:53]RAPDU: 90 00 [15:57:53]wFMCommunicate OK [15:57:53]wFMCommunicate request_size=255 [15:57:53]MH_SAM_APDU [15:57:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 2C FB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C FB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 1A 00 00 00 00 07 04 06 00 2C FB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 09 5A 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 31 70 00 00 35 04 06 00 6E [15:57:53]Write to MH i2c: E2 02 01 0B 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 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 2C FB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C FB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 1A 00 00 00 00 07 04 06 00 2C FB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 09 5A 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 31 70 00 00 35 04 06 00 6E 00 00 26 [15:57:53]Write i2c OK [15:57:53]MH_I2C_Read... [15:57:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:57:53]Read from MH i2c: E2 [15:57:53]MH_I2C_Read... [15:57:53]Read from MH i2c: E2 03 00 [15:57:53]MH_I2C_Read... [15:57:53]Read from MH i2c: E2 03 00 0B 8C 00 90 00 0B [15:57:53]RAPDU: 90 00 [15:57:53]wFMCommunicate OK [15:57:53]wFMCommunicate request_size=10 [15:57:53]MH_SAM_APDU [15:57:53]CAPDU: 80 0D 02 02 05 BD 1A 2B F9 74 [15:57:53]Write to MH i2c: E2 0D 00 0C 8C 80 0D 02 02 05 00 BD 1A 2B F9 74 00 00 8B [15:57:53]Write i2c OK [15:57:53]MH_I2C_Read... [15:57:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:57:53]Read from MH i2c: E2 [15:57:53]MH_I2C_Read... [15:57:53]Read from MH i2c: E2 03 00 [15:57:53]MH_I2C_Read... [15:57:53]Read from MH i2c: E2 03 00 0C 8C 00 90 00 0C [15:57:53]RAPDU: 90 00 [15:57:53]wFMCommunicate OK [15:57:53]wFMCommunicate request_size=4 [15:57:53]MH_SAM_APDU [15:57:53]CAPDU: 80 0D 03 02 [15:57:53]Write to MH i2c: E2 08 00 0D 8C 80 0D 03 02 00 00 00 00 14 [15:57:53]Write i2c OK [15:57:53]MH_I2C_Read... [15:57:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:57:53]Read from MH i2c: E2 [15:57:53]MH_I2C_Read... [15:57:53]Read from MH i2c: E2 0B 00 [15:57:53]MH_I2C_Read... [15:57:53]Read from MH i2c: E2 0B 00 0D 8C 00 F8 2E 49 6C 48 0A F6 E6 90 00 1E [15:57:53]RAPDU: F8 2E 49 6C 48 0A F6 E6 90 00 [15:57:53]wFMCommunicate OK [15:57:53]SAM_PROTO_SignData done [15:57:53]FM_MakeSignedData done [15:57:53]CreateOFDProtocolMessage [15:57:53]wFMCommunicate request_size=4 [15:57:53]MH_SAM_APDU [15:57:53]CAPDU: 80 11 00 00 [15:57:53]Write to MH i2c: E2 08 00 0E 8C 80 11 00 00 00 00 00 00 14 [15:57:53]Write i2c OK [15:57:53]MH_I2C_Read... [15:57:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:57:53]Read from MH i2c: E2 [15:57:53]MH_I2C_Read... [15:57:53]Read from MH i2c: E2 17 00 [15:57:53]MH_I2C_Read... [15:57:53]Read from MH i2c: E2 17 00 0E 8C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 63 [15:57:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:57:53]wFMCommunicate OK [15:57:53]CreateOFDProtocolMessage done [15:57:53]OFDSenderStorePacket 28721 [15:57:53]StoreOFDPacket docnum=28721 [15:57:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 00 8D 07 01 35 78 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 2C FB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C FB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 1A 00 00 00 00 07 04 06 00 2C FB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 09 5A 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 31 70 00 00 35 04 06 00 6E BD 1A 2B F9 74 F8 2E 49 6C 48 0A F6 E6 [15:57:53]CheckFolder [15:57:53]dirname=/storage/ofd_packets [15:57:53]CheckFolder done [15:57:53]ProducePacketName [15:57:53]name=ofd_packets/00028721 [15:57:53]NVStorageSaveData ofd_packets/00028721 [15:57:53]File name is /storage/ofd_packets/00028721 [15:57:53]Write 301 bytes [15:57:53]NVStorageSaveData done [15:57:53]OFDSenderStorePacket done [15:57:53]KKMCreateOFDPacket done [15:57:53]NVStorageSaveData kkm_last_timestamp [15:57:53]File name is /storage/kkm_last_timestamp [15:57:53]Write 4 bytes [15:57:53]NVStorageSaveData done [15:57:53]ExternCall_PrintAddStr [15:57:53]wPrintStart [15:57:53]Write to MH i2c: 01 00 00 0F 8C 9B [15:57:53]Write i2c OK [15:57:53]MH_I2C_Read... [15:57:53]Read from MH i2c: 01 [15:57:53]MH_I2C_Read... [15:57:53]Read from MH i2c: 01 07 00 [15:57:53]MH_I2C_Read... [15:57:53]Read from MH i2c: 01 07 00 0F 8C 00 00 00 00 00 FF 0F B0 [15:57:53]RasterBufferAndPrint [15:57:53]line Счет N : (1)347058 [15:57:53]line ИНН: 02508201610067 [15:57:53]line Контрольно-Кассовый Чек [15:57:53]line ПРОДАЖА [15:57:53]line ТРК (МРК, ГНК) : 42 [15:57:53]line Товар: 2710124130 [15:57:53]line Аи-92-К-5 [15:57:53]line 10.000 * 64.30 [15:57:53]line = 643.00 [15:57:53]line НДС 12% НСП 1% [15:57:53]line > о реализуемом товаре [15:57:53]line ИТОГО: 643.00 [15:57:53]line НСП 1% : 5.69 [15:57:53]line НДС 12% : 68.28 [15:57:53]line Наличными: 643.00 [15:57:53]line Безнал.: 0.00 [15:57:53]line Место: АЗС № 108 "Партнер Нефть" [15:57:53]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [15:57:53]line СНО: Общий режим [15:57:53]line Чек 170 12.04.2024 15:58 [15:57:53]line Смена: 113 ФФД: 1.0 [15:57:53]line ЗНМ: 0300000027 [15:57:53]line РНМ: 0000138879044617 [15:57:53]line Версия ККМ: 001 [15:57:54]line ФМ: 0000000000963154 [15:57:54]line ФД: 28721 [15:57:54]line ФПД: 121758466963828 [15:57:54]line 1/tax-web-control/client/api/v1/ticket?date=20240412T155801&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28721&fm=121758466963828&tin=02508201610067®Number=0000138879044617&sum=64300 [15:57:54]OFD Sender: Processing packet 28721 [packets to send 8, broken 7] [15:57:54]ProducePacketName [15:57:54]name=ofd_packets/00028721 [15:57:54]OFD Sender: To server: pG, [15:57:54]CommunicateWithHost lk.salyk.kg:30040 [15:57:54]ConnectInit lk.salyk.kg [15:57:54]written 0, free lines is 4095 [15:57:54]Connected sock=7 [15:57:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 00 8D 07 01 35 78 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 2C FB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C FB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 1A 00 00 00 00 07 04 06 00 2C FB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 09 5A 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 31 70 00 00 35 04 06 00 6E BD 1A 2B F9 74 F8 2E 49 6C 48 0A F6 E6 [15:57:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 0D A1 47 00 B0 84 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 31 70 00 00 F4 03 04 00 B2 04 19 66 B6 04 01 00 00 90 5A 74 21 DD 85 AC 00 [15:57:54]CommunicateWithHost err = 0 [15:57:54]CheckOFDResponse [15:57:54]1017 (14) - 77093643461234 [15:57:54]1041 (16) - 0000000000963154 [15:57:54]1040 (4) - 28721 [15:57:54]1012 (4) - 12.04.2024 09:53 [15:57:54]1206 (1) - 0 [15:57:54]OFD Sender: Remove packet 28721 [15:57:54]ProducePacketName [15:57:54]name=ofd_packets/00028721 [15:57:54]NVStorageDeleteData [15:57:54]Write to MH i2c: 01 00 00 36 8C C2 [15:57:54]Write i2c OK [15:57:54]MH_I2C_Read... [15:57:54]Read from MH i2c: 01 [15:57:54]MH_I2C_Read... [15:57:54]Read from MH i2c: 01 07 00 [15:57:54]MH_I2C_Read... [15:57:54]Read from MH i2c: 01 07 00 36 8C 00 00 00 00 00 FE 0C D3 [15:57:54]RasterBufferAndPrint [15:57:54]line [15:57:54]line [15:57:54]line [15:57:54]line [15:57:54]line [15:57:54]written 0, free lines is 3330 [15:57:54]MH_Cut [15:57:54]Write to MH i2c: D1 01 00 3D 8C 01 9B [15:57:54]Write i2c OK [15:57:54]MH_I2C_Read... [15:57:54]Read from MH i2c: D1 [15:57:54]MH_I2C_Read... [15:57:54]Read from MH i2c: D1 01 00 [15:57:54]MH_I2C_Read... [15:57:54]Read from MH i2c: D1 01 00 3D 8C 00 9A [15:57:54]Write to MH i2c: 01 00 00 3E 8C CA [15:57:54]Write i2c OK [15:57:54]MH_I2C_Read... [15:57:55]OFD Sender: No OFD packet to send [15:57:55]*** Cut start [15:57:55]*** Partial cut [15:57:55]*** CUTSNS_PIN = 1 [15:57:55]*** CUTSNS_PIN = 0 [15:57:55]*** Brake cut motor [15:57:56]Read from MH i2c: 01 [15:57:56]MH_I2C_Read... [15:57:56]*** Stop cut motor [15:57:56]*** Cut end [15:57:56]Read from MH i2c: 01 07 00 [15:57:56]MH_I2C_Read... [15:57:56]Read from MH i2c: 01 07 00 3E 8C 00 00 00 00 00 FF 0F DF [15:57:56]process_action close_receipt done [15:57:56]requested_data is exist [15:57:56]produce_requested_data [15:57:56]requested_item fm.sn is exist - process it [15:57:56]wFMCommunicate request_size=4 [15:57:56]MH_SAM_APDU [15:57:56]CAPDU: 80 11 00 00 [15:57:56]Write to MH i2c: E2 08 00 3F 8C 80 11 00 00 00 00 00 00 45 [15:57:56]Write i2c OK [15:57:56]MH_I2C_Read... [15:57:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:57:56]Read from MH i2c: E2 [15:57:56]MH_I2C_Read... [15:57:56]Read from MH i2c: E2 17 00 [15:57:56]MH_I2C_Read... [15:57:56]Read from MH i2c: E2 17 00 3F 8C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 94 [15:57:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:57:56]wFMCommunicate OK [15:57:56]requested_item fd.num is exist - process it [15:57:56]SAM_PROTO_GetFieldsCounters [15:57:56]wFMCommunicate request_size=4 [15:57:56]MH_SAM_APDU [15:57:56]CAPDU: 80 13 00 00 [15:57:56]Write to MH i2c: E2 08 00 40 8C 80 13 00 00 00 00 00 00 48 [15:57:56]Write i2c OK [15:57:56]MH_I2C_Read... [15:57:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:57:56]Read from MH i2c: E2 [15:57:56]MH_I2C_Read... [15:57:56]Read from MH i2c: E2 62 00 [15:57:56]MH_I2C_Read... [15:57:56]Read from MH i2c: E2 62 00 40 8C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 31 70 00 00 0E 04 04 00 71 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 96 [15:57:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 31 70 00 00 0E 04 04 00 71 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:57:56]wFMCommunicate OK [15:57:56]SAM_PROTO_GetFieldsCounters done [15:57:56]requested_item shift.num is exist - process it [15:57:56]requested_item shift.opened is exist - process it [15:57:56]req_shift_opened [15:57:56]FM_GetShiftState [15:57:56]SAM_PROTO_GetShiftState [15:57:56]wFMCommunicate request_size=4 [15:57:56]MH_SAM_APDU [15:57:56]CAPDU: 80 13 01 00 [15:57:56]Write to MH i2c: E2 08 00 41 8C 80 13 01 00 00 00 00 00 4A [15:57:56]Write i2c OK [15:57:56]MH_I2C_Read... [15:57:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:57:56]Read from MH i2c: E2 [15:57:56]MH_I2C_Read... [15:57:56]Read from MH i2c: E2 0E 00 [15:57:56]MH_I2C_Read... [15:57:56]Read from MH i2c: E2 0E 00 41 8C 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 5B [15:57:56]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [15:57:56]wFMCommunicate OK [15:57:56]SAM_PROTO_GetShiftState done [15:57:56]FM_GetShiftState done [15:57:56]req_shift_opened done [15:57:56]requested_item shift.open_date is exist - process it [15:57:56]req_shift_open_date [15:57:56]req_shift_open_date done [15:57:56]produce_requested_data done [15:57:56]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28721,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [15:57:56]process_action_free close_receipt [15:57:56]json_value_free [15:57:56]json_value_free done [15:57:56]process_json_proto returns [15:57:56]Send response to host [15:57:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28721,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [15:57:56]free response buf [15:57:56]execute_script done [15:57:56]execute_script returns [15:57:56]free content buf [15:57:56]Sock 6.Close socket [15:57:56]Sock 6.Thread stoped [15:58:00]OFD Sender: No OFD packet to send [15:58:05]OFD Sender: No OFD packet to send [15:58:10]OFD Sender: No OFD packet to send [15:58:15]OFD Sender: No OFD packet to send [15:58:20]OFD Sender: No OFD packet to send [15:58:25]OFD Sender: No OFD packet to send [15:58:30]OFD Sender: No OFD packet to send [15:58:35]OFD Sender: No OFD packet to send [15:58:40]OFD Sender: No OFD packet to send [15:58:45]OFD Sender: No OFD packet to send [15:58:50]OFD Sender: No OFD packet to send [15:58:55]OFD Sender: No OFD packet to send [15:59:00]OFD Sender: No OFD packet to send [15:59:05]OFD Sender: No OFD packet to send [15:59:10]OFD Sender: No OFD packet to send [15:59:15]OFD Sender: No OFD packet to send [15:59:20]OFD Sender: No OFD packet to send [15:59:25]OFD Sender: No OFD packet to send [15:59:30]OFD Sender: No OFD packet to send [15:59:35]OFD Sender: No OFD packet to send [15:59:40]OFD Sender: No OFD packet to send [15:59:45]OFD Sender: No OFD packet to send [15:59:50]OFD Sender: No OFD packet to send [15:59:55]OFD Sender: No OFD packet to send [16:00:00]OFD Sender: No OFD packet to send [16:00:05]OFD Sender: No OFD packet to send [16:00:10]OFD Sender: No OFD packet to send [16:00:15]OFD Sender: No OFD packet to send [16:00:20]OFD Sender: No OFD packet to send [16:00:25]OFD Sender: No OFD packet to send [16:00:30]OFD Sender: No OFD packet to send [16:00:35]OFD Sender: No OFD packet to send [16:00:40]OFD Sender: No OFD packet to send [16:00:45]OFD Sender: No OFD packet to send [16:00:50]OFD Sender: No OFD packet to send [16:00:55]OFD Sender: No OFD packet to send [16:01:00]OFD Sender: No OFD packet to send [16:01:05]OFD Sender: No OFD packet to send [16:01:10]OFD Sender: No OFD packet to send [16:01:15]OFD Sender: No OFD packet to send [16:01:20]OFD Sender: No OFD packet to send [16:01:25]OFD Sender: No OFD packet to send [16:01:30]OFD Sender: No OFD packet to send [16:01:35]OFD Sender: No OFD packet to send [16:01:40]OFD Sender: No OFD packet to send [16:01:45]OFD Sender: No OFD packet to send [16:01:50]OFD Sender: No OFD packet to send [16:01:55]OFD Sender: No OFD packet to send [16:02:00]OFD Sender: No OFD packet to send [16:02:05]OFD Sender: No OFD packet to send [16:02:10]OFD Sender: No OFD packet to send [16:02:15]OFD Sender: No OFD packet to send [16:02:20]OFD Sender: No OFD packet to send [16:02:25]OFD Sender: No OFD packet to send [16:02:30]OFD Sender: No OFD packet to send [16:02:35]OFD Sender: No OFD packet to send [16:02:40]OFD Sender: No OFD packet to send [16:02:45]OFD Sender: No OFD packet to send [16:02:50]OFD Sender: No OFD packet to send [16:02:55]OFD Sender: No OFD packet to send [16:03:00]OFD Sender: No OFD packet to send [16:03:05]OFD Sender: No OFD packet to send [16:03:10]OFD Sender: No OFD packet to send [16:03:15]OFD Sender: No OFD packet to send [16:03:20]OFD Sender: No OFD packet to send [16:03:25]OFD Sender: No OFD packet to send [16:03:30]OFD Sender: No OFD packet to send [16:03:35]OFD Sender: No OFD packet to send [16:03:40]OFD Sender: No OFD packet to send [16:03:45]OFD Sender: No OFD packet to send [16:03:50]OFD Sender: No OFD packet to send [16:03:55]OFD Sender: No OFD packet to send [16:04:00]OFD Sender: No OFD packet to send [16:04:05]OFD Sender: No OFD packet to send [16:04:10]OFD Sender: No OFD packet to send [16:04:15]OFD Sender: No OFD packet to send [16:04:20]OFD Sender: No OFD packet to send [16:04:25]OFD Sender: No OFD packet to send [16:04:30]OFD Sender: No OFD packet to send [16:04:35]OFD Sender: No OFD packet to send [16:04:40]OFD Sender: No OFD packet to send [16:04:45]OFD Sender: No OFD packet to send [16:04:50]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:55]OFD Sender: No OFD packet to send [16:06:00]OFD Sender: No OFD packet to send [16:06:05]OFD Sender: No OFD packet to send [16:06:10]OFD Sender: No OFD packet to send [16:06:15]OFD Sender: No OFD packet to send [16:06:20]OFD Sender: No OFD packet to send [16:06:24]accept exits with 5 [16:06:24]New connection [16:06:24]New thread 3066641764 created [16:06:24]Thread 3066498404 joined [16:06:24]Waiting for new connection... [16:06:24] Sock 5.Parse request [16:06:24]Sock 5.Check first char [16:06:24]Sock 5.First char is OK [16:06:24]request: POST /json_proto HTTP/1.0 [16:06:24]Method: POST [16:06:24]URL: /json_proto [16:06:24]Method is POST - this is cgi request [16:06:24]url: /json_proto [16:06:24]query_string will be loaded in cgi processing [16:06:24]execute_cgi json_proto POST (null) [16:06:24]execute_cgi path=json_proto method=POST [16:06:24]POST find Content-Length [16:06:24]Host: 172.17.33.3:8080 [16:06:24]Content-Length: 678 [16:06:24]Content-Type: application/json [16:06:24] [16:06:24]POST finish read [16:06:24]Found Content-Length = 678 [16:06:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347059", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 10.890, "sum" : 700.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:06:24]execute_script... [16:06: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)347059", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 10.890, "sum" : 700.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:06:24]POST & json_proto [16:06:24]process_json_proto [16:06:24]json parsed OK: [16:06:24]protocol is kg_v1.0 [16:06:24]action value=close_receipt [16:06:24]process_action close_receipt [16:06:24]cmd_close_receipt [16:06:24]MH_GetDate [16:06:24]Write to MH i2c: F0 00 00 42 8C BD [16:06:24]Write i2c OK [16:06:24]MH_I2C_Read... [16:06:24]Read from MH i2c: F0 [16:06:24]MH_I2C_Read... [16:06:24]Read from MH i2c: F0 09 00 [16:06:24]MH_I2C_Read... [16:06:24]Read from MH i2c: F0 09 00 42 8C 00 09 5C 19 66 23 5B 8F 65 1C [16:06:24]GetLastDocTimeStamp 1712937481 [16:06:24]current date 1712937993 [16:06:24]FM_GetShiftState [16:06:24]SAM_PROTO_GetShiftState [16:06:24]wFMCommunicate request_size=4 [16:06:24]MH_SAM_APDU [16:06:24]CAPDU: 80 13 01 00 [16:06:24]Write to MH i2c: E2 08 00 43 8C 80 13 01 00 00 00 00 00 4C [16:06:24]Write i2c OK [16:06:24]MH_I2C_Read... [16:06:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:06:24]Read from MH i2c: E2 [16:06:24]MH_I2C_Read... [16:06:24]Read from MH i2c: E2 0E 00 [16:06:24]MH_I2C_Read... [16:06:24]Read from MH i2c: E2 0E 00 43 8C 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 5D [16:06:24]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [16:06:24]wFMCommunicate OK [16:06:24]SAM_PROTO_GetShiftState done [16:06:24]FM_GetShiftState done [16:06:24]opened in 1712881416 [16:06:24]opened+sec_in_day 1712967816 [16:06:24]quantity*price = 70022 [16:06:24]sum+1 = 70024 [16:06:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.36 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 171 12.04.2024 16:06 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28722 ФПД: 246303767929554 1/tax-web-control/client/api/v1/ticket?date=20240412T160633&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28722&fm=246303767929554&tin=02508201610067®Number=0000138879044617&sum=70000 [16:06:26]StoreToDocumentArchive [16:06:26]shift 113 fd 28722 [16:06:26]save to /storage/0113/doc_00028722 [16:06:26]save last doc name /storage/0113/doc_00028722 to /storage/kkm_last_doc_name [16:06:26]save OK [16:06:26]Clear old archive folders... [16:06:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:06:26]tlvbuf is 01AF4010 [16:06:26]SAM_PROTO_ClearQueue [16:06:26]wFMCommunicate request_size=4 [16:06:26]MH_SAM_APDU [16:06:26]CAPDU: 80 09 00 00 [16:06:26]Write to MH i2c: E2 08 00 50 8C 80 09 00 00 00 00 00 00 4E [16:06:26]Write i2c OK [16:06:26]MH_I2C_Read... [16:06:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:06:26]Read from MH i2c: E2 [16:06:26]MH_I2C_Read... [16:06:26]Read from MH i2c: E2 03 00 [16:06:26]MH_I2C_Read... [16:06:26]Read from MH i2c: E2 03 00 50 8C 00 90 00 50 [16:06:26]RAPDU: 90 00 [16:06:26]wFMCommunicate OK [16:06:26]SAM_PROTO_ClearQueue done [16:06:26]KKMCreateOFDPacket [16:06:26]OFDProtocolAddRootSTLVToBuf [16:06:26]FM_MakeSignedData [16:06:26]FM_MakeSignedData [16:06:26]SAM_PROTO_SignData [16:06:26]wFMCommunicate request_size=4 [16:06:26]MH_SAM_APDU [16:06:26]CAPDU: 80 0D 01 02 [16:06:26]Write to MH i2c: E2 08 00 51 8C 80 0D 01 02 00 00 00 00 56 [16:06:26]Write i2c OK [16:06:26]MH_I2C_Read... [16:06:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:06:26]Read from MH i2c: E2 [16:06:26]MH_I2C_Read... [16:06:26]Read from MH i2c: E2 03 00 [16:06:26]MH_I2C_Read... [16:06:26]Read from MH i2c: E2 03 00 51 8C 00 90 00 51 [16:06:26]RAPDU: 90 00 [16:06:26]wFMCommunicate OK [16:06:26]wFMCommunicate request_size=255 [16:06:26]MH_SAM_APDU [16:06:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 2A 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 87 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 AB 00 00 00 F4 03 04 00 09 5C 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 32 70 00 00 35 04 06 00 E0 [16:06:26]Write to MH i2c: E2 02 01 52 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 35 FF 03 08 00 03 8A 2A 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 87 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 AB 00 00 00 F4 03 04 00 09 5C 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 32 70 00 00 35 04 06 00 E0 00 00 1E [16:06:26]Write i2c OK [16:06:26]MH_I2C_Read... [16:06:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:06:26]Read from MH i2c: E2 [16:06:26]MH_I2C_Read... [16:06:26]Read from MH i2c: E2 03 00 [16:06:26]MH_I2C_Read... [16:06:26]Read from MH i2c: E2 03 00 52 8C 00 90 00 52 [16:06:26]RAPDU: 90 00 [16:06:26]wFMCommunicate OK [16:06:26]wFMCommunicate request_size=10 [16:06:26]MH_SAM_APDU [16:06:26]CAPDU: 80 0D 02 02 05 03 10 98 22 D2 [16:06:26]Write to MH i2c: E2 0D 00 53 8C 80 0D 02 02 05 00 03 10 98 22 D2 00 00 02 [16:06:26]Write i2c OK [16:06:26]MH_I2C_Read... [16:06:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:06:26]Read from MH i2c: E2 [16:06:26]MH_I2C_Read... [16:06:26]Read from MH i2c: E2 03 00 [16:06:26]MH_I2C_Read... [16:06:26]Read from MH i2c: E2 03 00 53 8C 00 90 00 53 [16:06:26]RAPDU: 90 00 [16:06:26]wFMCommunicate OK [16:06:26]wFMCommunicate request_size=4 [16:06:26]MH_SAM_APDU [16:06:26]CAPDU: 80 0D 03 02 [16:06:26]Write to MH i2c: E2 08 00 54 8C 80 0D 03 02 00 00 00 00 5B [16:06:26]Write i2c OK [16:06:26]MH_I2C_Read... [16:06:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:06:26]Read from MH i2c: E2 [16:06:26]MH_I2C_Read... [16:06:26]Read from MH i2c: E2 0B 00 [16:06:26]MH_I2C_Read... [16:06:26]Read from MH i2c: E2 0B 00 54 8C 00 50 5E 7B E9 AF 2D C5 24 90 00 33 [16:06:26]RAPDU: 50 5E 7B E9 AF 2D C5 24 90 00 [16:06:26]wFMCommunicate OK [16:06:26]SAM_PROTO_SignData done [16:06:26]FM_MakeSignedData done [16:06:26]CreateOFDProtocolMessage [16:06:26]wFMCommunicate request_size=4 [16:06:26]MH_SAM_APDU [16:06:26]CAPDU: 80 11 00 00 [16:06:26]Write to MH i2c: E2 08 00 55 8C 80 11 00 00 00 00 00 00 5B [16:06:26]Write i2c OK [16:06:26]MH_I2C_Read... [16:06:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:06:26]Read from MH i2c: E2 [16:06:26]MH_I2C_Read... [16:06:26]Read from MH i2c: E2 17 00 [16:06:26]MH_I2C_Read... [16:06:26]Read from MH i2c: E2 17 00 55 8C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 AA [16:06:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [16:06:26]wFMCommunicate OK [16:06:26]CreateOFDProtocolMessage done [16:06:26]OFDSenderStorePacket 28722 [16:06:26]StoreOFDPacket docnum=28722 [16:06:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 5F 17 07 01 38 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 35 FF 03 08 00 03 8A 2A 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 87 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 AB 00 00 00 F4 03 04 00 09 5C 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 32 70 00 00 35 04 06 00 E0 03 10 98 22 D2 50 5E 7B E9 AF 2D C5 24 [16:06:26]CheckFolder [16:06:26]dirname=/storage/ofd_packets [16:06:26]CheckFolder done [16:06:26]ProducePacketName [16:06:26]name=ofd_packets/00028722 [16:06:26]NVStorageSaveData ofd_packets/00028722 [16:06:26]File name is /storage/ofd_packets/00028722 [16:06:26]Write 301 bytes [16:06:26]NVStorageSaveData done [16:06:26]OFDSenderStorePacket done [16:06:26]KKMCreateOFDPacket done [16:06:26]NVStorageSaveData kkm_last_timestamp [16:06:26]File name is /storage/kkm_last_timestamp [16:06:26]Write 4 bytes [16:06:26]NVStorageSaveData done [16:06:26]ExternCall_PrintAddStr [16:06:26]wPrintStart [16:06:26]Write to MH i2c: 01 00 00 56 8C E2 [16:06:26]Write i2c OK [16:06:26]MH_I2C_Read... [16:06:26]Read from MH i2c: 01 [16:06:26]MH_I2C_Read... [16:06:26]Read from MH i2c: 01 07 00 [16:06:26]MH_I2C_Read... [16:06:26]Read from MH i2c: 01 07 00 56 8C 00 00 00 00 00 FF 0F F7 [16:06:26]RasterBufferAndPrint [16:06:26]line Счет N : (1)347059 [16:06:26]line ИНН: 02508201610067 [16:06:26]line Контрольно-Кассовый Чек [16:06:26]line ПРОДАЖА [16:06:26]line ТРК (МРК, ГНК) : 42 [16:06:26]line Товар: 2710124130 [16:06:26]line Аи-92-К-5 [16:06:26]line 10.890 * 64.30 [16:06:26]line = 700.23 [16:06:26]line НДС 12% НСП 1% [16:06:26]line > о реализуемом товаре [16:06:26]line ОКРУГЛЕНИЕ: -0.23 [16:06:26]line ИТОГО: 700.00 [16:06:26]line Внесено: 700.00 [16:06:26]line СДАЧА: 0.00 [16:06:26]line НСП 1% : 6.20 [16:06:26]line НДС 12% : 74.36 [16:06:26]line Наличными: 700.00 [16:06:26]line Безнал.: 0.00 [16:06:26]line Место: АЗС № 108 "Партнер Нефть" [16:06:26]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [16:06:26]line СНО: Общий режим [16:06:26]line Чек 171 12.04.2024 16:06 [16:06:26]line Смена: 113 ФФД: 1.0 [16:06:26]line ЗНМ: 0300000027 [16:06:26]line РНМ: 0000138879044617 [16:06:26]line Версия ККМ: 001 [16:06:26]line ФМ: 0000000000963154 [16:06:26]line ФД: 28722 [16:06:26]line ФПД: 246303767929554 [16:06:26]line 1/tax-web-control/client/api/v1/ticket?date=20240412T160633&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28722&fm=246303767929554&tin=02508201610067®Number=0000138879044617&sum=70000 [16:06:26]OFD Sender: Processing packet 28722 [packets to send 8, broken 7] [16:06:26]ProducePacketName [16:06:26]name=ofd_packets/00028722 [16:06:26]OFD Sender: To server: pG, [16:06:26]CommunicateWithHost lk.salyk.kg:30040 [16:06:26]ConnectInit lk.salyk.kg [16:06:26]written 0, free lines is 4095 [16:06:26]Connected sock=7 [16:06:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 5F 17 07 01 38 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 35 FF 03 08 00 03 8A 2A 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 87 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 AB 00 00 00 F4 03 04 00 09 5C 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 32 70 00 00 35 04 06 00 E0 03 10 98 22 D2 50 5E 7B E9 AF 2D C5 24 [16:06:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 D1 14 47 00 98 2B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 32 70 00 00 F4 03 04 00 B3 06 19 66 B6 04 01 00 00 FD 3C EA A6 04 54 5C 4A [16:06:27]CommunicateWithHost err = 0 [16:06:27]CheckOFDResponse [16:06:27]1017 (14) - 77093643461234 [16:06:27]1041 (16) - 0000000000963154 [16:06:27]1040 (4) - 28722 [16:06:27]1012 (4) - 12.04.2024 10:02 [16:06:27]1206 (1) - 0 [16:06:27]OFD Sender: Remove packet 28722 [16:06:27]ProducePacketName [16:06:27]name=ofd_packets/00028722 [16:06:27]NVStorageDeleteData [16:06:27]Write to MH i2c: 01 00 00 80 8C 0C [16:06:27]Write i2c OK [16:06:27]MH_I2C_Read... [16:06:27]Read from MH i2c: 01 [16:06:27]MH_I2C_Read... [16:06:27]Read from MH i2c: 01 07 00 [16:06:27]MH_I2C_Read... [16:06:27]Read from MH i2c: 01 07 00 80 8C 00 00 00 00 00 C2 0C E1 [16:06:27]RasterBufferAndPrint [16:06:27]line [16:06:27]line [16:06:27]line [16:06:27]line [16:06:27]line [16:06:27]written 0, free lines is 3272 [16:06:27]MH_Cut [16:06:27]Write to MH i2c: D1 01 00 87 8C 01 E5 [16:06:27]Write i2c OK [16:06:27]MH_I2C_Read... [16:06:27]Read from MH i2c: D1 [16:06:27]MH_I2C_Read... [16:06:27]Read from MH i2c: D1 01 00 [16:06:27]MH_I2C_Read... [16:06:27]Read from MH i2c: D1 01 00 87 8C 00 E4 [16:06:27]Write to MH i2c: 01 00 00 88 8C 14 [16:06:27]Write i2c OK [16:06:27]MH_I2C_Read... [16:06:27]OFD Sender: No OFD packet to send [16:06:28]*** Cut start [16:06:28]*** Partial cut [16:06:28]*** CUTSNS_PIN = 1 [16:06:28]*** CUTSNS_PIN = 0 [16:06:28]*** Brake cut motor [16:06:28]Read from MH i2c: 01 [16:06:28]MH_I2C_Read... [16:06:28]*** Stop cut motor [16:06:28]*** Cut end [16:06:28]Read from MH i2c: 01 07 00 [16:06:28]MH_I2C_Read... [16:06:28]Read from MH i2c: 01 07 00 88 8C 00 00 00 00 00 FF 0F 29 [16:06:28]process_action close_receipt done [16:06:28]requested_data is exist [16:06:28]produce_requested_data [16:06:28]requested_item fm.sn is exist - process it [16:06:28]wFMCommunicate request_size=4 [16:06:28]MH_SAM_APDU [16:06:28]CAPDU: 80 11 00 00 [16:06:28]Write to MH i2c: E2 08 00 89 8C 80 11 00 00 00 00 00 00 8F [16:06:28]Write i2c OK [16:06:28]MH_I2C_Read... [16:06:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:06:28]Read from MH i2c: E2 [16:06:28]MH_I2C_Read... [16:06:28]Read from MH i2c: E2 17 00 [16:06:28]MH_I2C_Read... [16:06:28]Read from MH i2c: E2 17 00 89 8C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 DE [16:06:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [16:06:28]wFMCommunicate OK [16:06:28]requested_item fd.num is exist - process it [16:06:28]SAM_PROTO_GetFieldsCounters [16:06:28]wFMCommunicate request_size=4 [16:06:28]MH_SAM_APDU [16:06:28]CAPDU: 80 13 00 00 [16:06:28]Write to MH i2c: E2 08 00 8A 8C 80 13 00 00 00 00 00 00 92 [16:06:28]Write i2c OK [16:06:28]MH_I2C_Read... [16:06:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:06:28]Read from MH i2c: E2 [16:06:28]MH_I2C_Read... [16:06:28]Read from MH i2c: E2 62 00 [16:06:28]MH_I2C_Read... [16:06:28]Read from MH i2c: E2 62 00 8A 8C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 32 70 00 00 0E 04 04 00 71 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 E4 [16:06:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 32 70 00 00 0E 04 04 00 71 00 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:06:28]wFMCommunicate OK [16:06:28]SAM_PROTO_GetFieldsCounters done [16:06:28]requested_item shift.num is exist - process it [16:06:28]requested_item shift.opened is exist - process it [16:06:28]req_shift_opened [16:06:28]FM_GetShiftState [16:06:28]SAM_PROTO_GetShiftState [16:06:28]wFMCommunicate request_size=4 [16:06:28]MH_SAM_APDU [16:06:28]CAPDU: 80 13 01 00 [16:06:28]Write to MH i2c: E2 08 00 8B 8C 80 13 01 00 00 00 00 00 94 [16:06:28]Write i2c OK [16:06:28]MH_I2C_Read... [16:06:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:06:28]Read from MH i2c: E2 [16:06:29]MH_I2C_Read... [16:06:29]Read from MH i2c: E2 0E 00 [16:06:29]MH_I2C_Read... [16:06:29]Read from MH i2c: E2 0E 00 8B 8C 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 A5 [16:06:29]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [16:06:29]wFMCommunicate OK [16:06:29]SAM_PROTO_GetShiftState done [16:06:29]FM_GetShiftState done [16:06:29]req_shift_opened done [16:06:29]requested_item shift.open_date is exist - process it [16:06:29]req_shift_open_date [16:06:29]req_shift_open_date done [16:06:29]produce_requested_data done [16:06:29]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28722,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [16:06:29]process_action_free close_receipt [16:06:29]json_value_free [16:06:29]json_value_free done [16:06:29]process_json_proto returns [16:06:29]Send response to host [16:06:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28722,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [16:06:29]free response buf [16:06:29]execute_script done [16:06:29]execute_script returns [16:06:29]free content buf [16:06:29]Sock 5.Close socket [16:06:29]Sock 5.Thread stoped [16:06:32]OFD Sender: No OFD packet to send [16:06:37]OFD Sender: No OFD packet to send [16:06:42]OFD Sender: No OFD packet to send [16:06:47]OFD Sender: No OFD packet to send [16:06:52]OFD Sender: No OFD packet to send [16:06:57]OFD Sender: No OFD packet to send [16:07:02]OFD Sender: No OFD packet to send [16:07:07]OFD Sender: No OFD packet to send [16:07:12]OFD Sender: No OFD packet to send [16:07:17]OFD Sender: No OFD packet to send [16:07:22]OFD Sender: No OFD packet to send [16:07:27]OFD Sender: No OFD packet to send [16:07:32]OFD Sender: No OFD packet to send [16:07:37]OFD Sender: No OFD packet to send [16:07:42]OFD Sender: No OFD packet to send [16:07:47]OFD Sender: No OFD packet to send [16:07:52]OFD Sender: No OFD packet to send [16:07:57]OFD Sender: No OFD packet to send [16:07:58]accept exits with 6 [16:07:58]New connection [16:07:58]New thread 3066498404 created [16:07:58]Thread 3066641764 joined [16:07:58]Waiting for new connection... [16:07:58] Sock 6.Parse request [16:07:58]Sock 6.Check first char [16:07:58]Sock 6.First char is OK [16:07:58]request: POST /json_proto HTTP/1.0 [16:07:58]Method: POST [16:07:58]URL: /json_proto [16:07:58]Method is POST - this is cgi request [16:07:58]url: /json_proto [16:07:58]query_string will be loaded in cgi processing [16:07:58]execute_cgi json_proto POST (null) [16:07:58]execute_cgi path=json_proto method=POST [16:07:58]POST find Content-Length [16:07:58]Host: 172.17.33.3:8080 [16:07:58]Content-Length: 836 [16:07:58]Content-Type: application/json [16:07:58] [16:07:58]POST finish read [16:07:58]Found Content-Length = 836 [16:07:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347060", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 15.320, "sum" : 1000.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" : 1000.40 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:07:58]execute_script... [16:07: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)347060", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 15.320, "sum" : 1000.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" : 1000.40 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:07:58]POST & json_proto [16:07:58]process_json_proto [16:07:58]json parsed OK: [16:07:58]protocol is kg_v1.0 [16:07:58]action value=close_receipt [16:07:58]process_action close_receipt [16:07:58]cmd_close_receipt [16:07:58]MH_GetDate [16:07:58]Write to MH i2c: F0 00 00 8C 8C 07 [16:07:58]Write i2c OK [16:07:58]MH_I2C_Read... [16:07:58]Read from MH i2c: F0 [16:07:58]MH_I2C_Read... [16:07:58]Read from MH i2c: F0 09 00 [16:07:58]MH_I2C_Read... [16:07:58]Read from MH i2c: F0 09 00 8C 8C 00 67 5C 19 66 23 5B 8F 65 C4 [16:07:58]GetLastDocTimeStamp 1712937993 [16:07:58]current date 1712938087 [16:07:58]FM_GetShiftState [16:07:58]SAM_PROTO_GetShiftState [16:07:58]wFMCommunicate request_size=4 [16:07:58]MH_SAM_APDU [16:07:58]CAPDU: 80 13 01 00 [16:07:58]Write to MH i2c: E2 08 00 8D 8C 80 13 01 00 00 00 00 00 96 [16:07:58]Write i2c OK [16:07:58]MH_I2C_Read... [16:07:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:07:58]Read from MH i2c: E2 [16:07:58]MH_I2C_Read... [16:07:58]Read from MH i2c: E2 0E 00 [16:07:58]MH_I2C_Read... [16:07:58]Read from MH i2c: E2 0E 00 8D 8C 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 A7 [16:07:58]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [16:07:58]wFMCommunicate OK [16:07:58]SAM_PROTO_GetShiftState done [16:07:58]FM_GetShiftState done [16:07:58]opened in 1712881416 [16:07:58]opened+sec_in_day 1712967816 [16:07:58]quantity*price = 100039 [16:07:58]sum+1 = 100041 [16:07:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.40 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 0.00 Безнал.: 1000.40 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 172 12.04.2024 16:08 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 28723 ФПД: 114798732025935 1/tax-web-control/client/api/v1/ticket?date=20240412T160807&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28723&fm=114798732025935&tin=02508201610067®Number=0000138879044617&sum=100040 [16:07:59]StoreToDocumentArchive [16:07:59]shift 113 fd 28723 [16:07:59]save to /storage/0113/doc_00028723 [16:07:59]save last doc name /storage/0113/doc_00028723 to /storage/kkm_last_doc_name [16:07:59]save OK [16:07:59]Clear old archive folders... [16:07:59]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:07:59]tlvbuf is 01AD7990 [16:07:59]SAM_PROTO_ClearQueue [16:07:59]wFMCommunicate request_size=4 [16:07:59]MH_SAM_APDU [16:07:59]CAPDU: 80 09 00 00 [16:07:59]Write to MH i2c: E2 08 00 9A 8C 80 09 00 00 00 00 00 00 98 [16:07:59]Write i2c OK [16:07:59]MH_I2C_Read... [16:07:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:07:59]Read from MH i2c: E2 [16:07:59]MH_I2C_Read... [16:07:59]Read from MH i2c: E2 03 00 [16:07:59]MH_I2C_Read... [16:07:59]Read from MH i2c: E2 03 00 9A 8C 00 90 00 9A [16:07:59]RAPDU: 90 00 [16:07:59]wFMCommunicate OK [16:07:59]SAM_PROTO_ClearQueue done [16:07:59]KKMCreateOFDPacket [16:07:59]OFDProtocolAddRootSTLVToBuf [16:07:59]FM_MakeSignedData [16:07:59]FM_MakeSignedData [16:07:59]SAM_PROTO_SignData [16:07:59]wFMCommunicate request_size=4 [16:07:59]MH_SAM_APDU [16:07:59]CAPDU: 80 0D 01 02 [16:07:59]Write to MH i2c: E2 08 00 9B 8C 80 0D 01 02 00 00 00 00 A0 [16:07:59]Write i2c OK [16:07:59]MH_I2C_Read... [16:07:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:07:59]Read from MH i2c: E2 [16:07:59]MH_I2C_Read... [16:07:59]Read from MH i2c: E2 03 00 [16:07:59]MH_I2C_Read... [16:07:59]Read from MH i2c: E2 03 00 9B 8C 00 90 00 9B [16:07:59]RAPDU: 90 00 [16:07:59]wFMCommunicate OK [16:07:59]wFMCommunicate request_size=255 [16:07:59]MH_SAM_APDU [16:07:59]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 3B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 67 5C 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 33 70 00 00 35 04 06 00 [16:07:59]Write to MH i2c: E2 02 01 9C 8C 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 3B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 67 5C 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 33 70 00 00 35 04 06 00 00 00 2F [16:07:59]Write i2c OK [16:07:59]MH_I2C_Read... [16:08:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:08:00]Read from MH i2c: E2 [16:08:00]MH_I2C_Read... [16:08:00]Read from MH i2c: E2 03 00 [16:08:00]MH_I2C_Read... [16:08:00]Read from MH i2c: E2 03 00 9C 8C 00 90 00 9C [16:08:00]RAPDU: 90 00 [16:08:00]wFMCommunicate OK [16:08:00]wFMCommunicate request_size=11 [16:08:00]MH_SAM_APDU [16:08:00]CAPDU: 80 0D 02 02 06 68 68 A9 A4 A0 4F [16:08:00]Write to MH i2c: E2 0E 00 9D 8C 80 0D 02 02 06 00 68 68 A9 A4 A0 4F 00 00 BB [16:08:00]Write i2c OK [16:08:00]MH_I2C_Read... [16:08:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:08:00]Read from MH i2c: E2 [16:08:00]MH_I2C_Read... [16:08:00]Read from MH i2c: E2 03 00 [16:08:00]MH_I2C_Read... [16:08:00]Read from MH i2c: E2 03 00 9D 8C 00 90 00 9D [16:08:00]RAPDU: 90 00 [16:08:00]wFMCommunicate OK [16:08:00]wFMCommunicate request_size=4 [16:08:00]MH_SAM_APDU [16:08:00]CAPDU: 80 0D 03 02 [16:08:00]Write to MH i2c: E2 08 00 9E 8C 80 0D 03 02 00 00 00 00 A5 [16:08:00]Write i2c OK [16:08:00]MH_I2C_Read... [16:08:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:08:00]Read from MH i2c: E2 [16:08:00]MH_I2C_Read... [16:08:00]Read from MH i2c: E2 0B 00 [16:08:00]MH_I2C_Read... [16:08:00]Read from MH i2c: E2 0B 00 9E 8C 00 19 AA 1C A4 BF B7 9F 5C 90 00 9A [16:08:00]RAPDU: 19 AA 1C A4 BF B7 9F 5C 90 00 [16:08:00]wFMCommunicate OK [16:08:00]SAM_PROTO_SignData done [16:08:00]FM_MakeSignedData done [16:08:00]CreateOFDProtocolMessage [16:08:00]wFMCommunicate request_size=4 [16:08:00]MH_SAM_APDU [16:08:00]CAPDU: 80 11 00 00 [16:08:00]Write to MH i2c: E2 08 00 9F 8C 80 11 00 00 00 00 00 00 A5 [16:08:00]Write i2c OK [16:08:00]MH_I2C_Read... [16:08:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:08:00]Read from MH i2c: E2 [16:08:00]MH_I2C_Read... [16:08:00]Read from MH i2c: E2 17 00 [16:08:00]MH_I2C_Read... [16:08:00]Read from MH i2c: E2 17 00 9F 8C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 F4 [16:08:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [16:08:00]wFMCommunicate OK [16:08:00]CreateOFDProtocolMessage done [16:08:00]OFDSenderStorePacket 28723 [16:08:00]StoreOFDPacket docnum=28723 [16:08:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 4B AD 08 01 14 6B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 3B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 67 5C 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 33 70 00 00 35 04 06 00 68 68 A9 A4 A0 4F 19 AA 1C A4 BF B7 9F 5C [16:08:00]CheckFolder [16:08:00]dirname=/storage/ofd_packets [16:08:00]CheckFolder done [16:08:00]ProducePacketName [16:08:00]name=ofd_packets/00028723 [16:08:00]NVStorageSaveData ofd_packets/00028723 [16:08:00]File name is /storage/ofd_packets/00028723 [16:08:00]Write 302 bytes [16:08:00]NVStorageSaveData done [16:08:00]OFDSenderStorePacket done [16:08:00]KKMCreateOFDPacket done [16:08:00]NVStorageSaveData kkm_last_timestamp [16:08:00]File name is /storage/kkm_last_timestamp [16:08:00]Write 4 bytes [16:08:00]NVStorageSaveData done [16:08:00]ExternCall_PrintAddStr [16:08:00]wPrintStart [16:08:00]Write to MH i2c: 01 00 00 A0 8C 2C [16:08:00]Write i2c OK [16:08:00]MH_I2C_Read... [16:08:00]Read from MH i2c: 01 [16:08:00]MH_I2C_Read... [16:08:00]Read from MH i2c: 01 07 00 [16:08:00]MH_I2C_Read... [16:08:00]Read from MH i2c: 01 07 00 A0 8C 00 00 00 00 00 FF 0F 41 [16:08:00]RasterBufferAndPrint [16:08:00]line Счет N : (1)347060 [16:08:00]line ИНН: 02508201610067 [16:08:00]line Контрольно-Кассовый Чек [16:08:00]line ПРОДАЖА [16:08:00]line ТРК (МРК, ГНК) : 22 [16:08:00]line Товар: 2710124130 [16:08:00]line SUPER-92-К-5 [16:08:00]line 15.320 * 65.30 [16:08:00]line = 1000.40 [16:08:00]line НДС 12% НСП 1% [16:08:00]line > о реализуемом товаре [16:08:00]line ИТОГО: 1000.40 [16:08:00]line НСП 1% : 8.85 [16:08:00]line НДС 12% : 106.24 [16:08:00]line Наличными: 0.00 [16:08:00]line Безнал.: 1000.40 [16:08:00]line Место: АЗС № 108 "Партнер Нефть" [16:08:00]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [16:08:00]line СНО: Общий режим [16:08:00]line Чек 172 12.04.2024 16:08 [16:08:00]line Смена: 113 ФФД: 1.0 [16:08:00]line ЗНМ: 0300000027 [16:08:00]line РНМ: 0000138879044617 [16:08:00]line Версия ККМ: 001 [16:08:00]line Платежная система: АКБ Кыргызстан [16:08:00]line ФМ: 0000000000963154 [16:08:00]line ФД: 28723 [16:08:00]line ФПД: 114798732025935 [16:08:00]line 1/tax-web-control/client/api/v1/ticket?date=20240412T160807&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28723&fm=114798732025935&tin=02508201610067®Number=0000138879044617&sum=100040 [16:08:00]OFD Sender: Processing packet 28723 [packets to send 8, broken 7] [16:08:00]ProducePacketName [16:08:00]name=ofd_packets/00028723 [16:08:00]OFD Sender: To server: pG, [16:08:00]CommunicateWithHost lk.salyk.kg:30040 [16:08:00]ConnectInit lk.salyk.kg [16:08:00]written 0, free lines is 4095 [16:08:00]Connected sock=7 [16:08:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 4B AD 08 01 14 6B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 3B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 67 5C 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 33 70 00 00 35 04 06 00 68 68 A9 A4 A0 4F 19 AA 1C A4 BF B7 9F 5C [16:08:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 08 DC 47 00 8D 74 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 33 70 00 00 F4 03 04 00 11 07 19 66 B6 04 01 00 00 F7 21 32 B0 CE 69 9D 96 [16:08:00]CommunicateWithHost err = 0 [16:08:00]CheckOFDResponse [16:08:00]1017 (14) - 77093643461234 [16:08:00]1041 (16) - 0000000000963154 [16:08:00]1040 (4) - 28723 [16:08:00]1012 (4) - 12.04.2024 10:04 [16:08:00]1206 (1) - 0 [16:08:00]OFD Sender: Remove packet 28723 [16:08:00]ProducePacketName [16:08:00]name=ofd_packets/00028723 [16:08:00]NVStorageDeleteData [16:08:00]Write to MH i2c: 01 00 00 C9 8C 55 [16:08:00]Write i2c OK [16:08:00]MH_I2C_Read... [16:08:00]Read from MH i2c: 01 [16:08:00]MH_I2C_Read... [16:08:00]Read from MH i2c: 01 07 00 [16:08:00]MH_I2C_Read... [16:08:00]Read from MH i2c: 01 07 00 C9 8C 00 00 00 00 00 E0 0C 48 [16:08:00]RasterBufferAndPrint [16:08:00]line [16:08:00]line [16:08:00]line [16:08:00]line [16:08:00]line [16:08:00]written 0, free lines is 3305 [16:08:00]MH_Cut [16:08:00]Write to MH i2c: D1 01 00 D0 8C 01 2E [16:08:00]Write i2c OK [16:08:00]MH_I2C_Read... [16:08:00]Read from MH i2c: D1 [16:08:00]MH_I2C_Read... [16:08:00]Read from MH i2c: D1 01 00 [16:08:00]MH_I2C_Read... [16:08:00]Read from MH i2c: D1 01 00 D0 8C 00 2D [16:08:00]Write to MH i2c: 01 00 00 D1 8C 5D [16:08:00]Write i2c OK [16:08:00]MH_I2C_Read... [16:08:01]OFD Sender: No OFD packet to send [16:08:01]*** Cut start [16:08:01]*** Partial cut [16:08:01]*** CUTSNS_PIN = 1 [16:08:01]*** CUTSNS_PIN = 0 [16:08:02]*** Brake cut motor [16:08:02]Read from MH i2c: 01 [16:08:02]MH_I2C_Read... [16:08:02]*** Stop cut motor [16:08:02]*** Cut end [16:08:02]Read from MH i2c: 01 07 00 [16:08:02]MH_I2C_Read... [16:08:02]Read from MH i2c: 01 07 00 D1 8C 00 00 00 00 00 FF 0F 72 [16:08:02]process_action close_receipt done [16:08:02]requested_data is exist [16:08:02]produce_requested_data [16:08:02]requested_item fm.sn is exist - process it [16:08:02]wFMCommunicate request_size=4 [16:08:02]MH_SAM_APDU [16:08:02]CAPDU: 80 11 00 00 [16:08:02]Write to MH i2c: E2 08 00 D2 8C 80 11 00 00 00 00 00 00 D8 [16:08:02]Write i2c OK [16:08:02]MH_I2C_Read... [16:08:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:08:02]Read from MH i2c: E2 [16:08:02]MH_I2C_Read... [16:08:02]Read from MH i2c: E2 17 00 [16:08:02]MH_I2C_Read... [16:08:02]Read from MH i2c: E2 17 00 D2 8C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 27 [16:08:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [16:08:02]wFMCommunicate OK [16:08:02]requested_item fd.num is exist - process it [16:08:02]SAM_PROTO_GetFieldsCounters [16:08:02]wFMCommunicate request_size=4 [16:08:02]MH_SAM_APDU [16:08:02]CAPDU: 80 13 00 00 [16:08:02]Write to MH i2c: E2 08 00 D3 8C 80 13 00 00 00 00 00 00 DB [16:08:02]Write i2c OK [16:08:02]MH_I2C_Read... [16:08:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:08:02]Read from MH i2c: E2 [16:08:02]MH_I2C_Read... [16:08:02]Read from MH i2c: E2 62 00 [16:08:02]MH_I2C_Read... [16:08:02]Read from MH i2c: E2 62 00 D3 8C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 33 70 00 00 0E 04 04 00 71 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 31 [16:08:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 33 70 00 00 0E 04 04 00 71 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:08:02]wFMCommunicate OK [16:08:02]SAM_PROTO_GetFieldsCounters done [16:08:02]requested_item shift.num is exist - process it [16:08:02]requested_item shift.opened is exist - process it [16:08:02]req_shift_opened [16:08:02]FM_GetShiftState [16:08:02]SAM_PROTO_GetShiftState [16:08:02]wFMCommunicate request_size=4 [16:08:02]MH_SAM_APDU [16:08:02]CAPDU: 80 13 01 00 [16:08:02]Write to MH i2c: E2 08 00 D4 8C 80 13 01 00 00 00 00 00 DD [16:08:02]Write i2c OK [16:08:02]MH_I2C_Read... [16:08:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:08:02]Read from MH i2c: E2 [16:08:02]MH_I2C_Read... [16:08:02]Read from MH i2c: E2 0E 00 [16:08:02]MH_I2C_Read... [16:08:02]Read from MH i2c: E2 0E 00 D4 8C 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 EE [16:08:02]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [16:08:02]wFMCommunicate OK [16:08:02]SAM_PROTO_GetShiftState done [16:08:02]FM_GetShiftState done [16:08:02]req_shift_opened done [16:08:02]requested_item shift.open_date is exist - process it [16:08:02]req_shift_open_date [16:08:02]req_shift_open_date done [16:08:02]produce_requested_data done [16:08:02]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28723,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [16:08:02]process_action_free close_receipt [16:08:02]json_value_free [16:08:02]json_value_free done [16:08:02]process_json_proto returns [16:08:02]Send response to host [16:08:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28723,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [16:08:02]free response buf [16:08:02]execute_script done [16:08:02]execute_script returns [16:08:02]free content buf [16:08:02]Sock 6.Close socket [16:08:02]Sock 6.Thread stoped [16:08:06]OFD Sender: No OFD packet to send [16:08:11]OFD Sender: No OFD packet to send [16:08:16]OFD Sender: No OFD packet to send [16:08:21]OFD Sender: No OFD packet to send [16:08:26]OFD Sender: No OFD packet to send [16:08:31]OFD Sender: No OFD packet to send [16:08:36]OFD Sender: No OFD packet to send [16:08:41]OFD Sender: No OFD packet to send [16:08:46]OFD Sender: No OFD packet to send [16:08:51]OFD Sender: No OFD packet to send [16:08:56]OFD Sender: No OFD packet to send [16:09:01]OFD Sender: No OFD packet to send [16:09:06]OFD Sender: No OFD packet to send [16:09:11]OFD Sender: No OFD packet to send [16:09:16]OFD Sender: No OFD packet to send [16:09:21]OFD Sender: No OFD packet to send [16:09:26]OFD Sender: No OFD packet to send [16:09:31]OFD Sender: No OFD packet to send [16:09:36]OFD Sender: No OFD packet to send [16:09:41]OFD Sender: No OFD packet to send [16:09:46]OFD Sender: No OFD packet to send [16:09:51]OFD Sender: No OFD packet to send [16:09:56]OFD Sender: No OFD packet to send [16:10:01]OFD Sender: No OFD packet to send [16:10:06]OFD Sender: No OFD packet to send [16:10:11]OFD Sender: No OFD packet to send [16:10:16]OFD Sender: No OFD packet to send [16:10:21]OFD Sender: No OFD packet to send [16:10:26]OFD Sender: No OFD packet to send [16:10:31]OFD Sender: No OFD packet to send [16:10:36]OFD Sender: No OFD packet to send [16:10:41]OFD Sender: No OFD packet to send [16:10:46]OFD Sender: No OFD packet to send [16:10:51]OFD Sender: No OFD packet to send [16:10:56]OFD Sender: No OFD packet to send [16:11:01]OFD Sender: No OFD packet to send [16:11:06]OFD Sender: No OFD packet to send [16:11:11]OFD Sender: No OFD packet to send [16:11:16]OFD Sender: No OFD packet to send [16:11:21]OFD Sender: No OFD packet to send [16:11:26]OFD Sender: No OFD packet to send [16:11:31]OFD Sender: No OFD packet to send [16:11:36]OFD Sender: No OFD packet to send [16:11:41]OFD Sender: No OFD packet to send [16:11:46]OFD Sender: No OFD packet to send [16:11:51]OFD Sender: No OFD packet to send [16:11:56]OFD Sender: No OFD packet to send [16:12:01]OFD Sender: No OFD packet to send [16:12:06]OFD Sender: No OFD packet to send [16:12:11]OFD Sender: No OFD packet to send [16:12:14]accept exits with 5 [16:12:14]New connection [16:12:14]New thread 3066641764 created [16:12:14]Thread 3066498404 joined [16:12:14]Waiting for new connection... [16:12:14] Sock 5.Parse request [16:12:14]Sock 5.Check first char [16:12:14]Sock 5.First char is OK [16:12:14]request: POST /json_proto HTTP/1.0 [16:12:14]Method: POST [16:12:14]URL: /json_proto [16:12:14]Method is POST - this is cgi request [16:12:14]url: /json_proto [16:12:14]query_string will be loaded in cgi processing [16:12:14]execute_cgi json_proto POST (null) [16:12:14]execute_cgi path=json_proto method=POST [16:12:14]POST find Content-Length [16:12:14]Host: 172.17.33.3:8080 [16:12:14]Content-Length: 670 [16:12:14]Content-Type: application/json [16:12:14] [16:12:14]POST finish read [16:12:14]Found Content-Length = 670 [16:12:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347061", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 7.660, "sum" : 500.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:12:14]execute_script... [16:12: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)347061", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 7.660, "sum" : 500.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:12:14]POST & json_proto [16:12:14]process_json_proto [16:12:14]json parsed OK: [16:12:14]protocol is kg_v1.0 [16:12:14]action value=close_receipt [16:12:14]process_action close_receipt [16:12:14]cmd_close_receipt [16:12:14]MH_GetDate [16:12:14]Write to MH i2c: F0 00 00 D5 8C 50 [16:12:14]Write i2c OK [16:12:14]MH_I2C_Read... [16:12:14]Read from MH i2c: F0 [16:12:14]MH_I2C_Read... [16:12:14]Read from MH i2c: F0 09 00 [16:12:14]MH_I2C_Read... [16:12:14]Read from MH i2c: F0 09 00 D5 8C 00 66 5D 19 66 23 5B 8F 65 0D [16:12:14]GetLastDocTimeStamp 1712938087 [16:12:14]current date 1712938342 [16:12:14]FM_GetShiftState [16:12:14]SAM_PROTO_GetShiftState [16:12:14]wFMCommunicate request_size=4 [16:12:14]MH_SAM_APDU [16:12:14]CAPDU: 80 13 01 00 [16:12:14]Write to MH i2c: E2 08 00 D6 8C 80 13 01 00 00 00 00 00 DF [16:12:14]Write i2c OK [16:12:14]MH_I2C_Read... [16:12:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:12:14]Read from MH i2c: E2 [16:12:14]MH_I2C_Read... [16:12:14]Read from MH i2c: E2 0E 00 [16:12:14]MH_I2C_Read... [16:12:14]Read from MH i2c: E2 0E 00 D6 8C 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 F0 [16:12:14]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [16:12:14]wFMCommunicate OK [16:12:14]SAM_PROTO_GetShiftState done [16:12:14]FM_GetShiftState done [16:12:14]opened in 1712881416 [16:12:14]opened+sec_in_day 1712967816 [16:12:14]quantity*price = 50019 [16:12:14]sum+1 = 50021 [16:12:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 173 12.04.2024 16:12 Смена: 113 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28724 ФПД: 179656244409242 1/tax-web-control/client/api/v1/ticket?date=20240412T161222&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28724&fm=179656244409242&tin=02508201610067®Number=0000138879044617&sum=50000 [16:12:15]StoreToDocumentArchive [16:12:15]shift 113 fd 28724 [16:12:15]save to /storage/0113/doc_00028724 [16:12:15]save last doc name /storage/0113/doc_00028724 to /storage/kkm_last_doc_name [16:12:15]save OK [16:12:15]Clear old archive folders... [16:12:15]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:12:15]tlvbuf is 01AC1490 [16:12:15]SAM_PROTO_ClearQueue [16:12:15]wFMCommunicate request_size=4 [16:12:15]MH_SAM_APDU [16:12:15]CAPDU: 80 09 00 00 [16:12:15]Write to MH i2c: E2 08 00 E3 8C 80 09 00 00 00 00 00 00 E1 [16:12:15]Write i2c OK [16:12:15]MH_I2C_Read... [16:12:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:12:15]Read from MH i2c: E2 [16:12:15]MH_I2C_Read... [16:12:15]Read from MH i2c: E2 03 00 [16:12:15]MH_I2C_Read... [16:12:15]Read from MH i2c: E2 03 00 E3 8C 00 90 00 E3 [16:12:15]RAPDU: 90 00 [16:12:15]wFMCommunicate OK [16:12:15]SAM_PROTO_ClearQueue done [16:12:15]KKMCreateOFDPacket [16:12:15]OFDProtocolAddRootSTLVToBuf [16:12:15]FM_MakeSignedData [16:12:15]FM_MakeSignedData [16:12:15]SAM_PROTO_SignData [16:12:15]wFMCommunicate request_size=4 [16:12:15]MH_SAM_APDU [16:12:15]CAPDU: 80 0D 01 02 [16:12:15]Write to MH i2c: E2 08 00 E4 8C 80 0D 01 02 00 00 00 00 E9 [16:12:15]Write i2c OK [16:12:15]MH_I2C_Read... [16:12:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:12:15]Read from MH i2c: E2 [16:12:15]MH_I2C_Read... [16:12:15]Read from MH i2c: E2 03 00 [16:12:15]MH_I2C_Read... [16:12:15]Read from MH i2c: E2 03 00 E4 8C 00 90 00 E4 [16:12:15]RAPDU: 90 00 [16:12:15]wFMCommunicate OK [16:12:15]wFMCommunicate request_size=255 [16:12:15]MH_SAM_APDU [16:12:15]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 1D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 64 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 66 5D 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 34 70 00 00 35 04 06 00 [16:12:15]Write to MH i2c: E2 02 01 E5 8C 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 1D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 64 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 66 5D 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 34 70 00 00 35 04 06 00 00 00 3F [16:12:15]Write i2c OK [16:12:15]MH_I2C_Read... [16:12:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:12:15]Read from MH i2c: E2 [16:12:15]MH_I2C_Read... [16:12:15]Read from MH i2c: E2 03 00 [16:12:15]MH_I2C_Read... [16:12:15]Read from MH i2c: E2 03 00 E5 8C 00 90 00 E5 [16:12:15]RAPDU: 90 00 [16:12:15]wFMCommunicate OK [16:12:15]wFMCommunicate request_size=11 [16:12:15]MH_SAM_APDU [16:12:15]CAPDU: 80 0D 02 02 06 A3 65 7A A1 33 9A [16:12:15]Write to MH i2c: E2 0E 00 E6 8C 80 0D 02 02 06 00 A3 65 7A A1 33 9A 00 00 E8 [16:12:15]Write i2c OK [16:12:15]MH_I2C_Read... [16:12:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:12:15]Read from MH i2c: E2 [16:12:15]MH_I2C_Read... [16:12:15]Read from MH i2c: E2 03 00 [16:12:15]MH_I2C_Read... [16:12:15]Read from MH i2c: E2 03 00 E6 8C 00 90 00 E6 [16:12:15]RAPDU: 90 00 [16:12:15]wFMCommunicate OK [16:12:15]wFMCommunicate request_size=4 [16:12:15]MH_SAM_APDU [16:12:15]CAPDU: 80 0D 03 02 [16:12:15]Write to MH i2c: E2 08 00 E7 8C 80 0D 03 02 00 00 00 00 EE [16:12:15]Write i2c OK [16:12:15]MH_I2C_Read... [16:12:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:12:15]Read from MH i2c: E2 [16:12:15]MH_I2C_Read... [16:12:15]Read from MH i2c: E2 0B 00 [16:12:15]MH_I2C_Read... [16:12:15]Read from MH i2c: E2 0B 00 E7 8C 00 EF 6F A0 42 1A 60 66 E4 90 00 F3 [16:12:15]RAPDU: EF 6F A0 42 1A 60 66 E4 90 00 [16:12:15]wFMCommunicate OK [16:12:15]SAM_PROTO_SignData done [16:12:15]FM_MakeSignedData done [16:12:15]CreateOFDProtocolMessage [16:12:15]wFMCommunicate request_size=4 [16:12:15]MH_SAM_APDU [16:12:15]CAPDU: 80 11 00 00 [16:12:15]Write to MH i2c: E2 08 00 E8 8C 80 11 00 00 00 00 00 00 EE [16:12:15]Write i2c OK [16:12:15]MH_I2C_Read... [16:12:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:12:15]Read from MH i2c: E2 [16:12:15]MH_I2C_Read... [16:12:15]Read from MH i2c: E2 17 00 [16:12:15]MH_I2C_Read... [16:12:15]Read from MH i2c: E2 17 00 E8 8C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 3D [16:12:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [16:12:15]wFMCommunicate OK [16:12:15]CreateOFDProtocolMessage done [16:12:15]OFDSenderStorePacket 28724 [16:12:15]StoreOFDPacket docnum=28724 [16:12:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 DC 63 08 01 2E 75 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 1D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 64 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 66 5D 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 34 70 00 00 35 04 06 00 A3 65 7A A1 33 9A EF 6F A0 42 1A 60 66 E4 [16:12:15]CheckFolder [16:12:15]dirname=/storage/ofd_packets [16:12:15]CheckFolder done [16:12:15]ProducePacketName [16:12:15]name=ofd_packets/00028724 [16:12:15]NVStorageSaveData ofd_packets/00028724 [16:12:15]File name is /storage/ofd_packets/00028724 [16:12:15]Write 302 bytes [16:12:15]NVStorageSaveData done [16:12:15]OFDSenderStorePacket done [16:12:15]KKMCreateOFDPacket done [16:12:15]NVStorageSaveData kkm_last_timestamp [16:12:15]File name is /storage/kkm_last_timestamp [16:12:15]Write 4 bytes [16:12:15]NVStorageSaveData done [16:12:15]ExternCall_PrintAddStr [16:12:15]wPrintStart [16:12:15]Write to MH i2c: 01 00 00 E9 8C 75 [16:12:15]Write i2c OK [16:12:15]MH_I2C_Read... [16:12:15]Read from MH i2c: 01 [16:12:15]MH_I2C_Read... [16:12:15]Read from MH i2c: 01 07 00 [16:12:15]MH_I2C_Read... [16:12:15]Read from MH i2c: 01 07 00 E9 8C 00 00 00 00 00 FF 0F 8A [16:12:15]RasterBufferAndPrint [16:12:15]line Счет N : (1)347061 [16:12:15]line ИНН: 02508201610067 [16:12:15]line Контрольно-Кассовый Чек [16:12:15]line ПРОДАЖА [16:12:15]line ТРК (МРК, ГНК) : 12 [16:12:15]line Товар: 2710124130 [16:12:15]line SUPER-92-К-5 [16:12:15]line 7.660 * 65.30 [16:12:15]line = 500.20 [16:12:15]line НДС 12% НСП 1% [16:12:15]line > о реализуемом товаре [16:12:15]line ОКРУГЛЕНИЕ: -0.20 [16:12:15]line ИТОГО: 500.00 [16:12:15]line Внесено: 500.00 [16:12:15]line СДАЧА: 0.00 [16:12:15]line НСП 1% : 4.43 [16:12:15]line НДС 12% : 53.12 [16:12:15]line Наличными: 500.00 [16:12:15]line Безнал.: 0.00 [16:12:15]line Место: АЗС № 108 "Партнер Нефть" [16:12:15]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [16:12:15]line СНО: Общий режим [16:12:15]line Чек 173 12.04.2024 16:12 [16:12:15]line Смена: 113 ФФД: 1.0 [16:12:15]line ЗНМ: 0300000027 [16:12:15]line РНМ: 0000138879044617 [16:12:15]line Версия ККМ: 001 [16:12:15]line ФМ: 0000000000963154 [16:12:16]line ФД: 28724 [16:12:16]line ФПД: 179656244409242 [16:12:16]line 1/tax-web-control/client/api/v1/ticket?date=20240412T161222&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28724&fm=179656244409242&tin=02508201610067®Number=0000138879044617&sum=50000 [16:12:16]OFD Sender: Processing packet 28724 [packets to send 8, broken 7] [16:12:16]ProducePacketName [16:12:16]name=ofd_packets/00028724 [16:12:16]OFD Sender: To server: pG, [16:12:16]CommunicateWithHost lk.salyk.kg:30040 [16:12:16]ConnectInit lk.salyk.kg [16:12:16]written 0, free lines is 4095 [16:12:16]Connected sock=7 [16:12:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 DC 63 08 01 2E 75 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 1D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 64 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 66 5D 19 66 0E 04 04 00 71 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 34 70 00 00 35 04 06 00 A3 65 7A A1 33 9A EF 6F A0 42 1A 60 66 E4 [16:12:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 07 57 47 00 7E FD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 34 70 00 00 F4 03 04 00 10 08 19 66 B6 04 01 00 00 B9 03 C8 82 D5 AA 88 25 [16:12:16]CommunicateWithHost err = 0 [16:12:16]CheckOFDResponse [16:12:16]1017 (14) - 77093643461234 [16:12:16]1041 (16) - 0000000000963154 [16:12:16]1040 (4) - 28724 [16:12:16]1012 (4) - 12.04.2024 10:08 [16:12:16]1206 (1) - 0 [16:12:16]OFD Sender: Remove packet 28724 [16:12:16]ProducePacketName [16:12:16]name=ofd_packets/00028724 [16:12:16]NVStorageDeleteData [16:12:16]Write to MH i2c: 01 00 00 13 8D A0 [16:12:16]Write i2c OK [16:12:16]MH_I2C_Read... [16:12:16]Read from MH i2c: 01 [16:12:16]MH_I2C_Read... [16:12:16]Read from MH i2c: 01 07 00 [16:12:16]MH_I2C_Read... [16:12:16]Read from MH i2c: 01 07 00 13 8D 00 00 00 00 00 C8 0C 7B [16:12:16]RasterBufferAndPrint [16:12:16]line [16:12:16]line [16:12:16]line [16:12:16]line [16:12:16]line [16:12:16]written 0, free lines is 3276 [16:12:16]MH_Cut [16:12:16]Write to MH i2c: D1 01 00 1A 8D 01 79 [16:12:16]Write i2c OK [16:12:16]MH_I2C_Read... [16:12:16]Read from MH i2c: D1 [16:12:16]MH_I2C_Read... [16:12:16]Read from MH i2c: D1 01 00 [16:12:16]MH_I2C_Read... [16:12:16]Read from MH i2c: D1 01 00 1A 8D 00 78 [16:12:16]Write to MH i2c: 01 00 00 1B 8D A8 [16:12:16]Write i2c OK [16:12:16]MH_I2C_Read... [16:12:16]OFD Sender: No OFD packet to send [16:12:17]*** Cut start [16:12:17]*** Partial cut [16:12:17]*** CUTSNS_PIN = 1 [16:12:17]*** CUTSNS_PIN = 0 [16:12:17]*** Brake cut motor [16:12:17]Read from MH i2c: 01 [16:12:17]MH_I2C_Read... [16:12:17]*** Stop cut motor [16:12:17]*** Cut end [16:12:17]Read from MH i2c: 01 07 00 [16:12:17]MH_I2C_Read... [16:12:17]Read from MH i2c: 01 07 00 1B 8D 00 00 00 00 00 FF 0F BD [16:12:17]process_action close_receipt done [16:12:17]requested_data is exist [16:12:17]produce_requested_data [16:12:17]requested_item fm.sn is exist - process it [16:12:17]wFMCommunicate request_size=4 [16:12:17]MH_SAM_APDU [16:12:17]CAPDU: 80 11 00 00 [16:12:17]Write to MH i2c: E2 08 00 1C 8D 80 11 00 00 00 00 00 00 23 [16:12:17]Write i2c OK [16:12:17]MH_I2C_Read... [16:12:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:12:18]Read from MH i2c: E2 [16:12:18]MH_I2C_Read... [16:12:18]Read from MH i2c: E2 17 00 [16:12:18]MH_I2C_Read... [16:12:18]Read from MH i2c: E2 17 00 1C 8D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 72 [16:12:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [16:12:18]wFMCommunicate OK [16:12:18]requested_item fd.num is exist - process it [16:12:18]SAM_PROTO_GetFieldsCounters [16:12:18]wFMCommunicate request_size=4 [16:12:18]MH_SAM_APDU [16:12:18]CAPDU: 80 13 00 00 [16:12:18]Write to MH i2c: E2 08 00 1D 8D 80 13 00 00 00 00 00 00 26 [16:12:18]Write i2c OK [16:12:18]MH_I2C_Read... [16:12:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:12:18]Read from MH i2c: E2 [16:12:18]MH_I2C_Read... [16:12:18]Read from MH i2c: E2 62 00 [16:12:18]MH_I2C_Read... [16:12:18]Read from MH i2c: E2 62 00 1D 8D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 34 70 00 00 0E 04 04 00 71 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 80 [16:12:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 34 70 00 00 0E 04 04 00 71 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:12:18]wFMCommunicate OK [16:12:18]SAM_PROTO_GetFieldsCounters done [16:12:18]requested_item shift.num is exist - process it [16:12:18]requested_item shift.opened is exist - process it [16:12:18]req_shift_opened [16:12:18]FM_GetShiftState [16:12:18]SAM_PROTO_GetShiftState [16:12:18]wFMCommunicate request_size=4 [16:12:18]MH_SAM_APDU [16:12:18]CAPDU: 80 13 01 00 [16:12:18]Write to MH i2c: E2 08 00 1E 8D 80 13 01 00 00 00 00 00 28 [16:12:18]Write i2c OK [16:12:18]MH_I2C_Read... [16:12:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:12:18]Read from MH i2c: E2 [16:12:18]MH_I2C_Read... [16:12:18]Read from MH i2c: E2 0E 00 [16:12:18]MH_I2C_Read... [16:12:18]Read from MH i2c: E2 0E 00 1E 8D 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 39 [16:12:18]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [16:12:18]wFMCommunicate OK [16:12:18]SAM_PROTO_GetShiftState done [16:12:18]FM_GetShiftState done [16:12:18]req_shift_opened done [16:12:18]requested_item shift.open_date is exist - process it [16:12:18]req_shift_open_date [16:12:18]req_shift_open_date done [16:12:18]produce_requested_data done [16:12:18]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28724,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [16:12:18]process_action_free close_receipt [16:12:18]json_value_free [16:12:18]json_value_free done [16:12:18]process_json_proto returns [16:12:18]Send response to host [16:12:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28724,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [16:12:18]free response buf [16:12:18]execute_script done [16:12:18]execute_script returns [16:12:18]free content buf [16:12:18]Sock 5.Close socket [16:12:18]Sock 5.Thread stoped [16:12:21]OFD Sender: No OFD packet to send [16:12:26]OFD Sender: No OFD packet to send [16:12:31]OFD Sender: No OFD packet to send [16:12:36]OFD Sender: No OFD packet to send [16:12:41]OFD Sender: No OFD packet to send [16:12:46]OFD Sender: No OFD packet to send [16:12:51]OFD Sender: No OFD packet to send [16:12:56]OFD Sender: No OFD packet to send [16:13:01]OFD Sender: No OFD packet to send [16:13:06]OFD Sender: No OFD packet to send [16:13:11]OFD Sender: No OFD packet to send [16:13:16]OFD Sender: No OFD packet to send [16:13:21]OFD Sender: No OFD packet to send [16:13:26]OFD Sender: No OFD packet to send [16:13:31]OFD Sender: No OFD packet to send [16:13:36]OFD Sender: No OFD packet to send [16:13:41]OFD Sender: No OFD packet to send [16:13:46]OFD Sender: No OFD packet to send [16:13:51]OFD Sender: No OFD packet to send [16:13:56]OFD Sender: No OFD packet to send [16:14:01]OFD Sender: No OFD packet to send [16:14:04]accept exits with 6 [16:14:04]New connection [16:14:04]New thread 3066498404 created [16:14:04]Thread 3066641764 joined [16:14:04]Waiting for new connection... [16:14:04] Sock 6.Parse request [16:14:04]Sock 6.Check first char [16:14:04]Sock 6.First char is OK [16:14:04]request: POST /json_proto HTTP/1.0 [16:14:04]Method: POST [16:14:04]URL: /json_proto [16:14:04]Method is POST - this is cgi request [16:14:04]url: /json_proto [16:14:04]query_string will be loaded in cgi processing [16:14:04]execute_cgi json_proto POST (null) [16:14:04]execute_cgi path=json_proto method=POST [16:14:04]POST find Content-Length [16:14:04]Host: 172.17.33.3:8080 [16:14:04]Content-Length: 215 [16:14:04]Content-Type: application/json [16:14:04] [16:14:04]POST finish read [16:14:04]Found Content-Length = 215 [16:14:04]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" ] } } [16:14:04]execute_script... [16:14:04]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" ] } } [16:14:04]POST & json_proto [16:14:04]process_json_proto [16:14:04]json parsed OK: [16:14:04]protocol is kg_v1.0 [16:14:04]action value=get_value [16:14:04]process_action get_value [16:14:04]cmd_get_value [16:14:04]process_action get_value done [16:14:04]requested_data is exist [16:14:04]produce_requested_data [16:14:04]requested_item kkm.sn is exist - process it [16:14:04]requested_item kkm.ver is exist - process it [16:14:04]requested_item fm.sn is exist - process it [16:14:04]wFMCommunicate request_size=4 [16:14:04]MH_SAM_APDU [16:14:04]CAPDU: 80 11 00 00 [16:14:04]Write to MH i2c: E2 08 00 1F 8D 80 11 00 00 00 00 00 00 26 [16:14:04]Write i2c OK [16:14:04]MH_I2C_Read... [16:14:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:14:04]Read from MH i2c: E2 [16:14:04]MH_I2C_Read... [16:14:04]Read from MH i2c: E2 17 00 [16:14:04]MH_I2C_Read... [16:14:04]Read from MH i2c: E2 17 00 1F 8D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 75 [16:14:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [16:14:04]wFMCommunicate OK [16:14:04]requested_item fd.num is exist - process it [16:14:04]SAM_PROTO_GetFieldsCounters [16:14:04]wFMCommunicate request_size=4 [16:14:04]MH_SAM_APDU [16:14:04]CAPDU: 80 13 00 00 [16:14:04]Write to MH i2c: E2 08 00 20 8D 80 13 00 00 00 00 00 00 29 [16:14:04]Write i2c OK [16:14:04]MH_I2C_Read... [16:14:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:14:04]Read from MH i2c: E2 [16:14:04]MH_I2C_Read... [16:14:04]Read from MH i2c: E2 62 00 [16:14:04]MH_I2C_Read... [16:14:04]Read from MH i2c: E2 62 00 20 8D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 34 70 00 00 0E 04 04 00 71 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 83 [16:14:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 34 70 00 00 0E 04 04 00 71 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:14:04]wFMCommunicate OK [16:14:04]SAM_PROTO_GetFieldsCounters done [16:14:04]requested_item shift.num is exist - process it [16:14:04]requested_item shift.opened is exist - process it [16:14:04]req_shift_opened [16:14:04]FM_GetShiftState [16:14:04]SAM_PROTO_GetShiftState [16:14:04]wFMCommunicate request_size=4 [16:14:04]MH_SAM_APDU [16:14:04]CAPDU: 80 13 01 00 [16:14:04]Write to MH i2c: E2 08 00 21 8D 80 13 01 00 00 00 00 00 2B [16:14:04]Write i2c OK [16:14:04]MH_I2C_Read... [16:14:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:14:04]Read from MH i2c: E2 [16:14:04]MH_I2C_Read... [16:14:04]Read from MH i2c: E2 0E 00 [16:14:04]MH_I2C_Read... [16:14:04]Read from MH i2c: E2 0E 00 21 8D 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 3C [16:14:04]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [16:14:04]wFMCommunicate OK [16:14:04]SAM_PROTO_GetShiftState done [16:14:04]FM_GetShiftState done [16:14:04]req_shift_opened done [16:14:04]requested_item shift.open_date is exist - process it [16:14:04]req_shift_open_date [16:14:04]req_shift_open_date done [16:14:04]produce_requested_data done [16:14:04]produce_requested_data return {"kkm.sn":"0300000027","kkm.ver":"001","fm.sn":"0000000000963154","fd.num":28724,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [16:14:04]process_action_free get_value [16:14:04]json_value_free [16:14:04]json_value_free done [16:14:04]process_json_proto returns [16:14:04]Send response to host [16:14:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000027","kkm.ver":"001","fm.sn":"0000000000963154","fd.num":28724,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [16:14:04]free response buf [16:14:04]execute_script done [16:14:04]execute_script returns [16:14:04]free content buf [16:14:04]Sock 6.Close socket [16:14:04]Sock 6.Thread stoped [16:14:04]accept exits with 5 [16:14:04]New connection [16:14:04]New thread 3066641764 created [16:14:04]Thread 3066498404 joined [16:14:04]Waiting for new connection... [16:14:04] Sock 5.Parse request [16:14:04]Sock 5.Check first char [16:14:04]Sock 5.First char is OK [16:14:04]request: POST /json_proto HTTP/1.0 [16:14:04]Method: POST [16:14:04]URL: /json_proto [16:14:04]Method is POST - this is cgi request [16:14:04]url: /json_proto [16:14:04]query_string will be loaded in cgi processing [16:14:04]execute_cgi json_proto POST (null) [16:14:04]execute_cgi path=json_proto method=POST [16:14:04]POST find Content-Length [16:14:04]Host: 172.17.33.3:8080 [16:14:04]Content-Length: 331 [16:14:04]Content-Type: application/json [16:14:04] [16:14:04]POST finish read [16:14:04]Found Content-Length = 331 [16:14:04]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" ] } } [16:14:04]execute_script... [16:14:04]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" ] } } [16:14:04]POST & json_proto [16:14:04]process_json_proto [16:14:04]json parsed OK: [16:14:04]protocol is kg_v1.0 [16:14:04]action value=get_value [16:14:04]process_action get_value [16:14:04]cmd_get_value [16:14:04]process_action get_value done [16:14:04]requested_data is exist [16:14:04]produce_requested_data [16:14:04]requested_item fm.sale.total is exist - process it [16:14:04]SAM_PROTO_GetFMData [16:14:04]wFMCommunicate request_size=4 [16:14:04]MH_SAM_APDU [16:14:04]CAPDU: 80 13 03 00 [16:14:04]Write to MH i2c: E2 08 00 22 8D 80 13 03 00 00 00 00 00 2E [16:14:04]Write i2c OK [16:14:04]MH_I2C_Read... [16:14:05]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [16:14:05]Read from MH i2c: E2 [16:14:05]MH_I2C_Read... [16:14:05]Read from MH i2c: E2 FD 00 [16:14:05]MH_I2C_Read... [16:14:05]Read from MH i2c: E2 FD 00 22 8D 00 C3 04 85 04 BF 04 6E 04 04 00 52 6F 00 00 69 04 A1 00 6F 04 04 00 F8 6B 00 00 B1 04 04 00 D9 FB 7B AF 70 04 04 00 78 E9 41 70 72 04 04 00 61 12 3A 3F 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 E7 A0 A3 12 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 D7 99 8D 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 9C 00 6F 04 04 00 5A 03 00 00 B1 04 04 00 A8 5F 91 0C 70 04 04 00 A8 5F 91 0C 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 C1 B4 55 01 EF 03 09 00 F6 90 00 0A [16:14:05]RAPDU: C3 04 85 04 BF 04 6E 04 04 00 52 6F 00 00 69 04 A1 00 6F 04 04 00 F8 6B 00 00 B1 04 04 00 D9 FB 7B AF 70 04 04 00 78 E9 41 70 72 04 04 00 61 12 3A 3F 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 E7 A0 A3 12 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 D7 99 8D 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 9C 00 6F 04 04 00 5A 03 00 00 B1 04 04 00 A8 5F 91 0C 70 04 04 00 A8 5F 91 0C 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 C1 B4 55 01 EF 03 09 00 F6 90 00 [16:14:05]wFMCommunicate OK [16:14:05]wFMCommunicate request_size=4 [16:14:05]MH_SAM_APDU [16:14:05]CAPDU: 80 17 00 00 [16:14:05]Write to MH i2c: E2 08 00 23 8D 80 17 00 00 00 00 00 00 30 [16:14:05]Write i2c OK [16:14:05]MH_I2C_Read... [16:14:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:14:05]Read from MH i2c: E2 [16:14:05]MH_I2C_Read... [16:14:05]Read from MH i2c: E2 FD 00 [16:14:05]MH_I2C_Read... [16:14:05]Read from MH i2c: E2 FD 00 23 8D 00 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 4B 79 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 D0 [16:14:05]RAPDU: 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 4B 79 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [16:14:05]wFMCommunicate OK [16:14:05]wFMCommunicate request_size=4 [16:14:05]MH_SAM_APDU [16:14:05]CAPDU: 80 17 00 00 [16:14:05]Write to MH i2c: E2 08 00 24 8D 80 17 00 00 00 00 00 00 31 [16:14:05]Write i2c OK [16:14:05]MH_I2C_Read... [16:14:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:14:05]Read from MH i2c: E2 [16:14:05]MH_I2C_Read... [16:14:05]Read from MH i2c: E2 FD 00 [16:14:05]MH_I2C_Read... [16:14:05]Read from MH i2c: E2 FD 00 24 8D 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 4F [16:14:05]RAPDU: 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [16:14:05]wFMCommunicate OK [16:14:05]wFMCommunicate request_size=4 [16:14:05]MH_SAM_APDU [16:14:05]CAPDU: 80 17 00 00 [16:14:05]Write to MH i2c: E2 08 00 25 8D 80 17 00 00 00 00 00 00 32 [16:14:05]Write i2c OK [16:14:05]MH_I2C_Read... [16:14:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:14:06]Read from MH i2c: E2 [16:14:06]MH_I2C_Read... [16:14:06]Read from MH i2c: E2 FD 00 [16:14:06]MH_I2C_Read... [16:14:06]Read from MH i2c: E2 FD 00 25 8D 00 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 A4 [16:14:06]RAPDU: 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [16:14:06]wFMCommunicate OK [16:14:06]wFMCommunicate request_size=4 [16:14:06]MH_SAM_APDU [16:14:06]CAPDU: 80 17 00 00 [16:14:06]Write to MH i2c: E2 08 00 26 8D 80 17 00 00 00 00 00 00 33 [16:14:06]Write i2c OK [16:14:06]MH_I2C_Read... [16:14:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 221! [16:14:06]Read from MH i2c: E2 [16:14:06]MH_I2C_Read... [16:14:06]Read from MH i2c: E2 E0 00 [16:14:06]MH_I2C_Read... [16:14:06]Read from MH i2c: E2 E0 00 26 8D 00 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [16:14:06]RAPDU: 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:14:06]wFMCommunicate OK [16:14:06]SAM_PROTO_GetFMData done [16:14:06]requested_item fm.sale_refund.total is exist - process it [16:14:06]requested_item fm.buy.total is exist - process it [16:14:06]requested_item shift.sale.total is exist - process it [16:14:06]SAM_PROTO_GetShiftData [16:14:06]wFMCommunicate request_size=4 [16:14:06]MH_SAM_APDU [16:14:06]CAPDU: 80 13 02 00 [16:14:06]Write to MH i2c: E2 08 00 27 8D 80 13 02 00 00 00 00 00 32 [16:14:06]Write i2c OK [16:14:06]MH_I2C_Read... [16:14:06]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [16:14:06]Read from MH i2c: E2 [16:14:06]MH_I2C_Read... [16:14:06]Read from MH i2c: E2 FD 00 [16:14:06]MH_I2C_Read... [16:14:06]Read from MH i2c: E2 FD 00 27 8D 00 BB 04 AA 04 B7 04 6E 04 04 00 AD 00 00 00 69 04 9D 00 6F 04 04 00 A9 00 00 00 B1 04 04 00 B6 F0 1E 01 70 04 03 00 F8 C7 B2 72 04 03 00 BE 28 6C 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 8F 7A 1E 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 22 8A 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 D0 DB 17 70 04 03 00 D0 DB 17 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 AF 88 02 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 B6 [16:14:06]RAPDU: BB 04 AA 04 B7 04 6E 04 04 00 AD 00 00 00 69 04 9D 00 6F 04 04 00 A9 00 00 00 B1 04 04 00 B6 F0 1E 01 70 04 03 00 F8 C7 B2 72 04 03 00 BE 28 6C 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 8F 7A 1E 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 22 8A 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 D0 DB 17 70 04 03 00 D0 DB 17 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 AF 88 02 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [16:14:06]wFMCommunicate OK [16:14:06]wFMCommunicate request_size=4 [16:14:06]MH_SAM_APDU [16:14:06]CAPDU: 80 17 00 00 [16:14:06]Write to MH i2c: E2 08 00 28 8D 80 17 00 00 00 00 00 00 35 [16:14:06]Write i2c OK [16:14:06]MH_I2C_Read... [16:14:06]OFD Sender: No OFD packet to send [16:14:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:14:07]Read from MH i2c: E2 [16:14:07]MH_I2C_Read... [16:14:07]Read from MH i2c: E2 FD 00 [16:14:07]MH_I2C_Read... [16:14:07]Read from MH i2c: E2 FD 00 28 8D 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 0E 36 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 90 00 23 [16:14:07]RAPDU: 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 0E 36 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 90 00 [16:14:07]wFMCommunicate OK [16:14:07]wFMCommunicate request_size=4 [16:14:07]MH_SAM_APDU [16:14:07]CAPDU: 80 17 00 00 [16:14:07]Write to MH i2c: E2 08 00 29 8D 80 17 00 00 00 00 00 00 36 [16:14:07]Write i2c OK [16:14:07]MH_I2C_Read... [16:14:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:14:07]Read from MH i2c: E2 [16:14:07]MH_I2C_Read... [16:14:07]Read from MH i2c: E2 FD 00 [16:14:07]MH_I2C_Read... [16:14:07]Read from MH i2c: E2 FD 00 29 8D 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 90 00 62 [16:14:07]RAPDU: 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 90 00 [16:14:07]wFMCommunicate OK [16:14:07]wFMCommunicate request_size=4 [16:14:07]MH_SAM_APDU [16:14:07]CAPDU: 80 17 00 00 [16:14:07]Write to MH i2c: E2 08 00 2A 8D 80 17 00 00 00 00 00 00 37 [16:14:07]Write i2c OK [16:14:07]MH_I2C_Read... [16:14:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:14:07]Read from MH i2c: E2 [16:14:07]MH_I2C_Read... [16:14:07]Read from MH i2c: E2 FD 00 [16:14:07]MH_I2C_Read... [16:14:07]Read from MH i2c: E2 FD 00 2A 8D 00 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 AC [16:14:07]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [16:14:07]wFMCommunicate OK [16:14:07]wFMCommunicate request_size=4 [16:14:07]MH_SAM_APDU [16:14:07]CAPDU: 80 17 00 00 [16:14:07]Write to MH i2c: E2 08 00 2B 8D 80 17 00 00 00 00 00 00 38 [16:14:07]Write i2c OK [16:14:07]MH_I2C_Read... [16:14:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 213! [16:14:08]Read from MH i2c: E2 [16:14:08]MH_I2C_Read... [16:14:08]Read from MH i2c: E2 D8 00 [16:14:08]MH_I2C_Read... [16:14:08]Read from MH i2c: E2 D8 00 2B 8D 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 1F [16:14:08]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [16:14:08]wFMCommunicate OK [16:14:08]SAM_PROTO_GetShiftData done [16:14:08]requested_item shift.sale.total_cash is exist - process it [16:14:08]requested_item shift.sale_refund.total is exist - process it [16:14:08]requested_item shift.sale_refund.total_cash is exist - process it [16:14:08]requested_item shift.buy.total is exist - process it [16:14:08]requested_item shift.buy.total_cash is exist - process it [16:14:08]produce_requested_data done [16:14:08]produce_requested_data return {"fm.sale.total":29441382.01,"fm.sale_refund.total":2108538.00,"fm.buy.total":0.00,"shift.sale.total":188049.18,"shift.sale.total_cash":117166.00,"shift.sale_refund.total":15636.00,"shift.sale_refund.total_cash":15636.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [16:14:08]process_action_free get_value [16:14:08]json_value_free [16:14:08]json_value_free done [16:14:08]process_json_proto returns [16:14:08]Send response to host [16:14:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":29441382.01,"fm.sale_refund.total":2108538.00,"fm.buy.total":0.00,"shift.sale.total":188049.18,"shift.sale.total_cash":117166.00,"shift.sale_refund.total":15636.00,"shift.sale_refund.total_cash":15636.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [16:14:08]free response buf [16:14:08]execute_script done [16:14:08]execute_script returns [16:14:08]free content buf [16:14:08]Sock 5.Close socket [16:14:08]Sock 5.Thread stoped [16:14:08]accept exits with 6 [16:14:08]New connection [16:14:08]New thread 3066498404 created [16:14:08]Thread 3066641764 joined [16:14:08]Waiting for new connection... [16:14:08] Sock 6.Parse request [16:14:08]Sock 6.Check first char [16:14:08]Sock 6.First char is OK [16:14:08]request: POST /json_proto HTTP/1.0 [16:14:08]Method: POST [16:14:08]URL: /json_proto [16:14:08]Method is POST - this is cgi request [16:14:08]url: /json_proto [16:14:08]query_string will be loaded in cgi processing [16:14:08]execute_cgi json_proto POST (null) [16:14:08]execute_cgi path=json_proto method=POST [16:14:08]POST find Content-Length [16:14:08]Host: 172.17.33.3:8080 [16:14:08]Content-Length: 331 [16:14:08]Content-Type: application/json [16:14:08] [16:14:08]POST finish read [16:14:08]Found Content-Length = 331 [16:14:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [16:14:08]execute_script... [16:14:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [16:14:08]POST & json_proto [16:14:08]process_json_proto [16:14:08]json parsed OK: [16:14:08]protocol is kg_v1.0 [16:14:08]action value=get_value [16:14:08]process_action get_value [16:14:08]cmd_get_value [16:14:08]process_action get_value done [16:14:08]requested_data is exist [16:14:08]produce_requested_data [16:14:08]requested_item fm.sale.total is exist - process it [16:14:08]SAM_PROTO_GetFMData [16:14:08]wFMCommunicate request_size=4 [16:14:08]MH_SAM_APDU [16:14:08]CAPDU: 80 13 03 00 [16:14:08]Write to MH i2c: E2 08 00 2C 8D 80 13 03 00 00 00 00 00 38 [16:14:08]Write i2c OK [16:14:08]MH_I2C_Read... [16:14:08]Read from MH i2c: E2 [16:14:08]MH_I2C_Read... [16:14:08]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [16:14:08]Read from MH i2c: E2 FD 00 [16:14:08]MH_I2C_Read... [16:14:08]Read from MH i2c: E2 FD 00 2C 8D 00 C3 04 85 04 BF 04 6E 04 04 00 52 6F 00 00 69 04 A1 00 6F 04 04 00 F8 6B 00 00 B1 04 04 00 D9 FB 7B AF 70 04 04 00 78 E9 41 70 72 04 04 00 61 12 3A 3F 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 E7 A0 A3 12 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 D7 99 8D 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 9C 00 6F 04 04 00 5A 03 00 00 B1 04 04 00 A8 5F 91 0C 70 04 04 00 A8 5F 91 0C 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 C1 B4 55 01 EF 03 09 00 F6 90 00 14 [16:14:08]RAPDU: C3 04 85 04 BF 04 6E 04 04 00 52 6F 00 00 69 04 A1 00 6F 04 04 00 F8 6B 00 00 B1 04 04 00 D9 FB 7B AF 70 04 04 00 78 E9 41 70 72 04 04 00 61 12 3A 3F 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 E7 A0 A3 12 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 D7 99 8D 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 9C 00 6F 04 04 00 5A 03 00 00 B1 04 04 00 A8 5F 91 0C 70 04 04 00 A8 5F 91 0C 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 C1 B4 55 01 EF 03 09 00 F6 90 00 [16:14:08]wFMCommunicate OK [16:14:08]wFMCommunicate request_size=4 [16:14:08]MH_SAM_APDU [16:14:08]CAPDU: 80 17 00 00 [16:14:08]Write to MH i2c: E2 08 00 2D 8D 80 17 00 00 00 00 00 00 3A [16:14:08]Write i2c OK [16:14:08]MH_I2C_Read... [16:14:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:14:09]Read from MH i2c: E2 [16:14:09]MH_I2C_Read... [16:14:09]Read from MH i2c: E2 FD 00 [16:14:09]MH_I2C_Read... [16:14:09]Read from MH i2c: E2 FD 00 2D 8D 00 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 4B 79 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 DA [16:14:09]RAPDU: 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 4B 79 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [16:14:09]wFMCommunicate OK [16:14:09]wFMCommunicate request_size=4 [16:14:09]MH_SAM_APDU [16:14:09]CAPDU: 80 17 00 00 [16:14:09]Write to MH i2c: E2 08 00 2E 8D 80 17 00 00 00 00 00 00 3B [16:14:09]Write i2c OK [16:14:09]MH_I2C_Read... [16:14:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:14:09]Read from MH i2c: E2 [16:14:09]MH_I2C_Read... [16:14:09]Read from MH i2c: E2 FD 00 [16:14:09]MH_I2C_Read... [16:14:09]Read from MH i2c: E2 FD 00 2E 8D 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 59 [16:14:09]RAPDU: 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [16:14:09]wFMCommunicate OK [16:14:09]wFMCommunicate request_size=4 [16:14:09]MH_SAM_APDU [16:14:09]CAPDU: 80 17 00 00 [16:14:09]Write to MH i2c: E2 08 00 2F 8D 80 17 00 00 00 00 00 00 3C [16:14:09]Write i2c OK [16:14:09]MH_I2C_Read... [16:14:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:14:09]Read from MH i2c: E2 [16:14:09]MH_I2C_Read... [16:14:09]Read from MH i2c: E2 FD 00 [16:14:09]MH_I2C_Read... [16:14:09]Read from MH i2c: E2 FD 00 2F 8D 00 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 AE [16:14:09]RAPDU: 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [16:14:10]wFMCommunicate OK [16:14:10]wFMCommunicate request_size=4 [16:14:10]MH_SAM_APDU [16:14:10]CAPDU: 80 17 00 00 [16:14:10]Write to MH i2c: E2 08 00 30 8D 80 17 00 00 00 00 00 00 3D [16:14:10]Write i2c OK [16:14:10]MH_I2C_Read... [16:14:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 221! [16:14:10]Read from MH i2c: E2 [16:14:10]MH_I2C_Read... [16:14:10]Read from MH i2c: E2 E0 00 [16:14:10]MH_I2C_Read... [16:14:10]Read from MH i2c: E2 E0 00 30 8D 00 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 27 [16:14:10]RAPDU: 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:14:10]wFMCommunicate OK [16:14:10]SAM_PROTO_GetFMData done [16:14:10]requested_item fm.sale_refund.total is exist - process it [16:14:10]requested_item fm.buy.total is exist - process it [16:14:10]requested_item shift.sale.total is exist - process it [16:14:10]SAM_PROTO_GetShiftData [16:14:10]wFMCommunicate request_size=4 [16:14:10]MH_SAM_APDU [16:14:10]CAPDU: 80 13 02 00 [16:14:10]Write to MH i2c: E2 08 00 31 8D 80 13 02 00 00 00 00 00 3C [16:14:10]Write i2c OK [16:14:10]MH_I2C_Read... [16:14:10]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [16:14:10]Read from MH i2c: E2 [16:14:10]MH_I2C_Read... [16:14:10]Read from MH i2c: E2 FD 00 [16:14:10]MH_I2C_Read... [16:14:10]Read from MH i2c: E2 FD 00 31 8D 00 BB 04 AA 04 B7 04 6E 04 04 00 AD 00 00 00 69 04 9D 00 6F 04 04 00 A9 00 00 00 B1 04 04 00 B6 F0 1E 01 70 04 03 00 F8 C7 B2 72 04 03 00 BE 28 6C 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 8F 7A 1E 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 22 8A 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 D0 DB 17 70 04 03 00 D0 DB 17 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 AF 88 02 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 C0 [16:14:10]RAPDU: BB 04 AA 04 B7 04 6E 04 04 00 AD 00 00 00 69 04 9D 00 6F 04 04 00 A9 00 00 00 B1 04 04 00 B6 F0 1E 01 70 04 03 00 F8 C7 B2 72 04 03 00 BE 28 6C 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 8F 7A 1E 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 22 8A 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 D0 DB 17 70 04 03 00 D0 DB 17 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 AF 88 02 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [16:14:10]wFMCommunicate OK [16:14:10]wFMCommunicate request_size=4 [16:14:10]MH_SAM_APDU [16:14:10]CAPDU: 80 17 00 00 [16:14:10]Write to MH i2c: E2 08 00 32 8D 80 17 00 00 00 00 00 00 3F [16:14:10]Write i2c OK [16:14:10]MH_I2C_Read... [16:14:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:14:11]Read from MH i2c: E2 [16:14:11]MH_I2C_Read... [16:14:11]Read from MH i2c: E2 FD 00 [16:14:11]MH_I2C_Read... [16:14:11]Read from MH i2c: E2 FD 00 32 8D 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 0E 36 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 90 00 2D [16:14:11]RAPDU: 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 0E 36 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 90 00 [16:14:11]wFMCommunicate OK [16:14:11]wFMCommunicate request_size=4 [16:14:11]MH_SAM_APDU [16:14:11]CAPDU: 80 17 00 00 [16:14:11]Write to MH i2c: E2 08 00 33 8D 80 17 00 00 00 00 00 00 40 [16:14:11]Write i2c OK [16:14:11]MH_I2C_Read... [16:14:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:14:11]Read from MH i2c: E2 [16:14:11]MH_I2C_Read... [16:14:11]Read from MH i2c: E2 FD 00 [16:14:11]MH_I2C_Read... [16:14:11]Read from MH i2c: E2 FD 00 33 8D 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 90 00 6C [16:14:11]RAPDU: 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 90 00 [16:14:11]wFMCommunicate OK [16:14:11]wFMCommunicate request_size=4 [16:14:11]MH_SAM_APDU [16:14:11]CAPDU: 80 17 00 00 [16:14:11]Write to MH i2c: E2 08 00 34 8D 80 17 00 00 00 00 00 00 41 [16:14:11]Write i2c OK [16:14:11]MH_I2C_Read... [16:14:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:14:11]Read from MH i2c: E2 [16:14:11]MH_I2C_Read... [16:14:11]Read from MH i2c: E2 FD 00 [16:14:11]MH_I2C_Read... [16:14:12]Read from MH i2c: E2 FD 00 34 8D 00 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 B6 [16:14:12]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 OFD Sender: No OFD packet to send [16:14:12]00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [16:14:12]wFMCommunicate OK [16:14:12]wFMCommunicate request_size=4 [16:14:12]MH_SAM_APDU [16:14:12]CAPDU: 80 17 00 00 [16:14:12]Write to MH i2c: E2 08 00 35 8D 80 17 00 00 00 00 00 00 42 [16:14:12]Write i2c OK [16:14:12]MH_I2C_Read... [16:14:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 213! [16:14:12]Read from MH i2c: E2 [16:14:12]MH_I2C_Read... [16:14:12]Read from MH i2c: E2 D8 00 [16:14:12]MH_I2C_Read... [16:14:12]Read from MH i2c: E2 D8 00 35 8D 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 29 [16:14:12]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [16:14:12]wFMCommunicate OK [16:14:12]SAM_PROTO_GetShiftData done [16:14:12]requested_item shift.sale.total_cash is exist - process it [16:14:12]requested_item shift.sale_refund.total is exist - process it [16:14:12]requested_item shift.sale_refund.total_cash is exist - process it [16:14:12]requested_item shift.buy.total is exist - process it [16:14:12]requested_item shift.buy.total_cash is exist - process it [16:14:12]produce_requested_data done [16:14:12]produce_requested_data return {"fm.sale.total":29441382.01,"fm.sale_refund.total":2108538.00,"fm.buy.total":0.00,"shift.sale.total":188049.18,"shift.sale.total_cash":117166.00,"shift.sale_refund.total":15636.00,"shift.sale_refund.total_cash":15636.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [16:14:12]process_action_free get_value [16:14:12]json_value_free [16:14:12]json_value_free done [16:14:12]process_json_proto returns [16:14:12]Send response to host [16:14:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":29441382.01,"fm.sale_refund.total":2108538.00,"fm.buy.total":0.00,"shift.sale.total":188049.18,"shift.sale.total_cash":117166.00,"shift.sale_refund.total":15636.00,"shift.sale_refund.total_cash":15636.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [16:14:12]free response buf [16:14:12]execute_script done [16:14:12]execute_script returns [16:14:12]free content buf [16:14:12]Sock 6.Close socket [16:14:12]Sock 6.Thread stoped [16:14:12]accept exits with 5 [16:14:12]New connection [16:14:12]New thread 3066641764 created [16:14:12]Thread 3066498404 joined [16:14:12]Waiting for new connection... [16:14:12] Sock 5.Parse request [16:14:12]Sock 5.Check first char [16:14:12]Sock 5.First char is OK [16:14:12]request: POST /json_proto HTTP/1.0 [16:14:12]Method: POST [16:14:12]URL: /json_proto [16:14:12]Method is POST - this is cgi request [16:14:12]url: /json_proto [16:14:12]query_string will be loaded in cgi processing [16:14:12]execute_cgi json_proto POST (null) [16:14:12]execute_cgi path=json_proto method=POST [16:14:12]POST find Content-Length [16:14:12]Host: 172.17.33.3:8080 [16:14:12]Content-Length: 275 [16:14:12]Content-Type: application/json [16:14:12] [16:14:12]POST finish read [16:14:12]Found Content-Length = 275 [16:14:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:14:12]execute_script... [16:14:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:14:12]POST & json_proto [16:14:12]process_json_proto [16:14:12]json parsed OK: [16:14:12]protocol is kg_v1.0 [16:14:12]action value=x_report [16:14:12]process_action x_report [16:14:12]cmd_x_report [16:14:12]MH_GetDate [16:14:12]Write to MH i2c: F0 00 00 36 8D B2 [16:14:12]Write i2c OK [16:14:12]MH_I2C_Read... [16:14:12]Read from MH i2c: F0 [16:14:12]MH_I2C_Read... [16:14:12]Read from MH i2c: F0 09 00 [16:14:12]MH_I2C_Read... [16:14:12]Read from MH i2c: F0 09 00 36 8D 00 DD 5D 19 66 23 5B 8F 65 E6 [16:14:12]GetLastDocTimeStamp 1712938342 [16:14:12]current date 1712938461 [16:14:12]FM_GetShiftState [16:14:12]SAM_PROTO_GetShiftState [16:14:12]wFMCommunicate request_size=4 [16:14:12]MH_SAM_APDU [16:14:12]CAPDU: 80 13 01 00 [16:14:12]Write to MH i2c: E2 08 00 37 8D 80 13 01 00 00 00 00 00 41 [16:14:12]Write i2c OK [16:14:12]MH_I2C_Read... [16:14:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:14:12]Read from MH i2c: E2 [16:14:12]MH_I2C_Read... [16:14:12]Read from MH i2c: E2 0E 00 [16:14:12]MH_I2C_Read... [16:14:12]Read from MH i2c: E2 0E 00 37 8D 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 52 [16:14:12]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [16:14:12]wFMCommunicate OK [16:14:12]SAM_PROTO_GetShiftState done [16:14:12]FM_GetShiftState done [16:14:12]KKMCreateXReportDocument [16:14:12]Load OK [16:14:12]Malloc new data [16:14:12]MH_GetDate [16:14:12]Write to MH i2c: F0 00 00 38 8D B4 [16:14:12]Write i2c OK [16:14:12]MH_I2C_Read... [16:14:12]Read from MH i2c: F0 [16:14:12]MH_I2C_Read... [16:14:12]Read from MH i2c: F0 09 00 [16:14:12]MH_I2C_Read... [16:14:12]Read from MH i2c: F0 09 00 38 8D 00 DD 5D 19 66 23 5B 8F 65 E8 [16:14:12]Malloc new data [16:14:12]Malloc new data [16:14:12]wFMCommunicate request_size=4 [16:14:12]MH_SAM_APDU [16:14:12]CAPDU: 80 11 00 00 [16:14:12]Write to MH i2c: E2 08 00 39 8D 80 11 00 00 00 00 00 00 40 [16:14:12]Write i2c OK [16:14:12]MH_I2C_Read... [16:14:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:14:12]Read from MH i2c: E2 [16:14:12]MH_I2C_Read... [16:14:12]Read from MH i2c: E2 17 00 [16:14:12]MH_I2C_Read... [16:14:12]Read from MH i2c: E2 17 00 39 8D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 8F [16:14:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [16:14:12]wFMCommunicate OK [16:14:12]SAM_PROTO_GetFieldsCounters [16:14:12]wFMCommunicate request_size=4 [16:14:12]MH_SAM_APDU [16:14:12]CAPDU: 80 13 00 00 [16:14:12]Write to MH i2c: E2 08 00 3A 8D 80 13 00 00 00 00 00 00 43 [16:14:12]Write i2c OK [16:14:12]MH_I2C_Read... [16:14:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:14:13]Read from MH i2c: E2 [16:14:13]MH_I2C_Read... [16:14:13]Read from MH i2c: E2 62 00 [16:14:13]MH_I2C_Read... [16:14:13]Read from MH i2c: E2 62 00 3A 8D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 34 70 00 00 0E 04 04 00 71 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 9D [16:14:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 34 70 00 00 0E 04 04 00 71 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:14:13]wFMCommunicate OK [16:14:13]SAM_PROTO_GetFieldsCounters done [16:14:13]Malloc new data [16:14:13]Malloc new data [16:14:13]Malloc new data [16:14:13]KKMCreateXReportDocument OK [16:14:13]KKMSetXReportData OK [16:14:13]KKMPrepareXReportFMData [16:14:13]SAM_PROTO_GetShiftData [16:14:13]wFMCommunicate request_size=4 [16:14:13]MH_SAM_APDU [16:14:13]CAPDU: 80 13 02 00 [16:14:13]Write to MH i2c: E2 08 00 3B 8D 80 13 02 00 00 00 00 00 46 [16:14:13]Write i2c OK [16:14:13]MH_I2C_Read... [16:14:13]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [16:14:13]Read from MH i2c: E2 [16:14:13]MH_I2C_Read... [16:14:13]Read from MH i2c: E2 FD 00 [16:14:13]MH_I2C_Read... [16:14:13]Read from MH i2c: E2 FD 00 3B 8D 00 BB 04 AA 04 B7 04 6E 04 04 00 AD 00 00 00 69 04 9D 00 6F 04 04 00 A9 00 00 00 B1 04 04 00 B6 F0 1E 01 70 04 03 00 F8 C7 B2 72 04 03 00 BE 28 6C 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 8F 7A 1E 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 22 8A 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 D0 DB 17 70 04 03 00 D0 DB 17 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 AF 88 02 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 CA [16:14:13]RAPDU: BB 04 AA 04 B7 04 6E 04 04 00 AD 00 00 00 69 04 9D 00 6F 04 04 00 A9 00 00 00 B1 04 04 00 B6 F0 1E 01 70 04 03 00 F8 C7 B2 72 04 03 00 BE 28 6C 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 8F 7A 1E 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 22 8A 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 D0 DB 17 70 04 03 00 D0 DB 17 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 AF 88 02 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [16:14:13]wFMCommunicate OK [16:14:13]wFMCommunicate request_size=4 [16:14:13]MH_SAM_APDU [16:14:13]CAPDU: 80 17 00 00 [16:14:13]Write to MH i2c: E2 08 00 3C 8D 80 17 00 00 00 00 00 00 49 [16:14:13]Write i2c OK [16:14:13]MH_I2C_Read... [16:14:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:14:14]Read from MH i2c: E2 [16:14:14]MH_I2C_Read... [16:14:14]Read from MH i2c: E2 FD 00 [16:14:14]MH_I2C_Read... [16:14:14]Read from MH i2c: E2 FD 00 3C 8D 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 0E 36 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 90 00 37 [16:14:14]RAPDU: 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 0E 36 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 90 00 [16:14:14]wFMCommunicate OK [16:14:14]wFMCommunicate request_size=4 [16:14:14]MH_SAM_APDU [16:14:14]CAPDU: 80 17 00 00 [16:14:14]Write to MH i2c: E2 08 00 3D 8D 80 17 00 00 00 00 00 00 4A [16:14:14]Write i2c OK [16:14:14]MH_I2C_Read... [16:14:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:14:14]Read from MH i2c: E2 [16:14:14]MH_I2C_Read... [16:14:14]Read from MH i2c: E2 FD 00 [16:14:14]MH_I2C_Read... [16:14:14]Read from MH i2c: E2 FD 00 3D 8D 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 90 00 76 [16:14:14]RAPDU: 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 90 00 [16:14:14]wFMCommunicate OK [16:14:14]wFMCommunicate request_size=4 [16:14:14]MH_SAM_APDU [16:14:14]CAPDU: 80 17 00 00 [16:14:14]Write to MH i2c: E2 08 00 3E 8D 80 17 00 00 00 00 00 00 4B [16:14:14]Write i2c OK [16:14:14]MH_I2C_Read... [16:14:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:14:14]Read from MH i2c: E2 [16:14:14]MH_I2C_Read... [16:14:14]Read from MH i2c: E2 FD 00 [16:14:14]MH_I2C_Read... [16:14:14]Read from MH i2c: E2 FD 00 3E 8D 00 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 C0 [16:14:15]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [16:14:15]wFMCommunicate OK [16:14:15]wFMCommunicate request_size=4 [16:14:15]MH_SAM_APDU [16:14:15]CAPDU: 80 17 00 00 [16:14:15]Write to MH i2c: E2 08 00 3F 8D 80 17 00 00 00 00 00 00 4C [16:14:15]Write i2c OK [16:14:15]MH_I2C_Read... [16:14:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 213! [16:14:15]Read from MH i2c: E2 [16:14:15]MH_I2C_Read... [16:14:15]Read from MH i2c: E2 D8 00 [16:14:15]MH_I2C_Read... [16:14:15]Read from MH i2c: E2 D8 00 3F 8D 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 33 [16:14:15]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [16:14:15]wFMCommunicate OK [16:14:15]SAM_PROTO_GetShiftData done [16:14:15]1194 (1207) - счетчики итогов смены [16:14:15] 1134 (4) - 173 - количество чеков со всеми признаками расчетов [16:14:15] 1129 (157) - счетчики операций «приход» [16:14:15] 1135 (4) - 169 - количество чеков по признаку расчетов [16:14:15] 1201 (4) - 188049.18 - общая итоговая сумма в чеках [16:14:15] 1136 (3) - 117166.00 - итоговая сумма в чеках наличными [16:14:15] 1138 (3) - 70883.18 - итоговая сумма в чеках безналичными [16:14:15] 1024 (123) - суммы налогов [16:14:15] 1006 (9) - суммы НДС [16:14:15] 1010 (1) - 0% - код ставки НДС [16:14:15] 1011 (0) - 0.00 - сумма НДС по ставке [16:14:15] 1006 (12) - суммы НДС [16:14:15] 1010 (1) - 12% - код ставки НДС [16:14:15] 1011 (3) - 19974.55 - сумма НДС по ставке [16:14:15] 1007 (9) - суммы НСП [16:14:15] 1014 (1) - 0% - код ставки НСП [16:14:15] 1015 (0) - 0.00 - сумма НСП по ставке [16:14:15] 1007 (12) - суммы НСП [16:14:15] 1014 (1) - 1% - код ставки НСП [16:14:15] 1015 (3) - 1664.34 - сумма НСП по ставке [16:14:15] 1007 (9) - суммы НСП [16:14:15] 1014 (1) - 2% - код ставки НСП [16:14:15] 1015 (0) - 0.00 - сумма НСП по ставке [16:14:15] 1007 (9) - суммы НСП [16:14:15] 1014 (1) - 3% - код ставки НСП [16:14:15] 1015 (0) - 0.00 - сумма НСП по ставке [16:14:15] 1007 (9) - суммы НСП [16:14:15] 1014 (1) - 5% - код ставки НСП [16:14:15] 1015 (0) - 0.00 - сумма НСП по ставке [16:14:15] 1007 (9) - суммы НСП [16:14:15] 1014 (1) - 0,50% - код ставки НСП [16:14:15] 1015 (0) - 0.00 - сумма НСП по ставке [16:14:15] 1007 (9) - суммы НСП [16:14:15] 1014 (1) - 1,50% - код ставки НСП [16:14:15] 1015 (0) - 0.00 - сумма НСП по ставке [16:14:15] 1130 (152) - счетчики операций «возврат прихода» [16:14:15] 1135 (4) - 4 - количество чеков по признаку расчетов [16:14:15] 1201 (3) - 15636.00 - общая итоговая сумма в чеках [16:14:15] 1136 (3) - 15636.00 - итоговая сумма в чеках наличными [16:14:15] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [16:14:15] 1024 (122) - суммы налогов [16:14:15] 1006 (9) - суммы НДС [16:14:15] 1010 (1) - 0% - код ставки НДС [16:14:15] 1011 (0) - 0.00 - сумма НДС по ставке [16:14:15] 1006 (12) - суммы НДС [16:14:15] 1010 (1) - 12% - код ставки НДС [16:14:15] 1011 (3) - 1660.63 - сумма НДС по ставке [16:14:15] 1007 (9) - суммы НСП [16:14:15] 1014 (1) - 0% - код ставки НСП [16:14:15] 1015 (0) - 0.00 - сумма НСП по ставке [16:14:15] 1007 (11) - суммы НСП [16:14:15] 1014 (1) - 1% - код ставки НСП [16:14:15] 1015 (2) - 138.38 - сумма НСП по ставке [16:14:15] 1007 (9) - суммы НСП [16:14:15] 1014 (1) - 2% - код ставки НСП [16:14:15] 1015 (0) - 0.00 - сумма НСП по ставке [16:14:15] 1007 (9) - суммы НСП [16:14:15] 1014 (1) - 3% - код ставки НСП [16:14:15] 1015 (0) - 0.00 - сумма НСП по ставке [16:14:15] 1007 (9) - суммы НСП [16:14:15] 1014 (1) - 5% - код ставки НСП [16:14:15] 1015 (0) - 0.00 - сумма НСП по ставке [16:14:15] 1007 (9) - суммы НСП [16:14:15] 1014 (1) - 0,50% - код ставки НСП [16:14:15] 1015 (0) - 0.00 - сумма НСП по ставке [16:14:15] 1007 (9) - суммы НСП [16:14:15] 1014 (1) - 1,50% - код ставки НСП [16:14:15] 1015 (0) - 0.00 - сумма НСП по ставке [16:14:15] 1131 (141) - счетчики операций «расход» [16:14:15] 1135 (4) - 0 - количество чеков по признаку расчетов [16:14:15] 1201 (0) - 0.00 - общая итоговая сумма в чеках [16:14:15] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [16:14:15] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [16:14:15] 1024 (117) - суммы налогов [16:14:15] 1006 (9) - суммы НДС [16:14:15] 1010 (1) - 0% - код ставки НДС [16:14:15] 1011 (0) - 0.00 - сумма НДС по ставке [16:14:15] 1006 (9) - суммы НДС [16:14:15] 1010 (1) - 12% - код ставки НДС [16:14:15] 1011 (0) - 0.00 - сумма НДС по ставке [16:14:15] 1007 (9) - суммы НСП [16:14:15] 1014 (1) - 0% - код ставки НСП [16:14:15] 1015 (0) - 0.00 - сумма НСП по ставке [16:14:15] 1007 (9) - суммы НСП [16:14:15] 1014 (1) - 1% - код ставки НСП [16:14:15] 1015 (0) - 0.00 - сумма НСП по ставке [16:14:15] 1007 (9) - суммы НСП [16:14:15] 1014 (1) - 2% - код ставки НСП [16:14:15] 1015 (0) - 0.00 - сумма НСП по ставке [16:14:15] 1007 (9) - суммы НСП [16:14:15] 1014 (1) - 3% - код ставки НСП [16:14:15] 1015 (0) - 0.00 - сумма НСП по ставке [16:14:15] 1007 (9) - суммы НСП [16:14:15] 1014 (1) - 5% - код ставки НСП [16:14:15] 1015 (0) - 0.00 - сумма НСП по ставке [16:14:15] 1007 (9) - суммы НСП [16:14:15] 1014 (1) - 0,50% - код ставки НСП [16:14:15] 1015 (0) - 0.00 - сумма НСП по ставке [16:14:15] 1007 (9) - суммы НСП [16:14:15] 1014 (1) - 1,50% - код ставки НСП [16:14:15] 1015 (0) - 0.00 - сумма НСП по ставке [16:14:15] 1132 (141) - счетчики операций «возврат расхода» [16:14:15] 1135 (4) - 0 - количество чеков по признаку расчетов [16:14:15] 1201 (0) - 0.00 - общая итоговая сумма в чеках [16:14:15] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [16:14:15] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [16:14:15] 1024 (117) - суммы налогов [16:14:15] 1006 (9) - суммы НДС [16:14:15] 1010 (1) - 0% - код ставки НДС [16:14:15] 1011 (0) - 0.00 - сумма НДС по ставке [16:14:15] 1006 (9) - суммы НДС [16:14:15] 1010 (1) - 12% - код ставки НДС [16:14:15] 1011 (0) - 0.00 - сумма НДС по ставке [16:14:15] 1007 (9) - суммы НСП [16:14:16] 1014 (1) - 0% - код ставки НСП [16:14:16] 1015 (0) - 0.00 - сумма НСП по ставке [16:14:16] 1007 (9) - суммы НСП [16:14:16] 1014 (1) - 1% - код ставки НСП [16:14:16] 1015 (0) - 0.00 - сумма НСП по ставке [16:14:16] 1007 (9) - суммы НСП [16:14:16] 1014 (1) - 2% - код ставки НСП [16:14:16] 1015 (0) - 0.00 - сумма НСП по ставке [16:14:16] 1007 (9) - суммы НСП [16:14:16] 1014 (1) - 3% - код ставки НСП [16:14:16] 1015 (0) - 0.00 - сумма НСП по ставке [16:14:16] 1007 (9) - суммы НСП [16:14:16] 1014 (1) - 5% - код ставки НСП [16:14:16] 1015 (0) - 0.00 - сумма НСП по ставке [16:14:16] 1007 (9) - суммы НСП [16:14:16] 1014 (1) - 0,50% - код ставки НСП [16:14:16] 1015 (0) - 0.00 - сумма НСП по ставке [16:14:16] 1007 (9) - суммы НСП [16:14:16] 1014 (1) - 1,50% - код ставки НСП [16:14:16] 1015 (0) - 0.00 - сумма НСП по ставке [16:14:16] 1133 (588) - - счетчики коррекции - не используются [16:14:16]SetTLVBufToDocument [16:14:16]Processing tag 1194 (04AA) [16:14:16]Load OK [16:14:16]SetTLVBufToDocument [16:14:16]Processing tag 1134 (046E) [16:14:16]Malloc new data [16:14:16]Processing tag 1129 (0469) [16:14:16]Load OK [16:14:16]SetTLVBufToDocument [16:14:16]Processing tag 1135 (046F) [16:14:16]Malloc new data [16:14:16]Processing tag 1201 (04B1) [16:14:16]Malloc new data [16:14:16]Processing tag 1136 (0470) [16:14:16]Malloc new data [16:14:16]Processing tag 1138 (0472) [16:14:16]Malloc new data [16:14:16]Processing tag 1024 (0400) [16:14:16]Load OK [16:14:16]SetTLVBufToDocument [16:14:16]Processing tag 1006 (03EE) [16:14:16]Load OK [16:14:16]SetTLVBufToDocument [16:14:16]Processing tag 1010 (03F2) [16:14:16]Malloc new data [16:14:16]Processing tag 1011 (03F3) [16:14:16]Malloc new data [16:14:16]SetTLVBufToDocument err=0 [16:14:16]Processing tag 1006 (03EE) [16:14:16]Load OK [16:14:16]SetTLVBufToDocument [16:14:16]Processing tag 1010 (03F2) [16:14:16]Malloc new data [16:14:16]Processing tag 1011 (03F3) [16:14:16]Malloc new data [16:14:16]SetTLVBufToDocument err=0 [16:14:16]Processing tag 1007 (03EF) [16:14:16]Load OK [16:14:16]SetTLVBufToDocument [16:14:16]Processing tag 1014 (03F6) [16:14:16]Malloc new data [16:14:16]Processing tag 1015 (03F7) [16:14:16]Malloc new data [16:14:16]SetTLVBufToDocument err=0 [16:14:16]Processing tag 1007 (03EF) [16:14:16]Load OK [16:14:16]SetTLVBufToDocument [16:14:16]Processing tag 1014 (03F6) [16:14:16]Malloc new data [16:14:16]Processing tag 1015 (03F7) [16:14:16]Malloc new data [16:14:16]SetTLVBufToDocument err=0 [16:14:16]Processing tag 1007 (03EF) [16:14:16]Load OK [16:14:16]SetTLVBufToDocument [16:14:16]Processing tag 1014 (03F6) [16:14:16]Malloc new data [16:14:16]Processing tag 1015 (03F7) [16:14:16]Malloc new data [16:14:16]SetTLVBufToDocument err=0 [16:14:16]Processing tag 1007 (03EF) [16:14:16]Load OK [16:14:16]SetTLVBufToDocument [16:14:16]Processing tag 1014 (03F6) [16:14:16]Malloc new data [16:14:16]Processing tag 1015 (03F7) [16:14:16]Malloc new data [16:14:16]SetTLVBufToDocument err=0 [16:14:16]Processing tag 1007 (03EF) [16:14:16]Load OK [16:14:16]SetTLVBufToDocument [16:14:16]Processing tag 1014 (03F6) [16:14:16]Malloc new data [16:14:16]Processing tag 1015 (03F7) [16:14:16]Malloc new data [16:14:16]SetTLVBufToDocument err=0 [16:14:16]Processing tag 1007 (03EF) [16:14:16]Load OK [16:14:16]SetTLVBufToDocument [16:14:16]Processing tag 1014 (03F6) [16:14:16]Malloc new data [16:14:16]Processing tag 1015 (03F7) [16:14:16]Malloc new data [16:14:16]SetTLVBufToDocument err=0 [16:14:16]Processing tag 1007 (03EF) [16:14:16]Load OK [16:14:16]SetTLVBufToDocument [16:14:16]Processing tag 1014 (03F6) [16:14:16]Malloc new data [16:14:16]Processing tag 1015 (03F7) [16:14:16]Malloc new data [16:14:16]SetTLVBufToDocument err=0 [16:14:16]SetTLVBufToDocument err=0 [16:14:16]SetTLVBufToDocument err=0 [16:14:16]Processing tag 1130 (046A) [16:14:16]Load OK [16:14:16]SetTLVBufToDocument [16:14:16]Processing tag 1135 (046F) [16:14:16]Malloc new data [16:14:16]Processing tag 1201 (04B1) [16:14:16]Malloc new data [16:14:16]Processing tag 1136 (0470) [16:14:16]Malloc new data [16:14:16]Processing tag 1138 (0472) [16:14:16]Malloc new data [16:14:16]Processing tag 1024 (0400) [16:14:16]Load OK [16:14:16]SetTLVBufToDocument [16:14:16]Processing tag 1006 (03EE) [16:14:16]Load OK [16:14:16]SetTLVBufToDocument [16:14:16]Processing tag 1010 (03F2) [16:14:16]Malloc new data [16:14:16]Processing tag 1011 (03F3) [16:14:16]Malloc new data [16:14:16]SetTLVBufToDocument err=0 [16:14:16]Processing tag 1006 (03EE) [16:14:16]Load OK [16:14:16]SetTLVBufToDocument [16:14:16]Processing tag 1010 (03F2) [16:14:16]Malloc new data [16:14:16]Processing tag 1011 (03F3) [16:14:16]Malloc new data [16:14:16]SetTLVBufToDocument err=0 [16:14:16]Processing tag 1007 (03EF) [16:14:16]Load OK [16:14:16]SetTLVBufToDocument [16:14:16]Processing tag 1014 (03F6) [16:14:16]Malloc new data [16:14:16]Processing tag 1015 (03F7) [16:14:16]Malloc new data [16:14:16]SetTLVBufToDocument err=0 [16:14:16]Processing tag 1007 (03EF) [16:14:16]Load OK [16:14:16]SetTLVBufToDocument [16:14:16]Processing tag 1014 (03F6) [16:14:16]Malloc new data [16:14:16]Processing tag 1015 (03F7) [16:14:16]Malloc new data [16:14:16]SetTLVBufToDocument err=0 [16:14:16]Processing tag 1007 (03EF) [16:14:16]Load OK [16:14:16]SetTLVBufToDocument [16:14:16]Processing tag 1014 (03F6) [16:14:16]Malloc new data [16:14:16]Processing tag 1015 (03F7) [16:14:16]Malloc new data [16:14:16]SetTLVBufToDocument err=0 [16:14:16]Processing tag 1007 (03EF) [16:14:16]Load OK [16:14:16]SetTLVBufToDocument [16:14:16]Processing tag 1014 (03F6) [16:14:16]Malloc new data [16:14:16]Processing tag 1015 (03F7) [16:14:16]Malloc new data [16:14:16]SetTLVBufToDocument err=0 [16:14:16]Processing tag 1007 (03EF) [16:14:16]Load OK [16:14:16]SetTLVBufToDocument [16:14:16]Processing tag 1014 (03F6) [16:14:16]Malloc new data [16:14:16]Processing tag 1015 (03F7) [16:14:16]Malloc new data [16:14:16]SetTLVBufToDocument err=0 [16:14:16]Processing tag 1007 (03EF) [16:14:16]Load OK [16:14:16]SetTLVBufToDocument [16:14:16]Processing tag 1014 (03F6) [16:14:16]Malloc new data [16:14:16]Processing tag 1015 (03F7) [16:14:16]Malloc new data [16:14:16]SetTLVBufToDocument err=0 [16:14:16]Processing tag 1007 (03EF) [16:14:16]Load OK [16:14:16]SetTLVBufToDocument [16:14:16]Processing tag 1014 (03F6) [16:14:16]Malloc new data [16:14:16]Processing tag 1015 (03F7) [16:14:16]Malloc new data [16:14:16]SetTLVBufToDocument err=0 [16:14:16]SetTLVBufToDocument err=0 [16:14:16]SetTLVBufToDocument err=0 [16:14:16]Processing tag 1131 (046B) [16:14:16]Load OK [16:14:16]SetTLVBufToDocument [16:14:16]Processing tag 1135 (046F) [16:14:16]Malloc new data [16:14:16]Processing tag 1201 (04B1) [16:14:16]Malloc new data [16:14:16]Processing tag 1136 (0470) [16:14:16]Malloc new data [16:14:16]Processing tag 1138 (0472) [16:14:16]Malloc new data [16:14:16]Processing tag 1024 (0400) [16:14:16]Load OK [16:14:16]SetTLVBufToDocument [16:14:16]Processing tag 1006 (03EE) [16:14:16]Load OK [16:14:16]SetTLVBufToDocument [16:14:16]Processing tag 1010 (03F2) [16:14:16]Malloc new data [16:14:16]Processing tag 1011 (03F3) [16:14:16]Malloc new data [16:14:16]SetTLVBufToDocument err=0 [16:14:16]Processing tag 1006 (03EE) [16:14:16]Load OK [16:14:16]SetTLVBufToDocument [16:14:16]Processing tag 1010 (03F2) [16:14:16]Malloc new data [16:14:16]Processing tag 1011 (03F3) [16:14:16]Malloc new data [16:14:16]SetTLVBufToDocument err=0 [16:14:16]Processing tag 1007 (03EF) [16:14:16]Load OK [16:14:16]SetTLVBufToDocument [16:14:16]Processing tag 1014 (03F6) [16:14:16]Malloc new data [16:14:16]Processing tag 1015 (03F7) [16:14:16]Malloc new data [16:14:16]SetTLVBufToDocument err=0 [16:14:16]Processing tag 1007 (03EF) [16:14:16]Load OK [16:14:16]SetTLVBufToDocument [16:14:16]Processing tag 1014 (03F6) [16:14:16]Malloc new data [16:14:16]Processing tag 1015 (03F7) [16:14:16]Malloc new data [16:14:16]SetTLVBufToDocument err=0 [16:14:16]Processing tag 1007 (03EF) [16:14:16]Load OK [16:14:16]SetTLVBufToDocument [16:14:16]Processing tag 1014 (03F6) [16:14:16]Malloc new data [16:14:16]Processing tag 1015 (03F7) [16:14:16]Malloc new data [16:14:16]SetTLVBufToDocument err=0 [16:14:16]Processing tag 1007 (03EF) [16:14:16]Load OK [16:14:16]SetTLVBufToDocument [16:14:16]Processing tag 1014 (03F6) [16:14:16]Malloc new data [16:14:16]Processing tag 1015 (03F7) [16:14:16]Malloc new data [16:14:16]SetTLVBufToDocument err=0 [16:14:16]Processing tag 1007 (03EF) [16:14:16]Load OK [16:14:16]SetTLVBufToDocument [16:14:16]Processing tag 1014 (03F6) [16:14:16]Malloc new data [16:14:16]Processing tag 1015 (03F7) [16:14:16]Malloc new data [16:14:16]SetTLVBufToDocument err=0 [16:14:16]Processing tag 1007 (03EF) [16:14:16]Load OK [16:14:16]SetTLVBufToDocument [16:14:16]Processing tag 1014 (03F6) [16:14:16]Malloc new data [16:14:16]Processing tag 1015 (03F7) [16:14:16]Malloc new data [16:14:16]SetTLVBufToDocument err=0 [16:14:16]Processing tag 1007 (03EF) [16:14:16]Load OK [16:14:16]SetTLVBufToDocument [16:14:16]Processing tag 1014 (03F6) [16:14:16]Malloc new data [16:14:16]Processing tag 1015 (03F7) [16:14:16]Malloc new data [16:14:16]SetTLVBufToDocument err=0 [16:14:16]SetTLVBufToDocument err=0 [16:14:16]SetTLVBufToDocument err=0 [16:14:16]Processing tag 1132 (046C) [16:14:16]Load OK [16:14:16]SetTLVBufToDocument [16:14:16]Processing tag 1135 (046F) [16:14:16]Malloc new data [16:14:16]Processing tag 1201 (04B1) [16:14:16]Malloc new data [16:14:16]Processing tag 1136 (0470) [16:14:16]Malloc new data [16:14:16]Processing tag 1138 (0472) [16:14:16]Malloc new data [16:14:16]Processing tag 1024 (0400) [16:14:16]Load OK [16:14:16]SetTLVBufToDocument [16:14:16]Processing tag 1006 (03EE) [16:14:16]Load OK [16:14:16]SetTLVBufToDocument [16:14:16]Processing tag 1010 (03F2) [16:14:16]Malloc new data [16:14:16]Processing tag 1011 (03F3) [16:14:16]Malloc new data [16:14:16]SetTLVBufToDocument err=0 [16:14:16]Processing tag 1006 (03EE) [16:14:16]Load OK [16:14:16]SetTLVBufToDocument [16:14:16]Processing tag 1010 (03F2) [16:14:16]Malloc new data [16:14:16]Processing tag 1011 (03F3) [16:14:16]Malloc new data [16:14:16]SetTLVBufToDocument err=0 [16:14:16]Processing tag 1007 (03EF) [16:14:16]Load OK [16:14:16]SetTLVBufToDocument [16:14:16]Processing tag 1014 (03F6) [16:14:16]Malloc new data [16:14:16]Processing tag 1015 (03F7) [16:14:16]Malloc new data [16:14:16]SetTLVBufToDocument err=0 [16:14:16]Processing tag 1007 (03EF) [16:14:16]Load OK [16:14:16]SetTLVBufToDocument [16:14:16]Processing tag 1014 (03F6) [16:14:16]Malloc new data [16:14:16]Processing tag 1015 (03F7) [16:14:16]Malloc new data [16:14:16]SetTLVBufToDocument err=0 [16:14:16]Processing tag 1007 (03EF) [16:14:16]Load OK [16:14:16]SetTLVBufToDocument [16:14:16]Processing tag 1014 (03F6) [16:14:16]Malloc new data [16:14:16]Processing tag 1015 (03F7) [16:14:16]Malloc new data [16:14:16]SetTLVBufToDocument err=0 [16:14:16]Processing tag 1007 (03EF) [16:14:16]Load OK [16:14:16]SetTLVBufToDocument [16:14:16]Processing tag 1014 (03F6) [16:14:16]Malloc new data [16:14:16]Processing tag 1015 (03F7) [16:14:16]Malloc new data [16:14:16]SetTLVBufToDocument err=0 [16:14:16]Processing tag 1007 (03EF) [16:14:16]Load OK [16:14:16]SetTLVBufToDocument [16:14:16]Processing tag 1014 (03F6) [16:14:16]Malloc new data [16:14:16]Processing tag 1015 (03F7) [16:14:16]Malloc new data [16:14:16]SetTLVBufToDocument err=0 [16:14:16]Processing tag 1007 (03EF) [16:14:16]Load OK [16:14:16]SetTLVBufToDocument [16:14:16]Processing tag 1014 (03F6) [16:14:16]Malloc new data [16:14:16]Processing tag 1015 (03F7) [16:14:16]Malloc new data [16:14:16]SetTLVBufToDocument err=0 [16:14:16]Processing tag 1007 (03EF) [16:14:16]Load OK [16:14:16]SetTLVBufToDocument [16:14:16]Processing tag 1014 (03F6) [16:14:16]Malloc new data [16:14:16]Processing tag 1015 (03F7) [16:14:16]Malloc new data [16:14:16]SetTLVBufToDocument err=0 [16:14:16]SetTLVBufToDocument err=0 [16:14:16]SetTLVBufToDocument err=0 [16:14:16]Processing tag 1133 (046D) [16:14:16]Malloc new data [16:14:16]SetTLVBufToDocument err=0 [16:14:16]SetTLVBufToDocument err=0 [16:14:16]Malloc new data [16:14:16]SAM_PROTO_GetFMData [16:14:16]wFMCommunicate request_size=4 [16:14:16]MH_SAM_APDU [16:14:16]CAPDU: 80 13 03 00 [16:14:16]Write to MH i2c: E2 08 00 40 8D 80 13 03 00 00 00 00 00 4C [16:14:16]Write i2c OK [16:14:16]MH_I2C_Read... [16:14:17]OFD Sender: No OFD packet to send [16:14:17]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [16:14:17]Read from MH i2c: E2 [16:14:17]MH_I2C_Read... [16:14:17]Read from MH i2c: E2 FD 00 [16:14:17]MH_I2C_Read... [16:14:17]Read from MH i2c: E2 FD 00 40 8D 00 C3 04 85 04 BF 04 6E 04 04 00 52 6F 00 00 69 04 A1 00 6F 04 04 00 F8 6B 00 00 B1 04 04 00 D9 FB 7B AF 70 04 04 00 78 E9 41 70 72 04 04 00 61 12 3A 3F 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 E7 A0 A3 12 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 D7 99 8D 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 9C 00 6F 04 04 00 5A 03 00 00 B1 04 04 00 A8 5F 91 0C 70 04 04 00 A8 5F 91 0C 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 C1 B4 55 01 EF 03 09 00 F6 90 00 28 [16:14:17]RAPDU: C3 04 85 04 BF 04 6E 04 04 00 52 6F 00 00 69 04 A1 00 6F 04 04 00 F8 6B 00 00 B1 04 04 00 D9 FB 7B AF 70 04 04 00 78 E9 41 70 72 04 04 00 61 12 3A 3F 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 E7 A0 A3 12 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 D7 99 8D 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 9C 00 6F 04 04 00 5A 03 00 00 B1 04 04 00 A8 5F 91 0C 70 04 04 00 A8 5F 91 0C 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 C1 B4 55 01 EF 03 09 00 F6 90 00 [16:14:17]wFMCommunicate OK [16:14:17]wFMCommunicate request_size=4 [16:14:17]MH_SAM_APDU [16:14:17]CAPDU: 80 17 00 00 [16:14:17]Write to MH i2c: E2 08 00 41 8D 80 17 00 00 00 00 00 00 4E [16:14:17]Write i2c OK [16:14:17]MH_I2C_Read... [16:14:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:14:17]Read from MH i2c: E2 [16:14:17]MH_I2C_Read... [16:14:17]Read from MH i2c: E2 FD 00 [16:14:17]MH_I2C_Read... [16:14:17]Read from MH i2c: E2 FD 00 41 8D 00 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 4B 79 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 EE [16:14:17]RAPDU: 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 4B 79 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [16:14:18]wFMCommunicate OK [16:14:18]wFMCommunicate request_size=4 [16:14:18]MH_SAM_APDU [16:14:18]CAPDU: 80 17 00 00 [16:14:18]Write to MH i2c: E2 08 00 42 8D 80 17 00 00 00 00 00 00 4F [16:14:18]Write i2c OK [16:14:18]MH_I2C_Read... [16:14:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:14:18]Read from MH i2c: E2 [16:14:18]MH_I2C_Read... [16:14:18]Read from MH i2c: E2 FD 00 [16:14:18]MH_I2C_Read... [16:14:18]Read from MH i2c: E2 FD 00 42 8D 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 6D [16:14:18]RAPDU: 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [16:14:18]wFMCommunicate OK [16:14:18]wFMCommunicate request_size=4 [16:14:18]MH_SAM_APDU [16:14:18]CAPDU: 80 17 00 00 [16:14:18]Write to MH i2c: E2 08 00 43 8D 80 17 00 00 00 00 00 00 50 [16:14:18]Write i2c OK [16:14:18]MH_I2C_Read... [16:14:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:14:18]Read from MH i2c: E2 [16:14:18]MH_I2C_Read... [16:14:18]Read from MH i2c: E2 FD 00 [16:14:18]MH_I2C_Read... [16:14:18]Read from MH i2c: E2 FD 00 43 8D 00 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 C2 [16:14:19]RAPDU: 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [16:14:19]wFMCommunicate OK [16:14:19]wFMCommunicate request_size=4 [16:14:19]MH_SAM_APDU [16:14:19]CAPDU: 80 17 00 00 [16:14:19]Write to MH i2c: E2 08 00 44 8D 80 17 00 00 00 00 00 00 51 [16:14:19]Write i2c OK [16:14:19]MH_I2C_Read... [16:14:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 221! [16:14:19]Read from MH i2c: E2 [16:14:19]MH_I2C_Read... [16:14:19]Read from MH i2c: E2 E0 00 [16:14:19]MH_I2C_Read... [16:14:19]Read from MH i2c: E2 E0 00 44 8D 00 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 3B [16:14:19]RAPDU: 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:14:19]wFMCommunicate OK [16:14:19]SAM_PROTO_GetFMData done [16:14:19]FM_GetFMData:85 04 BF 04 6E 04 04 00 52 6F 00 00 69 04 A1 00 6F 04 04 00 F8 6B 00 00 B1 04 04 00 D9 FB 7B AF 70 04 04 00 78 E9 41 70 72 04 04 00 61 12 3A 3F 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 E7 A0 A3 12 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 D7 99 8D 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 9C 00 6F 04 04 00 5A 03 00 00 B1 04 04 00 A8 5F 91 0C 70 04 04 00 A8 5F 91 0C 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 C1 B4 55 01 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 4B 79 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [16:14:20]oper:6F 04 04 00 F8 6B 00 00 B1 04 04 00 D9 FB 7B AF 70 04 04 00 78 E9 41 70 72 04 04 00 61 12 3A 3F 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 E7 A0 A3 12 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 D7 99 8D 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 [16:14:20]total:D9 FB 7B AF [16:14:20]Malloc new data [16:14:20]oper:6F 04 04 00 5A 03 00 00 B1 04 04 00 A8 5F 91 0C 70 04 04 00 A8 5F 91 0C 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 C1 B4 55 01 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 4B 79 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [16:14:20]total:A8 5F 91 0C [16:14:20]Malloc new data [16:14:20]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 [16:14:20]total: [16:14:20]Malloc new data [16:14:20]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 [16:14:20]total: [16:14:20]Malloc new data [16:14:20]KKMPrepareXReportFMData err=0 [16:14:20]Х отчет ИНН: 02508201610067 Кассир: Джумагулова Н. 12.04.2024 16:14 Смена: 10 РНМ: 0000138879044617 ЗНМ: 0300000027 СНО: Общий режим Всего чеков: 173 ИТОГИ ПРИХОД Чеков: 169 Общий итог: 188049.18 Итого наличными: 117166.00 Итого безнал.: 70883.18 НДС 0% : 0.00 НДС 12% : 19974.55 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 1664.34 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 4 Общий итог: 15636.00 Итого наличными: 15636.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 1660.63 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 138.38 ИТОГИ РАСХОД Чеков: 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 Нал. в кассе: 101530.00 НС Приход: 29441382.01 НС Возвр.Прихода: 2108538.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000963154 [16:14:20]StoreToDocumentArchive [16:14:20]MH_GetDate [16:14:20]Write to MH i2c: F0 00 00 45 8D C1 [16:14:20]Write i2c OK [16:14:20]MH_I2C_Read... [16:14:20]Read from MH i2c: F0 [16:14:20]MH_I2C_Read... [16:14:20]Read from MH i2c: F0 09 00 [16:14:20]MH_I2C_Read... [16:14:20]Read from MH i2c: F0 09 00 45 8D 00 E5 5D 19 66 23 5B 8F 65 FD [16:14:20]shift 10 fd 1712938469 [16:14:20]Create dir for shift 0010 [16:14:20]save to /storage/0010/doc_1712938469 [16:14:20]save last doc name /storage/0010/doc_1712938469 to /storage/kkm_last_doc_name [16:14:20]save OK [16:14:20]Clear old archive folders... [16:14:20]NVStorageSaveData kkm_last_timestamp [16:14:20]File name is /storage/kkm_last_timestamp [16:14:20]Write 4 bytes [16:14:20]NVStorageSaveData done [16:14:20]ExternCall_PrintAddStr [16:14:20]wPrintStart [16:14:20]Write to MH i2c: 01 00 00 46 8D D3 [16:14:20]Write i2c OK [16:14:20]MH_I2C_Read... [16:14:20]Read from MH i2c: 01 [16:14:20]MH_I2C_Read... [16:14:20]Read from MH i2c: 01 07 00 [16:14:20]MH_I2C_Read... [16:14:20]Read from MH i2c: 01 07 00 46 8D 00 00 00 00 00 FF 0F E8 [16:14:20]RasterBufferAndPrint [16:14:20]line Х отчет [16:14:20]line ИНН: 02508201610067 [16:14:20]line Кассир: Джумагулова Н. [16:14:20]line 12.04.2024 16:14 [16:14:20]line Смена: 10 [16:14:20]line РНМ: 0000138879044617 [16:14:20]line ЗНМ: 0300000027 [16:14:20]line СНО: Общий режим [16:14:20]line Всего чеков: 173 [16:14:20]line ИТОГИ ПРИХОД [16:14:20]line Чеков: 169 [16:14:20]line Общий итог: 188049.18 [16:14:20]line Итого наличными: 117166.00 [16:14:20]line Итого безнал.: 70883.18 [16:14:20]line НДС 0% : 0.00 [16:14:20]line НДС 12% : 19974.55 [16:14:20]line НСП 0% : 0.00 [16:14:20]line НСП 1,50% : 0.00 [16:14:20]line НСП 0,50% : 0.00 [16:14:20]line НСП 5% : 0.00 [16:14:20]line НСП 3% : 0.00 [16:14:20]line НСП 2% : 0.00 [16:14:20]line НСП 1% : 1664.34 [16:14:20]line ИТОГИ ВОЗВРАТ ПРИХОДА [16:14:20]line Чеков: 4 [16:14:20]line Общий итог: 15636.00 [16:14:20]line Итого наличными: 15636.00 [16:14:20]line Итого безнал.: 0.00 [16:14:20]line НДС 0% : 0.00 [16:14:20]line НДС 12% : 1660.63 [16:14:20]line НСП 0% : 0.00 [16:14:20]line НСП 1,50% : 0.00 [16:14:20]line НСП 0,50% : 0.00 [16:14:20]line НСП 5% : 0.00 [16:14:20]line НСП 3% : 0.00 [16:14:20]line НСП 2% : 0.00 [16:14:20]line НСП 1% : 138.38 [16:14:20]line ИТОГИ РАСХОД [16:14:20]line Чеков: 0 [16:14:20]line Общий итог: 0.00 [16:14:20]line Итого наличными: 0.00 [16:14:20]line Итого безнал.: 0.00 [16:14:20]line НДС 0% : 0.00 [16:14:20]line НДС 12% : 0.00 [16:14:20]line НСП 0% : 0.00 [16:14:20]line НСП 1,50% : 0.00 [16:14:20]line НСП 0,50% : 0.00 [16:14:20]line НСП 5% : 0.00 [16:14:20]line НСП 3% : 0.00 [16:14:20]line НСП 2% : 0.00 [16:14:20]line НСП 1% : 0.00 [16:14:20]line ИТОГИ ВОЗВРАТ РАСХОДА [16:14:20]line Чеков: 0 [16:14:20]line Общий итог: 0.00 [16:14:20]line Итого наличными: 0.00 [16:14:20]line Итого безнал.: 0.00 [16:14:20]line НДС 0% : 0.00 [16:14:20]line НДС 12% : 0.00 [16:14:20]line НСП 0% : 0.00 [16:14:20]line НСП 1,50% : 0.00 [16:14:20]line НСП 0,50% : 0.00 [16:14:20]line НСП 5% : 0.00 [16:14:20]line НСП 3% : 0.00 [16:14:20]line НСП 2% : 0.00 [16:14:20]line НСП 1% : 0.00 [16:14:20]line Сумма внесений: 0.00 [16:14:20]line Сумма выплат: 0.00 [16:14:20]line Нал. в кассе: 101530.00 [16:14:20]line НС Приход: 29441382.01 [16:14:20]line НС Возвр.Прихода: 2108538.00 [16:14:20]line НС Расход: 0.00 [16:14:20]line НС Возвр.Расхода: 0.00 [16:14:20]line ФМ: 0000000000963154 [16:14:20]written 0, free lines is 4095 [16:14:21]Write to MH i2c: 01 00 00 91 8D 1E [16:14:21]Write i2c OK [16:14:21]MH_I2C_Read... [16:14:21]Read from MH i2c: 01 [16:14:21]MH_I2C_Read... [16:14:21]Read from MH i2c: 01 07 00 [16:14:21]MH_I2C_Read... [16:14:21]Read from MH i2c: 01 07 00 91 8D 00 00 00 00 00 A2 0A D1 [16:14:21]RasterBufferAndPrint [16:14:21]line [16:14:21]line [16:14:21]line [16:14:21]line [16:14:21]line [16:14:21]written 0, free lines is 2749 [16:14:21]MH_Cut [16:14:21]Write to MH i2c: D1 01 00 98 8D 01 F7 [16:14:21]Write i2c OK [16:14:21]MH_I2C_Read... [16:14:21]Read from MH i2c: D1 [16:14:21]MH_I2C_Read... [16:14:21]Read from MH i2c: D1 01 00 [16:14:21]MH_I2C_Read... [16:14:21]Read from MH i2c: D1 01 00 98 8D 00 F6 [16:14:21]Write to MH i2c: 01 00 00 99 8D 26 [16:14:21]Write i2c OK [16:14:21]MH_I2C_Read... [16:14:22]OFD Sender: No OFD packet to send [16:14:22]*** Cut start [16:14:22]*** Partial cut [16:14:22]*** CUTSNS_PIN = 1 [16:14:22]*** CUTSNS_PIN = 0 [16:14:23]*** Brake cut motor [16:14:23]Read from MH i2c: 01 [16:14:23]MH_I2C_Read... [16:14:23]*** Stop cut motor [16:14:23]*** Cut end [16:14:23]Read from MH i2c: 01 07 00 [16:14:23]MH_I2C_Read... [16:14:23]Read from MH i2c: 01 07 00 99 8D 00 00 00 00 00 FF 0F 3B [16:14:23]process_action x_report done [16:14:23]requested_data is exist [16:14:23]produce_requested_data [16:14:23]requested_item fd.num is exist - process it [16:14:23]SAM_PROTO_GetFieldsCounters [16:14:23]wFMCommunicate request_size=4 [16:14:23]MH_SAM_APDU [16:14:23]CAPDU: 80 13 00 00 [16:14:23]Write to MH i2c: E2 08 00 9A 8D 80 13 00 00 00 00 00 00 A3 [16:14:23]Write i2c OK [16:14:23]MH_I2C_Read... [16:14:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:14:23]Read from MH i2c: E2 [16:14:23]MH_I2C_Read... [16:14:23]Read from MH i2c: E2 62 00 [16:14:23]MH_I2C_Read... [16:14:23]Read from MH i2c: E2 62 00 9A 8D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 34 70 00 00 0E 04 04 00 71 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 FD [16:14:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 34 70 00 00 0E 04 04 00 71 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:14:23]wFMCommunicate OK [16:14:23]SAM_PROTO_GetFieldsCounters done [16:14:23]requested_item shift.num is exist - process it [16:14:23]requested_item shift.opened is exist - process it [16:14:23]req_shift_opened [16:14:23]FM_GetShiftState [16:14:23]SAM_PROTO_GetShiftState [16:14:23]wFMCommunicate request_size=4 [16:14:23]MH_SAM_APDU [16:14:23]CAPDU: 80 13 01 00 [16:14:23]Write to MH i2c: E2 08 00 9B 8D 80 13 01 00 00 00 00 00 A5 [16:14:23]Write i2c OK [16:14:23]MH_I2C_Read... [16:14:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:14:23]Read from MH i2c: E2 [16:14:23]MH_I2C_Read... [16:14:23]Read from MH i2c: E2 0E 00 [16:14:23]MH_I2C_Read... [16:14:23]Read from MH i2c: E2 0E 00 9B 8D 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 B6 [16:14:23]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [16:14:23]wFMCommunicate OK [16:14:23]SAM_PROTO_GetShiftState done [16:14:23]FM_GetShiftState done [16:14:23]req_shift_opened done [16:14:23]requested_item shift.open_date is exist - process it [16:14:23]req_shift_open_date [16:14:23]req_shift_open_date done [16:14:23]produce_requested_data done [16:14:23]produce_requested_data return {"fd.num":28724,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [16:14:23]process_action_free x_report [16:14:23]json_value_free [16:14:23]json_value_free done [16:14:23]process_json_proto returns [16:14:23]Send response to host [16:14:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":28724,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [16:14:23]free response buf [16:14:23]execute_script done [16:14:23]execute_script returns [16:14:23]free content buf [16:14:23]Sock 5.Close socket [16:14:23]Sock 5.Thread stoped [16:14:27]OFD Sender: No OFD packet to send [16:14:32]OFD Sender: No OFD packet to send [16:14:37]OFD Sender: No OFD packet to send [16:14:42]OFD Sender: No OFD packet to send [16:14:44]accept exits with 6 [16:14:44]New connection [16:14:44]New thread 3066498404 created [16:14:44]Thread 3066641764 joined [16:14:44]Waiting for new connection... [16:14:44] Sock 6.Parse request [16:14:44]Sock 6.Check first char [16:14:44]Sock 6.First char is OK [16:14:44]request: POST /json_proto HTTP/1.0 [16:14:44]Method: POST [16:14:44]URL: /json_proto [16:14:44]Method is POST - this is cgi request [16:14:44]url: /json_proto [16:14:44]query_string will be loaded in cgi processing [16:14:44]execute_cgi json_proto POST (null) [16:14:44]execute_cgi path=json_proto method=POST [16:14:44]POST find Content-Length [16:14:44]Host: 172.17.33.3:8080 [16:14:44]Content-Length: 215 [16:14:44]Content-Type: application/json [16:14:44] [16:14:44]POST finish read [16:14:44]Found Content-Length = 215 [16:14:44]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" ] } } [16:14:44]execute_script... [16:14:44]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" ] } } [16:14:44]POST & json_proto [16:14:44]process_json_proto [16:14:44]json parsed OK: [16:14:44]protocol is kg_v1.0 [16:14:44]action value=get_value [16:14:44]process_action get_value [16:14:44]cmd_get_value [16:14:44]process_action get_value done [16:14:44]requested_data is exist [16:14:44]produce_requested_data [16:14:44]requested_item kkm.sn is exist - process it [16:14:44]requested_item kkm.ver is exist - process it [16:14:44]requested_item fm.sn is exist - process it [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 9C 8D 80 11 00 00 00 00 00 00 A3 [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 9C 8D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 F2 [16:14:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [16:14:44]wFMCommunicate OK [16:14:44]requested_item fd.num is exist - process it [16:14:44]SAM_PROTO_GetFieldsCounters [16:14:44]wFMCommunicate request_size=4 [16:14:44]MH_SAM_APDU [16:14:44]CAPDU: 80 13 00 00 [16:14:44]Write to MH i2c: E2 08 00 9D 8D 80 13 00 00 00 00 00 00 A6 [16:14:44]Write i2c OK [16:14:44]MH_I2C_Read... [16:14:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:14:44]Read from MH i2c: E2 [16:14:44]MH_I2C_Read... [16:14:44]Read from MH i2c: E2 62 00 [16:14:44]MH_I2C_Read... [16:14:44]Read from MH i2c: E2 62 00 9D 8D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 34 70 00 00 0E 04 04 00 71 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 00 [16:14:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 34 70 00 00 0E 04 04 00 71 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:14:44]wFMCommunicate OK [16:14:44]SAM_PROTO_GetFieldsCounters done [16:14:44]requested_item shift.num is exist - process it [16:14:44]requested_item shift.opened is exist - process it [16:14:44]req_shift_opened [16:14:44]FM_GetShiftState [16:14:44]SAM_PROTO_GetShiftState [16:14:44]wFMCommunicate request_size=4 [16:14:44]MH_SAM_APDU [16:14:44]CAPDU: 80 13 01 00 [16:14:44]Write to MH i2c: E2 08 00 9E 8D 80 13 01 00 00 00 00 00 A8 [16:14:44]Write i2c OK [16:14:44]MH_I2C_Read... [16:14:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:14:44]Read from MH i2c: E2 [16:14:44]MH_I2C_Read... [16:14:44]Read from MH i2c: E2 0E 00 [16:14:44]MH_I2C_Read... [16:14:44]Read from MH i2c: E2 0E 00 9E 8D 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 B9 [16:14:44]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [16:14:44]wFMCommunicate OK [16:14:44]SAM_PROTO_GetShiftState done [16:14:44]FM_GetShiftState done [16:14:44]req_shift_opened done [16:14:44]requested_item shift.open_date is exist - process it [16:14:44]req_shift_open_date [16:14:44]req_shift_open_date done [16:14:44]produce_requested_data done [16:14:44]produce_requested_data return {"kkm.sn":"0300000027","kkm.ver":"001","fm.sn":"0000000000963154","fd.num":28724,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416} [16:14:44]process_action_free get_value [16:14:44]json_value_free [16:14:44]json_value_free done [16:14:44]process_json_proto returns [16:14:44]Send response to host [16:14:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000027","kkm.ver":"001","fm.sn":"0000000000963154","fd.num":28724,"shift.num":113,"shift.opened":1,"shift.open_date":1712881416}}} [16:14:44]free response buf [16:14:44]execute_script done [16:14:44]execute_script returns [16:14:44]free content buf [16:14:44]Sock 6.Close socket [16:14:44]Sock 6.Thread stoped [16:14:44]accept exits with 5 [16:14:44]New connection [16:14:44]New thread 3066641764 created [16:14:44]Thread 3066498404 joined [16:14:44]Waiting for new connection... [16:14:44] Sock 5.Parse request [16:14:44]Sock 5.Check first char [16:14:44]Sock 5.First char is OK [16:14:44]request: POST /json_proto HTTP/1.0 [16:14:44]Method: POST [16:14:44]URL: /json_proto [16:14:44]Method is POST - this is cgi request [16:14:44]url: /json_proto [16:14:44]query_string will be loaded in cgi processing [16:14:44]execute_cgi json_proto POST (null) [16:14:44]execute_cgi path=json_proto method=POST [16:14:44]POST find Content-Length [16:14:44]Host: 172.17.33.3:8080 [16:14:44]Content-Length: 331 [16:14:44]Content-Type: application/json [16:14:44] [16:14:44]POST finish read [16:14:44]Found Content-Length = 331 [16:14:44]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" ] } } [16:14:44]execute_script... [16:14:44]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" ] } } [16:14:44]POST & json_proto [16:14:44]process_json_proto [16:14:44]json parsed OK: [16:14:44]protocol is kg_v1.0 [16:14:44]action value=get_value [16:14:44]process_action get_value [16:14:44]cmd_get_value [16:14:44]process_action get_value done [16:14:44]requested_data is exist [16:14:44]produce_requested_data [16:14:44]requested_item fm.sale.total is exist - process it [16:14:44]SAM_PROTO_GetFMData [16:14:44]wFMCommunicate request_size=4 [16:14:44]MH_SAM_APDU [16:14:44]CAPDU: 80 13 03 00 [16:14:44]Write to MH i2c: E2 08 00 9F 8D 80 13 03 00 00 00 00 00 AB [16:14:44]Write i2c OK [16:14:44]MH_I2C_Read... [16:14:45]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [16:14:45]Read from MH i2c: E2 [16:14:45]MH_I2C_Read... [16:14:45]Read from MH i2c: E2 FD 00 [16:14:45]MH_I2C_Read... [16:14:45]Read from MH i2c: E2 FD 00 9F 8D 00 C3 04 85 04 BF 04 6E 04 04 00 52 6F 00 00 69 04 A1 00 6F 04 04 00 F8 6B 00 00 B1 04 04 00 D9 FB 7B AF 70 04 04 00 78 E9 41 70 72 04 04 00 61 12 3A 3F 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 E7 A0 A3 12 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 D7 99 8D 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 9C 00 6F 04 04 00 5A 03 00 00 B1 04 04 00 A8 5F 91 0C 70 04 04 00 A8 5F 91 0C 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 C1 B4 55 01 EF 03 09 00 F6 90 00 87 [16:14:45]RAPDU: C3 04 85 04 BF 04 6E 04 04 00 52 6F 00 00 69 04 A1 00 6F 04 04 00 F8 6B 00 00 B1 04 04 00 D9 FB 7B AF 70 04 04 00 78 E9 41 70 72 04 04 00 61 12 3A 3F 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 E7 A0 A3 12 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 D7 99 8D 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 9C 00 6F 04 04 00 5A 03 00 00 B1 04 04 00 A8 5F 91 0C 70 04 04 00 A8 5F 91 0C 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 C1 B4 55 01 EF 03 09 00 F6 90 00 [16:14:45]wFMCommunicate OK [16:14:45]wFMCommunicate request_size=4 [16:14:45]MH_SAM_APDU [16:14:45]CAPDU: 80 17 00 00 [16:14:45]Write to MH i2c: E2 08 00 A0 8D 80 17 00 00 00 00 00 00 AD [16:14:45]Write i2c OK [16:14:45]MH_I2C_Read... [16:14:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:14:45]Read from MH i2c: E2 [16:14:45]MH_I2C_Read... [16:14:45]Read from MH i2c: E2 FD 00 [16:14:45]MH_I2C_Read... [16:14:45]Read from MH i2c: E2 FD 00 A0 8D 00 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 4B 79 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 4D [16:14:45]RAPDU: 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 4B 79 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [16:14:45]wFMCommunicate OK [16:14:45]wFMCommunicate request_size=4 [16:14:45]MH_SAM_APDU [16:14:45]CAPDU: 80 17 00 00 [16:14:45]Write to MH i2c: E2 08 00 A1 8D 80 17 00 00 00 00 00 00 AE [16:14:45]Write i2c OK [16:14:45]MH_I2C_Read... [16:14:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:14:46]Read from MH i2c: E2 [16:14:46]MH_I2C_Read... [16:14:46]Read from MH i2c: E2 FD 00 [16:14:46]MH_I2C_Read... [16:14:46]Read from MH i2c: E2 FD 00 A1 8D 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 CC [16:14:46]RAPDU: 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [16:14:46]wFMCommunicate OK [16:14:46]wFMCommunicate request_size=4 [16:14:46]MH_SAM_APDU [16:14:46]CAPDU: 80 17 00 00 [16:14:46]Write to MH i2c: E2 08 00 A2 8D 80 17 00 00 00 00 00 00 AF [16:14:46]Write i2c OK [16:14:46]MH_I2C_Read... [16:14:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:14:46]Read from MH i2c: E2 [16:14:46]MH_I2C_Read... [16:14:46]Read from MH i2c: E2 FD 00 [16:14:46]MH_I2C_Read... [16:14:46]Read from MH i2c: E2 FD 00 A2 8D 00 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 21 [16:14:46]RAPDU: 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [16:14:46]wFMCommunicate OK [16:14:46]wFMCommunicate request_size=4 [16:14:46]MH_SAM_APDU [16:14:46]CAPDU: 80 17 00 00 [16:14:46]Write to MH i2c: E2 08 00 A3 8D 80 17 00 00 00 00 00 00 B0 [16:14:46]Write i2c OK [16:14:46]MH_I2C_Read... [16:14:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 221! [16:14:46]Read from MH i2c: E2 [16:14:46]MH_I2C_Read... [16:14:46]Read from MH i2c: E2 E0 00 [16:14:47]MH_I2C_Read... [16:14:47]Read from MH i2c: E2 E0 00 A3 8D 00 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9A [16:14:47]RAPDU: 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:14:47]wFMCommunicate OK [16:14:47]SAM_PROTO_GetFMData done [16:14:47]requested_item fm.sale_refund.total is exist - process it [16:14:47]requested_item fm.buy.total is exist - process it [16:14:47]requested_item shift.sale.total is exist - process it [16:14:47]SAM_PROTO_GetShiftData [16:14:47]wFMCommunicate request_size=4 [16:14:47]MH_SAM_APDU [16:14:47]CAPDU: 80 13 02 00 [16:14:47]Write to MH i2c: E2 08 00 A4 8D 80 13 02 00 00 00 00 00 AF [16:14:47]Write i2c OK [16:14:47]MH_I2C_Read... [16:14:47]OFD Sender: No OFD packet to send [16:14:47]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [16:14:47]Read from MH i2c: E2 [16:14:47]MH_I2C_Read... [16:14:47]Read from MH i2c: E2 FD 00 [16:14:47]MH_I2C_Read... [16:14:47]Read from MH i2c: E2 FD 00 A4 8D 00 BB 04 AA 04 B7 04 6E 04 04 00 AD 00 00 00 69 04 9D 00 6F 04 04 00 A9 00 00 00 B1 04 04 00 B6 F0 1E 01 70 04 03 00 F8 C7 B2 72 04 03 00 BE 28 6C 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 8F 7A 1E 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 22 8A 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 D0 DB 17 70 04 03 00 D0 DB 17 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 AF 88 02 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 33 [16:14:47]RAPDU: BB 04 AA 04 B7 04 6E 04 04 00 AD 00 00 00 69 04 9D 00 6F 04 04 00 A9 00 00 00 B1 04 04 00 B6 F0 1E 01 70 04 03 00 F8 C7 B2 72 04 03 00 BE 28 6C 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 8F 7A 1E 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 22 8A 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 D0 DB 17 70 04 03 00 D0 DB 17 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 AF 88 02 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [16:14:47]wFMCommunicate OK [16:14:47]wFMCommunicate request_size=4 [16:14:47]MH_SAM_APDU [16:14:47]CAPDU: 80 17 00 00 [16:14:47]Write to MH i2c: E2 08 00 A5 8D 80 17 00 00 00 00 00 00 B2 [16:14:47]Write i2c OK [16:14:47]MH_I2C_Read... [16:14:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:14:48]Read from MH i2c: E2 [16:14:48]MH_I2C_Read... [16:14:48]Read from MH i2c: E2 FD 00 [16:14:48]MH_I2C_Read... [16:14:48]Read from MH i2c: E2 FD 00 A5 8D 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 0E 36 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 90 00 A0 [16:14:48]RAPDU: 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 0E 36 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 90 00 [16:14:48]wFMCommunicate OK [16:14:48]wFMCommunicate request_size=4 [16:14:48]MH_SAM_APDU [16:14:48]CAPDU: 80 17 00 00 [16:14:48]Write to MH i2c: E2 08 00 A6 8D 80 17 00 00 00 00 00 00 B3 [16:14:48]Write i2c OK [16:14:48]MH_I2C_Read... [16:14:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:14:48]Read from MH i2c: E2 [16:14:48]MH_I2C_Read... [16:14:48]Read from MH i2c: E2 FD 00 [16:14:48]MH_I2C_Read... [16:14:48]Read from MH i2c: E2 FD 00 A6 8D 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 90 00 DF [16:14:48]RAPDU: 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 90 00 [16:14:48]wFMCommunicate OK [16:14:48]wFMCommunicate request_size=4 [16:14:48]MH_SAM_APDU [16:14:48]CAPDU: 80 17 00 00 [16:14:48]Write to MH i2c: E2 08 00 A7 8D 80 17 00 00 00 00 00 00 B4 [16:14:48]Write i2c OK [16:14:48]MH_I2C_Read... [16:14:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:14:49]Read from MH i2c: E2 [16:14:49]MH_I2C_Read... [16:14:49]Read from MH i2c: E2 FD 00 [16:14:49]MH_I2C_Read... [16:14:49]Read from MH i2c: E2 FD 00 A7 8D 00 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 29 [16:14:49]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [16:14:49]wFMCommunicate OK [16:14:49]wFMCommunicate request_size=4 [16:14:49]MH_SAM_APDU [16:14:49]CAPDU: 80 17 00 00 [16:14:49]Write to MH i2c: E2 08 00 A8 8D 80 17 00 00 00 00 00 00 B5 [16:14:49]Write i2c OK [16:14:49]MH_I2C_Read... [16:14:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 213! [16:14:49]Read from MH i2c: E2 [16:14:49]MH_I2C_Read... [16:14:49]Read from MH i2c: E2 D8 00 [16:14:49]MH_I2C_Read... [16:14:49]Read from MH i2c: E2 D8 00 A8 8D 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 9C [16:14:49]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [16:14:49]wFMCommunicate OK [16:14:49]SAM_PROTO_GetShiftData done [16:14:49]requested_item shift.sale.total_cash is exist - process it [16:14:49]requested_item shift.sale_refund.total is exist - process it [16:14:49]requested_item shift.sale_refund.total_cash is exist - process it [16:14:49]requested_item shift.buy.total is exist - process it [16:14:49]requested_item shift.buy.total_cash is exist - process it [16:14:49]produce_requested_data done [16:14:49]produce_requested_data return {"fm.sale.total":29441382.01,"fm.sale_refund.total":2108538.00,"fm.buy.total":0.00,"shift.sale.total":188049.18,"shift.sale.total_cash":117166.00,"shift.sale_refund.total":15636.00,"shift.sale_refund.total_cash":15636.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [16:14:49]process_action_free get_value [16:14:49]json_value_free [16:14:49]json_value_free done [16:14:49]process_json_proto returns [16:14:49]Send response to host [16:14:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":29441382.01,"fm.sale_refund.total":2108538.00,"fm.buy.total":0.00,"shift.sale.total":188049.18,"shift.sale.total_cash":117166.00,"shift.sale_refund.total":15636.00,"shift.sale_refund.total_cash":15636.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [16:14:49]free response buf [16:14:49]execute_script done [16:14:49]execute_script returns [16:14:49]free content buf [16:14:49]Sock 5.Close socket [16:14:49]Sock 5.Thread stoped [16:14:49]accept exits with 6 [16:14:49]New connection [16:14:49]New thread 3066498404 created [16:14:49]Thread 3066641764 joined [16:14:49]Waiting for new connection... [16:14:49] Sock 6.Parse request [16:14:49]Sock 6.Check first char [16:14:49]Sock 6.First char is OK [16:14:49]request: POST /json_proto HTTP/1.0 [16:14:49]Method: POST [16:14:49]URL: /json_proto [16:14:49]Method is POST - this is cgi request [16:14:49]url: /json_proto [16:14:49]query_string will be loaded in cgi processing [16:14:49]execute_cgi json_proto POST (null) [16:14:49]execute_cgi path=json_proto method=POST [16:14:49]POST find Content-Length [16:14:49]Host: 172.17.33.3:8080 [16:14:49]Content-Length: 331 [16:14:49]Content-Type: application/json [16:14:49] [16:14:49]POST finish read [16:14:49]Found Content-Length = 331 [16:14:49]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" ] } } [16:14:49]execute_script... [16:14:49]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" ] } } [16:14:49]POST & json_proto [16:14:49]process_json_proto [16:14:49]json parsed OK: [16:14:49]protocol is kg_v1.0 [16:14:49]action value=get_value [16:14:49]process_action get_value [16:14:49]cmd_get_value [16:14:49]process_action get_value done [16:14:49]requested_data is exist [16:14:49]produce_requested_data [16:14:49]requested_item fm.sale.total is exist - process it [16:14:49]SAM_PROTO_GetFMData [16:14:49]wFMCommunicate request_size=4 [16:14:49]MH_SAM_APDU [16:14:49]CAPDU: 80 13 03 00 [16:14:49]Write to MH i2c: E2 08 00 A9 8D 80 13 03 00 00 00 00 00 B5 [16:14:49]Write i2c OK [16:14:49]MH_I2C_Read... [16:14:50]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [16:14:50]Read from MH i2c: E2 [16:14:50]MH_I2C_Read... [16:14:50]Read from MH i2c: E2 FD 00 [16:14:50]MH_I2C_Read... [16:14:50]Read from MH i2c: E2 FD 00 A9 8D 00 C3 04 85 04 BF 04 6E 04 04 00 52 6F 00 00 69 04 A1 00 6F 04 04 00 F8 6B 00 00 B1 04 04 00 D9 FB 7B AF 70 04 04 00 78 E9 41 70 72 04 04 00 61 12 3A 3F 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 E7 A0 A3 12 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 D7 99 8D 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 9C 00 6F 04 04 00 5A 03 00 00 B1 04 04 00 A8 5F 91 0C 70 04 04 00 A8 5F 91 0C 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 C1 B4 55 01 EF 03 09 00 F6 90 00 91 [16:14:50]RAPDU: C3 04 85 04 BF 04 6E 04 04 00 52 6F 00 00 69 04 A1 00 6F 04 04 00 F8 6B 00 00 B1 04 04 00 D9 FB 7B AF 70 04 04 00 78 E9 41 70 72 04 04 00 61 12 3A 3F 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 E7 A0 A3 12 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 D7 99 8D 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 9C 00 6F 04 04 00 5A 03 00 00 B1 04 04 00 A8 5F 91 0C 70 04 04 00 A8 5F 91 0C 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 C1 B4 55 01 EF 03 09 00 F6 90 00 [16:14:50]wFMCommunicate OK [16:14:50]wFMCommunicate request_size=4 [16:14:50]MH_SAM_APDU [16:14:50]CAPDU: 80 17 00 00 [16:14:50]Write to MH i2c: E2 08 00 AA 8D 80 17 00 00 00 00 00 00 B7 [16:14:50]Write i2c OK [16:14:50]MH_I2C_Read... [16:14:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:14:50]Read from MH i2c: E2 [16:14:50]MH_I2C_Read... [16:14:50]Read from MH i2c: E2 FD 00 [16:14:50]MH_I2C_Read... [16:14:50]Read from MH i2c: E2 FD 00 AA 8D 00 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 4B 79 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 57 [16:14:50]RAPDU: 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 4B 79 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [16:14:51]wFMCommunicate OK [16:14:51]wFMCommunicate request_size=4 [16:14:51]MH_SAM_APDU [16:14:51]CAPDU: 80 17 00 00 [16:14:51]Write to MH i2c: E2 08 00 AB 8D 80 17 00 00 00 00 00 00 B8 [16:14:51]Write i2c OK [16:14:51]MH_I2C_Read... [16:14:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:14:51]Read from MH i2c: E2 [16:14:51]MH_I2C_Read... [16:14:51]Read from MH i2c: E2 FD 00 [16:14:51]MH_I2C_Read... [16:14:51]Read from MH i2c: E2 FD 00 AB 8D 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 D6 [16:14:51]RAPDU: 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [16:14:51]wFMCommunicate OK [16:14:51]wFMCommunicate request_size=4 [16:14:51]MH_SAM_APDU [16:14:51]CAPDU: 80 17 00 00 [16:14:51]Write to MH i2c: E2 08 00 AC 8D 80 17 00 00 00 00 00 00 B9 [16:14:51]Write i2c OK [16:14:51]MH_I2C_Read... [16:14:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:14:51]Read from MH i2c: E2 [16:14:51]MH_I2C_Read... [16:14:51]Read from MH i2c: E2 FD 00 [16:14:51]MH_I2C_Read... [16:14:51]Read from MH i2c: E2 FD 00 AC 8D 00 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 2B [16:14:52]RAPDU: 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [16:14:52]wFMCommunicate OK [16:14:52]wFMCommunicate request_size=4 [16:14:52]MH_SAM_APDU [16:14:52]CAPDU: 80 17 00 00 [16:14:52]Write to MH i2c: E2 08 00 AD 8D 80 17 00 00 00 00 00 00 BA [16:14:52]Write i2c OK [16:14:52]MH_I2C_Read... [16:14:52]OFD Sender: No OFD packet to send [16:14:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 221! [16:14:52]Read from MH i2c: E2 [16:14:52]MH_I2C_Read... [16:14:52]Read from MH i2c: E2 E0 00 [16:14:52]MH_I2C_Read... [16:14:52]Read from MH i2c: E2 E0 00 AD 8D 00 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A4 [16:14:52]RAPDU: 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:14:52]wFMCommunicate OK [16:14:52]SAM_PROTO_GetFMData done [16:14:52]requested_item fm.sale_refund.total is exist - process it [16:14:52]requested_item fm.buy.total is exist - process it [16:14:52]requested_item shift.sale.total is exist - process it [16:14:52]SAM_PROTO_GetShiftData [16:14:52]wFMCommunicate request_size=4 [16:14:52]MH_SAM_APDU [16:14:52]CAPDU: 80 13 02 00 [16:14:52]Write to MH i2c: E2 08 00 AE 8D 80 13 02 00 00 00 00 00 B9 [16:14:52]Write i2c OK [16:14:52]MH_I2C_Read... [16:14:53]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [16:14:53]Read from MH i2c: E2 [16:14:53]MH_I2C_Read... [16:14:53]Read from MH i2c: E2 FD 00 [16:14:53]MH_I2C_Read... [16:14:53]Read from MH i2c: E2 FD 00 AE 8D 00 BB 04 AA 04 B7 04 6E 04 04 00 AD 00 00 00 69 04 9D 00 6F 04 04 00 A9 00 00 00 B1 04 04 00 B6 F0 1E 01 70 04 03 00 F8 C7 B2 72 04 03 00 BE 28 6C 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 8F 7A 1E 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 22 8A 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 D0 DB 17 70 04 03 00 D0 DB 17 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 AF 88 02 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 3D [16:14:53]RAPDU: BB 04 AA 04 B7 04 6E 04 04 00 AD 00 00 00 69 04 9D 00 6F 04 04 00 A9 00 00 00 B1 04 04 00 B6 F0 1E 01 70 04 03 00 F8 C7 B2 72 04 03 00 BE 28 6C 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 8F 7A 1E 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 22 8A 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 D0 DB 17 70 04 03 00 D0 DB 17 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 AF 88 02 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [16:14:53]wFMCommunicate OK [16:14:53]wFMCommunicate request_size=4 [16:14:53]MH_SAM_APDU [16:14:53]CAPDU: 80 17 00 00 [16:14:53]Write to MH i2c: E2 08 00 AF 8D 80 17 00 00 00 00 00 00 BC [16:14:53]Write i2c OK [16:14:53]MH_I2C_Read... [16:14:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:14:53]Read from MH i2c: E2 [16:14:53]MH_I2C_Read... [16:14:53]Read from MH i2c: E2 FD 00 [16:14:53]MH_I2C_Read... [16:14:53]Read from MH i2c: E2 FD 00 AF 8D 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 0E 36 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 90 00 AA [16:14:54]RAPDU: 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 0E 36 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 90 00 [16:14:54]wFMCommunicate OK [16:14:54]wFMCommunicate request_size=4 [16:14:54]MH_SAM_APDU [16:14:54]CAPDU: 80 17 00 00 [16:14:54]Write to MH i2c: E2 08 00 B0 8D 80 17 00 00 00 00 00 00 BD [16:14:54]Write i2c OK [16:14:54]MH_I2C_Read... [16:14:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:14:54]Read from MH i2c: E2 [16:14:54]MH_I2C_Read... [16:14:54]Read from MH i2c: E2 FD 00 [16:14:54]MH_I2C_Read... [16:14:54]Read from MH i2c: E2 FD 00 B0 8D 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 90 00 E9 [16:14:54]RAPDU: 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 90 00 [16:14:54]wFMCommunicate OK [16:14:54]wFMCommunicate request_size=4 [16:14:54]MH_SAM_APDU [16:14:54]CAPDU: 80 17 00 00 [16:14:54]Write to MH i2c: E2 08 00 B1 8D 80 17 00 00 00 00 00 00 BE [16:14:54]Write i2c OK [16:14:54]MH_I2C_Read... [16:14:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:14:54]Read from MH i2c: E2 [16:14:54]MH_I2C_Read... [16:14:54]Read from MH i2c: E2 FD 00 [16:14:54]MH_I2C_Read... [16:14:54]Read from MH i2c: E2 FD 00 B1 8D 00 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 33 [16:14:55]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [16:14:55]wFMCommunicate OK [16:14:55]wFMCommunicate request_size=4 [16:14:55]MH_SAM_APDU [16:14:55]CAPDU: 80 17 00 00 [16:14:55]Write to MH i2c: E2 08 00 B2 8D 80 17 00 00 00 00 00 00 BF [16:14:55]Write i2c OK [16:14:55]MH_I2C_Read... [16:14:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 213! [16:14:55]Read from MH i2c: E2 [16:14:55]MH_I2C_Read... [16:14:55]Read from MH i2c: E2 D8 00 [16:14:55]MH_I2C_Read... [16:14:55]Read from MH i2c: E2 D8 00 B2 8D 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 A6 [16:14:55]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [16:14:55]wFMCommunicate OK [16:14:55]SAM_PROTO_GetShiftData done [16:14:55]requested_item shift.sale.total_cash is exist - process it [16:14:55]requested_item shift.sale_refund.total is exist - process it [16:14:55]requested_item shift.sale_refund.total_cash is exist - process it [16:14:55]requested_item shift.buy.total is exist - process it [16:14:55]requested_item shift.buy.total_cash is exist - process it [16:14:55]produce_requested_data done [16:14:55]produce_requested_data return {"fm.sale.total":29441382.01,"fm.sale_refund.total":2108538.00,"fm.buy.total":0.00,"shift.sale.total":188049.18,"shift.sale.total_cash":117166.00,"shift.sale_refund.total":15636.00,"shift.sale_refund.total_cash":15636.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [16:14:55]process_action_free get_value [16:14:55]json_value_free [16:14:55]json_value_free done [16:14:55]process_json_proto returns [16:14:55]Send response to host [16:14:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":29441382.01,"fm.sale_refund.total":2108538.00,"fm.buy.total":0.00,"shift.sale.total":188049.18,"shift.sale.total_cash":117166.00,"shift.sale_refund.total":15636.00,"shift.sale_refund.total_cash":15636.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [16:14:55]free response buf [16:14:55]execute_script done [16:14:55]execute_script returns [16:14:55]free content buf [16:14:55]Sock 6.Close socket [16:14:55]Sock 6.Thread stoped [16:14:55]accept exits with 5 [16:14:55]New connection [16:14:55]New thread 3066641764 created [16:14:55]Thread 3066498404 joined [16:14:55]Waiting for new connection... [16:14:55] Sock 5.Parse request [16:14:55]Sock 5.Check first char [16:14:55]Sock 5.First char is OK [16:14:55]request: POST /json_proto HTTP/1.0 [16:14:55]Method: POST [16:14:55]URL: /json_proto [16:14:55]Method is POST - this is cgi request [16:14:55]url: /json_proto [16:14:55]query_string will be loaded in cgi processing [16:14:55]execute_cgi json_proto POST (null) [16:14:55]execute_cgi path=json_proto method=POST [16:14:55]POST find Content-Length [16:14:55]Host: 172.17.33.3:8080 [16:14:55]Content-Length: 278 [16:14:55]Content-Type: application/json [16:14:55] [16:14:55]POST finish read [16:14:55]Found Content-Length = 278 [16:14:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:14:55]execute_script... [16:14:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:14:55]POST & json_proto [16:14:55]process_json_proto [16:14:55]json parsed OK: [16:14:55]protocol is kg_v1.0 [16:14:55]action value=close_shift [16:14:55]process_action close_shift [16:14:55]cmd_close_shift [16:14:55]MH_GetDate [16:14:55]Write to MH i2c: F0 00 00 B3 8D 2F [16:14:55]Write i2c OK [16:14:55]MH_I2C_Read... [16:14:55]Read from MH i2c: F0 [16:14:55]MH_I2C_Read... [16:14:55]Read from MH i2c: F0 09 00 [16:14:55]MH_I2C_Read... [16:14:55]Read from MH i2c: F0 09 00 B3 8D 00 08 5E 19 66 23 5B 8F 65 8F [16:14:55]GetLastDocTimeStamp 1712938461 [16:14:55]current date 1712938504 [16:14:55]FM_GetShiftState [16:14:55]SAM_PROTO_GetShiftState [16:14:55]wFMCommunicate request_size=4 [16:14:55]MH_SAM_APDU [16:14:55]CAPDU: 80 13 01 00 [16:14:55]Write to MH i2c: E2 08 00 B4 8D 80 13 01 00 00 00 00 00 BE [16:14:55]Write i2c OK [16:14:55]MH_I2C_Read... [16:14:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:14:55]Read from MH i2c: E2 [16:14:55]MH_I2C_Read... [16:14:55]Read from MH i2c: E2 0E 00 [16:14:55]MH_I2C_Read... [16:14:55]Read from MH i2c: E2 0E 00 B4 8D 00 09 00 01 08 7F 18 66 00 00 00 00 90 00 CF [16:14:55]RAPDU: 09 00 01 08 7F 18 66 00 00 00 00 90 00 [16:14:55]wFMCommunicate OK [16:14:55]SAM_PROTO_GetShiftState done [16:14:55]FM_GetShiftState done [16:14:55]KKMCreateCloseShiftDocument [16:14:55]Load OK [16:14:55]Malloc new data [16:14:55]MH_GetDate [16:14:55]Write to MH i2c: F0 00 00 B5 8D 31 [16:14:55]Write i2c OK [16:14:55]MH_I2C_Read... [16:14:55]Read from MH i2c: F0 [16:14:55]MH_I2C_Read... [16:14:55]Read from MH i2c: F0 09 00 [16:14:55]MH_I2C_Read... [16:14:55]Read from MH i2c: F0 09 00 B5 8D 00 08 5E 19 66 23 5B 8F 65 91 [16:14:55]Malloc new data [16:14:55]Malloc new data [16:14:55]Malloc new data [16:14:55]Malloc new data [16:14:55]KKMCreateCloseShiftDocument OK [16:14:55]KKMSetCloseShiftData OK [16:14:55]ProcessDocumentItem done err = 0, tmpTLVsize=77 [16:14:55]tlvbuf is 01D30AA0 [16:14:55]KKMLoadAndSignCloseShiftData [16:14:55]SAM_PROTO_ProcessDocument [16:14:55]wFMCommunicate request_size=9 [16:14:55]MH_SAM_APDU [16:14:55]CAPDU: 80 15 01 00 04 05 00 4D 00 [16:14:55]Write to MH i2c: E2 0C 00 B6 8D 80 15 01 00 04 00 05 00 4D 00 00 00 1C [16:14:56]Write i2c OK [16:14:56]MH_I2C_Read... [16:14:56]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [16:14:56]Read from MH i2c: E2 [16:14:56]MH_I2C_Read... [16:14:56]Read from MH i2c: E2 03 00 [16:14:56]MH_I2C_Read... [16:14:56]Read from MH i2c: E2 03 00 B6 8D 00 90 00 B7 [16:14:56]RAPDU: 90 00 [16:14:56]wFMCommunicate OK [16:14:56]wFMCommunicate request_size=23 [16:14:56]MH_SAM_APDU [16:14:56]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [16:14:56]Write to MH i2c: E2 1A 00 B7 8D 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 B9 [16:14:56]Write i2c OK [16:14:56]MH_I2C_Read... [16:14:56]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [16:14:56]Read from MH i2c: E2 [16:14:56]MH_I2C_Read... [16:14:56]Read from MH i2c: E2 03 00 [16:14:56]MH_I2C_Read... [16:14:56]Read from MH i2c: E2 03 00 B7 8D 00 90 00 B8 [16:14:56]RAPDU: 90 00 [16:14:56]wFMCommunicate OK [16:14:56]wFMCommunicate request_size=36 [16:14:56]MH_SAM_APDU [16:14:56]CAPDU: 80 15 02 00 1F FD 03 1B 00 D0 94 D0 B6 D1 83 D0 BC D0 B0 D0 B3 D1 83 D0 BB D0 BE D0 B2 D0 B0 20 D0 9D 2E 20 [16:14:56]Write to MH i2c: E2 27 00 B8 8D 80 15 02 00 1F 00 FD 03 1B 00 D0 94 D0 B6 D1 83 D0 BC D0 B0 D0 B3 D1 83 D0 BB D0 BE D0 B2 D0 B0 20 D0 9D 2E 20 00 00 35 [16:14:56]Write i2c OK [16:14:56]MH_I2C_Read... [16:14:56]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [16:14:56]Read from MH i2c: E2 [16:14:56]MH_I2C_Read... [16:14:56]Read from MH i2c: E2 03 00 [16:14:56]MH_I2C_Read... [16:14:56]Read from MH i2c: E2 03 00 B8 8D 00 90 00 B9 [16:14:56]RAPDU: 90 00 [16:14:56]wFMCommunicate OK [16:14:56]wFMCommunicate request_size=13 [16:14:56]MH_SAM_APDU [16:14:56]CAPDU: 80 15 02 00 08 F4 03 04 00 08 5E 19 66 [16:14:56]Write to MH i2c: E2 10 00 B9 8D 80 15 02 00 08 00 F4 03 04 00 08 5E 19 66 00 00 B6 [16:14:56]Write i2c OK [16:14:56]MH_I2C_Read... [16:14:56]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [16:14:56]Read from MH i2c: E2 [16:14:56]MH_I2C_Read... [16:14:56]Read from MH i2c: E2 03 00 [16:14:56]MH_I2C_Read... [16:14:56]Read from MH i2c: E2 03 00 B9 8D 00 90 00 BA [16:14:56]RAPDU: 90 00 [16:14:56]wFMCommunicate OK [16:14:56]wFMCommunicate request_size=25 [16:14:56]MH_SAM_APDU [16:14:56]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 [16:14:56]Write to MH i2c: E2 1C 00 BA 8D 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 00 00 4A [16:14:56]Write i2c OK [16:14:56]MH_I2C_Read... [16:14:56]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [16:14:56]Read from MH i2c: E2 [16:14:56]MH_I2C_Read... [16:14:56]Read from MH i2c: E2 03 00 [16:14:56]MH_I2C_Read... [16:14:56]Read from MH i2c: E2 03 00 BA 8D 00 90 00 BB [16:14:56]RAPDU: 90 00 [16:14:56]wFMCommunicate OK [16:14:56]wFMCommunicate request_size=4 [16:14:56]MH_SAM_APDU [16:14:56]CAPDU: 80 15 03 00 [16:14:56]Write to MH i2c: E2 08 00 BB 8D 80 15 03 00 00 00 00 00 C9 [16:14:56]Write i2c OK [16:14:56]MH_I2C_Read... [16:14:57]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [16:14:57]Read from MH i2c: E2 [16:14:57]MH_I2C_Read... [16:14:57]Read from MH i2c: E2 FD 00 [16:14:57]MH_I2C_Read... [16:14:57]Read from MH i2c: E2 FD 00 BB 8D 00 FE 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 35 70 00 00 0E 04 04 00 71 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AF 00 00 00 AA 04 B7 04 6E 04 04 00 AD 00 00 00 69 04 9D 00 6F 04 04 00 A9 00 00 00 B1 04 04 00 B6 F0 1E 01 70 04 03 00 F8 C7 B2 72 04 03 00 BE 28 6C 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 8F 7A 1E 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 22 8A 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 D0 DB 90 00 B3 [16:14:57]RAPDU: FE 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 35 70 00 00 0E 04 04 00 71 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AF 00 00 00 AA 04 B7 04 6E 04 04 00 AD 00 00 00 69 04 9D 00 6F 04 04 00 A9 00 00 00 B1 04 04 00 B6 F0 1E 01 70 04 03 00 F8 C7 B2 72 04 03 00 BE 28 6C 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 8F 7A 1E 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 22 8A 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 D0 DB 90 00 [16:14:57]wFMCommunicate OK [16:14:57]SAM_PROTO_ProcessDocument answer len = 1278 [16:14:57]SAM_PROTO_ProcessDocument remain to read = 1030 [16:14:57]wFMCommunicate request_size=4 [16:14:57]MH_SAM_APDU [16:14:57]CAPDU: 80 17 00 00 [16:14:57]Write to MH i2c: E2 08 00 BC 8D 80 17 00 00 00 00 00 00 C9 [16:14:57]Write i2c OK [16:14:57]MH_I2C_Read... [16:14:57]OFD Sender: No OFD packet to send [16:14:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:14:57]Read from MH i2c: E2 [16:14:57]MH_I2C_Read... [16:14:57]Read from MH i2c: E2 FD 00 [16:14:57]MH_I2C_Read... [16:14:57]Read from MH i2c: E2 FD 00 BC 8D 00 17 70 04 03 00 D0 DB 17 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 AF 88 02 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 0E 36 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 FB [16:14:57]RAPDU: 17 70 04 03 00 D0 DB 17 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 AF 88 02 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 0E 36 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [16:14:58]wFMCommunicate OK [16:14:58]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [16:14:58]SAM_PROTO_ProcessDocument remain to read = 780 [16:14:58]wFMCommunicate request_size=4 [16:14:58]MH_SAM_APDU [16:14:58]CAPDU: 80 17 00 00 [16:14:58]Write to MH i2c: E2 08 00 BD 8D 80 17 00 00 00 00 00 00 CA [16:14:58]Write i2c OK [16:14:58]MH_I2C_Read... [16:14:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:14:58]Read from MH i2c: E2 [16:14:58]MH_I2C_Read... [16:14:58]Read from MH i2c: E2 FD 00 [16:14:58]MH_I2C_Read... [16:14:58]Read from MH i2c: E2 FD 00 BD 8D 00 01 00 04 F7 03 00 00 EF 03 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 90 00 30 [16:14:58]RAPDU: 01 00 04 F7 03 00 00 EF 03 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 90 00 [16:14:58]wFMCommunicate OK [16:14:58]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [16:14:58]SAM_PROTO_ProcessDocument remain to read = 530 [16:14:58]wFMCommunicate request_size=4 [16:14:58]MH_SAM_APDU [16:14:58]CAPDU: 80 17 00 00 [16:14:58]Write to MH i2c: E2 08 00 BE 8D 80 17 00 00 00 00 00 00 CB [16:14:58]Write i2c OK [16:14:58]MH_I2C_Read... [16:14:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:14:58]Read from MH i2c: E2 [16:14:58]MH_I2C_Read... [16:14:58]Read from MH i2c: E2 FD 00 [16:14:58]MH_I2C_Read... [16:14:58]Read from MH i2c: E2 FD 00 BE 8D 00 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 69 [16:14:59]RAPDU: 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [16:14:59]wFMCommunicate OK [16:14:59]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [16:14:59]SAM_PROTO_ProcessDocument remain to read = 280 [16:14:59]wFMCommunicate request_size=4 [16:14:59]MH_SAM_APDU [16:14:59]CAPDU: 80 17 00 00 [16:14:59]Write to MH i2c: E2 08 00 BF 8D 80 17 00 00 00 00 00 00 CC [16:14:59]Write i2c OK [16:14:59]MH_I2C_Read... [16:14:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:14:59]Read from MH i2c: E2 [16:14:59]MH_I2C_Read... [16:14:59]Read from MH i2c: E2 FD 00 [16:14:59]MH_I2C_Read... [16:14:59]Read from MH i2c: E2 FD 00 BF 8D 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 7B [16:14:59]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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 90 00 [16:14:59]wFMCommunicate OK [16:14:59]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [16:14:59]SAM_PROTO_ProcessDocument remain to read = 30 [16:14:59]wFMCommunicate request_size=4 [16:14:59]MH_SAM_APDU [16:14:59]CAPDU: 80 17 00 00 [16:14:59]Write to MH i2c: E2 08 00 C0 8D 80 17 00 00 00 00 00 00 CD [16:14:59]Write i2c OK [16:14:59]MH_I2C_Read... [16:14:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 30! [16:14:59]Read from MH i2c: E2 [16:14:59]MH_I2C_Read... [16:14:59]Read from MH i2c: E2 21 00 [16:14:59]MH_I2C_Read... [16:14:59]Read from MH i2c: E2 21 00 C0 8D 00 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 E0 47 A5 28 D6 23 90 00 00 [16:14:59]RAPDU: 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 E0 47 A5 28 D6 23 90 00 [16:14:59]wFMCommunicate OK [16:14:59]SAM_PROTO_ProcessDocument received (without SW) 30 bytes [16:14:59]SAM_PROTO_ProcessDocument done [16:14:59]1209 (1) - 1.0 - номер версии ФФД [16:14:59]1041 (16) - 0000000000963154 - номер ФМ [16:14:59]1040 (4) - 28725 - номер ФД [16:15:00]1038 (4) - 113 - номер смены [16:15:00]1118 (4) - 173 - количество кассовых чеков за смену [16:15:00]1111 (4) - 175 - общее количество ФД за смену [16:15:00]1194 (1207) - счетчики итогов смены [16:15:00] 1134 (4) - 173 - количество чеков со всеми признаками расчетов [16:15:00] 1129 (157) - счетчики операций «приход» [16:15:00] 1135 (4) - 169 - количество чеков по признаку расчетов [16:15:00] 1201 (4) - 188049.18 - общая итоговая сумма в чеках [16:15:00] 1136 (3) - 117166.00 - итоговая сумма в чеках наличными [16:15:00] 1138 (3) - 70883.18 - итоговая сумма в чеках безналичными [16:15:00] 1024 (123) - суммы налогов [16:15:00] 1006 (9) - суммы НДС [16:15:00] 1010 (1) - 0% - код ставки НДС [16:15:00] 1011 (0) - 0.00 - сумма НДС по ставке [16:15:00] 1006 (12) - суммы НДС [16:15:00] 1010 (1) - 12% - код ставки НДС [16:15:00] 1011 (3) - 19974.55 - сумма НДС по ставке [16:15:00] 1007 (9) - суммы НСП [16:15:00] 1014 (1) - 0% - код ставки НСП [16:15:00] 1015 (0) - 0.00 - сумма НСП по ставке [16:15:00] 1007 (12) - суммы НСП [16:15:00] 1014 (1) - 1% - код ставки НСП [16:15:00] 1015 (3) - 1664.34 - сумма НСП по ставке [16:15:00] 1007 (9) - суммы НСП [16:15:00] 1014 (1) - 2% - код ставки НСП [16:15:00] 1015 (0) - 0.00 - сумма НСП по ставке [16:15:00] 1007 (9) - суммы НСП [16:15:00] 1014 (1) - 3% - код ставки НСП [16:15:00] 1015 (0) - 0.00 - сумма НСП по ставке [16:15:00] 1007 (9) - суммы НСП [16:15:00] 1014 (1) - 5% - код ставки НСП [16:15:00] 1015 (0) - 0.00 - сумма НСП по ставке [16:15:00] 1007 (9) - суммы НСП [16:15:00] 1014 (1) - 0,50% - код ставки НСП [16:15:00] 1015 (0) - 0.00 - сумма НСП по ставке [16:15:00] 1007 (9) - суммы НСП [16:15:00] 1014 (1) - 1,50% - код ставки НСП [16:15:00] 1015 (0) - 0.00 - сумма НСП по ставке [16:15:00] 1130 (152) - счетчики операций «возврат прихода» [16:15:00] 1135 (4) - 4 - количество чеков по признаку расчетов [16:15:00] 1201 (3) - 15636.00 - общая итоговая сумма в чеках [16:15:00] 1136 (3) - 15636.00 - итоговая сумма в чеках наличными [16:15:00] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [16:15:00] 1024 (122) - суммы налогов [16:15:00] 1006 (9) - суммы НДС [16:15:00] 1010 (1) - 0% - код ставки НДС [16:15:00] 1011 (0) - 0.00 - сумма НДС по ставке [16:15:00] 1006 (12) - суммы НДС [16:15:00] 1010 (1) - 12% - код ставки НДС [16:15:00] 1011 (3) - 1660.63 - сумма НДС по ставке [16:15:00] 1007 (9) - суммы НСП [16:15:00] 1014 (1) - 0% - код ставки НСП [16:15:00] 1015 (0) - 0.00 - сумма НСП по ставке [16:15:00] 1007 (11) - суммы НСП [16:15:00] 1014 (1) - 1% - код ставки НСП [16:15:00] 1015 (2) - 138.38 - сумма НСП по ставке [16:15:00] 1007 (9) - суммы НСП [16:15:00] 1014 (1) - 2% - код ставки НСП [16:15:00] 1015 (0) - 0.00 - сумма НСП по ставке [16:15:00] 1007 (9) - суммы НСП [16:15:00] 1014 (1) - 3% - код ставки НСП [16:15:00] 1015 (0) - 0.00 - сумма НСП по ставке [16:15:00] 1007 (9) - суммы НСП [16:15:00] 1014 (1) - 5% - код ставки НСП [16:15:00] 1015 (0) - 0.00 - сумма НСП по ставке [16:15:00] 1007 (9) - суммы НСП [16:15:00] 1014 (1) - 0,50% - код ставки НСП [16:15:00] 1015 (0) - 0.00 - сумма НСП по ставке [16:15:00] 1007 (9) - суммы НСП [16:15:00] 1014 (1) - 1,50% - код ставки НСП [16:15:00] 1015 (0) - 0.00 - сумма НСП по ставке [16:15:00] 1131 (141) - счетчики операций «расход» [16:15:00] 1135 (4) - 0 - количество чеков по признаку расчетов [16:15:00] 1201 (0) - 0.00 - общая итоговая сумма в чеках [16:15:00] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [16:15:00] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [16:15:00] 1024 (117) - суммы налогов [16:15:00] 1006 (9) - суммы НДС [16:15:00] 1010 (1) - 0% - код ставки НДС [16:15:00] 1011 (0) - 0.00 - сумма НДС по ставке [16:15:00] 1006 (9) - суммы НДС [16:15:00] 1010 (1) - 12% - код ставки НДС [16:15:00] 1011 (0) - 0.00 - сумма НДС по ставке [16:15:00] 1007 (9) - суммы НСП [16:15:00] 1014 (1) - 0% - код ставки НСП [16:15:00] 1015 (0) - 0.00 - сумма НСП по ставке [16:15:00] 1007 (9) - суммы НСП [16:15:00] 1014 (1) - 1% - код ставки НСП [16:15:00] 1015 (0) - 0.00 - сумма НСП по ставке [16:15:00] 1007 (9) - суммы НСП [16:15:00] 1014 (1) - 2% - код ставки НСП [16:15:00] 1015 (0) - 0.00 - сумма НСП по ставке [16:15:00] 1007 (9) - суммы НСП [16:15:00] 1014 (1) - 3% - код ставки НСП [16:15:00] 1015 (0) - 0.00 - сумма НСП по ставке [16:15:00] 1007 (9) - суммы НСП [16:15:00] 1014 (1) - 5% - код ставки НСП [16:15:00] 1015 (0) - 0.00 - сумма НСП по ставке [16:15:00] 1007 (9) - суммы НСП [16:15:00] 1014 (1) - 0,50% - код ставки НСП [16:15:00] 1015 (0) - 0.00 - сумма НСП по ставке [16:15:00] 1007 (9) - суммы НСП [16:15:00] 1014 (1) - 1,50% - код ставки НСП [16:15:00] 1015 (0) - 0.00 - сумма НСП по ставке [16:15:00] 1132 (141) - счетчики операций «возврат расхода» [16:15:00] 1135 (4) - 0 - количество чеков по признаку расчетов [16:15:00] 1201 (0) - 0.00 - общая итоговая сумма в чеках [16:15:00] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [16:15:00] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [16:15:00] 1024 (117) - суммы налогов [16:15:00] 1006 (9) - суммы НДС [16:15:00] 1010 (1) - 0% - код ставки НДС [16:15:00] 1011 (0) - 0.00 - сумма НДС по ставке [16:15:00] 1006 (9) - суммы НДС [16:15:00] 1010 (1) - 12% - код ставки НДС [16:15:00] 1011 (0) - 0.00 - сумма НДС по ставке [16:15:00] 1007 (9) - суммы НСП [16:15:00] 1014 (1) - 0% - код ставки НСП [16:15:00] 1015 (0) - 0.00 - сумма НСП по ставке [16:15:00] 1007 (9) - суммы НСП [16:15:00] 1014 (1) - 1% - код ставки НСП [16:15:00] 1015 (0) - 0.00 - сумма НСП по ставке [16:15:00] 1007 (9) - суммы НСП [16:15:00] 1014 (1) - 2% - код ставки НСП [16:15:00] 1015 (0) - 0.00 - сумма НСП по ставке [16:15:00] 1007 (9) - суммы НСП [16:15:00] 1014 (1) - 3% - код ставки НСП [16:15:00] 1015 (0) - 0.00 - сумма НСП по ставке [16:15:00] 1007 (9) - суммы НСП [16:15:00] 1014 (1) - 5% - код ставки НСП [16:15:00] 1015 (0) - 0.00 - сумма НСП по ставке [16:15:00] 1007 (9) - суммы НСП [16:15:00] 1014 (1) - 0,50% - код ставки НСП [16:15:00] 1015 (0) - 0.00 - сумма НСП по ставке [16:15:00] 1007 (9) - суммы НСП [16:15:00] 1014 (1) - 1,50% - код ставки НСП [16:15:00] 1015 (0) - 0.00 - сумма НСП по ставке [16:15:00] 1133 (588) - - счетчики коррекции - не используются [16:15:00]1077 (6) - 246598318216739 - ФПД [16:15:00]SetTLVBufToDocument [16:15:00]Processing tag 1209 (04B9) [16:15:00]Malloc new data [16:15:00]Processing tag 1041 (0411) [16:15:00]Processing tag 1040 (0410) [16:15:00]Malloc new data [16:15:00]Processing tag 1038 (040E) [16:15:00]Malloc new data [16:15:00]Processing tag 1118 (045E) [16:15:00]Malloc new data [16:15:00]Processing tag 1111 (0457) [16:15:00]Malloc new data [16:15:00]Processing tag 1194 (04AA) [16:15:00]Load OK [16:15:00]SetTLVBufToDocument [16:15:00]Processing tag 1134 (046E) [16:15:00]Malloc new data [16:15:00]Processing tag 1129 (0469) [16:15:00]Load OK [16:15:00]SetTLVBufToDocument [16:15:00]Processing tag 1135 (046F) [16:15:00]Malloc new data [16:15:00]Processing tag 1201 (04B1) [16:15:00]Malloc new data [16:15:00]Processing tag 1136 (0470) [16:15:00]Malloc new data [16:15:00]Processing tag 1138 (0472) [16:15:00]Malloc new data [16:15:00]Processing tag 1024 (0400) [16:15:00]Load OK [16:15:00]SetTLVBufToDocument [16:15:00]Processing tag 1006 (03EE) [16:15:00]Load OK [16:15:00]SetTLVBufToDocument [16:15:00]Processing tag 1010 (03F2) [16:15:00]Malloc new data [16:15:00]Processing tag 1011 (03F3) [16:15:00]Malloc new data [16:15:00]SetTLVBufToDocument err=0 [16:15:00]Processing tag 1006 (03EE) [16:15:00]Load OK [16:15:00]SetTLVBufToDocument [16:15:00]Processing tag 1010 (03F2) [16:15:00]Malloc new data [16:15:00]Processing tag 1011 (03F3) [16:15:00]Malloc new data [16:15:00]SetTLVBufToDocument err=0 [16:15:00]Processing tag 1007 (03EF) [16:15:00]Load OK [16:15:00]SetTLVBufToDocument [16:15:00]Processing tag 1014 (03F6) [16:15:00]Malloc new data [16:15:00]Processing tag 1015 (03F7) [16:15:00]Malloc new data [16:15:00]SetTLVBufToDocument err=0 [16:15:00]Processing tag 1007 (03EF) [16:15:00]Load OK [16:15:00]SetTLVBufToDocument [16:15:00]Processing tag 1014 (03F6) [16:15:00]Malloc new data [16:15:00]Processing tag 1015 (03F7) [16:15:00]Malloc new data [16:15:00]SetTLVBufToDocument err=0 [16:15:00]Processing tag 1007 (03EF) [16:15:00]Load OK [16:15:00]SetTLVBufToDocument [16:15:00]Processing tag 1014 (03F6) [16:15:00]Malloc new data [16:15:00]Processing tag 1015 (03F7) [16:15:00]Malloc new data [16:15:00]SetTLVBufToDocument err=0 [16:15:00]Processing tag 1007 (03EF) [16:15:00]Load OK [16:15:00]SetTLVBufToDocument [16:15:00]Processing tag 1014 (03F6) [16:15:00]Malloc new data [16:15:00]Processing tag 1015 (03F7) [16:15:00]Malloc new data [16:15:00]SetTLVBufToDocument err=0 [16:15:00]Processing tag 1007 (03EF) [16:15:00]Load OK [16:15:00]SetTLVBufToDocument [16:15:00]Processing tag 1014 (03F6) [16:15:00]Malloc new data [16:15:00]Processing tag 1015 (03F7) [16:15:00]Malloc new data [16:15:00]SetTLVBufToDocument err=0 [16:15:00]Processing tag 1007 (03EF) [16:15:00]Load OK [16:15:00]SetTLVBufToDocument [16:15:00]Processing tag 1014 (03F6) [16:15:00]Malloc new data [16:15:00]Processing tag 1015 (03F7) [16:15:00]Malloc new data [16:15:00]SetTLVBufToDocument err=0 [16:15:00]Processing tag 1007 (03EF) [16:15:00]Load OK [16:15:00]SetTLVBufToDocument [16:15:00]Processing tag 1014 (03F6) [16:15:00]Malloc new data [16:15:00]Processing tag 1015 (03F7) [16:15:00]Malloc new data [16:15:00]SetTLVBufToDocument err=0 [16:15:00]SetTLVBufToDocument err=0 [16:15:00]SetTLVBufToDocument err=0 [16:15:00]Processing tag 1130 (046A) [16:15:00]Load OK [16:15:00]SetTLVBufToDocument [16:15:00]Processing tag 1135 (046F) [16:15:00]Malloc new data [16:15:00]Processing tag 1201 (04B1) [16:15:00]Malloc new data [16:15:00]Processing tag 1136 (0470) [16:15:00]Malloc new data [16:15:00]Processing tag 1138 (0472) [16:15:00]Malloc new data [16:15:00]Processing tag 1024 (0400) [16:15:00]Load OK [16:15:00]SetTLVBufToDocument [16:15:00]Processing tag 1006 (03EE) [16:15:00]Load OK [16:15:00]SetTLVBufToDocument [16:15:00]Processing tag 1010 (03F2) [16:15:00]Malloc new data [16:15:00]Processing tag 1011 (03F3) [16:15:00]Malloc new data [16:15:00]SetTLVBufToDocument err=0 [16:15:00]Processing tag 1006 (03EE) [16:15:00]Load OK [16:15:00]SetTLVBufToDocument [16:15:00]Processing tag 1010 (03F2) [16:15:00]Malloc new data [16:15:00]Processing tag 1011 (03F3) [16:15:00]Malloc new data [16:15:00]SetTLVBufToDocument err=0 [16:15:00]Processing tag 1007 (03EF) [16:15:00]Load OK [16:15:00]SetTLVBufToDocument [16:15:00]Processing tag 1014 (03F6) [16:15:00]Malloc new data [16:15:00]Processing tag 1015 (03F7) [16:15:00]Malloc new data [16:15:00]SetTLVBufToDocument err=0 [16:15:00]Processing tag 1007 (03EF) [16:15:00]Load OK [16:15:00]SetTLVBufToDocument [16:15:00]Processing tag 1014 (03F6) [16:15:00]Malloc new data [16:15:00]Processing tag 1015 (03F7) [16:15:00]Malloc new data [16:15:00]SetTLVBufToDocument err=0 [16:15:00]Processing tag 1007 (03EF) [16:15:00]Load OK [16:15:00]SetTLVBufToDocument [16:15:00]Processing tag 1014 (03F6) [16:15:00]Malloc new data [16:15:00]Processing tag 1015 (03F7) [16:15:00]Malloc new data [16:15:00]SetTLVBufToDocument err=0 [16:15:00]Processing tag 1007 (03EF) [16:15:00]Load OK [16:15:00]SetTLVBufToDocument [16:15:00]Processing tag 1014 (03F6) [16:15:00]Malloc new data [16:15:00]Processing tag 1015 (03F7) [16:15:00]Malloc new data [16:15:00]SetTLVBufToDocument err=0 [16:15:00]Processing tag 1007 (03EF) [16:15:00]Load OK [16:15:00]SetTLVBufToDocument [16:15:00]Processing tag 1014 (03F6) [16:15:00]Malloc new data [16:15:00]Processing tag 1015 (03F7) [16:15:00]Malloc new data [16:15:00]SetTLVBufToDocument err=0 [16:15:00]Processing tag 1007 (03EF) [16:15:00]Load OK [16:15:00]SetTLVBufToDocument [16:15:00]Processing tag 1014 (03F6) [16:15:00]Malloc new data [16:15:00]Processing tag 1015 (03F7) [16:15:00]Malloc new data [16:15:00]SetTLVBufToDocument err=0 [16:15:00]Processing tag 1007 (03EF) [16:15:00]Load OK [16:15:00]SetTLVBufToDocument [16:15:00]Processing tag 1014 (03F6) [16:15:00]Malloc new data [16:15:00]Processing tag 1015 (03F7) [16:15:00]Malloc new data [16:15:00]SetTLVBufToDocument err=0 [16:15:00]SetTLVBufToDocument err=0 [16:15:00]SetTLVBufToDocument err=0 [16:15:00]Processing tag 1131 (046B) [16:15:00]Load OK [16:15:00]SetTLVBufToDocument [16:15:00]Processing tag 1135 (046F) [16:15:00]Malloc new data [16:15:00]Processing tag 1201 (04B1) [16:15:00]Malloc new data [16:15:00]Processing tag 1136 (0470) [16:15:00]Malloc new data [16:15:00]Processing tag 1138 (0472) [16:15:00]Malloc new data [16:15:00]Processing tag 1024 (0400) [16:15:00]Load OK [16:15:00]SetTLVBufToDocument [16:15:00]Processing tag 1006 (03EE) [16:15:00]Load OK [16:15:00]SetTLVBufToDocument [16:15:00]Processing tag 1010 (03F2) [16:15:00]Malloc new data [16:15:00]Processing tag 1011 (03F3) [16:15:00]Malloc new data [16:15:00]SetTLVBufToDocument err=0 [16:15:00]Processing tag 1006 (03EE) [16:15:00]Load OK [16:15:00]SetTLVBufToDocument [16:15:00]Processing tag 1010 (03F2) [16:15:00]Malloc new data [16:15:00]Processing tag 1011 (03F3) [16:15:00]Malloc new data [16:15:00]SetTLVBufToDocument err=0 [16:15:00]Processing tag 1007 (03EF) [16:15:00]Load OK [16:15:00]SetTLVBufToDocument [16:15:01]Processing tag 1014 (03F6) [16:15:01]Malloc new data [16:15:01]Processing tag 1015 (03F7) [16:15:01]Malloc new data [16:15:01]SetTLVBufToDocument err=0 [16:15:01]Processing tag 1007 (03EF) [16:15:01]Load OK [16:15:01]SetTLVBufToDocument [16:15:01]Processing tag 1014 (03F6) [16:15:01]Malloc new data [16:15:01]Processing tag 1015 (03F7) [16:15:01]Malloc new data [16:15:01]SetTLVBufToDocument err=0 [16:15:01]Processing tag 1007 (03EF) [16:15:01]Load OK [16:15:01]SetTLVBufToDocument [16:15:01]Processing tag 1014 (03F6) [16:15:01]Malloc new data [16:15:01]Processing tag 1015 (03F7) [16:15:01]Malloc new data [16:15:01]SetTLVBufToDocument err=0 [16:15:01]Processing tag 1007 (03EF) [16:15:01]Load OK [16:15:01]SetTLVBufToDocument [16:15:01]Processing tag 1014 (03F6) [16:15:01]Malloc new data [16:15:01]Processing tag 1015 (03F7) [16:15:01]Malloc new data [16:15:01]SetTLVBufToDocument err=0 [16:15:01]Processing tag 1007 (03EF) [16:15:01]Load OK [16:15:01]SetTLVBufToDocument [16:15:01]Processing tag 1014 (03F6) [16:15:01]Malloc new data [16:15:01]Processing tag 1015 (03F7) [16:15:01]Malloc new data [16:15:01]SetTLVBufToDocument err=0 [16:15:01]Processing tag 1007 (03EF) [16:15:01]Load OK [16:15:01]SetTLVBufToDocument [16:15:01]Processing tag 1014 (03F6) [16:15:01]Malloc new data [16:15:01]Processing tag 1015 (03F7) [16:15:01]Malloc new data [16:15:01]SetTLVBufToDocument err=0 [16:15:01]Processing tag 1007 (03EF) [16:15:01]Load OK [16:15:01]SetTLVBufToDocument [16:15:01]Processing tag 1014 (03F6) [16:15:01]Malloc new data [16:15:01]Processing tag 1015 (03F7) [16:15:01]Malloc new data [16:15:01]SetTLVBufToDocument err=0 [16:15:01]SetTLVBufToDocument err=0 [16:15:01]SetTLVBufToDocument err=0 [16:15:01]Processing tag 1132 (046C) [16:15:01]Load OK [16:15:01]SetTLVBufToDocument [16:15:01]Processing tag 1135 (046F) [16:15:01]Malloc new data [16:15:01]Processing tag 1201 (04B1) [16:15:01]Malloc new data [16:15:01]Processing tag 1136 (0470) [16:15:01]Malloc new data [16:15:01]Processing tag 1138 (0472) [16:15:01]Malloc new data [16:15:01]Processing tag 1024 (0400) [16:15:01]Load OK [16:15:01]SetTLVBufToDocument [16:15:01]Processing tag 1006 (03EE) [16:15:01]Load OK [16:15:01]SetTLVBufToDocument [16:15:01]Processing tag 1010 (03F2) [16:15:01]Malloc new data [16:15:01]Processing tag 1011 (03F3) [16:15:01]Malloc new data [16:15:01]SetTLVBufToDocument err=0 [16:15:01]Processing tag 1006 (03EE) [16:15:01]Load OK [16:15:01]SetTLVBufToDocument [16:15:01]Processing tag 1010 (03F2) [16:15:01]Malloc new data [16:15:01]Processing tag 1011 (03F3) [16:15:01]Malloc new data [16:15:01]SetTLVBufToDocument err=0 [16:15:01]Processing tag 1007 (03EF) [16:15:01]Load OK [16:15:01]SetTLVBufToDocument [16:15:01]Processing tag 1014 (03F6) [16:15:01]Malloc new data [16:15:01]Processing tag 1015 (03F7) [16:15:01]Malloc new data [16:15:01]SetTLVBufToDocument err=0 [16:15:01]Processing tag 1007 (03EF) [16:15:01]Load OK [16:15:01]SetTLVBufToDocument [16:15:01]Processing tag 1014 (03F6) [16:15:01]Malloc new data [16:15:01]Processing tag 1015 (03F7) [16:15:01]Malloc new data [16:15:01]SetTLVBufToDocument err=0 [16:15:01]Processing tag 1007 (03EF) [16:15:01]Load OK [16:15:01]SetTLVBufToDocument [16:15:01]Processing tag 1014 (03F6) [16:15:01]Malloc new data [16:15:01]Processing tag 1015 (03F7) [16:15:01]Malloc new data [16:15:01]SetTLVBufToDocument err=0 [16:15:01]Processing tag 1007 (03EF) [16:15:01]Load OK [16:15:01]SetTLVBufToDocument [16:15:01]Processing tag 1014 (03F6) [16:15:01]Malloc new data [16:15:01]Processing tag 1015 (03F7) [16:15:01]Malloc new data [16:15:01]SetTLVBufToDocument err=0 [16:15:01]Processing tag 1007 (03EF) [16:15:01]Load OK [16:15:01]SetTLVBufToDocument [16:15:01]Processing tag 1014 (03F6) [16:15:01]Malloc new data [16:15:01]Processing tag 1015 (03F7) [16:15:01]Malloc new data [16:15:01]SetTLVBufToDocument err=0 [16:15:01]Processing tag 1007 (03EF) [16:15:01]Load OK [16:15:01]SetTLVBufToDocument [16:15:01]Processing tag 1014 (03F6) [16:15:01]Malloc new data [16:15:01]Processing tag 1015 (03F7) [16:15:01]Malloc new data [16:15:01]SetTLVBufToDocument err=0 [16:15:01]Processing tag 1007 (03EF) [16:15:01]Load OK [16:15:01]SetTLVBufToDocument [16:15:01]Processing tag 1014 (03F6) [16:15:01]Malloc new data [16:15:01]Processing tag 1015 (03F7) [16:15:01]Malloc new data [16:15:01]SetTLVBufToDocument err=0 [16:15:01]SetTLVBufToDocument err=0 [16:15:01]SetTLVBufToDocument err=0 [16:15:01]Processing tag 1133 (046D) [16:15:01]Malloc new data [16:15:01]SetTLVBufToDocument err=0 [16:15:01]Processing tag 1077 (0435) [16:15:01]Malloc new data [16:15:01]SetTLVBufToDocument err=0 [16:15:01]Malloc new data [16:15:01]SAM_PROTO_GetFMData [16:15:01]wFMCommunicate request_size=4 [16:15:01]MH_SAM_APDU [16:15:01]CAPDU: 80 13 03 00 [16:15:01]Write to MH i2c: E2 08 00 C1 8D 80 13 03 00 00 00 00 00 CD [16:15:01]Write i2c OK [16:15:01]MH_I2C_Read... [16:15:01]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [16:15:01]Read from MH i2c: E2 [16:15:01]MH_I2C_Read... [16:15:01]Read from MH i2c: E2 FD 00 [16:15:01]MH_I2C_Read... [16:15:01]Read from MH i2c: E2 FD 00 C1 8D 00 C3 04 85 04 BF 04 6E 04 04 00 52 6F 00 00 69 04 A1 00 6F 04 04 00 F8 6B 00 00 B1 04 04 00 D9 FB 7B AF 70 04 04 00 78 E9 41 70 72 04 04 00 61 12 3A 3F 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 E7 A0 A3 12 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 D7 99 8D 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 9C 00 6F 04 04 00 5A 03 00 00 B1 04 04 00 A8 5F 91 0C 70 04 04 00 A8 5F 91 0C 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 C1 B4 55 01 EF 03 09 00 F6 90 00 A9 [16:15:01]RAPDU: C3 04 85 04 BF 04 6E 04 04 00 52 6F 00 00 69 04 A1 00 6F 04 04 00 F8 6B 00 00 B1 04 04 00 D9 FB 7B AF 70 04 04 00 78 E9 41 70 72 04 04 00 61 12 3A 3F 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 E7 A0 A3 12 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 D7 99 8D 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 9C 00 6F 04 04 00 5A 03 00 00 B1 04 04 00 A8 5F 91 0C 70 04 04 00 A8 5F 91 0C 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 C1 B4 55 01 EF 03 09 00 F6 90 00 [16:15:01]wFMCommunicate OK [16:15:01]wFMCommunicate request_size=4 [16:15:01]MH_SAM_APDU [16:15:01]CAPDU: 80 17 00 00 [16:15:01]Write to MH i2c: E2 08 00 C2 8D 80 17 00 00 00 00 00 00 CF [16:15:02]Write i2c OK [16:15:02]MH_I2C_Read... [16:15:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:15:02]Read from MH i2c: E2 [16:15:02]MH_I2C_Read... [16:15:02]Read from MH i2c: E2 FD 00 [16:15:02]MH_I2C_Read... [16:15:02]Read from MH i2c: E2 FD 00 C2 8D 00 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 4B 79 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 6F [16:15:02]RAPDU: 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 4B 79 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 OFD Sender: No OFD packet to send [16:15:02]03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [16:15:02]wFMCommunicate OK [16:15:02]wFMCommunicate request_size=4 [16:15:02]MH_SAM_APDU [16:15:02]CAPDU: 80 17 00 00 [16:15:02]Write to MH i2c: E2 08 00 C3 8D 80 17 00 00 00 00 00 00 D0 [16:15:02]Write i2c OK [16:15:02]MH_I2C_Read... [16:15:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:15:02]Read from MH i2c: E2 [16:15:02]MH_I2C_Read... [16:15:02]Read from MH i2c: E2 FD 00 [16:15:02]MH_I2C_Read... [16:15:03]Read from MH i2c: E2 FD 00 C3 8D 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 EE [16:15:03]RAPDU: 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [16:15:03]wFMCommunicate OK [16:15:03]wFMCommunicate request_size=4 [16:15:03]MH_SAM_APDU [16:15:03]CAPDU: 80 17 00 00 [16:15:03]Write to MH i2c: E2 08 00 C4 8D 80 17 00 00 00 00 00 00 D1 [16:15:03]Write i2c OK [16:15:03]MH_I2C_Read... [16:15:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:15:03]Read from MH i2c: E2 [16:15:03]MH_I2C_Read... [16:15:03]Read from MH i2c: E2 FD 00 [16:15:03]MH_I2C_Read... [16:15:03]Read from MH i2c: E2 FD 00 C4 8D 00 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 43 [16:15:03]RAPDU: 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [16:15:04]wFMCommunicate OK [16:15:04]wFMCommunicate request_size=4 [16:15:04]MH_SAM_APDU [16:15:04]CAPDU: 80 17 00 00 [16:15:04]Write to MH i2c: E2 08 00 C5 8D 80 17 00 00 00 00 00 00 D2 [16:15:04]Write i2c OK [16:15:04]MH_I2C_Read... [16:15:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 221! [16:15:04]Read from MH i2c: E2 [16:15:04]MH_I2C_Read... [16:15:04]Read from MH i2c: E2 E0 00 [16:15:04]MH_I2C_Read... [16:15:04]Read from MH i2c: E2 E0 00 C5 8D 00 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [16:15:04]RAPDU: 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:15:04]wFMCommunicate OK [16:15:04]SAM_PROTO_GetFMData done [16:15:04]Malloc new data [16:15:04]Malloc new data [16:15:04]Malloc new data [16:15:04]Malloc new data [16:15:04]KKMLoadAndSignCloseShiftData err=0 [16:15:04]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Джумагулова Н. 12.04.2024 16:15 Смена: 113 РНМ: 0000138879044617 ЗНМ: 0300000027 СНО: Общий режим Чеков за смену: 173 ФД за смену: 175 Всего чеков: 173 ИТОГИ ПРИХОД Чеков: 169 Общий итог: 188049.18 Итого наличными: 117166.00 Итого безнал.: 70883.18 НДС 0% : 0.00 НДС 12% : 19974.55 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 1664.34 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 4 Общий итог: 15636.00 Итого наличными: 15636.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 1660.63 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 138.38 ИТОГИ РАСХОД Чеков: 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 Нал. в кассе: 101530.00 НС Приход: 29441382.01 НС Возвр.Прихода: 2108538.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 28725 ФМ: 0000000000963154 ФПД: 246598318216739 [16:15:04]StoreToDocumentArchive [16:15:04]shift 113 fd 28725 [16:15:04]save to /storage/0113/doc_00028725 [16:15:04]save last doc name /storage/0113/doc_00028725 to /storage/kkm_last_doc_name [16:15:04]save OK [16:15:04]Clear old archive folders... [16:15:04]Remove dir /storage/0010 [16:15:04]opendir ok [16:15:04]file . [16:15:04]file .. [16:15:04]file doc_1712938469 [16:15:04]remove file /storage/0010/doc_1712938469 [16:15:04]remove dir /storage/0010 [16:15:04]NVStorageSaveData kkm_registers [16:15:04]File name is /storage/kkm_registers [16:15:04]Write 24 bytes [16:15:04]NVStorageSaveData done [16:15:04]NVStorageSaveData kkm_registers [16:15:04]File name is /storage/kkm_registers [16:15:04]Write 24 bytes [16:15:04]NVStorageSaveData done [16:15:04]ProcessDocumentItem done err = 0, tmpTLVsize=1394 [16:15:04]tlvbuf is 01D96980 [16:15:04]SAM_PROTO_ClearQueue [16:15:04]wFMCommunicate request_size=4 [16:15:04]MH_SAM_APDU [16:15:04]CAPDU: 80 09 00 00 [16:15:04]Write to MH i2c: E2 08 00 C6 8D 80 09 00 00 00 00 00 00 C5 [16:15:04]Write i2c OK [16:15:04]MH_I2C_Read... [16:15:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:15:04]Read from MH i2c: E2 [16:15:04]MH_I2C_Read... [16:15:04]Read from MH i2c: E2 03 00 [16:15:04]MH_I2C_Read... [16:15:04]Read from MH i2c: E2 03 00 C6 8D 00 90 00 C7 [16:15:04]RAPDU: 90 00 [16:15:04]wFMCommunicate OK [16:15:04]SAM_PROTO_ClearQueue done [16:15:04]KKMCreateOFDPacket [16:15:04]OFDProtocolAddRootSTLVToBuf [16:15:04]FM_MakeSignedData [16:15:04]FM_MakeSignedData [16:15:04]SAM_PROTO_SignData [16:15:04]wFMCommunicate request_size=4 [16:15:04]MH_SAM_APDU [16:15:04]CAPDU: 80 0D 01 02 [16:15:04]Write to MH i2c: E2 08 00 C7 8D 80 0D 01 02 00 00 00 00 CD [16:15:04]Write i2c OK [16:15:04]MH_I2C_Read... [16:15:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:15:04]Read from MH i2c: E2 [16:15:04]MH_I2C_Read... [16:15:04]Read from MH i2c: E2 03 00 [16:15:04]MH_I2C_Read... [16:15:04]Read from MH i2c: E2 03 00 C7 8D 00 90 00 C8 [16:15:04]RAPDU: 90 00 [16:15:04]wFMCommunicate OK [16:15:04]wFMCommunicate request_size=255 [16:15:04]MH_SAM_APDU [16:15:04]CAPDU: 80 0D 02 02 FA 05 00 72 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 1B 00 D0 94 D0 B6 D1 83 D0 BC D0 B0 D0 B3 D1 83 D0 BB D0 BE D0 B2 D0 B0 20 D0 9D 2E 20 F4 03 04 00 08 5E 19 66 0E 04 04 00 71 00 00 00 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 5E 04 04 00 AD 00 00 00 57 04 04 00 AF 00 00 00 AA 04 DE 04 6E 04 04 00 AD 00 00 00 69 04 A4 00 6F 04 04 00 A9 00 00 00 B1 04 04 00 B6 F0 1E 01 70 04 03 00 F8 C7 B2 72 04 03 00 BE 28 6C 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 8F 7A 1E 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 [16:15:05]Write to MH i2c: E2 02 01 C8 8D 80 0D 02 02 FA 00 05 00 72 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 1B 00 D0 94 D0 B6 D1 83 D0 BC D0 B0 D0 B3 D1 83 D0 BB D0 BE D0 B2 D0 B0 20 D0 9D 2E 20 F4 03 04 00 08 5E 19 66 0E 04 04 00 71 00 00 00 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 5E 04 04 00 AD 00 00 00 57 04 04 00 AF 00 00 00 AA 04 DE 04 6E 04 04 00 AD 00 00 00 69 04 A4 00 6F 04 04 00 A9 00 00 00 B1 04 04 00 B6 F0 1E 01 70 04 03 00 F8 C7 B2 72 04 03 00 BE 28 6C 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 8F 7A 1E EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 00 00 4B [16:15:05]Write i2c OK [16:15:05]MH_I2C_Read... [16:15:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:15:05]Read from MH i2c: E2 [16:15:05]MH_I2C_Read... [16:15:05]Read from MH i2c: E2 03 00 [16:15:05]MH_I2C_Read... [16:15:05]Read from MH i2c: E2 03 00 C8 8D 00 90 00 C9 [16:15:05]RAPDU: 90 00 [16:15:05]wFMCommunicate OK [16:15:05]wFMCommunicate request_size=255 [16:15:05]MH_SAM_APDU [16:15:05]CAPDU: 80 0D 02 02 FA F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 22 8A 02 6A 04 A0 00 6F 04 04 00 04 00 00 00 B1 04 03 00 D0 DB 17 70 04 03 00 D0 DB 17 72 04 01 00 00 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 AF 88 02 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 0E 36 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 [16:15:05]Write to MH i2c: E2 02 01 C9 8D 80 0D 02 02 FA 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 22 8A 02 6A 04 A0 00 6F 04 04 00 04 00 00 00 B1 04 03 00 D0 DB 17 70 04 03 00 D0 DB 17 72 04 01 00 00 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 AF 88 02 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 0E 36 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 00 00 05 [16:15:06]Write i2c OK [16:15:06]MH_I2C_Read... [16:15:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:15:06]Read from MH i2c: E2 [16:15:06]MH_I2C_Read... [16:15:06]Read from MH i2c: E2 03 00 [16:15:06]MH_I2C_Read... [16:15:06]Read from MH i2c: E2 03 00 C9 8D 00 90 00 CA [16:15:06]RAPDU: 90 00 [16:15:06]wFMCommunicate OK [16:15:06]wFMCommunicate request_size=255 [16:15:06]MH_SAM_APDU [16:15:06]CAPDU: 80 0D 02 02 FA 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 [16:15:06]Write to MH i2c: E2 02 01 CA 8D 80 0D 02 02 FA 00 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 00 00 98 [16:15:06]Write i2c OK [16:15:06]MH_I2C_Read... [16:15:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:15:07]Read from MH i2c: E2 [16:15:07]MH_I2C_Read... [16:15:07]Read from MH i2c: E2 03 00 [16:15:07]MH_I2C_Read... [16:15:07]Read from MH i2c: E2 03 00 CA 8D 00 90 00 CB [16:15:07]RAPDU: 90 00 [16:15:07]wFMCommunicate OK [16:15:07]wFMCommunicate request_size=255 [16:15:07]MH_SAM_APDU [16:15:07]CAPDU: 80 0D 02 02 FA 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 [16:15:07]Write to MH i2c: E2 02 01 CB 8D 80 0D 02 02 FA 00 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 00 00 A1 [16:15:07]Write i2c OK [16:15:07]MH_I2C_Read... [16:15:07]OFD Sender: No OFD packet to send [16:15:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:15:07]Read from MH i2c: E2 [16:15:07]MH_I2C_Read... [16:15:07]Read from MH i2c: E2 03 00 [16:15:07]MH_I2C_Read... [16:15:07]Read from MH i2c: E2 03 00 CB 8D 00 90 00 CC [16:15:07]RAPDU: 90 00 [16:15:07]wFMCommunicate OK [16:15:07]wFMCommunicate request_size=255 [16:15:07]MH_SAM_APDU [16:15:07]CAPDU: 80 0D 02 02 FA 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 [16:15:08]Write to MH i2c: E2 02 01 CC 8D 80 0D 02 02 FA 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 68 [16:15:08]Write i2c OK [16:15:08]MH_I2C_Read... [16:15:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:15:08]Read from MH i2c: E2 [16:15:08]MH_I2C_Read... [16:15:08]Read from MH i2c: E2 03 00 [16:15:08]MH_I2C_Read... [16:15:08]Read from MH i2c: E2 03 00 CC 8D 00 90 00 CD [16:15:08]RAPDU: 90 00 [16:15:08]wFMCommunicate OK [16:15:08]wFMCommunicate request_size=153 [16:15:08]MH_SAM_APDU [16:15:08]CAPDU: 80 0D 02 02 94 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 35 70 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 35 04 06 00 E0 47 A5 28 D6 23 [16:15:08]Write to MH i2c: E2 9C 00 CD 8D 80 0D 02 02 94 00 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 35 70 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 35 04 06 00 E0 47 A5 28 D6 23 00 00 A1 [16:15:09]Write i2c OK [16:15:09]MH_I2C_Read... [16:15:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:15:09]Read from MH i2c: E2 [16:15:09]MH_I2C_Read... [16:15:09]Read from MH i2c: E2 03 00 [16:15:09]MH_I2C_Read... [16:15:09]Read from MH i2c: E2 03 00 CD 8D 00 90 00 CE [16:15:09]RAPDU: 90 00 [16:15:09]wFMCommunicate OK [16:15:09]wFMCommunicate request_size=4 [16:15:09]MH_SAM_APDU [16:15:09]CAPDU: 80 0D 03 02 [16:15:09]Write to MH i2c: E2 08 00 CE 8D 80 0D 03 02 00 00 00 00 D6 [16:15:09]Write i2c OK [16:15:09]MH_I2C_Read... [16:15:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:15:09]Read from MH i2c: E2 [16:15:09]MH_I2C_Read... [16:15:09]Read from MH i2c: E2 0B 00 [16:15:09]MH_I2C_Read... [16:15:09]Read from MH i2c: E2 0B 00 CE 8D 00 09 41 DE 7A 6F 40 99 58 90 00 19 [16:15:09]RAPDU: 09 41 DE 7A 6F 40 99 58 90 00 [16:15:09]wFMCommunicate OK [16:15:09]SAM_PROTO_SignData done [16:15:09]FM_MakeSignedData done [16:15:09]CreateOFDProtocolMessage [16:15:09]wFMCommunicate request_size=4 [16:15:09]MH_SAM_APDU [16:15:09]CAPDU: 80 11 00 00 [16:15:09]Write to MH i2c: E2 08 00 CF 8D 80 11 00 00 00 00 00 00 D6 [16:15:09]Write i2c OK [16:15:09]MH_I2C_Read... [16:15:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:15:09]Read from MH i2c: E2 [16:15:09]MH_I2C_Read... [16:15:09]Read from MH i2c: E2 17 00 [16:15:09]MH_I2C_Read... [16:15:09]Read from MH i2c: E2 17 00 CF 8D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 25 [16:15:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [16:15:09]wFMCommunicate OK [16:15:09]CreateOFDProtocolMessage done [16:15:09]OFDSenderStorePacket 28725 [16:15:09]StoreOFDPacket docnum=28725 [16:15:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 86 05 00 00 B4 6C 7E 05 99 6D 5A 05 01 00 05 00 72 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 1B 00 D0 94 D0 B6 D1 83 D0 BC D0 B0 D0 B3 D1 83 D0 BB D0 BE D0 B2 D0 B0 20 D0 9D 2E 20 F4 03 04 00 08 5E 19 66 0E 04 04 00 71 00 00 00 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 5E 04 04 00 AD 00 00 00 57 04 04 00 AF 00 00 00 AA 04 DE 04 6E 04 04 00 AD 00 00 00 69 04 A4 00 6F 04 04 00 A9 00 00 00 B1 04 04 00 B6 F0 1E 01 70 04 03 00 F8 C7 B2 72 04 03 00 BE 28 6C 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 8F 7A 1E 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 22 8A 02 6A 04 A0 00 6F 04 04 00 04 00 00 00 B1 04 03 00 D0 DB 17 70 04 03 00 D0 DB 17 72 04 01 00 00 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 AF 88 02 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 0E 36 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 35 70 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 35 04 06 00 E0 47 A5 28 D6 23 09 41 DE 7A 6F 40 99 58 [16:15:09]CheckFolder [16:15:09]dirname=/storage/ofd_packets [16:15:09]CheckFolder done [16:15:09]ProducePacketName [16:15:09]name=ofd_packets/00028725 [16:15:09]NVStorageSaveData ofd_packets/00028725 [16:15:09]File name is /storage/ofd_packets/00028725 [16:15:09]Write 1444 bytes [16:15:09]NVStorageSaveData done [16:15:09]OFDSenderStorePacket done [16:15:09]KKMCreateOFDPacket done [16:15:09]NVStorageSaveData kkm_last_timestamp [16:15:09]File name is /storage/kkm_last_timestamp [16:15:09]Write 4 bytes [16:15:09]NVStorageSaveData done [16:15:09]ExternCall_PrintAddStr [16:15:09]wPrintStart [16:15:09]Write to MH i2c: 01 00 00 D0 8D 5D [16:15:09]Write i2c OK [16:15:09]MH_I2C_Read... [16:15:09]Read from MH i2c: 01 [16:15:09]MH_I2C_Read... [16:15:09]Read from MH i2c: 01 07 00 [16:15:09]MH_I2C_Read... [16:15:09]OFD Sender: Processing packet 28725 [packets to send 8, broken 7] [16:15:09]ProducePacketName [16:15:09]name=ofd_packets/00028725 [16:15:09]OFD Sender: To server: pG, [16:15:09]CommunicateWithHost lk.salyk.kg:30040 [16:15:09]ConnectInit lk.salyk.kg [16:15:09]Read from MH i2c: 01 07 00 D0 8D 00 00 00 00 00 FF 0F 72 [16:15:09]RasterBufferAndPrint [16:15:09]line Отчет о закрытии смены [16:15:09]line ФФД: 1.0 [16:15:09]line ИНН: 02508201610067 [16:15:09]line Кассир: Джумагулова Н. [16:15:09]line 12.04.2024 16:15 [16:15:09]line Смена: 113 [16:15:09]line РНМ: 0000138879044617 [16:15:09]line ЗНМ: 0300000027 [16:15:09]line СНО: Общий режим [16:15:09]line Чеков за смену: 173 [16:15:09]line ФД за смену: 175 [16:15:09]line Всего чеков: 173 [16:15:09]line ИТОГИ ПРИХОД [16:15:09]line Чеков: 169 [16:15:09]line Общий итог: 188049.18 [16:15:09]line Итого наличными: 117166.00 [16:15:09]line Итого безнал.: 70883.18 [16:15:09]line НДС 0% : 0.00 [16:15:09]line НДС 12% : 19974.55 [16:15:09]line НСП 0% : 0.00 [16:15:09]line НСП 1,50% : 0.00 [16:15:09]line НСП 0,50% : 0.00 [16:15:09]line НСП 5% : 0.00 [16:15:09]line НСП 3% : 0.00 [16:15:09]line НСП 2% : 0.00 [16:15:09]line НСП 1% : 1664.34 [16:15:09]line ИТОГИ ВОЗВРАТ ПРИХОДА [16:15:09]line Чеков: 4 [16:15:09]line Общий итог: 15636.00 [16:15:09]line Итого наличными: 15636.00 [16:15:09]line Итого безнал.: 0.00 [16:15:09]line НДС 0% : 0.00 [16:15:09]line НДС 12% : 1660.63 [16:15:09]line НСП 0% : 0.00 [16:15:09]line НСП 1,50% : 0.00 [16:15:09]line НСП 0,50% : 0.00 [16:15:09]line НСП 5% : 0.00 [16:15:09]line НСП 3% : 0.00 [16:15:09]line НСП 2% : 0.00 [16:15:09]line НСП 1% : 138.38 [16:15:09]line ИТОГИ РАСХОД [16:15:09]line Чеков: 0 [16:15:09]line Общий итог: 0.00 [16:15:09]line Итого наличными: 0.00 [16:15:09]line Итого безнал.: 0.00 [16:15:09]line НДС 0% : 0.00 [16:15:09]line НДС 12% : 0.00 [16:15:09]line НСП 0% : 0.00 [16:15:09]line НСП 1,50% : 0.00 [16:15:09]line НСП 0,50% : 0.00 [16:15:09]line НСП 5% : 0.00 [16:15:09]line НСП 3% : 0.00 [16:15:09]line НСП 2% : 0.00 [16:15:09]line НСП 1% : 0.00 [16:15:09]line ИТОГИ ВОЗВРАТ РАСХОДА [16:15:09]Connected sock=7 [16:15:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 86 05 00 00 B4 6C 7E 05 99 6D 5A 05 01 00 05 00 72 line Чеков: 0 [16:15:09]05 line Общий итог: 0.00 [16:15:09]B9 line Итого наличными: 0.00 [16:15:09]04 line Итого безнал.: 0.00 [16:15:09]01 line НДС 0% : 0.00 [16:15:09]00 line НДС 12% : 0.00 [16:15:09]01 FA 03 0E 00 30 32 35 30 38 32 30 line НСП 0% : 0.00 [16:15:09]31 line НСП 1,50% : 0.00 [16:15:10]36 line НСП 0,50% : 0.00 [16:15:10]31 line НСП 5% : 0.00 [16:15:10]30 line НСП 3% : 0.00 [16:15:10]30 line НСП 2% : 0.00 [16:15:10]36 37 FD 03 1B 00 D0 94 D0 B6 D1 83 line НСП 1% : 0.00 [16:15:10]D0 line Сумма внесений: 0.00 [16:15:10]BC line Сумма выплат: 0.00 [16:15:10]D0 line Нал. в кассе: 101530.00 [16:15:10]B0 line НС Приход: 29441382.01 [16:15:10]D0 line НС Возвр.Прихода: 2108538.00 [16:15:10]B3 line НС Расход: 0.00 [16:15:10]D1 line НС Возвр.Расхода: 0.00 [16:15:10]83 line ФД: 28725 [16:15:10]D0 line ФМ: 0000000000963154 [16:15:10]BB line ФПД: 246598318216739 [16:15:10]D0 BE D0 B2 D0 B0 20 D0 9D 2E 20 F4 03 04 00 08 5E 19 66 0E 04 04 00 71 00 written 0, free lines is 4095 [16:15:10]00 00 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 5E 04 04 00 AD 00 00 00 57 04 04 00 AF 00 00 00 AA 04 DE 04 6E 04 04 00 AD 00 00 00 69 04 A4 00 6F 04 04 00 A9 00 00 00 B1 04 04 00 B6 F0 1E 01 70 04 03 00 F8 C7 B2 72 04 03 00 BE 28 6C 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 8F 7A 1E 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 22 8A 02 6A 04 A0 00 6F 04 04 00 04 00 00 00 B1 04 03 00 D0 DB 17 70 04 03 00 D0 DB 17 72 04 01 00 00 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 AF 88 02 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 0E 36 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 Write to MH i2c: 01 01 00 00 00 00 F7 20 03 8E 00 AE 00 [16:15:10]EF 03 09 00 F6 03 01 00 01 F7 03 Write i2c OK [16:15:10]00 MH_I2C_Read... [16:15:10]00 Read from MH i2c: EF 01 03 [16:15:10]09 00 F6 03 01 00 02 F7 03 00 00 EF MH_I2C_Read... [16:15:10]03 Read from MH i2c: 09 01 00 07 F6 00 03 [16:15:10]01 MH_I2C_Read... [16:15:10]00 Read from MH i2c: 03 01 F7 07 03 00 00 00 EF 03 09 00 F6 03 01 00 04 20 F7 8E 03 00 00 00 00 00 EF 00 03 00 09 84 00 0A F6 43 03 [16:15:11]01 00 05 F7 03 00 00 EF 03 09 00 F6 RasterBufferAndPrint [16:15:11]03 line [16:15:11]01 line [16:15:11]00 line [16:15:11]06 line [16:15:11]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 line [16:15:11]03 01 written 0, free lines is 3057 [16:15:11]00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 MH_Cut [16:15:11]02 Write to MH i2c: F7 D1 03 01 00 00 00 27 EF 8E 03 09 00 F6 03 01 00 03 F7 03 00 01 00 87 EF [16:15:11]03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 Write i2c OK [16:15:11]09 MH_I2C_Read... [16:15:11]00 Read from MH i2c: F2 D1 03 [16:15:11]01 00 01 F3 03 00 00 EF 03 09 00 F6 MH_I2C_Read... [16:15:11]03 Read from MH i2c: 01 D1 00 01 00 00 F7 [16:15:11]03 MH_I2C_Read... [16:15:11]00 Read from MH i2c: 00 D1 EF 01 03 00 27 8E 00 86 [16:15:11]Write to MH i2c: 01 00 00 28 8E B6 [16:15:11]09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 35 70 00 00 11 04 10 00 30 30 30 30 30 Write i2c OK [16:15:11]30 MH_I2C_Read... [16:15:11]30 30 30 30 39 36 33 31 35 34 35 04 06 00 E0 47 A5 28 D6 23 09 41 DE 7A 6F 40 99 58 [16:15:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 77 82 47 00 D9 D4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 35 70 00 00 F4 03 04 00 C0 08 19 66 B6 04 01 00 00 50 3D D3 B0 33 39 0C CD [16:15:11]CommunicateWithHost err = 0 [16:15:11]CheckOFDResponse [16:15:11]1017 (14) - 77093643461234 [16:15:11]1041 (16) - 0000000000963154 [16:15:11]1040 (4) - 28725 [16:15:11]1012 (4) - 12.04.2024 10:11 [16:15:11]1206 (1) - 0 [16:15:11]OFD Sender: Remove packet 28725 [16:15:11]ProducePacketName [16:15:11]name=ofd_packets/00028725 [16:15:11]NVStorageDeleteData [16:15:12]*** Cut start [16:15:12]*** Partial cut [16:15:12]*** CUTSNS_PIN = 1 [16:15:12]*** CUTSNS_PIN = 0 [16:15:12]*** Brake cut motor [16:15:12]OFD Sender: No OFD packet to send [16:15:12]Read from MH i2c: 01 [16:15:12]MH_I2C_Read... [16:15:12]*** Stop cut motor [16:15:12]*** Cut end [16:15:12]Read from MH i2c: 01 07 00 [16:15:12]MH_I2C_Read... [16:15:12]Read from MH i2c: 01 07 00 28 8E 00 00 00 00 00 FF 0F CB [16:15:12]process_action close_shift done [16:15:12]requested_data is exist [16:15:12]produce_requested_data [16:15:12]requested_item fd.num is exist - process it [16:15:12]SAM_PROTO_GetFieldsCounters [16:15:12]wFMCommunicate request_size=4 [16:15:12]MH_SAM_APDU [16:15:12]CAPDU: 80 13 00 00 [16:15:12]Write to MH i2c: E2 08 00 29 8E 80 13 00 00 00 00 00 00 33 [16:15:12]Write i2c OK [16:15:12]MH_I2C_Read... [16:15:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:15:12]Read from MH i2c: E2 [16:15:12]MH_I2C_Read... [16:15:12]Read from MH i2c: E2 62 00 [16:15:12]MH_I2C_Read... [16:15:12]Read from MH i2c: E2 62 00 29 8E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 35 70 00 00 0E 04 04 00 71 00 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 8F [16:15:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 35 70 00 00 0E 04 04 00 71 00 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:15:13]wFMCommunicate OK [16:15:13]SAM_PROTO_GetFieldsCounters done [16:15:13]requested_item shift.num is exist - process it [16:15:13]requested_item shift.opened is exist - process it [16:15:13]req_shift_opened [16:15:13]FM_GetShiftState [16:15:13]SAM_PROTO_GetShiftState [16:15:13]wFMCommunicate request_size=4 [16:15:13]MH_SAM_APDU [16:15:13]CAPDU: 80 13 01 00 [16:15:13]Write to MH i2c: E2 08 00 2A 8E 80 13 01 00 00 00 00 00 35 [16:15:13]Write i2c OK [16:15:13]MH_I2C_Read... [16:15:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:15:13]Read from MH i2c: E2 [16:15:13]MH_I2C_Read... [16:15:13]Read from MH i2c: E2 0E 00 [16:15:13]MH_I2C_Read... [16:15:13]Read from MH i2c: E2 0E 00 2A 8E 00 09 00 00 00 00 00 00 00 00 00 00 90 00 40 [16:15:13]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [16:15:13]wFMCommunicate OK [16:15:13]SAM_PROTO_GetShiftState done [16:15:13]FM_GetShiftState done [16:15:13]req_shift_opened done [16:15:13]requested_item shift.open_date is exist - process it [16:15:13]req_shift_open_date [16:15:13]FM_GetShiftState [16:15:13]SAM_PROTO_GetShiftState [16:15:13]wFMCommunicate request_size=4 [16:15:13]MH_SAM_APDU [16:15:13]CAPDU: 80 13 01 00 [16:15:13]Write to MH i2c: E2 08 00 2B 8E 80 13 01 00 00 00 00 00 36 [16:15:13]Write i2c OK [16:15:13]MH_I2C_Read... [16:15:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:15:13]Read from MH i2c: E2 [16:15:13]MH_I2C_Read... [16:15:13]Read from MH i2c: E2 0E 00 [16:15:13]MH_I2C_Read... [16:15:13]Read from MH i2c: E2 0E 00 2B 8E 00 09 00 00 00 00 00 00 00 00 00 00 90 00 41 [16:15:13]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [16:15:13]wFMCommunicate OK [16:15:13]SAM_PROTO_GetShiftState done [16:15:13]FM_GetShiftState done [16:15:13]req_shift_open_date done [16:15:13]produce_requested_data done [16:15:13]produce_requested_data return {"fd.num":28725,"shift.num":113,"shift.opened":0,"shift.open_date":0} [16:15:13]process_action_free close_shift [16:15:13]json_value_free [16:15:13]json_value_free done [16:15:13]process_json_proto returns [16:15:13]Send response to host [16:15:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":28725,"shift.num":113,"shift.opened":0,"shift.open_date":0}}} [16:15:13]free response buf [16:15:13]execute_script done [16:15:13]execute_script returns [16:15:13]free content buf [16:15:13]Sock 5.Close socket [16:15:13]Sock 5.Thread stoped [16:15:17]OFD Sender: No OFD packet to send [16:15:22]OFD Sender: No OFD packet to send [16:15:27]OFD Sender: No OFD packet to send [16:15:32]OFD Sender: No OFD packet to send [16:15:37]OFD Sender: No OFD packet to send [16:15:42]OFD Sender: No OFD packet to send [16:15:47]OFD Sender: No OFD packet to send [16:15:52]OFD Sender: No OFD packet to send [16:15:57]OFD Sender: No OFD packet to send [16:16:02]OFD Sender: No OFD packet to send [16:16:07]OFD Sender: No OFD packet to send [16:16:12]OFD Sender: No OFD packet to send [16:16:17]OFD Sender: No OFD packet to send [16:16:22]OFD Sender: No OFD packet to send [16:16:27]OFD Sender: No OFD packet to send [16:16:32]OFD Sender: No OFD packet to send [16:16:37]OFD Sender: No OFD packet to send [16:16:42]OFD Sender: No OFD packet to send [16:16:47]OFD Sender: No OFD packet to send [16:16:52]OFD Sender: No OFD packet to send [16:16:57]OFD Sender: No OFD packet to send [16:17:02]OFD Sender: No OFD packet to send [16:17:07]OFD Sender: No OFD packet to send [16:17:12]OFD Sender: No OFD packet to send [16:17:17]OFD Sender: No OFD packet to send [16:17:22]OFD Sender: No OFD packet to send [16:17:27]OFD Sender: No OFD packet to send [16:17:32]OFD Sender: No OFD packet to send [16:17:37]OFD Sender: No OFD packet to send [16:17:42]OFD Sender: No OFD packet to send [16:17:47]OFD Sender: No OFD packet to send [16:17:52]OFD Sender: No OFD packet to send [16:17:57]OFD Sender: No OFD packet to send [16:18:02]OFD Sender: No OFD packet to send [16:18:07]OFD Sender: No OFD packet to send [16:18:12]OFD Sender: No OFD packet to send [16:18:17]OFD Sender: No OFD packet to send [16:18:22]OFD Sender: No OFD packet to send [16:18:27]OFD Sender: No OFD packet to send [16:18:32]OFD Sender: No OFD packet to send [16:18:37]OFD Sender: No OFD packet to send [16:18:42]OFD Sender: No OFD packet to send [16:18:47]OFD Sender: No OFD packet to send [16:18:52]OFD Sender: No OFD packet to send [16:18:57]OFD Sender: No OFD packet to send [16:19:02]OFD Sender: No OFD packet to send [16:19:07]OFD Sender: No OFD packet to send [16:19:12]OFD Sender: No OFD packet to send [16:19:17]OFD Sender: No OFD packet to send [16:19:22]OFD Sender: No OFD packet to send [16:19:27]OFD Sender: No OFD packet to send [16:19:32]OFD Sender: No OFD packet to send [16:19:37]OFD Sender: No OFD packet to send [16:19:42]OFD Sender: No OFD packet to send [16:19:47]OFD Sender: No OFD packet to send [16:19:52]OFD Sender: No OFD packet to send [16:19:57]OFD Sender: No OFD packet to send [16:20:02]OFD Sender: No OFD packet to send [16:20:07]OFD Sender: No OFD packet to send [16:20:12]OFD Sender: No OFD packet to send [16:20:17]OFD Sender: No OFD packet to send [16:20:22]OFD Sender: No OFD packet to send [16:20:27]OFD Sender: No OFD packet to send [16:20:32]OFD Sender: No OFD packet to send [16:20:37]OFD Sender: No OFD packet to send [16:20:42]OFD Sender: No OFD packet to send [16:20:47]OFD Sender: No OFD packet to send [16:20:52]OFD Sender: No OFD packet to send [16:20:57]OFD Sender: No OFD packet to send [16:21:02]OFD Sender: No OFD packet to send [16:21:07]OFD Sender: No OFD packet to send [16:21:12]OFD Sender: No OFD packet to send [16:21:17]OFD Sender: No OFD packet to send [16:21:22]OFD Sender: No OFD packet to send [16:21:27]OFD Sender: No OFD packet to send [16:21:32]OFD Sender: No OFD packet to send [16:21:37]OFD Sender: No OFD packet to send [16:21:42]OFD Sender: No OFD packet to send [16:21:47]OFD Sender: No OFD packet to send [16:21:52]OFD Sender: No OFD packet to send [16:21:57]OFD Sender: No OFD packet to send [16:22:02]OFD Sender: No OFD packet to send [16:22:07]OFD Sender: No OFD packet to send [16:22:12]OFD Sender: No OFD packet to send [16:22:17]OFD Sender: No OFD packet to send [16:22:22]OFD Sender: No OFD packet to send [16:22:27]OFD Sender: No OFD packet to send [16:22:32]OFD Sender: No OFD packet to send [16:22:37]OFD Sender: No OFD packet to send [16:22:42]OFD Sender: No OFD packet to send [16:22:47]OFD Sender: No OFD packet to send [16:22:52]OFD Sender: No OFD packet to send [16:22:57]OFD Sender: No OFD packet to send [16:23:02]OFD Sender: No OFD packet to send [16:23:07]OFD Sender: No OFD packet to send [16:23:12]OFD Sender: No OFD packet to send [16:23:17]OFD Sender: No OFD packet to send [16:23:22]OFD Sender: No OFD packet to send [16:23:27]OFD Sender: No OFD packet to send [16:23:32]OFD Sender: No OFD packet to send [16:23:37]OFD Sender: No OFD packet to send [16:23:42]OFD Sender: No OFD packet to send [16:23:47]OFD Sender: No OFD packet to send [16:23:52]OFD Sender: No OFD packet to send [16:23:57]OFD Sender: No OFD packet to send [16:24:02]OFD Sender: No OFD packet to send [16:24:07]OFD Sender: No OFD packet to send [16:24:12]OFD Sender: No OFD packet to send [16:24:17]OFD Sender: No OFD packet to send [16:24:22]OFD Sender: No OFD packet to send [16:24:27]OFD Sender: No OFD packet to send [16:24:32]OFD Sender: No OFD packet to send [16:24:37]OFD Sender: No OFD packet to send [16:24:42]OFD Sender: No OFD packet to send [16:24:47]OFD Sender: No OFD packet to send [16:24:52]OFD Sender: No OFD packet to send [16:24:57]OFD Sender: No OFD packet to send [16:25:02]OFD Sender: No OFD packet to send [16:25:07]OFD Sender: No OFD packet to send [16:25:12]OFD Sender: No OFD packet to send [16:25:17]OFD Sender: No OFD packet to send [16:25:22]OFD Sender: No OFD packet to send [16:25:27]OFD Sender: No OFD packet to send [16:25:32]OFD Sender: No OFD packet to send [16:25:37]OFD Sender: No OFD packet to send [16:25:42]OFD Sender: No OFD packet to send [16:25:47]OFD Sender: No OFD packet to send [16:25:52]OFD Sender: No OFD packet to send [16:25:57]OFD Sender: No OFD packet to send [16:26:02]OFD Sender: No OFD packet to send [16:26:07]OFD Sender: No OFD packet to send [16:26:12]OFD Sender: No OFD packet to send [16:26:17]OFD Sender: No OFD packet to send [16:26:22]OFD Sender: No OFD packet to send [16:26:27]OFD Sender: No OFD packet to send [16:26:32]OFD Sender: No OFD packet to send [16:26:37]OFD Sender: No OFD packet to send [16:26:42]OFD Sender: No OFD packet to send [16:26:47]OFD Sender: No OFD packet to send [16:26:52]OFD Sender: No OFD packet to send [16:26:57]OFD Sender: No OFD packet to send [16:27:02]OFD Sender: No OFD packet to send [16:27:07]OFD Sender: No OFD packet to send [16:27:12]OFD Sender: No OFD packet to send [16:27:17]OFD Sender: No OFD packet to send [16:27:22]OFD Sender: No OFD packet to send [16:27:27]OFD Sender: No OFD packet to send [16:27:32]OFD Sender: No OFD packet to send [16:27:37]OFD Sender: No OFD packet to send [16:27:42]OFD Sender: No OFD packet to send [16:27:47]OFD Sender: No OFD packet to send [16:27:53]OFD Sender: No OFD packet to send [16:27:58]OFD Sender: No OFD packet to send [16:28:03]OFD Sender: No OFD packet to send [16:28:08]OFD Sender: No OFD packet to send [16:28:13]OFD Sender: No OFD packet to send [16:28:18]OFD Sender: No OFD packet to send [16:28:23]OFD Sender: No OFD packet to send [16:28:28]OFD Sender: No OFD packet to send [16:28:33]OFD Sender: No OFD packet to send [16:28:38]OFD Sender: No OFD packet to send [16:28:43]OFD Sender: No OFD packet to send [16:28:48]OFD Sender: No OFD packet to send [16:28:53]OFD Sender: No OFD packet to send [16:28:58]OFD Sender: No OFD packet to send [16:29:03]OFD Sender: No OFD packet to send [16:29:08]OFD Sender: No OFD packet to send [16:29:13]OFD Sender: No OFD packet to send [16:29:18]OFD Sender: No OFD packet to send [16:29:23]OFD Sender: No OFD packet to send [16:29:28]OFD Sender: No OFD packet to send [16:29:33]OFD Sender: No OFD packet to send [16:29:38]OFD Sender: No OFD packet to send [16:29:43]OFD Sender: No OFD packet to send [16:29:48]OFD Sender: No OFD packet to send [16:29:53]OFD Sender: No OFD packet to send [16:29:58]OFD Sender: No OFD packet to send [16:30:03]OFD Sender: No OFD packet to send [16:30:08]OFD Sender: No OFD packet to send [16:30:13]OFD Sender: No OFD packet to send [16:30:18]OFD Sender: No OFD packet to send [16:30:23]OFD Sender: No OFD packet to send [16:30:28]OFD Sender: No OFD packet to send [16:30:33]OFD Sender: No OFD packet to send [16:30:38]OFD Sender: No OFD packet to send [16:30:43]OFD Sender: No OFD packet to send [16:30:48]OFD Sender: No OFD packet to send [16:30:53]OFD Sender: No OFD packet to send [16:30:58]OFD Sender: No OFD packet to send [16:31:03]OFD Sender: No OFD packet to send [16:31:08]OFD Sender: No OFD packet to send [16:31:13]OFD Sender: No OFD packet to send [16:31:18]OFD Sender: No OFD packet to send [16:31:23]OFD Sender: No OFD packet to send [16:31:28]OFD Sender: No OFD packet to send [16:31:33]OFD Sender: No OFD packet to send [16:31:38]OFD Sender: No OFD packet to send [16:31:43]OFD Sender: No OFD packet to send [16:31:48]OFD Sender: No OFD packet to send [16:31:53]OFD Sender: No OFD packet to send [16:31:58]OFD Sender: No OFD packet to send [16:32:03]OFD Sender: No OFD packet to send [16:32:08]OFD Sender: No OFD packet to send [16:32:13]OFD Sender: No OFD packet to send [16:32:18]OFD Sender: No OFD packet to send [16:32:23]OFD Sender: No OFD packet to send [16:32:28]OFD Sender: No OFD packet to send [16:32:33]OFD Sender: No OFD packet to send [16:32:38]OFD Sender: No OFD packet to send [16:32:43]OFD Sender: No OFD packet to send [16:32:48]OFD Sender: No OFD packet to send [16:32:53]OFD Sender: No OFD packet to send [16:32:58]OFD Sender: No OFD packet to send [16:33:03]OFD Sender: No OFD packet to send [16:33:08]OFD Sender: No OFD packet to send [16:33:13]OFD Sender: No OFD packet to send [16:33:18]OFD Sender: No OFD packet to send [16:33:23]OFD Sender: No OFD packet to send [16:33:28]OFD Sender: No OFD packet to send [16:33:33]OFD Sender: No OFD packet to send [16:33:38]OFD Sender: No OFD packet to send [16:33:43]OFD Sender: No OFD packet to send [16:33:48]OFD Sender: No OFD packet to send [16:33:53]OFD Sender: No OFD packet to send [16:33:58]OFD Sender: No OFD packet to send [16:34:03]OFD Sender: No OFD packet to send [16:34:08]OFD Sender: No OFD packet to send [16:34:13]OFD Sender: No OFD packet to send [00:00:09] *** EcrCore started. Build 196 *** [00:00:09]MH_InterfaceInit /dev/i2c-1 [00:00:09]Malloc ok [00:00:09]MH_GetMetrics [00:00:09]Write to MH i2c: 00 /dev/ttyS4 opened [00:00:09]00 00 01 00 00 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 29 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 E4 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 89 [00:00:09]Are we in boot? [00:00:09]We are in boot - try to switch [00:00:09]Write to MH i2c: A0 00 00 02 00 A1 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:09]*** [00:00:09]Read from MH i2c: A0 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: A0 01 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:09]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:09]*** Waiting for read because exit forced [00:00:09]*** 10 ms more... [00:00:09]*** MH1903S init start (LINUX_LIGHT) [00:00:09]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:09]*** Serial: 3139303353513838 54000000005725E4 (1903SQ88T) [00:00:09]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:09]*** step 0: 5000 (2650, 2350 REF) [00:00:09]*** step 1: 4835 (2500, 2335 REF) [00:00:09]*** step 2: 4676 (2440, 2236 REF) [00:00:09]*** step 3: 4523 (2280, 2243 REF) [00:00:09]*** step 4: 4376 (2160, 2216 REF) [00:00:09]*** step 5: 4235 (2050, 2185 REF) [00:00:09]*** step 6: 4098 (1950, 2148 REF) [00:00:09]*** step 7: 3967 (1870, 2097 REF) [00:00:09]*** step 8: 3840 (1828, 2012 REF) [00:00:09]*** step 9: 3719 (1728, 1991 REF) [00:00:09]*** step 10: 3601 (1675, 1926 REF) [00:00:09]*** step 11: 3488 (1635, 1853 REF) [00:00:09]*** step 12: 3379 (1595, 1784 REF) [00:00:09]*** step 13: 3275 (1565, 1710 REF) [00:00:09]*** step 14: 3174 (1543, 1631 REF) [00:00:09]*** step 15: 3077 (1523, 1554 REF) [00:00:09]*** step 16: 2983 (1503, 1480 REF) [00:00:09]*** step 17: 2893 (1486, 1407 REF) [00:00:09]*** step 18: 2806 (1466, 1340 REF) [00:00:09]*** step 19: 2723 (1426, 1297 REF) [00:00:09]*** step 20: 2642 (1406, 1236 REF) [00:00:09]*** step 21: 2565 (1384, 1181 REF) [00:00:09]*** step 22: 2490 (1364, 1126 REF) [00:00:09]*** step 23: 2418 (1344, 1074 REF) [00:00:09]*** step 24: 2349 (1322, 1027 REF) [00:00:09]*** step 25: 2283 (1302, 981 REF) [00:00:10]*** step 26: 2218 (1282, 936 REF) [00:00:10]*** step 27: 2157 (1262, 895 REF) [00:00:10]*** step 28: 2097 (1242, 855 REF) [00:00:10]*** step 29: 2040 (1222, 818 REF) [00:00:10]*** step 30: 1985 (1202, 783 REF) [00:00:10]*** step 31: 1932 (1191, 741 REF) [00:00:10]*** step 32: 1880 (1181, 699 REF) [00:00:10]*** step 33: 1831 (1171, 660 REF) [00:00:10]*** step 34: 1784 (1161, 623 REF) [00:00:10]*** step 35: 1738 (1151, 587 REF) [00:00:10]*** step 36: 1694 (1141, 553 REF) [00:00:10]*** step 37: 1652 (1131, 521 REF) [00:00:10]*** step 38: 1611 (1121, 490 REF) [00:00:10]*** step 39: 1572 (1111, 461 REF) [00:00:10]*** step 40: 1534 (1103, 431 REF) [00:00:10]*** step 41: 1497 (1093, 404 REF) [00:00:10]*** step 42: 1462 (1083, 379 REF) [00:00:10]*** step 43: 1428 (1073, 355 REF) [00:00:10]*** step 44: 1396 (1063, 333 REF) [00:00:10]*** step 45: 1365 (1053, 312 REF) [00:00:10]*** step 46: 1334 (1043, 291 REF) [00:00:10]*** step 47: 1305 (1033, 272 REF) [00:00:10]*** step 48: 1277 (1023, 254 REF) [00:00:10]*** step 49: 1250 (1013, 237 REF) [00:00:10]*** step 50: 1224 (990, 234 REF) [00:00:10]*** step 51: 1199 (980, 219 REF) [00:00:10]*** step 52: 1175 (970, 205 REF) [00:00:10]*** step 53: 1152 (960, 192 REF) [00:00:10]*** step 54: 1130 (950, 180 REF) [00:00:10]*** step 55: 1108 (940, 168 REF) [00:00:10]*** step 56: 1088 (930, 158 REF) [00:00:10]*** step 57: 1068 (920, 148 REF) [00:00:10]*** step 58: 1049 (910, 139 REF) [00:00:10]*** step 59: 1030 (900, 130 REF) [00:00:10]*** step 60: 1012 (890, 122 REF) [00:00:10]*** step 61: 995 (880, 115 REF) [00:00:10]*** step 62: 979 (870, 109 REF) [00:00:10]*** step 63: 963 (860, 103 REF) [00:00:10]*** step 64: 948 (850, 98 REF) [00:00:10]*** step 65: 933 (840, 93 REF) [00:00:10]*** step 66: 919 (830, 89 REF) [00:00:10]*** step 67: 905 (820, 85 REF) [00:00:10]*** step 68: 892 (810, 82 REF) [00:00:10]*** step 69: 879 (800, 79 REF) [00:00:10]*** step 70: 867 (790, 77 REF) [00:00:10]*** step 71: 855 (780, 75 REF) [00:00:10]*** step 72: 844 (770, 74 REF) [00:00:10]*** step 73: 833 (760, 73 REF) [00:00:10]*** step 74: 822 (750, 72 REF) [00:00:10]*** step 75: 812 (740, 72 REF) [00:00:10]*** step 76: 803 (730, 73 REF) [00:00:10]*** step 77: 793 (720, 73 REF) [00:00:10]*** step 78: 784 (710, 74 REF) [00:00:10]*** step 79: 776 (700, 76 REF) [00:00:10]*** step 80: 767 (690, 77 REF) [00:00:10]*** step 81: 759 (680, 79 REF) [00:00:10]*** step 82: 751 (670, 81 REF) [00:00:10]*** step 83: 744 (660, 84 REF) [00:00:10]*** step 84: 737 (650, 87 REF) [00:00:10]*** step 85: 730 (640, 90 REF) [00:00:10]*** step 86: 723 (630, 93 REF) [00:00:10]*** step 87: 717 (620, 97 REF) [00:00:10]*** step 88: 710 (610, 100 REF) [00:00:10]*** step 89: 705 (600, 105 REF) [00:00:10]*** step 90: 699 [00:00:10]*** step 91: 693 [00:00:10]*** step 92: 688 [00:00:10]*** step 93: 683 [00:00:10]*** step 94: 678 [00:00:10]*** step 95: 673 [00:00:10]*** step 96: 669 [00:00:10]*** step 97: 664 [00:00:10]*** step 98: 660 [00:00:10]*** step 99: 656 [00:00:10]*** step 100: 652 [00:00:10]*** step 101: 648 [00:00:10]*** step 102: 644 [00:00:10]*** step 103: 641 [00:00:10]*** step 104: 638 [00:00:10]*** step 105: 634 [00:00:10]*** step 106: 631 [00:00:10]*** step 107: 628 [00:00:10]*** step 108: 625 [00:00:10]*** step 109: 622 [00:00:10]*** step 110: 620 [00:00:10]*** step 111: 617 [00:00:10]*** step 112: 615 [00:00:10]*** step 113: 612 [00:00:10]*** step 114: 610 [00:00:10]*** step 115: 608 [00:00:10]*** step 116: 605 [00:00:10]*** step 117: 603 [00:00:10]*** step 118: 601 [00:00:10]*** step 119: 599 [00:00:10]*** printer: Printer HW initialized [00:00:10]*** initSamCard finished [00:00:10]*** RTC: 9054827+1703893795=1712948622 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x200ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33530624 [00:00:10]*** Is cutter blocked? [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 03 00 02 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 E4 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 8A [00:00:10]Are we in boot? [00:00:10]We are not in boot now [00:00:10]Write to MH i2c: 01 00 00 04 00 04 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 07 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:10]Model is 3 [00:00:10]MH firmware is 30620 [00:00:10]MH boot firmware is 3 [00:00:10]MH_SetPrinterDots 448 [00:00:10]HeadWidthInBytes 56 [00:00:10]maxmasksize 7 [00:00:10]Write to MH i2c: D6 06 00 05 00 65 00 64 00 FF FF A7 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:10]Write to MH i2c: D5 00 00 06 00 DA [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]ExternCall_SetCallbacks [00:00:10]NVStorageInit [00:00:10]MH_GetDate [00:00:10]Write to MH i2c: F0 00 00 07 00 F6 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 09 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 09 00 07 00 00 8E 85 19 66 23 5B 8F 65 03 [19:03:42]Current date/time: 12.04.2024 19:03 [19:03:42]FM_Init [19:03:42]wFMConnect [19:03:42]MH_SAM_On [19:03:42]Write to MH i2c: E0 00 00 08 00 E7 [19:03:42]Write i2c OK [19:03:42]MH_I2C_Read... [19:03:42]*** iso7816_init finished! [19:03:42]*** atr: [19:03:42]*** 0F 3B D5 18 FF 81 91 FE [19:03:42]*** 1F C3 80 73 C8 21 10 0A [19:03:42]*** 00 00 00 00 00 00 00 00 [19:03:42]*** 00 00 00 00 00 00 00 00 [19:03:42]*** 00 00 00 00 00 00 00 00 [19:03:42]*** 00 00 00 00 00 00 00 00 [19:03:42]*** 00 00 00 00 00 00 00 00 [19:03:42]*** 00 00 00 00 00 00 00 00 [19:03:42]Read from MH i2c: E0 [19:03:42]MH_I2C_Read... [19:03:42]Read from MH i2c: E0 10 00 [19:03:42]MH_I2C_Read... [19:03:42]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [19:03:42]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [19:03:42]wFMCommunicate request_size=10 [19:03:42]MH_SAM_APDU [19:03:42]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [19:03:42]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [19:03:42]Write i2c OK [19:03:42]MH_I2C_Read... [19:03:42]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [19:03:42]Read from MH i2c: E2 [19:03:42]MH_I2C_Read... [19:03:42]Read from MH i2c: E2 03 00 [19:03:42]MH_I2C_Read... [19:03:42]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [19:03:42]RAPDU: 90 00 [19:03:42]wFMCommunicate OK [19:03:42]wFMCommunicate request_size=4 [19:03:42]MH_SAM_APDU [19:03:42]CAPDU: 80 11 00 00 [19:03:42]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [19:03:42]Write i2c OK [19:03:42]MH_I2C_Read... [19:03:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:03:42]Read from MH i2c: E2 [19:03:42]MH_I2C_Read... [19:03:42]Read from MH i2c: E2 17 00 [19:03:42]MH_I2C_Read... [19:03:42]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D3 [19:03:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:03:42]wFMCommunicate OK [19:03:42]Detected FM SN is 0000000000963154 [19:03:42]Stored FM SN is 0000000000963154 [19:03:42]wFMCommunicate request_size=9 [19:03:42]MH_SAM_APDU [19:03:42]CAPDU: 80 16 00 00 04 9D 42 01 00 [19:03:42]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 9D 42 01 00 00 00 72 [19:03:42]Write i2c OK [19:03:42]MH_I2C_Read... [19:03:42]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [19:03:42]Read from MH i2c: E2 [19:03:42]MH_I2C_Read... [19:03:42]Read from MH i2c: E2 03 00 [19:03:42]MH_I2C_Read... [19:03:42]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [19:03:42]RAPDU: 90 00 [19:03:42]wFMCommunicate OK [19:03:42]FM PIN OK [19:03:42]wFMCommunicate request_size=8 [19:03:42]MH_SAM_APDU [19:03:42]CAPDU: 80 14 04 00 03 02 00 01 [19:03:42]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [19:03:42]Write i2c OK [19:03:42]MH_I2C_Read... [19:03:42]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [19:03:42]Read from MH i2c: E2 [19:03:42]MH_I2C_Read... [19:03:42]Read from MH i2c: E2 03 00 [19:03:42]MH_I2C_Read... [19:03:42]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [19:03:42]RAPDU: 90 00 [19:03:42]wFMCommunicate OK [19:03:42]wFMCommunicate request_size=13 [19:03:42]MH_SAM_APDU [19:03:42]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [19:03:42]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [19:03:42]Write i2c OK [19:03:42]MH_I2C_Read... [19:03:42]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [19:03:42]Read from MH i2c: E2 [19:03:42]MH_I2C_Read... [19:03:42]Read from MH i2c: E2 03 00 [19:03:42]MH_I2C_Read... [19:03:42]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [19:03:42]RAPDU: 90 00 [19:03:42]wFMCommunicate OK [19:03:42]wFMCommunicate request_size=4 [19:03:42]MH_SAM_APDU [19:03:42]CAPDU: 80 11 00 00 [19:03:42]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [19:03:42]Write i2c OK [19:03:42]MH_I2C_Read... [19:03:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:03:42]Read from MH i2c: E2 [19:03:42]MH_I2C_Read... [19:03:42]Read from MH i2c: E2 17 00 [19:03:42]MH_I2C_Read... [19:03:42]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D7 [19:03:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:03:42]wFMCommunicate OK [19:03:42]DocumentArchiveInit [19:03:42]Start Httpd... [19:03:42]Httpd thread 3067215204 created [19:03:42]Write to MH i2c: 01 00 00 0F 00 0F [19:03:42]Write i2c OK [19:03:42]MH_I2C_Read... [19:03:42]Read from MH i2c: 01 [19:03:42]MH_I2C_Read... [19:03:42]Read from MH i2c: 01 07 00 [19:03:42]MH_I2C_Read... [19:03:42]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [19:03:42]Allocated Socket 5 [19:03:42]Bind OK [19:03:42]Listen OK [19:03:42]httpd running on port 8080 [19:03:42]Waiting for new connection... [19:03:42]MH Int Process started [19:03:42]OFD Sender: No OFD packet to send [19:03:45]accept exits with 6 [19:03:45]New connection [19:03:45]New thread 3066928484 created [19:03:45]Waiting for new connection... [19:03:45] Sock 6.Parse request [19:03:45]Sock 6.Check first char [19:03:45]Sock 6.First char is OK [19:03:45]request: POST /json_proto HTTP/1.0 [19:03:45]Method: POST [19:03:45]URL: /json_proto [19:03:45]Method is POST - this is cgi request [19:03:45]url: /json_proto [19:03:45]query_string will be loaded in cgi processing [19:03:45]execute_cgi json_proto POST (null) [19:03:45]execute_cgi path=json_proto method=POST [19:03:45]POST find Content-Length [19:03:45]Host: 172.17.33.3:8080 [19:03:45]Content-Length: 215 [19:03:45]Content-Type: application/json [19:03:45] [19:03:45]POST finish read [19:03:45]Found Content-Length = 215 [19:03:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:03:45]execute_script... [19:03:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:03:45]POST & json_proto [19:03:45]process_json_proto [19:03:45]json parsed OK: [19:03:45]protocol is kg_v1.0 [19:03:45]action value=get_value [19:03:45]process_action get_value [19:03:45]cmd_get_value [19:03:45]process_action get_value done [19:03:45]requested_data is exist [19:03:45]produce_requested_data [19:03:45]requested_item kkm.sn is exist - process it [19:03:45]requested_item kkm.ver is exist - process it [19:03:45]requested_item fm.sn is exist - process it [19:03:45]wFMCommunicate request_size=4 [19:03:45]MH_SAM_APDU [19:03:45]CAPDU: 80 11 00 00 [19:03:45]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [19:03:45]Write i2c OK [19:03:45]MH_I2C_Read... [19:03:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:03:45]Read from MH i2c: E2 [19:03:45]MH_I2C_Read... [19:03:45]Read from MH i2c: E2 17 00 [19:03:45]MH_I2C_Read... [19:03:45]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D9 [19:03:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:03:45]wFMCommunicate OK [19:03:45]requested_item fd.num is exist - process it [19:03:45]SAM_PROTO_GetFieldsCounters [19:03:45]wFMCommunicate request_size=4 [19:03:45]MH_SAM_APDU [19:03:45]CAPDU: 80 13 00 00 [19:03:45]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [19:03:45]Write i2c OK [19:03:45]MH_I2C_Read... [19:03:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:03:45]Read from MH i2c: E2 [19:03:45]MH_I2C_Read... [19:03:45]Read from MH i2c: E2 62 00 [19:03:45]MH_I2C_Read... [19:03:45]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 35 70 00 00 0E 04 04 00 71 00 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 E9 [19:03:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 35 70 00 00 0E 04 04 00 71 00 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:03:45]wFMCommunicate OK [19:03:45]SAM_PROTO_GetFieldsCounters done [19:03:45]requested_item shift.num is exist - process it [19:03:45]requested_item shift.opened is exist - process it [19:03:45]req_shift_opened [19:03:45]FM_GetShiftState [19:03:45]SAM_PROTO_GetShiftState [19:03:45]wFMCommunicate request_size=4 [19:03:45]MH_SAM_APDU [19:03:45]CAPDU: 80 13 01 00 [19:03:45]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [19:03:45]Write i2c OK [19:03:45]MH_I2C_Read... [19:03:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:03:45]Read from MH i2c: E2 [19:03:45]MH_I2C_Read... [19:03:45]Read from MH i2c: E2 0E 00 [19:03:45]MH_I2C_Read... [19:03:45]Read from MH i2c: E2 0E 00 12 00 00 09 00 00 00 00 00 00 00 00 00 00 90 00 9A [19:03:45]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [19:03:45]wFMCommunicate OK [19:03:45]SAM_PROTO_GetShiftState done [19:03:45]FM_GetShiftState done [19:03:45]req_shift_opened done [19:03:45]requested_item shift.open_date is exist - process it [19:03:45]req_shift_open_date [19:03:45]FM_GetShiftState [19:03:45]SAM_PROTO_GetShiftState [19:03:45]wFMCommunicate request_size=4 [19:03:45]MH_SAM_APDU [19:03:45]CAPDU: 80 13 01 00 [19:03:45]Write to MH i2c: E2 08 00 13 00 80 13 01 00 00 00 00 00 90 [19:03:45]Write i2c OK [19:03:45]MH_I2C_Read... [19:03:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:03:45]Read from MH i2c: E2 [19:03:45]MH_I2C_Read... [19:03:45]Read from MH i2c: E2 0E 00 [19:03:45]MH_I2C_Read... [19:03:45]Read from MH i2c: E2 0E 00 13 00 00 09 00 00 00 00 00 00 00 00 00 00 90 00 9B [19:03:45]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [19:03:45]wFMCommunicate OK [19:03:45]SAM_PROTO_GetShiftState done [19:03:45]FM_GetShiftState done [19:03:45]req_shift_open_date done [19:03:45]produce_requested_data done [19:03:45]produce_requested_data return {"kkm.sn":"0300000027","kkm.ver":"001","fm.sn":"0000000000963154","fd.num":28725,"shift.num":113,"shift.opened":0,"shift.open_date":0} [19:03:45]process_action_free get_value [19:03:45]json_value_free [19:03:45]json_value_free done [19:03:45]process_json_proto returns [19:03:45]Send response to host [19:03:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000027","kkm.ver":"001","fm.sn":"0000000000963154","fd.num":28725,"shift.num":113,"shift.opened":0,"shift.open_date":0}}} [19:03:45]free response buf [19:03:45]execute_script done [19:03:45]execute_script returns [19:03:45]free content buf [19:03:45]Sock 6.Close socket [19:03:45]Sock 6.Thread stoped [19:03:45]accept exits with 7 [19:03:45]New connection [19:03:45]New thread 3066785124 created [19:03:45]Thread 3066928484 joined [19:03:45]Waiting for new connection... [19:03:45] Sock 7.Parse request [19:03:45]Sock 7.Check first char [19:03:45]Sock 7.First char is OK [19:03:45]request: POST /json_proto HTTP/1.0 [19:03:45]Method: POST [19:03:45]URL: /json_proto [19:03:45]Method is POST - this is cgi request [19:03:45]url: /json_proto [19:03:45]query_string will be loaded in cgi processing [19:03:45]execute_cgi json_proto POST (null) [19:03:45]execute_cgi path=json_proto method=POST [19:03:45]POST find Content-Length [19:03:45]Host: 172.17.33.3:8080 [19:03:45]Content-Length: 331 [19:03:45]Content-Type: application/json [19:03:45] [19:03:45]POST finish read [19:03:45]Found Content-Length = 331 [19:03:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [19:03:45]execute_script... [19:03:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [19:03:45]POST & json_proto [19:03:45]process_json_proto [19:03:45]json parsed OK: [19:03:45]protocol is kg_v1.0 [19:03:45]action value=get_value [19:03:45]process_action get_value [19:03:45]cmd_get_value [19:03:45]process_action get_value done [19:03:45]requested_data is exist [19:03:45]produce_requested_data [19:03:45]requested_item fm.sale.total is exist - process it [19:03:45]SAM_PROTO_GetFMData [19:03:45]wFMCommunicate request_size=4 [19:03:45]MH_SAM_APDU [19:03:45]CAPDU: 80 13 03 00 [19:03:45]Write to MH i2c: E2 08 00 14 00 80 13 03 00 00 00 00 00 93 [19:03:45]Write i2c OK [19:03:45]MH_I2C_Read... [19:03:46]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [19:03:46]Read from MH i2c: E2 [19:03:46]MH_I2C_Read... [19:03:46]Read from MH i2c: E2 FD 00 [19:03:46]MH_I2C_Read... [19:03:46]Read from MH i2c: E2 FD 00 14 00 00 C3 04 85 04 BF 04 6E 04 04 00 52 6F 00 00 69 04 A1 00 6F 04 04 00 F8 6B 00 00 B1 04 04 00 D9 FB 7B AF 70 04 04 00 78 E9 41 70 72 04 04 00 61 12 3A 3F 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 E7 A0 A3 12 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 D7 99 8D 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 9C 00 6F 04 04 00 5A 03 00 00 B1 04 04 00 A8 5F 91 0C 70 04 04 00 A8 5F 91 0C 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 C1 B4 55 01 EF 03 09 00 F6 90 00 6F [19:03:46]RAPDU: C3 04 85 04 BF 04 6E 04 04 00 52 6F 00 00 69 04 A1 00 6F 04 04 00 F8 6B 00 00 B1 04 04 00 D9 FB 7B AF 70 04 04 00 78 E9 41 70 72 04 04 00 61 12 3A 3F 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 E7 A0 A3 12 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 D7 99 8D 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 9C 00 6F 04 04 00 5A 03 00 00 B1 04 04 00 A8 5F 91 0C 70 04 04 00 A8 5F 91 0C 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 C1 B4 55 01 EF 03 09 00 F6 90 00 [19:03:46]wFMCommunicate OK [19:03:46]wFMCommunicate request_size=4 [19:03:46]MH_SAM_APDU [19:03:46]CAPDU: 80 17 00 00 [19:03:46]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [19:03:46]Write i2c OK [19:03:46]MH_I2C_Read... [19:03:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:03:46]Read from MH i2c: E2 [19:03:46]MH_I2C_Read... [19:03:46]Read from MH i2c: E2 FD 00 [19:03:46]MH_I2C_Read... [19:03:46]Read from MH i2c: E2 FD 00 15 00 00 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 4B 79 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 35 [19:03:46]RAPDU: 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 4B 79 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [19:03:46]wFMCommunicate OK [19:03:46]wFMCommunicate request_size=4 [19:03:46]MH_SAM_APDU [19:03:46]CAPDU: 80 17 00 00 [19:03:46]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [19:03:46]Write i2c OK [19:03:46]MH_I2C_Read... [19:03:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:03:46]Read from MH i2c: E2 [19:03:46]MH_I2C_Read... [19:03:46]Read from MH i2c: E2 FD 00 [19:03:46]MH_I2C_Read... [19:03:46]Read from MH i2c: E2 FD 00 16 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 B4 [19:03:46]RAPDU: 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [19:03:46]wFMCommunicate OK [19:03:46]wFMCommunicate request_size=4 [19:03:46]MH_SAM_APDU [19:03:46]CAPDU: 80 17 00 00 [19:03:46]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [19:03:46]Write i2c OK [19:03:46]MH_I2C_Read... [19:03:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:03:46]Read from MH i2c: E2 [19:03:46]MH_I2C_Read... [19:03:46]Read from MH i2c: E2 FD 00 [19:03:46]MH_I2C_Read... [19:03:46]Read from MH i2c: E2 FD 00 17 00 00 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 09 [19:03:46]RAPDU: 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [19:03:46]wFMCommunicate OK [19:03:46]wFMCommunicate request_size=4 [19:03:46]MH_SAM_APDU [19:03:46]CAPDU: 80 17 00 00 [19:03:46]Write to MH i2c: E2 08 00 18 00 80 17 00 00 00 00 00 00 98 [19:03:46]Write i2c OK [19:03:46]MH_I2C_Read... [19:03:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 221! [19:03:47]Read from MH i2c: E2 [19:03:47]MH_I2C_Read... [19:03:47]Read from MH i2c: E2 E0 00 [19:03:47]MH_I2C_Read... [19:03:47]Read from MH i2c: E2 E0 00 18 00 00 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 82 [19:03:47]RAPDU: 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [19:03:47]wFMCommunicate OK [19:03:47]SAM_PROTO_GetFMData done [19:03:47]requested_item fm.sale_refund.total is exist - process it [19:03:47]requested_item fm.buy.total is exist - process it [19:03:47]requested_item shift.sale.total is exist - process it [19:03:47]SAM_PROTO_GetShiftData [19:03:47]wFMCommunicate request_size=4 [19:03:47]MH_SAM_APDU [19:03:47]CAPDU: 80 13 02 00 [19:03:47]Write to MH i2c: E2 08 00 19 00 80 13 02 00 00 00 00 00 97 [19:03:47]Write i2c OK [19:03:47]MH_I2C_Read... [19:03:47]OFD Sender: No OFD packet to send [19:03:47]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [19:03:47]Read from MH i2c: E2 [19:03:47]MH_I2C_Read... [19:03:47]Read from MH i2c: E2 FD 00 [19:03:47]MH_I2C_Read... [19:03:47]Read from MH i2c: E2 FD 00 19 00 00 BB 04 AA 04 B7 04 6E 04 04 00 AD 00 00 00 69 04 9D 00 6F 04 04 00 A9 00 00 00 B1 04 04 00 B6 F0 1E 01 70 04 03 00 F8 C7 B2 72 04 03 00 BE 28 6C 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 8F 7A 1E 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 22 8A 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 D0 DB 17 70 04 03 00 D0 DB 17 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 AF 88 02 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 1B [19:03:47]RAPDU: BB 04 AA 04 B7 04 6E 04 04 00 AD 00 00 00 69 04 9D 00 6F 04 04 00 A9 00 00 00 B1 04 04 00 B6 F0 1E 01 70 04 03 00 F8 C7 B2 72 04 03 00 BE 28 6C 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 8F 7A 1E 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 22 8A 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 D0 DB 17 70 04 03 00 D0 DB 17 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 AF 88 02 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [19:03:47]wFMCommunicate OK [19:03:47]wFMCommunicate request_size=4 [19:03:47]MH_SAM_APDU [19:03:47]CAPDU: 80 17 00 00 [19:03:47]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [19:03:47]Write i2c OK [19:03:47]MH_I2C_Read... [19:03:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:03:47]Read from MH i2c: E2 [19:03:47]MH_I2C_Read... [19:03:47]Read from MH i2c: E2 FD 00 [19:03:47]MH_I2C_Read... [19:03:47]Read from MH i2c: E2 FD 00 1A 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 0E 36 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 90 00 88 [19:03:47]RAPDU: 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 0E 36 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 90 00 [19:03:47]wFMCommunicate OK [19:03:47]wFMCommunicate request_size=4 [19:03:47]MH_SAM_APDU [19:03:47]CAPDU: 80 17 00 00 [19:03:47]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [19:03:47]Write i2c OK [19:03:47]MH_I2C_Read... [19:03:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:03:48]Read from MH i2c: E2 [19:03:48]MH_I2C_Read... [19:03:48]Read from MH i2c: E2 FD 00 [19:03:48]MH_I2C_Read... [19:03:48]Read from MH i2c: E2 FD 00 1B 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 90 00 C7 [19:03:48]RAPDU: 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 90 00 [19:03:48]wFMCommunicate OK [19:03:48]wFMCommunicate request_size=4 [19:03:48]MH_SAM_APDU [19:03:48]CAPDU: 80 17 00 00 [19:03:48]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [19:03:48]Write i2c OK [19:03:48]MH_I2C_Read... [19:03:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:03:48]Read from MH i2c: E2 [19:03:48]MH_I2C_Read... [19:03:48]Read from MH i2c: E2 FD 00 [19:03:48]MH_I2C_Read... [19:03:48]Read from MH i2c: E2 FD 00 1C 00 00 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 11 [19:03:48]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [19:03:48]wFMCommunicate OK [19:03:48]wFMCommunicate request_size=4 [19:03:48]MH_SAM_APDU [19:03:48]CAPDU: 80 17 00 00 [19:03:48]Write to MH i2c: E2 08 00 1D 00 80 17 00 00 00 00 00 00 9D [19:03:48]Write i2c OK [19:03:48]MH_I2C_Read... [19:03:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 213! [19:03:48]Read from MH i2c: E2 [19:03:48]MH_I2C_Read... [19:03:48]Read from MH i2c: E2 D8 00 [19:03:48]MH_I2C_Read... [19:03:48]Read from MH i2c: E2 D8 00 1D 00 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 84 [19:03:48]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [19:03:48]wFMCommunicate OK [19:03:48]SAM_PROTO_GetShiftData done [19:03:48]requested_item shift.sale.total_cash is exist - process it [19:03:48]requested_item shift.sale_refund.total is exist - process it [19:03:48]requested_item shift.sale_refund.total_cash is exist - process it [19:03:48]requested_item shift.buy.total is exist - process it [19:03:48]requested_item shift.buy.total_cash is exist - process it [19:03:48]produce_requested_data done [19:03:48]produce_requested_data return {"fm.sale.total":29441382.01,"fm.sale_refund.total":2108538.00,"fm.buy.total":0.00,"shift.sale.total":188049.18,"shift.sale.total_cash":117166.00,"shift.sale_refund.total":15636.00,"shift.sale_refund.total_cash":15636.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [19:03:48]process_action_free get_value [19:03:48]json_value_free [19:03:48]json_value_free done [19:03:48]process_json_proto returns [19:03:48]Send response to host [19:03:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":29441382.01,"fm.sale_refund.total":2108538.00,"fm.buy.total":0.00,"shift.sale.total":188049.18,"shift.sale.total_cash":117166.00,"shift.sale_refund.total":15636.00,"shift.sale_refund.total_cash":15636.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [19:03:48]free response buf [19:03:48]execute_script done [19:03:48]execute_script returns [19:03:48]free content buf [19:03:48]Sock 7.Close socket [19:03:48]Sock 7.Thread stoped [19:03:52]OFD Sender: No OFD packet to send [19:03:57]OFD Sender: No OFD packet to send [19:03:58]accept exits with 6 [19:03:58]New connection [19:03:58]New thread 3066928484 created [19:03:58]Thread 3066785124 joined [19:03:58]Waiting for new connection... [19:03:58] Sock 6.Parse request [19:03:58]Sock 6.Check first char [19:03:58]Sock 6.First char is OK [19:03:58]request: POST /json_proto HTTP/1.0 [19:03:58]Method: POST [19:03:58]URL: /json_proto [19:03:58]Method is POST - this is cgi request [19:03:58]url: /json_proto [19:03:58]query_string will be loaded in cgi processing [19:03:58]execute_cgi json_proto POST (null) [19:03:58]execute_cgi path=json_proto method=POST [19:03:58]POST find Content-Length [19:03:58]Host: 172.17.33.3:8080 [19:03:58]Content-Length: 215 [19:03:58]Content-Type: application/json [19:03:58] [19:03:58]POST finish read [19:03:58]Found Content-Length = 215 [19:03:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:03:58]execute_script... [19:03:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:03:58]POST & json_proto [19:03:58]process_json_proto [19:03:58]json parsed OK: [19:03:58]protocol is kg_v1.0 [19:03:58]action value=get_value [19:03:58]process_action get_value [19:03:58]cmd_get_value [19:03:58]process_action get_value done [19:03:58]requested_data is exist [19:03:58]produce_requested_data [19:03:58]requested_item kkm.sn is exist - process it [19:03:58]requested_item kkm.ver is exist - process it [19:03:58]requested_item fm.sn is exist - process it [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 1E 00 80 11 00 00 00 00 00 00 98 [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 1E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 E7 [19:03:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:03:58]wFMCommunicate OK [19:03:58]requested_item fd.num is exist - process it [19:03:58]SAM_PROTO_GetFieldsCounters [19:03:58]wFMCommunicate request_size=4 [19:03:58]MH_SAM_APDU [19:03:58]CAPDU: 80 13 00 00 [19:03:58]Write to MH i2c: E2 08 00 1F 00 80 13 00 00 00 00 00 00 9B [19:03:58]Write i2c OK [19:03:58]MH_I2C_Read... [19:03:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:03:58]Read from MH i2c: E2 [19:03:58]MH_I2C_Read... [19:03:58]Read from MH i2c: E2 62 00 [19:03:58]MH_I2C_Read... [19:03:58]Read from MH i2c: E2 62 00 1F 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 35 70 00 00 0E 04 04 00 71 00 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 F7 [19:03:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 35 70 00 00 0E 04 04 00 71 00 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:03:58]wFMCommunicate OK [19:03:58]SAM_PROTO_GetFieldsCounters done [19:03:58]requested_item shift.num is exist - process it [19:03:58]requested_item shift.opened is exist - process it [19:03:58]req_shift_opened [19:03:58]FM_GetShiftState [19:03:58]SAM_PROTO_GetShiftState [19:03:58]wFMCommunicate request_size=4 [19:03:58]MH_SAM_APDU [19:03:58]CAPDU: 80 13 01 00 [19:03:58]Write to MH i2c: E2 08 00 20 00 80 13 01 00 00 00 00 00 9D [19:03:58]Write i2c OK [19:03:58]MH_I2C_Read... [19:03:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:03:58]Read from MH i2c: E2 [19:03:58]MH_I2C_Read... [19:03:58]Read from MH i2c: E2 0E 00 [19:03:58]MH_I2C_Read... [19:03:58]Read from MH i2c: E2 0E 00 20 00 00 09 00 00 00 00 00 00 00 00 00 00 90 00 A8 [19:03:58]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [19:03:58]wFMCommunicate OK [19:03:58]SAM_PROTO_GetShiftState done [19:03:58]FM_GetShiftState done [19:03:58]req_shift_opened done [19:03:58]requested_item shift.open_date is exist - process it [19:03:58]req_shift_open_date [19:03:58]FM_GetShiftState [19:03:58]SAM_PROTO_GetShiftState [19:03:58]wFMCommunicate request_size=4 [19:03:58]MH_SAM_APDU [19:03:58]CAPDU: 80 13 01 00 [19:03:58]Write to MH i2c: E2 08 00 21 00 80 13 01 00 00 00 00 00 9E [19:03:58]Write i2c OK [19:03:58]MH_I2C_Read... [19:03:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:03:58]Read from MH i2c: E2 [19:03:58]MH_I2C_Read... [19:03:58]Read from MH i2c: E2 0E 00 [19:03:58]MH_I2C_Read... [19:03:58]Read from MH i2c: E2 0E 00 21 00 00 09 00 00 00 00 00 00 00 00 00 00 90 00 A9 [19:03:58]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [19:03:58]wFMCommunicate OK [19:03:58]SAM_PROTO_GetShiftState done [19:03:58]FM_GetShiftState done [19:03:58]req_shift_open_date done [19:03:58]produce_requested_data done [19:03:58]produce_requested_data return {"kkm.sn":"0300000027","kkm.ver":"001","fm.sn":"0000000000963154","fd.num":28725,"shift.num":113,"shift.opened":0,"shift.open_date":0} [19:03:58]process_action_free get_value [19:03:58]json_value_free [19:03:58]json_value_free done [19:03:58]process_json_proto returns [19:03:58]Send response to host [19:03:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000027","kkm.ver":"001","fm.sn":"0000000000963154","fd.num":28725,"shift.num":113,"shift.opened":0,"shift.open_date":0}}} [19:03:58]free response buf [19:03:58]execute_script done [19:03:58]execute_script returns [19:03:58]free content buf [19:03:58]Sock 6.Close socket [19:03:58]Sock 6.Thread stoped [19:03:58]accept exits with 9 [19:03:58]New connection [19:03:58]New thread 3066785124 created [19:03:58]Thread 3066928484 joined [19:03:58]Waiting for new connection... [19:03:58] Sock 9.Parse request [19:03:58]Sock 9.Check first char [19:03:58]Sock 9.First char is OK [19:03:58]request: POST /json_proto HTTP/1.0 [19:03:58]Method: POST [19:03:58]URL: /json_proto [19:03:58]Method is POST - this is cgi request [19:03:58]url: /json_proto [19:03:58]query_string will be loaded in cgi processing [19:03:58]execute_cgi json_proto POST (null) [19:03:58]execute_cgi path=json_proto method=POST [19:03:58]POST find Content-Length [19:03:58]Host: 172.17.33.3:8080 [19:03:58]Content-Length: 331 [19:03:58]Content-Type: application/json [19:03:58] [19:03:58]POST finish read [19:03:58]Found Content-Length = 331 [19:03:58]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" ] } } [19:03:58]execute_script... [19:03:58]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" ] } } [19:03:58]POST & json_proto [19:03:58]process_json_proto [19:03:58]json parsed OK: [19:03:58]protocol is kg_v1.0 [19:03:58]action value=get_value [19:03:58]process_action get_value [19:03:58]cmd_get_value [19:03:58]process_action get_value done [19:03:58]requested_data is exist [19:03:58]produce_requested_data [19:03:58]requested_item fm.sale.total is exist - process it [19:03:58]SAM_PROTO_GetFMData [19:03:58]wFMCommunicate request_size=4 [19:03:58]MH_SAM_APDU [19:03:58]CAPDU: 80 13 03 00 [19:03:58]Write to MH i2c: E2 08 00 22 00 80 13 03 00 00 00 00 00 A1 [19:03:58]Write i2c OK [19:03:58]MH_I2C_Read... [19:03:59]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [19:03:59]Read from MH i2c: E2 [19:03:59]MH_I2C_Read... [19:03:59]Read from MH i2c: E2 FD 00 [19:03:59]MH_I2C_Read... [19:03:59]Read from MH i2c: E2 FD 00 22 00 00 C3 04 85 04 BF 04 6E 04 04 00 52 6F 00 00 69 04 A1 00 6F 04 04 00 F8 6B 00 00 B1 04 04 00 D9 FB 7B AF 70 04 04 00 78 E9 41 70 72 04 04 00 61 12 3A 3F 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 E7 A0 A3 12 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 D7 99 8D 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 9C 00 6F 04 04 00 5A 03 00 00 B1 04 04 00 A8 5F 91 0C 70 04 04 00 A8 5F 91 0C 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 C1 B4 55 01 EF 03 09 00 F6 90 00 7D [19:03:59]RAPDU: C3 04 85 04 BF 04 6E 04 04 00 52 6F 00 00 69 04 A1 00 6F 04 04 00 F8 6B 00 00 B1 04 04 00 D9 FB 7B AF 70 04 04 00 78 E9 41 70 72 04 04 00 61 12 3A 3F 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 E7 A0 A3 12 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 D7 99 8D 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 9C 00 6F 04 04 00 5A 03 00 00 B1 04 04 00 A8 5F 91 0C 70 04 04 00 A8 5F 91 0C 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 C1 B4 55 01 EF 03 09 00 F6 90 00 [19:03:59]wFMCommunicate OK [19:03:59]wFMCommunicate request_size=4 [19:03:59]MH_SAM_APDU [19:03:59]CAPDU: 80 17 00 00 [19:03:59]Write to MH i2c: E2 08 00 23 00 80 17 00 00 00 00 00 00 A3 [19:03:59]Write i2c OK [19:03:59]MH_I2C_Read... [19:03:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:03:59]Read from MH i2c: E2 [19:03:59]MH_I2C_Read... [19:03:59]Read from MH i2c: E2 FD 00 [19:03:59]MH_I2C_Read... [19:03:59]Read from MH i2c: E2 FD 00 23 00 00 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 4B 79 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 43 [19:03:59]RAPDU: 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 4B 79 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [19:03:59]wFMCommunicate OK [19:03:59]wFMCommunicate request_size=4 [19:03:59]MH_SAM_APDU [19:03:59]CAPDU: 80 17 00 00 [19:03:59]Write to MH i2c: E2 08 00 24 00 80 17 00 00 00 00 00 00 A4 [19:03:59]Write i2c OK [19:03:59]MH_I2C_Read... [19:03:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:03:59]Read from MH i2c: E2 [19:03:59]MH_I2C_Read... [19:03:59]Read from MH i2c: E2 FD 00 [19:03:59]MH_I2C_Read... [19:03:59]Read from MH i2c: E2 FD 00 24 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 C2 [19:03:59]RAPDU: 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [19:03:59]wFMCommunicate OK [19:03:59]wFMCommunicate request_size=4 [19:03:59]MH_SAM_APDU [19:03:59]CAPDU: 80 17 00 00 [19:03:59]Write to MH i2c: E2 08 00 25 00 80 17 00 00 00 00 00 00 A5 [19:03:59]Write i2c OK [19:03:59]MH_I2C_Read... [19:04:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:04:00]Read from MH i2c: E2 [19:04:00]MH_I2C_Read... [19:04:00]Read from MH i2c: E2 FD 00 [19:04:00]MH_I2C_Read... [19:04:00]Read from MH i2c: E2 FD 00 25 00 00 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 17 [19:04:00]RAPDU: 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [19:04:00]wFMCommunicate OK [19:04:00]wFMCommunicate request_size=4 [19:04:00]MH_SAM_APDU [19:04:00]CAPDU: 80 17 00 00 [19:04:00]Write to MH i2c: E2 08 00 26 00 80 17 00 00 00 00 00 00 A6 [19:04:00]Write i2c OK [19:04:00]MH_I2C_Read... [19:04:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 221! [19:04:00]Read from MH i2c: E2 [19:04:00]MH_I2C_Read... [19:04:00]Read from MH i2c: E2 E0 00 [19:04:00]MH_I2C_Read... [19:04:00]Read from MH i2c: E2 E0 00 26 00 00 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 [19:04:00]RAPDU: 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [19:04:00]wFMCommunicate OK [19:04:00]SAM_PROTO_GetFMData done [19:04:00]requested_item fm.sale_refund.total is exist - process it [19:04:00]requested_item fm.buy.total is exist - process it [19:04:00]requested_item shift.sale.total is exist - process it [19:04:00]SAM_PROTO_GetShiftData [19:04:00]wFMCommunicate request_size=4 [19:04:00]MH_SAM_APDU [19:04:00]CAPDU: 80 13 02 00 [19:04:00]Write to MH i2c: E2 08 00 27 00 80 13 02 00 00 00 00 00 A5 [19:04:00]Write i2c OK [19:04:00]MH_I2C_Read... [19:04:01]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [19:04:01]Read from MH i2c: E2 [19:04:01]MH_I2C_Read... [19:04:01]Read from MH i2c: E2 FD 00 [19:04:01]MH_I2C_Read... [19:04:01]Read from MH i2c: E2 FD 00 27 00 00 BB 04 AA 04 B7 04 6E 04 04 00 AD 00 00 00 69 04 9D 00 6F 04 04 00 A9 00 00 00 B1 04 04 00 B6 F0 1E 01 70 04 03 00 F8 C7 B2 72 04 03 00 BE 28 6C 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 8F 7A 1E 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 22 8A 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 D0 DB 17 70 04 03 00 D0 DB 17 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 AF 88 02 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 29 [19:04:01]RAPDU: BB 04 AA 04 B7 04 6E 04 04 00 AD 00 00 00 69 04 9D 00 6F 04 04 00 A9 00 00 00 B1 04 04 00 B6 F0 1E 01 70 04 03 00 F8 C7 B2 72 04 03 00 BE 28 6C 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 8F 7A 1E 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 22 8A 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 D0 DB 17 70 04 03 00 D0 DB 17 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 AF 88 02 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [19:04:01]wFMCommunicate OK [19:04:01]wFMCommunicate request_size=4 [19:04:01]MH_SAM_APDU [19:04:01]CAPDU: 80 17 00 00 [19:04:01]Write to MH i2c: E2 08 00 28 00 80 17 00 00 00 00 00 00 A8 [19:04:01]Write i2c OK [19:04:01]MH_I2C_Read... [19:04:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:04:01]Read from MH i2c: E2 [19:04:01]MH_I2C_Read... [19:04:01]Read from MH i2c: E2 FD 00 [19:04:01]MH_I2C_Read... [19:04:01]Read from MH i2c: E2 FD 00 28 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 0E 36 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 90 00 96 [19:04:01]RAPDU: 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 0E 36 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 90 00 [19:04:01]wFMCommunicate OK [19:04:01]wFMCommunicate request_size=4 [19:04:01]MH_SAM_APDU [19:04:01]CAPDU: 80 17 00 00 [19:04:01]Write to MH i2c: E2 08 00 29 00 80 17 00 00 00 00 00 00 A9 [19:04:01]Write i2c OK [19:04:01]MH_I2C_Read... [19:04:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:04:01]Read from MH i2c: E2 [19:04:01]MH_I2C_Read... [19:04:01]Read from MH i2c: E2 FD 00 [19:04:01]MH_I2C_Read... [19:04:01]Read from MH i2c: E2 FD 00 29 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 90 00 D5 [19:04:01]RAPDU: 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 90 00 [19:04:01]wFMCommunicate OK [19:04:01]wFMCommunicate request_size=4 [19:04:01]MH_SAM_APDU [19:04:01]CAPDU: 80 17 00 00 [19:04:01]Write to MH i2c: E2 08 00 2A 00 80 17 00 00 00 00 00 00 AA [19:04:01]Write i2c OK [19:04:01]MH_I2C_Read... [19:04:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:04:02]Read from MH i2c: E2 [19:04:02]MH_I2C_Read... [19:04:02]Read from MH i2c: E2 FD 00 [19:04:02]MH_I2C_Read... [19:04:02]Read from MH i2c: E2 FD 00 2A 00 00 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 1F [19:04:02]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [19:04:02]wFMCommunicate OK [19:04:02]wFMCommunicate request_size=4 [19:04:02]MH_SAM_APDU [19:04:02]CAPDU: 80 17 00 00 [19:04:02]Write to MH i2c: E2 08 00 2B 00 80 17 00 00 00 00 00 00 AB [19:04:02]Write i2c OK [19:04:02]MH_I2C_Read... [19:04:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 213! [19:04:02]Read from MH i2c: E2 [19:04:02]MH_I2C_Read... [19:04:02]Read from MH i2c: E2 D8 00 [19:04:02]MH_I2C_Read... [19:04:02]Read from MH i2c: E2 D8 00 2B 00 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 92 [19:04:02]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [19:04:02]wFMCommunicate OK [19:04:02]SAM_PROTO_GetShiftData done [19:04:02]requested_item shift.sale.total_cash is exist - process it [19:04:02]requested_item shift.sale_refund.total is exist - process it [19:04:02]requested_item shift.sale_refund.total_cash is exist - process it [19:04:02]requested_item shift.buy.total is exist - process it [19:04:02]requested_item shift.buy.total_cash is exist - process it [19:04:02]produce_requested_data done [19:04:02]produce_requested_data return {"fm.sale.total":29441382.01,"fm.sale_refund.total":2108538.00,"fm.buy.total":0.00,"shift.sale.total":188049.18,"shift.sale.total_cash":117166.00,"shift.sale_refund.total":15636.00,"shift.sale_refund.total_cash":15636.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [19:04:02]process_action_free get_value [19:04:02]json_value_free [19:04:02]json_value_free done [19:04:02]process_json_proto returns [19:04:02]Send response to host [19:04:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":29441382.01,"fm.sale_refund.total":2108538.00,"fm.buy.total":0.00,"shift.sale.total":188049.18,"shift.sale.total_cash":117166.00,"shift.sale_refund.total":15636.00,"shift.sale_refund.total_cash":15636.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [19:04:02]free response buf [19:04:02]execute_script done [19:04:02]execute_script returns [19:04:02]free content buf [19:04:02]Sock 9.Close socket [19:04:02]Sock 9.Thread stoped [19:04:02]OFD Sender: No OFD packet to send [19:04:07]OFD Sender: No OFD packet to send [19:04:12]OFD Sender: No OFD packet to send [19:04:17]OFD Sender: No OFD packet to send [19:04:22]OFD Sender: No OFD packet to send [19:04:27]OFD Sender: No OFD packet to send [19:04:32]OFD Sender: No OFD packet to send [19:04:37]OFD Sender: No OFD packet to send [19:04:42]OFD Sender: No OFD packet to send [19:04:47]OFD Sender: No OFD packet to send [19:04:52]OFD Sender: No OFD packet to send [19:04:57]OFD Sender: No OFD packet to send [19:05:02]OFD Sender: No OFD packet to send [19:05:07]OFD Sender: No OFD packet to send [19:05:12]OFD Sender: No OFD packet to send [19:05:17]OFD Sender: No OFD packet to send [19:05:22]OFD Sender: No OFD packet to send [19:05:27]OFD Sender: No OFD packet to send [19:05:32]OFD Sender: No OFD packet to send [19:05:37]OFD Sender: No OFD packet to send [19:05:42]OFD Sender: No OFD packet to send [19:05:47]OFD Sender: No OFD packet to send [19:05:52]OFD Sender: No OFD packet to send [19:05:57]OFD Sender: No OFD packet to send [19:06:02]OFD Sender: No OFD packet to send [19:06:07]OFD Sender: No OFD packet to send [19:06:12]OFD Sender: No OFD packet to send [19:06:17]OFD Sender: No OFD packet to send [19:06:22]OFD Sender: No OFD packet to send [19:06:27]OFD Sender: No OFD packet to send [19:06:32]OFD Sender: No OFD packet to send [19:06:37]OFD Sender: No OFD packet to send [19:06:42]OFD Sender: No OFD packet to send [19:06:47]OFD Sender: No OFD packet to send [19:06:52]OFD Sender: No OFD packet to send [19:06:57]OFD Sender: No OFD packet to send [19:07:02]OFD Sender: No OFD packet to send [19:07:07]OFD Sender: No OFD packet to send [19:07:12]OFD Sender: No OFD packet to send [19:07:17]OFD Sender: No OFD packet to send [19:07:22]OFD Sender: No OFD packet to send [19:07:27]OFD Sender: No OFD packet to send [19:07:32]OFD Sender: No OFD packet to send [19:07:37]OFD Sender: No OFD packet to send [19:07:42]OFD Sender: No OFD packet to send [19:07:47]OFD Sender: No OFD packet to send [19:07:52]OFD Sender: No OFD packet to send [19:07:57]OFD Sender: No OFD packet to send [19:08:02]OFD Sender: No OFD packet to send [19:08:07]OFD Sender: No OFD packet to send [19:08:12]OFD Sender: No OFD packet to send [19:08:17]OFD Sender: No OFD packet to send [19:08:22]OFD Sender: No OFD packet to send [19:08:27]OFD Sender: No OFD packet to send [19:08:32]OFD Sender: No OFD packet to send [19:08:37]OFD Sender: No OFD packet to send [19:08:42]OFD Sender: No OFD packet to send [19:08:47]OFD Sender: No OFD packet to send [19:08:52]OFD Sender: No OFD packet to send [19:08:57]OFD Sender: No OFD packet to send [19:09:02]OFD Sender: No OFD packet to send [19:09:07]OFD Sender: No OFD packet to send [19:09:12]OFD Sender: No OFD packet to send [19:09:17]OFD Sender: No OFD packet to send [19:09:22]OFD Sender: No OFD packet to send [19:09:27]OFD Sender: No OFD packet to send [19:09:32]OFD Sender: No OFD packet to send [19:09:37]OFD Sender: No OFD packet to send [19:09:42]OFD Sender: No OFD packet to send [19:09:47]OFD Sender: No OFD packet to send [19:09:52]OFD Sender: No OFD packet to send [19:09:57]OFD Sender: No OFD packet to send [19:10:02]OFD Sender: No OFD packet to send [19:10:07]OFD Sender: No OFD packet to send [19:10:12]OFD Sender: No OFD packet to send [19:10:17]OFD Sender: No OFD packet to send [19:10:22]OFD Sender: No OFD packet to send [19:10:27]OFD Sender: No OFD packet to send [19:10:32]OFD Sender: No OFD packet to send [19:10:37]OFD Sender: No OFD packet to send [19:10:42]OFD Sender: No OFD packet to send [19:10:47]OFD Sender: No OFD packet to send [19:10:52]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:09]accept exits with 6 [19:11:09]New connection [19:11:09]New thread 3066928484 created [19:11:09]Thread 3066785124 joined [19:11:09]Waiting for new connection... [19:11:09] Sock 6.Parse request [19:11:09]Sock 6.Check first char [19:11:09]Sock 6.First char is OK [19:11:09]request: POST /json_proto HTTP/1.0 [19:11:09]Method: POST [19:11:09]URL: /json_proto [19:11:09]Method is POST - this is cgi request [19:11:09]url: /json_proto [19:11:09]query_string will be loaded in cgi processing [19:11:09]execute_cgi json_proto POST (null) [19:11:09]execute_cgi path=json_proto method=POST [19:11:09]POST find Content-Length [19:11:09]Host: 172.17.33.3:8080 [19:11:09]Content-Length: 215 [19:11:09]Content-Type: application/json [19:11:09] [19:11:09]POST finish read [19:11:09]Found Content-Length = 215 [19:11:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:11:09]execute_script... [19:11:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:11:09]POST & json_proto [19:11:09]process_json_proto [19:11:09]json parsed OK: [19:11:09]protocol is kg_v1.0 [19:11:09]action value=get_value [19:11:09]process_action get_value [19:11:09]cmd_get_value [19:11:09]process_action get_value done [19:11:09]requested_data is exist [19:11:09]produce_requested_data [19:11:09]requested_item kkm.sn is exist - process it [19:11:09]requested_item kkm.ver is exist - process it [19:11:09]requested_item fm.sn is exist - process it [19:11:09]wFMCommunicate request_size=4 [19:11:09]MH_SAM_APDU [19:11:09]CAPDU: 80 11 00 00 [19:11:09]Write to MH i2c: E2 08 00 2C 00 80 11 00 00 00 00 00 00 A6 [19:11:09]Write i2c OK [19:11:09]MH_I2C_Read... [19:11:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:11:10]Read from MH i2c: E2 [19:11:10]MH_I2C_Read... [19:11:10]Read from MH i2c: E2 17 00 [19:11:10]MH_I2C_Read... [19:11:10]Read from MH i2c: E2 17 00 2C 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 F5 [19:11:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:11:10]wFMCommunicate OK [19:11:10]requested_item fd.num is exist - process it [19:11:10]SAM_PROTO_GetFieldsCounters [19:11:10]wFMCommunicate request_size=4 [19:11:10]MH_SAM_APDU [19:11:10]CAPDU: 80 13 00 00 [19:11:10]Write to MH i2c: E2 08 00 2D 00 80 13 00 00 00 00 00 00 A9 [19:11:10]Write i2c OK [19:11:10]MH_I2C_Read... [19:11:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:11:10]Read from MH i2c: E2 [19:11:10]MH_I2C_Read... [19:11:10]Read from MH i2c: E2 62 00 [19:11:10]MH_I2C_Read... [19:11:10]Read from MH i2c: E2 62 00 2D 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 35 70 00 00 0E 04 04 00 71 00 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 05 [19:11:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 35 70 00 00 0E 04 04 00 71 00 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:11:10]wFMCommunicate OK [19:11:10]SAM_PROTO_GetFieldsCounters done [19:11:10]requested_item shift.num is exist - process it [19:11:10]requested_item shift.opened is exist - process it [19:11:10]req_shift_opened [19:11:10]FM_GetShiftState [19:11:10]SAM_PROTO_GetShiftState [19:11:10]wFMCommunicate request_size=4 [19:11:10]MH_SAM_APDU [19:11:10]CAPDU: 80 13 01 00 [19:11:10]Write to MH i2c: E2 08 00 2E 00 80 13 01 00 00 00 00 00 AB [19:11:10]Write i2c OK [19:11:10]MH_I2C_Read... [19:11:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:11:10]Read from MH i2c: E2 [19:11:10]MH_I2C_Read... [19:11:10]Read from MH i2c: E2 0E 00 [19:11:10]MH_I2C_Read... [19:11:10]Read from MH i2c: E2 0E 00 2E 00 00 09 00 00 00 00 00 00 00 00 00 00 90 00 B6 [19:11:10]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [19:11:10]wFMCommunicate OK [19:11:10]SAM_PROTO_GetShiftState done [19:11:10]FM_GetShiftState done [19:11:10]req_shift_opened done [19:11:10]requested_item shift.open_date is exist - process it [19:11:10]req_shift_open_date [19:11:10]FM_GetShiftState [19:11:10]SAM_PROTO_GetShiftState [19:11:10]wFMCommunicate request_size=4 [19:11:10]MH_SAM_APDU [19:11:10]CAPDU: 80 13 01 00 [19:11:10]Write to MH i2c: E2 08 00 2F 00 80 13 01 00 00 00 00 00 AC [19:11:10]Write i2c OK [19:11:10]MH_I2C_Read... [19:11:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:11:10]Read from MH i2c: E2 [19:11:10]MH_I2C_Read... [19:11:10]Read from MH i2c: E2 0E 00 [19:11:10]MH_I2C_Read... [19:11:10]Read from MH i2c: E2 0E 00 2F 00 00 09 00 00 00 00 00 00 00 00 00 00 90 00 B7 [19:11:10]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [19:11:10]wFMCommunicate OK [19:11:10]SAM_PROTO_GetShiftState done [19:11:10]FM_GetShiftState done [19:11:10]req_shift_open_date done [19:11:10]produce_requested_data done [19:11:10]produce_requested_data return {"kkm.sn":"0300000027","kkm.ver":"001","fm.sn":"0000000000963154","fd.num":28725,"shift.num":113,"shift.opened":0,"shift.open_date":0} [19:11:10]process_action_free get_value [19:11:10]json_value_free [19:11:10]json_value_free done [19:11:10]process_json_proto returns [19:11:10]Send response to host [19:11:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000027","kkm.ver":"001","fm.sn":"0000000000963154","fd.num":28725,"shift.num":113,"shift.opened":0,"shift.open_date":0}}} [19:11:10]free response buf [19:11:10]execute_script done [19:11:10]execute_script returns [19:11:10]free content buf [19:11:10]Sock 6.Close socket [19:11:10]Sock 6.Thread stoped [19:11:10]accept exits with 9 [19:11:10]New connection [19:11:10]New thread 3066785124 created [19:11:10]Thread 3066928484 joined [19:11:10]Waiting for new connection... [19:11:10] Sock 9.Parse request [19:11:10]Sock 9.Check first char [19:11:10]Sock 9.First char is OK [19:11:10]request: POST /json_proto HTTP/1.0 [19:11:10]Method: POST [19:11:10]URL: /json_proto [19:11:10]Method is POST - this is cgi request [19:11:10]url: /json_proto [19:11:10]query_string will be loaded in cgi processing [19:11:10]execute_cgi json_proto POST (null) [19:11:10]execute_cgi path=json_proto method=POST [19:11:10]POST find Content-Length [19:11:10]Host: 172.17.33.3:8080 [19:11:10]Content-Length: 331 [19:11:10]Content-Type: application/json [19:11:10] [19:11:10]POST finish read [19:11:10]Found Content-Length = 331 [19:11:10]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" ] } } [19:11:10]execute_script... [19:11:10]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" ] } } [19:11:10]POST & json_proto [19:11:10]process_json_proto [19:11:10]json parsed OK: [19:11:10]protocol is kg_v1.0 [19:11:10]action value=get_value [19:11:10]process_action get_value [19:11:10]cmd_get_value [19:11:10]process_action get_value done [19:11:10]requested_data is exist [19:11:10]produce_requested_data [19:11:10]requested_item fm.sale.total is exist - process it [19:11:10]SAM_PROTO_GetFMData [19:11:10]wFMCommunicate request_size=4 [19:11:10]MH_SAM_APDU [19:11:10]CAPDU: 80 13 03 00 [19:11:10]Write to MH i2c: E2 08 00 30 00 80 13 03 00 00 00 00 00 AF [19:11:10]Write i2c OK [19:11:10]MH_I2C_Read... [19:11:10]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [19:11:10]Read from MH i2c: E2 [19:11:10]MH_I2C_Read... [19:11:10]Read from MH i2c: E2 FD 00 [19:11:10]MH_I2C_Read... [19:11:11]Read from MH i2c: E2 FD 00 30 00 00 C3 04 85 04 BF 04 6E 04 04 00 52 6F 00 00 69 04 A1 00 6F 04 04 00 F8 6B 00 00 B1 04 04 00 D9 FB 7B AF 70 04 04 00 78 E9 41 70 72 04 04 00 61 12 3A 3F 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 E7 A0 A3 12 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 D7 99 8D 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 9C 00 6F 04 04 00 5A 03 00 00 B1 04 04 00 A8 5F 91 0C 70 04 04 00 A8 5F 91 0C 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 C1 B4 55 01 EF 03 09 00 F6 90 00 8B [19:11:11]RAPDU: C3 04 85 04 BF 04 6E 04 04 00 52 6F 00 00 69 04 A1 00 6F 04 04 00 F8 6B 00 00 B1 04 04 00 D9 FB 7B AF 70 04 04 00 78 E9 41 70 72 04 04 00 61 12 3A 3F 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 E7 A0 A3 12 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 D7 99 8D 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 9C 00 6F 04 04 00 5A 03 00 00 B1 04 04 00 A8 5F 91 0C 70 04 04 00 A8 5F 91 0C 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 C1 B4 55 01 EF 03 09 00 F6 90 00 [19:11:11]wFMCommunicate OK [19:11:11]wFMCommunicate request_size=4 [19:11:11]MH_SAM_APDU [19:11:11]CAPDU: 80 17 00 00 [19:11:11]Write to MH i2c: E2 08 00 31 00 80 17 00 00 00 00 00 00 B1 [19:11:11]Write i2c OK [19:11:11]MH_I2C_Read... [19:11:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:11:11]Read from MH i2c: E2 [19:11:11]MH_I2C_Read... [19:11:11]Read from MH i2c: E2 FD 00 [19:11:11]MH_I2C_Read... [19:11:11]Read from MH i2c: E2 FD 00 31 00 00 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 4B 79 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 51 [19:11:11]RAPDU: 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 4B 79 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [19:11:11]wFMCommunicate OK [19:11:11]wFMCommunicate request_size=4 [19:11:11]MH_SAM_APDU [19:11:11]CAPDU: 80 17 00 00 [19:11:11]Write to MH i2c: E2 08 00 32 00 80 17 00 00 00 00 00 00 B2 [19:11:11]Write i2c OK [19:11:11]MH_I2C_Read... [19:11:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:11:11]Read from MH i2c: E2 [19:11:11]MH_I2C_Read... [19:11:11]Read from MH i2c: E2 FD 00 [19:11:11]MH_I2C_Read... [19:11:11]Read from MH i2c: E2 FD 00 32 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 D0 [19:11:11]RAPDU: 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [19:11:11]wFMCommunicate OK [19:11:11]wFMCommunicate request_size=4 [19:11:11]MH_SAM_APDU [19:11:11]CAPDU: 80 17 00 00 [19:11:11]Write to MH i2c: E2 08 00 33 00 80 17 00 00 00 00 00 00 B3 [19:11:11]Write i2c OK [19:11:11]MH_I2C_Read... [19:11:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:11:11]Read from MH i2c: E2 [19:11:11]MH_I2C_Read... [19:11:11]Read from MH i2c: E2 FD 00 [19:11:11]MH_I2C_Read... [19:11:11]Read from MH i2c: E2 FD 00 33 00 00 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 25 [19:11:11]RAPDU: 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [19:11:11]wFMCommunicate OK [19:11:11]wFMCommunicate request_size=4 [19:11:11]MH_SAM_APDU [19:11:11]CAPDU: 80 17 00 00 [19:11:11]Write to MH i2c: E2 08 00 34 00 80 17 00 00 00 00 00 00 B4 [19:11:11]Write i2c OK [19:11:11]MH_I2C_Read... [19:11:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 221! [19:11:12]Read from MH i2c: E2 [19:11:12]MH_I2C_Read... [19:11:12]Read from MH i2c: E2 E0 00 [19:11:12]MH_I2C_Read... [19:11:12]Read from MH i2c: E2 E0 00 34 00 00 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 9E [19:11:12]RAPDU: 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [19:11:12]wFMCommunicate OK [19:11:12]SAM_PROTO_GetFMData done [19:11:12]requested_item fm.sale_refund.total is exist - process it [19:11:12]requested_item fm.buy.total is exist - process it [19:11:12]requested_item shift.sale.total is exist - process it [19:11:12]SAM_PROTO_GetShiftData [19:11:12]wFMCommunicate request_size=4 [19:11:12]MH_SAM_APDU [19:11:12]CAPDU: 80 13 02 00 [19:11:12]Write to MH i2c: E2 08 00 35 00 80 13 02 00 00 00 00 00 B3 [19:11:12]Write i2c OK [19:11:12]MH_I2C_Read... [19:11:12]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [19:11:12]Read from MH i2c: E2 [19:11:12]MH_I2C_Read... [19:11:12]Read from MH i2c: E2 FD 00 [19:11:12]MH_I2C_Read... [19:11:12]Read from MH i2c: E2 FD 00 35 00 00 BB 04 AA 04 B7 04 6E 04 04 00 AD 00 00 00 69 04 9D 00 6F 04 04 00 A9 00 00 00 B1 04 04 00 B6 F0 1E 01 70 04 03 00 F8 C7 B2 72 04 03 00 BE 28 6C 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 8F 7A 1E 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 22 8A 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 D0 DB 17 70 04 03 00 D0 DB 17 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 AF 88 02 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 37 [19:11:12]RAPDU: BB 04 AA 04 B7 04 6E 04 04 00 AD 00 00 00 69 04 9D 00 6F 04 04 00 A9 00 00 00 B1 04 04 00 B6 F0 1E 01 70 04 03 00 F8 C7 B2 72 04 03 00 BE 28 6C 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 8F 7A 1E 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 22 8A 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 D0 DB 17 70 04 03 00 D0 DB 17 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 AF 88 02 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [19:11:12]wFMCommunicate OK [19:11:12]wFMCommunicate request_size=4 [19:11:12]MH_SAM_APDU [19:11:12]CAPDU: 80 17 00 00 [19:11:12]Write to MH i2c: E2 08 00 36 00 80 17 00 00 00 00 00 00 B6 [19:11:12]Write i2c OK [19:11:12]MH_I2C_Read... [19:11:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:11:12]Read from MH i2c: E2 [19:11:12]MH_I2C_Read... [19:11:12]Read from MH i2c: E2 FD 00 [19:11:12]MH_I2C_Read... [19:11:12]Read from MH i2c: E2 FD 00 36 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 0E 36 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 90 00 A4 [19:11:12]RAPDU: 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 0E 36 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 90 00 [19:11:12]wFMCommunicate OK [19:11:12]wFMCommunicate request_size=4 [19:11:12]MH_SAM_APDU [19:11:12]CAPDU: 80 17 00 00 [19:11:12]Write to MH i2c: E2 08 00 37 00 80 17 00 00 00 00 00 00 B7 [19:11:12]Write i2c OK [19:11:12]MH_I2C_Read... [19:11:12]OFD Sender: No OFD packet to send [19:11:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:11:13]Read from MH i2c: E2 [19:11:13]MH_I2C_Read... [19:11:13]Read from MH i2c: E2 FD 00 [19:11:13]MH_I2C_Read... [19:11:13]Read from MH i2c: E2 FD 00 37 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 90 00 E3 [19:11:13]RAPDU: 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 90 00 [19:11:13]wFMCommunicate OK [19:11:13]wFMCommunicate request_size=4 [19:11:13]MH_SAM_APDU [19:11:13]CAPDU: 80 17 00 00 [19:11:13]Write to MH i2c: E2 08 00 38 00 80 17 00 00 00 00 00 00 B8 [19:11:13]Write i2c OK [19:11:13]MH_I2C_Read... [19:11:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:11:13]Read from MH i2c: E2 [19:11:13]MH_I2C_Read... [19:11:13]Read from MH i2c: E2 FD 00 [19:11:13]MH_I2C_Read... [19:11:13]Read from MH i2c: E2 FD 00 38 00 00 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 2D [19:11:13]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [19:11:13]wFMCommunicate OK [19:11:13]wFMCommunicate request_size=4 [19:11:13]MH_SAM_APDU [19:11:13]CAPDU: 80 17 00 00 [19:11:13]Write to MH i2c: E2 08 00 39 00 80 17 00 00 00 00 00 00 B9 [19:11:13]Write i2c OK [19:11:13]MH_I2C_Read... [19:11:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 213! [19:11:13]Read from MH i2c: E2 [19:11:13]MH_I2C_Read... [19:11:13]Read from MH i2c: E2 D8 00 [19:11:13]MH_I2C_Read... [19:11:13]Read from MH i2c: E2 D8 00 39 00 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 A0 [19:11:13]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [19:11:13]wFMCommunicate OK [19:11:13]SAM_PROTO_GetShiftData done [19:11:13]requested_item shift.sale.total_cash is exist - process it [19:11:13]requested_item shift.sale_refund.total is exist - process it [19:11:13]requested_item shift.sale_refund.total_cash is exist - process it [19:11:13]requested_item shift.buy.total is exist - process it [19:11:13]requested_item shift.buy.total_cash is exist - process it [19:11:13]produce_requested_data done [19:11:13]produce_requested_data return {"fm.sale.total":29441382.01,"fm.sale_refund.total":2108538.00,"fm.buy.total":0.00,"shift.sale.total":188049.18,"shift.sale.total_cash":117166.00,"shift.sale_refund.total":15636.00,"shift.sale_refund.total_cash":15636.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [19:11:13]process_action_free get_value [19:11:13]json_value_free [19:11:13]json_value_free done [19:11:13]process_json_proto returns [19:11:13]Send response to host [19:11:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":29441382.01,"fm.sale_refund.total":2108538.00,"fm.buy.total":0.00,"shift.sale.total":188049.18,"shift.sale.total_cash":117166.00,"shift.sale_refund.total":15636.00,"shift.sale_refund.total_cash":15636.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [19:11:13]free response buf [19:11:13]execute_script done [19:11:13]execute_script returns [19:11:13]free content buf [19:11:13]Sock 9.Close socket [19:11:13]Sock 9.Thread stoped [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:53]OFD Sender: No OFD packet to send [19:11:58]OFD Sender: No OFD packet to send [19:12:03]OFD Sender: No OFD packet to send [19:12:08]OFD Sender: No OFD packet to send [19:12:13]OFD Sender: No OFD packet to send [19:12:18]OFD Sender: No OFD packet to send [19:12:23]OFD Sender: No OFD packet to send [19:12:28]OFD Sender: No OFD packet to send [19:12:33]OFD Sender: No OFD packet to send [19:12:38]OFD Sender: No OFD packet to send [19:12:43]OFD Sender: No OFD packet to send [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:26]accept exits with 6 [19:14:26]New connection [19:14:26]New thread 3066928484 created [19:14:26]Thread 3066785124 joined [19:14:26]Waiting for new connection... [19:14:26] Sock 6.Parse request [19:14:26]Sock 6.Check first char [19:14:26]Sock 6.First char is OK [19:14:26]request: POST /json_proto HTTP/1.0 [19:14:26]Method: POST [19:14:26]URL: /json_proto [19:14:26]Method is POST - this is cgi request [19:14:26]url: /json_proto [19:14:26]query_string will be loaded in cgi processing [19:14:26]execute_cgi json_proto POST (null) [19:14:26]execute_cgi path=json_proto method=POST [19:14:26]POST find Content-Length [19:14:26]Host: 172.17.33.3:8080 [19:14:26]Content-Length: 215 [19:14:26]Content-Type: application/json [19:14:26] [19:14:26]POST finish read [19:14:26]Found Content-Length = 215 [19:14:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:14:26]execute_script... [19:14:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:14:26]POST & json_proto [19:14:26]process_json_proto [19:14:26]json parsed OK: [19:14:26]protocol is kg_v1.0 [19:14:26]action value=get_value [19:14:26]process_action get_value [19:14:26]cmd_get_value [19:14:26]process_action get_value done [19:14:26]requested_data is exist [19:14:26]produce_requested_data [19:14:26]requested_item kkm.sn is exist - process it [19:14:26]requested_item kkm.ver is exist - process it [19:14:26]requested_item fm.sn is exist - process it [19:14:26]wFMCommunicate request_size=4 [19:14:26]MH_SAM_APDU [19:14:26]CAPDU: 80 11 00 00 [19:14:26]Write to MH i2c: E2 08 00 3A 00 80 11 00 00 00 00 00 00 B4 [19:14:26]Write i2c OK [19:14:26]MH_I2C_Read... [19:14:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:14:26]Read from MH i2c: E2 [19:14:26]MH_I2C_Read... [19:14:26]Read from MH i2c: E2 17 00 [19:14:26]MH_I2C_Read... [19:14:26]Read from MH i2c: E2 17 00 3A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 03 [19:14:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:14:26]wFMCommunicate OK [19:14:26]requested_item fd.num is exist - process it [19:14:26]SAM_PROTO_GetFieldsCounters [19:14:26]wFMCommunicate request_size=4 [19:14:26]MH_SAM_APDU [19:14:26]CAPDU: 80 13 00 00 [19:14:26]Write to MH i2c: E2 08 00 3B 00 80 13 00 00 00 00 00 00 B7 [19:14:26]Write i2c OK [19:14:26]MH_I2C_Read... [19:14:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:14:26]Read from MH i2c: E2 [19:14:26]MH_I2C_Read... [19:14:26]Read from MH i2c: E2 62 00 [19:14:26]MH_I2C_Read... [19:14:26]Read from MH i2c: E2 62 00 3B 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 35 70 00 00 0E 04 04 00 71 00 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 13 [19:14:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 35 70 00 00 0E 04 04 00 71 00 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:14:26]wFMCommunicate OK [19:14:26]SAM_PROTO_GetFieldsCounters done [19:14:26]requested_item shift.num is exist - process it [19:14:26]requested_item shift.opened is exist - process it [19:14:26]req_shift_opened [19:14:26]FM_GetShiftState [19:14:26]SAM_PROTO_GetShiftState [19:14:26]wFMCommunicate request_size=4 [19:14:26]MH_SAM_APDU [19:14:26]CAPDU: 80 13 01 00 [19:14:26]Write to MH i2c: E2 08 00 3C 00 80 13 01 00 00 00 00 00 B9 [19:14:26]Write i2c OK [19:14:26]MH_I2C_Read... [19:14:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:14:27]Read from MH i2c: E2 [19:14:27]MH_I2C_Read... [19:14:27]Read from MH i2c: E2 0E 00 [19:14:27]MH_I2C_Read... [19:14:27]Read from MH i2c: E2 0E 00 3C 00 00 09 00 00 00 00 00 00 00 00 00 00 90 00 C4 [19:14:27]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [19:14:27]wFMCommunicate OK [19:14:27]SAM_PROTO_GetShiftState done [19:14:27]FM_GetShiftState done [19:14:27]req_shift_opened done [19:14:27]requested_item shift.open_date is exist - process it [19:14:27]req_shift_open_date [19:14:27]FM_GetShiftState [19:14:27]SAM_PROTO_GetShiftState [19:14:27]wFMCommunicate request_size=4 [19:14:27]MH_SAM_APDU [19:14:27]CAPDU: 80 13 01 00 [19:14:27]Write to MH i2c: E2 08 00 3D 00 80 13 01 00 00 00 00 00 BA [19:14:27]Write i2c OK [19:14:27]MH_I2C_Read... [19:14:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:14:27]Read from MH i2c: E2 [19:14:27]MH_I2C_Read... [19:14:27]Read from MH i2c: E2 0E 00 [19:14:27]MH_I2C_Read... [19:14:27]Read from MH i2c: E2 0E 00 3D 00 00 09 00 00 00 00 00 00 00 00 00 00 90 00 C5 [19:14:27]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [19:14:27]wFMCommunicate OK [19:14:27]SAM_PROTO_GetShiftState done [19:14:27]FM_GetShiftState done [19:14:27]req_shift_open_date done [19:14:27]produce_requested_data done [19:14:27]produce_requested_data return {"kkm.sn":"0300000027","kkm.ver":"001","fm.sn":"0000000000963154","fd.num":28725,"shift.num":113,"shift.opened":0,"shift.open_date":0} [19:14:27]process_action_free get_value [19:14:27]json_value_free [19:14:27]json_value_free done [19:14:27]process_json_proto returns [19:14:27]Send response to host [19:14:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000027","kkm.ver":"001","fm.sn":"0000000000963154","fd.num":28725,"shift.num":113,"shift.opened":0,"shift.open_date":0}}} [19:14:27]free response buf [19:14:27]execute_script done [19:14:27]execute_script returns [19:14:27]free content buf [19:14:27]Sock 6.Close socket [19:14:27]Sock 6.Thread stoped [19:14:27]accept exits with 9 [19:14:27]New connection [19:14:27]New thread 3066785124 created [19:14:27]Thread 3066928484 joined [19:14:27]Waiting for new connection... [19:14:27] Sock 9.Parse request [19:14:27]Sock 9.Check first char [19:14:27]Sock 9.First char is OK [19:14:27]request: POST /json_proto HTTP/1.0 [19:14:27]Method: POST [19:14:27]URL: /json_proto [19:14:27]Method is POST - this is cgi request [19:14:27]url: /json_proto [19:14:27]query_string will be loaded in cgi processing [19:14:27]execute_cgi json_proto POST (null) [19:14:27]execute_cgi path=json_proto method=POST [19:14:27]POST find Content-Length [19:14:27]Host: 172.17.33.3:8080 [19:14:27]Content-Length: 331 [19:14:27]Content-Type: application/json [19:14:27] [19:14:27]POST finish read [19:14:27]Found Content-Length = 331 [19:14:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [19:14:27]execute_script... [19:14:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [19:14:27]POST & json_proto [19:14:27]process_json_proto [19:14:27]json parsed OK: [19:14:27]protocol is kg_v1.0 [19:14:27]action value=get_value [19:14:27]process_action get_value [19:14:27]cmd_get_value [19:14:27]process_action get_value done [19:14:27]requested_data is exist [19:14:27]produce_requested_data [19:14:27]requested_item fm.sale.total is exist - process it [19:14:27]SAM_PROTO_GetFMData [19:14:27]wFMCommunicate request_size=4 [19:14:27]MH_SAM_APDU [19:14:27]CAPDU: 80 13 03 00 [19:14:27]Write to MH i2c: E2 08 00 3E 00 80 13 03 00 00 00 00 00 BD [19:14:27]Write i2c OK [19:14:27]MH_I2C_Read... [19:14:27]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [19:14:27]Read from MH i2c: E2 [19:14:27]MH_I2C_Read... [19:14:27]Read from MH i2c: E2 FD 00 [19:14:27]MH_I2C_Read... [19:14:27]Read from MH i2c: E2 FD 00 3E 00 00 C3 04 85 04 BF 04 6E 04 04 00 52 6F 00 00 69 04 A1 00 6F 04 04 00 F8 6B 00 00 B1 04 04 00 D9 FB 7B AF 70 04 04 00 78 E9 41 70 72 04 04 00 61 12 3A 3F 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 E7 A0 A3 12 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 D7 99 8D 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 9C 00 6F 04 04 00 5A 03 00 00 B1 04 04 00 A8 5F 91 0C 70 04 04 00 A8 5F 91 0C 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 C1 B4 55 01 EF 03 09 00 F6 90 00 99 [19:14:27]RAPDU: C3 04 85 04 BF 04 6E 04 04 00 52 6F 00 00 69 04 A1 00 6F 04 04 00 F8 6B 00 00 B1 04 04 00 D9 FB 7B AF 70 04 04 00 78 E9 41 70 72 04 04 00 61 12 3A 3F 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 E7 A0 A3 12 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 D7 99 8D 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 9C 00 6F 04 04 00 5A 03 00 00 B1 04 04 00 A8 5F 91 0C 70 04 04 00 A8 5F 91 0C 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 C1 B4 55 01 EF 03 09 00 F6 90 00 [19:14:27]wFMCommunicate OK [19:14:27]wFMCommunicate request_size=4 [19:14:27]MH_SAM_APDU [19:14:27]CAPDU: 80 17 00 00 [19:14:27]Write to MH i2c: E2 08 00 3F 00 80 17 00 00 00 00 00 00 BF [19:14:27]Write i2c OK [19:14:27]MH_I2C_Read... [19:14:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:14:28]Read from MH i2c: E2 [19:14:28]MH_I2C_Read... [19:14:28]Read from MH i2c: E2 FD 00 [19:14:28]MH_I2C_Read... [19:14:28]Read from MH i2c: E2 FD 00 3F 00 00 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 4B 79 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 5F [19:14:28]RAPDU: 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 4B 79 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [19:14:28]wFMCommunicate OK [19:14:28]wFMCommunicate request_size=4 [19:14:28]MH_SAM_APDU [19:14:28]CAPDU: 80 17 00 00 [19:14:28]Write to MH i2c: E2 08 00 40 00 80 17 00 00 00 00 00 00 C0 [19:14:28]Write i2c OK [19:14:28]MH_I2C_Read... [19:14:28]OFD Sender: No OFD packet to send [19:14:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:14:28]Read from MH i2c: E2 [19:14:28]MH_I2C_Read... [19:14:28]Read from MH i2c: E2 FD 00 [19:14:28]MH_I2C_Read... [19:14:28]Read from MH i2c: E2 FD 00 40 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 DE [19:14:28]RAPDU: 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [19:14:28]wFMCommunicate OK [19:14:28]wFMCommunicate request_size=4 [19:14:28]MH_SAM_APDU [19:14:28]CAPDU: 80 17 00 00 [19:14:28]Write to MH i2c: E2 08 00 41 00 80 17 00 00 00 00 00 00 C1 [19:14:28]Write i2c OK [19:14:28]MH_I2C_Read... [19:14:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:14:28]Read from MH i2c: E2 [19:14:28]MH_I2C_Read... [19:14:28]Read from MH i2c: E2 FD 00 [19:14:28]MH_I2C_Read... [19:14:28]Read from MH i2c: E2 FD 00 41 00 00 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 33 [19:14:28]RAPDU: 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [19:14:28]wFMCommunicate OK [19:14:28]wFMCommunicate request_size=4 [19:14:28]MH_SAM_APDU [19:14:28]CAPDU: 80 17 00 00 [19:14:28]Write to MH i2c: E2 08 00 42 00 80 17 00 00 00 00 00 00 C2 [19:14:28]Write i2c OK [19:14:28]MH_I2C_Read... [19:14:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 221! [19:14:28]Read from MH i2c: E2 [19:14:28]MH_I2C_Read... [19:14:28]Read from MH i2c: E2 E0 00 [19:14:28]MH_I2C_Read... [19:14:28]Read from MH i2c: E2 E0 00 42 00 00 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 AC [19:14:28]RAPDU: 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [19:14:28]wFMCommunicate OK [19:14:28]SAM_PROTO_GetFMData done [19:14:28]requested_item fm.sale_refund.total is exist - process it [19:14:28]requested_item fm.buy.total is exist - process it [19:14:28]requested_item shift.sale.total is exist - process it [19:14:28]SAM_PROTO_GetShiftData [19:14:28]wFMCommunicate request_size=4 [19:14:28]MH_SAM_APDU [19:14:28]CAPDU: 80 13 02 00 [19:14:28]Write to MH i2c: E2 08 00 43 00 80 13 02 00 00 00 00 00 C1 [19:14:28]Write i2c OK [19:14:28]MH_I2C_Read... [19:14:29]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [19:14:29]Read from MH i2c: E2 [19:14:29]MH_I2C_Read... [19:14:29]Read from MH i2c: E2 FD 00 [19:14:29]MH_I2C_Read... [19:14:29]Read from MH i2c: E2 FD 00 43 00 00 BB 04 AA 04 B7 04 6E 04 04 00 AD 00 00 00 69 04 9D 00 6F 04 04 00 A9 00 00 00 B1 04 04 00 B6 F0 1E 01 70 04 03 00 F8 C7 B2 72 04 03 00 BE 28 6C 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 8F 7A 1E 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 22 8A 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 D0 DB 17 70 04 03 00 D0 DB 17 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 AF 88 02 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 45 [19:14:29]RAPDU: BB 04 AA 04 B7 04 6E 04 04 00 AD 00 00 00 69 04 9D 00 6F 04 04 00 A9 00 00 00 B1 04 04 00 B6 F0 1E 01 70 04 03 00 F8 C7 B2 72 04 03 00 BE 28 6C 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 8F 7A 1E 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 22 8A 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 D0 DB 17 70 04 03 00 D0 DB 17 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 AF 88 02 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [19:14:29]wFMCommunicate OK [19:14:29]wFMCommunicate request_size=4 [19:14:29]MH_SAM_APDU [19:14:29]CAPDU: 80 17 00 00 [19:14:29]Write to MH i2c: E2 08 00 44 00 80 17 00 00 00 00 00 00 C4 [19:14:29]Write i2c OK [19:14:29]MH_I2C_Read... [19:14:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:14:29]Read from MH i2c: E2 [19:14:29]MH_I2C_Read... [19:14:29]Read from MH i2c: E2 FD 00 [19:14:29]MH_I2C_Read... [19:14:29]Read from MH i2c: E2 FD 00 44 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 0E 36 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 90 00 B2 [19:14:29]RAPDU: 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 0E 36 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 90 00 [19:14:29]wFMCommunicate OK [19:14:29]wFMCommunicate request_size=4 [19:14:29]MH_SAM_APDU [19:14:29]CAPDU: 80 17 00 00 [19:14:29]Write to MH i2c: E2 08 00 45 00 80 17 00 00 00 00 00 00 C5 [19:14:29]Write i2c OK [19:14:29]MH_I2C_Read... [19:14:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:14:29]Read from MH i2c: E2 [19:14:29]MH_I2C_Read... [19:14:29]Read from MH i2c: E2 FD 00 [19:14:29]MH_I2C_Read... [19:14:29]Read from MH i2c: E2 FD 00 45 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 90 00 F1 [19:14:29]RAPDU: 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 90 00 [19:14:29]wFMCommunicate OK [19:14:29]wFMCommunicate request_size=4 [19:14:29]MH_SAM_APDU [19:14:29]CAPDU: 80 17 00 00 [19:14:29]Write to MH i2c: E2 08 00 46 00 80 17 00 00 00 00 00 00 C6 [19:14:29]Write i2c OK [19:14:29]MH_I2C_Read... [19:14:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:14:30]Read from MH i2c: E2 [19:14:30]MH_I2C_Read... [19:14:30]Read from MH i2c: E2 FD 00 [19:14:30]MH_I2C_Read... [19:14:30]Read from MH i2c: E2 FD 00 46 00 00 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 3B [19:14:30]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [19:14:30]wFMCommunicate OK [19:14:30]wFMCommunicate request_size=4 [19:14:30]MH_SAM_APDU [19:14:30]CAPDU: 80 17 00 00 [19:14:30]Write to MH i2c: E2 08 00 47 00 80 17 00 00 00 00 00 00 C7 [19:14:30]Write i2c OK [19:14:30]MH_I2C_Read... [19:14:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 213! [19:14:30]Read from MH i2c: E2 [19:14:30]MH_I2C_Read... [19:14:30]Read from MH i2c: E2 D8 00 [19:14:30]MH_I2C_Read... [19:14:30]Read from MH i2c: E2 D8 00 47 00 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 AE [19:14:30]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [19:14:30]wFMCommunicate OK [19:14:30]SAM_PROTO_GetShiftData done [19:14:30]requested_item shift.sale.total_cash is exist - process it [19:14:30]requested_item shift.sale_refund.total is exist - process it [19:14:30]requested_item shift.sale_refund.total_cash is exist - process it [19:14:30]requested_item shift.buy.total is exist - process it [19:14:30]requested_item shift.buy.total_cash is exist - process it [19:14:30]produce_requested_data done [19:14:30]produce_requested_data return {"fm.sale.total":29441382.01,"fm.sale_refund.total":2108538.00,"fm.buy.total":0.00,"shift.sale.total":188049.18,"shift.sale.total_cash":117166.00,"shift.sale_refund.total":15636.00,"shift.sale_refund.total_cash":15636.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [19:14:30]process_action_free get_value [19:14:30]json_value_free [19:14:30]json_value_free done [19:14:30]process_json_proto returns [19:14:30]Send response to host [19:14:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":29441382.01,"fm.sale_refund.total":2108538.00,"fm.buy.total":0.00,"shift.sale.total":188049.18,"shift.sale.total_cash":117166.00,"shift.sale_refund.total":15636.00,"shift.sale_refund.total_cash":15636.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [19:14:30]free response buf [19:14:30]execute_script done [19:14:30]execute_script returns [19:14:30]free content buf [19:14:30]Sock 9.Close socket [19:14:30]Sock 9.Thread stoped [19:14:30]accept exits with 6 [19:14:30]New connection [19:14:30]New thread 3066928484 created [19:14:30]Thread 3066785124 joined [19:14:30]Waiting for new connection... [19:14:30] Sock 6.Parse request [19:14:30]Sock 6.Check first char [19:14:30]Sock 6.First char is OK [19:14:30]request: POST /json_proto HTTP/1.0 [19:14:30]Method: POST [19:14:30]URL: /json_proto [19:14:30]Method is POST - this is cgi request [19:14:30]url: /json_proto [19:14:30]query_string will be loaded in cgi processing [19:14:30]execute_cgi json_proto POST (null) [19:14:30]execute_cgi path=json_proto method=POST [19:14:30]POST find Content-Length [19:14:30]Host: 172.17.33.3:8080 [19:14:30]Content-Length: 259 [19:14:30]Content-Type: application/json [19:14:30] [19:14:30]POST finish read [19:14:30]Found Content-Length = 259 [19:14:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0421\u0430\u0440\u044B\u0431\u0430\u0435\u0432 \u042D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:14:30]execute_script... [19:14:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0421\u0430\u0440\u044B\u0431\u0430\u0435\u0432 \u042D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:14:30]POST & json_proto [19:14:30]process_json_proto [19:14:30]json parsed OK: [19:14:30]protocol is kg_v1.0 [19:14:30]action value=open_shift [19:14:30]process_action open_shift [19:14:30]cmd_open_shift [19:14:30]MH_GetDate [19:14:30]Write to MH i2c: F0 00 00 48 00 37 [19:14:30]Write i2c OK [19:14:30]MH_I2C_Read... [19:14:30]Read from MH i2c: F0 [19:14:30]MH_I2C_Read... [19:14:30]Read from MH i2c: F0 09 00 [19:14:30]MH_I2C_Read... [19:14:30]Read from MH i2c: F0 09 00 48 00 00 17 88 19 66 23 5B 8F 65 D0 [19:14:30]GetLastDocTimeStamp 1712938504 [19:14:30]current date 1712949271 [19:14:30]FM_GetShiftState [19:14:30]SAM_PROTO_GetShiftState [19:14:30]wFMCommunicate request_size=4 [19:14:30]MH_SAM_APDU [19:14:30]CAPDU: 80 13 01 00 [19:14:30]Write to MH i2c: E2 08 00 49 00 80 13 01 00 00 00 00 00 C6 [19:14:30]Write i2c OK [19:14:30]MH_I2C_Read... [19:14:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:14:30]Read from MH i2c: E2 [19:14:30]MH_I2C_Read... [19:14:30]Read from MH i2c: E2 0E 00 [19:14:30]MH_I2C_Read... [19:14:30]Read from MH i2c: E2 0E 00 49 00 00 09 00 00 00 00 00 00 00 00 00 00 90 00 D1 [19:14:30]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [19:14:30]wFMCommunicate OK [19:14:30]SAM_PROTO_GetShiftState done [19:14:30]FM_GetShiftState done [19:14:30]KKMCreateOpenShiftDocument [19:14:30]Load OK [19:14:30]Malloc new data [19:14:30]MH_GetDate [19:14:30]Write to MH i2c: F0 00 00 4A 00 39 [19:14:30]Write i2c OK [19:14:30]MH_I2C_Read... [19:14:30]Read from MH i2c: F0 [19:14:30]MH_I2C_Read... [19:14:30]Read from MH i2c: F0 09 00 [19:14:30]MH_I2C_Read... [19:14:30]Read from MH i2c: F0 09 00 4A 00 00 17 88 19 66 23 5B 8F 65 D2 [19:14:30]Malloc new data [19:14:30]KKMCreateOpenShiftDocument OK [19:14:30]KKMSetOpenShiftData OK [19:14:30]ProcessDocumentItem done err = 0, tmpTLVsize=199 [19:14:30]tlvbuf is 011ED2E0 [19:14:30]KKMLoadAndSignOpenShiftData [19:14:30]SAM_PROTO_ProcessDocument [19:14:30]wFMCommunicate request_size=9 [19:14:30]MH_SAM_APDU [19:14:30]CAPDU: 80 15 01 00 04 02 00 C7 00 [19:14:30]Write to MH i2c: E2 0C 00 4B 00 80 15 01 00 04 00 02 00 C7 00 00 00 9B [19:14:30]Write i2c OK [19:14:30]MH_I2C_Read... [19:14:30]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [19:14:30]Read from MH i2c: E2 [19:14:30]MH_I2C_Read... [19:14:30]Read from MH i2c: E2 03 00 [19:14:30]MH_I2C_Read... [19:14:30]Read from MH i2c: E2 03 00 4B 00 00 90 00 BF [19:14:30]RAPDU: 90 00 [19:14:30]wFMCommunicate OK [19:14:30]wFMCommunicate request_size=23 [19:14:30]MH_SAM_APDU [19:14: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 [19:14:30]Write to MH i2c: E2 1A 00 4C 00 80 15 02 00 12 00 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 00 00 C1 [19:14:30]Write i2c OK [19:14:30]MH_I2C_Read... [19:14:30]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [19:14:30]Read from MH i2c: E2 [19:14:30]MH_I2C_Read... [19:14:30]Read from MH i2c: E2 03 00 [19:14:30]MH_I2C_Read... [19:14:30]Read from MH i2c: E2 03 00 4C 00 00 90 00 C0 [19:14:30]RAPDU: 90 00 [19:14:30]wFMCommunicate OK [19:14:30]wFMCommunicate request_size=30 [19:14:30]MH_SAM_APDU [19:14:30]CAPDU: 80 15 02 00 19 FD 03 15 00 D0 A1 D0 B0 D1 80 D1 8B D0 B1 D0 B0 D0 B5 D0 B2 20 D0 AD 2E 20 [19:14:30]Write to MH i2c: E2 21 00 4D 00 80 15 02 00 19 00 FD 03 15 00 D0 A1 D0 B0 D1 80 D1 8B D0 B1 D0 B0 D0 B5 D0 B2 20 D0 AD 2E 20 00 00 A5 [19:14:30]Write i2c OK [19:14:30]MH_I2C_Read... [19:14:30]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [19:14:30]Read from MH i2c: E2 [19:14:30]MH_I2C_Read... [19:14:30]Read from MH i2c: E2 03 00 [19:14:30]MH_I2C_Read... [19:14:30]Read from MH i2c: E2 03 00 4D 00 00 90 00 C1 [19:14:30]RAPDU: 90 00 [19:14:30]wFMCommunicate OK [19:14:30]wFMCommunicate request_size=87 [19:14:30]MH_SAM_APDU [19:14:30]CAPDU: 80 15 02 00 52 F1 03 4E 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A0 D0 BE D0 BC D0 B0 D0 BD D0 BE D0 B2 D0 BA D0 B0 2C 20 D1 83 D0 BB 2E 20 D0 A4 D1 80 D1 83 D0 BD D0 B7 D0 B5 20 38 31 20 D0 90 2C 20 34 32 2E 38 36 33 30 37 39 2C 20 37 34 2E 33 31 38 38 35 34 [19:14:30]Write to MH i2c: E2 5A 00 4E 00 80 15 02 00 52 00 F1 03 4E 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A0 D0 BE D0 BC D0 B0 D0 BD D0 BE D0 B2 D0 BA D0 B0 2C 20 D1 83 D0 BB 2E 20 D0 A4 D1 80 D1 83 D0 BD D0 B7 D0 B5 20 38 31 20 D0 90 2C 20 34 32 2E 38 36 33 30 37 39 2C 20 37 34 2E 33 31 38 38 35 34 00 00 F2 [19:14:30]Write i2c OK [19:14:30]MH_I2C_Read... [19:14:31]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [19:14:31]Read from MH i2c: E2 [19:14:31]MH_I2C_Read... [19:14:31]Read from MH i2c: E2 03 00 [19:14:31]MH_I2C_Read... [19:14:31]Read from MH i2c: E2 03 00 4E 00 00 90 00 C2 [19:14:31]RAPDU: 90 00 [19:14:31]wFMCommunicate OK [19:14:31]wFMCommunicate request_size=51 [19:14:31]MH_SAM_APDU [19:14:31]CAPDU: 80 15 02 00 2E A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 30 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 [19:14:31]Write to MH i2c: E2 36 00 4F 00 80 15 02 00 2E 00 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 30 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 7A [19:14:31]Write i2c OK [19:14:31]MH_I2C_Read... [19:14:31]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [19:14:31]Read from MH i2c: E2 [19:14:31]MH_I2C_Read... [19:14:31]Read from MH i2c: E2 03 00 [19:14:31]MH_I2C_Read... [19:14:31]Read from MH i2c: E2 03 00 4F 00 00 90 00 C3 [19:14:31]RAPDU: 90 00 [19:14:31]wFMCommunicate OK [19:14:31]wFMCommunicate request_size=13 [19:14:31]MH_SAM_APDU [19:14:31]CAPDU: 80 15 02 00 08 F4 03 04 00 17 88 19 66 [19:14:31]Write to MH i2c: E2 10 00 50 00 80 15 02 00 08 00 F4 03 04 00 17 88 19 66 00 00 F9 [19:14:31]Write i2c OK [19:14:31]MH_I2C_Read... [19:14:31]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [19:14:31]Read from MH i2c: E2 [19:14:31]MH_I2C_Read... [19:14:31]Read from MH i2c: E2 03 00 [19:14:31]MH_I2C_Read... [19:14:31]Read from MH i2c: E2 03 00 50 00 00 90 00 C4 [19:14:31]RAPDU: 90 00 [19:14:31]wFMCommunicate OK [19:14:31]wFMCommunicate request_size=25 [19:14:31]MH_SAM_APDU [19:14:31]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 [19:14:31]Write to MH i2c: E2 1C 00 51 00 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 00 00 54 [19:14:31]Write i2c OK [19:14:31]MH_I2C_Read... [19:14:31]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [19:14:31]Read from MH i2c: E2 [19:14:31]MH_I2C_Read... [19:14:31]Read from MH i2c: E2 03 00 [19:14:31]MH_I2C_Read... [19:14:31]Read from MH i2c: E2 03 00 51 00 00 90 00 C5 [19:14:31]RAPDU: 90 00 [19:14:31]wFMCommunicate OK [19:14:31]wFMCommunicate request_size=4 [19:14:31]MH_SAM_APDU [19:14:31]CAPDU: 80 15 03 00 [19:14:31]Write to MH i2c: E2 08 00 52 00 80 15 03 00 00 00 00 00 D3 [19:14:31]Write i2c OK [19:14:31]MH_I2C_Read... [19:14:31]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [19:14:31]Read from MH i2c: E2 [19:14:31]MH_I2C_Read... [19:14:31]Read from MH i2c: E2 38 00 [19:14:31]MH_I2C_Read... [19:14:31]Read from MH i2c: E2 38 00 52 00 00 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 36 70 00 00 0E 04 04 00 72 00 00 00 35 04 06 00 D6 18 F4 9B 5B EA 90 00 75 [19:14:31]RAPDU: 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 36 70 00 00 0E 04 04 00 72 00 00 00 35 04 06 00 D6 18 F4 9B 5B EA 90 00 [19:14:31]wFMCommunicate OK [19:14:31]SAM_PROTO_ProcessDocument answer len = 51 [19:14:31]SAM_PROTO_ProcessDocument done [19:14:31]SetTLVBufToDocument [19:14:31]Processing tag 1209 (04B9) [19:14:31]Malloc new data [19:14:31]Processing tag 1041 (0411) [19:14:31]Processing tag 1040 (0410) [19:14:31]Malloc new data [19:14:31]Processing tag 1038 (040E) [19:14:31]Malloc new data [19:14:31]Processing tag 1077 (0435) [19:14:31]Malloc new data [19:14:31]SetTLVBufToDocument err=0 [19:14:31]KKMLoadAndSignOpenShiftData store KKM data [19:14:31]KKMLoadAndSignOpenShiftData err=0 [19:14:31]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Сарыбаев Э. Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 Место: АЗС № 108 "Партнер Нефть" 12.04.2024 19:14 Смена: 114 РНМ: 0000138879044617 ЗНМ: 0300000027 ФД: 28726 ФМ: 0000000000963154 ФПД: 235402671381482 [19:14:31]StoreToDocumentArchive [19:14:31]shift 114 fd 28726 [19:14:31]Create dir for shift 0114 [19:14:31]save to /storage/0114/doc_00028726 [19:14:31]save last doc name /storage/0114/doc_00028726 to /storage/kkm_last_doc_name [19:14:31]save OK [19:14:31]Clear old archive folders... [19:14:31]Remove dir /storage/0113 [19:14:31]opendir ok [19:14:31]file . [19:14:31]file .. [19:14:31]file doc_00028551 [19:14:31]remove file /storage/0113/doc_00028551 [19:14:31]file doc_00028552 [19:14:31]remove file /storage/0113/doc_00028552 [19:14:31]file doc_00028553 [19:14:31]remove file /storage/0113/doc_00028553 [19:14:31]file doc_00028554 [19:14:31]remove file /storage/0113/doc_00028554 [19:14:31]file doc_00028555 [19:14:31]remove file /storage/0113/doc_00028555 [19:14:31]file doc_00028556 [19:14:31]remove file /storage/0113/doc_00028556 [19:14:31]file doc_00028557 [19:14:31]remove file /storage/0113/doc_00028557 [19:14:31]file doc_00028558 [19:14:31]remove file /storage/0113/doc_00028558 [19:14:31]file doc_00028559 [19:14:31]remove file /storage/0113/doc_00028559 [19:14:31]file doc_00028560 [19:14:31]remove file /storage/0113/doc_00028560 [19:14:31]file doc_00028561 [19:14:31]remove file /storage/0113/doc_00028561 [19:14:31]file doc_00028562 [19:14:31]remove file /storage/0113/doc_00028562 [19:14:31]file doc_00028563 [19:14:31]remove file /storage/0113/doc_00028563 [19:14:31]file doc_00028564 [19:14:31]remove file /storage/0113/doc_00028564 [19:14:31]file doc_00028565 [19:14:31]remove file /storage/0113/doc_00028565 [19:14:31]file doc_00028566 [19:14:31]remove file /storage/0113/doc_00028566 [19:14:31]file doc_00028567 [19:14:31]remove file /storage/0113/doc_00028567 [19:14:31]file doc_00028568 [19:14:31]remove file /storage/0113/doc_00028568 [19:14:31]file doc_00028569 [19:14:31]remove file /storage/0113/doc_00028569 [19:14:31]file doc_00028570 [19:14:31]remove file /storage/0113/doc_00028570 [19:14:31]file doc_00028571 [19:14:31]remove file /storage/0113/doc_00028571 [19:14:31]file doc_00028572 [19:14:31]remove file /storage/0113/doc_00028572 [19:14:31]file doc_00028573 [19:14:31]remove file /storage/0113/doc_00028573 [19:14:31]file doc_00028574 [19:14:31]remove file /storage/0113/doc_00028574 [19:14:31]file doc_00028575 [19:14:31]remove file /storage/0113/doc_00028575 [19:14:31]file doc_00028576 [19:14:31]remove file /storage/0113/doc_00028576 [19:14:31]file doc_00028577 [19:14:31]remove file /storage/0113/doc_00028577 [19:14:31]file doc_00028578 [19:14:31]remove file /storage/0113/doc_00028578 [19:14:31]file doc_00028579 [19:14:31]remove file /storage/0113/doc_00028579 [19:14:31]file doc_00028580 [19:14:31]remove file /storage/0113/doc_00028580 [19:14:31]file doc_00028581 [19:14:31]remove file /storage/0113/doc_00028581 [19:14:31]file doc_00028582 [19:14:31]remove file /storage/0113/doc_00028582 [19:14:31]file doc_00028583 [19:14:31]remove file /storage/0113/doc_00028583 [19:14:31]file doc_00028584 [19:14:31]remove file /storage/0113/doc_00028584 [19:14:31]file doc_00028585 [19:14:31]remove file /storage/0113/doc_00028585 [19:14:31]file doc_00028586 [19:14:31]remove file /storage/0113/doc_00028586 [19:14:31]file doc_00028587 [19:14:31]remove file /storage/0113/doc_00028587 [19:14:31]file doc_00028588 [19:14:31]remove file /storage/0113/doc_00028588 [19:14:31]file doc_00028589 [19:14:31]remove file /storage/0113/doc_00028589 [19:14:31]file doc_00028590 [19:14:31]remove file /storage/0113/doc_00028590 [19:14:31]file doc_00028591 [19:14:31]remove file /storage/0113/doc_00028591 [19:14:31]file doc_00028592 [19:14:31]remove file /storage/0113/doc_00028592 [19:14:31]file doc_00028593 [19:14:31]remove file /storage/0113/doc_00028593 [19:14:31]file doc_00028594 [19:14:31]remove file /storage/0113/doc_00028594 [19:14:31]file doc_00028595 [19:14:31]remove file /storage/0113/doc_00028595 [19:14:31]file doc_00028596 [19:14:31]remove file /storage/0113/doc_00028596 [19:14:31]file doc_00028597 [19:14:31]remove file /storage/0113/doc_00028597 [19:14:31]file doc_00028598 [19:14:31]remove file /storage/0113/doc_00028598 [19:14:31]file doc_00028599 [19:14:31]remove file /storage/0113/doc_00028599 [19:14:31]file doc_00028600 [19:14:31]remove file /storage/0113/doc_00028600 [19:14:31]file doc_00028601 [19:14:31]remove file /storage/0113/doc_00028601 [19:14:31]file doc_00028602 [19:14:31]remove file /storage/0113/doc_00028602 [19:14:31]file doc_00028603 [19:14:31]remove file /storage/0113/doc_00028603 [19:14:31]file doc_00028604 [19:14:31]remove file /storage/0113/doc_00028604 [19:14:31]file doc_00028605 [19:14:31]remove file /storage/0113/doc_00028605 [19:14:31]file doc_00028606 [19:14:31]remove file /storage/0113/doc_00028606 [19:14:31]file doc_00028607 [19:14:31]remove file /storage/0113/doc_00028607 [19:14:31]file doc_00028608 [19:14:31]remove file /storage/0113/doc_00028608 [19:14:31]file doc_00028609 [19:14:31]remove file /storage/0113/doc_00028609 [19:14:31]file doc_00028610 [19:14:31]remove file /storage/0113/doc_00028610 [19:14:31]file doc_00028611 [19:14:31]remove file /storage/0113/doc_00028611 [19:14:31]file doc_00028612 [19:14:31]remove file /storage/0113/doc_00028612 [19:14:31]file doc_00028613 [19:14:31]remove file /storage/0113/doc_00028613 [19:14:31]file doc_00028614 [19:14:31]remove file /storage/0113/doc_00028614 [19:14:31]file doc_00028615 [19:14:31]remove file /storage/0113/doc_00028615 [19:14:31]file doc_00028616 [19:14:31]remove file /storage/0113/doc_00028616 [19:14:31]file doc_00028617 [19:14:31]remove file /storage/0113/doc_00028617 [19:14:31]file doc_00028618 [19:14:31]remove file /storage/0113/doc_00028618 [19:14:31]file doc_00028619 [19:14:31]remove file /storage/0113/doc_00028619 [19:14:31]file doc_00028620 [19:14:31]remove file /storage/0113/doc_00028620 [19:14:31]file doc_00028621 [19:14:31]remove file /storage/0113/doc_00028621 [19:14:31]file doc_00028622 [19:14:31]remove file /storage/0113/doc_00028622 [19:14:31]file doc_00028623 [19:14:31]remove file /storage/0113/doc_00028623 [19:14:31]file doc_00028624 [19:14:31]remove file /storage/0113/doc_00028624 [19:14:31]file doc_00028625 [19:14:31]remove file /storage/0113/doc_00028625 [19:14:31]file doc_00028626 [19:14:32]remove file /storage/0113/doc_00028626 [19:14:32]file doc_00028627 [19:14:32]remove file /storage/0113/doc_00028627 [19:14:32]file doc_00028628 [19:14:32]remove file /storage/0113/doc_00028628 [19:14:32]file doc_00028629 [19:14:32]remove file /storage/0113/doc_00028629 [19:14:32]file doc_00028630 [19:14:32]remove file /storage/0113/doc_00028630 [19:14:32]file doc_00028631 [19:14:32]remove file /storage/0113/doc_00028631 [19:14:32]file doc_00028632 [19:14:32]remove file /storage/0113/doc_00028632 [19:14:32]file doc_00028633 [19:14:32]remove file /storage/0113/doc_00028633 [19:14:32]file doc_00028634 [19:14:32]remove file /storage/0113/doc_00028634 [19:14:32]file doc_00028635 [19:14:32]remove file /storage/0113/doc_00028635 [19:14:32]file doc_00028636 [19:14:32]remove file /storage/0113/doc_00028636 [19:14:32]file doc_00028637 [19:14:32]remove file /storage/0113/doc_00028637 [19:14:32]file doc_00028638 [19:14:32]remove file /storage/0113/doc_00028638 [19:14:32]file doc_00028639 [19:14:32]remove file /storage/0113/doc_00028639 [19:14:32]file doc_00028640 [19:14:32]remove file /storage/0113/doc_00028640 [19:14:32]file doc_00028641 [19:14:32]remove file /storage/0113/doc_00028641 [19:14:32]file doc_00028642 [19:14:32]remove file /storage/0113/doc_00028642 [19:14:32]file doc_00028643 [19:14:32]remove file /storage/0113/doc_00028643 [19:14:32]file doc_00028644 [19:14:32]remove file /storage/0113/doc_00028644 [19:14:32]file doc_00028645 [19:14:32]remove file /storage/0113/doc_00028645 [19:14:32]file doc_00028646 [19:14:32]remove file /storage/0113/doc_00028646 [19:14:32]file doc_00028647 [19:14:32]remove file /storage/0113/doc_00028647 [19:14:32]file doc_00028648 [19:14:32]remove file /storage/0113/doc_00028648 [19:14:32]file doc_00028649 [19:14:32]remove file /storage/0113/doc_00028649 [19:14:32]file doc_00028650 [19:14:32]remove file /storage/0113/doc_00028650 [19:14:32]file doc_00028651 [19:14:32]remove file /storage/0113/doc_00028651 [19:14:32]file doc_00028652 [19:14:32]remove file /storage/0113/doc_00028652 [19:14:32]file doc_00028653 [19:14:32]remove file /storage/0113/doc_00028653 [19:14:32]file doc_00028654 [19:14:32]remove file /storage/0113/doc_00028654 [19:14:32]file doc_00028655 [19:14:32]remove file /storage/0113/doc_00028655 [19:14:32]file doc_00028656 [19:14:32]remove file /storage/0113/doc_00028656 [19:14:32]file doc_00028657 [19:14:32]remove file /storage/0113/doc_00028657 [19:14:32]file doc_00028658 [19:14:32]remove file /storage/0113/doc_00028658 [19:14:32]file doc_00028659 [19:14:32]remove file /storage/0113/doc_00028659 [19:14:32]file doc_00028660 [19:14:32]remove file /storage/0113/doc_00028660 [19:14:32]file doc_00028661 [19:14:32]remove file /storage/0113/doc_00028661 [19:14:32]file doc_00028662 [19:14:32]remove file /storage/0113/doc_00028662 [19:14:32]file doc_00028663 [19:14:32]remove file /storage/0113/doc_00028663 [19:14:32]file doc_00028664 [19:14:32]remove file /storage/0113/doc_00028664 [19:14:32]file doc_00028665 [19:14:32]remove file /storage/0113/doc_00028665 [19:14:32]file doc_00028666 [19:14:32]remove file /storage/0113/doc_00028666 [19:14:32]file doc_00028667 [19:14:32]remove file /storage/0113/doc_00028667 [19:14:32]file doc_00028668 [19:14:32]remove file /storage/0113/doc_00028668 [19:14:32]file doc_00028669 [19:14:32]remove file /storage/0113/doc_00028669 [19:14:32]file doc_00028670 [19:14:32]remove file /storage/0113/doc_00028670 [19:14:32]file doc_00028671 [19:14:32]remove file /storage/0113/doc_00028671 [19:14:32]file doc_00028672 [19:14:32]remove file /storage/0113/doc_00028672 [19:14:32]file doc_00028673 [19:14:32]remove file /storage/0113/doc_00028673 [19:14:32]file doc_00028674 [19:14:32]remove file /storage/0113/doc_00028674 [19:14:32]file doc_00028675 [19:14:32]remove file /storage/0113/doc_00028675 [19:14:32]file doc_00028676 [19:14:32]remove file /storage/0113/doc_00028676 [19:14:32]file doc_00028677 [19:14:32]remove file /storage/0113/doc_00028677 [19:14:32]file doc_00028678 [19:14:32]remove file /storage/0113/doc_00028678 [19:14:32]file doc_00028679 [19:14:32]remove file /storage/0113/doc_00028679 [19:14:32]file doc_00028680 [19:14:32]remove file /storage/0113/doc_00028680 [19:14:32]file doc_00028681 [19:14:32]remove file /storage/0113/doc_00028681 [19:14:32]file doc_00028682 [19:14:32]remove file /storage/0113/doc_00028682 [19:14:32]file doc_00028683 [19:14:32]remove file /storage/0113/doc_00028683 [19:14:32]file doc_00028684 [19:14:32]remove file /storage/0113/doc_00028684 [19:14:32]file doc_00028685 [19:14:32]remove file /storage/0113/doc_00028685 [19:14:32]file doc_00028686 [19:14:32]remove file /storage/0113/doc_00028686 [19:14:32]file doc_00028687 [19:14:32]remove file /storage/0113/doc_00028687 [19:14:32]file doc_00028688 [19:14:32]remove file /storage/0113/doc_00028688 [19:14:32]file doc_00028689 [19:14:32]remove file /storage/0113/doc_00028689 [19:14:32]file doc_00028690 [19:14:32]remove file /storage/0113/doc_00028690 [19:14:32]file doc_00028691 [19:14:32]remove file /storage/0113/doc_00028691 [19:14:32]file doc_00028692 [19:14:32]remove file /storage/0113/doc_00028692 [19:14:32]file doc_00028693 [19:14:32]remove file /storage/0113/doc_00028693 [19:14:32]file doc_00028694 [19:14:32]remove file /storage/0113/doc_00028694 [19:14:32]file doc_00028695 [19:14:32]remove file /storage/0113/doc_00028695 [19:14:32]file doc_00028696 [19:14:32]remove file /storage/0113/doc_00028696 [19:14:32]file doc_00028697 [19:14:32]remove file /storage/0113/doc_00028697 [19:14:32]file doc_00028698 [19:14:32]remove file /storage/0113/doc_00028698 [19:14:32]file doc_00028699 [19:14:32]remove file /storage/0113/doc_00028699 [19:14:32]file doc_00028700 [19:14:32]remove file /storage/0113/doc_00028700 [19:14:32]file doc_00028701 [19:14:32]remove file /storage/0113/doc_00028701 [19:14:32]file doc_00028702 [19:14:32]remove file /storage/0113/doc_00028702 [19:14:32]file doc_00028703 [19:14:32]remove file /storage/0113/doc_00028703 [19:14:32]file doc_00028704 [19:14:32]remove file /storage/0113/doc_00028704 [19:14:32]file doc_00028705 [19:14:32]remove file /storage/0113/doc_00028705 [19:14:32]file doc_00028706 [19:14:32]remove file /storage/0113/doc_00028706 [19:14:32]file doc_00028707 [19:14:32]remove file /storage/0113/doc_00028707 [19:14:32]file doc_00028708 [19:14:32]remove file /storage/0113/doc_00028708 [19:14:32]file doc_00028709 [19:14:32]remove file /storage/0113/doc_00028709 [19:14:32]file doc_00028710 [19:14:32]remove file /storage/0113/doc_00028710 [19:14:32]file doc_00028711 [19:14:32]remove file /storage/0113/doc_00028711 [19:14:32]file doc_00028712 [19:14:32]remove file /storage/0113/doc_00028712 [19:14:32]file doc_00028713 [19:14:32]remove file /storage/0113/doc_00028713 [19:14:32]file doc_00028714 [19:14:32]remove file /storage/0113/doc_00028714 [19:14:32]file doc_00028715 [19:14:32]remove file /storage/0113/doc_00028715 [19:14:32]file doc_00028716 [19:14:32]remove file /storage/0113/doc_00028716 [19:14:32]file doc_00028717 [19:14:32]remove file /storage/0113/doc_00028717 [19:14:32]file doc_00028718 [19:14:32]remove file /storage/0113/doc_00028718 [19:14:32]file doc_00028719 [19:14:32]remove file /storage/0113/doc_00028719 [19:14:32]file doc_00028720 [19:14:32]remove file /storage/0113/doc_00028720 [19:14:32]file doc_00028721 [19:14:32]remove file /storage/0113/doc_00028721 [19:14:32]file doc_00028722 [19:14:32]remove file /storage/0113/doc_00028722 [19:14:32]file doc_00028723 [19:14:32]remove file /storage/0113/doc_00028723 [19:14:32]file doc_00028724 [19:14:32]remove file /storage/0113/doc_00028724 [19:14:32]file doc_00028725 [19:14:32]remove file /storage/0113/doc_00028725 [19:14:32]remove dir /storage/0113 [19:14:32]ProcessDocumentItem done err = 0, tmpTLVsize=250 [19:14:32]tlvbuf is 0119EA70 [19:14:32]SAM_PROTO_ClearQueue [19:14:32]wFMCommunicate request_size=4 [19:14:32]MH_SAM_APDU [19:14:32]CAPDU: 80 09 00 00 [19:14:32]Write to MH i2c: E2 08 00 53 00 80 09 00 00 00 00 00 00 C5 [19:14:32]Write i2c OK [19:14:32]MH_I2C_Read... [19:14:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:14:32]Read from MH i2c: E2 [19:14:32]MH_I2C_Read... [19:14:32]Read from MH i2c: E2 03 00 [19:14:32]MH_I2C_Read... [19:14:32]Read from MH i2c: E2 03 00 53 00 00 90 00 C7 [19:14:32]RAPDU: 90 00 [19:14:32]wFMCommunicate OK [19:14:32]SAM_PROTO_ClearQueue done [19:14:32]KKMCreateOFDPacket [19:14:32]OFDProtocolAddRootSTLVToBuf [19:14:32]FM_MakeSignedData [19:14:32]FM_MakeSignedData [19:14:32]SAM_PROTO_SignData [19:14:32]wFMCommunicate request_size=4 [19:14:32]MH_SAM_APDU [19:14:32]CAPDU: 80 0D 01 02 [19:14:32]Write to MH i2c: E2 08 00 54 00 80 0D 01 02 00 00 00 00 CD [19:14:32]Write i2c OK [19:14:32]MH_I2C_Read... [19:14:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:14:32]Read from MH i2c: E2 [19:14:32]MH_I2C_Read... [19:14:32]Read from MH i2c: E2 03 00 [19:14:32]MH_I2C_Read... [19:14:32]Read from MH i2c: E2 03 00 54 00 00 90 00 C8 [19:14:32]RAPDU: 90 00 [19:14:32]wFMCommunicate OK [19:14:32]wFMCommunicate request_size=255 [19:14:32]MH_SAM_APDU [19:14:32]CAPDU: 80 0D 02 02 FA 02 00 FA 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 15 00 D0 A1 D0 B0 D1 80 D1 8B D0 B1 D0 B0 D0 B5 D0 B2 20 D0 AD 2E 20 F1 03 4E 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A0 D0 BE D0 BC D0 B0 D0 BD D0 BE D0 B2 D0 BA D0 B0 2C 20 D1 83 D0 BB 2E 20 D0 A4 D1 80 D1 83 D0 BD D0 B7 D0 B5 20 38 31 20 D0 90 2C 20 34 32 2E 38 36 33 30 37 39 2C 20 37 34 2E 33 31 38 38 35 34 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 30 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 17 88 19 66 0E 04 04 00 72 00 00 00 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 36 70 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 35 04 06 00 D6 18 [19:14:32]Write to MH i2c: E2 02 01 55 00 80 0D 02 02 FA 00 02 00 FA 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 15 00 D0 A1 D0 B0 D1 80 D1 8B D0 B1 D0 B0 D0 B5 D0 B2 20 D0 AD 2E 20 F1 03 4E 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A0 D0 BE D0 BC D0 B0 D0 BD D0 BE D0 B2 D0 BA D0 B0 2C 20 D1 83 D0 BB 2E 20 D0 A4 D1 80 D1 83 D0 BD D0 B7 D0 B5 20 38 31 20 D0 90 2C 20 34 32 2E 38 36 33 30 37 39 2C 20 37 34 2E 33 31 38 38 35 34 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 30 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 17 88 19 66 0E 04 04 00 72 00 00 00 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 36 70 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 35 04 06 00 D6 18 00 00 ED [19:14:32]Write i2c OK [19:14:32]MH_I2C_Read... [19:14:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:14:33]Read from MH i2c: E2 [19:14:33]MH_I2C_Read... [19:14:33]Read from MH i2c: E2 03 00 [19:14:33]MH_I2C_Read... [19:14:33]Read from MH i2c: E2 03 00 55 00 00 90 00 C9 [19:14:33]RAPDU: 90 00 [19:14:33]wFMCommunicate OK [19:14:33]wFMCommunicate request_size=9 [19:14:33]MH_SAM_APDU [19:14:33]CAPDU: 80 0D 02 02 04 F4 9B 5B EA [19:14:33]Write to MH i2c: E2 0C 00 56 00 80 0D 02 02 04 00 F4 9B 5B EA 00 00 AC [19:14:33]Write i2c OK [19:14:33]MH_I2C_Read... [19:14:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:14:33]Read from MH i2c: E2 [19:14:33]MH_I2C_Read... [19:14:33]Read from MH i2c: E2 03 00 [19:14:33]MH_I2C_Read... [19:14:33]Read from MH i2c: E2 03 00 56 00 00 90 00 CA [19:14:33]RAPDU: 90 00 [19:14:33]wFMCommunicate OK [19:14:33]wFMCommunicate request_size=4 [19:14:33]MH_SAM_APDU [19:14:33]CAPDU: 80 0D 03 02 [19:14:33]Write to MH i2c: E2 08 00 57 00 80 0D 03 02 00 00 00 00 D2 [19:14:33]Write i2c OK [19:14:33]MH_I2C_Read... [19:14:33]OFD Sender: No OFD packet to send [19:14:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:14:33]Read from MH i2c: E2 [19:14:33]MH_I2C_Read... [19:14:33]Read from MH i2c: E2 0B 00 [19:14:33]MH_I2C_Read... [19:14:33]Read from MH i2c: E2 0B 00 57 00 00 B8 D4 C4 B8 18 A8 EE CC 90 00 55 [19:14:33]RAPDU: B8 D4 C4 B8 18 A8 EE CC 90 00 [19:14:33]wFMCommunicate OK [19:14:33]SAM_PROTO_SignData done [19:14:33]FM_MakeSignedData done [19:14:33]CreateOFDProtocolMessage [19:14:33]wFMCommunicate request_size=4 [19:14:33]MH_SAM_APDU [19:14:33]CAPDU: 80 11 00 00 [19:14:33]Write to MH i2c: E2 08 00 58 00 80 11 00 00 00 00 00 00 D2 [19:14:33]Write i2c OK [19:14:33]MH_I2C_Read... [19:14:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:14:33]Read from MH i2c: E2 [19:14:33]MH_I2C_Read... [19:14:33]Read from MH i2c: E2 17 00 [19:14:33]MH_I2C_Read... [19:14:33]Read from MH i2c: E2 17 00 58 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 21 [19:14:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:14:33]wFMCommunicate OK [19:14:33]CreateOFDProtocolMessage done [19:14:33]OFDSenderStorePacket 28726 [19:14:33]StoreOFDPacket docnum=28726 [19:14:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 5D 35 06 01 A0 E0 5A 02 01 00 02 00 FA 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 15 00 D0 A1 D0 B0 D1 80 D1 8B D0 B1 D0 B0 D0 B5 D0 B2 20 D0 AD 2E 20 F1 03 4E 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A0 D0 BE D0 BC D0 B0 D0 BD D0 BE D0 B2 D0 BA D0 B0 2C 20 D1 83 D0 BB 2E 20 D0 A4 D1 80 D1 83 D0 BD D0 B7 D0 B5 20 38 31 20 D0 90 2C 20 34 32 2E 38 36 33 30 37 39 2C 20 37 34 2E 33 31 38 38 35 34 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 30 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 17 88 19 66 0E 04 04 00 72 00 00 00 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 36 70 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 35 04 06 00 D6 18 F4 9B 5B EA B8 D4 C4 B8 18 A8 EE CC [19:14:33]CheckFolder [19:14:33]dirname=/storage/ofd_packets [19:14:33]CheckFolder done [19:14:33]ProducePacketName [19:14:33]name=ofd_packets/00028726 [19:14:33]NVStorageSaveData ofd_packets/00028726 [19:14:33]File name is /storage/ofd_packets/00028726 [19:14:33]Write 300 bytes [19:14:33]NVStorageSaveData done [19:14:33]OFDSenderStorePacket done [19:14:33]KKMCreateOFDPacket done [19:14:33]NVStorageSaveData kkm_last_timestamp [19:14:33]File name is /storage/kkm_last_timestamp [19:14:33]Write 4 bytes [19:14:33]NVStorageSaveData done [19:14:33]ExternCall_PrintAddStr [19:14:33]wPrintStart [19:14:33]Write to MH i2c: 01 00 00 59 00 59 [19:14:33]Write i2c OK [19:14:33]MH_I2C_Read... [19:14:33]Read from MH i2c: 01 [19:14:33]MH_I2C_Read... [19:14:33]Read from MH i2c: 01 07 00 [19:14:33]MH_I2C_Read... [19:14:33]Read from MH i2c: 01 07 00 59 00 00 00 00 00 00 FF 0F 6E [19:14:33]RasterBufferAndPrint [19:14:33]line Отчет об открытии смены [19:14:33]line ФФД: 1.0 [19:14:33]line ИНН: 02508201610067 [19:14:33]line Кассир: Сарыбаев Э. [19:14:33]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [19:14:33]line Место: АЗС № 108 "Партнер Нефть" [19:14:33]line 12.04.2024 19:14 [19:14:33]line Смена: 114 [19:14:33]line РНМ: 0000138879044617 [19:14:33]line ЗНМ: 0300000027 [19:14:33]line ФД: 28726 [19:14:33]line ФМ: 0000000000963154 [19:14:33]line ФПД: 235402671381482 [19:14:33]written 0, free lines is 4095 [19:14:33]OFD Sender: Processing packet 28726 [packets to send 8, broken 7] [19:14:33]ProducePacketName [19:14:33]name=ofd_packets/00028726 [19:14:33]OFD Sender: To server: pG, [19:14:33]CommunicateWithHost lk.salyk.kg:30040 [19:14:33]ConnectInit lk.salyk.kg [19:14:33]Connected sock=10 [19:14:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 5D 35 06 01 A0 E0 5A 02 01 00 02 00 FA 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 15 00 D0 A1 D0 B0 D1 80 D1 8B D0 B1 D0 B0 D0 B5 D0 B2 20 D0 AD 2E 20 F1 03 4E 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A0 D0 BE D0 BC D0 B0 D0 BD D0 BE D0 B2 D0 BA D0 B0 2C 20 D1 83 D0 BB 2E 20 D0 A4 D1 80 D1 83 D0 BD D0 B7 D0 B5 20 38 31 20 D0 90 2C 20 34 32 2E 38 36 33 30 37 39 2C 20 37 34 2E 33 31 38 38 35 34 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 30 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 17 88 19 66 0E 04 04 00 72 00 00 00 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 36 70 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 35 04 06 00 D6 18 F4 9B 5B EA B8 D4 C4 B8 18 A8 EE CC [19:14:33]Write to MH i2c: 01 00 00 6B 00 6B [19:14:33]Write i2c OK [19:14:33]MH_I2C_Read... [19:14:33]Read from MH i2c: 01 [19:14:33]MH_I2C_Read... [19:14:33]Read from MH i2c: 01 07 00 [19:14:33]MH_I2C_Read... [19:14:33]Read from MH i2c: 01 07 00 6B 00 00 00 00 00 00 A7 0E 27 [19:14:33]RasterBufferAndPrint [19:14:33]line [19:14:33]line [19:14:33]line [19:14:33]line [19:14:33]line [19:14:33]written 0, free lines is 3767 [19:14:33]MH_Cut [19:14:33]Write to MH i2c: D1 01 00 72 00 01 44 [19:14:33]Write i2c OK [19:14:33]MH_I2C_Read... [19:14:33]Read from MH i2c: D1 [19:14:33]MH_I2C_Read... [19:14:33]Read from MH i2c: D1 01 00 [19:14:33]MH_I2C_Read... [19:14:33]Read from MH i2c: D1 01 00 72 00 00 43 [19:14:33]Write to MH i2c: 01 00 00 73 00 73 [19:14:33]Write i2c OK [19:14:33]MH_I2C_Read... [19:14:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 CD C2 47 00 C4 0B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 36 70 00 00 F4 03 04 00 C1 32 19 66 B6 04 01 00 00 73 F2 A8 A0 93 53 30 BA [19:14:33]CommunicateWithHost err = 0 [19:14:33]CheckOFDResponse [19:14:33]1017 (14) - 77093643461234 [19:14:33]1041 (16) - 0000000000963154 [19:14:33]1040 (4) - 28726 [19:14:33]1012 (4) - 12.04.2024 13:10 [19:14:33]1206 (1) - 0 [19:14:33]OFD Sender: Remove packet 28726 [19:14:33]ProducePacketName [19:14:33]name=ofd_packets/00028726 [19:14:33]NVStorageDeleteData [19:14:34]*** Cut start [19:14:34]*** Partial cut [19:14:34]*** CUTSNS_PIN = 1 [19:14:34]*** CUTSNS_PIN = 0 [19:14:34]OFD Sender: No OFD packet to send [19:14:34]*** Brake cut motor [19:14:34]Read from MH i2c: 01 [19:14:34]MH_I2C_Read... [19:14:34]*** Stop cut motor [19:14:34]*** Cut end [19:14:34]Read from MH i2c: 01 07 00 [19:14:34]MH_I2C_Read... [19:14:34]Read from MH i2c: 01 07 00 73 00 00 00 00 00 00 FF 0F 88 [19:14:34]process_action open_shift done [19:14:34]requested_data is exist [19:14:34]produce_requested_data [19:14:34]requested_item fd.num is exist - process it [19:14:34]SAM_PROTO_GetFieldsCounters [19:14:34]wFMCommunicate request_size=4 [19:14:34]MH_SAM_APDU [19:14:34]CAPDU: 80 13 00 00 [19:14:34]Write to MH i2c: E2 08 00 74 00 80 13 00 00 00 00 00 00 F0 [19:14:34]Write i2c OK [19:14:34]MH_I2C_Read... [19:14:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:14:34]Read from MH i2c: E2 [19:14:34]MH_I2C_Read... [19:14:34]Read from MH i2c: E2 62 00 [19:14:34]MH_I2C_Read... [19:14:34]Read from MH i2c: E2 62 00 74 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 36 70 00 00 0E 04 04 00 72 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 46 [19:14:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 36 70 00 00 0E 04 04 00 72 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 [19:14:34]wFMCommunicate OK [19:14:34]SAM_PROTO_GetFieldsCounters done [19:14:34]requested_item shift.num is exist - process it [19:14:34]requested_item shift.opened is exist - process it [19:14:34]req_shift_opened [19:14:34]FM_GetShiftState [19:14:34]SAM_PROTO_GetShiftState [19:14:34]wFMCommunicate request_size=4 [19:14:34]MH_SAM_APDU [19:14:34]CAPDU: 80 13 01 00 [19:14:34]Write to MH i2c: E2 08 00 75 00 80 13 01 00 00 00 00 00 F2 [19:14:34]Write i2c OK [19:14:34]MH_I2C_Read... [19:14:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:14:34]Read from MH i2c: E2 [19:14:35]MH_I2C_Read... [19:14:35]Read from MH i2c: E2 0E 00 [19:14:35]MH_I2C_Read... [19:14:35]Read from MH i2c: E2 0E 00 75 00 00 09 00 01 17 88 19 66 00 00 00 00 90 00 1C [19:14:35]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [19:14:35]wFMCommunicate OK [19:14:35]SAM_PROTO_GetShiftState done [19:14:35]FM_GetShiftState done [19:14:35]req_shift_opened done [19:14:35]requested_item shift.open_date is exist - process it [19:14:35]req_shift_open_date [19:14:35]req_shift_open_date done [19:14:35]produce_requested_data done [19:14:35]produce_requested_data return {"fd.num":28726,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271} [19:14:35]process_action_free open_shift [19:14:35]json_value_free [19:14:35]json_value_free done [19:14:35]process_json_proto returns [19:14:35]Send response to host [19:14:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":28726,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271}}} [19:14:35]free response buf [19:14:35]execute_script done [19:14:35]execute_script returns [19:14:35]free content buf [19:14:35]Sock 6.Close socket [19:14:35]Sock 6.Thread stoped [19:14:35]accept exits with 9 [19:14:35]New connection [19:14:35]New thread 3066785124 created [19:14:35]Thread 3066928484 joined [19:14:35]Waiting for new connection... [19:14:35] Sock 9.Parse request [19:14:35]Sock 9.Check first char [19:14:35]Sock 9.First char is OK [19:14:35]request: POST /json_proto HTTP/1.0 [19:14:35]Method: POST [19:14:35]URL: /json_proto [19:14:35]Method is POST - this is cgi request [19:14:35]url: /json_proto [19:14:35]query_string will be loaded in cgi processing [19:14:35]execute_cgi json_proto POST (null) [19:14:35]execute_cgi path=json_proto method=POST [19:14:35]POST find Content-Length [19:14:35]Host: 172.17.33.3:8080 [19:14:35]Content-Length: 331 [19:14:35]Content-Type: application/json [19:14:35] [19:14:35]POST finish read [19:14:35]Found Content-Length = 331 [19:14: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" ] } } [19:14:35]execute_script... [19:14: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" ] } } [19:14:35]POST & json_proto [19:14:35]process_json_proto [19:14:35]json parsed OK: [19:14:35]protocol is kg_v1.0 [19:14:35]action value=get_value [19:14:35]process_action get_value [19:14:35]cmd_get_value [19:14:35]process_action get_value done [19:14:35]requested_data is exist [19:14:35]produce_requested_data [19:14:35]requested_item fm.sale.total is exist - process it [19:14:35]SAM_PROTO_GetFMData [19:14:35]wFMCommunicate request_size=4 [19:14:35]MH_SAM_APDU [19:14:35]CAPDU: 80 13 03 00 [19:14:35]Write to MH i2c: E2 08 00 76 00 80 13 03 00 00 00 00 00 F5 [19:14:35]Write i2c OK [19:14:35]MH_I2C_Read... [19:14:35]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [19:14:35]Read from MH i2c: E2 [19:14:35]MH_I2C_Read... [19:14:35]Read from MH i2c: E2 FD 00 [19:14:35]MH_I2C_Read... [19:14:35]Read from MH i2c: E2 FD 00 76 00 00 C3 04 85 04 BF 04 6E 04 04 00 52 6F 00 00 69 04 A1 00 6F 04 04 00 F8 6B 00 00 B1 04 04 00 D9 FB 7B AF 70 04 04 00 78 E9 41 70 72 04 04 00 61 12 3A 3F 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 E7 A0 A3 12 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 D7 99 8D 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 9C 00 6F 04 04 00 5A 03 00 00 B1 04 04 00 A8 5F 91 0C 70 04 04 00 A8 5F 91 0C 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 C1 B4 55 01 EF 03 09 00 F6 90 00 D1 [19:14:35]RAPDU: C3 04 85 04 BF 04 6E 04 04 00 52 6F 00 00 69 04 A1 00 6F 04 04 00 F8 6B 00 00 B1 04 04 00 D9 FB 7B AF 70 04 04 00 78 E9 41 70 72 04 04 00 61 12 3A 3F 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 E7 A0 A3 12 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 D7 99 8D 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 9C 00 6F 04 04 00 5A 03 00 00 B1 04 04 00 A8 5F 91 0C 70 04 04 00 A8 5F 91 0C 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 C1 B4 55 01 EF 03 09 00 F6 90 00 [19:14:35]wFMCommunicate OK [19:14:35]wFMCommunicate request_size=4 [19:14:35]MH_SAM_APDU [19:14:35]CAPDU: 80 17 00 00 [19:14:35]Write to MH i2c: E2 08 00 77 00 80 17 00 00 00 00 00 00 F7 [19:14:35]Write i2c OK [19:14:35]MH_I2C_Read... [19:14:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:14:35]Read from MH i2c: E2 [19:14:35]MH_I2C_Read... [19:14:35]Read from MH i2c: E2 FD 00 [19:14:35]MH_I2C_Read... [19:14:35]Read from MH i2c: E2 FD 00 77 00 00 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 4B 79 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 97 [19:14:36]RAPDU: 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 4B 79 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [19:14:36]wFMCommunicate OK [19:14:36]wFMCommunicate request_size=4 [19:14:36]MH_SAM_APDU [19:14:36]CAPDU: 80 17 00 00 [19:14:36]Write to MH i2c: E2 08 00 78 00 80 17 00 00 00 00 00 00 F8 [19:14:36]Write i2c OK [19:14:36]MH_I2C_Read... [19:14:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:14:36]Read from MH i2c: E2 [19:14:36]MH_I2C_Read... [19:14:36]Read from MH i2c: E2 FD 00 [19:14:36]MH_I2C_Read... [19:14:36]Read from MH i2c: E2 FD 00 78 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 16 [19:14:36]RAPDU: 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [19:14:36]wFMCommunicate OK [19:14:36]wFMCommunicate request_size=4 [19:14:36]MH_SAM_APDU [19:14:36]CAPDU: 80 17 00 00 [19:14:36]Write to MH i2c: E2 08 00 79 00 80 17 00 00 00 00 00 00 F9 [19:14:36]Write i2c OK [19:14:36]MH_I2C_Read... [19:14:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:14:36]Read from MH i2c: E2 [19:14:36]MH_I2C_Read... [19:14:36]Read from MH i2c: E2 FD 00 [19:14:36]MH_I2C_Read... [19:14:36]Read from MH i2c: E2 FD 00 79 00 00 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 6B [19:14:36]RAPDU: 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [19:14:36]wFMCommunicate OK [19:14:36]wFMCommunicate request_size=4 [19:14:36]MH_SAM_APDU [19:14:36]CAPDU: 80 17 00 00 [19:14:36]Write to MH i2c: E2 08 00 7A 00 80 17 00 00 00 00 00 00 FA [19:14:36]Write i2c OK [19:14:36]MH_I2C_Read... [19:14:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 221! [19:14:37]Read from MH i2c: E2 [19:14:37]MH_I2C_Read... [19:14:37]Read from MH i2c: E2 E0 00 [19:14:37]MH_I2C_Read... [19:14:37]Read from MH i2c: E2 E0 00 7A 00 00 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [19:14:37]RAPDU: 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [19:14:37]wFMCommunicate OK [19:14:37]SAM_PROTO_GetFMData done [19:14:37]requested_item fm.sale_refund.total is exist - process it [19:14:37]requested_item fm.buy.total is exist - process it [19:14:37]requested_item shift.sale.total is exist - process it [19:14:37]SAM_PROTO_GetShiftData [19:14:37]wFMCommunicate request_size=4 [19:14:37]MH_SAM_APDU [19:14:37]CAPDU: 80 13 02 00 [19:14:37]Write to MH i2c: E2 08 00 7B 00 80 13 02 00 00 00 00 00 F9 [19:14:37]Write i2c OK [19:14:37]MH_I2C_Read... [19:14:37]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [19:14:37]Read from MH i2c: E2 [19:14:37]MH_I2C_Read... [19:14:37]Read from MH i2c: E2 FD 00 [19:14:37]MH_I2C_Read... [19:14:37]Read from MH i2c: E2 FD 00 7B 00 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 6C [19:14:37]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 [19:14:37]wFMCommunicate OK [19:14:37]wFMCommunicate request_size=4 [19:14:37]MH_SAM_APDU [19:14:37]CAPDU: 80 17 00 00 [19:14:37]Write to MH i2c: E2 08 00 7C 00 80 17 00 00 00 00 00 00 FC [19:14:37]Write i2c OK [19:14:37]MH_I2C_Read... [19:14:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:14:38]Read from MH i2c: E2 [19:14:38]MH_I2C_Read... [19:14:38]Read from MH i2c: E2 FD 00 [19:14:38]MH_I2C_Read... [19:14:38]Read from MH i2c: E2 FD 00 7C 00 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 04 [19:14:38]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 [19:14:38]wFMCommunicate OK [19:14:38]wFMCommunicate request_size=4 [19:14:38]MH_SAM_APDU [19:14:38]CAPDU: 80 17 00 00 [19:14:38]Write to MH i2c: E2 08 00 7D 00 80 17 00 00 00 00 00 00 FD [19:14:38]Write i2c OK [19:14:38]MH_I2C_Read... [19:14:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:14:38]Read from MH i2c: E2 [19:14:38]MH_I2C_Read... [19:14:38]Read from MH i2c: E2 FD 00 [19:14:38]MH_I2C_Read... [19:14:38]Read from MH i2c: E2 FD 00 7D 00 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 CF [19:14:38]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 [19:14:38]wFMCommunicate OK [19:14:38]wFMCommunicate request_size=4 [19:14:38]MH_SAM_APDU [19:14:38]CAPDU: 80 17 00 00 [19:14:38]Write to MH i2c: E2 08 00 7E 00 80 17 00 00 00 00 00 00 FE [19:14:38]Write i2c OK [19:14:38]MH_I2C_Read... [19:14:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:14:39]Read from MH i2c: E2 [19:14:39]MH_I2C_Read... [19:14:39]Read from MH i2c: E2 FD 00 [19:14:39]MH_I2C_Read... [19:14:39]Read from MH i2c: E2 FD 00 7E 00 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 70 [19:14:39]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 [19:14:39]wFMCommunicate OK [19:14:39]wFMCommunicate request_size=4 [19:14:39]MH_SAM_APDU [19:14:39]CAPDU: 80 17 00 00 [19:14:39]Write to MH i2c: E2 08 00 7F 00 80 17 00 00 00 00 00 00 FF [19:14:39]Write i2c OK [19:14:39]MH_I2C_Read... [19:14:39]OFD Sender: No OFD packet to send [19:14:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [19:14:39]Read from MH i2c: E2 [19:14:39]MH_I2C_Read... [19:14:39]Read from MH i2c: E2 BD 00 [19:14:39]MH_I2C_Read... [19:14:39]Read from MH i2c: E2 BD 00 7F 00 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 E5 [19:14:39]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 [19:14:39]wFMCommunicate OK [19:14:39]SAM_PROTO_GetShiftData done [19:14:39]requested_item shift.sale.total_cash is exist - process it [19:14:39]requested_item shift.sale_refund.total is exist - process it [19:14:39]requested_item shift.sale_refund.total_cash is exist - process it [19:14:39]requested_item shift.buy.total is exist - process it [19:14:39]requested_item shift.buy.total_cash is exist - process it [19:14:39]produce_requested_data done [19:14:39]produce_requested_data return {"fm.sale.total":29441382.01,"fm.sale_refund.total":2108538.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} [19:14:39]process_action_free get_value [19:14:39]json_value_free [19:14:39]json_value_free done [19:14:39]process_json_proto returns [19:14:39]Send response to host [19:14:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":29441382.01,"fm.sale_refund.total":2108538.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}}} [19:14:39]free response buf [19:14:39]execute_script done [19:14:39]execute_script returns [19:14:39]free content buf [19:14:39]Sock 9.Close socket [19:14:39]Sock 9.Thread stoped [19:14:44]OFD Sender: No OFD packet to send [19:14:49]OFD Sender: No OFD packet to send [19:14:54]OFD Sender: No OFD packet to send [19:14:59]OFD Sender: No OFD packet to send [19:15:04]OFD Sender: No OFD packet to send [19:15:09]OFD Sender: No OFD packet to send [19:15:14]OFD Sender: No OFD packet to send [19:15:19]OFD Sender: No OFD packet to send [19:15:24]OFD Sender: No OFD packet to send [19:15:29]OFD Sender: No OFD packet to send [19:15:34]OFD Sender: No OFD packet to send [19:15:39]OFD Sender: No OFD packet to send [19:15:44]OFD Sender: No OFD packet to send [19:15:49]OFD Sender: No OFD packet to send [19:15:54]OFD Sender: No OFD packet to send [19:15:59]OFD Sender: No OFD packet to send [19:16:04]OFD Sender: No OFD packet to send [19:16:09]OFD Sender: No OFD packet to send [19:16:14]OFD Sender: No OFD packet to send [19:16:19]OFD Sender: No OFD packet to send [19:16:24]OFD Sender: No OFD packet to send [19:16:29]OFD Sender: No OFD packet to send [19:16:34]OFD Sender: No OFD packet to send [19:16:39]OFD Sender: No OFD packet to send [19:16:44]OFD Sender: No OFD packet to send [19:16:49]OFD Sender: No OFD packet to send [19:16:54]OFD Sender: No OFD packet to send [19:16:59]OFD Sender: No OFD packet to send [19:17:04]OFD Sender: No OFD packet to send [19:17:09]OFD Sender: No OFD packet to send [19:17:14]OFD Sender: No OFD packet to send [19:17:19]OFD Sender: No OFD packet to send [19:17:24]OFD Sender: No OFD packet to send [19:17:29]OFD Sender: No OFD packet to send [19:17:34]OFD Sender: No OFD packet to send [19:17:39]OFD Sender: No OFD packet to send [19:17:44]OFD Sender: No OFD packet to send [19:17:49]OFD Sender: No OFD packet to send [19:17:54]OFD Sender: No OFD packet to send [19:17:59]OFD Sender: No OFD packet to send [19:18:04]OFD Sender: No OFD packet to send [19:18:09]OFD Sender: No OFD packet to send [19:18:14]OFD Sender: No OFD packet to send [19:18:19]OFD Sender: No OFD packet to send [19:18:24]OFD Sender: No OFD packet to send [19:18:29]OFD Sender: No OFD packet to send [19:18:34]OFD Sender: No OFD packet to send [19:18:39]OFD Sender: No OFD packet to send [19:18:44]OFD Sender: No OFD packet to send [19:18:49]OFD Sender: No OFD packet to send [19:18:54]OFD Sender: No OFD packet to send [19:18:59]OFD Sender: No OFD packet to send [19:19:04]OFD Sender: No OFD packet to send [19:19:09]OFD Sender: No OFD packet to send [19:19:14]OFD Sender: No OFD packet to send [19:19:19]OFD Sender: No OFD packet to send [19:19:24]OFD Sender: No OFD packet to send [19:19:29]OFD Sender: No OFD packet to send [19:19:34]OFD Sender: No OFD packet to send [19:19:39]OFD Sender: No OFD packet to send [19:19: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:41]accept exits with 6 [19:21:41]New connection [19:21:41]New thread 3066928484 created [19:21:41]Thread 3066785124 joined [19:21:41]Waiting for new connection... [19:21:41] Sock 6.Parse request [19:21:41]Sock 6.Check first char [19:21:41]Sock 6.First char is OK [19:21:41]request: POST /json_proto HTTP/1.0 [19:21:41]Method: POST [19:21:41]URL: /json_proto [19:21:41]Method is POST - this is cgi request [19:21:41]url: /json_proto [19:21:41]query_string will be loaded in cgi processing [19:21:41]execute_cgi json_proto POST (null) [19:21:41]execute_cgi path=json_proto method=POST [19:21:41]POST find Content-Length [19:21:41]Host: 172.17.33.3:8080 [19:21:41]Content-Length: 681 [19:21:41]Content-Type: application/json [19:21:41] [19:21:41]POST finish read [19:21:41]Found Content-Length = 681 [19:21:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347062", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 21.280, "sum" : 700.11, "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:21:41]execute_script... [19:21: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)347062", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 21.280, "sum" : 700.11, "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:21:41]POST & json_proto [19:21:41]process_json_proto [19:21:41]json parsed OK: [19:21:41]protocol is kg_v1.0 [19:21:41]action value=close_receipt [19:21:41]process_action close_receipt [19:21:41]cmd_close_receipt [19:21:41]MH_GetDate [19:21:41]Write to MH i2c: F0 00 00 80 00 6F [19:21:41]Write i2c OK [19:21:41]MH_I2C_Read... [19:21:41]Read from MH i2c: F0 [19:21:41]MH_I2C_Read... [19:21:41]Read from MH i2c: F0 09 00 [19:21:41]MH_I2C_Read... [19:21:41]Read from MH i2c: F0 09 00 80 00 00 C6 89 19 66 23 5B 8F 65 B8 [19:21:41]GetLastDocTimeStamp 1712949271 [19:21:41]current date 1712949702 [19:21:41]FM_GetShiftState [19:21:41]SAM_PROTO_GetShiftState [19:21:41]wFMCommunicate request_size=4 [19:21:41]MH_SAM_APDU [19:21:41]CAPDU: 80 13 01 00 [19:21:41]Write to MH i2c: E2 08 00 81 00 80 13 01 00 00 00 00 00 FE [19:21:41]Write i2c OK [19:21:41]MH_I2C_Read... [19:21:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:21:41]Read from MH i2c: E2 [19:21:41]MH_I2C_Read... [19:21:41]Read from MH i2c: E2 0E 00 [19:21:41]MH_I2C_Read... [19:21:41]Read from MH i2c: E2 0E 00 81 00 00 09 00 01 17 88 19 66 00 00 00 00 90 00 28 [19:21:41]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [19:21:41]wFMCommunicate OK [19:21:41]SAM_PROTO_GetShiftState done [19:21:41]FM_GetShiftState done [19:21:41]opened in 1712949271 [19:21:41]opened+sec_in_day 1713035671 [19:21:41]quantity*price = 70011 [19:21:41]sum+1 = 70012 [19:21:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.35 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 1 12.04.2024 19:21 Смена: 114 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28727 ФПД: 166679351945363 1/tax-web-control/client/api/v1/ticket?date=20240412T192142&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28727&fm=166679351945363&tin=02508201610067®Number=0000138879044617&sum=70000 [19:21:42]StoreToDocumentArchive [19:21:42]shift 114 fd 28727 [19:21:42]save to /storage/0114/doc_00028727 [19:21:42]save last doc name /storage/0114/doc_00028727 to /storage/kkm_last_doc_name [19:21:42]save OK [19:21:42]Clear old archive folders... [19:21:42]ProcessDocumentItem done err = 0, tmpTLVsize=250 [19:21:42]tlvbuf is 011F68F0 [19:21:42]SAM_PROTO_ClearQueue [19:21:42]wFMCommunicate request_size=4 [19:21:42]MH_SAM_APDU [19:21:42]CAPDU: 80 09 00 00 [19:21:42]Write to MH i2c: E2 08 00 8E 00 80 09 00 00 00 00 00 00 00 [19:21:42]Write i2c OK [19:21:42]MH_I2C_Read... [19:21:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:21:42]Read from MH i2c: E2 [19:21:42]MH_I2C_Read... [19:21:42]Read from MH i2c: E2 03 00 [19:21:42]MH_I2C_Read... [19:21:42]Read from MH i2c: E2 03 00 8E 00 00 90 00 02 [19:21:42]RAPDU: 90 00 [19:21:42]wFMCommunicate OK [19:21:42]SAM_PROTO_ClearQueue done [19:21:42]KKMCreateOFDPacket [19:21:42]OFDProtocolAddRootSTLVToBuf [19:21:42]FM_MakeSignedData [19:21:42]FM_MakeSignedData [19:21:42]SAM_PROTO_SignData [19:21:42]wFMCommunicate request_size=4 [19:21:42]MH_SAM_APDU [19:21:42]CAPDU: 80 0D 01 02 [19:21:42]Write to MH i2c: E2 08 00 8F 00 80 0D 01 02 00 00 00 00 08 [19:21:42]Write i2c OK [19:21:42]MH_I2C_Read... [19:21:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:21:42]Read from MH i2c: E2 [19:21:42]MH_I2C_Read... [19:21:42]Read from MH i2c: E2 03 00 [19:21:42]MH_I2C_Read... [19:21:42]Read from MH i2c: E2 03 00 8F 00 00 90 00 03 [19:21:42]RAPDU: 90 00 [19:21:42]wFMCommunicate OK [19:21:42]wFMCommunicate request_size=255 [19:21:42]MH_SAM_APDU [19:21:42]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 20 53 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 7B 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 C6 89 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 37 70 00 00 35 04 06 00 97 98 [19:21:42]Write to MH i2c: E2 02 01 90 00 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 20 53 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 7B 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 C6 89 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 37 70 00 00 35 04 06 00 97 98 00 00 76 [19:21:42]Write i2c OK [19:21:42]MH_I2C_Read... [19:21:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:21:42]Read from MH i2c: E2 [19:21:42]MH_I2C_Read... [19:21:42]Read from MH i2c: E2 03 00 [19:21:42]MH_I2C_Read... [19:21:42]Read from MH i2c: E2 03 00 90 00 00 90 00 04 [19:21:42]RAPDU: 90 00 [19:21:42]wFMCommunicate OK [19:21:42]wFMCommunicate request_size=9 [19:21:42]MH_SAM_APDU [19:21:42]CAPDU: 80 0D 02 02 04 0F 90 68 93 [19:21:42]Write to MH i2c: E2 0C 00 91 00 80 0D 02 02 04 00 0F 90 68 93 00 00 AD [19:21:42]Write i2c OK [19:21:42]MH_I2C_Read... [19:21:42]Read from MH i2c: E2 [19:21:42]MH_I2C_Read... [19:21:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:21:42]Read from MH i2c: E2 03 00 [19:21:42]MH_I2C_Read... [19:21:42]Read from MH i2c: E2 03 00 91 00 00 90 00 05 [19:21:42]RAPDU: 90 00 [19:21:42]wFMCommunicate OK [19:21:42]wFMCommunicate request_size=4 [19:21:42]MH_SAM_APDU [19:21:42]CAPDU: 80 0D 03 02 [19:21:42]Write to MH i2c: E2 08 00 92 00 80 0D 03 02 00 00 00 00 0D [19:21:42]Write i2c OK [19:21:42]MH_I2C_Read... [19:21:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:21:42]Read from MH i2c: E2 [19:21:42]MH_I2C_Read... [19:21:42]Read from MH i2c: E2 0B 00 [19:21:42]MH_I2C_Read... [19:21:42]Read from MH i2c: E2 0B 00 92 00 00 78 0A B7 CB 26 B2 0B A5 90 00 9A [19:21:42]RAPDU: 78 0A B7 CB 26 B2 0B A5 90 00 [19:21:42]wFMCommunicate OK [19:21:42]SAM_PROTO_SignData done [19:21:42]FM_MakeSignedData done [19:21:42]CreateOFDProtocolMessage [19:21:42]wFMCommunicate request_size=4 [19:21:42]MH_SAM_APDU [19:21:42]CAPDU: 80 11 00 00 [19:21:42]Write to MH i2c: E2 08 00 93 00 80 11 00 00 00 00 00 00 0D [19:21:42]Write i2c OK [19:21:42]MH_I2C_Read... [19:21:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:21:43]Read from MH i2c: E2 [19:21:43]MH_I2C_Read... [19:21:43]Read from MH i2c: E2 17 00 [19:21:43]MH_I2C_Read... [19:21:43]Read from MH i2c: E2 17 00 93 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 5C [19:21:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:21:43]wFMCommunicate OK [19:21:43]CreateOFDProtocolMessage done [19:21:43]OFDSenderStorePacket 28727 [19:21:43]StoreOFDPacket docnum=28727 [19:21:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 B6 DB 06 01 5F 5D 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 20 53 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 7B 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 C6 89 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 37 70 00 00 35 04 06 00 97 98 0F 90 68 93 78 0A B7 CB 26 B2 0B A5 [19:21:43]CheckFolder [19:21:43]dirname=/storage/ofd_packets [19:21:43]CheckFolder done [19:21:43]ProducePacketName [19:21:43]name=ofd_packets/00028727 [19:21:43]NVStorageSaveData ofd_packets/00028727 [19:21:43]File name is /storage/ofd_packets/00028727 [19:21:43]Write 300 bytes [19:21:43]NVStorageSaveData done [19:21:43]OFDSenderStorePacket done [19:21:43]KKMCreateOFDPacket done [19:21:43]NVStorageSaveData kkm_last_timestamp [19:21:43]File name is /storage/kkm_last_timestamp [19:21:43]Write 4 bytes [19:21:43]NVStorageSaveData done [19:21:43]ExternCall_PrintAddStr [19:21:43]wPrintStart [19:21:43]Write to MH i2c: 01 00 00 94 00 94 [19:21:43]Write i2c OK [19:21:43]MH_I2C_Read... [19:21:43]Read from MH i2c: 01 [19:21:43]MH_I2C_Read... [19:21:43]Read from MH i2c: 01 07 00 [19:21:43]MH_I2C_Read... [19:21:43]Read from MH i2c: 01 07 00 94 00 00 00 00 00 00 FF 0F A9 [19:21:43]RasterBufferAndPrint [19:21:43]line Счет N : (1)347062 [19:21:43]line ИНН: 02508201610067 [19:21:43]line Контрольно-Кассовый Чек [19:21:43]line ПРОДАЖА [19:21:43]line ТРК (МРК, ГНК) : 71 [19:21:43]line Товар: 2711129700 [19:21:43]line ГАЗ-К-5 [19:21:43]line 21.280 * 32.90 [19:21:43]line = 700.11 [19:21:43]line НДС 12% НСП 1% [19:21:43]line > о реализуемом товаре [19:21:43]line ОКРУГЛЕНИЕ: -0.11 [19:21:43]line ИТОГО: 700.00 [19:21:43]line Внесено: 700.00 [19:21:43]line СДАЧА: 0.00 [19:21:43]line НСП 1% : 6.20 [19:21:43]line НДС 12% : 74.35 [19:21:43]line Наличными: 700.00 [19:21:43]line Безнал.: 0.00 [19:21:43]line Место: АЗС № 108 "Партнер Нефть" [19:21:43]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [19:21:43]line СНО: Общий режим [19:21:43]line Чек 1 12.04.2024 19:21 [19:21:43]line Смена: 114 ФФД: 1.0 [19:21:43]line ЗНМ: 0300000027 [19:21:43]line РНМ: 0000138879044617 [19:21:43]line Версия ККМ: 001 [19:21:43]line ФМ: 0000000000963154 [19:21:43]line ФД: 28727 [19:21:43]line ФПД: 166679351945363 [19:21:43]line 1/tax-web-control/client/api/v1/ticket?date=20240412T192142&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28727&fm=166679351945363&tin=02508201610067®Number=0000138879044617&sum=70000 [19:21:43]OFD Sender: Processing packet 28727 [packets to send 8, broken 7] [19:21:43]ProducePacketName [19:21:43]name=ofd_packets/00028727 [19:21:43]OFD Sender: To server: pG, [19:21:43]CommunicateWithHost lk.salyk.kg:30040 [19:21:43]ConnectInit lk.salyk.kg [19:21:43]written 0, free lines is 4095 [19:21:43]Connected sock=10 [19:21:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 B6 DB 06 01 5F 5D 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 20 53 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 7B 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 C6 89 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 37 70 00 00 35 04 06 00 97 98 0F 90 68 93 78 0A B7 CB 26 B2 0B A5 [19:21:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 1B 8D 47 00 1A B0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 37 70 00 00 F4 03 04 00 6F 34 19 66 B6 04 01 00 00 29 C1 1E FE 09 2E E4 5D [19:21:43]CommunicateWithHost err = 0 [19:21:43]CheckOFDResponse [19:21:43]1017 (14) - 77093643461234 [19:21:43]1041 (16) - 0000000000963154 [19:21:43]1040 (4) - 28727 [19:21:43]1012 (4) - 12.04.2024 13:17 [19:21:43]1206 (1) - 0 [19:21:43]OFD Sender: Remove packet 28727 [19:21:43]ProducePacketName [19:21:43]name=ofd_packets/00028727 [19:21:43]NVStorageDeleteData [19:21:43]Write to MH i2c: 01 00 00 BE 00 BE [19:21:43]Write i2c OK [19:21:43]MH_I2C_Read... [19:21:43]Read from MH i2c: 01 [19:21:43]MH_I2C_Read... [19:21:43]Read from MH i2c: 01 07 00 [19:21:43]MH_I2C_Read... [19:21:43]Read from MH i2c: 01 07 00 BE 00 00 00 00 00 00 B8 0C 89 [19:21:43]RasterBufferAndPrint [19:21:43]line [19:21:43]line [19:21:43]line [19:21:43]line [19:21:43]line [19:21:43]written 0, free lines is 3259 [19:21:43]MH_Cut [19:21:43]Write to MH i2c: D1 01 00 C5 00 01 97 [19:21:43]Write i2c OK [19:21:43]MH_I2C_Read... [19:21:43]Read from MH i2c: D1 [19:21:43]MH_I2C_Read... [19:21:43]Read from MH i2c: D1 01 00 [19:21:43]MH_I2C_Read... [19:21:43]Read from MH i2c: D1 01 00 C5 00 00 96 [19:21:43]Write to MH i2c: 01 00 00 C6 00 C6 [19:21:43]Write i2c OK [19:21:43]MH_I2C_Read... [19:21:44]OFD Sender: No OFD packet to send [19:21:44]*** Cut start [19:21:44]*** Partial cut [19:21:44]*** CUTSNS_PIN = 1 [19:21:44]*** CUTSNS_PIN = 0 [19:21:44]*** Brake cut motor [19:21:45]Read from MH i2c: 01 [19:21:45]MH_I2C_Read... [19:21:45]*** Stop cut motor [19:21:45]*** Cut end [19:21:45]Read from MH i2c: 01 07 00 [19:21:45]MH_I2C_Read... [19:21:45]Read from MH i2c: 01 07 00 C6 00 00 00 00 00 00 FF 0F DB [19:21:45]process_action close_receipt done [19:21:45]requested_data is exist [19:21:45]produce_requested_data [19:21:45]requested_item fm.sn is exist - process it [19:21:45]wFMCommunicate request_size=4 [19:21:45]MH_SAM_APDU [19:21:45]CAPDU: 80 11 00 00 [19:21:45]Write to MH i2c: E2 08 00 C7 00 80 11 00 00 00 00 00 00 41 [19:21:45]Write i2c OK [19:21:45]MH_I2C_Read... [19:21:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:21:45]Read from MH i2c: E2 [19:21:45]MH_I2C_Read... [19:21:45]Read from MH i2c: E2 17 00 [19:21:45]MH_I2C_Read... [19:21:45]Read from MH i2c: E2 17 00 C7 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 90 [19:21:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:21:45]wFMCommunicate OK [19:21:45]requested_item fd.num is exist - process it [19:21:45]SAM_PROTO_GetFieldsCounters [19:21:45]wFMCommunicate request_size=4 [19:21:45]MH_SAM_APDU [19:21:45]CAPDU: 80 13 00 00 [19:21:45]Write to MH i2c: E2 08 00 C8 00 80 13 00 00 00 00 00 00 44 [19:21:45]Write i2c OK [19:21:45]MH_I2C_Read... [19:21:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:21:45]Read from MH i2c: E2 [19:21:45]MH_I2C_Read... [19:21:45]Read from MH i2c: E2 62 00 [19:21:45]MH_I2C_Read... [19:21:45]Read from MH i2c: E2 62 00 C8 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 37 70 00 00 0E 04 04 00 72 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 9E [19:21:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 37 70 00 00 0E 04 04 00 72 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 [19:21:45]wFMCommunicate OK [19:21:45]SAM_PROTO_GetFieldsCounters done [19:21:45]requested_item shift.num is exist - process it [19:21:45]requested_item shift.opened is exist - process it [19:21:45]req_shift_opened [19:21:45]FM_GetShiftState [19:21:45]SAM_PROTO_GetShiftState [19:21:45]wFMCommunicate request_size=4 [19:21:45]MH_SAM_APDU [19:21:45]CAPDU: 80 13 01 00 [19:21:45]Write to MH i2c: E2 08 00 C9 00 80 13 01 00 00 00 00 00 46 [19:21:45]Write i2c OK [19:21:45]MH_I2C_Read... [19:21:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:21:45]Read from MH i2c: E2 [19:21:45]MH_I2C_Read... [19:21:45]Read from MH i2c: E2 0E 00 [19:21:45]MH_I2C_Read... [19:21:45]Read from MH i2c: E2 0E 00 C9 00 00 09 00 01 17 88 19 66 00 00 00 00 90 00 70 [19:21:45]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [19:21:45]wFMCommunicate OK [19:21:45]SAM_PROTO_GetShiftState done [19:21:45]FM_GetShiftState done [19:21:45]req_shift_opened done [19:21:45]requested_item shift.open_date is exist - process it [19:21:45]req_shift_open_date [19:21:45]req_shift_open_date done [19:21:45]produce_requested_data done [19:21:45]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28727,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271} [19:21:45]process_action_free close_receipt [19:21:45]json_value_free [19:21:45]json_value_free done [19:21:45]process_json_proto returns [19:21:45]Send response to host [19:21:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28727,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271}}} [19:21:45]free response buf [19:21:45]execute_script done [19:21:45]execute_script returns [19:21:45]free content buf [19:21:45]Sock 6.Close socket [19:21:45]Sock 6.Thread stoped [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:39]OFD Sender: No OFD packet to send [19:22:44]OFD Sender: No OFD packet to send [19:22:49]OFD Sender: No OFD packet to send [19:22:49]accept exits with 9 [19:22:49]New connection [19:22:49]New thread 3066785124 created [19:22:49]Thread 3066928484 joined [19:22:49]Waiting for new connection... [19:22:49] Sock 9.Parse request [19:22:49]Sock 9.Check first char [19:22:49]Sock 9.First char is OK [19:22:49]request: POST /json_proto HTTP/1.0 [19:22:49]Method: POST [19:22:49]URL: /json_proto [19:22:49]Method is POST - this is cgi request [19:22:49]url: /json_proto [19:22:49]query_string will be loaded in cgi processing [19:22:49]execute_cgi json_proto POST (null) [19:22:49]execute_cgi path=json_proto method=POST [19:22:49]POST find Content-Length [19:22:49]Host: 172.17.33.3:8080 [19:22:49]Content-Length: 640 [19:22:49]Content-Type: application/json [19:22:49] [19:22:49]POST finish read [19:22:49]Found Content-Length = 640 [19:22:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347063", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 10.000, "sum" : 643.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 643.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:22:49]execute_script... [19:22:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347063", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 10.000, "sum" : 643.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 643.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:22:49]POST & json_proto [19:22:49]process_json_proto [19:22:49]json parsed OK: [19:22:49]protocol is kg_v1.0 [19:22:49]action value=close_receipt [19:22:49]process_action close_receipt [19:22:49]cmd_close_receipt [19:22:49]MH_GetDate [19:22:49]Write to MH i2c: F0 00 00 CA 00 B9 [19:22:49]Write i2c OK [19:22:49]MH_I2C_Read... [19:22:49]Read from MH i2c: F0 [19:22:49]MH_I2C_Read... [19:22:49]Read from MH i2c: F0 09 00 [19:22:49]MH_I2C_Read... [19:22:49]Read from MH i2c: F0 09 00 CA 00 00 0A 8A 19 66 23 5B 8F 65 47 [19:22:49]GetLastDocTimeStamp 1712949702 [19:22:49]current date 1712949770 [19:22:49]FM_GetShiftState [19:22:49]SAM_PROTO_GetShiftState [19:22:49]wFMCommunicate request_size=4 [19:22:49]MH_SAM_APDU [19:22:49]CAPDU: 80 13 01 00 [19:22:49]Write to MH i2c: E2 08 00 CB 00 80 13 01 00 00 00 00 00 48 [19:22:49]Write i2c OK [19:22:49]MH_I2C_Read... [19:22:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:22:49]Read from MH i2c: E2 [19:22:49]MH_I2C_Read... [19:22:49]Read from MH i2c: E2 0E 00 [19:22:49]MH_I2C_Read... [19:22:49]Read from MH i2c: E2 0E 00 CB 00 00 09 00 01 17 88 19 66 00 00 00 00 90 00 72 [19:22:49]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [19:22:49]wFMCommunicate OK [19:22:49]SAM_PROTO_GetShiftState done [19:22:49]FM_GetShiftState done [19:22:49]opened in 1712949271 [19:22:49]opened+sec_in_day 1713035671 [19:22:49]quantity*price = 64300 [19:22:49]sum+1 = 64301 [19:22:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 643.00 НСП 1% : 5.69 НДС 12% : 68.28 Наличными: 643.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 2 12.04.2024 19:22 Смена: 114 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28728 ФПД: 172510823726235 1/tax-web-control/client/api/v1/ticket?date=20240412T192250&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28728&fm=172510823726235&tin=02508201610067®Number=0000138879044617&sum=64300 [19:22:50]StoreToDocumentArchive [19:22:50]shift 114 fd 28728 [19:22:50]save to /storage/0114/doc_00028728 [19:22:50]save last doc name /storage/0114/doc_00028728 to /storage/kkm_last_doc_name [19:22:50]save OK [19:22:50]Clear old archive folders... [19:22:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:22:50]tlvbuf is 011A49D0 [19:22:50]SAM_PROTO_ClearQueue [19:22:50]wFMCommunicate request_size=4 [19:22:50]MH_SAM_APDU [19:22:50]CAPDU: 80 09 00 00 [19:22:50]Write to MH i2c: E2 08 00 D8 00 80 09 00 00 00 00 00 00 4A [19:22:50]Write i2c OK [19:22:50]MH_I2C_Read... [19:22:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:22:50]Read from MH i2c: E2 [19:22:50]MH_I2C_Read... [19:22:50]Read from MH i2c: E2 03 00 [19:22:50]MH_I2C_Read... [19:22:50]Read from MH i2c: E2 03 00 D8 00 00 90 00 4C [19:22:50]RAPDU: 90 00 [19:22:50]wFMCommunicate OK [19:22:50]SAM_PROTO_ClearQueue done [19:22:50]KKMCreateOFDPacket [19:22:50]OFDProtocolAddRootSTLVToBuf [19:22:50]FM_MakeSignedData [19:22:50]FM_MakeSignedData [19:22:50]SAM_PROTO_SignData [19:22:50]wFMCommunicate request_size=4 [19:22:50]MH_SAM_APDU [19:22:50]CAPDU: 80 0D 01 02 [19:22:50]Write to MH i2c: E2 08 00 D9 00 80 0D 01 02 00 00 00 00 52 [19:22:50]Write i2c OK [19:22:50]MH_I2C_Read... [19:22:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:22:50]Read from MH i2c: E2 [19:22:50]MH_I2C_Read... [19:22:50]Read from MH i2c: E2 03 00 [19:22:50]MH_I2C_Read... [19:22:50]Read from MH i2c: E2 03 00 D9 00 00 90 00 4D [19:22:50]RAPDU: 90 00 [19:22:50]wFMCommunicate OK [19:22:50]wFMCommunicate request_size=255 [19:22:50]MH_SAM_APDU [19:22:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 2C FB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C FB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 1A 00 00 00 00 07 04 06 00 2C FB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 0A 8A 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 38 70 00 00 35 04 06 00 9C [19:22:50]Write to MH i2c: E2 02 01 DA 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 2C FB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C FB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 1A 00 00 00 00 07 04 06 00 2C FB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 0A 8A 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 38 70 00 00 35 04 06 00 9C 00 00 28 [19:22:50]Write i2c OK [19:22:50]MH_I2C_Read... [19:22:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:22:50]Read from MH i2c: E2 [19:22:50]MH_I2C_Read... [19:22:50]Read from MH i2c: E2 03 00 [19:22:50]MH_I2C_Read... [19:22:50]Read from MH i2c: E2 03 00 DA 00 00 90 00 4E [19:22:50]RAPDU: 90 00 [19:22:50]wFMCommunicate OK [19:22:50]wFMCommunicate request_size=10 [19:22:50]MH_SAM_APDU [19:22:50]CAPDU: 80 0D 02 02 05 E5 CE 5E 3C 9B [19:22:50]Write to MH i2c: E2 0D 00 DB 00 80 0D 02 02 05 00 E5 CE 5E 3C 9B 00 00 47 [19:22:50]Write i2c OK [19:22:50]MH_I2C_Read... [19:22:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:22:50]Read from MH i2c: E2 [19:22:50]MH_I2C_Read... [19:22:50]Read from MH i2c: E2 03 00 [19:22:50]MH_I2C_Read... [19:22:50]Read from MH i2c: E2 03 00 DB 00 00 90 00 4F [19:22:50]RAPDU: 90 00 [19:22:50]wFMCommunicate OK [19:22:50]wFMCommunicate request_size=4 [19:22:50]MH_SAM_APDU [19:22:50]CAPDU: 80 0D 03 02 [19:22:50]Write to MH i2c: E2 08 00 DC 00 80 0D 03 02 00 00 00 00 57 [19:22:50]Write i2c OK [19:22:50]MH_I2C_Read... [19:22:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:22:50]Read from MH i2c: E2 [19:22:50]MH_I2C_Read... [19:22:50]Read from MH i2c: E2 0B 00 [19:22:50]MH_I2C_Read... [19:22:50]Read from MH i2c: E2 0B 00 DC 00 00 A4 03 D6 02 A9 DF CF D9 90 00 07 [19:22:50]RAPDU: A4 03 D6 02 A9 DF CF D9 90 00 [19:22:50]wFMCommunicate OK [19:22:50]SAM_PROTO_SignData done [19:22:50]FM_MakeSignedData done [19:22:50]CreateOFDProtocolMessage [19:22:50]wFMCommunicate request_size=4 [19:22:50]MH_SAM_APDU [19:22:50]CAPDU: 80 11 00 00 [19:22:50]Write to MH i2c: E2 08 00 DD 00 80 11 00 00 00 00 00 00 57 [19:22:50]Write i2c OK [19:22:50]MH_I2C_Read... [19:22:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:22:50]Read from MH i2c: E2 [19:22:50]MH_I2C_Read... [19:22:50]Read from MH i2c: E2 17 00 [19:22:50]MH_I2C_Read... [19:22:50]Read from MH i2c: E2 17 00 DD 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 A6 [19:22:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:22:50]wFMCommunicate OK [19:22:50]CreateOFDProtocolMessage done [19:22:50]OFDSenderStorePacket 28728 [19:22:50]StoreOFDPacket docnum=28728 [19:22:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 05 6F 07 01 B1 2E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 2C FB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C FB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 1A 00 00 00 00 07 04 06 00 2C FB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 0A 8A 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 38 70 00 00 35 04 06 00 9C E5 CE 5E 3C 9B A4 03 D6 02 A9 DF CF D9 [19:22:50]CheckFolder [19:22:50]dirname=/storage/ofd_packets [19:22:50]CheckFolder done [19:22:50]ProducePacketName [19:22:50]name=ofd_packets/00028728 [19:22:50]NVStorageSaveData ofd_packets/00028728 [19:22:50]File name is /storage/ofd_packets/00028728 [19:22:50]Write 301 bytes [19:22:50]NVStorageSaveData done [19:22:50]OFDSenderStorePacket done [19:22:50]KKMCreateOFDPacket done [19:22:50]NVStorageSaveData kkm_last_timestamp [19:22:50]File name is /storage/kkm_last_timestamp [19:22:50]Write 4 bytes [19:22:50]NVStorageSaveData done [19:22:50]ExternCall_PrintAddStr [19:22:50]wPrintStart [19:22:50]Write to MH i2c: 01 00 00 DE 00 DE [19:22:50]Write i2c OK [19:22:50]MH_I2C_Read... [19:22:50]Read from MH i2c: 01 [19:22:50]MH_I2C_Read... [19:22:50]Read from MH i2c: 01 07 00 [19:22:50]MH_I2C_Read... [19:22:50]Read from MH i2c: 01 07 00 DE 00 00 00 00 00 00 FF 0F F3 [19:22:50]RasterBufferAndPrint [19:22:50]line Счет N : (1)347063 [19:22:50]line ИНН: 02508201610067 [19:22:50]line Контрольно-Кассовый Чек [19:22:50]line ПРОДАЖА [19:22:50]line ТРК (МРК, ГНК) : 13 [19:22:50]line Товар: 2710124130 [19:22:50]line Аи-92-К-5 [19:22:50]line 10.000 * 64.30 [19:22:50]line = 643.00 [19:22:50]line НДС 12% НСП 1% [19:22:50]line > о реализуемом товаре [19:22:50]line ИТОГО: 643.00 [19:22:50]line НСП 1% : 5.69 [19:22:50]line НДС 12% : 68.28 [19:22:50]line Наличными: 643.00 [19:22:50]line Безнал.: 0.00 [19:22:50]line Место: АЗС № 108 "Партнер Нефть" [19:22:50]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [19:22:50]line СНО: Общий режим [19:22:50]line Чек 2 12.04.2024 19:22 [19:22:50]line Смена: 114 ФФД: 1.0 [19:22:50]line ЗНМ: 0300000027 [19:22:50]line РНМ: 0000138879044617 [19:22:50]line Версия ККМ: 001 [19:22:50]line ФМ: 0000000000963154 [19:22:50]line ФД: 28728 [19:22:51]line ФПД: 172510823726235 [19:22:51]line 1/tax-web-control/client/api/v1/ticket?date=20240412T192250&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28728&fm=172510823726235&tin=02508201610067®Number=0000138879044617&sum=64300 [19:22:51]OFD Sender: Processing packet 28728 [packets to send 8, broken 7] [19:22:51]ProducePacketName [19:22:51]name=ofd_packets/00028728 [19:22:51]OFD Sender: To server: pG, [19:22:51]CommunicateWithHost lk.salyk.kg:30040 [19:22:51]ConnectInit lk.salyk.kg [19:22:51]written 0, free lines is 4095 [19:22:51]Connected sock=10 [19:22:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 05 6F 07 01 B1 2E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 2C FB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C FB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 1A 00 00 00 00 07 04 06 00 2C FB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 0A 8A 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 38 70 00 00 35 04 06 00 9C E5 CE 5E 3C 9B A4 03 D6 02 A9 DF CF D9 [19:22:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 A8 07 47 00 5C 07 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 38 70 00 00 F4 03 04 00 B3 34 19 66 B6 04 01 00 00 6B 7C 9E FE C1 C8 4F D3 [19:22:51]CommunicateWithHost err = 0 [19:22:51]CheckOFDResponse [19:22:51]1017 (14) - 77093643461234 [19:22:51]1041 (16) - 0000000000963154 [19:22:51]1040 (4) - 28728 [19:22:51]1012 (4) - 12.04.2024 13:18 [19:22:51]1206 (1) - 0 [19:22:51]OFD Sender: Remove packet 28728 [19:22:51]ProducePacketName [19:22:51]name=ofd_packets/00028728 [19:22:51]NVStorageDeleteData [19:22:51]Write to MH i2c: 01 00 00 05 01 06 [19:22:51]Write i2c OK [19:22:51]MH_I2C_Read... [19:22:51]Read from MH i2c: 01 [19:22:51]MH_I2C_Read... [19:22:51]Read from MH i2c: 01 07 00 [19:22:51]MH_I2C_Read... [19:22:51]Read from MH i2c: 01 07 00 05 01 00 00 00 00 00 F4 0C 0D [19:22:51]RasterBufferAndPrint [19:22:51]line [19:22:51]line [19:22:51]line [19:22:51]line [19:22:51]line [19:22:51]written 0, free lines is 3321 [19:22:51]MH_Cut [19:22:51]Write to MH i2c: D1 01 00 0C 01 01 DF [19:22:51]Write i2c OK [19:22:51]MH_I2C_Read... [19:22:51]Read from MH i2c: D1 [19:22:51]MH_I2C_Read... [19:22:51]Read from MH i2c: D1 01 00 [19:22:51]MH_I2C_Read... [19:22:51]Read from MH i2c: D1 01 00 0C 01 00 DE [19:22:51]Write to MH i2c: 01 00 00 0D 01 0E [19:22:51]Write i2c OK [19:22:51]MH_I2C_Read... [19:22:51]OFD Sender: No OFD packet to send [19:22:52]*** Cut start [19:22:52]*** Partial cut [19:22:52]*** CUTSNS_PIN = 1 [19:22:52]*** CUTSNS_PIN = 0 [19:22:52]*** Brake cut motor [19:22:53]Read from MH i2c: 01 [19:22:53]MH_I2C_Read... [19:22:53]*** Stop cut motor [19:22:53]*** Cut end [19:22:53]Read from MH i2c: 01 07 00 [19:22:53]MH_I2C_Read... [19:22:53]Read from MH i2c: 01 07 00 0D 01 00 00 00 00 00 FF 0F 23 [19:22:53]process_action close_receipt done [19:22:53]requested_data is exist [19:22:53]produce_requested_data [19:22:53]requested_item fm.sn is exist - process it [19:22:53]wFMCommunicate request_size=4 [19:22:53]MH_SAM_APDU [19:22:53]CAPDU: 80 11 00 00 [19:22:53]Write to MH i2c: E2 08 00 0E 01 80 11 00 00 00 00 00 00 89 [19:22:53]Write i2c OK [19:22:53]MH_I2C_Read... [19:22:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:22:53]Read from MH i2c: E2 [19:22:53]MH_I2C_Read... [19:22:53]Read from MH i2c: E2 17 00 [19:22:53]MH_I2C_Read... [19:22:53]Read from MH i2c: E2 17 00 0E 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D8 [19:22:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:22:53]wFMCommunicate OK [19:22:53]requested_item fd.num is exist - process it [19:22:53]SAM_PROTO_GetFieldsCounters [19:22:53]wFMCommunicate request_size=4 [19:22:53]MH_SAM_APDU [19:22:53]CAPDU: 80 13 00 00 [19:22:53]Write to MH i2c: E2 08 00 0F 01 80 13 00 00 00 00 00 00 8C [19:22:53]Write i2c OK [19:22:53]MH_I2C_Read... [19:22:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:22:53]Read from MH i2c: E2 [19:22:53]MH_I2C_Read... [19:22:53]Read from MH i2c: E2 62 00 [19:22:53]MH_I2C_Read... [19:22:53]Read from MH i2c: E2 62 00 0F 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 38 70 00 00 0E 04 04 00 72 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 EA [19:22:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 38 70 00 00 0E 04 04 00 72 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 [19:22:53]wFMCommunicate OK [19:22:53]SAM_PROTO_GetFieldsCounters done [19:22:53]requested_item shift.num is exist - process it [19:22:53]requested_item shift.opened is exist - process it [19:22:53]req_shift_opened [19:22:53]FM_GetShiftState [19:22:53]SAM_PROTO_GetShiftState [19:22:53]wFMCommunicate request_size=4 [19:22:53]MH_SAM_APDU [19:22:53]CAPDU: 80 13 01 00 [19:22:53]Write to MH i2c: E2 08 00 10 01 80 13 01 00 00 00 00 00 8E [19:22:53]Write i2c OK [19:22:53]MH_I2C_Read... [19:22:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:22:53]Read from MH i2c: E2 [19:22:53]MH_I2C_Read... [19:22:53]Read from MH i2c: E2 0E 00 [19:22:53]MH_I2C_Read... [19:22:53]Read from MH i2c: E2 0E 00 10 01 00 09 00 01 17 88 19 66 00 00 00 00 90 00 B8 [19:22:53]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [19:22:53]wFMCommunicate OK [19:22:53]SAM_PROTO_GetShiftState done [19:22:53]FM_GetShiftState done [19:22:53]req_shift_opened done [19:22:53]requested_item shift.open_date is exist - process it [19:22:53]req_shift_open_date [19:22:53]req_shift_open_date done [19:22:53]produce_requested_data done [19:22:53]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28728,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271} [19:22:53]process_action_free close_receipt [19:22:53]json_value_free [19:22:53]json_value_free done [19:22:53]process_json_proto returns [19:22:53]Send response to host [19:22:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28728,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271}}} [19:22:53]free response buf [19:22:53]execute_script done [19:22:53]execute_script returns [19:22:53]free content buf [19:22:53]Sock 9.Close socket [19:22:53]Sock 9.Thread stoped [19:22:56]OFD Sender: No OFD packet to send [19:23:01]OFD Sender: No OFD packet to send [19:23:07]OFD Sender: No OFD packet to send [19:23:12]OFD Sender: No OFD packet to send [19:23:14]accept exits with 7 [19:23:14]New connection [19:23:14]New thread 3066928484 created [19:23:14]Thread 3066785124 joined [19:23:14]Waiting for new connection... [19:23:14] Sock 7.Parse request [19:23:14]Sock 7.Check first char [19:23:14]Sock 7.First char is OK [19:23:14]request: POST /json_proto HTTP/1.0 [19:23:14]Method: POST [19:23:14]URL: /json_proto [19:23:14]Method is POST - this is cgi request [19:23:14]url: /json_proto [19:23:14]query_string will be loaded in cgi processing [19:23:14]execute_cgi json_proto POST (null) [19:23:14]execute_cgi path=json_proto method=POST [19:23:14]POST find Content-Length [19:23:14]Host: 172.17.33.3:8080 [19:23:14]Content-Length: 682 [19:23:14]Content-Type: application/json [19:23:14] [19:23:14]POST finish read [19:23:14]Found Content-Length = 682 [19:23:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347064", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.50, "quantity" : 22.070, "sum" : 1600.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1600.00, "total" : 1600.00, "payments": [ { "type": 0, "sum" : 1600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:23:14]execute_script... [19:23: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)347064", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.50, "quantity" : 22.070, "sum" : 1600.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1600.00, "total" : 1600.00, "payments": [ { "type": 0, "sum" : 1600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:23:14]POST & json_proto [19:23:14]process_json_proto [19:23:14]json parsed OK: [19:23:14]protocol is kg_v1.0 [19:23:14]action value=close_receipt [19:23:14]process_action close_receipt [19:23:14]cmd_close_receipt [19:23:14]MH_GetDate [19:23:14]Write to MH i2c: F0 00 00 11 01 01 [19:23:14]Write i2c OK [19:23:14]MH_I2C_Read... [19:23:14]Read from MH i2c: F0 [19:23:14]MH_I2C_Read... [19:23:14]Read from MH i2c: F0 09 00 [19:23:14]MH_I2C_Read... [19:23:14]Read from MH i2c: F0 09 00 11 01 00 23 8A 19 66 23 5B 8F 65 A8 [19:23:14]GetLastDocTimeStamp 1712949770 [19:23:14]current date 1712949795 [19:23:14]FM_GetShiftState [19:23:14]SAM_PROTO_GetShiftState [19:23:14]wFMCommunicate request_size=4 [19:23:14]MH_SAM_APDU [19:23:14]CAPDU: 80 13 01 00 [19:23:14]Write to MH i2c: E2 08 00 12 01 80 13 01 00 00 00 00 00 90 [19:23:14]Write i2c OK [19:23:14]MH_I2C_Read... [19:23:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:23:14]Read from MH i2c: E2 [19:23:14]MH_I2C_Read... [19:23:14]Read from MH i2c: E2 0E 00 [19:23:14]MH_I2C_Read... [19:23:14]Read from MH i2c: E2 0E 00 12 01 00 09 00 01 17 88 19 66 00 00 00 00 90 00 BA [19:23:14]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [19:23:14]wFMCommunicate OK [19:23:14]SAM_PROTO_GetShiftState done [19:23:14]FM_GetShiftState done [19:23:14]opened in 1712949271 [19:23:14]opened+sec_in_day 1713035671 [19:23:14]quantity*price = 160007 [19:23:14]sum+1 = 160009 [19:23:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 1600.00 Внесено: 1600.00 СДАЧА: 0.00 НСП 1% : 14.16 НДС 12% : 169.92 Наличными: 1600.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 3 12.04.2024 19:23 Смена: 114 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28729 ФПД: 241289154498682 1/tax-web-control/client/api/v1/ticket?date=20240412T192315&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28729&fm=241289154498682&tin=02508201610067®Number=0000138879044617&sum=160000 [19:23:15]StoreToDocumentArchive [19:23:15]shift 114 fd 28729 [19:23:15]save to /storage/0114/doc_00028729 [19:23:15]save last doc name /storage/0114/doc_00028729 to /storage/kkm_last_doc_name [19:23:15]save OK [19:23:15]Clear old archive folders... [19:23:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:23:15]tlvbuf is 0121AC60 [19:23:15]SAM_PROTO_ClearQueue [19:23:15]wFMCommunicate request_size=4 [19:23:15]MH_SAM_APDU [19:23:15]CAPDU: 80 09 00 00 [19:23:15]Write to MH i2c: E2 08 00 1F 01 80 09 00 00 00 00 00 00 92 [19:23:15]Write i2c OK [19:23:15]MH_I2C_Read... [19:23:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:23:15]Read from MH i2c: E2 [19:23:15]MH_I2C_Read... [19:23:15]Read from MH i2c: E2 03 00 [19:23:15]MH_I2C_Read... [19:23:15]Read from MH i2c: E2 03 00 1F 01 00 90 00 94 [19:23:15]RAPDU: 90 00 [19:23:15]wFMCommunicate OK [19:23:15]SAM_PROTO_ClearQueue done [19:23:15]KKMCreateOFDPacket [19:23:15]OFDProtocolAddRootSTLVToBuf [19:23:15]FM_MakeSignedData [19:23:15]FM_MakeSignedData [19:23:15]SAM_PROTO_SignData [19:23:15]wFMCommunicate request_size=4 [19:23:15]MH_SAM_APDU [19:23:15]CAPDU: 80 0D 01 02 [19:23:15]Write to MH i2c: E2 08 00 20 01 80 0D 01 02 00 00 00 00 9A [19:23:15]Write i2c OK [19:23:15]MH_I2C_Read... [19:23:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:23:15]Read from MH i2c: E2 [19:23:15]MH_I2C_Read... [19:23:15]Read from MH i2c: E2 03 00 [19:23:15]MH_I2C_Read... [19:23:15]Read from MH i2c: E2 03 00 20 01 00 90 00 95 [19:23:15]RAPDU: 90 00 [19:23:15]wFMCommunicate OK [19:23:15]wFMCommunicate request_size=255 [19:23:15]MH_SAM_APDU [19:23:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 56 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 08 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 23 8A 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 39 70 00 00 35 04 06 00 DB [19:23:15]Write to MH i2c: E2 02 01 21 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 56 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 08 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 23 8A 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 39 70 00 00 35 04 06 00 DB 00 00 74 [19:23:15]Write i2c OK [19:23:15]MH_I2C_Read... [19:23:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:23:15]Read from MH i2c: E2 [19:23:15]MH_I2C_Read... [19:23:15]Read from MH i2c: E2 03 00 [19:23:15]MH_I2C_Read... [19:23:15]Read from MH i2c: E2 03 00 21 01 00 90 00 96 [19:23:15]RAPDU: 90 00 [19:23:15]wFMCommunicate OK [19:23:15]wFMCommunicate request_size=10 [19:23:15]MH_SAM_APDU [19:23:15]CAPDU: 80 0D 02 02 05 73 82 57 90 7A [19:23:15]Write to MH i2c: E2 0D 00 22 01 80 0D 02 02 05 00 73 82 57 90 7A 00 00 FD [19:23:15]Write i2c OK [19:23:15]MH_I2C_Read... [19:23:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:23:15]Read from MH i2c: E2 [19:23:15]MH_I2C_Read... [19:23:15]Read from MH i2c: E2 03 00 [19:23:15]MH_I2C_Read... [19:23:15]Read from MH i2c: E2 03 00 22 01 00 90 00 97 [19:23:15]RAPDU: 90 00 [19:23:15]wFMCommunicate OK [19:23:15]wFMCommunicate request_size=4 [19:23:15]MH_SAM_APDU [19:23:15]CAPDU: 80 0D 03 02 [19:23:15]Write to MH i2c: E2 08 00 23 01 80 0D 03 02 00 00 00 00 9F [19:23:15]Write i2c OK [19:23:15]MH_I2C_Read... [19:23:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:23:15]Read from MH i2c: E2 [19:23:15]MH_I2C_Read... [19:23:15]Read from MH i2c: E2 0B 00 [19:23:15]MH_I2C_Read... [19:23:15]Read from MH i2c: E2 0B 00 23 01 00 45 39 0A 4F 0D 2A 3C 0E 90 00 F8 [19:23:15]RAPDU: 45 39 0A 4F 0D 2A 3C 0E 90 00 [19:23:15]wFMCommunicate OK [19:23:15]SAM_PROTO_SignData done [19:23:15]FM_MakeSignedData done [19:23:15]CreateOFDProtocolMessage [19:23:15]wFMCommunicate request_size=4 [19:23:15]MH_SAM_APDU [19:23:15]CAPDU: 80 11 00 00 [19:23:15]Write to MH i2c: E2 08 00 24 01 80 11 00 00 00 00 00 00 9F [19:23:15]Write i2c OK [19:23:15]MH_I2C_Read... [19:23:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:23:15]Read from MH i2c: E2 [19:23:15]MH_I2C_Read... [19:23:15]Read from MH i2c: E2 17 00 [19:23:15]MH_I2C_Read... [19:23:15]Read from MH i2c: E2 17 00 24 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 EE [19:23:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:23:15]wFMCommunicate OK [19:23:15]CreateOFDProtocolMessage done [19:23:15]OFDSenderStorePacket 28729 [19:23:15]StoreOFDPacket docnum=28729 [19:23:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 00 7E 07 01 EB 78 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 56 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 08 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 23 8A 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 39 70 00 00 35 04 06 00 DB 73 82 57 90 7A 45 39 0A 4F 0D 2A 3C 0E [19:23:15]CheckFolder [19:23:15]dirname=/storage/ofd_packets [19:23:15]CheckFolder done [19:23:15]ProducePacketName [19:23:15]name=ofd_packets/00028729 [19:23:15]NVStorageSaveData ofd_packets/00028729 [19:23:15]File name is /storage/ofd_packets/00028729 [19:23:15]Write 301 bytes [19:23:15]NVStorageSaveData done [19:23:15]OFDSenderStorePacket done [19:23:15]KKMCreateOFDPacket done [19:23:15]NVStorageSaveData kkm_last_timestamp [19:23:15]File name is /storage/kkm_last_timestamp [19:23:15]Write 4 bytes [19:23:15]NVStorageSaveData done [19:23:15]ExternCall_PrintAddStr [19:23:15]wPrintStart [19:23:15]Write to MH i2c: 01 00 00 25 01 26 [19:23:15]Write i2c OK [19:23:15]MH_I2C_Read... [19:23:15]Read from MH i2c: 01 [19:23:15]MH_I2C_Read... [19:23:15]Read from MH i2c: 01 07 00 [19:23:15]MH_I2C_Read... [19:23:15]Read from MH i2c: 01 07 00 25 01 00 00 00 00 00 FF 0F 3B [19:23:15]RasterBufferAndPrint [19:23:15]line Счет N : (1)347064 [19:23:15]line ИНН: 02508201610067 [19:23:15]line Контрольно-Кассовый Чек [19:23:15]line ПРОДАЖА [19:23:15]line ТРК (МРК, ГНК) : 33 [19:23:15]line Товар: 2710124500 [19:23:15]line Аи-95-К-5 [19:23:15]line 22.070 * 72.50 [19:23:15]line = 1600.08 [19:23:15]line НДС 12% НСП 1% [19:23:15]line > о реализуемом товаре [19:23:15]line ОКРУГЛЕНИЕ: -0.08 [19:23:15]line ИТОГО: 1600.00 [19:23:15]line Внесено: 1600.00 [19:23:15]line СДАЧА: 0.00 [19:23:15]line НСП 1% : 14.16 [19:23:15]line НДС 12% : 169.92 [19:23:15]line Наличными: 1600.00 [19:23:15]line Безнал.: 0.00 [19:23:15]line Место: АЗС № 108 "Партнер Нефть" [19:23:15]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [19:23:15]line СНО: Общий режим [19:23:15]line Чек 3 12.04.2024 19:23 [19:23:15]line Смена: 114 ФФД: 1.0 [19:23:15]line ЗНМ: 0300000027 [19:23:15]line РНМ: 0000138879044617 [19:23:15]line Версия ККМ: 001 [19:23:15]line ФМ: 0000000000963154 [19:23:15]line ФД: 28729 [19:23:15]line ФПД: 241289154498682 [19:23:15]line 1/tax-web-control/client/api/v1/ticket?date=20240412T192315&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28729&fm=241289154498682&tin=02508201610067®Number=0000138879044617&sum=160000 [19:23:16]OFD Sender: Processing packet 28729 [packets to send 8, broken 7] [19:23:16]ProducePacketName [19:23:16]name=ofd_packets/00028729 [19:23:16]OFD Sender: To server: pG, [19:23:16]CommunicateWithHost lk.salyk.kg:30040 [19:23:16]ConnectInit lk.salyk.kg [19:23:16]written 0, free lines is 4095 [19:23:16]Connected sock=11 [19:23:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 00 7E 07 01 EB 78 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 56 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 08 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 23 8A 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 39 70 00 00 35 04 06 00 DB 73 82 57 90 7A 45 39 0A 4F 0D 2A 3C 0E [19:23:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 C6 3A 47 00 93 31 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 39 70 00 00 F4 03 04 00 CC 34 19 66 B6 04 01 00 00 DA EF 20 0A BB 20 A4 6D [19:23:16]CommunicateWithHost err = 0 [19:23:16]CheckOFDResponse [19:23:16]1017 (14) - 77093643461234 [19:23:16]1041 (16) - 0000000000963154 [19:23:16]1040 (4) - 28729 [19:23:16]1012 (4) - 12.04.2024 13:19 [19:23:16]1206 (1) - 0 [19:23:16]OFD Sender: Remove packet 28729 [19:23:16]ProducePacketName [19:23:16]name=ofd_packets/00028729 [19:23:16]NVStorageDeleteData [19:23:16]Write to MH i2c: 01 00 00 4F 01 50 [19:23:16]Write i2c OK [19:23:16]MH_I2C_Read... [19:23:16]Read from MH i2c: 01 [19:23:16]MH_I2C_Read... [19:23:16]Read from MH i2c: 01 07 00 [19:23:16]MH_I2C_Read... [19:23:16]Read from MH i2c: 01 07 00 4F 01 00 00 00 00 00 D3 0C 36 [19:23:16]RasterBufferAndPrint [19:23:16]line [19:23:16]line [19:23:16]line [19:23:16]line [19:23:16]line [19:23:16]written 0, free lines is 3287 [19:23:16]MH_Cut [19:23:16]Write to MH i2c: D1 01 00 56 01 01 29 [19:23:16]Write i2c OK [19:23:16]MH_I2C_Read... [19:23:16]Read from MH i2c: D1 [19:23:16]MH_I2C_Read... [19:23:16]Read from MH i2c: D1 01 00 [19:23:16]MH_I2C_Read... [19:23:16]Read from MH i2c: D1 01 00 56 01 00 28 [19:23:16]Write to MH i2c: 01 00 00 57 01 58 [19:23:16]Write i2c OK [19:23:16]MH_I2C_Read... [19:23:16]OFD Sender: No OFD packet to send [19:23:17]*** Cut start [19:23:17]*** Partial cut [19:23:17]*** CUTSNS_PIN = 1 [19:23:17]*** CUTSNS_PIN = 0 [19:23:17]*** Brake cut motor [19:23:18]Read from MH i2c: 01 [19:23:18]MH_I2C_Read... [19:23:18]*** Stop cut motor [19:23:18]*** Cut end [19:23:18]Read from MH i2c: 01 07 00 [19:23:18]MH_I2C_Read... [19:23:18]Read from MH i2c: 01 07 00 57 01 00 00 00 00 00 FF 0F 6D [19:23:18]process_action close_receipt done [19:23:18]requested_data is exist [19:23:18]produce_requested_data [19:23:18]requested_item fm.sn is exist - process it [19:23:18]wFMCommunicate request_size=4 [19:23:18]MH_SAM_APDU [19:23:18]CAPDU: 80 11 00 00 [19:23:18]Write to MH i2c: E2 08 00 58 01 80 11 00 00 00 00 00 00 D3 [19:23:18]Write i2c OK [19:23:18]MH_I2C_Read... [19:23:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:23:18]Read from MH i2c: E2 [19:23:18]MH_I2C_Read... [19:23:18]Read from MH i2c: E2 17 00 [19:23:18]MH_I2C_Read... [19:23:18]Read from MH i2c: E2 17 00 58 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 22 [19:23:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:23:18]wFMCommunicate OK [19:23:18]requested_item fd.num is exist - process it [19:23:18]SAM_PROTO_GetFieldsCounters [19:23:18]wFMCommunicate request_size=4 [19:23:18]MH_SAM_APDU [19:23:18]CAPDU: 80 13 00 00 [19:23:18]Write to MH i2c: E2 08 00 59 01 80 13 00 00 00 00 00 00 D6 [19:23:18]Write i2c OK [19:23:18]MH_I2C_Read... [19:23:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:23:18]Read from MH i2c: E2 [19:23:18]MH_I2C_Read... [19:23:18]Read from MH i2c: E2 62 00 [19:23:18]MH_I2C_Read... [19:23:18]Read from MH i2c: E2 62 00 59 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 39 70 00 00 0E 04 04 00 72 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 38 [19:23:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 39 70 00 00 0E 04 04 00 72 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 [19:23:18]wFMCommunicate OK [19:23:18]SAM_PROTO_GetFieldsCounters done [19:23:18]requested_item shift.num is exist - process it [19:23:18]requested_item shift.opened is exist - process it [19:23:18]req_shift_opened [19:23:18]FM_GetShiftState [19:23:18]SAM_PROTO_GetShiftState [19:23:18]wFMCommunicate request_size=4 [19:23:18]MH_SAM_APDU [19:23:18]CAPDU: 80 13 01 00 [19:23:18]Write to MH i2c: E2 08 00 5A 01 80 13 01 00 00 00 00 00 D8 [19:23:18]Write i2c OK [19:23:18]MH_I2C_Read... [19:23:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:23:18]Read from MH i2c: E2 [19:23:18]MH_I2C_Read... [19:23:18]Read from MH i2c: E2 0E 00 [19:23:18]MH_I2C_Read... [19:23:18]Read from MH i2c: E2 0E 00 5A 01 00 09 00 01 17 88 19 66 00 00 00 00 90 00 02 [19:23:18]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [19:23:18]wFMCommunicate OK [19:23:18]SAM_PROTO_GetShiftState done [19:23:18]FM_GetShiftState done [19:23:18]req_shift_opened done [19:23:18]requested_item shift.open_date is exist - process it [19:23:18]req_shift_open_date [19:23:18]req_shift_open_date done [19:23:18]produce_requested_data done [19:23:18]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28729,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271} [19:23:18]process_action_free close_receipt [19:23:18]json_value_free [19:23:18]json_value_free done [19:23:18]process_json_proto returns [19:23:18]Send response to host [19:23:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28729,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271}}} [19:23:18]free response buf [19:23:18]execute_script done [19:23:18]execute_script returns [19:23:18]free content buf [19:23:18]Sock 7.Close socket [19:23:18]Sock 7.Thread stoped [19:23:21]OFD Sender: No OFD packet to send [19:23:26]OFD Sender: No OFD packet to send [19:23:31]OFD Sender: No OFD packet to send [19:23:36]OFD Sender: No OFD packet to send [19:23:41]OFD Sender: No OFD packet to send [19:23:46]OFD Sender: No OFD packet to send [19:23:51]OFD Sender: No OFD packet to send [19:23:56]OFD Sender: No OFD packet to send [19:24:02]OFD Sender: No OFD packet to send [19:24:07]OFD Sender: No OFD packet to send [19:24:12]OFD Sender: No OFD packet to send [19:24:17]OFD Sender: No OFD packet to send [19:24:22]OFD Sender: No OFD packet to send [19:24:27]OFD Sender: No OFD packet to send [19:24:32]OFD Sender: No OFD packet to send [19:24:37]OFD Sender: No OFD packet to send [19:24:42]OFD Sender: No OFD packet to send [19:24:47]OFD Sender: No OFD packet to send [19:24:52]OFD Sender: No OFD packet to send [19:24:57]OFD Sender: No OFD packet to send [19:24:59]accept exits with 9 [19:24:59]New connection [19:24:59]New thread 3066785124 created [19:24:59]Thread 3066928484 joined [19:24:59]Waiting for new connection... [19:24:59] Sock 9.Parse request [19:24:59]Sock 9.Check first char [19:24:59]Sock 9.First char is OK [19:24:59]request: POST /json_proto HTTP/1.0 [19:24:59]Method: POST [19:24:59]URL: /json_proto [19:24:59]Method is POST - this is cgi request [19:24:59]url: /json_proto [19:24:59]query_string will be loaded in cgi processing [19:24:59]execute_cgi json_proto POST (null) [19:24:59]execute_cgi path=json_proto method=POST [19:24:59]POST find Content-Length [19:24:59]Host: 172.17.33.3:8080 [19:24:59]Content-Length: 1195 [19:24:59]Content-Type: application/json [19:24:59] [19:24:59]POST finish read [19:24:59]Found Content-Length = 1195 [19:24:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0440\u044B\u0431\u0430\u0435\u0432 \u042D. \u000A\u0421\u0447\u0435\u0442 N : (1)347065\u000A12.04.2024 19:06\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 13\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 64.30\u000A\u0418\u0422\u041E\u0413: 1286.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A00334\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:24:59]execute_script... [19:24:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0440\u044B\u0431\u0430\u0435\u0432 \u042D. \u000A\u0421\u0447\u0435\u0442 N : (1)347065\u000A12.04.2024 19:06\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 13\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 64.30\u000A\u0418\u0422\u041E\u0413: 1286.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A00334\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:24:59]POST & json_proto [19:24:59]process_json_proto [19:24:59]json parsed OK: [19:24:59]protocol is kg_v1.0 [19:24:59]action value=print_text [19:24:59]process_action print_text [19:24:59]cmd_print_text [19:24:59]ExternCall_PrintAddStr [19:24:59]wPrintStart [19:24:59]Write to MH i2c: 01 00 00 5B 01 5C [19:24:59]Write i2c OK [19:24:59]MH_I2C_Read... [19:24:59]Read from MH i2c: 01 [19:24:59]MH_I2C_Read... [19:24:59]Read from MH i2c: 01 07 00 [19:24:59]MH_I2C_Read... [19:24:59]Read from MH i2c: 01 07 00 5B 01 00 00 00 00 00 FF 0F 71 [19:24:59]RasterBufferAndPrint [19:24:59]line *****ТОВАРНЫЙ ЧЕК***** [19:24:59]line АЗС 108 [19:24:59]line Партнер нефть [19:24:59]line 02508201610067 [19:24:59]line Кассир : Сарыбаев Э. [19:24:59]line Счет N : (1)347065 [19:24:59]line 12.04.2024 19:06 [19:24:59]line ПРОДАЖА [19:24:59]line ТРК (МРК, ГНК): 13 [19:24:59]line Вид ГСМ : 2710124130 [19:24:59]line Аи-92-К-5 [19:24:59]line 20.000 x 64.30 [19:24:59]line ИТОГ: 1286.00 [19:24:59]line Тип оплаты: Талоны: Топливная Карта [19:24:59]line 00334 [19:24:59]line ______________________ [19:24:59]line (подпись) [19:24:59]written 0, free lines is 4095 [19:24:59]Write to MH i2c: 01 00 00 6F 01 70 [19:24:59]Write i2c OK [19:24:59]MH_I2C_Read... [19:24:59]Read from MH i2c: 01 [19:24:59]MH_I2C_Read... [19:24:59]Read from MH i2c: 01 07 00 [19:24:59]MH_I2C_Read... [19:24:59]Read from MH i2c: 01 07 00 6F 01 00 00 00 00 00 12 0E 97 [19:24:59]RasterBufferAndPrint [19:24:59]line [19:24:59]line [19:24:59]line [19:24:59]line [19:24:59]line [19:24:59]written 0, free lines is 3604 [19:24:59]MH_Cut [19:24:59]Write to MH i2c: D1 01 00 76 01 01 49 [19:24:59]Write i2c OK [19:24:59]MH_I2C_Read... [19:24:59]Read from MH i2c: D1 [19:24:59]MH_I2C_Read... [19:24:59]Read from MH i2c: D1 01 00 [19:24:59]MH_I2C_Read... [19:24:59]Read from MH i2c: D1 01 00 76 01 00 48 [19:24:59]Write to MH i2c: 01 00 00 77 01 78 [19:24:59]Write i2c OK [19:24:59]MH_I2C_Read... [19:25:00]*** Cut start [19:25:00]*** Partial cut [19:25:00]*** CUTSNS_PIN = 1 [19:25:00]*** CUTSNS_PIN = 0 [19:25:00]*** Brake cut motor [19:25:00]Read from MH i2c: 01 [19:25:00]MH_I2C_Read... [19:25:00]*** Stop cut motor [19:25:00]*** Cut end [19:25:00]Read from MH i2c: 01 07 00 [19:25:00]MH_I2C_Read... [19:25:00]Read from MH i2c: 01 07 00 77 01 00 00 00 00 00 FF 0F 8D [19:25:00]process_action print_text done [19:25:00]requested_data is exist [19:25:00]produce_requested_data [19:25:00]requested_item fm.sn is exist - process it [19:25:00]wFMCommunicate request_size=4 [19:25:00]MH_SAM_APDU [19:25:00]CAPDU: 80 11 00 00 [19:25:00]Write to MH i2c: E2 08 00 78 01 80 11 00 00 00 00 00 00 F3 [19:25:00]Write i2c OK [19:25:00]MH_I2C_Read... [19:25:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:25:00]Read from MH i2c: E2 [19:25:00]MH_I2C_Read... [19:25:00]Read from MH i2c: E2 17 00 [19:25:00]MH_I2C_Read... [19:25:00]Read from MH i2c: E2 17 00 78 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 42 [19:25:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:25:00]wFMCommunicate OK [19:25:00]requested_item fd.num is exist - process it [19:25:00]SAM_PROTO_GetFieldsCounters [19:25:00]wFMCommunicate request_size=4 [19:25:00]MH_SAM_APDU [19:25:00]CAPDU: 80 13 00 00 [19:25:00]Write to MH i2c: E2 08 00 79 01 80 13 00 00 00 00 00 00 F6 [19:25:00]Write i2c OK [19:25:00]MH_I2C_Read... [19:25:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:25:00]Read from MH i2c: E2 [19:25:00]MH_I2C_Read... [19:25:00]Read from MH i2c: E2 62 00 [19:25:00]MH_I2C_Read... [19:25:00]Read from MH i2c: E2 62 00 79 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 39 70 00 00 0E 04 04 00 72 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 58 [19:25:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 39 70 00 00 0E 04 04 00 72 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 [19:25:00]wFMCommunicate OK [19:25:00]SAM_PROTO_GetFieldsCounters done [19:25:00]requested_item shift.num is exist - process it [19:25:00]requested_item shift.opened is exist - process it [19:25:00]req_shift_opened [19:25:00]FM_GetShiftState [19:25:00]SAM_PROTO_GetShiftState [19:25:00]wFMCommunicate request_size=4 [19:25:00]MH_SAM_APDU [19:25:00]CAPDU: 80 13 01 00 [19:25:00]Write to MH i2c: E2 08 00 7A 01 80 13 01 00 00 00 00 00 F8 [19:25:00]Write i2c OK [19:25:00]MH_I2C_Read... [19:25:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:25:01]Read from MH i2c: E2 [19:25:01]MH_I2C_Read... [19:25:01]Read from MH i2c: E2 0E 00 [19:25:01]MH_I2C_Read... [19:25:01]Read from MH i2c: E2 0E 00 7A 01 00 09 00 01 17 88 19 66 00 00 00 00 90 00 22 [19:25:01]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [19:25:01]wFMCommunicate OK [19:25:01]SAM_PROTO_GetShiftState done [19:25:01]FM_GetShiftState done [19:25:01]req_shift_opened done [19:25:01]requested_item shift.open_date is exist - process it [19:25:01]req_shift_open_date [19:25:01]req_shift_open_date done [19:25:01]produce_requested_data done [19:25:01]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28729,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271} [19:25:01]process_action_free print_text [19:25:01]json_value_free [19:25:01]json_value_free done [19:25:01]process_json_proto returns [19:25:01]Send response to host [19:25:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28729,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271}}} [19:25:01]free response buf [19:25:01]execute_script done [19:25:01]execute_script returns [19:25:01]free content buf [19:25:01]Sock 9.Close socket [19:25:01]Sock 9.Thread stoped [19:25:02]OFD Sender: No OFD packet to send [19:25:07]OFD Sender: No OFD packet to send [19:25:12]OFD Sender: No OFD packet to send [19:25:17]OFD Sender: No OFD packet to send [19:25:22]OFD Sender: No OFD packet to send [19:25:27]OFD Sender: No OFD packet to send [19:25:32]OFD Sender: No OFD packet to send [19:25:37]OFD Sender: No OFD packet to send [19:25:42]OFD Sender: No OFD packet to send [19:25:47]OFD Sender: No OFD packet to send [19:25:52]OFD Sender: No OFD packet to send [19:25:57]OFD Sender: No OFD packet to send [19:26:02]OFD Sender: No OFD packet to send [19:26:07]OFD Sender: No OFD packet to send [19:26:12]OFD Sender: No OFD packet to send [19:26:17]OFD Sender: No OFD packet to send [19:26:22]OFD Sender: No OFD packet to send [19:26:27]OFD Sender: No OFD packet to send [19:26:32]OFD Sender: No OFD packet to send [19:26:37]OFD Sender: No OFD packet to send [19:26:42]OFD Sender: No OFD packet to send [19:26:47]OFD Sender: No OFD packet to send [19:26:52]OFD Sender: No OFD packet to send [19:26:57]OFD Sender: No OFD packet to send [19:27:02]OFD Sender: No OFD packet to send [19:27:07]OFD Sender: No OFD packet to send [19:27:12]OFD Sender: No OFD packet to send [19:27:17]OFD Sender: No OFD packet to send [19:27:22]OFD Sender: No OFD packet to send [19:27:27]OFD Sender: No OFD packet to send [19:27:32]OFD Sender: No OFD packet to send [19:27:37]OFD Sender: No OFD packet to send [19:27:42]OFD Sender: No OFD packet to send [19:27:47]OFD Sender: No OFD packet to send [19:27:52]OFD Sender: No OFD packet to send [19:27:57]OFD Sender: No OFD packet to send [19:28:02]OFD Sender: No OFD packet to send [19:28:07]OFD Sender: No OFD packet to send [19:28:12]OFD Sender: No OFD packet to send [19:28:17]OFD Sender: No OFD packet to send [19:28:22]OFD Sender: No OFD packet to send [19:28:27]OFD Sender: No OFD packet to send [19:28:32]OFD Sender: No OFD packet to send [19:28:37]OFD Sender: No OFD packet to send [19:28:42]OFD Sender: No OFD packet to send [19:28:47]OFD Sender: No OFD packet to send [19:28:52]OFD Sender: No OFD packet to send [19:28:54]accept exits with 7 [19:28:54]New connection [19:28:54]New thread 3066928484 created [19:28:54]Thread 3066785124 joined [19:28:54]Waiting for new connection... [19:28:54] Sock 7.Parse request [19:28:54]Sock 7.Check first char [19:28:54]Sock 7.First char is OK [19:28:54]request: POST /json_proto HTTP/1.0 [19:28:54]Method: POST [19:28:54]URL: /json_proto [19:28:54]Method is POST - this is cgi request [19:28:54]url: /json_proto [19:28:54]query_string will be loaded in cgi processing [19:28:54]execute_cgi json_proto POST (null) [19:28:54]execute_cgi path=json_proto method=POST [19:28:54]POST find Content-Length [19:28:54]Host: 172.17.33.3:8080 [19:28:54]Content-Length: 1180 [19:28:54]Content-Type: application/json [19:28:54] [19:28:54]POST finish read [19:28:54]Found Content-Length = 1180 [19:28:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0440\u044B\u0431\u0430\u0435\u0432 \u042D. \u000A\u0421\u0447\u0435\u0442 N : (1)347066\u000A12.04.2024 19:10\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 51\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 6.910 x 72.40\u000A\u0418\u0422\u041E\u0413: 500.28\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3778289\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:28:54]execute_script... [19:28:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0440\u044B\u0431\u0430\u0435\u0432 \u042D. \u000A\u0421\u0447\u0435\u0442 N : (1)347066\u000A12.04.2024 19:10\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 51\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 6.910 x 72.40\u000A\u0418\u0422\u041E\u0413: 500.28\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3778289\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:28:54]POST & json_proto [19:28:54]process_json_proto [19:28:54]json parsed OK: [19:28:54]protocol is kg_v1.0 [19:28:54]action value=print_text [19:28:54]process_action print_text [19:28:54]cmd_print_text [19:28:54]ExternCall_PrintAddStr [19:28:54]wPrintStart [19:28:54]Write to MH i2c: 01 00 00 7B 01 7C [19:28:54]Write i2c OK [19:28:54]MH_I2C_Read... [19:28:54]Read from MH i2c: 01 [19:28:54]MH_I2C_Read... [19:28:54]Read from MH i2c: 01 07 00 [19:28:54]MH_I2C_Read... [19:28:54]Read from MH i2c: 01 07 00 7B 01 00 00 00 00 00 FF 0F 91 [19:28:54]RasterBufferAndPrint [19:28:54]line *****ТОВАРНЫЙ ЧЕК***** [19:28:54]line АЗС 108 [19:28:54]line Партнер нефть [19:28:54]line 02508201610067 [19:28:54]line Кассир : Сарыбаев Э. [19:28:54]line Счет N : (1)347066 [19:28:54]line 12.04.2024 19:10 [19:28:54]line ПРОДАЖА [19:28:54]line ТРК (МРК, ГНК): 51 [19:28:54]line Вид ГСМ : 2710194210 [19:28:54]line ДТ-К-5 [19:28:54]line 6.910 x 72.40 [19:28:54]line ИТОГ: 500.28 [19:28:54]line Тип оплаты: Талоны: Партнер нефть [19:28:54]line 3778289 [19:28:54]line ______________________ [19:28:54]line (подпись) [19:28:54]written 0, free lines is 4095 [19:28:54]Write to MH i2c: 01 00 00 8F 01 90 [19:28:54]Write i2c OK [19:28:54]MH_I2C_Read... [19:28:54]Read from MH i2c: 01 [19:28:54]MH_I2C_Read... [19:28:54]Read from MH i2c: 01 07 00 [19:28:54]MH_I2C_Read... [19:28:54]Read from MH i2c: 01 07 00 8F 01 00 00 00 00 00 11 0E B6 [19:28:54]RasterBufferAndPrint [19:28:54]line [19:28:54]line [19:28:54]line [19:28:54]line [19:28:54]line [19:28:54]written 0, free lines is 3602 [19:28:54]MH_Cut [19:28:54]Write to MH i2c: D1 01 00 96 01 01 69 [19:28:54]Write i2c OK [19:28:54]MH_I2C_Read... [19:28:54]Read from MH i2c: D1 [19:28:54]MH_I2C_Read... [19:28:54]Read from MH i2c: D1 01 00 [19:28:54]MH_I2C_Read... [19:28:54]Read from MH i2c: D1 01 00 96 01 00 68 [19:28:54]Write to MH i2c: 01 00 00 97 01 98 [19:28:54]Write i2c OK [19:28:54]MH_I2C_Read... [19:28:54]*** Cut start [19:28:54]*** Partial cut [19:28:54]*** CUTSNS_PIN = 1 [19:28:54]*** CUTSNS_PIN = 0 [19:28:55]*** Brake cut motor [19:28:55]Read from MH i2c: 01 [19:28:55]MH_I2C_Read... [19:28:55]*** Stop cut motor [19:28:55]*** Cut end [19:28:55]Read from MH i2c: 01 07 00 [19:28:55]MH_I2C_Read... [19:28:55]Read from MH i2c: 01 07 00 97 01 00 00 00 00 00 FF 0F AD [19:28:55]process_action print_text done [19:28:55]requested_data is exist [19:28:55]produce_requested_data [19:28:55]requested_item fm.sn is exist - process it [19:28:55]wFMCommunicate request_size=4 [19:28:55]MH_SAM_APDU [19:28:55]CAPDU: 80 11 00 00 [19:28:55]Write to MH i2c: E2 08 00 98 01 80 11 00 00 00 00 00 00 13 [19:28:55]Write i2c OK [19:28:55]MH_I2C_Read... [19:28:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:28:55]Read from MH i2c: E2 [19:28:55]MH_I2C_Read... [19:28:55]Read from MH i2c: E2 17 00 [19:28:55]MH_I2C_Read... [19:28:55]Read from MH i2c: E2 17 00 98 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 62 [19:28:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:28:55]wFMCommunicate OK [19:28:55]requested_item fd.num is exist - process it [19:28:55]SAM_PROTO_GetFieldsCounters [19:28:55]wFMCommunicate request_size=4 [19:28:55]MH_SAM_APDU [19:28:55]CAPDU: 80 13 00 00 [19:28:55]Write to MH i2c: E2 08 00 99 01 80 13 00 00 00 00 00 00 16 [19:28:55]Write i2c OK [19:28:55]MH_I2C_Read... [19:28:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:28:55]Read from MH i2c: E2 [19:28:55]MH_I2C_Read... [19:28:55]Read from MH i2c: E2 62 00 [19:28:55]MH_I2C_Read... [19:28:55]Read from MH i2c: E2 62 00 99 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 39 70 00 00 0E 04 04 00 72 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 78 [19:28:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 39 70 00 00 0E 04 04 00 72 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 [19:28:55]wFMCommunicate OK [19:28:55]SAM_PROTO_GetFieldsCounters done [19:28:55]requested_item shift.num is exist - process it [19:28:55]requested_item shift.opened is exist - process it [19:28:55]req_shift_opened [19:28:55]FM_GetShiftState [19:28:55]SAM_PROTO_GetShiftState [19:28:55]wFMCommunicate request_size=4 [19:28:55]MH_SAM_APDU [19:28:55]CAPDU: 80 13 01 00 [19:28:55]Write to MH i2c: E2 08 00 9A 01 80 13 01 00 00 00 00 00 18 [19:28:55]Write i2c OK [19:28:55]MH_I2C_Read... [19:28:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:28:55]Read from MH i2c: E2 [19:28:55]MH_I2C_Read... [19:28:55]Read from MH i2c: E2 0E 00 [19:28:55]MH_I2C_Read... [19:28:55]Read from MH i2c: E2 0E 00 9A 01 00 09 00 01 17 88 19 66 00 00 00 00 90 00 42 [19:28:55]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [19:28:55]wFMCommunicate OK [19:28:55]SAM_PROTO_GetShiftState done [19:28:55]FM_GetShiftState done [19:28:55]req_shift_opened done [19:28:55]requested_item shift.open_date is exist - process it [19:28:55]req_shift_open_date [19:28:55]req_shift_open_date done [19:28:55]produce_requested_data done [19:28:55]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28729,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271} [19:28:55]process_action_free print_text [19:28:55]json_value_free [19:28:55]json_value_free done [19:28:55]process_json_proto returns [19:28:55]Send response to host [19:28:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28729,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271}}} [19:28:55]free response buf [19:28:55]execute_script done [19:28:55]execute_script returns [19:28:55]free content buf [19:28:55]Sock 7.Close socket [19:28:55]Sock 7.Thread stoped [19:28:57]OFD Sender: No OFD packet to send [19:29:02]OFD Sender: No OFD packet to send [19:29:07]OFD Sender: No OFD packet to send [19:29:12]OFD Sender: No OFD packet to send [19:29:17]OFD Sender: No OFD packet to send [19:29:22]OFD Sender: No OFD packet to send [19:29:27]OFD Sender: No OFD packet to send [19:29:32]OFD Sender: No OFD packet to send [19:29:37]OFD Sender: No OFD packet to send [19:29:42]OFD Sender: No OFD packet to send [19:29:47]OFD Sender: No OFD packet to send [19:29:52]OFD Sender: No OFD packet to send [19:29:57]OFD Sender: No OFD packet to send [19:30:02]OFD Sender: No OFD packet to send [19:30:07]OFD Sender: No OFD packet to send [19:30:12]OFD Sender: No OFD packet to send [19:30:17]OFD Sender: No OFD packet to send [19:30:22]OFD Sender: No OFD packet to send [19:30:27]OFD Sender: No OFD packet to send [19:30:32]OFD Sender: No OFD packet to send [19:30:37]OFD Sender: No OFD packet to send [19:30:42]OFD Sender: No OFD packet to send [19:30:47]OFD Sender: No OFD packet to send [19:30:52]OFD Sender: No OFD packet to send [19:30:57]OFD Sender: No OFD packet to send [19:31:02]OFD Sender: No OFD packet to send [19:31:07]OFD Sender: No OFD packet to send [19:31:12]OFD Sender: No OFD packet to send [19:31:17]OFD Sender: No OFD packet to send [19:31:22]OFD Sender: No OFD packet to send [19:31:27]OFD Sender: No OFD packet to send [19:31:32]OFD Sender: No OFD packet to send [19:31:37]OFD Sender: No OFD packet to send [19:31:42]OFD Sender: No OFD packet to send [19:31:47]OFD Sender: No OFD packet to send [19:31:52]OFD Sender: No OFD packet to send [19:31:53]accept exits with 9 [19:31:53]New connection [19:31:53]New thread 3066785124 created [19:31:53]Thread 3066928484 joined [19:31:53]Waiting for new connection... [19:31:53] Sock 9.Parse request [19:31:53]Sock 9.Check first char [19:31:53]Sock 9.First char is OK [19:31:53]request: POST /json_proto HTTP/1.0 [19:31:53]Method: POST [19:31:53]URL: /json_proto [19:31:53]Method is POST - this is cgi request [19:31:53]url: /json_proto [19:31:53]query_string will be loaded in cgi processing [19:31:53]execute_cgi json_proto POST (null) [19:31:53]execute_cgi path=json_proto method=POST [19:31:53]POST find Content-Length [19:31:53]Host: 172.17.33.3:8080 [19:31:53]Content-Length: 677 [19:31:53]Content-Type: application/json [19:31:53] [19:31:53]POST finish read [19:31:53]Found Content-Length = 677 [19:31:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347068", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 4.670, "sum" : 300.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:31:53]execute_script... [19:31: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)347068", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 4.670, "sum" : 300.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:31:53]POST & json_proto [19:31:53]process_json_proto [19:31:53]json parsed OK: [19:31:53]protocol is kg_v1.0 [19:31:53]action value=close_receipt [19:31:53]process_action close_receipt [19:31:53]cmd_close_receipt [19:31:53]MH_GetDate [19:31:53]Write to MH i2c: F0 00 00 9B 01 8B [19:31:53]Write i2c OK [19:31:53]MH_I2C_Read... [19:31:53]Read from MH i2c: F0 [19:31:53]MH_I2C_Read... [19:31:53]Read from MH i2c: F0 09 00 [19:31:53]MH_I2C_Read... [19:31:53]Read from MH i2c: F0 09 00 9B 01 00 29 8C 19 66 23 5B 8F 65 3A [19:31:53]GetLastDocTimeStamp 1712949795 [19:31:53]current date 1712950313 [19:31:53]FM_GetShiftState [19:31:53]SAM_PROTO_GetShiftState [19:31:53]wFMCommunicate request_size=4 [19:31:53]MH_SAM_APDU [19:31:53]CAPDU: 80 13 01 00 [19:31:53]Write to MH i2c: E2 08 00 9C 01 80 13 01 00 00 00 00 00 1A [19:31:53]Write i2c OK [19:31:53]MH_I2C_Read... [19:31:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:31:53]Read from MH i2c: E2 [19:31:53]MH_I2C_Read... [19:31:53]Read from MH i2c: E2 0E 00 [19:31:53]MH_I2C_Read... [19:31:53]Read from MH i2c: E2 0E 00 9C 01 00 09 00 01 17 88 19 66 00 00 00 00 90 00 44 [19:31:53]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [19:31:53]wFMCommunicate OK [19:31:53]SAM_PROTO_GetShiftState done [19:31:53]FM_GetShiftState done [19:31:53]opened in 1712949271 [19:31:53]opened+sec_in_day 1713035671 [19:31:53]quantity*price = 30028 [19:31:53]sum+1 = 30029 [19:31:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 4 12.04.2024 19:31 Смена: 114 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28730 ФПД: 71349195375539 1/tax-web-control/client/api/v1/ticket?date=20240412T193153&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28730&fm=71349195375539&tin=02508201610067®Number=0000138879044617&sum=30000 [19:31:54]StoreToDocumentArchive [19:31:54]shift 114 fd 28730 [19:31:54]save to /storage/0114/doc_00028730 [19:31:54]save last doc name /storage/0114/doc_00028730 to /storage/kkm_last_doc_name [19:31:54]save OK [19:31:54]Clear old archive folders... [19:31:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:31:54]tlvbuf is 01213B20 [19:31:54]SAM_PROTO_ClearQueue [19:31:54]wFMCommunicate request_size=4 [19:31:54]MH_SAM_APDU [19:31:54]CAPDU: 80 09 00 00 [19:31:54]Write to MH i2c: E2 08 00 A9 01 80 09 00 00 00 00 00 00 1C [19:31:54]Write i2c OK [19:31:54]MH_I2C_Read... [19:31:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:31:54]Read from MH i2c: E2 [19:31:54]MH_I2C_Read... [19:31:54]Read from MH i2c: E2 03 00 [19:31:54]MH_I2C_Read... [19:31:54]Read from MH i2c: E2 03 00 A9 01 00 90 00 1E [19:31:54]RAPDU: 90 00 [19:31:54]wFMCommunicate OK [19:31:54]SAM_PROTO_ClearQueue done [19:31:54]KKMCreateOFDPacket [19:31:54]OFDProtocolAddRootSTLVToBuf [19:31:54]FM_MakeSignedData [19:31:54]FM_MakeSignedData [19:31:54]SAM_PROTO_SignData [19:31:54]wFMCommunicate request_size=4 [19:31:54]MH_SAM_APDU [19:31:54]CAPDU: 80 0D 01 02 [19:31:54]Write to MH i2c: E2 08 00 AA 01 80 0D 01 02 00 00 00 00 24 [19:31:54]Write i2c OK [19:31:54]MH_I2C_Read... [19:31:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:31:54]Read from MH i2c: E2 [19:31:54]MH_I2C_Read... [19:31:54]Read from MH i2c: E2 03 00 [19:31:54]MH_I2C_Read... [19:31:54]Read from MH i2c: E2 03 00 AA 01 00 90 00 1F [19:31:54]RAPDU: 90 00 [19:31:54]wFMCommunicate OK [19:31:54]wFMCommunicate request_size=255 [19:31:54]MH_SAM_APDU [19:31:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3E 12 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 29 8C 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3A 70 00 00 35 04 06 00 40 [19:31:54]Write to MH i2c: E2 02 01 AB 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3E 12 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 29 8C 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3A 70 00 00 35 04 06 00 40 00 00 FD [19:31:54]Write i2c OK [19:31:54]MH_I2C_Read... [19:31:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:31:54]Read from MH i2c: E2 [19:31:54]MH_I2C_Read... [19:31:54]Read from MH i2c: E2 03 00 [19:31:54]MH_I2C_Read... [19:31:54]Read from MH i2c: E2 03 00 AB 01 00 90 00 20 [19:31:54]RAPDU: 90 00 [19:31:54]wFMCommunicate OK [19:31:54]wFMCommunicate request_size=10 [19:31:54]MH_SAM_APDU [19:31:54]CAPDU: 80 0D 02 02 05 E4 47 72 03 B3 [19:31:54]Write to MH i2c: E2 0D 00 AC 01 80 0D 02 02 05 00 E4 47 72 03 B3 00 00 84 [19:31:54]Write i2c OK [19:31:54]MH_I2C_Read... [19:31:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:31:54]Read from MH i2c: E2 [19:31:54]MH_I2C_Read... [19:31:54]Read from MH i2c: E2 03 00 [19:31:54]MH_I2C_Read... [19:31:54]Read from MH i2c: E2 03 00 AC 01 00 90 00 21 [19:31:54]RAPDU: 90 00 [19:31:54]wFMCommunicate OK [19:31:54]wFMCommunicate request_size=4 [19:31:54]MH_SAM_APDU [19:31:54]CAPDU: 80 0D 03 02 [19:31:54]Write to MH i2c: E2 08 00 AD 01 80 0D 03 02 00 00 00 00 29 [19:31:54]Write i2c OK [19:31:54]MH_I2C_Read... [19:31:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:31:54]Read from MH i2c: E2 [19:31:54]MH_I2C_Read... [19:31:54]Read from MH i2c: E2 0B 00 [19:31:54]MH_I2C_Read... [19:31:54]Read from MH i2c: E2 0B 00 AD 01 00 4F 34 A8 3F 66 13 4A 47 90 00 9E [19:31:54]RAPDU: 4F 34 A8 3F 66 13 4A 47 90 00 [19:31:54]wFMCommunicate OK [19:31:54]SAM_PROTO_SignData done [19:31:54]FM_MakeSignedData done [19:31:54]CreateOFDProtocolMessage [19:31:54]wFMCommunicate request_size=4 [19:31:54]MH_SAM_APDU [19:31:54]CAPDU: 80 11 00 00 [19:31:54]Write to MH i2c: E2 08 00 AE 01 80 11 00 00 00 00 00 00 29 [19:31:54]Write i2c OK [19:31:54]MH_I2C_Read... [19:31:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:31:54]Read from MH i2c: E2 [19:31:54]MH_I2C_Read... [19:31:54]Read from MH i2c: E2 17 00 [19:31:54]MH_I2C_Read... [19:31:54]Read from MH i2c: E2 17 00 AE 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 78 [19:31:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:31:54]wFMCommunicate OK [19:31:54]CreateOFDProtocolMessage done [19:31:54]OFDSenderStorePacket 28730 [19:31:54]StoreOFDPacket docnum=28730 [19:31:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 FB C1 07 01 AD FD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3E 12 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 29 8C 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3A 70 00 00 35 04 06 00 40 E4 47 72 03 B3 4F 34 A8 3F 66 13 4A 47 [19:31:54]CheckFolder [19:31:54]dirname=/storage/ofd_packets [19:31:54]CheckFolder done [19:31:54]ProducePacketName [19:31:54]name=ofd_packets/00028730 [19:31:54]NVStorageSaveData ofd_packets/00028730 [19:31:54]File name is /storage/ofd_packets/00028730 [19:31:54]Write 301 bytes [19:31:54]NVStorageSaveData done [19:31:54]OFDSenderStorePacket done [19:31:54]KKMCreateOFDPacket done [19:31:54]NVStorageSaveData kkm_last_timestamp [19:31:54]File name is /storage/kkm_last_timestamp [19:31:54]Write 4 bytes [19:31:54]NVStorageSaveData done [19:31:54]ExternCall_PrintAddStr [19:31:54]wPrintStart [19:31:54]Write to MH i2c: 01 00 00 AF 01 B0 [19:31:54]Write i2c OK [19:31:54]MH_I2C_Read... [19:31:54]Read from MH i2c: 01 [19:31:54]MH_I2C_Read... [19:31:54]Read from MH i2c: 01 07 00 [19:31:54]MH_I2C_Read... [19:31:54]Read from MH i2c: 01 07 00 AF 01 00 00 00 00 00 FF 0F C5 [19:31:54]RasterBufferAndPrint [19:31:54]line Счет N : (1)347068 [19:31:54]line ИНН: 02508201610067 [19:31:54]line Контрольно-Кассовый Чек [19:31:54]line ПРОДАЖА [19:31:54]line ТРК (МРК, ГНК) : 23 [19:31:54]line Товар: 2710124130 [19:31:54]line Аи-92-К-5 [19:31:54]line 4.670 * 64.30 [19:31:54]line = 300.28 [19:31:54]line НДС 12% НСП 1% [19:31:54]line > о реализуемом товаре [19:31:54]line ОКРУГЛЕНИЕ: -0.28 [19:31:54]line ИТОГО: 300.00 [19:31:54]line Внесено: 300.00 [19:31:54]line СДАЧА: 0.00 [19:31:54]line НСП 1% : 2.66 [19:31:54]line НДС 12% : 31.89 [19:31:54]line Наличными: 300.00 [19:31:54]line Безнал.: 0.00 [19:31:54]line Место: АЗС № 108 "Партнер Нефть" [19:31:54]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [19:31:54]line СНО: Общий режим [19:31:54]line Чек 4 12.04.2024 19:31 [19:31:54]line Смена: 114 ФФД: 1.0 [19:31:54]line ЗНМ: 0300000027 [19:31:54]line РНМ: 0000138879044617 [19:31:54]line Версия ККМ: 001 [19:31:54]line ФМ: 0000000000963154 [19:31:54]line ФД: 28730 [19:31:54]line ФПД: 71349195375539 [19:31:54]line 1/tax-web-control/client/api/v1/ticket?date=20240412T193153&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28730&fm=71349195375539&tin=02508201610067®Number=0000138879044617&sum=30000 [19:31:55]OFD Sender: Processing packet 28730 [packets to send 8, broken 7] [19:31:55]ProducePacketName [19:31:55]name=ofd_packets/00028730 [19:31:55]OFD Sender: To server: pG, [19:31:55]CommunicateWithHost lk.salyk.kg:30040 [19:31:55]ConnectInit lk.salyk.kg [19:31:55]written 0, free lines is 4095 [19:31:55]Connected sock=10 [19:31:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 FB C1 07 01 AD FD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3E 12 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 29 8C 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3A 70 00 00 35 04 06 00 40 E4 47 72 03 B3 4F 34 A8 3F 66 13 4A 47 [19:31:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 CF B4 47 00 51 A9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3A 70 00 00 F4 03 04 00 D3 36 19 66 B6 04 01 00 00 8D 92 CF 96 DB 7C 07 D3 [19:31:55]CommunicateWithHost err = 0 [19:31:55]CheckOFDResponse [19:31:55]1017 (14) - 77093643461234 [19:31:55]1041 (16) - 0000000000963154 [19:31:55]1040 (4) - 28730 [19:31:55]1012 (4) - 12.04.2024 13:27 [19:31:55]1206 (1) - 0 [19:31:55]OFD Sender: Remove packet 28730 [19:31:55]ProducePacketName [19:31:55]name=ofd_packets/00028730 [19:31:55]NVStorageDeleteData [19:31:55]Write to MH i2c: 01 00 00 D9 01 DA [19:31:55]Write i2c OK [19:31:55]MH_I2C_Read... [19:31:55]Read from MH i2c: 01 [19:31:55]MH_I2C_Read... [19:31:55]Read from MH i2c: 01 07 00 [19:31:55]MH_I2C_Read... [19:31:55]Read from MH i2c: 01 07 00 D9 01 00 00 00 00 00 C4 0C B1 [19:31:55]RasterBufferAndPrint [19:31:55]line [19:31:55]line [19:31:55]line [19:31:55]line [19:31:55]line [19:31:55]written 0, free lines is 3271 [19:31:55]MH_Cut [19:31:55]Write to MH i2c: D1 01 00 E0 01 01 B3 [19:31:55]Write i2c OK [19:31:55]MH_I2C_Read... [19:31:55]Read from MH i2c: D1 [19:31:55]MH_I2C_Read... [19:31:55]Read from MH i2c: D1 01 00 [19:31:55]MH_I2C_Read... [19:31:55]Read from MH i2c: D1 01 00 E0 01 00 B2 [19:31:55]Write to MH i2c: 01 00 00 E1 01 E2 [19:31:55]Write i2c OK [19:31:55]MH_I2C_Read... [19:31:55]OFD Sender: No OFD packet to send [19:31:56]*** Cut start [19:31:56]*** Partial cut [19:31:56]*** CUTSNS_PIN = 1 [19:31:56]*** CUTSNS_PIN = 0 [19:31:56]*** Brake cut motor [19:31:57]Read from MH i2c: 01 [19:31:57]MH_I2C_Read... [19:31:57]*** Stop cut motor [19:31:57]*** Cut end [19:31:57]Read from MH i2c: 01 07 00 [19:31:57]MH_I2C_Read... [19:31:57]Read from MH i2c: 01 07 00 E1 01 00 00 00 00 00 FF 0F F7 [19:31:57]process_action close_receipt done [19:31:57]requested_data is exist [19:31:57]produce_requested_data [19:31:57]requested_item fm.sn is exist - process it [19:31:57]wFMCommunicate request_size=4 [19:31:57]MH_SAM_APDU [19:31:57]CAPDU: 80 11 00 00 [19:31:57]Write to MH i2c: E2 08 00 E2 01 80 11 00 00 00 00 00 00 5D [19:31:57]Write i2c OK [19:31:57]MH_I2C_Read... [19:31:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:31:57]Read from MH i2c: E2 [19:31:57]MH_I2C_Read... [19:31:57]Read from MH i2c: E2 17 00 [19:31:57]MH_I2C_Read... [19:31:57]Read from MH i2c: E2 17 00 E2 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 AC [19:31:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:31:57]wFMCommunicate OK [19:31:57]requested_item fd.num is exist - process it [19:31:57]SAM_PROTO_GetFieldsCounters [19:31:57]wFMCommunicate request_size=4 [19:31:57]MH_SAM_APDU [19:31:57]CAPDU: 80 13 00 00 [19:31:57]Write to MH i2c: E2 08 00 E3 01 80 13 00 00 00 00 00 00 60 [19:31:57]Write i2c OK [19:31:57]MH_I2C_Read... [19:31:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:31:57]Read from MH i2c: E2 [19:31:57]MH_I2C_Read... [19:31:57]Read from MH i2c: E2 62 00 [19:31:57]MH_I2C_Read... [19:31:57]Read from MH i2c: E2 62 00 E3 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 3A 70 00 00 0E 04 04 00 72 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 C6 [19:31:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 3A 70 00 00 0E 04 04 00 72 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 [19:31:57]wFMCommunicate OK [19:31:57]SAM_PROTO_GetFieldsCounters done [19:31:57]requested_item shift.num is exist - process it [19:31:57]requested_item shift.opened is exist - process it [19:31:57]req_shift_opened [19:31:57]FM_GetShiftState [19:31:57]SAM_PROTO_GetShiftState [19:31:57]wFMCommunicate request_size=4 [19:31:57]MH_SAM_APDU [19:31:57]CAPDU: 80 13 01 00 [19:31:57]Write to MH i2c: E2 08 00 E4 01 80 13 01 00 00 00 00 00 62 [19:31:57]Write i2c OK [19:31:57]MH_I2C_Read... [19:31:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:31:57]Read from MH i2c: E2 [19:31:57]MH_I2C_Read... [19:31:57]Read from MH i2c: E2 0E 00 [19:31:57]MH_I2C_Read... [19:31:57]Read from MH i2c: E2 0E 00 E4 01 00 09 00 01 17 88 19 66 00 00 00 00 90 00 8C [19:31:57]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [19:31:57]wFMCommunicate OK [19:31:57]SAM_PROTO_GetShiftState done [19:31:57]FM_GetShiftState done [19:31:57]req_shift_opened done [19:31:57]requested_item shift.open_date is exist - process it [19:31:57]req_shift_open_date [19:31:57]req_shift_open_date done [19:31:57]produce_requested_data done [19:31:57]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28730,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271} [19:31:57]process_action_free close_receipt [19:31:57]json_value_free [19:31:57]json_value_free done [19:31:57]process_json_proto returns [19:31:57]Send response to host [19:31:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28730,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271}}} [19:31:57]free response buf [19:31:57]execute_script done [19:31:57]execute_script returns [19:31:57]free content buf [19:31:57]Sock 9.Close socket [19:31:57]Sock 9.Thread stoped [19:32:00]OFD Sender: No OFD packet to send [19:32:05]OFD Sender: No OFD packet to send [19:32:10]OFD Sender: No OFD packet to send [19:32:15]OFD Sender: No OFD packet to send [19:32:20]OFD Sender: No OFD packet to send [19:32:25]OFD Sender: No OFD packet to send [19:32:30]OFD Sender: No OFD packet to send [19:32:35]OFD Sender: No OFD packet to send [19:32:40]OFD Sender: No OFD packet to send [19:32:45]OFD Sender: No OFD packet to send [19:32:50]OFD Sender: No OFD packet to send [19:32:55]OFD Sender: No OFD packet to send [19:33:00]OFD Sender: No OFD packet to send [19:33:05]OFD Sender: No OFD packet to send [19:33:10]OFD Sender: No OFD packet to send [19:33:15]OFD Sender: No OFD packet to send [19:33:20]OFD Sender: No OFD packet to send [19:33:25]OFD Sender: No OFD packet to send [19:33:29]accept exits with 7 [19:33:29]New connection [19:33:29]New thread 3066928484 created [19:33:29]Thread 3066785124 joined [19:33:29]Waiting for new connection... [19:33:29] Sock 7.Parse request [19:33:29]Sock 7.Check first char [19:33:29]Sock 7.First char is OK [19:33:29]request: POST /json_proto HTTP/1.0 [19:33:29]Method: POST [19:33:29]URL: /json_proto [19:33:29]Method is POST - this is cgi request [19:33:29]url: /json_proto [19:33:29]query_string will be loaded in cgi processing [19:33:29]execute_cgi json_proto POST (null) [19:33:29]execute_cgi path=json_proto method=POST [19:33:29]POST find Content-Length [19:33:29]Host: 172.17.33.3:8080 [19:33:29]Content-Length: 843 [19:33:29]Content-Type: application/json [19:33:29] [19:33:29]POST finish read [19:33:29]Found Content-Length = 843 [19:33:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347067", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 46.660, "sum" : 3000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 3000.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:33:29]execute_script... [19:33: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)347067", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 46.660, "sum" : 3000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 3000.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:33:29]POST & json_proto [19:33:29]process_json_proto [19:33:29]json parsed OK: [19:33:29]protocol is kg_v1.0 [19:33:29]action value=close_receipt [19:33:29]process_action close_receipt [19:33:29]cmd_close_receipt [19:33:29]MH_GetDate [19:33:29]Write to MH i2c: F0 00 00 E5 01 D5 [19:33:29]Write i2c OK [19:33:29]MH_I2C_Read... [19:33:29]Read from MH i2c: F0 [19:33:29]MH_I2C_Read... [19:33:29]Read from MH i2c: F0 09 00 [19:33:29]MH_I2C_Read... [19:33:29]Read from MH i2c: F0 09 00 E5 01 00 8A 8C 19 66 23 5B 8F 65 E5 [19:33:29]GetLastDocTimeStamp 1712950313 [19:33:29]current date 1712950410 [19:33:29]FM_GetShiftState [19:33:29]SAM_PROTO_GetShiftState [19:33:29]wFMCommunicate request_size=4 [19:33:29]MH_SAM_APDU [19:33:29]CAPDU: 80 13 01 00 [19:33:29]Write to MH i2c: E2 08 00 E6 01 80 13 01 00 00 00 00 00 64 [19:33:29]Write i2c OK [19:33:29]MH_I2C_Read... [19:33:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:33:29]Read from MH i2c: E2 [19:33:29]MH_I2C_Read... [19:33:29]Read from MH i2c: E2 0E 00 [19:33:29]MH_I2C_Read... [19:33:29]Read from MH i2c: E2 0E 00 E6 01 00 09 00 01 17 88 19 66 00 00 00 00 90 00 8E [19:33:29]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [19:33:29]wFMCommunicate OK [19:33:29]SAM_PROTO_GetShiftState done [19:33:29]FM_GetShiftState done [19:33:29]opened in 1712949271 [19:33:29]opened+sec_in_day 1713035671 [19:33:29]quantity*price = 300023 [19:33:29]sum+1 = 300025 [19:33:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.24 НСП 1% : 26.55 НДС 12% : 318.61 Наличными: 0.00 Безнал.: 3000.24 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 5 12.04.2024 19:33 Смена: 114 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 28731 ФПД: 167314762141620 1/tax-web-control/client/api/v1/ticket?date=20240412T193330&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28731&fm=167314762141620&tin=02508201610067®Number=0000138879044617&sum=300024 [19:33:30]StoreToDocumentArchive [19:33:30]shift 114 fd 28731 [19:33:30]save to /storage/0114/doc_00028731 [19:33:30]save last doc name /storage/0114/doc_00028731 to /storage/kkm_last_doc_name [19:33:30]save OK [19:33:30]Clear old archive folders... [19:33:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:33:30]tlvbuf is 01214080 [19:33:30]SAM_PROTO_ClearQueue [19:33:30]wFMCommunicate request_size=4 [19:33:30]MH_SAM_APDU [19:33:30]CAPDU: 80 09 00 00 [19:33:30]Write to MH i2c: E2 08 00 F3 01 80 09 00 00 00 00 00 00 66 [19:33:30]Write i2c OK [19:33:30]MH_I2C_Read... [19:33:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:33:30]Read from MH i2c: E2 [19:33:30]MH_I2C_Read... [19:33:30]Read from MH i2c: E2 03 00 [19:33:30]MH_I2C_Read... [19:33:30]Read from MH i2c: E2 03 00 F3 01 00 90 00 68 [19:33:30]RAPDU: 90 00 [19:33:30]wFMCommunicate OK [19:33:30]SAM_PROTO_ClearQueue done [19:33:30]KKMCreateOFDPacket [19:33:30]OFDProtocolAddRootSTLVToBuf [19:33:30]FM_MakeSignedData [19:33:30]FM_MakeSignedData [19:33:30]SAM_PROTO_SignData [19:33:30]wFMCommunicate request_size=4 [19:33:30]MH_SAM_APDU [19:33:30]CAPDU: 80 0D 01 02 [19:33:30]Write to MH i2c: E2 08 00 F4 01 80 0D 01 02 00 00 00 00 6E [19:33:30]Write i2c OK [19:33:30]MH_I2C_Read... [19:33:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:33:30]Read from MH i2c: E2 [19:33:30]MH_I2C_Read... [19:33:30]Read from MH i2c: E2 03 00 [19:33:30]MH_I2C_Read... [19:33:30]Read from MH i2c: E2 03 00 F4 01 00 90 00 69 [19:33:30]RAPDU: 90 00 [19:33:30]wFMCommunicate OK [19:33:30]wFMCommunicate request_size=255 [19:33:30]MH_SAM_APDU [19:33:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 B6 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 F8 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F8 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 8A 8C 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3B 70 00 00 35 04 06 00 98 [19:33:30]Write to MH i2c: E2 02 01 F5 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 B6 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 F8 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F8 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 8A 8C 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3B 70 00 00 35 04 06 00 98 00 00 1C [19:33:30]Write i2c OK [19:33:30]MH_I2C_Read... [19:33:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:33:30]Read from MH i2c: E2 [19:33:30]MH_I2C_Read... [19:33:30]Read from MH i2c: E2 03 00 [19:33:30]MH_I2C_Read... [19:33:30]Read from MH i2c: E2 03 00 F5 01 00 90 00 6A [19:33:30]RAPDU: 90 00 [19:33:30]wFMCommunicate OK [19:33:30]wFMCommunicate request_size=10 [19:33:30]MH_SAM_APDU [19:33:30]CAPDU: 80 0D 02 02 05 2C 00 F6 8F B4 [19:33:30]Write to MH i2c: E2 0D 00 F6 01 80 0D 02 02 05 00 2C 00 F6 8F B4 00 00 E0 [19:33:30]Write i2c OK [19:33:30]MH_I2C_Read... [19:33:31]OFD Sender: No OFD packet to send [19:33:31]Read from MH i2c: E2 [19:33:31]MH_I2C_Read... [19:33:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:33:31]Read from MH i2c: E2 03 00 [19:33:31]MH_I2C_Read... [19:33:31]Read from MH i2c: E2 03 00 F6 01 00 90 00 6B [19:33:31]RAPDU: 90 00 [19:33:31]wFMCommunicate OK [19:33:31]wFMCommunicate request_size=4 [19:33:31]MH_SAM_APDU [19:33:31]CAPDU: 80 0D 03 02 [19:33:31]Write to MH i2c: E2 08 00 F7 01 80 0D 03 02 00 00 00 00 73 [19:33:31]Write i2c OK [19:33:31]MH_I2C_Read... [19:33:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:33:31]Read from MH i2c: E2 [19:33:31]MH_I2C_Read... [19:33:31]Read from MH i2c: E2 0B 00 [19:33:31]MH_I2C_Read... [19:33:31]Read from MH i2c: E2 0B 00 F7 01 00 F9 9F 97 74 9D E8 04 4A 90 00 EA [19:33:31]RAPDU: F9 9F 97 74 9D E8 04 4A 90 00 [19:33:31]wFMCommunicate OK [19:33:31]SAM_PROTO_SignData done [19:33:31]FM_MakeSignedData done [19:33:31]CreateOFDProtocolMessage [19:33:31]wFMCommunicate request_size=4 [19:33:31]MH_SAM_APDU [19:33:31]CAPDU: 80 11 00 00 [19:33:31]Write to MH i2c: E2 08 00 F8 01 80 11 00 00 00 00 00 00 73 [19:33:31]Write i2c OK [19:33:31]MH_I2C_Read... [19:33:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:33:31]Read from MH i2c: E2 [19:33:31]MH_I2C_Read... [19:33:31]Read from MH i2c: E2 17 00 [19:33:31]MH_I2C_Read... [19:33:31]Read from MH i2c: E2 17 00 F8 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 C2 [19:33:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:33:31]wFMCommunicate OK [19:33:31]CreateOFDProtocolMessage done [19:33:31]OFDSenderStorePacket 28731 [19:33:31]StoreOFDPacket docnum=28731 [19:33:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 8C DF 07 01 60 41 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 B6 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 F8 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F8 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 8A 8C 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3B 70 00 00 35 04 06 00 98 2C 00 F6 8F B4 F9 9F 97 74 9D E8 04 4A [19:33:31]CheckFolder [19:33:31]dirname=/storage/ofd_packets [19:33:31]CheckFolder done [19:33:31]ProducePacketName [19:33:31]name=ofd_packets/00028731 [19:33:31]NVStorageSaveData ofd_packets/00028731 [19:33:31]File name is /storage/ofd_packets/00028731 [19:33:31]Write 301 bytes [19:33:31]NVStorageSaveData done [19:33:31]OFDSenderStorePacket done [19:33:31]KKMCreateOFDPacket done [19:33:31]NVStorageSaveData kkm_last_timestamp [19:33:31]File name is /storage/kkm_last_timestamp [19:33:31]Write 4 bytes [19:33:31]NVStorageSaveData done [19:33:31]ExternCall_PrintAddStr [19:33:31]wPrintStart [19:33:31]Write to MH i2c: 01 00 00 F9 01 FA [19:33:31]Write i2c OK [19:33:31]MH_I2C_Read... [19:33:31]Read from MH i2c: 01 [19:33:31]MH_I2C_Read... [19:33:31]Read from MH i2c: 01 07 00 [19:33:31]MH_I2C_Read... [19:33:31]Read from MH i2c: 01 07 00 F9 01 00 00 00 00 00 FF 0F 0F [19:33:31]RasterBufferAndPrint [19:33:31]line Счет N : (1)347067 [19:33:31]line ИНН: 02508201610067 [19:33:31]line Контрольно-Кассовый Чек [19:33:31]line ПРОДАЖА [19:33:31]line ТРК (МРК, ГНК) : 42 [19:33:31]line Товар: 2710124130 [19:33:31]line Аи-92-К-5 [19:33:31]line 46.660 * 64.30 [19:33:31]line = 3000.24 [19:33:31]line НДС 12% НСП 1% [19:33:31]line > о реализуемом товаре [19:33:31]line ИТОГО: 3000.24 [19:33:31]line НСП 1% : 26.55 [19:33:31]line НДС 12% : 318.61 [19:33:31]line Наличными: 0.00 [19:33:31]line Безнал.: 3000.24 [19:33:31]line Место: АЗС № 108 "Партнер Нефть" [19:33:31]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [19:33:31]line СНО: Общий режим [19:33:31]line Чек 5 12.04.2024 19:33 [19:33:31]line Смена: 114 ФФД: 1.0 [19:33:31]line ЗНМ: 0300000027 [19:33:31]line РНМ: 0000138879044617 [19:33:31]line Версия ККМ: 001 [19:33:31]line Платежная система: АКБ Кыргызстан [19:33:31]line ФМ: 0000000000963154 [19:33:31]line ФД: 28731 [19:33:31]line ФПД: 167314762141620 [19:33:31]line 1/tax-web-control/client/api/v1/ticket?date=20240412T193330&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28731&fm=167314762141620&tin=02508201610067®Number=0000138879044617&sum=300024 [19:33:31]OFD Sender: Processing packet 28731 [packets to send 8, broken 7] [19:33:31]ProducePacketName [19:33:31]name=ofd_packets/00028731 [19:33:31]OFD Sender: To server: pG, [19:33:31]CommunicateWithHost lk.salyk.kg:30040 [19:33:31]ConnectInit lk.salyk.kg [19:33:31]written 0, free lines is 4095 [19:33:31]Connected sock=10 [19:33:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 8C DF 07 01 60 41 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 B6 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 F8 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F8 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 8A 8C 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3B 70 00 00 35 04 06 00 98 2C 00 F6 8F B4 F9 9F 97 74 9D E8 04 4A [19:33:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 32 4C 47 00 0E AC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3B 70 00 00 F4 03 04 00 33 37 19 66 B6 04 01 00 00 3A 19 DA 69 26 A9 39 30 [19:33:31]CommunicateWithHost err = 0 [19:33:31]CheckOFDResponse [19:33:31]1017 (14) - 77093643461234 [19:33:31]1041 (16) - 0000000000963154 [19:33:31]1040 (4) - 28731 [19:33:31]1012 (4) - 12.04.2024 13:29 [19:33:31]1206 (1) - 0 [19:33:31]OFD Sender: Remove packet 28731 [19:33:31]ProducePacketName [19:33:31]name=ofd_packets/00028731 [19:33:31]NVStorageDeleteData [19:33:31]Write to MH i2c: 01 00 00 22 02 24 [19:33:31]Write i2c OK [19:33:31]MH_I2C_Read... [19:33:31]Read from MH i2c: 01 [19:33:31]MH_I2C_Read... [19:33:31]Read from MH i2c: 01 07 00 [19:33:31]MH_I2C_Read... [19:33:31]Read from MH i2c: 01 07 00 22 02 00 00 00 00 00 DC 0C 13 [19:33:31]RasterBufferAndPrint [19:33:31]line [19:33:31]line [19:33:31]line [19:33:31]line [19:33:31]line [19:33:31]written 0, free lines is 3296 [19:33:31]MH_Cut [19:33:31]Write to MH i2c: D1 01 00 29 02 01 FD [19:33:31]Write i2c OK [19:33:31]MH_I2C_Read... [19:33:31]Read from MH i2c: D1 [19:33:31]MH_I2C_Read... [19:33:31]Read from MH i2c: D1 01 00 [19:33:31]MH_I2C_Read... [19:33:31]Read from MH i2c: D1 01 00 29 02 00 FC [19:33:31]Write to MH i2c: 01 00 00 2A 02 2C [19:33:31]Write i2c OK [19:33:31]MH_I2C_Read... [19:33:32]OFD Sender: No OFD packet to send [19:33:32]*** Cut start [19:33:32]*** Partial cut [19:33:32]*** CUTSNS_PIN = 1 [19:33:32]*** CUTSNS_PIN = 0 [19:33:33]*** Brake cut motor [19:33:33]Read from MH i2c: 01 [19:33:33]MH_I2C_Read... [19:33:33]*** Stop cut motor [19:33:33]*** Cut end [19:33:33]Read from MH i2c: 01 07 00 [19:33:33]MH_I2C_Read... [19:33:33]Read from MH i2c: 01 07 00 2A 02 00 00 00 00 00 FF 0F 41 [19:33:33]process_action close_receipt done [19:33:33]requested_data is exist [19:33:33]produce_requested_data [19:33:33]requested_item fm.sn is exist - process it [19:33:33]wFMCommunicate request_size=4 [19:33:33]MH_SAM_APDU [19:33:33]CAPDU: 80 11 00 00 [19:33:33]Write to MH i2c: E2 08 00 2B 02 80 11 00 00 00 00 00 00 A7 [19:33:33]Write i2c OK [19:33:33]MH_I2C_Read... [19:33:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:33:33]Read from MH i2c: E2 [19:33:33]MH_I2C_Read... [19:33:33]Read from MH i2c: E2 17 00 [19:33:33]MH_I2C_Read... [19:33:33]Read from MH i2c: E2 17 00 2B 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 F6 [19:33:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:33:33]wFMCommunicate OK [19:33:33]requested_item fd.num is exist - process it [19:33:33]SAM_PROTO_GetFieldsCounters [19:33:33]wFMCommunicate request_size=4 [19:33:33]MH_SAM_APDU [19:33:33]CAPDU: 80 13 00 00 [19:33:33]Write to MH i2c: E2 08 00 2C 02 80 13 00 00 00 00 00 00 AA [19:33:33]Write i2c OK [19:33:33]MH_I2C_Read... [19:33:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:33:33]Read from MH i2c: E2 [19:33:33]MH_I2C_Read... [19:33:33]Read from MH i2c: E2 62 00 [19:33:33]MH_I2C_Read... [19:33:33]Read from MH i2c: E2 62 00 2C 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 3B 70 00 00 0E 04 04 00 72 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 14 [19:33:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 3B 70 00 00 0E 04 04 00 72 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 [19:33:33]wFMCommunicate OK [19:33:33]SAM_PROTO_GetFieldsCounters done [19:33:33]requested_item shift.num is exist - process it [19:33:33]requested_item shift.opened is exist - process it [19:33:33]req_shift_opened [19:33:33]FM_GetShiftState [19:33:33]SAM_PROTO_GetShiftState [19:33:33]wFMCommunicate request_size=4 [19:33:33]MH_SAM_APDU [19:33:33]CAPDU: 80 13 01 00 [19:33:33]Write to MH i2c: E2 08 00 2D 02 80 13 01 00 00 00 00 00 AC [19:33:33]Write i2c OK [19:33:33]MH_I2C_Read... [19:33:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:33:33]Read from MH i2c: E2 [19:33:33]MH_I2C_Read... [19:33:33]Read from MH i2c: E2 0E 00 [19:33:33]MH_I2C_Read... [19:33:33]Read from MH i2c: E2 0E 00 2D 02 00 09 00 01 17 88 19 66 00 00 00 00 90 00 D6 [19:33:33]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [19:33:33]wFMCommunicate OK [19:33:33]SAM_PROTO_GetShiftState done [19:33:33]FM_GetShiftState done [19:33:33]req_shift_opened done [19:33:33]requested_item shift.open_date is exist - process it [19:33:33]req_shift_open_date [19:33:33]req_shift_open_date done [19:33:33]produce_requested_data done [19:33:33]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28731,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271} [19:33:33]process_action_free close_receipt [19:33:33]json_value_free [19:33:33]json_value_free done [19:33:33]process_json_proto returns [19:33:33]Send response to host [19:33:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28731,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271}}} [19:33:33]free response buf [19:33:33]execute_script done [19:33:33]execute_script returns [19:33:33]free content buf [19:33:33]Sock 7.Close socket [19:33:33]Sock 7.Thread stoped [19:33:37]OFD Sender: No OFD packet to send [19:33:42]OFD Sender: No OFD packet to send [19:33:47]OFD Sender: No OFD packet to send [19:33:52]OFD Sender: No OFD packet to send [19:33:57]OFD Sender: No OFD packet to send [19:34:02]OFD Sender: No OFD packet to send [19:34:07]OFD Sender: No OFD packet to send [19:34:12]OFD Sender: No OFD packet to send [19:34:17]OFD Sender: No OFD packet to send [19:34:22]OFD Sender: No OFD packet to send [19:34:27]OFD Sender: No OFD packet to send [19:34:32]OFD Sender: No OFD packet to send [19:34:37]OFD Sender: No OFD packet to send [19:34:42]OFD Sender: No OFD packet to send [19:34:47]OFD Sender: No OFD packet to send [19:34:52]OFD Sender: No OFD packet to send [19:34:57]OFD Sender: No OFD packet to send [19:35:02]OFD Sender: No OFD packet to send [19:35:07]OFD Sender: No OFD packet to send [19:35:12]OFD Sender: No OFD packet to send [19:35:17]OFD Sender: No OFD packet to send [19:35:22]OFD Sender: No OFD packet to send [19:35:27]OFD Sender: No OFD packet to send [19:35:32]OFD Sender: No OFD packet to send [19:35:37]OFD Sender: No OFD packet to send [19:35:38]accept exits with 9 [19:35:38]New connection [19:35:38]New thread 3066785124 created [19:35:38]Thread 3066928484 joined [19:35:38]Waiting for new connection... [19:35:38] Sock 9.Parse request [19:35:38]Sock 9.Check first char [19:35:38]Sock 9.First char is OK [19:35:38]request: POST /json_proto HTTP/1.0 [19:35:38]Method: POST [19:35:38]URL: /json_proto [19:35:38]Method is POST - this is cgi request [19:35:38]url: /json_proto [19:35:38]query_string will be loaded in cgi processing [19:35:38]execute_cgi json_proto POST (null) [19:35:38]execute_cgi path=json_proto method=POST [19:35:38]POST find Content-Length [19:35:38]Host: 172.17.33.3:8080 [19:35:38]Content-Length: 682 [19:35:38]Content-Type: application/json [19:35:38] [19:35:38]POST finish read [19:35:38]Found Content-Length = 682 [19:35:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347069", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 15.560, "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:35:38]execute_script... [19:35: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)347069", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 15.560, "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:35:38]POST & json_proto [19:35:38]process_json_proto [19:35:38]json parsed OK: [19:35:38]protocol is kg_v1.0 [19:35:38]action value=close_receipt [19:35:38]process_action close_receipt [19:35:38]cmd_close_receipt [19:35:38]MH_GetDate [19:35:38]Write to MH i2c: F0 00 00 2E 02 1F [19:35:38]Write i2c OK [19:35:38]MH_I2C_Read... [19:35:38]Read from MH i2c: F0 [19:35:38]MH_I2C_Read... [19:35:38]Read from MH i2c: F0 09 00 [19:35:38]MH_I2C_Read... [19:35:38]Read from MH i2c: F0 09 00 2E 02 00 0B 8D 19 66 23 5B 8F 65 B1 [19:35:38]GetLastDocTimeStamp 1712950410 [19:35:38]current date 1712950539 [19:35:38]FM_GetShiftState [19:35:38]SAM_PROTO_GetShiftState [19:35:38]wFMCommunicate request_size=4 [19:35:38]MH_SAM_APDU [19:35:38]CAPDU: 80 13 01 00 [19:35:38]Write to MH i2c: E2 08 00 2F 02 80 13 01 00 00 00 00 00 AE [19:35:38]Write i2c OK [19:35:38]MH_I2C_Read... [19:35:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:35:38]Read from MH i2c: E2 [19:35:38]MH_I2C_Read... [19:35:38]Read from MH i2c: E2 0E 00 [19:35:38]MH_I2C_Read... [19:35:38]Read from MH i2c: E2 0E 00 2F 02 00 09 00 01 17 88 19 66 00 00 00 00 90 00 D8 [19:35:38]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [19:35:38]wFMCommunicate OK [19:35:38]SAM_PROTO_GetShiftState done [19:35:38]FM_GetShiftState done [19:35:38]opened in 1712949271 [19:35:38]opened+sec_in_day 1713035671 [19:35:38]quantity*price = 100050 [19:35:38]sum+1 = 100052 [19:35:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 6 12.04.2024 19:35 Смена: 114 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28732 ФПД: 23353608400690 1/tax-web-control/client/api/v1/ticket?date=20240412T193539&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28732&fm=23353608400690&tin=02508201610067®Number=0000138879044617&sum=100000 [19:35:39]StoreToDocumentArchive [19:35:39]shift 114 fd 28732 [19:35:39]save to /storage/0114/doc_00028732 [19:35:39]save last doc name /storage/0114/doc_00028732 to /storage/kkm_last_doc_name [19:35:39]save OK [19:35:39]Clear old archive folders... [19:35:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:35:39]tlvbuf is 01213F70 [19:35:39]SAM_PROTO_ClearQueue [19:35:39]wFMCommunicate request_size=4 [19:35:39]MH_SAM_APDU [19:35:39]CAPDU: 80 09 00 00 [19:35:39]Write to MH i2c: E2 08 00 3C 02 80 09 00 00 00 00 00 00 B0 [19:35:39]Write i2c OK [19:35:39]MH_I2C_Read... [19:35:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:35:39]Read from MH i2c: E2 [19:35:39]MH_I2C_Read... [19:35:39]Read from MH i2c: E2 03 00 [19:35:39]MH_I2C_Read... [19:35:39]Read from MH i2c: E2 03 00 3C 02 00 90 00 B2 [19:35:39]RAPDU: 90 00 [19:35:39]wFMCommunicate OK [19:35:39]SAM_PROTO_ClearQueue done [19:35:39]KKMCreateOFDPacket [19:35:39]OFDProtocolAddRootSTLVToBuf [19:35:39]FM_MakeSignedData [19:35:39]FM_MakeSignedData [19:35:39]SAM_PROTO_SignData [19:35:39]wFMCommunicate request_size=4 [19:35:39]MH_SAM_APDU [19:35:39]CAPDU: 80 0D 01 02 [19:35:39]Write to MH i2c: E2 08 00 3D 02 80 0D 01 02 00 00 00 00 B8 [19:35:39]Write i2c OK [19:35:39]MH_I2C_Read... [19:35:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:35:39]Read from MH i2c: E2 [19:35:39]MH_I2C_Read... [19:35:39]Read from MH i2c: E2 03 00 [19:35:39]MH_I2C_Read... [19:35:39]Read from MH i2c: E2 03 00 3D 02 00 90 00 B3 [19:35:39]RAPDU: 90 00 [19:35:39]wFMCommunicate OK [19:35:39]wFMCommunicate request_size=255 [19:35:39]MH_SAM_APDU [19:35:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 06 00 00 00 F4 03 04 00 0B 8D 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3C 70 00 00 35 04 06 00 15 [19:35:39]Write to MH i2c: E2 02 01 3E 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 06 00 00 00 F4 03 04 00 0B 8D 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3C 70 00 00 35 04 06 00 15 00 00 34 [19:35:39]Write i2c OK [19:35:39]MH_I2C_Read... [19:35:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:35:39]Read from MH i2c: E2 [19:35:39]MH_I2C_Read... [19:35:39]Read from MH i2c: E2 03 00 [19:35:39]MH_I2C_Read... [19:35:39]Read from MH i2c: E2 03 00 3E 02 00 90 00 B4 [19:35:39]RAPDU: 90 00 [19:35:39]wFMCommunicate OK [19:35:39]wFMCommunicate request_size=10 [19:35:39]MH_SAM_APDU [19:35:39]CAPDU: 80 0D 02 02 05 3D 6F 88 6F 32 [19:35:39]Write to MH i2c: E2 0D 00 3F 02 80 0D 02 02 05 00 3D 6F 88 6F 32 00 00 9A [19:35:39]Write i2c OK [19:35:39]MH_I2C_Read... [19:35:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:35:39]Read from MH i2c: E2 [19:35:39]MH_I2C_Read... [19:35:39]Read from MH i2c: E2 03 00 [19:35:39]MH_I2C_Read... [19:35:39]Read from MH i2c: E2 03 00 3F 02 00 90 00 B5 [19:35:39]RAPDU: 90 00 [19:35:39]wFMCommunicate OK [19:35:39]wFMCommunicate request_size=4 [19:35:39]MH_SAM_APDU [19:35:39]CAPDU: 80 0D 03 02 [19:35:39]Write to MH i2c: E2 08 00 40 02 80 0D 03 02 00 00 00 00 BD [19:35:39]Write i2c OK [19:35:39]MH_I2C_Read... [19:35:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:35:40]Read from MH i2c: E2 [19:35:40]MH_I2C_Read... [19:35:40]Read from MH i2c: E2 0B 00 [19:35:40]MH_I2C_Read... [19:35:40]Read from MH i2c: E2 0B 00 40 02 00 7C B8 87 67 DF 26 39 0B 90 00 29 [19:35:40]RAPDU: 7C B8 87 67 DF 26 39 0B 90 00 [19:35:40]wFMCommunicate OK [19:35:40]SAM_PROTO_SignData done [19:35:40]FM_MakeSignedData done [19:35:40]CreateOFDProtocolMessage [19:35:40]wFMCommunicate request_size=4 [19:35:40]MH_SAM_APDU [19:35:40]CAPDU: 80 11 00 00 [19:35:40]Write to MH i2c: E2 08 00 41 02 80 11 00 00 00 00 00 00 BD [19:35:40]Write i2c OK [19:35:40]MH_I2C_Read... [19:35:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:35:40]Read from MH i2c: E2 [19:35:40]MH_I2C_Read... [19:35:40]Read from MH i2c: E2 17 00 [19:35:40]MH_I2C_Read... [19:35:40]Read from MH i2c: E2 17 00 41 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 0C [19:35:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:35:40]wFMCommunicate OK [19:35:40]CreateOFDProtocolMessage done [19:35:40]OFDSenderStorePacket 28732 [19:35:40]StoreOFDPacket docnum=28732 [19:35:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 19 5B 07 01 2A 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 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 06 00 00 00 F4 03 04 00 0B 8D 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3C 70 00 00 35 04 06 00 15 3D 6F 88 6F 32 7C B8 87 67 DF 26 39 0B [19:35:40]CheckFolder [19:35:40]dirname=/storage/ofd_packets [19:35:40]CheckFolder done [19:35:40]ProducePacketName [19:35:40]name=ofd_packets/00028732 [19:35:40]NVStorageSaveData ofd_packets/00028732 [19:35:40]File name is /storage/ofd_packets/00028732 [19:35:40]Write 301 bytes [19:35:40]NVStorageSaveData done [19:35:40]OFDSenderStorePacket done [19:35:40]KKMCreateOFDPacket done [19:35:40]NVStorageSaveData kkm_last_timestamp [19:35:40]File name is /storage/kkm_last_timestamp [19:35:40]Write 4 bytes [19:35:40]NVStorageSaveData done [19:35:40]ExternCall_PrintAddStr [19:35:40]wPrintStart [19:35:40]Write to MH i2c: 01 00 00 42 02 44 [19:35:40]Write i2c OK [19:35:40]MH_I2C_Read... [19:35:40]Read from MH i2c: 01 [19:35:40]MH_I2C_Read... [19:35:40]Read from MH i2c: 01 07 00 [19:35:40]MH_I2C_Read... [19:35:40]Read from MH i2c: 01 07 00 42 02 00 00 00 00 00 FF 0F 59 [19:35:40]RasterBufferAndPrint [19:35:40]line Счет N : (1)347069 [19:35:40]line ИНН: 02508201610067 [19:35:40]line Контрольно-Кассовый Чек [19:35:40]line ПРОДАЖА [19:35:40]line ТРК (МРК, ГНК) : 42 [19:35:40]line Товар: 2710124130 [19:35:40]line Аи-92-К-5 [19:35:40]line 15.560 * 64.30 [19:35:40]line = 1000.51 [19:35:40]line НДС 12% НСП 1% [19:35:40]line > о реализуемом товаре [19:35:40]line ОКРУГЛЕНИЕ: -0.51 [19:35:40]line ИТОГО: 1000.00 [19:35:40]line Внесено: 1000.00 [19:35:40]line СДАЧА: 0.00 [19:35:40]line НСП 1% : 8.85 [19:35:40]line НДС 12% : 106.25 [19:35:40]line Наличными: 1000.00 [19:35:40]line Безнал.: 0.00 [19:35:40]line Место: АЗС № 108 "Партнер Нефть" [19:35:40]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [19:35:40]line СНО: Общий режим [19:35:40]line Чек 6 12.04.2024 19:35 [19:35:40]line Смена: 114 ФФД: 1.0 [19:35:40]line ЗНМ: 0300000027 [19:35:40]line РНМ: 0000138879044617 [19:35:40]line Версия ККМ: 001 [19:35:40]line ФМ: 0000000000963154 [19:35:40]line ФД: 28732 [19:35:40]line ФПД: 23353608400690 [19:35:40]line 1/tax-web-control/client/api/v1/ticket?date=20240412T193539&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28732&fm=23353608400690&tin=02508201610067®Number=0000138879044617&sum=100000 [19:35:40]OFD Sender: Processing packet 28732 [packets to send 8, broken 7] [19:35:40]ProducePacketName [19:35:40]name=ofd_packets/00028732 [19:35:40]OFD Sender: To server: pG, [19:35:40]CommunicateWithHost lk.salyk.kg:30040 [19:35:40]ConnectInit lk.salyk.kg [19:35:40]written 0, free lines is 4095 [19:35:40]Connected sock=10 [19:35:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 19 5B 07 01 2A 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 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 06 00 00 00 F4 03 04 00 0B 8D 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3C 70 00 00 35 04 06 00 15 3D 6F 88 6F 32 7C B8 87 67 DF 26 39 0B [19:35:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 65 A6 47 00 8B A9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3C 70 00 00 F4 03 04 00 B4 37 19 66 B6 04 01 00 00 CF D9 25 F3 3A AB 3B 9E [19:35:40]CommunicateWithHost err = 0 [19:35:40]CheckOFDResponse [19:35:40]1017 (14) - 77093643461234 [19:35:40]1041 (16) - 0000000000963154 [19:35:40]1040 (4) - 28732 [19:35:40]1012 (4) - 12.04.2024 13:31 [19:35:40]1206 (1) - 0 [19:35:40]OFD Sender: Remove packet 28732 [19:35:40]ProducePacketName [19:35:40]name=ofd_packets/00028732 [19:35:40]NVStorageDeleteData [19:35:40]Write to MH i2c: 01 00 00 6C 02 6E [19:35:40]Write i2c OK [19:35:40]MH_I2C_Read... [19:35:40]Read from MH i2c: 01 [19:35:40]MH_I2C_Read... [19:35:40]Read from MH i2c: 01 07 00 [19:35:40]MH_I2C_Read... [19:35:40]Read from MH i2c: 01 07 00 6C 02 00 00 00 00 00 C9 0C 4A [19:35:40]RasterBufferAndPrint [19:35:40]line [19:35:40]line [19:35:40]line [19:35:40]line [19:35:40]line [19:35:40]written 0, free lines is 3277 [19:35:40]MH_Cut [19:35:40]Write to MH i2c: D1 01 00 73 02 01 47 [19:35:40]Write i2c OK [19:35:40]MH_I2C_Read... [19:35:40]Read from MH i2c: D1 [19:35:40]MH_I2C_Read... [19:35:40]Read from MH i2c: D1 01 00 [19:35:40]MH_I2C_Read... [19:35:40]Read from MH i2c: D1 01 00 73 02 00 46 [19:35:40]Write to MH i2c: 01 00 00 74 02 76 [19:35:40]Write i2c OK [19:35:40]MH_I2C_Read... [19:35:41]OFD Sender: No OFD packet to send [19:35:41]*** Cut start [19:35:41]*** Partial cut [19:35:41]*** CUTSNS_PIN = 1 [19:35:41]*** CUTSNS_PIN = 0 [19:35:41]*** Brake cut motor [19:35:42]Read from MH i2c: 01 [19:35:42]MH_I2C_Read... [19:35:42]*** Stop cut motor [19:35:42]*** Cut end [19:35:42]Read from MH i2c: 01 07 00 [19:35:42]MH_I2C_Read... [19:35:42]Read from MH i2c: 01 07 00 74 02 00 00 00 00 00 FF 0F 8B [19:35:42]process_action close_receipt done [19:35:42]requested_data is exist [19:35:42]produce_requested_data [19:35:42]requested_item fm.sn is exist - process it [19:35:42]wFMCommunicate request_size=4 [19:35:42]MH_SAM_APDU [19:35:42]CAPDU: 80 11 00 00 [19:35:42]Write to MH i2c: E2 08 00 75 02 80 11 00 00 00 00 00 00 F1 [19:35:42]Write i2c OK [19:35:42]MH_I2C_Read... [19:35:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:35:42]Read from MH i2c: E2 [19:35:42]MH_I2C_Read... [19:35:42]Read from MH i2c: E2 17 00 [19:35:42]MH_I2C_Read... [19:35:42]Read from MH i2c: E2 17 00 75 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 40 [19:35:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:35:42]wFMCommunicate OK [19:35:42]requested_item fd.num is exist - process it [19:35:42]SAM_PROTO_GetFieldsCounters [19:35:42]wFMCommunicate request_size=4 [19:35:42]MH_SAM_APDU [19:35:42]CAPDU: 80 13 00 00 [19:35:42]Write to MH i2c: E2 08 00 76 02 80 13 00 00 00 00 00 00 F4 [19:35:42]Write i2c OK [19:35:42]MH_I2C_Read... [19:35:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:35:42]Read from MH i2c: E2 [19:35:42]MH_I2C_Read... [19:35:42]Read from MH i2c: E2 62 00 [19:35:42]MH_I2C_Read... [19:35:42]Read from MH i2c: E2 62 00 76 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 3C 70 00 00 0E 04 04 00 72 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 62 [19:35:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 3C 70 00 00 0E 04 04 00 72 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 [19:35:42]wFMCommunicate OK [19:35:42]SAM_PROTO_GetFieldsCounters done [19:35:42]requested_item shift.num is exist - process it [19:35:42]requested_item shift.opened is exist - process it [19:35:42]req_shift_opened [19:35:42]FM_GetShiftState [19:35:42]SAM_PROTO_GetShiftState [19:35:42]wFMCommunicate request_size=4 [19:35:42]MH_SAM_APDU [19:35:42]CAPDU: 80 13 01 00 [19:35:42]Write to MH i2c: E2 08 00 77 02 80 13 01 00 00 00 00 00 F6 [19:35:42]Write i2c OK [19:35:42]MH_I2C_Read... [19:35:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:35:42]Read from MH i2c: E2 [19:35:42]MH_I2C_Read... [19:35:42]Read from MH i2c: E2 0E 00 [19:35:42]MH_I2C_Read... [19:35:42]Read from MH i2c: E2 0E 00 77 02 00 09 00 01 17 88 19 66 00 00 00 00 90 00 20 [19:35:42]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [19:35:42]wFMCommunicate OK [19:35:42]SAM_PROTO_GetShiftState done [19:35:42]FM_GetShiftState done [19:35:42]req_shift_opened done [19:35:42]requested_item shift.open_date is exist - process it [19:35:42]req_shift_open_date [19:35:42]req_shift_open_date done [19:35:42]produce_requested_data done [19:35:42]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28732,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271} [19:35:42]process_action_free close_receipt [19:35:42]json_value_free [19:35:42]json_value_free done [19:35:42]process_json_proto returns [19:35:42]Send response to host [19:35:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28732,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271}}} [19:35:42]free response buf [19:35:42]execute_script done [19:35:42]execute_script returns [19:35:42]free content buf [19:35:42]Sock 9.Close socket [19:35:42]Sock 9.Thread stoped [19:35:46]OFD Sender: No OFD packet to send [19:35:51]OFD Sender: No OFD packet to send [19:35:56]OFD Sender: No OFD packet to send [19:36:01]OFD Sender: No OFD packet to send [19:36:06]OFD Sender: No OFD packet to send [19:36:11]OFD Sender: No OFD packet to send [19:36:16]OFD Sender: No OFD packet to send [19:36:21]OFD Sender: No OFD packet to send [19:36:26]OFD Sender: No OFD packet to send [19:36:31]OFD Sender: No OFD packet to send [19:36:36]OFD Sender: No OFD packet to send [19:36:41]OFD Sender: No OFD packet to send [19:36:46]OFD Sender: No OFD packet to send [19:36:51]OFD Sender: No OFD packet to send [19:36:56]OFD Sender: No OFD packet to send [19:37:01]OFD Sender: No OFD packet to send [19:37:06]OFD Sender: No OFD packet to send [19:37:11]OFD Sender: No OFD packet to send [19:37:16]OFD Sender: No OFD packet to send [19:37:21]OFD Sender: No OFD packet to send [19:37:26]OFD Sender: No OFD packet to send [19:37:31]OFD Sender: No OFD packet to send [19:37:36]OFD Sender: No OFD packet to send [19:37:41]OFD Sender: No OFD packet to send [19:37:46]OFD Sender: No OFD packet to send [19:37:51]OFD Sender: No OFD packet to send [19:37:56]OFD Sender: No OFD packet to send [19:38:01]OFD Sender: No OFD packet to send [19:38:06]OFD Sender: No OFD packet to send [19:38:11]OFD Sender: No OFD packet to send [19:38:16]OFD Sender: No OFD packet to send [19:38:21]OFD Sender: No OFD packet to send [19:38:26]OFD Sender: No OFD packet to send [19:38:31]OFD Sender: No OFD packet to send [19:38:36]OFD Sender: No OFD packet to send [19:38:41]OFD Sender: No OFD packet to send [19:38:46]OFD Sender: No OFD packet to send [19:38:51]OFD Sender: No OFD packet to send [19:38:56]OFD Sender: No OFD packet to send [19:39:01]OFD Sender: No OFD packet to send [19:39:06]OFD Sender: No OFD packet to send [19:39:11]OFD Sender: No OFD packet to send [19:39:16]OFD Sender: No OFD packet to send [19:39:21]OFD Sender: No OFD packet to send [19:39:26]OFD Sender: No OFD packet to send [19:39:31]OFD Sender: No OFD packet to send [19:39:36]OFD Sender: No OFD packet to send [19:39:41]OFD Sender: No OFD packet to send [19:39:46]OFD Sender: No OFD packet to send [19:39:51]OFD Sender: No OFD packet to send [19:39:56]OFD Sender: No OFD packet to send [19:40:01]OFD Sender: No OFD packet to send [19:40:06]OFD Sender: No OFD packet to send [19:40:11]OFD Sender: No OFD packet to send [19:40:16]OFD Sender: No OFD packet to send [19:40:21]OFD Sender: No OFD packet to send [19:40:26]OFD Sender: No OFD packet to send [19:40:31]OFD Sender: No OFD packet to send [19:40:36]OFD Sender: No OFD packet to send [19:40:41]OFD Sender: No OFD packet to send [19:40:46]OFD Sender: No OFD packet to send [19:40:51]OFD Sender: No OFD packet to send [19:40:54]accept exits with 7 [19:40:54]New connection [19:40:54]New thread 3066928484 created [19:40:54]Thread 3066785124 joined [19:40:54]Waiting for new connection... [19:40:54] Sock 7.Parse request [19:40:54]Sock 7.Check first char [19:40:54]Sock 7.First char is OK [19:40:54]request: POST /json_proto HTTP/1.0 [19:40:54]Method: POST [19:40:54]URL: /json_proto [19:40:54]Method is POST - this is cgi request [19:40:54]url: /json_proto [19:40:54]query_string will be loaded in cgi processing [19:40:54]execute_cgi json_proto POST (null) [19:40:54]execute_cgi path=json_proto method=POST [19:40:54]POST find Content-Length [19:40:54]Host: 172.17.33.3:8080 [19:40:54]Content-Length: 677 [19:40:54]Content-Type: application/json [19:40:54] [19:40:54]POST finish read [19:40:54]Found Content-Length = 677 [19:40:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347070", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 5.450, "sum" : 350.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:40:54]execute_script... [19:40:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347070", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 5.450, "sum" : 350.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:40:54]POST & json_proto [19:40:54]process_json_proto [19:40:54]json parsed OK: [19:40:54]protocol is kg_v1.0 [19:40:54]action value=close_receipt [19:40:54]process_action close_receipt [19:40:54]cmd_close_receipt [19:40:54]MH_GetDate [19:40:54]Write to MH i2c: F0 00 00 78 02 69 [19:40:54]Write i2c OK [19:40:54]MH_I2C_Read... [19:40:54]Read from MH i2c: F0 [19:40:54]MH_I2C_Read... [19:40:54]Read from MH i2c: F0 09 00 [19:40:54]MH_I2C_Read... [19:40:54]Read from MH i2c: F0 09 00 78 02 00 47 8E 19 66 23 5B 8F 65 38 [19:40:54]GetLastDocTimeStamp 1712950539 [19:40:54]current date 1712950855 [19:40:54]FM_GetShiftState [19:40:54]SAM_PROTO_GetShiftState [19:40:54]wFMCommunicate request_size=4 [19:40:54]MH_SAM_APDU [19:40:54]CAPDU: 80 13 01 00 [19:40:54]Write to MH i2c: E2 08 00 79 02 80 13 01 00 00 00 00 00 F8 [19:40:54]Write i2c OK [19:40:54]MH_I2C_Read... [19:40:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:40:54]Read from MH i2c: E2 [19:40:54]MH_I2C_Read... [19:40:54]Read from MH i2c: E2 0E 00 [19:40:54]MH_I2C_Read... [19:40:54]Read from MH i2c: E2 0E 00 79 02 00 09 00 01 17 88 19 66 00 00 00 00 90 00 22 [19:40:54]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [19:40:54]wFMCommunicate OK [19:40:54]SAM_PROTO_GetShiftState done [19:40:54]FM_GetShiftState done [19:40:54]opened in 1712949271 [19:40:54]opened+sec_in_day 1713035671 [19:40:54]quantity*price = 35043 [19:40:54]sum+1 = 35045 [19:40:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.21 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 7 12.04.2024 19:40 Смена: 114 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28733 ФПД: 251801062329222 1/tax-web-control/client/api/v1/ticket?date=20240412T194055&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28733&fm=251801062329222&tin=02508201610067®Number=0000138879044617&sum=35000 [19:40:55]StoreToDocumentArchive [19:40:55]shift 114 fd 28733 [19:40:55]save to /storage/0114/doc_00028733 [19:40:55]save last doc name /storage/0114/doc_00028733 to /storage/kkm_last_doc_name [19:40:55]save OK [19:40:55]Clear old archive folders... [19:40:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:40:55]tlvbuf is 011AF0A0 [19:40:55]SAM_PROTO_ClearQueue [19:40:55]wFMCommunicate request_size=4 [19:40:55]MH_SAM_APDU [19:40:55]CAPDU: 80 09 00 00 [19:40:55]Write to MH i2c: E2 08 00 86 02 80 09 00 00 00 00 00 00 FA [19:40:55]Write i2c OK [19:40:55]MH_I2C_Read... [19:40:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:40:55]Read from MH i2c: E2 [19:40:55]MH_I2C_Read... [19:40:55]Read from MH i2c: E2 03 00 [19:40:55]MH_I2C_Read... [19:40:55]Read from MH i2c: E2 03 00 86 02 00 90 00 FC [19:40:55]RAPDU: 90 00 [19:40:55]wFMCommunicate OK [19:40:55]SAM_PROTO_ClearQueue done [19:40:55]KKMCreateOFDPacket [19:40:55]OFDProtocolAddRootSTLVToBuf [19:40:55]FM_MakeSignedData [19:40:55]FM_MakeSignedData [19:40:55]SAM_PROTO_SignData [19:40:55]wFMCommunicate request_size=4 [19:40:55]MH_SAM_APDU [19:40:55]CAPDU: 80 0D 01 02 [19:40:55]Write to MH i2c: E2 08 00 87 02 80 0D 01 02 00 00 00 00 02 [19:40:55]Write i2c OK [19:40:55]MH_I2C_Read... [19:40:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:40:55]Read from MH i2c: E2 [19:40:55]MH_I2C_Read... [19:40:55]Read from MH i2c: E2 03 00 [19:40:55]MH_I2C_Read... [19:40:55]Read from MH i2c: E2 03 00 87 02 00 90 00 FD [19:40:55]RAPDU: 90 00 [19:40:55]wFMCommunicate OK [19:40:55]wFMCommunicate request_size=255 [19:40:55]MH_SAM_APDU [19:40:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4A 15 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 E4 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 47 8E 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3D 70 00 00 35 04 06 00 E5 [19:40:55]Write to MH i2c: E2 02 01 88 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4A 15 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 E4 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 47 8E 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3D 70 00 00 35 04 06 00 E5 00 00 D8 [19:40:55]Write i2c OK [19:40:55]MH_I2C_Read... [19:40:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:40:55]Read from MH i2c: E2 [19:40:55]MH_I2C_Read... [19:40:55]Read from MH i2c: E2 03 00 [19:40:55]MH_I2C_Read... [19:40:55]Read from MH i2c: E2 03 00 88 02 00 90 00 FE [19:40:55]RAPDU: 90 00 [19:40:55]wFMCommunicate OK [19:40:55]wFMCommunicate request_size=10 [19:40:55]MH_SAM_APDU [19:40:55]CAPDU: 80 0D 02 02 05 03 00 DF CB 86 [19:40:55]Write to MH i2c: E2 0D 00 89 02 80 0D 02 02 05 00 03 00 DF CB 86 00 00 42 [19:40:55]Write i2c OK [19:40:55]MH_I2C_Read... [19:40:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:40:55]Read from MH i2c: E2 [19:40:55]MH_I2C_Read... [19:40:55]Read from MH i2c: E2 03 00 [19:40:55]MH_I2C_Read... [19:40:55]Read from MH i2c: E2 03 00 89 02 00 90 00 FF [19:40:55]RAPDU: 90 00 [19:40:55]wFMCommunicate OK [19:40:55]wFMCommunicate request_size=4 [19:40:55]MH_SAM_APDU [19:40:55]CAPDU: 80 0D 03 02 [19:40:55]Write to MH i2c: E2 08 00 8A 02 80 0D 03 02 00 00 00 00 07 [19:40:55]Write i2c OK [19:40:55]MH_I2C_Read... [19:40:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:40:55]Read from MH i2c: E2 [19:40:55]MH_I2C_Read... [19:40:55]Read from MH i2c: E2 0B 00 [19:40:55]MH_I2C_Read... [19:40:55]Read from MH i2c: E2 0B 00 8A 02 00 D8 8D 53 9E FB B5 37 BB 90 00 00 [19:40:55]RAPDU: D8 8D 53 9E FB B5 37 BB 90 00 [19:40:55]wFMCommunicate OK [19:40:55]SAM_PROTO_SignData done [19:40:55]FM_MakeSignedData done [19:40:55]CreateOFDProtocolMessage [19:40:55]wFMCommunicate request_size=4 [19:40:55]MH_SAM_APDU [19:40:55]CAPDU: 80 11 00 00 [19:40:55]Write to MH i2c: E2 08 00 8B 02 80 11 00 00 00 00 00 00 07 [19:40:55]Write i2c OK [19:40:55]MH_I2C_Read... [19:40:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:40:55]Read from MH i2c: E2 [19:40:55]MH_I2C_Read... [19:40:55]Read from MH i2c: E2 17 00 [19:40:55]MH_I2C_Read... [19:40:55]Read from MH i2c: E2 17 00 8B 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 56 [19:40:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:40:55]wFMCommunicate OK [19:40:55]CreateOFDProtocolMessage done [19:40:55]OFDSenderStorePacket 28733 [19:40:55]StoreOFDPacket docnum=28733 [19:40:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 0F D2 07 01 C0 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 35 FF 03 08 00 03 4A 15 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 E4 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 47 8E 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3D 70 00 00 35 04 06 00 E5 03 00 DF CB 86 D8 8D 53 9E FB B5 37 BB [19:40:55]CheckFolder [19:40:55]dirname=/storage/ofd_packets [19:40:55]CheckFolder done [19:40:55]ProducePacketName [19:40:55]name=ofd_packets/00028733 [19:40:55]NVStorageSaveData ofd_packets/00028733 [19:40:55]File name is /storage/ofd_packets/00028733 [19:40:55]Write 301 bytes [19:40:55]NVStorageSaveData done [19:40:55]OFDSenderStorePacket done [19:40:55]KKMCreateOFDPacket done [19:40:55]NVStorageSaveData kkm_last_timestamp [19:40:55]File name is /storage/kkm_last_timestamp [19:40:55]Write 4 bytes [19:40:55]NVStorageSaveData done [19:40:55]ExternCall_PrintAddStr [19:40:55]wPrintStart [19:40:55]Write to MH i2c: 01 00 00 8C 02 8E [19:40:55]Write i2c OK [19:40:55]MH_I2C_Read... [19:40:55]Read from MH i2c: 01 [19:40:55]MH_I2C_Read... [19:40:55]Read from MH i2c: 01 07 00 [19:40:55]MH_I2C_Read... [19:40:55]Read from MH i2c: 01 07 00 8C 02 00 00 00 00 00 FF 0F A3 [19:40:55]RasterBufferAndPrint [19:40:55]line Счет N : (1)347070 [19:40:55]line ИНН: 02508201610067 [19:40:55]line Контрольно-Кассовый Чек [19:40:55]line ПРОДАЖА [19:40:55]line ТРК (МРК, ГНК) : 32 [19:40:55]line Товар: 2710124130 [19:40:55]line Аи-92-К-5 [19:40:55]line 5.450 * 64.30 [19:40:55]line = 350.44 [19:40:55]line НДС 12% НСП 1% [19:40:55]line > о реализуемом товаре [19:40:55]line ОКРУГЛЕНИЕ: -0.44 [19:40:55]line ИТОГО: 350.00 [19:40:55]line Внесено: 350.00 [19:40:55]line СДАЧА: 0.00 [19:40:55]line НСП 1% : 3.10 [19:40:55]line НДС 12% : 37.21 [19:40:55]line Наличными: 350.00 [19:40:55]line Безнал.: 0.00 [19:40:55]line Место: АЗС № 108 "Партнер Нефть" [19:40:55]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [19:40:55]line СНО: Общий режим [19:40:55]line Чек 7 12.04.2024 19:40 [19:40:55]line Смена: 114 ФФД: 1.0 [19:40:55]line ЗНМ: 0300000027 [19:40:55]line РНМ: 0000138879044617 [19:40:55]line Версия ККМ: 001 [19:40:55]line ФМ: 0000000000963154 [19:40:55]line ФД: 28733 [19:40:55]line ФПД: 251801062329222 [19:40:56]line 1/tax-web-control/client/api/v1/ticket?date=20240412T194055&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28733&fm=251801062329222&tin=02508201610067®Number=0000138879044617&sum=35000 [19:40:56]OFD Sender: Processing packet 28733 [packets to send 8, broken 7] [19:40:56]ProducePacketName [19:40:56]name=ofd_packets/00028733 [19:40:56]OFD Sender: To server: pG, [19:40:56]CommunicateWithHost lk.salyk.kg:30040 [19:40:56]ConnectInit lk.salyk.kg [19:40:56]written 0, free lines is 4095 [19:40:56]Connected sock=10 [19:40:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 0F D2 07 01 C0 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 35 FF 03 08 00 03 4A 15 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 E4 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 47 8E 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3D 70 00 00 35 04 06 00 E5 03 00 DF CB 86 D8 8D 53 9E FB B5 37 BB [19:40:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 92 3D 47 00 21 88 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3D 70 00 00 F4 03 04 00 F0 38 19 66 B6 04 01 00 00 33 5A F4 67 30 12 9C 4E [19:40:56]CommunicateWithHost err = 0 [19:40:56]CheckOFDResponse [19:40:56]1017 (14) - 77093643461234 [19:40:56]1041 (16) - 0000000000963154 [19:40:56]1040 (4) - 28733 [19:40:56]1012 (4) - 12.04.2024 13:36 [19:40:56]1206 (1) - 0 [19:40:56]OFD Sender: Remove packet 28733 [19:40:56]ProducePacketName [19:40:56]name=ofd_packets/00028733 [19:40:56]NVStorageDeleteData [19:40:56]Write to MH i2c: 01 00 00 B6 02 B8 [19:40:56]Write i2c OK [19:40:56]MH_I2C_Read... [19:40:56]Read from MH i2c: 01 [19:40:56]MH_I2C_Read... [19:40:56]Read from MH i2c: 01 07 00 [19:40:56]MH_I2C_Read... [19:40:56]Read from MH i2c: 01 07 00 B6 02 00 00 00 00 00 C8 0C 93 [19:40:56]RasterBufferAndPrint [19:40:56]line [19:40:56]line [19:40:56]line [19:40:56]line [19:40:56]line [19:40:56]written 0, free lines is 3276 [19:40:56]MH_Cut [19:40:56]Write to MH i2c: D1 01 00 BD 02 01 91 [19:40:56]Write i2c OK [19:40:56]MH_I2C_Read... [19:40:56]Read from MH i2c: D1 [19:40:56]MH_I2C_Read... [19:40:56]Read from MH i2c: D1 01 00 [19:40:56]MH_I2C_Read... [19:40:56]Read from MH i2c: D1 01 00 BD 02 00 90 [19:40:56]Write to MH i2c: 01 00 00 BE 02 C0 [19:40:56]Write i2c OK [19:40:56]MH_I2C_Read... [19:40:56]OFD Sender: No OFD packet to send [19:40:57]*** Cut start [19:40:57]*** Partial cut [19:40:57]*** CUTSNS_PIN = 1 [19:40:57]*** CUTSNS_PIN = 0 [19:40:57]*** Brake cut motor [19:40:58]Read from MH i2c: 01 [19:40:58]MH_I2C_Read... [19:40:58]*** Stop cut motor [19:40:58]*** Cut end [19:40:58]Read from MH i2c: 01 07 00 [19:40:58]MH_I2C_Read... [19:40:58]Read from MH i2c: 01 07 00 BE 02 00 00 00 00 00 FF 0F D5 [19:40:58]process_action close_receipt done [19:40:58]requested_data is exist [19:40:58]produce_requested_data [19:40:58]requested_item fm.sn is exist - process it [19:40:58]wFMCommunicate request_size=4 [19:40:58]MH_SAM_APDU [19:40:58]CAPDU: 80 11 00 00 [19:40:58]Write to MH i2c: E2 08 00 BF 02 80 11 00 00 00 00 00 00 3B [19:40:58]Write i2c OK [19:40:58]MH_I2C_Read... [19:40:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:40:58]Read from MH i2c: E2 [19:40:58]MH_I2C_Read... [19:40:58]Read from MH i2c: E2 17 00 [19:40:58]MH_I2C_Read... [19:40:58]Read from MH i2c: E2 17 00 BF 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 8A [19:40:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:40:58]wFMCommunicate OK [19:40:58]requested_item fd.num is exist - process it [19:40:58]SAM_PROTO_GetFieldsCounters [19:40:58]wFMCommunicate request_size=4 [19:40:58]MH_SAM_APDU [19:40:58]CAPDU: 80 13 00 00 [19:40:58]Write to MH i2c: E2 08 00 C0 02 80 13 00 00 00 00 00 00 3E [19:40:58]Write i2c OK [19:40:58]MH_I2C_Read... [19:40:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:40:58]Read from MH i2c: E2 [19:40:58]MH_I2C_Read... [19:40:58]Read from MH i2c: E2 62 00 [19:40:58]MH_I2C_Read... [19:40:58]Read from MH i2c: E2 62 00 C0 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 3D 70 00 00 0E 04 04 00 72 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 B0 [19:40:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 3D 70 00 00 0E 04 04 00 72 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 [19:40:58]wFMCommunicate OK [19:40:58]SAM_PROTO_GetFieldsCounters done [19:40:58]requested_item shift.num is exist - process it [19:40:58]requested_item shift.opened is exist - process it [19:40:58]req_shift_opened [19:40:58]FM_GetShiftState [19:40:58]SAM_PROTO_GetShiftState [19:40:58]wFMCommunicate request_size=4 [19:40:58]MH_SAM_APDU [19:40:58]CAPDU: 80 13 01 00 [19:40:58]Write to MH i2c: E2 08 00 C1 02 80 13 01 00 00 00 00 00 40 [19:40:58]Write i2c OK [19:40:58]MH_I2C_Read... [19:40:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:40:58]Read from MH i2c: E2 [19:40:58]MH_I2C_Read... [19:40:58]Read from MH i2c: E2 0E 00 [19:40:58]MH_I2C_Read... [19:40:58]Read from MH i2c: E2 0E 00 C1 02 00 09 00 01 17 88 19 66 00 00 00 00 90 00 6A [19:40:58]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [19:40:58]wFMCommunicate OK [19:40:58]SAM_PROTO_GetShiftState done [19:40:58]FM_GetShiftState done [19:40:58]req_shift_opened done [19:40:58]requested_item shift.open_date is exist - process it [19:40:58]req_shift_open_date [19:40:58]req_shift_open_date done [19:40:58]produce_requested_data done [19:40:58]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28733,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271} [19:40:58]process_action_free close_receipt [19:40:58]json_value_free [19:40:58]json_value_free done [19:40:58]process_json_proto returns [19:40:58]Send response to host [19:40:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28733,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271}}} [19:40:58]free response buf [19:40:58]execute_script done [19:40:58]execute_script returns [19:40:58]free content buf [19:40:58]Sock 7.Close socket [19:40:58]Sock 7.Thread stoped [19:41:02]OFD Sender: No OFD packet to send [19:41:07]OFD Sender: No OFD packet to send [19:41:12]OFD Sender: No OFD packet to send [19:41:17]OFD Sender: No OFD packet to send [19:41:22]OFD Sender: No OFD packet to send [19:41:27]OFD Sender: No OFD packet to send [19:41:32]OFD Sender: No OFD packet to send [19:41:37]OFD Sender: No OFD packet to send [19:41:42]OFD Sender: No OFD packet to send [19:41:47]OFD Sender: No OFD packet to send [19:41:52]OFD Sender: No OFD packet to send [19:41:57]OFD Sender: No OFD packet to send [19:42:02]OFD Sender: No OFD packet to send [19:42:07]OFD Sender: No OFD packet to send [19:42:12]OFD Sender: No OFD packet to send [19:42:17]OFD Sender: No OFD packet to send [19:42:22]OFD Sender: No OFD packet to send [19:42:27]OFD Sender: No OFD packet to send [19:42:32]OFD Sender: No OFD packet to send [19:42:37]OFD Sender: No OFD packet to send [19:42:42]OFD Sender: No OFD packet to send [19:42:47]OFD Sender: No OFD packet to send [19:42:52]OFD Sender: No OFD packet to send [19:42:57]OFD Sender: No OFD packet to send [19:43:02]OFD Sender: No OFD packet to send [19:43:07]OFD Sender: No OFD packet to send [19:43:12]OFD Sender: No OFD packet to send [19:43:17]OFD Sender: No OFD packet to send [19:43:22]OFD Sender: No OFD packet to send [19:43:27]OFD Sender: No OFD packet to send [19:43:32]OFD Sender: No OFD packet to send [19:43:37]OFD Sender: No OFD packet to send [19:43:42]OFD Sender: No OFD packet to send [19:43:47]OFD Sender: No OFD packet to send [19:43:52]OFD Sender: No OFD packet to send [19:43:57]OFD Sender: No OFD packet to send [19:44:02]OFD Sender: No OFD packet to send [19:44:07]OFD Sender: No OFD packet to send [19:44:12]OFD Sender: No OFD packet to send [19:44:17]OFD Sender: No OFD packet to send [19:44:22]OFD Sender: No OFD packet to send [19:44:27]OFD Sender: No OFD packet to send [19:44:32]OFD Sender: No OFD packet to send [19:44:37]OFD Sender: No OFD packet to send [19:44:42]OFD Sender: No OFD packet to send [19:44:47]OFD Sender: No OFD packet to send [19:44:52]OFD Sender: No OFD packet to send [19:44:57]OFD Sender: No OFD packet to send [19:45:02]OFD Sender: No OFD packet to send [19:45:07]OFD Sender: No OFD packet to send [19:45:12]OFD Sender: No OFD packet to send [19:45:17]OFD Sender: No OFD packet to send [19:45:22]OFD Sender: No OFD packet to send [19:45:27]OFD Sender: No OFD packet to send [19:45:32]OFD Sender: No OFD packet to send [19:45:37]OFD Sender: No OFD packet to send [19:45:42]OFD Sender: No OFD packet to send [19:45:47]OFD Sender: No OFD packet to send [19:45:52]OFD Sender: No OFD packet to send [19:45:57]OFD Sender: No OFD packet to send [19:46:02]OFD Sender: No OFD packet to send [19:46:07]OFD Sender: No OFD packet to send [19:46:12]OFD Sender: No OFD packet to send [19:46:17]OFD Sender: No OFD packet to send [19:46:22]OFD Sender: No OFD packet to send [19:46:27]OFD Sender: No OFD packet to send [19:46:32]OFD Sender: No OFD packet to send [19:46:37]OFD Sender: No OFD packet to send [19:46:42]OFD Sender: No OFD packet to send [19:46:47]OFD Sender: No OFD packet to send [19:46:52]OFD Sender: No OFD packet to send [19:46:57]OFD Sender: No OFD packet to send [19:47:02]OFD Sender: No OFD packet to send [19:47:07]OFD Sender: No OFD packet to send [19:47:12]OFD Sender: No OFD packet to send [19:47:17]OFD Sender: No OFD packet to send [19:47:22]OFD Sender: No OFD packet to send [19:47:27]OFD Sender: No OFD packet to send [19:47:32]OFD Sender: No OFD packet to send [19:47:37]OFD Sender: No OFD packet to send [19:47:42]OFD Sender: No OFD packet to send [19:47:47]OFD Sender: No OFD packet to send [19:47:52]OFD Sender: No OFD packet to send [19:47:53]int [19:47:53]Write to MH i2c: 01 00 00 C2 02 C4 [19:47:53]*** FLAG_PRN_KEY set [19:47:53]Write i2c OK [19:47:53]MH_I2C_Read... [19:47:53]Read from MH i2c: 01 [19:47:53]MH_I2C_Read... [19:47:53]Read from MH i2c: 01 07 00 [19:47:53]MH_I2C_Read... [19:47:53]Read from MH i2c: 01 07 00 C2 02 00 08 00 00 00 FF 0F E1 [19:47:53]state=0 [19:47:53]Key pressed [19:47:53]Feed [19:47:53]Write to MH i2c: D8 00 00 C3 02 9C [19:47:53]Write i2c OK [19:47:53]MH_I2C_Read... [19:47:53]Read from MH i2c: D8 [19:47:53]MH_I2C_Read... [19:47:53]Read from MH i2c: D8 01 00 [19:47:53]MH_I2C_Read... [19:47:53]Read from MH i2c: D8 01 00 C3 02 00 9D [19:47:53]int [19:47:53]Write to MH i2c: 01 00 00 C4 02 C6 [19:47:53]Write i2c OK [19:47:53]MH_I2C_Read... [19:47:53]Read from MH i2c: 01 [19:47:53]MH_I2C_Read... [19:47:53]Read from MH i2c: 01 07 00 [19:47:53]MH_I2C_Read... [19:47:53]Read from MH i2c: 01 07 00 C4 02 00 48 00 00 00 3C 00 51 [19:47:53]state=2 [19:47:53]Key pressed [19:47:53]int [19:47:53]Write to MH i2c: 01 00 00 C5 02 C7 [19:47:53]*** FLAG_PRN_KEY reset [19:47:53]Write i2c OK [19:47:53]MH_I2C_Read... [19:47:53]Read from MH i2c: 01 [19:47:53]MH_I2C_Read... [19:47:53]Read from MH i2c: 01 07 00 [19:47:53]MH_I2C_Read... [19:47:53]Read from MH i2c: 01 07 00 C5 02 00 00 00 00 00 F6 0F D3 [19:47:53]state=2 [19:47:53]Stop feed [19:47:57]OFD Sender: No OFD packet to send [19:48:02]OFD Sender: No OFD packet to send [19:48:07]OFD Sender: No OFD packet to send [19:48:12]OFD Sender: No OFD packet to send [19:48:17]OFD Sender: No OFD packet to send [19:48:22]OFD Sender: No OFD packet to send [19:48:27]OFD Sender: No OFD packet to send [19:48:32]OFD Sender: No OFD packet to send [19:48:37]OFD Sender: No OFD packet to send [19:48:42]OFD Sender: No OFD packet to send [19:48:47]OFD Sender: No OFD packet to send [19:48:49]int [19:48:49]Write to MH i2c: 01 00 00 C6 02 C8 [19:48:49]*** FLAG_PRN_KEY set [19:48:49]Write i2c OK [19:48:49]MH_I2C_Read... [19:48:49]Read from MH i2c: 01 [19:48:49]MH_I2C_Read... [19:48:49]Read from MH i2c: 01 07 00 [19:48:49]MH_I2C_Read... [19:48:49]Read from MH i2c: 01 07 00 C6 02 00 08 00 00 00 FF 0F E5 [19:48:49]state=0 [19:48:49]Key pressed [19:48:49]Feed [19:48:49]Write to MH i2c: D8 00 00 C7 02 A0 [19:48:49]Write i2c OK [19:48:49]MH_I2C_Read... [19:48:49]Read from MH i2c: D8 [19:48:49]MH_I2C_Read... [19:48:49]Read from MH i2c: D8 01 00 [19:48:49]MH_I2C_Read... [19:48:49]Read from MH i2c: D8 01 00 C7 02 00 A1 [19:48:49]int [19:48:49]Write to MH i2c: 01 00 00 C8 02 CA [19:48:49]Write i2c OK [19:48:49]MH_I2C_Read... [19:48:49]Read from MH i2c: 01 [19:48:49]MH_I2C_Read... [19:48:49]Read from MH i2c: 01 07 00 [19:48:49]MH_I2C_Read... [19:48:49]Read from MH i2c: 01 07 00 C8 02 00 48 00 00 00 3D 00 56 [19:48:49]state=2 [19:48:49]Key pressed [19:48:49]int [19:48:49]Write to MH i2c: 01 00 00 C9 02 CB [19:48:49]*** FLAG_PRN_KEY reset [19:48:49]Write i2c OK [19:48:49]MH_I2C_Read... [19:48:49]Read from MH i2c: 01 [19:48:49]MH_I2C_Read... [19:48:49]Read from MH i2c: 01 07 00 [19:48:49]MH_I2C_Read... [19:48:49]Read from MH i2c: 01 07 00 C9 02 00 00 00 00 00 F5 0F D6 [19:48:49]state=2 [19:48:49]Stop feed [19:48:49]int [19:48:49]Write to MH i2c: 01 00 00 CA 02 CC [19:48:49]*** FLAG_PRN_KEY set [19:48:49]Write i2c OK [19:48:49]MH_I2C_Read... [19:48:49]Read from MH i2c: 01 [19:48:49]MH_I2C_Read... [19:48:49]Read from MH i2c: 01 07 00 [19:48:49]MH_I2C_Read... [19:48:49]Read from MH i2c: 01 07 00 CA 02 00 08 00 00 00 FF 0F E9 [19:48:49]state=0 [19:48:49]Key pressed [19:48:49]Feed [19:48:49]Write to MH i2c: D8 00 00 CB 02 A4 [19:48:49]Write i2c OK [19:48:49]MH_I2C_Read... [19:48:49]Read from MH i2c: D8 [19:48:49]MH_I2C_Read... [19:48:49]Read from MH i2c: D8 01 00 [19:48:49]MH_I2C_Read... [19:48:49]Read from MH i2c: D8 01 00 CB 02 00 A5 [19:48:49]int [19:48:49]Write to MH i2c: 01 00 00 CC 02 CE [19:48:49]Write i2c OK [19:48:49]MH_I2C_Read... [19:48:49]Read from MH i2c: 01 [19:48:49]MH_I2C_Read... [19:48:49]Read from MH i2c: 01 07 00 [19:48:49]MH_I2C_Read... [19:48:49]Read from MH i2c: 01 07 00 CC 02 00 48 00 00 00 3C 00 59 [19:48:49]state=2 [19:48:49]Key pressed [19:48:49]int [19:48:49]Write to MH i2c: 01 00 00 CD 02 CF [19:48:49]*** FLAG_PRN_KEY reset [19:48:49]Write i2c OK [19:48:49]MH_I2C_Read... [19:48:49]Read from MH i2c: 01 [19:48:49]MH_I2C_Read... [19:48:49]Read from MH i2c: 01 07 00 [19:48:49]MH_I2C_Read... [19:48:49]Read from MH i2c: 01 07 00 CD 02 00 00 00 00 00 F5 0F DA [19:48:49]state=2 [19:48:49]Stop feed [19:48:49]int [19:48:49]Write to MH i2c: 01 00 00 CE 02 D0 [19:48:49]*** FLAG_PRN_KEY set [19:48:49]Write i2c OK [19:48:49]MH_I2C_Read... [19:48:49]Read from MH i2c: 01 [19:48:49]MH_I2C_Read... [19:48:49]Read from MH i2c: 01 07 00 [19:48:49]MH_I2C_Read... [19:48:49]Read from MH i2c: 01 07 00 CE 02 00 08 00 00 00 FF 0F ED [19:48:49]state=0 [19:48:49]Key pressed [19:48:49]Feed [19:48:49]Write to MH i2c: D8 00 00 CF 02 A8 [19:48:49]Write i2c OK [19:48:49]MH_I2C_Read... [19:48:49]Read from MH i2c: D8 [19:48:49]MH_I2C_Read... [19:48:49]Read from MH i2c: D8 01 00 [19:48:49]MH_I2C_Read... [19:48:49]Read from MH i2c: D8 01 00 CF 02 00 A9 [19:48:49]int [19:48:49]Write to MH i2c: 01 00 00 D0 02 D2 [19:48:49]Write i2c OK [19:48:49]MH_I2C_Read... [19:48:49]Read from MH i2c: 01 [19:48:49]MH_I2C_Read... [19:48:49]Read from MH i2c: 01 07 00 [19:48:49]MH_I2C_Read... [19:48:49]Read from MH i2c: 01 07 00 D0 02 00 48 00 00 00 3D 00 5E [19:48:49]state=2 [19:48:49]Key pressed [19:48:49]int [19:48:49]Write to MH i2c: 01 00 00 D1 02 D3 [19:48:49]*** FLAG_PRN_KEY reset [19:48:49]Write i2c OK [19:48:49]MH_I2C_Read... [19:48:49]Read from MH i2c: 01 [19:48:49]MH_I2C_Read... [19:48:49]Read from MH i2c: 01 07 00 [19:48:49]MH_I2C_Read... [19:48:49]Read from MH i2c: 01 07 00 D1 02 00 00 00 00 00 F6 0F DF [19:48:49]state=2 [19:48:49]Stop feed [19:48:52]OFD Sender: No OFD packet to send [19:48:57]OFD Sender: No OFD packet to send [19:49:02]OFD Sender: No OFD packet to send [19:49:07]OFD Sender: No OFD packet to send [19:49:12]OFD Sender: No OFD packet to send [19:49:17]OFD Sender: No OFD packet to send [19:49:20]accept exits with 9 [19:49:20]New connection [19:49:20]New thread 3066785124 created [19:49:20]Thread 3066928484 joined [19:49:20]Waiting for new connection... [19:49:20] Sock 9.Parse request [19:49:20]Sock 9.Check first char [19:49:20]Sock 9.First char is OK [19:49:20]request: POST /json_proto HTTP/1.0 [19:49:20]Method: POST [19:49:20]URL: /json_proto [19:49:20]Method is POST - this is cgi request [19:49:20]url: /json_proto [19:49:20]query_string will be loaded in cgi processing [19:49:20]execute_cgi json_proto POST (null) [19:49:20]execute_cgi path=json_proto method=POST [19:49:20]POST find Content-Length [19:49:20]Host: 172.17.33.3:8080 [19:49:20]Content-Length: 843 [19:49:20]Content-Type: application/json [19:49:20] [19:49:20]POST finish read [19:49:20]Found Content-Length = 843 [19:49:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347072", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 15.560, "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" ] } } [19:49:20]execute_script... [19:49: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)347072", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 15.560, "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" ] } } [19:49:20]POST & json_proto [19:49:20]process_json_proto [19:49:20]json parsed OK: [19:49:20]protocol is kg_v1.0 [19:49:20]action value=close_receipt [19:49:20]process_action close_receipt [19:49:20]cmd_close_receipt [19:49:20]MH_GetDate [19:49:20]Write to MH i2c: F0 00 00 D2 02 C3 [19:49:20]Write i2c OK [19:49:20]MH_I2C_Read... [19:49:20]Read from MH i2c: F0 [19:49:20]MH_I2C_Read... [19:49:20]Read from MH i2c: F0 09 00 [19:49:20]MH_I2C_Read... [19:49:20]Read from MH i2c: F0 09 00 D2 02 00 41 90 19 66 23 5B 8F 65 8E [19:49:20]GetLastDocTimeStamp 1712950855 [19:49:20]current date 1712951361 [19:49:20]FM_GetShiftState [19:49:20]SAM_PROTO_GetShiftState [19:49:20]wFMCommunicate request_size=4 [19:49:20]MH_SAM_APDU [19:49:20]CAPDU: 80 13 01 00 [19:49:20]Write to MH i2c: E2 08 00 D3 02 80 13 01 00 00 00 00 00 52 [19:49:20]Write i2c OK [19:49:20]MH_I2C_Read... [19:49:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:49:20]Read from MH i2c: E2 [19:49:20]MH_I2C_Read... [19:49:20]Read from MH i2c: E2 0E 00 [19:49:20]MH_I2C_Read... [19:49:20]Read from MH i2c: E2 0E 00 D3 02 00 09 00 01 17 88 19 66 00 00 00 00 90 00 7C [19:49:20]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [19:49:20]wFMCommunicate OK [19:49:20]SAM_PROTO_GetShiftState done [19:49:20]FM_GetShiftState done [19:49:20]opened in 1712949271 [19:49:20]opened+sec_in_day 1713035671 [19:49:20]quantity*price = 100050 [19:49:20]sum+1 = 100052 [19:49:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 8 12.04.2024 19:49 Смена: 114 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 28734 ФПД: 119752301581641 1/tax-web-control/client/api/v1/ticket?date=20240412T194921&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28734&fm=119752301581641&tin=02508201610067®Number=0000138879044617&sum=100051 [19:49:21]StoreToDocumentArchive [19:49:21]shift 114 fd 28734 [19:49:21]save to /storage/0114/doc_00028734 [19:49:21]save last doc name /storage/0114/doc_00028734 to /storage/kkm_last_doc_name [19:49:21]save OK [19:49:21]Clear old archive folders... [19:49:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:49:21]tlvbuf is 0121F3B0 [19:49:21]SAM_PROTO_ClearQueue [19:49:21]wFMCommunicate request_size=4 [19:49:21]MH_SAM_APDU [19:49:21]CAPDU: 80 09 00 00 [19:49:21]Write to MH i2c: E2 08 00 E0 02 80 09 00 00 00 00 00 00 54 [19:49:21]Write i2c OK [19:49:21]MH_I2C_Read... [19:49:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:49:21]Read from MH i2c: E2 [19:49:21]MH_I2C_Read... [19:49:21]Read from MH i2c: E2 03 00 [19:49:21]MH_I2C_Read... [19:49:21]Read from MH i2c: E2 03 00 E0 02 00 90 00 56 [19:49:21]RAPDU: 90 00 [19:49:21]wFMCommunicate OK [19:49:21]SAM_PROTO_ClearQueue done [19:49:21]KKMCreateOFDPacket [19:49:21]OFDProtocolAddRootSTLVToBuf [19:49:21]FM_MakeSignedData [19:49:21]FM_MakeSignedData [19:49:21]SAM_PROTO_SignData [19:49:21]wFMCommunicate request_size=4 [19:49:21]MH_SAM_APDU [19:49:21]CAPDU: 80 0D 01 02 [19:49:21]Write to MH i2c: E2 08 00 E1 02 80 0D 01 02 00 00 00 00 5C [19:49:21]Write i2c OK [19:49:21]MH_I2C_Read... [19:49:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:49:21]Read from MH i2c: E2 [19:49:21]MH_I2C_Read... [19:49:21]Read from MH i2c: E2 03 00 [19:49:21]MH_I2C_Read... [19:49:21]Read from MH i2c: E2 03 00 E1 02 00 90 00 57 [19:49:21]RAPDU: 90 00 [19:49:21]wFMCommunicate OK [19:49:21]wFMCommunicate request_size=255 [19:49:21]MH_SAM_APDU [19:49:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 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 08 00 00 00 F4 03 04 00 41 90 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3E 70 00 00 35 04 06 00 6C [19:49:21]Write to MH i2c: E2 02 01 E2 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 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 08 00 00 00 F4 03 04 00 41 90 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3E 70 00 00 35 04 06 00 6C 00 00 D2 [19:49:21]Write i2c OK [19:49:21]MH_I2C_Read... [19:49:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:49:21]Read from MH i2c: E2 [19:49:21]MH_I2C_Read... [19:49:21]Read from MH i2c: E2 03 00 [19:49:21]MH_I2C_Read... [19:49:21]Read from MH i2c: E2 03 00 E2 02 00 90 00 58 [19:49:21]RAPDU: 90 00 [19:49:21]wFMCommunicate OK [19:49:21]wFMCommunicate request_size=10 [19:49:21]MH_SAM_APDU [19:49:21]CAPDU: 80 0D 02 02 05 EA 01 65 95 49 [19:49:21]Write to MH i2c: E2 0D 00 E3 02 80 0D 02 02 05 00 EA 01 65 95 49 00 00 97 [19:49:21]Write i2c OK [19:49:21]MH_I2C_Read... [19:49:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:49:21]Read from MH i2c: E2 [19:49:21]MH_I2C_Read... [19:49:21]Read from MH i2c: E2 03 00 [19:49:21]MH_I2C_Read... [19:49:21]Read from MH i2c: E2 03 00 E3 02 00 90 00 59 [19:49:21]RAPDU: 90 00 [19:49:21]wFMCommunicate OK [19:49:21]wFMCommunicate request_size=4 [19:49:21]MH_SAM_APDU [19:49:21]CAPDU: 80 0D 03 02 [19:49:21]Write to MH i2c: E2 08 00 E4 02 80 0D 03 02 00 00 00 00 61 [19:49:21]Write i2c OK [19:49:21]MH_I2C_Read... [19:49:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:49:21]Read from MH i2c: E2 [19:49:21]MH_I2C_Read... [19:49:21]Read from MH i2c: E2 0B 00 [19:49:21]MH_I2C_Read... [19:49:21]Read from MH i2c: E2 0B 00 E4 02 00 93 BD 7A 1C 03 4F F4 AD 90 00 3B [19:49:21]RAPDU: 93 BD 7A 1C 03 4F F4 AD 90 00 [19:49:21]wFMCommunicate OK [19:49:21]SAM_PROTO_SignData done [19:49:21]FM_MakeSignedData done [19:49:21]CreateOFDProtocolMessage [19:49:21]wFMCommunicate request_size=4 [19:49:21]MH_SAM_APDU [19:49:21]CAPDU: 80 11 00 00 [19:49:21]Write to MH i2c: E2 08 00 E5 02 80 11 00 00 00 00 00 00 61 [19:49:21]Write i2c OK [19:49:21]MH_I2C_Read... [19:49:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:49:21]Read from MH i2c: E2 [19:49:21]MH_I2C_Read... [19:49:21]Read from MH i2c: E2 17 00 [19:49:21]MH_I2C_Read... [19:49:21]Read from MH i2c: E2 17 00 E5 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 B0 [19:49:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:49:21]wFMCommunicate OK [19:49:21]CreateOFDProtocolMessage done [19:49:21]OFDSenderStorePacket 28734 [19:49:21]StoreOFDPacket docnum=28734 [19:49:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 6B 37 07 01 6B 17 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 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 08 00 00 00 F4 03 04 00 41 90 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3E 70 00 00 35 04 06 00 6C EA 01 65 95 49 93 BD 7A 1C 03 4F F4 AD [19:49:21]CheckFolder [19:49:21]dirname=/storage/ofd_packets [19:49:21]CheckFolder done [19:49:21]ProducePacketName [19:49:21]name=ofd_packets/00028734 [19:49:21]NVStorageSaveData ofd_packets/00028734 [19:49:21]File name is /storage/ofd_packets/00028734 [19:49:21]Write 301 bytes [19:49:21]NVStorageSaveData done [19:49:21]OFDSenderStorePacket done [19:49:21]KKMCreateOFDPacket done [19:49:21]NVStorageSaveData kkm_last_timestamp [19:49:21]File name is /storage/kkm_last_timestamp [19:49:21]Write 4 bytes [19:49:21]NVStorageSaveData done [19:49:21]ExternCall_PrintAddStr [19:49:21]wPrintStart [19:49:21]Write to MH i2c: 01 00 00 E6 02 E8 [19:49:21]Write i2c OK [19:49:21]MH_I2C_Read... [19:49:21]Read from MH i2c: 01 [19:49:21]MH_I2C_Read... [19:49:21]Read from MH i2c: 01 07 00 [19:49:21]MH_I2C_Read... [19:49:21]Read from MH i2c: 01 07 00 E6 02 00 00 00 00 00 FF 0F FD [19:49:21]RasterBufferAndPrint [19:49:21]line Счет N : (1)347072 [19:49:21]line ИНН: 02508201610067 [19:49:21]line Контрольно-Кассовый Чек [19:49:21]line ПРОДАЖА [19:49:21]line ТРК (МРК, ГНК) : 32 [19:49:21]line Товар: 2710124130 [19:49:21]line Аи-92-К-5 [19:49:21]line 15.560 * 64.30 [19:49:21]line = 1000.51 [19:49:21]line НДС 12% НСП 1% [19:49:21]line > о реализуемом товаре [19:49:21]line ИТОГО: 1000.51 [19:49:21]line НСП 1% : 8.85 [19:49:21]line НДС 12% : 106.25 [19:49:21]line Наличными: 0.00 [19:49:21]line Безнал.: 1000.51 [19:49:21]line Место: АЗС № 108 "Партнер Нефть" [19:49:21]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [19:49:21]line СНО: Общий режим [19:49:21]line Чек 8 12.04.2024 19:49 [19:49:21]line Смена: 114 ФФД: 1.0 [19:49:21]line ЗНМ: 0300000027 [19:49:21]line РНМ: 0000138879044617 [19:49:21]line Версия ККМ: 001 [19:49:21]line Платежная система: АКБ Кыргызстан [19:49:21]line ФМ: 0000000000963154 [19:49:21]line ФД: 28734 [19:49:21]line ФПД: 119752301581641 [19:49:21]line 1/tax-web-control/client/api/v1/ticket?date=20240412T194921&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28734&fm=119752301581641&tin=02508201610067®Number=0000138879044617&sum=100051 [19:49:22]OFD Sender: Processing packet 28734 [packets to send 8, broken 7] [19:49:22]ProducePacketName [19:49:22]name=ofd_packets/00028734 [19:49:22]OFD Sender: To server: pG, [19:49:22]CommunicateWithHost lk.salyk.kg:30040 [19:49:22]ConnectInit lk.salyk.kg [19:49:22]written 0, free lines is 4095 [19:49:22]Connected sock=7 [19:49:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 6B 37 07 01 6B 17 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 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 08 00 00 00 F4 03 04 00 41 90 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3E 70 00 00 35 04 06 00 6C EA 01 65 95 49 93 BD 7A 1C 03 4F F4 AD [19:49:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 D1 BE 47 00 03 FB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3E 70 00 00 F4 03 04 00 EA 3A 19 66 B6 04 01 00 00 FD D4 99 C6 09 91 72 F1 [19:49:22]CommunicateWithHost err = 0 [19:49:22]CheckOFDResponse [19:49:22]1017 (14) - 77093643461234 [19:49:22]1041 (16) - 0000000000963154 [19:49:22]1040 (4) - 28734 [19:49:22]1012 (4) - 12.04.2024 13:45 [19:49:22]1206 (1) - 0 [19:49:22]OFD Sender: Remove packet 28734 [19:49:22]ProducePacketName [19:49:22]name=ofd_packets/00028734 [19:49:22]NVStorageDeleteData [19:49:22]Write to MH i2c: 01 00 00 0F 03 12 [19:49:22]Write i2c OK [19:49:22]MH_I2C_Read... [19:49:22]Read from MH i2c: 01 [19:49:22]MH_I2C_Read... [19:49:22]Read from MH i2c: 01 07 00 [19:49:22]MH_I2C_Read... [19:49:22]Read from MH i2c: 01 07 00 0F 03 00 00 00 00 00 D5 0C FA [19:49:22]RasterBufferAndPrint [19:49:22]line [19:49:22]line [19:49:22]line [19:49:22]line [19:49:22]line [19:49:22]written 0, free lines is 3291 [19:49:22]MH_Cut [19:49:22]Write to MH i2c: D1 01 00 16 03 01 EB [19:49:22]Write i2c OK [19:49:22]MH_I2C_Read... [19:49:22]Read from MH i2c: D1 [19:49:22]MH_I2C_Read... [19:49:22]Read from MH i2c: D1 01 00 [19:49:22]MH_I2C_Read... [19:49:22]Read from MH i2c: D1 01 00 16 03 00 EA [19:49:22]Write to MH i2c: 01 00 00 17 03 1A [19:49:22]Write i2c OK [19:49:22]MH_I2C_Read... [19:49:23]OFD Sender: No OFD packet to send [19:49:23]*** Cut start [19:49:23]*** Partial cut [19:49:23]*** CUTSNS_PIN = 1 [19:49:23]*** CUTSNS_PIN = 0 [19:49:23]*** Brake cut motor [19:49:24]Read from MH i2c: 01 [19:49:24]MH_I2C_Read... [19:49:24]*** Stop cut motor [19:49:24]*** Cut end [19:49:24]Read from MH i2c: 01 07 00 [19:49:24]MH_I2C_Read... [19:49:24]Read from MH i2c: 01 07 00 17 03 00 00 00 00 00 FF 0F 2F [19:49:24]process_action close_receipt done [19:49:24]requested_data is exist [19:49:24]produce_requested_data [19:49:24]requested_item fm.sn is exist - process it [19:49:24]wFMCommunicate request_size=4 [19:49:24]MH_SAM_APDU [19:49:24]CAPDU: 80 11 00 00 [19:49:24]Write to MH i2c: E2 08 00 18 03 80 11 00 00 00 00 00 00 95 [19:49:24]Write i2c OK [19:49:24]MH_I2C_Read... [19:49:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:49:24]Read from MH i2c: E2 [19:49:24]MH_I2C_Read... [19:49:24]Read from MH i2c: E2 17 00 [19:49:24]MH_I2C_Read... [19:49:24]Read from MH i2c: E2 17 00 18 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 E4 [19:49:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:49:24]wFMCommunicate OK [19:49:24]requested_item fd.num is exist - process it [19:49:24]SAM_PROTO_GetFieldsCounters [19:49:24]wFMCommunicate request_size=4 [19:49:24]MH_SAM_APDU [19:49:24]CAPDU: 80 13 00 00 [19:49:24]Write to MH i2c: E2 08 00 19 03 80 13 00 00 00 00 00 00 98 [19:49:24]Write i2c OK [19:49:24]MH_I2C_Read... [19:49:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:49:24]Read from MH i2c: E2 [19:49:24]MH_I2C_Read... [19:49:24]Read from MH i2c: E2 62 00 [19:49:24]MH_I2C_Read... [19:49:24]Read from MH i2c: E2 62 00 19 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 3E 70 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 0E [19:49:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 3E 70 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 [19:49:24]wFMCommunicate OK [19:49:24]SAM_PROTO_GetFieldsCounters done [19:49:24]requested_item shift.num is exist - process it [19:49:24]requested_item shift.opened is exist - process it [19:49:24]req_shift_opened [19:49:24]FM_GetShiftState [19:49:24]SAM_PROTO_GetShiftState [19:49:24]wFMCommunicate request_size=4 [19:49:24]MH_SAM_APDU [19:49:24]CAPDU: 80 13 01 00 [19:49:24]Write to MH i2c: E2 08 00 1A 03 80 13 01 00 00 00 00 00 9A [19:49:24]Write i2c OK [19:49:24]MH_I2C_Read... [19:49:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:49:24]Read from MH i2c: E2 [19:49:24]MH_I2C_Read... [19:49:24]Read from MH i2c: E2 0E 00 [19:49:24]MH_I2C_Read... [19:49:24]Read from MH i2c: E2 0E 00 1A 03 00 09 00 01 17 88 19 66 00 00 00 00 90 00 C4 [19:49:24]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [19:49:24]wFMCommunicate OK [19:49:24]SAM_PROTO_GetShiftState done [19:49:24]FM_GetShiftState done [19:49:24]req_shift_opened done [19:49:24]requested_item shift.open_date is exist - process it [19:49:24]req_shift_open_date [19:49:24]req_shift_open_date done [19:49:24]produce_requested_data done [19:49:24]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28734,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271} [19:49:24]process_action_free close_receipt [19:49:24]json_value_free [19:49:24]json_value_free done [19:49:24]process_json_proto returns [19:49:24]Send response to host [19:49:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28734,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271}}} [19:49:24]free response buf [19:49:24]execute_script done [19:49:24]execute_script returns [19:49:24]free content buf [19:49:24]Sock 9.Close socket [19:49:24]Sock 9.Thread stoped [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:49]accept exits with 10 [19:49:49]New connection [19:49:49]New thread 3066928484 created [19:49:49]Thread 3066785124 joined [19:49:49]Waiting for new connection... [19:49:49] Sock 10.Parse request [19:49:49]Sock 10.Check first char [19:49:49]Sock 10.First char is OK [19:49:49]request: POST /json_proto HTTP/1.0 [19:49:49]Method: POST [19:49:49]URL: /json_proto [19:49:49]Method is POST - this is cgi request [19:49:49]url: /json_proto [19:49:49]query_string will be loaded in cgi processing [19:49:49]execute_cgi json_proto POST (null) [19:49:49]execute_cgi path=json_proto method=POST [19:49:49]POST find Content-Length [19:49:49]Host: 172.17.33.3:8080 [19:49:49]Content-Length: 685 [19:49:49]Content-Type: application/json [19:49:49] [19:49:49]POST finish read [19:49:49]Found Content-Length = 685 [19:49:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347071", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 36.480, "sum" : 1200.19, "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" ] } } [19:49:49]execute_script... [19:49: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)347071", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 36.480, "sum" : 1200.19, "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" ] } } [19:49:49]POST & json_proto [19:49:49]process_json_proto [19:49:49]json parsed OK: [19:49:49]protocol is kg_v1.0 [19:49:49]action value=close_receipt [19:49:49]process_action close_receipt [19:49:49]cmd_close_receipt [19:49:49]MH_GetDate [19:49:49]Write to MH i2c: F0 00 00 1B 03 0D [19:49:49]Write i2c OK [19:49:49]MH_I2C_Read... [19:49:49]Read from MH i2c: F0 [19:49:49]MH_I2C_Read... [19:49:49]Read from MH i2c: F0 09 00 [19:49:49]MH_I2C_Read... [19:49:49]Read from MH i2c: F0 09 00 1B 03 00 5D 90 19 66 23 5B 8F 65 F4 [19:49:49]GetLastDocTimeStamp 1712951361 [19:49:49]current date 1712951389 [19:49:49]FM_GetShiftState [19:49:49]SAM_PROTO_GetShiftState [19:49:49]wFMCommunicate request_size=4 [19:49:49]MH_SAM_APDU [19:49:49]CAPDU: 80 13 01 00 [19:49:49]Write to MH i2c: E2 08 00 1C 03 80 13 01 00 00 00 00 00 9C [19:49:49]Write i2c OK [19:49:49]MH_I2C_Read... [19:49:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:49:49]Read from MH i2c: E2 [19:49:49]MH_I2C_Read... [19:49:49]Read from MH i2c: E2 0E 00 [19:49:49]MH_I2C_Read... [19:49:49]Read from MH i2c: E2 0E 00 1C 03 00 09 00 01 17 88 19 66 00 00 00 00 90 00 C6 [19:49:49]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [19:49:49]wFMCommunicate OK [19:49:49]SAM_PROTO_GetShiftState done [19:49:49]FM_GetShiftState done [19:49:49]opened in 1712949271 [19:49:49]opened+sec_in_day 1713035671 [19:49:49]quantity*price = 120019 [19:49:49]sum+1 = 120020 [19:49:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 9 12.04.2024 19:49 Смена: 114 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28735 ФПД: 174198147696109 1/tax-web-control/client/api/v1/ticket?date=20240412T194950&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28735&fm=174198147696109&tin=02508201610067®Number=0000138879044617&sum=120000 [19:49:50]StoreToDocumentArchive [19:49:50]shift 114 fd 28735 [19:49:50]save to /storage/0114/doc_00028735 [19:49:50]save last doc name /storage/0114/doc_00028735 to /storage/kkm_last_doc_name [19:49:50]save OK [19:49:50]Clear old archive folders... [19:49:50]ProcessDocumentItem done err = 0, tmpTLVsize=250 [19:49:50]tlvbuf is 0119EB00 [19:49:50]SAM_PROTO_ClearQueue [19:49:50]wFMCommunicate request_size=4 [19:49:50]MH_SAM_APDU [19:49:50]CAPDU: 80 09 00 00 [19:49:50]Write to MH i2c: E2 08 00 29 03 80 09 00 00 00 00 00 00 9E [19:49:50]Write i2c OK [19:49:50]MH_I2C_Read... [19:49:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:49:50]Read from MH i2c: E2 [19:49:50]MH_I2C_Read... [19:49:50]Read from MH i2c: E2 03 00 [19:49:50]MH_I2C_Read... [19:49:50]Read from MH i2c: E2 03 00 29 03 00 90 00 A0 [19:49:50]RAPDU: 90 00 [19:49:50]wFMCommunicate OK [19:49:50]SAM_PROTO_ClearQueue done [19:49:50]KKMCreateOFDPacket [19:49:50]OFDProtocolAddRootSTLVToBuf [19:49:50]FM_MakeSignedData [19:49:50]FM_MakeSignedData [19:49:50]SAM_PROTO_SignData [19:49:50]wFMCommunicate request_size=4 [19:49:50]MH_SAM_APDU [19:49:50]CAPDU: 80 0D 01 02 [19:49:50]Write to MH i2c: E2 08 00 2A 03 80 0D 01 02 00 00 00 00 A6 [19:49:50]Write i2c OK [19:49:50]MH_I2C_Read... [19:49:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:49:50]Read from MH i2c: E2 [19:49:50]MH_I2C_Read... [19:49:50]Read from MH i2c: E2 03 00 [19:49:50]MH_I2C_Read... [19:49:50]Read from MH i2c: E2 03 00 2A 03 00 90 00 A1 [19:49:50]RAPDU: 90 00 [19:49:50]wFMCommunicate OK [19:49:50]wFMCommunicate request_size=255 [19:49:50]MH_SAM_APDU [19:49:50]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 80 8E 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 D3 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 09 00 00 00 F4 03 04 00 5E 90 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3F 70 00 00 35 04 06 00 9E 6E [19:49:50]Write to MH i2c: E2 02 01 2B 03 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 80 8E 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 D3 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 09 00 00 00 F4 03 04 00 5E 90 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3F 70 00 00 35 04 06 00 9E 6E 00 00 0A [19:49:50]Write i2c OK [19:49:50]MH_I2C_Read... [19:49:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:49:50]Read from MH i2c: E2 [19:49:50]MH_I2C_Read... [19:49:50]Read from MH i2c: E2 03 00 [19:49:50]MH_I2C_Read... [19:49:50]Read from MH i2c: E2 03 00 2B 03 00 90 00 A2 [19:49:50]RAPDU: 90 00 [19:49:50]wFMCommunicate OK [19:49:50]wFMCommunicate request_size=9 [19:49:50]MH_SAM_APDU [19:49:50]CAPDU: 80 0D 02 02 04 AA B6 C5 ED [19:49:50]Write to MH i2c: E2 0C 00 2C 03 80 0D 02 02 04 00 AA B6 C5 ED 00 00 C3 [19:49:50]Write i2c OK [19:49:50]MH_I2C_Read... [19:49:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:49:50]Read from MH i2c: E2 [19:49:50]MH_I2C_Read... [19:49:50]Read from MH i2c: E2 03 00 [19:49:50]MH_I2C_Read... [19:49:50]Read from MH i2c: E2 03 00 2C 03 00 90 00 A3 [19:49:50]RAPDU: 90 00 [19:49:50]wFMCommunicate OK [19:49:50]wFMCommunicate request_size=4 [19:49:50]MH_SAM_APDU [19:49:50]CAPDU: 80 0D 03 02 [19:49:50]Write to MH i2c: E2 08 00 2D 03 80 0D 03 02 00 00 00 00 AB [19:49:50]Write i2c OK [19:49:50]MH_I2C_Read... [19:49:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:49:50]Read from MH i2c: E2 [19:49:50]MH_I2C_Read... [19:49:50]Read from MH i2c: E2 0B 00 [19:49:50]MH_I2C_Read... [19:49:50]Read from MH i2c: E2 0B 00 2D 03 00 6E 14 22 44 A0 2F 9D 22 90 00 22 [19:49:50]RAPDU: 6E 14 22 44 A0 2F 9D 22 90 00 [19:49:50]wFMCommunicate OK [19:49:50]SAM_PROTO_SignData done [19:49:50]FM_MakeSignedData done [19:49:50]CreateOFDProtocolMessage [19:49:50]wFMCommunicate request_size=4 [19:49:50]MH_SAM_APDU [19:49:50]CAPDU: 80 11 00 00 [19:49:50]Write to MH i2c: E2 08 00 2E 03 80 11 00 00 00 00 00 00 AB [19:49:50]Write i2c OK [19:49:50]MH_I2C_Read... [19:49:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:49:50]Read from MH i2c: E2 [19:49:50]MH_I2C_Read... [19:49:50]Read from MH i2c: E2 17 00 [19:49:50]MH_I2C_Read... [19:49:50]Read from MH i2c: E2 17 00 2E 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 FA [19:49:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:49:50]wFMCommunicate OK [19:49:50]CreateOFDProtocolMessage done [19:49:50]OFDSenderStorePacket 28735 [19:49:50]StoreOFDPacket docnum=28735 [19:49:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 93 9B 06 01 2E 07 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 80 8E 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 D3 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 09 00 00 00 F4 03 04 00 5E 90 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3F 70 00 00 35 04 06 00 9E 6E AA B6 C5 ED 6E 14 22 44 A0 2F 9D 22 [19:49:50]CheckFolder [19:49:50]dirname=/storage/ofd_packets [19:49:50]CheckFolder done [19:49:50]ProducePacketName [19:49:50]name=ofd_packets/00028735 [19:49:50]NVStorageSaveData ofd_packets/00028735 [19:49:50]File name is /storage/ofd_packets/00028735 [19:49:50]Write 300 bytes [19:49:50]NVStorageSaveData done [19:49:50]OFDSenderStorePacket done [19:49:50]KKMCreateOFDPacket done [19:49:50]NVStorageSaveData kkm_last_timestamp [19:49:50]File name is /storage/kkm_last_timestamp [19:49:50]Write 4 bytes [19:49:50]NVStorageSaveData done [19:49:50]ExternCall_PrintAddStr [19:49:50]wPrintStart [19:49:50]Write to MH i2c: 01 00 00 2F 03 32 [19:49:50]Write i2c OK [19:49:50]MH_I2C_Read... [19:49:50]Read from MH i2c: 01 [19:49:50]MH_I2C_Read... [19:49:50]Read from MH i2c: 01 07 00 [19:49:50]MH_I2C_Read... [19:49:50]Read from MH i2c: 01 07 00 2F 03 00 00 00 00 00 FF 0F 47 [19:49:50]RasterBufferAndPrint [19:49:50]line Счет N : (1)347071 [19:49:50]line ИНН: 02508201610067 [19:49:50]line Контрольно-Кассовый Чек [19:49:50]line ПРОДАЖА [19:49:50]line ТРК (МРК, ГНК) : 71 [19:49:50]line Товар: 2711129700 [19:49:50]line ГАЗ-К-5 [19:49:50]line 36.480 * 32.90 [19:49:50]line = 1200.19 [19:49:50]line НДС 12% НСП 1% [19:49:50]line > о реализуемом товаре [19:49:50]line ОКРУГЛЕНИЕ: -0.19 [19:49:50]line ИТОГО: 1200.00 [19:49:50]line Внесено: 1200.00 [19:49:50]line СДАЧА: 0.00 [19:49:50]line НСП 1% : 10.62 [19:49:50]line НДС 12% : 127.45 [19:49:50]line Наличными: 1200.00 [19:49:50]line Безнал.: 0.00 [19:49:50]line Место: АЗС № 108 "Партнер Нефть" [19:49:50]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [19:49:50]line СНО: Общий режим [19:49:50]line Чек 9 12.04.2024 19:49 [19:49:50]line Смена: 114 ФФД: 1.0 [19:49:50]line ЗНМ: 0300000027 [19:49:50]line РНМ: 0000138879044617 [19:49:50]line Версия ККМ: 001 [19:49:50]line ФМ: 0000000000963154 [19:49:50]line ФД: 28735 [19:49:50]line ФПД: 174198147696109 [19:49:50]line 1/tax-web-control/client/api/v1/ticket?date=20240412T194950&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28735&fm=174198147696109&tin=02508201610067®Number=0000138879044617&sum=120000 [19:49:51]OFD Sender: Processing packet 28735 [packets to send 8, broken 7] [19:49:51]ProducePacketName [19:49:51]name=ofd_packets/00028735 [19:49:51]OFD Sender: To server: pG, [19:49:51]CommunicateWithHost lk.salyk.kg:30040 [19:49:51]ConnectInit lk.salyk.kg [19:49:51]written 0, free lines is 4095 [19:49:51]Connected sock=9 [19:49:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 93 9B 06 01 2E 07 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 80 8E 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 D3 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 09 00 00 00 F4 03 04 00 5E 90 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3F 70 00 00 35 04 06 00 9E 6E AA B6 C5 ED 6E 14 22 44 A0 2F 9D 22 [19:49:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 4B 28 47 00 CB 90 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3F 70 00 00 F4 03 04 00 07 3B 19 66 B6 04 01 00 00 74 D4 F3 3E CA 0F E2 55 [19:49:51]CommunicateWithHost err = 0 [19:49:51]CheckOFDResponse [19:49:51]1017 (14) - 77093643461234 [19:49:51]1041 (16) - 0000000000963154 [19:49:51]1040 (4) - 28735 [19:49:51]1012 (4) - 12.04.2024 13:45 [19:49:51]1206 (1) - 0 [19:49:51]OFD Sender: Remove packet 28735 [19:49:51]ProducePacketName [19:49:51]name=ofd_packets/00028735 [19:49:51]NVStorageDeleteData [19:49:51]Write to MH i2c: 01 00 00 59 03 5C [19:49:51]Write i2c OK [19:49:51]MH_I2C_Read... [19:49:51]Read from MH i2c: 01 [19:49:51]MH_I2C_Read... [19:49:51]Read from MH i2c: 01 07 00 [19:49:51]MH_I2C_Read... [19:49:51]Read from MH i2c: 01 07 00 59 03 00 00 00 00 00 B2 0C 21 [19:49:51]RasterBufferAndPrint [19:49:51]line [19:49:51]line [19:49:51]line [19:49:51]line [19:49:51]line [19:49:51]written 0, free lines is 3255 [19:49:51]MH_Cut [19:49:51]Write to MH i2c: D1 01 00 60 03 01 35 [19:49:51]Write i2c OK [19:49:51]MH_I2C_Read... [19:49:51]Read from MH i2c: D1 [19:49:51]MH_I2C_Read... [19:49:51]Read from MH i2c: D1 01 00 [19:49:51]MH_I2C_Read... [19:49:51]Read from MH i2c: D1 01 00 60 03 00 34 [19:49:51]Write to MH i2c: 01 00 00 61 03 64 [19:49:51]Write i2c OK [19:49:51]MH_I2C_Read... [19:49:51]OFD Sender: No OFD packet to send [19:49:52]*** Cut start [19:49:52]*** Partial cut [19:49:52]*** CUTSNS_PIN = 1 [19:49:52]*** CUTSNS_PIN = 0 [19:49:52]*** Brake cut motor [19:49:52]Read from MH i2c: 01 [19:49:52]MH_I2C_Read... [19:49:52]*** Stop cut motor [19:49:52]*** Cut end [19:49:52]Read from MH i2c: 01 07 00 [19:49:52]MH_I2C_Read... [19:49:52]Read from MH i2c: 01 07 00 61 03 00 00 00 00 00 FF 0F 79 [19:49:52]process_action close_receipt done [19:49:52]requested_data is exist [19:49:52]produce_requested_data [19:49:52]requested_item fm.sn is exist - process it [19:49:52]wFMCommunicate request_size=4 [19:49:52]MH_SAM_APDU [19:49:53]CAPDU: 80 11 00 00 [19:49:53]Write to MH i2c: E2 08 00 62 03 80 11 00 00 00 00 00 00 DF [19:49:53]Write i2c OK [19:49:53]MH_I2C_Read... [19:49:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:49:53]Read from MH i2c: E2 [19:49:53]MH_I2C_Read... [19:49:53]Read from MH i2c: E2 17 00 [19:49:53]MH_I2C_Read... [19:49:53]Read from MH i2c: E2 17 00 62 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 2E [19:49:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:49:53]wFMCommunicate OK [19:49:53]requested_item fd.num is exist - process it [19:49:53]SAM_PROTO_GetFieldsCounters [19:49:53]wFMCommunicate request_size=4 [19:49:53]MH_SAM_APDU [19:49:53]CAPDU: 80 13 00 00 [19:49:53]Write to MH i2c: E2 08 00 63 03 80 13 00 00 00 00 00 00 E2 [19:49:53]Write i2c OK [19:49:53]MH_I2C_Read... [19:49:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:49:53]Read from MH i2c: E2 [19:49:53]MH_I2C_Read... [19:49:53]Read from MH i2c: E2 62 00 [19:49:53]MH_I2C_Read... [19:49:53]Read from MH i2c: E2 62 00 63 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 3F 70 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 5C [19:49:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 3F 70 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 [19:49:53]wFMCommunicate OK [19:49:53]SAM_PROTO_GetFieldsCounters done [19:49:53]requested_item shift.num is exist - process it [19:49:53]requested_item shift.opened is exist - process it [19:49:53]req_shift_opened [19:49:53]FM_GetShiftState [19:49:53]SAM_PROTO_GetShiftState [19:49:53]wFMCommunicate request_size=4 [19:49:53]MH_SAM_APDU [19:49:53]CAPDU: 80 13 01 00 [19:49:53]Write to MH i2c: E2 08 00 64 03 80 13 01 00 00 00 00 00 E4 [19:49:53]Write i2c OK [19:49:53]MH_I2C_Read... [19:49:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:49:53]Read from MH i2c: E2 [19:49:53]MH_I2C_Read... [19:49:53]Read from MH i2c: E2 0E 00 [19:49:53]MH_I2C_Read... [19:49:53]Read from MH i2c: E2 0E 00 64 03 00 09 00 01 17 88 19 66 00 00 00 00 90 00 0E [19:49:53]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [19:49:53]wFMCommunicate OK [19:49:53]SAM_PROTO_GetShiftState done [19:49:53]FM_GetShiftState done [19:49:53]req_shift_opened done [19:49:53]requested_item shift.open_date is exist - process it [19:49:53]req_shift_open_date [19:49:53]req_shift_open_date done [19:49:53]produce_requested_data done [19:49:53]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28735,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271} [19:49:53]process_action_free close_receipt [19:49:53]json_value_free [19:49:53]json_value_free done [19:49:53]process_json_proto returns [19:49:53]Send response to host [19:49:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28735,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271}}} [19:49:53]free response buf [19:49:53]execute_script done [19:49:53]execute_script returns [19:49:53]free content buf [19:49:53]Sock 10.Close socket [19:49:53]Sock 10.Thread stoped [19:49:56]OFD Sender: No OFD packet to send [19:50:01]OFD Sender: No OFD packet to send [19:50:06]OFD Sender: No OFD packet to send [19:50:11]OFD Sender: No OFD packet to send [19:50:16]OFD Sender: No OFD packet to send [19:50:21]OFD Sender: No OFD packet to send [19:50:26]OFD Sender: No OFD packet to send [19:50:31]OFD Sender: No OFD packet to send [19:50:36]OFD Sender: No OFD packet to send [19:50:41]OFD Sender: No OFD packet to send [19:50:46]OFD Sender: No OFD packet to send [19:50:51]OFD Sender: No OFD packet to send [19:50:56]OFD Sender: No OFD packet to send [19:51:01]OFD Sender: No OFD packet to send [19:51:06]OFD Sender: No OFD packet to send [19:51:11]OFD Sender: No OFD packet to send [19:51:16]OFD Sender: No OFD packet to send [19:51:21]OFD Sender: No OFD packet to send [19:51:26]OFD Sender: No OFD packet to send [19:51:31]OFD Sender: No OFD packet to send [19:51:36]OFD Sender: No OFD packet to send [19:51:41]OFD Sender: No OFD packet to send [19:51:46]OFD Sender: No OFD packet to send [19:51:51]OFD Sender: No OFD packet to send [19:51:56]OFD Sender: No OFD packet to send [19:52:01]OFD Sender: No OFD packet to send [19:52:06]OFD Sender: No OFD packet to send [19:52:11]OFD Sender: No OFD packet to send [19:52:16]OFD Sender: No OFD packet to send [19:52:21]OFD Sender: No OFD packet to send [19:52:27]OFD Sender: No OFD packet to send [19:52:32]OFD Sender: No OFD packet to send [19:52:37]OFD Sender: No OFD packet to send [19:52:42]OFD Sender: No OFD packet to send [19:52:47]OFD Sender: No OFD packet to send [19:52:52]OFD Sender: No OFD packet to send [19:52:57]OFD Sender: No OFD packet to send [19:53:02]OFD Sender: No OFD packet to send [19:53:07]OFD Sender: No OFD packet to send [19:53:12]OFD Sender: No OFD packet to send [19:53:17]OFD Sender: No OFD packet to send [19:53:22]OFD Sender: No OFD packet to send [19:53:27]OFD Sender: No OFD packet to send [19:53:32]OFD Sender: No OFD packet to send [19:53:37]OFD Sender: No OFD packet to send [19:53:42]OFD Sender: No OFD packet to send [19:53:47]OFD Sender: No OFD packet to send [19:53:52]OFD Sender: No OFD packet to send [19:53:57]OFD Sender: No OFD packet to send [19:53:57]accept exits with 7 [19:53:57]New connection [19:53:57]New thread 3066785124 created [19:53:57]Thread 3066928484 joined [19:53:57]Waiting for new connection... [19:53:57] Sock 7.Parse request [19:53:57]Sock 7.Check first char [19:53:57]Sock 7.First char is OK [19:53:57]request: POST /json_proto HTTP/1.0 [19:53:57]Method: POST [19:53:57]URL: /json_proto [19:53:57]Method is POST - this is cgi request [19:53:57]url: /json_proto [19:53:57]query_string will be loaded in cgi processing [19:53:57]execute_cgi json_proto POST (null) [19:53:57]execute_cgi path=json_proto method=POST [19:53:57]POST find Content-Length [19:53:57]Host: 172.17.33.3:8080 [19:53:57]Content-Length: 808 [19:53:57]Content-Type: application/json [19:53:57] [19:53:57]POST finish read [19:53:57]Found Content-Length = 808 [19:53:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347075", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 15.560, "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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:53:57]execute_script... [19:53: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)347075", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 15.560, "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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:53:57]POST & json_proto [19:53:57]process_json_proto [19:53:57]json parsed OK: [19:53:57]protocol is kg_v1.0 [19:53:57]action value=close_receipt [19:53:57]process_action close_receipt [19:53:57]cmd_close_receipt [19:53:57]MH_GetDate [19:53:57]Write to MH i2c: F0 00 00 65 03 57 [19:53:57]Write i2c OK [19:53:57]MH_I2C_Read... [19:53:57]Read from MH i2c: F0 [19:53:57]MH_I2C_Read... [19:53:57]Read from MH i2c: F0 09 00 [19:53:57]MH_I2C_Read... [19:53:57]Read from MH i2c: F0 09 00 65 03 00 56 91 19 66 23 5B 8F 65 38 [19:53:57]GetLastDocTimeStamp 1712951390 [19:53:57]current date 1712951638 [19:53:57]FM_GetShiftState [19:53:57]SAM_PROTO_GetShiftState [19:53:57]wFMCommunicate request_size=4 [19:53:57]MH_SAM_APDU [19:53:57]CAPDU: 80 13 01 00 [19:53:57]Write to MH i2c: E2 08 00 66 03 80 13 01 00 00 00 00 00 E6 [19:53:57]Write i2c OK [19:53:57]MH_I2C_Read... [19:53:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:53:57]Read from MH i2c: E2 [19:53:57]MH_I2C_Read... [19:53:57]Read from MH i2c: E2 0E 00 [19:53:57]MH_I2C_Read... [19:53:57]Read from MH i2c: E2 0E 00 66 03 00 09 00 01 17 88 19 66 00 00 00 00 90 00 10 [19:53:57]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [19:53:57]wFMCommunicate OK [19:53:57]SAM_PROTO_GetShiftState done [19:53:57]FM_GetShiftState done [19:53:57]opened in 1712949271 [19:53:57]opened+sec_in_day 1713035671 [19:53:57]quantity*price = 100050 [19:53:57]sum+1 = 100052 [19:53:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 10 12.04.2024 19:53 Смена: 114 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 28736 ФПД: 24433671003336 1/tax-web-control/client/api/v1/ticket?date=20240412T195358&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28736&fm=24433671003336&tin=02508201610067®Number=0000138879044617&sum=100051 [19:53:58]StoreToDocumentArchive [19:53:58]shift 114 fd 28736 [19:53:58]save to /storage/0114/doc_00028736 [19:53:58]save last doc name /storage/0114/doc_00028736 to /storage/kkm_last_doc_name [19:53:58]save OK [19:53:58]Clear old archive folders... [19:53:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:53:58]tlvbuf is 01214160 [19:53:58]SAM_PROTO_ClearQueue [19:53:58]wFMCommunicate request_size=4 [19:53:58]MH_SAM_APDU [19:53:58]CAPDU: 80 09 00 00 [19:53:58]Write to MH i2c: E2 08 00 73 03 80 09 00 00 00 00 00 00 E8 [19:53:58]Write i2c OK [19:53:58]MH_I2C_Read... [19:53:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:53:58]Read from MH i2c: E2 [19:53:58]MH_I2C_Read... [19:53:58]Read from MH i2c: E2 03 00 [19:53:58]MH_I2C_Read... [19:53:58]Read from MH i2c: E2 03 00 73 03 00 90 00 EA [19:53:58]RAPDU: 90 00 [19:53:58]wFMCommunicate OK [19:53:58]SAM_PROTO_ClearQueue done [19:53:58]KKMCreateOFDPacket [19:53:58]OFDProtocolAddRootSTLVToBuf [19:53:58]FM_MakeSignedData [19:53:58]FM_MakeSignedData [19:53:58]SAM_PROTO_SignData [19:53:58]wFMCommunicate request_size=4 [19:53:58]MH_SAM_APDU [19:53:58]CAPDU: 80 0D 01 02 [19:53:58]Write to MH i2c: E2 08 00 74 03 80 0D 01 02 00 00 00 00 F0 [19:53:58]Write i2c OK [19:53:58]MH_I2C_Read... [19:53:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:53:58]Read from MH i2c: E2 [19:53:58]MH_I2C_Read... [19:53:58]Read from MH i2c: E2 03 00 [19:53:58]MH_I2C_Read... [19:53:58]Read from MH i2c: E2 03 00 74 03 00 90 00 EB [19:53:58]RAPDU: 90 00 [19:53:58]wFMCommunicate OK [19:53:58]wFMCommunicate request_size=255 [19:53:58]MH_SAM_APDU [19:53:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 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 0A 00 00 00 F4 03 04 00 56 91 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 40 70 00 00 35 04 06 00 16 [19:53:58]Write to MH i2c: E2 02 01 75 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 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 0A 00 00 00 F4 03 04 00 56 91 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 40 70 00 00 35 04 06 00 16 00 00 2A [19:53:58]Write i2c OK [19:53:58]MH_I2C_Read... [19:53:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:53:59]Read from MH i2c: E2 [19:53:59]MH_I2C_Read... [19:53:59]Read from MH i2c: E2 03 00 [19:53:59]MH_I2C_Read... [19:53:59]Read from MH i2c: E2 03 00 75 03 00 90 00 EC [19:53:59]RAPDU: 90 00 [19:53:59]wFMCommunicate OK [19:53:59]wFMCommunicate request_size=10 [19:53:59]MH_SAM_APDU [19:53:59]CAPDU: 80 0D 02 02 05 38 E8 47 DC C8 [19:53:59]Write to MH i2c: E2 0D 00 76 03 80 0D 02 02 05 00 38 E8 47 DC C8 00 00 08 [19:53:59]Write i2c OK [19:53:59]MH_I2C_Read... [19:53:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:53:59]Read from MH i2c: E2 [19:53:59]MH_I2C_Read... [19:53:59]Read from MH i2c: E2 03 00 [19:53:59]MH_I2C_Read... [19:53:59]Read from MH i2c: E2 03 00 76 03 00 90 00 ED [19:53:59]RAPDU: 90 00 [19:53:59]wFMCommunicate OK [19:53:59]wFMCommunicate request_size=4 [19:53:59]MH_SAM_APDU [19:53:59]CAPDU: 80 0D 03 02 [19:53:59]Write to MH i2c: E2 08 00 77 03 80 0D 03 02 00 00 00 00 F5 [19:53:59]Write i2c OK [19:53:59]MH_I2C_Read... [19:53:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:53:59]Read from MH i2c: E2 [19:53:59]MH_I2C_Read... [19:53:59]Read from MH i2c: E2 0B 00 [19:53:59]MH_I2C_Read... [19:53:59]Read from MH i2c: E2 0B 00 77 03 00 F7 65 F6 96 E8 06 D6 18 90 00 BA [19:53:59]RAPDU: F7 65 F6 96 E8 06 D6 18 90 00 [19:53:59]wFMCommunicate OK [19:53:59]SAM_PROTO_SignData done [19:53:59]FM_MakeSignedData done [19:53:59]CreateOFDProtocolMessage [19:53:59]wFMCommunicate request_size=4 [19:53:59]MH_SAM_APDU [19:53:59]CAPDU: 80 11 00 00 [19:53:59]Write to MH i2c: E2 08 00 78 03 80 11 00 00 00 00 00 00 F5 [19:53:59]Write i2c OK [19:53:59]MH_I2C_Read... [19:53:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:53:59]Read from MH i2c: E2 [19:53:59]MH_I2C_Read... [19:53:59]Read from MH i2c: E2 17 00 [19:53:59]MH_I2C_Read... [19:53:59]Read from MH i2c: E2 17 00 78 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 44 [19:53:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:53:59]wFMCommunicate OK [19:53:59]CreateOFDProtocolMessage done [19:53:59]OFDSenderStorePacket 28736 [19:53:59]StoreOFDPacket docnum=28736 [19:53:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 1E 3F 07 01 02 ED 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 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 0A 00 00 00 F4 03 04 00 56 91 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 40 70 00 00 35 04 06 00 16 38 E8 47 DC C8 F7 65 F6 96 E8 06 D6 18 [19:53:59]CheckFolder [19:53:59]dirname=/storage/ofd_packets [19:53:59]CheckFolder done [19:53:59]ProducePacketName [19:53:59]name=ofd_packets/00028736 [19:53:59]NVStorageSaveData ofd_packets/00028736 [19:53:59]File name is /storage/ofd_packets/00028736 [19:53:59]Write 301 bytes [19:53:59]NVStorageSaveData done [19:53:59]OFDSenderStorePacket done [19:53:59]KKMCreateOFDPacket done [19:53:59]NVStorageSaveData kkm_last_timestamp [19:53:59]File name is /storage/kkm_last_timestamp [19:53:59]Write 4 bytes [19:53:59]NVStorageSaveData done [19:53:59]ExternCall_PrintAddStr [19:53:59]wPrintStart [19:53:59]Write to MH i2c: 01 00 00 79 03 7C [19:53:59]Write i2c OK [19:53:59]MH_I2C_Read... [19:53:59]Read from MH i2c: 01 [19:53:59]MH_I2C_Read... [19:53:59]Read from MH i2c: 01 07 00 [19:53:59]MH_I2C_Read... [19:53:59]Read from MH i2c: 01 07 00 79 03 00 00 00 00 00 FF 0F 91 [19:53:59]RasterBufferAndPrint [19:53:59]line Счет N : (1)347075 [19:53:59]line ИНН: 02508201610067 [19:53:59]line Контрольно-Кассовый Чек [19:53:59]line ПРОДАЖА [19:53:59]line ТРК (МРК, ГНК) : 42 [19:53:59]line Товар: 2710124130 [19:53:59]line Аи-92-К-5 [19:53:59]line 15.560 * 64.30 [19:53:59]line = 1000.51 [19:53:59]line НДС 12% НСП 1% [19:53:59]line > о реализуемом товаре [19:53:59]line ИТОГО: 1000.51 [19:53:59]line НСП 1% : 8.85 [19:53:59]line НДС 12% : 106.25 [19:53:59]line Наличными: 0.00 [19:53:59]line Безнал.: 1000.51 [19:53:59]line Место: АЗС № 108 "Партнер Нефть" [19:53:59]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [19:53:59]line СНО: Общий режим [19:53:59]line Чек 10 12.04.2024 19:53 [19:53:59]line Смена: 114 ФФД: 1.0 [19:53:59]line ЗНМ: 0300000027 [19:53:59]line РНМ: 0000138879044617 [19:53:59]line Версия ККМ: 001 [19:53:59]line Платежная система: О! деньги [19:53:59]line ФМ: 0000000000963154 [19:53:59]line ФД: 28736 [19:53:59]line ФПД: 24433671003336 [19:53:59]line 1/tax-web-control/client/api/v1/ticket?date=20240412T195358&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28736&fm=24433671003336&tin=02508201610067®Number=0000138879044617&sum=100051 [19:53:59]OFD Sender: Processing packet 28736 [packets to send 8, broken 7] [19:53:59]ProducePacketName [19:53:59]name=ofd_packets/00028736 [19:53:59]OFD Sender: To server: pG, [19:53:59]CommunicateWithHost lk.salyk.kg:30040 [19:53:59]ConnectInit lk.salyk.kg [19:53:59]written 0, free lines is 4095 [19:53:59]Connected sock=10 [19:53:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 1E 3F 07 01 02 ED 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 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 0A 00 00 00 F4 03 04 00 56 91 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 40 70 00 00 35 04 06 00 16 38 E8 47 DC C8 F7 65 F6 96 E8 06 D6 18 [19:53:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 86 34 47 00 5E 7E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 40 70 00 00 F4 03 04 00 FF 3B 19 66 B6 04 01 00 00 2E 31 02 8C DF 8A D3 5D [19:53:59]CommunicateWithHost err = 0 [19:53:59]CheckOFDResponse [19:53:59]1017 (14) - 77093643461234 [19:53:59]1041 (16) - 0000000000963154 [19:53:59]1040 (4) - 28736 [19:53:59]1012 (4) - 12.04.2024 13:49 [19:53:59]1206 (1) - 0 [19:53:59]OFD Sender: Remove packet 28736 [19:53:59]ProducePacketName [19:53:59]name=ofd_packets/00028736 [19:53:59]NVStorageDeleteData [19:53:59]Write to MH i2c: 01 00 00 A2 03 A5 [19:53:59]Write i2c OK [19:53:59]MH_I2C_Read... [19:53:59]Read from MH i2c: 01 [19:53:59]MH_I2C_Read... [19:53:59]Read from MH i2c: 01 07 00 [19:53:59]MH_I2C_Read... [19:53:59]Read from MH i2c: 01 07 00 A2 03 00 00 00 00 00 DA 0C 92 [19:53:59]RasterBufferAndPrint [19:53:59]line [19:53:59]line [19:53:59]line [19:53:59]line [19:53:59]line [19:53:59]written 0, free lines is 3297 [19:53:59]MH_Cut [19:53:59]Write to MH i2c: D1 01 00 A9 03 01 7E [19:53:59]Write i2c OK [19:53:59]MH_I2C_Read... [19:53:59]Read from MH i2c: D1 [19:53:59]MH_I2C_Read... [19:53:59]Read from MH i2c: D1 01 00 [19:53:59]MH_I2C_Read... [19:53:59]Read from MH i2c: D1 01 00 A9 03 00 7D [19:53:59]Write to MH i2c: 01 00 00 AA 03 AD [19:53:59]Write i2c OK [19:53:59]MH_I2C_Read... [19:54:00]OFD Sender: No OFD packet to send [19:54:00]*** Cut start [19:54:00]*** Partial cut [19:54:00]*** CUTSNS_PIN = 1 [19:54:00]*** CUTSNS_PIN = 0 [19:54:01]*** Brake cut motor [19:54:01]Read from MH i2c: 01 [19:54:01]MH_I2C_Read... [19:54:01]*** Stop cut motor [19:54:01]*** Cut end [19:54:01]Read from MH i2c: 01 07 00 [19:54:01]MH_I2C_Read... [19:54:01]Read from MH i2c: 01 07 00 AA 03 00 00 00 00 00 FF 0F C2 [19:54:01]process_action close_receipt done [19:54:01]requested_data is exist [19:54:01]produce_requested_data [19:54:01]requested_item fm.sn is exist - process it [19:54:01]wFMCommunicate request_size=4 [19:54:01]MH_SAM_APDU [19:54:01]CAPDU: 80 11 00 00 [19:54:01]Write to MH i2c: E2 08 00 AB 03 80 11 00 00 00 00 00 00 28 [19:54:01]Write i2c OK [19:54:01]MH_I2C_Read... [19:54:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:54:01]Read from MH i2c: E2 [19:54:01]MH_I2C_Read... [19:54:01]Read from MH i2c: E2 17 00 [19:54:01]MH_I2C_Read... [19:54:01]Read from MH i2c: E2 17 00 AB 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 77 [19:54:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:54:01]wFMCommunicate OK [19:54:01]requested_item fd.num is exist - process it [19:54:01]SAM_PROTO_GetFieldsCounters [19:54:01]wFMCommunicate request_size=4 [19:54:01]MH_SAM_APDU [19:54:01]CAPDU: 80 13 00 00 [19:54:01]Write to MH i2c: E2 08 00 AC 03 80 13 00 00 00 00 00 00 2B [19:54:01]Write i2c OK [19:54:01]MH_I2C_Read... [19:54:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:54:01]Read from MH i2c: E2 [19:54:01]MH_I2C_Read... [19:54:01]Read from MH i2c: E2 62 00 [19:54:01]MH_I2C_Read... [19:54:01]Read from MH i2c: E2 62 00 AC 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 40 70 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 A9 [19:54:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 40 70 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 [19:54:01]wFMCommunicate OK [19:54:01]SAM_PROTO_GetFieldsCounters done [19:54:01]requested_item shift.num is exist - process it [19:54:01]requested_item shift.opened is exist - process it [19:54:01]req_shift_opened [19:54:01]FM_GetShiftState [19:54:01]SAM_PROTO_GetShiftState [19:54:01]wFMCommunicate request_size=4 [19:54:01]MH_SAM_APDU [19:54:01]CAPDU: 80 13 01 00 [19:54:01]Write to MH i2c: E2 08 00 AD 03 80 13 01 00 00 00 00 00 2D [19:54:01]Write i2c OK [19:54:01]MH_I2C_Read... [19:54:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:54:01]Read from MH i2c: E2 [19:54:01]MH_I2C_Read... [19:54:01]Read from MH i2c: E2 0E 00 [19:54:01]MH_I2C_Read... [19:54:01]Read from MH i2c: E2 0E 00 AD 03 00 09 00 01 17 88 19 66 00 00 00 00 90 00 57 [19:54:01]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [19:54:01]wFMCommunicate OK [19:54:01]SAM_PROTO_GetShiftState done [19:54:01]FM_GetShiftState done [19:54:01]req_shift_opened done [19:54:01]requested_item shift.open_date is exist - process it [19:54:01]req_shift_open_date [19:54:01]req_shift_open_date done [19:54:01]produce_requested_data done [19:54:01]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28736,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271} [19:54:01]process_action_free close_receipt [19:54:01]json_value_free [19:54:01]json_value_free done [19:54:01]process_json_proto returns [19:54:01]Send response to host [19:54:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28736,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271}}} [19:54:01]free response buf [19:54:01]execute_script done [19:54:01]execute_script returns [19:54:01]free content buf [19:54:01]Sock 7.Close socket [19:54:01]Sock 7.Thread stoped [19:54:05]OFD Sender: No OFD packet to send [19:54:10]OFD Sender: No OFD packet to send [19:54:15]OFD Sender: No OFD packet to send [19:54:20]OFD Sender: No OFD packet to send [19:54:25]OFD Sender: No OFD packet to send [19:54:30]OFD Sender: No OFD packet to send [19:54:35]OFD Sender: No OFD packet to send [19:54:40]OFD Sender: No OFD packet to send [19:54:45]OFD Sender: No OFD packet to send [19:54:50]OFD Sender: No OFD packet to send [19:54:55]OFD Sender: No OFD packet to send [19:55:00]OFD Sender: No OFD packet to send [19:55:05]OFD Sender: No OFD packet to send [19:55:10]OFD Sender: No OFD packet to send [19:55:15]OFD Sender: No OFD packet to send [19:55:20]OFD Sender: No OFD packet to send [19:55:25]OFD Sender: No OFD packet to send [19:55:30]OFD Sender: No OFD packet to send [19:55:35]OFD Sender: No OFD packet to send [19:55:40]OFD Sender: No OFD packet to send [19:55:45]OFD Sender: No OFD packet to send [19:55:50]OFD Sender: No OFD packet to send [19:55:55]OFD Sender: No OFD packet to send [19:56:00]OFD Sender: No OFD packet to send [19:56:05]OFD Sender: No OFD packet to send [19:56:10]OFD Sender: No OFD packet to send [19:56:15]OFD Sender: No OFD packet to send [19:56:20]OFD Sender: No OFD packet to send [19:56:25]OFD Sender: No OFD packet to send [19:56:30]OFD Sender: No OFD packet to send [19:56:35]OFD Sender: No OFD packet to send [19:56:40]OFD Sender: No OFD packet to send [19:56:45]OFD Sender: No OFD packet to send [19:56:50]OFD Sender: No OFD packet to send [19:56:55]OFD Sender: No OFD packet to send [19:57:00]OFD Sender: No OFD packet to send [19:57:05]OFD Sender: No OFD packet to send [19:57:10]OFD Sender: No OFD packet to send [19:57:15]OFD Sender: No OFD packet to send [19:57:19]accept exits with 9 [19:57:19]New connection [19:57:19]New thread 3066928484 created [19:57:19]Thread 3066785124 joined [19:57:19]Waiting for new connection... [19:57:19] Sock 9.Parse request [19:57:19]Sock 9.Check first char [19:57:19]Sock 9.First char is OK [19:57:19]request: POST /json_proto HTTP/1.0 [19:57:19]Method: POST [19:57:19]URL: /json_proto [19:57:19]Method is POST - this is cgi request [19:57:19]url: /json_proto [19:57:19]query_string will be loaded in cgi processing [19:57:19]execute_cgi json_proto POST (null) [19:57:19]execute_cgi path=json_proto method=POST [19:57:19]POST find Content-Length [19:57:19]Host: 172.17.33.3:8080 [19:57:19]Content-Length: 685 [19:57:19]Content-Type: application/json [19:57:19] [19:57:19]POST finish read [19:57:19]Found Content-Length = 685 [19:57:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347074", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 36.480, "sum" : 1200.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:57:19]execute_script... [19:57: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)347074", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 36.480, "sum" : 1200.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:57:19]POST & json_proto [19:57:19]process_json_proto [19:57:19]json parsed OK: [19:57:19]protocol is kg_v1.0 [19:57:19]action value=close_receipt [19:57:19]process_action close_receipt [19:57:19]cmd_close_receipt [19:57:19]MH_GetDate [19:57:19]Write to MH i2c: F0 00 00 AE 03 A0 [19:57:19]Write i2c OK [19:57:19]MH_I2C_Read... [19:57:19]Read from MH i2c: F0 [19:57:19]MH_I2C_Read... [19:57:19]Read from MH i2c: F0 09 00 [19:57:19]MH_I2C_Read... [19:57:19]Read from MH i2c: F0 09 00 AE 03 00 20 92 19 66 23 5B 8F 65 4C [19:57:19]GetLastDocTimeStamp 1712951638 [19:57:19]current date 1712951840 [19:57:19]FM_GetShiftState [19:57:19]SAM_PROTO_GetShiftState [19:57:19]wFMCommunicate request_size=4 [19:57:19]MH_SAM_APDU [19:57:19]CAPDU: 80 13 01 00 [19:57:19]Write to MH i2c: E2 08 00 AF 03 80 13 01 00 00 00 00 00 2F [19:57:19]Write i2c OK [19:57:19]MH_I2C_Read... [19:57:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:57:19]Read from MH i2c: E2 [19:57:19]MH_I2C_Read... [19:57:19]Read from MH i2c: E2 0E 00 [19:57:19]MH_I2C_Read... [19:57:19]Read from MH i2c: E2 0E 00 AF 03 00 09 00 01 17 88 19 66 00 00 00 00 90 00 59 [19:57:19]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [19:57:19]wFMCommunicate OK [19:57:19]SAM_PROTO_GetShiftState done [19:57:19]FM_GetShiftState done [19:57:19]opened in 1712949271 [19:57:19]opened+sec_in_day 1713035671 [19:57:19]quantity*price = 120019 [19:57:19]sum+1 = 120020 [19:57:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1200.00 Внесено: 2000.00 СДАЧА: 800.00 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 11 12.04.2024 19:57 Смена: 114 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28737 ФПД: 29054514803462 1/tax-web-control/client/api/v1/ticket?date=20240412T195720&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28737&fm=29054514803462&tin=02508201610067®Number=0000138879044617&sum=120000 [19:57:20]StoreToDocumentArchive [19:57:20]shift 114 fd 28737 [19:57:20]save to /storage/0114/doc_00028737 [19:57:20]save last doc name /storage/0114/doc_00028737 to /storage/kkm_last_doc_name [19:57:20]save OK [19:57:20]Clear old archive folders... [19:57:20]ProcessDocumentItem done err = 0, tmpTLVsize=250 [19:57:20]tlvbuf is 011A1D90 [19:57:20]SAM_PROTO_ClearQueue [19:57:20]wFMCommunicate request_size=4 [19:57:20]MH_SAM_APDU [19:57:20]CAPDU: 80 09 00 00 [19:57:20]Write to MH i2c: E2 08 00 BC 03 80 09 00 00 00 00 00 00 31 [19:57:20]OFD Sender: No OFD packet to send [19:57:20]Write i2c OK [19:57:20]MH_I2C_Read... [19:57:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:57:20]Read from MH i2c: E2 [19:57:20]MH_I2C_Read... [19:57:20]Read from MH i2c: E2 03 00 [19:57:20]MH_I2C_Read... [19:57:20]Read from MH i2c: E2 03 00 BC 03 00 90 00 33 [19:57:20]RAPDU: 90 00 [19:57:20]wFMCommunicate OK [19:57:20]SAM_PROTO_ClearQueue done [19:57:20]KKMCreateOFDPacket [19:57:20]OFDProtocolAddRootSTLVToBuf [19:57:20]FM_MakeSignedData [19:57:20]FM_MakeSignedData [19:57:20]SAM_PROTO_SignData [19:57:20]wFMCommunicate request_size=4 [19:57:20]MH_SAM_APDU [19:57:20]CAPDU: 80 0D 01 02 [19:57:20]Write to MH i2c: E2 08 00 BD 03 80 0D 01 02 00 00 00 00 39 [19:57:20]Write i2c OK [19:57:20]MH_I2C_Read... [19:57:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:57:20]Read from MH i2c: E2 [19:57:20]MH_I2C_Read... [19:57:20]Read from MH i2c: E2 03 00 [19:57:20]MH_I2C_Read... [19:57:20]Read from MH i2c: E2 03 00 BD 03 00 90 00 34 [19:57:20]RAPDU: 90 00 [19:57:20]wFMCommunicate OK [19:57:20]wFMCommunicate request_size=255 [19:57:20]MH_SAM_APDU [19:57:20]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 80 8E 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 D3 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 0B 00 00 00 F4 03 04 00 20 92 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 41 70 00 00 35 04 06 00 1A 6C [19:57:20]Write to MH i2c: E2 02 01 BE 03 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 80 8E 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 D3 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 0B 00 00 00 F4 03 04 00 20 92 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 41 70 00 00 35 04 06 00 1A 6C 00 00 DF [19:57:20]Write i2c OK [19:57:20]MH_I2C_Read... [19:57:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:57:20]Read from MH i2c: E2 [19:57:20]MH_I2C_Read... [19:57:20]Read from MH i2c: E2 03 00 [19:57:20]MH_I2C_Read... [19:57:20]Read from MH i2c: E2 03 00 BE 03 00 90 00 35 [19:57:20]RAPDU: 90 00 [19:57:20]wFMCommunicate OK [19:57:20]wFMCommunicate request_size=9 [19:57:20]MH_SAM_APDU [19:57:20]CAPDU: 80 0D 02 02 04 C8 08 B3 06 [19:57:20]Write to MH i2c: E2 0C 00 BF 03 80 0D 02 02 04 00 C8 08 B3 06 00 00 CD [19:57:20]Write i2c OK [19:57:20]MH_I2C_Read... [19:57:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:57:20]Read from MH i2c: E2 [19:57:20]MH_I2C_Read... [19:57:20]Read from MH i2c: E2 03 00 [19:57:20]MH_I2C_Read... [19:57:20]Read from MH i2c: E2 03 00 BF 03 00 90 00 36 [19:57:20]RAPDU: 90 00 [19:57:20]wFMCommunicate OK [19:57:20]wFMCommunicate request_size=4 [19:57:20]MH_SAM_APDU [19:57:20]CAPDU: 80 0D 03 02 [19:57:20]Write to MH i2c: E2 08 00 C0 03 80 0D 03 02 00 00 00 00 3E [19:57:20]Write i2c OK [19:57:20]MH_I2C_Read... [19:57:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:57:20]Read from MH i2c: E2 [19:57:20]MH_I2C_Read... [19:57:20]Read from MH i2c: E2 0B 00 [19:57:20]MH_I2C_Read... [19:57:20]Read from MH i2c: E2 0B 00 C0 03 00 62 B1 CB 53 A1 E9 8F 10 90 00 99 [19:57:20]RAPDU: 62 B1 CB 53 A1 E9 8F 10 90 00 [19:57:20]wFMCommunicate OK [19:57:20]SAM_PROTO_SignData done [19:57:20]FM_MakeSignedData done [19:57:20]CreateOFDProtocolMessage [19:57:20]wFMCommunicate request_size=4 [19:57:20]MH_SAM_APDU [19:57:20]CAPDU: 80 11 00 00 [19:57:20]Write to MH i2c: E2 08 00 C1 03 80 11 00 00 00 00 00 00 3E [19:57:20]Write i2c OK [19:57:20]MH_I2C_Read... [19:57:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:57:20]Read from MH i2c: E2 [19:57:20]MH_I2C_Read... [19:57:20]Read from MH i2c: E2 17 00 [19:57:20]MH_I2C_Read... [19:57:20]Read from MH i2c: E2 17 00 C1 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 8D [19:57:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:57:20]wFMCommunicate OK [19:57:20]CreateOFDProtocolMessage done [19:57:20]OFDSenderStorePacket 28737 [19:57:20]StoreOFDPacket docnum=28737 [19:57:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 C3 6B 06 01 F0 68 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 80 8E 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 D3 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 0B 00 00 00 F4 03 04 00 20 92 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 41 70 00 00 35 04 06 00 1A 6C C8 08 B3 06 62 B1 CB 53 A1 E9 8F 10 [19:57:20]CheckFolder [19:57:20]dirname=/storage/ofd_packets [19:57:20]CheckFolder done [19:57:20]ProducePacketName [19:57:20]name=ofd_packets/00028737 [19:57:20]NVStorageSaveData ofd_packets/00028737 [19:57:20]File name is /storage/ofd_packets/00028737 [19:57:20]Write 300 bytes [19:57:20]NVStorageSaveData done [19:57:20]OFDSenderStorePacket done [19:57:20]KKMCreateOFDPacket done [19:57:20]NVStorageSaveData kkm_last_timestamp [19:57:20]File name is /storage/kkm_last_timestamp [19:57:20]Write 4 bytes [19:57:20]NVStorageSaveData done [19:57:20]ExternCall_PrintAddStr [19:57:20]wPrintStart [19:57:20]Write to MH i2c: 01 00 00 C2 03 C5 [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 C2 03 00 00 00 00 00 FF 0F DA [19:57:20]RasterBufferAndPrint [19:57:20]line Счет N : (1)347074 [19:57:20]line ИНН: 02508201610067 [19:57:20]line Контрольно-Кассовый Чек [19:57:20]line ПРОДАЖА [19:57:20]line ТРК (МРК, ГНК) : 71 [19:57:20]line Товар: 2711129700 [19:57:20]line ГАЗ-К-5 [19:57:20]line 36.480 * 32.90 [19:57:20]line = 1200.19 [19:57:20]line НДС 12% НСП 1% [19:57:20]line > о реализуемом товаре [19:57:20]line ОКРУГЛЕНИЕ: -0.19 [19:57:20]line ИТОГО: 1200.00 [19:57:20]line Внесено: 2000.00 [19:57:20]line СДАЧА: 800.00 [19:57:20]line НСП 1% : 10.62 [19:57:20]line НДС 12% : 127.45 [19:57:20]line Наличными: 1200.00 [19:57:20]line Безнал.: 0.00 [19:57:20]line Место: АЗС № 108 "Партнер Нефть" [19:57:20]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [19:57:20]line СНО: Общий режим [19:57:20]line Чек 11 12.04.2024 19:57 [19:57:20]line Смена: 114 ФФД: 1.0 [19:57:20]line ЗНМ: 0300000027 [19:57:20]line РНМ: 0000138879044617 [19:57:20]line Версия ККМ: 001 [19:57:20]line ФМ: 0000000000963154 [19:57:20]line ФД: 28737 [19:57:20]line ФПД: 29054514803462 [19:57:21]line 1/tax-web-control/client/api/v1/ticket?date=20240412T195720&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28737&fm=29054514803462&tin=02508201610067®Number=0000138879044617&sum=120000 [19:57:21]OFD Sender: Processing packet 28737 [packets to send 8, broken 7] [19:57:21]ProducePacketName [19:57:21]name=ofd_packets/00028737 [19:57:21]OFD Sender: To server: pG, [19:57:21]CommunicateWithHost lk.salyk.kg:30040 [19:57:21]ConnectInit lk.salyk.kg [19:57:21]written 0, free lines is 4095 [19:57:21]Connected sock=10 [19:57:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 C3 6B 06 01 F0 68 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 80 8E 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 D3 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 0B 00 00 00 F4 03 04 00 20 92 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 41 70 00 00 35 04 06 00 1A 6C C8 08 B3 06 62 B1 CB 53 A1 E9 8F 10 [19:57:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 C9 81 47 00 0C F8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 41 70 00 00 F4 03 04 00 C9 3C 19 66 B6 04 01 00 00 F3 1C F1 79 52 36 21 6B [19:57:21]CommunicateWithHost err = 0 [19:57:21]CheckOFDResponse [19:57:21]1017 (14) - 77093643461234 [19:57:21]1041 (16) - 0000000000963154 [19:57:21]1040 (4) - 28737 [19:57:21]1012 (4) - 12.04.2024 13:53 [19:57:21]1206 (1) - 0 [19:57:21]OFD Sender: Remove packet 28737 [19:57:21]ProducePacketName [19:57:21]name=ofd_packets/00028737 [19:57:21]NVStorageDeleteData [19:57:21]Write to MH i2c: 01 00 00 EC 03 EF [19:57:21]Write i2c OK [19:57:21]MH_I2C_Read... [19:57:21]Read from MH i2c: 01 [19:57:21]MH_I2C_Read... [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 EC 03 00 00 00 00 00 C1 0C C3 [19:57:21]RasterBufferAndPrint [19:57:21]line [19:57:21]line [19:57:21]line [19:57:21]line [19:57:21]line [19:57:21]written 0, free lines is 3269 [19:57:21]MH_Cut [19:57:21]Write to MH i2c: D1 01 00 F3 03 01 C8 [19:57:21]Write i2c OK [19:57:21]MH_I2C_Read... [19:57:21]Read from MH i2c: D1 [19:57:21]MH_I2C_Read... [19:57:21]Read from MH i2c: D1 01 00 [19:57:21]MH_I2C_Read... [19:57:21]Read from MH i2c: D1 01 00 F3 03 00 C7 [19:57:21]Write to MH i2c: 01 00 00 F4 03 F7 [19:57:21]Write i2c OK [19:57:21]MH_I2C_Read... [19:57:22]OFD Sender: No OFD packet to send [19:57:22]*** Cut start [19:57:22]*** Partial cut [19:57:22]*** CUTSNS_PIN = 1 [19:57:22]*** CUTSNS_PIN = 0 [19:57:22]*** Brake cut motor [19:57:23]Read from MH i2c: 01 [19:57:23]MH_I2C_Read... [19:57:23]*** Stop cut motor [19:57:23]*** Cut end [19:57:23]Read from MH i2c: 01 07 00 [19:57:23]MH_I2C_Read... [19:57:23]Read from MH i2c: 01 07 00 F4 03 00 00 00 00 00 FF 0F 0C [19:57:23]process_action close_receipt done [19:57:23]requested_data is exist [19:57:23]produce_requested_data [19:57:23]requested_item fm.sn is exist - process it [19:57:23]wFMCommunicate request_size=4 [19:57:23]MH_SAM_APDU [19:57:23]CAPDU: 80 11 00 00 [19:57:23]Write to MH i2c: E2 08 00 F5 03 80 11 00 00 00 00 00 00 72 [19:57:23]Write i2c OK [19:57:23]MH_I2C_Read... [19:57:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:57:23]Read from MH i2c: E2 [19:57:23]MH_I2C_Read... [19:57:23]Read from MH i2c: E2 17 00 [19:57:23]MH_I2C_Read... [19:57:23]Read from MH i2c: E2 17 00 F5 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 C1 [19:57:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:57:23]wFMCommunicate OK [19:57:23]requested_item fd.num is exist - process it [19:57:23]SAM_PROTO_GetFieldsCounters [19:57:23]wFMCommunicate request_size=4 [19:57:23]MH_SAM_APDU [19:57:23]CAPDU: 80 13 00 00 [19:57:23]Write to MH i2c: E2 08 00 F6 03 80 13 00 00 00 00 00 00 75 [19:57:23]Write i2c OK [19:57:23]MH_I2C_Read... [19:57:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:57:23]Read from MH i2c: E2 [19:57:23]MH_I2C_Read... [19:57:23]Read from MH i2c: E2 62 00 [19:57:23]MH_I2C_Read... [19:57:23]Read from MH i2c: E2 62 00 F6 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 41 70 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 F7 [19:57:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 41 70 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 [19:57:23]wFMCommunicate OK [19:57:23]SAM_PROTO_GetFieldsCounters done [19:57:23]requested_item shift.num is exist - process it [19:57:23]requested_item shift.opened is exist - process it [19:57:23]req_shift_opened [19:57:23]FM_GetShiftState [19:57:23]SAM_PROTO_GetShiftState [19:57:23]wFMCommunicate request_size=4 [19:57:23]MH_SAM_APDU [19:57:23]CAPDU: 80 13 01 00 [19:57:23]Write to MH i2c: E2 08 00 F7 03 80 13 01 00 00 00 00 00 77 [19:57:23]Write i2c OK [19:57:23]MH_I2C_Read... [19:57:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:57:23]Read from MH i2c: E2 [19:57:23]MH_I2C_Read... [19:57:23]Read from MH i2c: E2 0E 00 [19:57:23]MH_I2C_Read... [19:57:23]Read from MH i2c: E2 0E 00 F7 03 00 09 00 01 17 88 19 66 00 00 00 00 90 00 A1 [19:57:23]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [19:57:23]wFMCommunicate OK [19:57:23]SAM_PROTO_GetShiftState done [19:57:23]FM_GetShiftState done [19:57:23]req_shift_opened done [19:57:23]requested_item shift.open_date is exist - process it [19:57:23]req_shift_open_date [19:57:23]req_shift_open_date done [19:57:23]produce_requested_data done [19:57:23]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28737,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271} [19:57:23]process_action_free close_receipt [19:57:23]json_value_free [19:57:23]json_value_free done [19:57:23]process_json_proto returns [19:57:23]Send response to host [19:57:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28737,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271}}} [19:57:23]free response buf [19:57:23]execute_script done [19:57:23]execute_script returns [19:57:23]free content buf [19:57:23]Sock 9.Close socket [19:57:23]Sock 9.Thread stoped [19:57:27]OFD Sender: No OFD packet to send [19:57:32]OFD Sender: No OFD packet to send [19:57:37]OFD Sender: No OFD packet to send [19:57:42]OFD Sender: No OFD packet to send [19:57:47]OFD Sender: No OFD packet to send [19:57:52]OFD Sender: No OFD packet to send [19:57:57]OFD Sender: No OFD packet to send [19:58:02]OFD Sender: No OFD packet to send [19:58:02]accept exits with 7 [19:58:02]New connection [19:58:02]New thread 3066785124 created [19:58:02]Thread 3066928484 joined [19:58:02]Waiting for new connection... [19:58:02] Sock 7.Parse request [19:58:02]Sock 7.Check first char [19:58:02]Sock 7.First char is OK [19:58:02]request: POST /json_proto HTTP/1.0 [19:58:02]Method: POST [19:58:02]URL: /json_proto [19:58:02]Method is POST - this is cgi request [19:58:02]url: /json_proto [19:58:02]query_string will be loaded in cgi processing [19:58:02]execute_cgi json_proto POST (null) [19:58:02]execute_cgi path=json_proto method=POST [19:58:02]POST find Content-Length [19:58:02]Host: 172.17.33.3:8080 [19:58:02]Content-Length: 802 [19:58:02]Content-Type: application/json [19:58:02] [19:58:02]POST finish read [19:58:02]Found Content-Length = 802 [19:58:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347073", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 2.730, "sum" : 197.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 197.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:58:02]execute_script... [19:58:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347073", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 2.730, "sum" : 197.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 197.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:58:02]POST & json_proto [19:58:02]process_json_proto [19:58:02]json parsed OK: [19:58:02]protocol is kg_v1.0 [19:58:02]action value=close_receipt [19:58:02]process_action close_receipt [19:58:02]cmd_close_receipt [19:58:02]MH_GetDate [19:58:02]Write to MH i2c: F0 00 00 F8 03 EA [19:58:02]Write i2c OK [19:58:02]MH_I2C_Read... [19:58:02]Read from MH i2c: F0 [19:58:02]MH_I2C_Read... [19:58:02]Read from MH i2c: F0 09 00 [19:58:02]MH_I2C_Read... [19:58:02]Read from MH i2c: F0 09 00 F8 03 00 4B 92 19 66 23 5B 8F 65 C1 [19:58:02]GetLastDocTimeStamp 1712951840 [19:58:02]current date 1712951883 [19:58:02]FM_GetShiftState [19:58:02]SAM_PROTO_GetShiftState [19:58:02]wFMCommunicate request_size=4 [19:58:02]MH_SAM_APDU [19:58:02]CAPDU: 80 13 01 00 [19:58:02]Write to MH i2c: E2 08 00 F9 03 80 13 01 00 00 00 00 00 79 [19:58:02]Write i2c OK [19:58:02]MH_I2C_Read... [19:58:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:58:02]Read from MH i2c: E2 [19:58:02]MH_I2C_Read... [19:58:02]Read from MH i2c: E2 0E 00 [19:58:02]MH_I2C_Read... [19:58:02]Read from MH i2c: E2 0E 00 F9 03 00 09 00 01 17 88 19 66 00 00 00 00 90 00 A3 [19:58:02]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [19:58:02]wFMCommunicate OK [19:58:02]SAM_PROTO_GetShiftState done [19:58:02]FM_GetShiftState done [19:58:02]opened in 1712949271 [19:58:02]opened+sec_in_day 1713035671 [19:58:02]quantity*price = 19765 [19:58:02]sum+1 = 19766 [19:58:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 197.65 НСП 1% : 1.75 НДС 12% : 20.99 Наличными: 0.00 Безнал.: 197.65 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 12 12.04.2024 19:58 Смена: 114 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 28738 ФПД: 173385497681186 1/tax-web-control/client/api/v1/ticket?date=20240412T195803&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28738&fm=173385497681186&tin=02508201610067®Number=0000138879044617&sum=19765 [19:58:03]StoreToDocumentArchive [19:58:03]shift 114 fd 28738 [19:58:03]save to /storage/0114/doc_00028738 [19:58:03]save last doc name /storage/0114/doc_00028738 to /storage/kkm_last_doc_name [19:58:03]save OK [19:58:03]Clear old archive folders... [19:58:03]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:58:03]tlvbuf is 0121AD80 [19:58:03]SAM_PROTO_ClearQueue [19:58:03]wFMCommunicate request_size=4 [19:58:03]MH_SAM_APDU [19:58:03]CAPDU: 80 09 00 00 [19:58:03]Write to MH i2c: E2 08 00 06 04 80 09 00 00 00 00 00 00 7C [19:58:03]Write i2c OK [19:58:03]MH_I2C_Read... [19:58:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:58:03]Read from MH i2c: E2 [19:58:03]MH_I2C_Read... [19:58:03]Read from MH i2c: E2 03 00 [19:58:03]MH_I2C_Read... [19:58:03]Read from MH i2c: E2 03 00 06 04 00 90 00 7E [19:58:03]RAPDU: 90 00 [19:58:03]wFMCommunicate OK [19:58:03]SAM_PROTO_ClearQueue done [19:58:03]KKMCreateOFDPacket [19:58:03]OFDProtocolAddRootSTLVToBuf [19:58:03]FM_MakeSignedData [19:58:03]FM_MakeSignedData [19:58:03]SAM_PROTO_SignData [19:58:03]wFMCommunicate request_size=4 [19:58:03]MH_SAM_APDU [19:58:03]CAPDU: 80 0D 01 02 [19:58:03]Write to MH i2c: E2 08 00 07 04 80 0D 01 02 00 00 00 00 84 [19:58:03]Write i2c OK [19:58:03]MH_I2C_Read... [19:58:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:58:03]Read from MH i2c: E2 [19:58:03]MH_I2C_Read... [19:58:03]Read from MH i2c: E2 03 00 [19:58:03]MH_I2C_Read... [19:58:03]Read from MH i2c: E2 03 00 07 04 00 90 00 7F [19:58:03]RAPDU: 90 00 [19:58:03]wFMCommunicate OK [19:58:03]wFMCommunicate request_size=255 [19:58:03]MH_SAM_APDU [19:58: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 35 FF 03 08 00 03 AA 0A 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 35 4D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 35 4D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 35 4D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 4B 92 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 42 70 00 00 35 04 06 00 9D B1 74 FF [19:58:03]Write to MH i2c: E2 02 01 08 04 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 0A 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 35 4D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 35 4D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 35 4D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 4B 92 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 42 70 00 00 35 04 06 00 9D B1 74 FF 00 00 D3 [19:58:03]Write i2c OK [19:58:03]MH_I2C_Read... [19:58:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:58:04]Read from MH i2c: E2 [19:58:04]MH_I2C_Read... [19:58:04]Read from MH i2c: E2 03 00 [19:58:04]MH_I2C_Read... [19:58:04]Read from MH i2c: E2 03 00 08 04 00 90 00 80 [19:58:04]RAPDU: 90 00 [19:58:04]wFMCommunicate OK [19:58:04]wFMCommunicate request_size=7 [19:58:04]MH_SAM_APDU [19:58:04]CAPDU: 80 0D 02 02 02 9D 22 [19:58:04]Write to MH i2c: E2 0A 00 09 04 80 0D 02 02 02 00 9D 22 00 00 4A [19:58:04]Write i2c OK [19:58:04]MH_I2C_Read... [19:58:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:58:04]Read from MH i2c: E2 [19:58:04]MH_I2C_Read... [19:58:04]Read from MH i2c: E2 03 00 [19:58:04]MH_I2C_Read... [19:58:04]Read from MH i2c: E2 03 00 09 04 00 90 00 81 [19:58:04]RAPDU: 90 00 [19:58:04]wFMCommunicate OK [19:58:04]wFMCommunicate request_size=4 [19:58:04]MH_SAM_APDU [19:58:04]CAPDU: 80 0D 03 02 [19:58:04]Write to MH i2c: E2 08 00 0A 04 80 0D 03 02 00 00 00 00 89 [19:58:04]Write i2c OK [19:58:04]MH_I2C_Read... [19:58:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:58:04]Read from MH i2c: E2 [19:58:04]MH_I2C_Read... [19:58:04]Read from MH i2c: E2 0B 00 [19:58:04]MH_I2C_Read... [19:58:04]Read from MH i2c: E2 0B 00 0A 04 00 DE 07 A2 9D A8 C5 F7 AA 90 00 BC [19:58:04]RAPDU: DE 07 A2 9D A8 C5 F7 AA 90 00 [19:58:04]wFMCommunicate OK [19:58:04]SAM_PROTO_SignData done [19:58:04]FM_MakeSignedData done [19:58:04]CreateOFDProtocolMessage [19:58:04]wFMCommunicate request_size=4 [19:58:04]MH_SAM_APDU [19:58:04]CAPDU: 80 11 00 00 [19:58:04]Write to MH i2c: E2 08 00 0B 04 80 11 00 00 00 00 00 00 89 [19:58:04]Write i2c OK [19:58:04]MH_I2C_Read... [19:58:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:58:04]Read from MH i2c: E2 [19:58:04]MH_I2C_Read... [19:58:04]Read from MH i2c: E2 17 00 [19:58:04]MH_I2C_Read... [19:58:04]Read from MH i2c: E2 17 00 0B 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D8 [19:58:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:58:04]wFMCommunicate OK [19:58:04]CreateOFDProtocolMessage done [19:58:04]OFDSenderStorePacket 28738 [19:58:04]StoreOFDPacket docnum=28738 [19:58:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 C9 30 04 01 34 86 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 0A 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 35 4D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 35 4D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 35 4D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 4B 92 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 42 70 00 00 35 04 06 00 9D B1 74 FF 9D 22 DE 07 A2 9D A8 C5 F7 AA [19:58:04]CheckFolder [19:58:04]dirname=/storage/ofd_packets [19:58:04]CheckFolder done [19:58:04]ProducePacketName [19:58:04]name=ofd_packets/00028738 [19:58:04]NVStorageSaveData ofd_packets/00028738 [19:58:04]File name is /storage/ofd_packets/00028738 [19:58:04]Write 298 bytes [19:58:04]NVStorageSaveData done [19:58:04]OFDSenderStorePacket done [19:58:04]KKMCreateOFDPacket done [19:58:04]NVStorageSaveData kkm_last_timestamp [19:58:04]File name is /storage/kkm_last_timestamp [19:58:04]Write 4 bytes [19:58:04]NVStorageSaveData done [19:58:04]ExternCall_PrintAddStr [19:58:04]wPrintStart [19:58:04]Write to MH i2c: 01 00 00 0C 04 10 [19:58:04]Write i2c OK [19:58:04]MH_I2C_Read... [19:58:04]Read from MH i2c: 01 [19:58:04]MH_I2C_Read... [19:58:04]Read from MH i2c: 01 07 00 [19:58:04]MH_I2C_Read... [19:58:04]Read from MH i2c: 01 07 00 0C 04 00 00 00 00 00 FF 0F 25 [19:58:04]RasterBufferAndPrint [19:58:04]line Счет N : (1)347073 [19:58:04]line ИНН: 02508201610067 [19:58:04]line Контрольно-Кассовый Чек [19:58:04]line ПРОДАЖА [19:58:04]line ТРК (МРК, ГНК) : 61 [19:58:04]line Товар: 2710194210 [19:58:04]line ДТ-К-5 [19:58:04]line 2.730 * 72.40 [19:58:04]line = 197.65 [19:58:04]line НДС 12% НСП 1% [19:58:04]line > о реализуемом товаре [19:58:04]line ИТОГО: 197.65 [19:58:04]line НСП 1% : 1.75 [19:58:04]line НДС 12% : 20.99 [19:58:04]line Наличными: 0.00 [19:58:04]line Безнал.: 197.65 [19:58:04]line Место: АЗС № 108 "Партнер Нефть" [19:58:04]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [19:58:04]line СНО: Общий режим [19:58:04]line Чек 12 12.04.2024 19:58 [19:58:04]line Смена: 114 ФФД: 1.0 [19:58:04]line ЗНМ: 0300000027 [19:58:04]line РНМ: 0000138879044617 [19:58:04]line Версия ККМ: 001 [19:58:04]line Платежная система: О! деньги [19:58:04]line ФМ: 0000000000963154 [19:58:04]line ФД: 28738 [19:58:04]line ФПД: 173385497681186 [19:58:04]line 1/tax-web-control/client/api/v1/ticket?date=20240412T195803&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28738&fm=173385497681186&tin=02508201610067®Number=0000138879044617&sum=19765 [19:58:04]OFD Sender: Processing packet 28738 [packets to send 8, broken 7] [19:58:04]ProducePacketName [19:58:04]name=ofd_packets/00028738 [19:58:04]OFD Sender: To server: pG, [19:58:04]CommunicateWithHost lk.salyk.kg:30040 [19:58:04]ConnectInit lk.salyk.kg [19:58:04]written 0, free lines is 4095 [19:58:04]Connected sock=11 [19:58:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 C9 30 04 01 34 86 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 0A 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 35 4D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 35 4D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 35 4D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 4B 92 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 42 70 00 00 35 04 06 00 9D B1 74 FF 9D 22 DE 07 A2 9D A8 C5 F7 AA [19:58:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 E4 63 47 00 2B EA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 42 70 00 00 F4 03 04 00 F4 3C 19 66 B6 04 01 00 00 95 5B F7 8F 57 15 4F 55 [19:58:04]CommunicateWithHost err = 0 [19:58:04]CheckOFDResponse [19:58:04]1017 (14) - 77093643461234 [19:58:04]1041 (16) - 0000000000963154 [19:58:04]1040 (4) - 28738 [19:58:04]1012 (4) - 12.04.2024 13:53 [19:58:04]1206 (1) - 0 [19:58:04]OFD Sender: Remove packet 28738 [19:58:04]ProducePacketName [19:58:04]name=ofd_packets/00028738 [19:58:04]NVStorageDeleteData [19:58:04]Write to MH i2c: 01 00 00 35 04 39 [19:58:04]Write i2c OK [19:58:04]MH_I2C_Read... [19:58:04]Read from MH i2c: 01 [19:58:04]MH_I2C_Read... [19:58:04]Read from MH i2c: 01 07 00 [19:58:04]MH_I2C_Read... [19:58:04]Read from MH i2c: 01 07 00 35 04 00 00 00 00 00 E6 0C 32 [19:58:04]RasterBufferAndPrint [19:58:04]line [19:58:04]line [19:58:04]line [19:58:04]line [19:58:04]line [19:58:04]written 0, free lines is 3305 [19:58:04]MH_Cut [19:58:04]Write to MH i2c: D1 01 00 3C 04 01 12 [19:58:04]Write i2c OK [19:58:04]MH_I2C_Read... [19:58:04]Read from MH i2c: D1 [19:58:04]MH_I2C_Read... [19:58:04]Read from MH i2c: D1 01 00 [19:58:04]MH_I2C_Read... [19:58:04]Read from MH i2c: D1 01 00 3C 04 00 11 [19:58:04]Write to MH i2c: 01 00 00 3D 04 41 [19:58:04]Write i2c OK [19:58:04]MH_I2C_Read... [19:58:05]OFD Sender: No OFD packet to send [19:58:05]*** Cut start [19:58:05]*** Partial cut [19:58:05]*** CUTSNS_PIN = 1 [19:58:05]*** CUTSNS_PIN = 0 [19:58:06]*** Brake cut motor [19:58:06]Read from MH i2c: 01 [19:58:06]MH_I2C_Read... [19:58:06]*** Stop cut motor [19:58:06]*** Cut end [19:58:06]Read from MH i2c: 01 07 00 [19:58:06]MH_I2C_Read... [19:58:06]Read from MH i2c: 01 07 00 3D 04 00 00 00 00 00 FF 0F 56 [19:58:06]process_action close_receipt done [19:58:06]requested_data is exist [19:58:06]produce_requested_data [19:58:06]requested_item fm.sn is exist - process it [19:58:06]wFMCommunicate request_size=4 [19:58:06]MH_SAM_APDU [19:58:06]CAPDU: 80 11 00 00 [19:58:06]Write to MH i2c: E2 08 00 3E 04 80 11 00 00 00 00 00 00 BC [19:58:06]Write i2c OK [19:58:06]MH_I2C_Read... [19:58:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:58:06]Read from MH i2c: E2 [19:58:06]MH_I2C_Read... [19:58:06]Read from MH i2c: E2 17 00 [19:58:06]MH_I2C_Read... [19:58:06]Read from MH i2c: E2 17 00 3E 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 0B [19:58:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:58:06]wFMCommunicate OK [19:58:06]requested_item fd.num is exist - process it [19:58:06]SAM_PROTO_GetFieldsCounters [19:58:06]wFMCommunicate request_size=4 [19:58:06]MH_SAM_APDU [19:58:06]CAPDU: 80 13 00 00 [19:58:06]Write to MH i2c: E2 08 00 3F 04 80 13 00 00 00 00 00 00 BF [19:58:06]Write i2c OK [19:58:06]MH_I2C_Read... [19:58:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:58:06]Read from MH i2c: E2 [19:58:06]MH_I2C_Read... [19:58:06]Read from MH i2c: E2 62 00 [19:58:06]MH_I2C_Read... [19:58:06]Read from MH i2c: E2 62 00 3F 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 42 70 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 45 [19:58:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 42 70 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 [19:58:06]wFMCommunicate OK [19:58:06]SAM_PROTO_GetFieldsCounters done [19:58:06]requested_item shift.num is exist - process it [19:58:06]requested_item shift.opened is exist - process it [19:58:06]req_shift_opened [19:58:06]FM_GetShiftState [19:58:06]SAM_PROTO_GetShiftState [19:58:06]wFMCommunicate request_size=4 [19:58:06]MH_SAM_APDU [19:58:06]CAPDU: 80 13 01 00 [19:58:06]Write to MH i2c: E2 08 00 40 04 80 13 01 00 00 00 00 00 C1 [19:58:06]Write i2c OK [19:58:06]MH_I2C_Read... [19:58:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:58:06]Read from MH i2c: E2 [19:58:06]MH_I2C_Read... [19:58:06]Read from MH i2c: E2 0E 00 [19:58:06]MH_I2C_Read... [19:58:06]Read from MH i2c: E2 0E 00 40 04 00 09 00 01 17 88 19 66 00 00 00 00 90 00 EB [19:58:06]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [19:58:06]wFMCommunicate OK [19:58:06]SAM_PROTO_GetShiftState done [19:58:06]FM_GetShiftState done [19:58:06]req_shift_opened done [19:58:06]requested_item shift.open_date is exist - process it [19:58:06]req_shift_open_date [19:58:06]req_shift_open_date done [19:58:06]produce_requested_data done [19:58:06]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28738,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271} [19:58:06]process_action_free close_receipt [19:58:06]json_value_free [19:58:06]json_value_free done [19:58:06]process_json_proto returns [19:58:06]Send response to host [19:58:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28738,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271}}} [19:58:06]free response buf [19:58:06]execute_script done [19:58:06]execute_script returns [19:58:06]free content buf [19:58:06]Sock 7.Close socket [19:58:06]Sock 7.Thread stoped [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:45]OFD Sender: No OFD packet to send [19:58:50]OFD Sender: No OFD packet to send [19:58:55]OFD Sender: No OFD packet to send [19:59:00]OFD Sender: No OFD packet to send [19:59:05]OFD Sender: No OFD packet to send [19:59:10]OFD Sender: No OFD packet to send [19:59:15]OFD Sender: No OFD packet to send [19:59:20]OFD Sender: No OFD packet to send [19:59:25]OFD Sender: No OFD packet to send [19:59:30]OFD Sender: No OFD packet to send [19:59:35]OFD Sender: No OFD packet to send [19:59:40]OFD Sender: No OFD packet to send [19:59:45]OFD Sender: No OFD packet to send [19:59:50]OFD Sender: No OFD packet to send [19:59:55]OFD Sender: No OFD packet to send [20:00:00]OFD Sender: No OFD packet to send [20:00:05]OFD Sender: No OFD packet to send [20:00:10]OFD Sender: No OFD packet to send [20:00:15]OFD Sender: No OFD packet to send [20:00:20]OFD Sender: No OFD packet to send [20:00:23]accept exits with 9 [20:00:23]New connection [20:00:23]New thread 3066928484 created [20:00:23]Thread 3066785124 joined [20:00:23]Waiting for new connection... [20:00:23] Sock 9.Parse request [20:00:23]Sock 9.Check first char [20:00:23]Sock 9.First char is OK [20:00:23]request: POST /json_proto HTTP/1.0 [20:00:23]Method: POST [20:00:23]URL: /json_proto [20:00:23]Method is POST - this is cgi request [20:00:23]url: /json_proto [20:00:23]query_string will be loaded in cgi processing [20:00:23]execute_cgi json_proto POST (null) [20:00:23]execute_cgi path=json_proto method=POST [20:00:23]POST find Content-Length [20:00:23]Host: 172.17.33.3:8080 [20:00:23]Content-Length: 677 [20:00:23]Content-Type: application/json [20:00:23] [20:00:23]POST finish read [20:00:23]Found Content-Length = 677 [20:00:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347077", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 7.780, "sum" : 500.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:00:23]execute_script... [20:00: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)347077", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 7.780, "sum" : 500.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:00:23]POST & json_proto [20:00:23]process_json_proto [20:00:23]json parsed OK: [20:00:23]protocol is kg_v1.0 [20:00:23]action value=close_receipt [20:00:23]process_action close_receipt [20:00:23]cmd_close_receipt [20:00:23]MH_GetDate [20:00:23]Write to MH i2c: F0 00 00 41 04 34 [20:00:23]Write i2c OK [20:00:23]MH_I2C_Read... [20:00:23]Read from MH i2c: F0 [20:00:23]MH_I2C_Read... [20:00:23]Read from MH i2c: F0 09 00 [20:00:23]MH_I2C_Read... [20:00:23]Read from MH i2c: F0 09 00 41 04 00 D8 92 19 66 23 5B 8F 65 98 [20:00:23]GetLastDocTimeStamp 1712951883 [20:00:23]current date 1712952024 [20:00:23]FM_GetShiftState [20:00:23]SAM_PROTO_GetShiftState [20:00:23]wFMCommunicate request_size=4 [20:00:23]MH_SAM_APDU [20:00:23]CAPDU: 80 13 01 00 [20:00:23]Write to MH i2c: E2 08 00 42 04 80 13 01 00 00 00 00 00 C3 [20:00:23]Write i2c OK [20:00:23]MH_I2C_Read... [20:00:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:00:23]Read from MH i2c: E2 [20:00:23]MH_I2C_Read... [20:00:23]Read from MH i2c: E2 0E 00 [20:00:23]MH_I2C_Read... [20:00:23]Read from MH i2c: E2 0E 00 42 04 00 09 00 01 17 88 19 66 00 00 00 00 90 00 ED [20:00:23]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [20:00:23]wFMCommunicate OK [20:00:23]SAM_PROTO_GetShiftState done [20:00:23]FM_GetShiftState done [20:00:23]opened in 1712949271 [20:00:23]opened+sec_in_day 1713035671 [20:00:23]quantity*price = 50025 [20:00:23]sum+1 = 50026 [20:00:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 13 12.04.2024 20:00 Смена: 114 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28739 ФПД: 27159670138072 1/tax-web-control/client/api/v1/ticket?date=20240412T200024&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28739&fm=27159670138072&tin=02508201610067®Number=0000138879044617&sum=50000 [20:00:24]StoreToDocumentArchive [20:00:24]shift 114 fd 28739 [20:00:24]save to /storage/0114/doc_00028739 [20:00:24]save last doc name /storage/0114/doc_00028739 to /storage/kkm_last_doc_name [20:00:24]save OK [20:00:24]Clear old archive folders... [20:00:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:00:24]tlvbuf is 0119FF50 [20:00:24]SAM_PROTO_ClearQueue [20:00:24]wFMCommunicate request_size=4 [20:00:24]MH_SAM_APDU [20:00:24]CAPDU: 80 09 00 00 [20:00:24]Write to MH i2c: E2 08 00 4F 04 80 09 00 00 00 00 00 00 C5 [20:00:24]Write i2c OK [20:00:24]MH_I2C_Read... [20:00:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:00:24]Read from MH i2c: E2 [20:00:24]MH_I2C_Read... [20:00:24]Read from MH i2c: E2 03 00 [20:00:24]MH_I2C_Read... [20:00:24]Read from MH i2c: E2 03 00 4F 04 00 90 00 C7 [20:00:24]RAPDU: 90 00 [20:00:24]wFMCommunicate OK [20:00:24]SAM_PROTO_ClearQueue done [20:00:24]KKMCreateOFDPacket [20:00:24]OFDProtocolAddRootSTLVToBuf [20:00:24]FM_MakeSignedData [20:00:24]FM_MakeSignedData [20:00:24]SAM_PROTO_SignData [20:00:24]wFMCommunicate request_size=4 [20:00:24]MH_SAM_APDU [20:00:24]CAPDU: 80 0D 01 02 [20:00:24]Write to MH i2c: E2 08 00 50 04 80 0D 01 02 00 00 00 00 CD [20:00:24]Write i2c OK [20:00:24]MH_I2C_Read... [20:00:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:00:24]Read from MH i2c: E2 [20:00:24]MH_I2C_Read... [20:00:24]Read from MH i2c: E2 03 00 [20:00:24]MH_I2C_Read... [20:00:24]Read from MH i2c: E2 03 00 50 04 00 90 00 C8 [20:00:24]RAPDU: 90 00 [20:00:24]wFMCommunicate OK [20:00:24]wFMCommunicate request_size=255 [20:00:24]MH_SAM_APDU [20:00:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 D8 92 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 43 70 00 00 35 04 06 00 18 [20:00:24]Write to MH i2c: E2 02 01 51 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 D8 92 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 43 70 00 00 35 04 06 00 18 00 00 C2 [20:00:24]Write i2c OK [20:00:24]MH_I2C_Read... [20:00:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:00:25]Read from MH i2c: E2 [20:00:25]MH_I2C_Read... [20:00:25]Read from MH i2c: E2 03 00 [20:00:25]MH_I2C_Read... [20:00:25]Read from MH i2c: E2 03 00 51 04 00 90 00 C9 [20:00:25]RAPDU: 90 00 [20:00:25]wFMCommunicate OK [20:00:25]wFMCommunicate request_size=10 [20:00:25]MH_SAM_APDU [20:00:25]CAPDU: 80 0D 02 02 05 B3 9A 7D A4 D8 [20:00:25]Write to MH i2c: E2 0D 00 52 04 80 0D 02 02 05 00 B3 9A 7D A4 D8 00 00 20 [20:00:25]Write i2c OK [20:00:25]MH_I2C_Read... [20:00:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:00:25]Read from MH i2c: E2 [20:00:25]MH_I2C_Read... [20:00:25]Read from MH i2c: E2 03 00 [20:00:25]MH_I2C_Read... [20:00:25]Read from MH i2c: E2 03 00 52 04 00 90 00 CA [20:00:25]RAPDU: 90 00 [20:00:25]wFMCommunicate OK [20:00:25]wFMCommunicate request_size=4 [20:00:25]MH_SAM_APDU [20:00:25]CAPDU: 80 0D 03 02 [20:00:25]Write to MH i2c: E2 08 00 53 04 80 0D 03 02 00 00 00 00 D2 [20:00:25]Write i2c OK [20:00:25]MH_I2C_Read... [20:00:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:00:25]Read from MH i2c: E2 [20:00:25]MH_I2C_Read... [20:00:25]Read from MH i2c: E2 0B 00 [20:00:25]MH_I2C_Read... [20:00:25]Read from MH i2c: E2 0B 00 53 04 00 79 C1 1E A0 48 EC CA BE 90 00 87 [20:00:25]RAPDU: 79 C1 1E A0 48 EC CA BE 90 00 [20:00:25]wFMCommunicate OK [20:00:25]SAM_PROTO_SignData done [20:00:25]FM_MakeSignedData done [20:00:25]CreateOFDProtocolMessage [20:00:25]wFMCommunicate request_size=4 [20:00:25]MH_SAM_APDU [20:00:25]CAPDU: 80 11 00 00 [20:00:25]Write to MH i2c: E2 08 00 54 04 80 11 00 00 00 00 00 00 D2 [20:00:25]Write i2c OK [20:00:25]MH_I2C_Read... [20:00:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:00:25]Read from MH i2c: E2 [20:00:25]MH_I2C_Read... [20:00:25]Read from MH i2c: E2 17 00 [20:00:25]MH_I2C_Read... [20:00:25]Read from MH i2c: E2 17 00 54 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 21 [20:00:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:00:25]wFMCommunicate OK [20:00:25]CreateOFDProtocolMessage done [20:00:25]OFDSenderStorePacket 28739 [20:00:25]StoreOFDPacket docnum=28739 [20:00:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 9E CE 07 01 CD BE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 D8 92 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 43 70 00 00 35 04 06 00 18 B3 9A 7D A4 D8 79 C1 1E A0 48 EC CA BE [20:00:25]CheckFolder [20:00:25]dirname=/storage/ofd_packets [20:00:25]CheckFolder done [20:00:25]ProducePacketName [20:00:25]name=ofd_packets/00028739 [20:00:25]NVStorageSaveData ofd_packets/00028739 [20:00:25]File name is /storage/ofd_packets/00028739 [20:00:25]Write 301 bytes [20:00:25]NVStorageSaveData done [20:00:25]OFDSenderStorePacket done [20:00:25]KKMCreateOFDPacket done [20:00:25]NVStorageSaveData kkm_last_timestamp [20:00:25]File name is /storage/kkm_last_timestamp [20:00:25]Write 4 bytes [20:00:25]NVStorageSaveData done [20:00:25]ExternCall_PrintAddStr [20:00:25]wPrintStart [20:00:25]Write to MH i2c: 01 00 00 55 04 59 [20:00:25]Write i2c OK [20:00:25]MH_I2C_Read... [20:00:25]Read from MH i2c: 01 [20:00:25]MH_I2C_Read... [20:00:25]Read from MH i2c: 01 07 00 [20:00:25]MH_I2C_Read... [20:00:25]Read from MH i2c: 01 07 00 55 04 00 00 00 00 00 FF 0F 6E [20:00:25]RasterBufferAndPrint [20:00:25]line Счет N : (1)347077 [20:00:25]line ИНН: 02508201610067 [20:00:25]line Контрольно-Кассовый Чек [20:00:25]line ПРОДАЖА [20:00:25]line ТРК (МРК, ГНК) : 13 [20:00:25]line Товар: 2710124130 [20:00:25]line Аи-92-К-5 [20:00:25]line 7.780 * 64.30 [20:00:25]line = 500.25 [20:00:25]line НДС 12% НСП 1% [20:00:25]line > о реализуемом товаре [20:00:25]line ОКРУГЛЕНИЕ: -0.25 [20:00:25]line ИТОГО: 500.00 [20:00:25]line Внесено: 500.00 [20:00:25]line СДАЧА: 0.00 [20:00:25]line НСП 1% : 4.43 [20:00:25]line НДС 12% : 53.12 [20:00:25]line Наличными: 500.00 [20:00:25]line Безнал.: 0.00 [20:00:25]line Место: АЗС № 108 "Партнер Нефть" [20:00:25]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [20:00:25]line СНО: Общий режим [20:00:25]line Чек 13 12.04.2024 20:00 [20:00:25]line Смена: 114 ФФД: 1.0 [20:00:25]line ЗНМ: 0300000027 [20:00:25]line РНМ: 0000138879044617 [20:00:25]line Версия ККМ: 001 [20:00:25]line ФМ: 0000000000963154 [20:00:25]line ФД: 28739 [20:00:25]line ФПД: 27159670138072 [20:00:25]line 1/tax-web-control/client/api/v1/ticket?date=20240412T200024&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28739&fm=27159670138072&tin=02508201610067®Number=0000138879044617&sum=50000 [20:00:25]written 0, free lines is 4095 [20:00:25]OFD Sender: Processing packet 28739 [packets to send 8, broken 7] [20:00:25]ProducePacketName [20:00:25]name=ofd_packets/00028739 [20:00:25]OFD Sender: To server: pG, [20:00:25]CommunicateWithHost lk.salyk.kg:30040 [20:00:25]ConnectInit lk.salyk.kg [20:00:25]Connected sock=10 [20:00:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 9E CE 07 01 CD BE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 D8 92 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 43 70 00 00 35 04 06 00 18 B3 9A 7D A4 D8 79 C1 1E A0 48 EC CA BE [20:00:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 FD 75 47 00 08 7A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 43 70 00 00 F4 03 04 00 81 3D 19 66 B6 04 01 00 00 29 1C A4 35 37 29 92 EB [20:00:25]CommunicateWithHost err = 0 [20:00:25]CheckOFDResponse [20:00:25]1017 (14) - 77093643461234 [20:00:25]1041 (16) - 0000000000963154 [20:00:25]1040 (4) - 28739 [20:00:25]1012 (4) - 12.04.2024 13:56 [20:00:25]1206 (1) - 0 [20:00:25]OFD Sender: Remove packet 28739 [20:00:25]ProducePacketName [20:00:25]name=ofd_packets/00028739 [20:00:25]NVStorageDeleteData [20:00:25]Write to MH i2c: 01 00 00 7F 04 83 [20:00:25]Write i2c OK [20:00:25]MH_I2C_Read... [20:00:25]Read from MH i2c: 01 [20:00:25]MH_I2C_Read... [20:00:25]Read from MH i2c: 01 07 00 [20:00:25]MH_I2C_Read... [20:00:25]Read from MH i2c: 01 07 00 7F 04 00 00 00 00 00 C9 0C 5F [20:00:25]RasterBufferAndPrint [20:00:25]line [20:00:25]line [20:00:25]line [20:00:25]line [20:00:25]line [20:00:25]written 0, free lines is 3277 [20:00:25]MH_Cut [20:00:25]Write to MH i2c: D1 01 00 86 04 01 5C [20:00:25]Write i2c OK [20:00:25]MH_I2C_Read... [20:00:25]Read from MH i2c: D1 [20:00:25]MH_I2C_Read... [20:00:25]Read from MH i2c: D1 01 00 [20:00:25]MH_I2C_Read... [20:00:25]Read from MH i2c: D1 01 00 86 04 00 5B [20:00:25]Write to MH i2c: 01 00 00 87 04 8B [20:00:25]Write i2c OK [20:00:25]MH_I2C_Read... [20:00:26]OFD Sender: No OFD packet to send [20:00:26]*** Cut start [20:00:26]*** Partial cut [20:00:26]*** CUTSNS_PIN = 1 [20:00:26]*** CUTSNS_PIN = 0 [20:00:26]*** Brake cut motor [20:00:27]Read from MH i2c: 01 [20:00:27]MH_I2C_Read... [20:00:27]*** Stop cut motor [20:00:27]*** Cut end [20:00:27]Read from MH i2c: 01 07 00 [20:00:27]MH_I2C_Read... [20:00:27]Read from MH i2c: 01 07 00 87 04 00 00 00 00 00 FF 0F A0 [20:00:27]process_action close_receipt done [20:00:27]requested_data is exist [20:00:27]produce_requested_data [20:00:27]requested_item fm.sn is exist - process it [20:00:27]wFMCommunicate request_size=4 [20:00:27]MH_SAM_APDU [20:00:27]CAPDU: 80 11 00 00 [20:00:27]Write to MH i2c: E2 08 00 88 04 80 11 00 00 00 00 00 00 06 [20:00:27]Write i2c OK [20:00:27]MH_I2C_Read... [20:00:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:00:27]Read from MH i2c: E2 [20:00:27]MH_I2C_Read... [20:00:27]Read from MH i2c: E2 17 00 [20:00:27]MH_I2C_Read... [20:00:27]Read from MH i2c: E2 17 00 88 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 55 [20:00:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:00:27]wFMCommunicate OK [20:00:27]requested_item fd.num is exist - process it [20:00:27]SAM_PROTO_GetFieldsCounters [20:00:27]wFMCommunicate request_size=4 [20:00:27]MH_SAM_APDU [20:00:27]CAPDU: 80 13 00 00 [20:00:27]Write to MH i2c: E2 08 00 89 04 80 13 00 00 00 00 00 00 09 [20:00:27]Write i2c OK [20:00:27]MH_I2C_Read... [20:00:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:00:27]Read from MH i2c: E2 [20:00:27]MH_I2C_Read... [20:00:27]Read from MH i2c: E2 62 00 [20:00:27]MH_I2C_Read... [20:00:27]Read from MH i2c: E2 62 00 89 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 43 70 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 93 [20:00:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 43 70 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 [20:00:27]wFMCommunicate OK [20:00:27]SAM_PROTO_GetFieldsCounters done [20:00:27]requested_item shift.num is exist - process it [20:00:27]requested_item shift.opened is exist - process it [20:00:27]req_shift_opened [20:00:27]FM_GetShiftState [20:00:27]SAM_PROTO_GetShiftState [20:00:27]wFMCommunicate request_size=4 [20:00:27]MH_SAM_APDU [20:00:27]CAPDU: 80 13 01 00 [20:00:27]Write to MH i2c: E2 08 00 8A 04 80 13 01 00 00 00 00 00 0B [20:00:27]Write i2c OK [20:00:27]MH_I2C_Read... [20:00:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:00:27]Read from MH i2c: E2 [20:00:27]MH_I2C_Read... [20:00:27]Read from MH i2c: E2 0E 00 [20:00:27]MH_I2C_Read... [20:00:27]Read from MH i2c: E2 0E 00 8A 04 00 09 00 01 17 88 19 66 00 00 00 00 90 00 35 [20:00:27]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [20:00:27]wFMCommunicate OK [20:00:27]SAM_PROTO_GetShiftState done [20:00:27]FM_GetShiftState done [20:00:27]req_shift_opened done [20:00:27]requested_item shift.open_date is exist - process it [20:00:27]req_shift_open_date [20:00:27]req_shift_open_date done [20:00:27]produce_requested_data done [20:00:27]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28739,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271} [20:00:27]process_action_free close_receipt [20:00:27]json_value_free [20:00:27]json_value_free done [20:00:27]process_json_proto returns [20:00:27]Send response to host [20:00:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28739,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271}}} [20:00:27]free response buf [20:00:27]execute_script done [20:00:27]execute_script returns [20:00:27]free content buf [20:00:27]Sock 9.Close socket [20:00:27]Sock 9.Thread stoped [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:26]OFD Sender: No OFD packet to send [20:01:31]OFD Sender: No OFD packet to send [20:01:36]OFD Sender: No OFD packet to send [20:01:41]OFD Sender: No OFD packet to send [20:01:46]OFD Sender: No OFD packet to send [20:01:51]OFD Sender: No OFD packet to send [20:01:56]OFD Sender: No OFD packet to send [20:02:01]OFD Sender: No OFD packet to send [20:02:06]OFD Sender: No OFD packet to send [20:02:11]OFD Sender: No OFD packet to send [20:02:16]OFD Sender: No OFD packet to send [20:02:21]OFD Sender: No OFD packet to send [20:02:26]OFD Sender: No OFD packet to send [20:02:31]OFD Sender: No OFD packet to send [20:02:36]OFD Sender: No OFD packet to send [20:02:41]OFD Sender: No OFD packet to send [20:02:46]OFD Sender: No OFD packet to send [20:02:51]OFD Sender: No OFD packet to send [20:02:56]OFD Sender: No OFD packet to send [20:03:01]OFD Sender: No OFD packet to send [20:03:06]OFD Sender: No OFD packet to send [20:03:11]OFD Sender: No OFD packet to send [20:03:16]OFD Sender: No OFD packet to send [20:03:21]OFD Sender: No OFD packet to send [20:03:26]OFD Sender: No OFD packet to send [20:03:31]OFD Sender: No OFD packet to send [20:03:36]OFD Sender: No OFD packet to send [20:03:41]OFD Sender: No OFD packet to send [20:03:46]OFD Sender: No OFD packet to send [20:03:51]OFD Sender: No OFD packet to send [20:03:56]OFD Sender: No OFD packet to send [20:04:01]OFD Sender: No OFD packet to send [20:04:06]OFD Sender: No OFD packet to send [20:04:11]OFD Sender: No OFD packet to send [20:04:16]OFD Sender: No OFD packet to send [20:04:21]OFD Sender: No OFD packet to send [20:04:26]OFD Sender: No OFD packet to send [20:04:31]OFD Sender: No OFD packet to send [20:04:36]OFD Sender: No OFD packet to send [20:04:41]OFD Sender: No OFD packet to send [20:04:46]OFD Sender: No OFD packet to send [20:04:51]OFD Sender: No OFD packet to send [20:04:56]OFD Sender: No OFD packet to send [20:05:01]OFD Sender: No OFD packet to send [20:05:06]OFD Sender: No OFD packet to send [20:05:11]OFD Sender: No OFD packet to send [20:05:16]OFD Sender: No OFD packet to send [20:05:21]OFD Sender: No OFD packet to send [20:05:26]OFD Sender: No OFD packet to send [20:05:31]OFD Sender: No OFD packet to send [20:05:36]OFD Sender: No OFD packet to send [20:05:41]OFD Sender: No OFD packet to send [20:05:46]OFD Sender: No OFD packet to send [20:05:51]OFD Sender: No OFD packet to send [20:05:56]OFD Sender: No OFD packet to send [20:06:01]OFD Sender: No OFD packet to send [20:06:06]OFD Sender: No OFD packet to send [20:06:11]OFD Sender: No OFD packet to send [20:06:16]OFD Sender: No OFD packet to send [20:06:21]OFD Sender: No OFD packet to send [20:06:26]OFD Sender: No OFD packet to send [20:06:31]OFD Sender: No OFD packet to send [20:06:36]OFD Sender: No OFD packet to send [20:06:41]OFD Sender: No OFD packet to send [20:06:46]OFD Sender: No OFD packet to send [20:06:51]OFD Sender: No OFD packet to send [20:06:56]OFD Sender: No OFD packet to send [20:07:01]OFD Sender: No OFD packet to send [20:07:06]OFD Sender: No OFD packet to send [20:07:11]OFD Sender: No OFD packet to send [20:07:16]OFD Sender: No OFD packet to send [20:07:21]OFD Sender: No OFD packet to send [20:07:26]OFD Sender: No OFD packet to send [20:07:31]OFD Sender: No OFD packet to send [20:07:36]OFD Sender: No OFD packet to send [20:07:41]OFD Sender: No OFD packet to send [20:07:46]OFD Sender: No OFD packet to send [20:07:51]OFD Sender: No OFD packet to send [20:07:56]OFD Sender: No OFD packet to send [20:08:01]OFD Sender: No OFD packet to send [20:08:06]OFD Sender: No OFD packet to send [20:08:11]OFD Sender: No OFD packet to send [20:08:15]accept exits with 7 [20:08:15]New connection [20:08:15]New thread 3066785124 created [20:08:15]Thread 3066928484 joined [20:08:15]Waiting for new connection... [20:08:15] Sock 7.Parse request [20:08:15]Sock 7.Check first char [20:08:15]Sock 7.First char is OK [20:08:15]request: POST /json_proto HTTP/1.0 [20:08:15]Method: POST [20:08:15]URL: /json_proto [20:08:15]Method is POST - this is cgi request [20:08:15]url: /json_proto [20:08:15]query_string will be loaded in cgi processing [20:08:15]execute_cgi json_proto POST (null) [20:08:15]execute_cgi path=json_proto method=POST [20:08:15]POST find Content-Length [20:08:15]Host: 172.17.33.3:8080 [20:08:15]Content-Length: 808 [20:08:15]Content-Type: application/json [20:08:15] [20:08:15]POST finish read [20:08:15]Found Content-Length = 808 [20:08:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347076", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 342.570, "sum" : 24802.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 24802.07 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:08:15]execute_script... [20:08:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347076", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 342.570, "sum" : 24802.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 24802.07 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:08:15]POST & json_proto [20:08:15]process_json_proto [20:08:15]json parsed OK: [20:08:15]protocol is kg_v1.0 [20:08:15]action value=close_receipt [20:08:15]process_action close_receipt [20:08:15]cmd_close_receipt [20:08:15]MH_GetDate [20:08:15]Write to MH i2c: F0 00 00 8B 04 7E [20:08:15]Write i2c OK [20:08:15]MH_I2C_Read... [20:08:15]Read from MH i2c: F0 [20:08:15]MH_I2C_Read... [20:08:15]Read from MH i2c: F0 09 00 [20:08:15]MH_I2C_Read... [20:08:15]Read from MH i2c: F0 09 00 8B 04 00 B0 94 19 66 23 5B 8F 65 BC [20:08:15]GetLastDocTimeStamp 1712952024 [20:08:15]current date 1712952496 [20:08:15]FM_GetShiftState [20:08:15]SAM_PROTO_GetShiftState [20:08:15]wFMCommunicate request_size=4 [20:08:15]MH_SAM_APDU [20:08:15]CAPDU: 80 13 01 00 [20:08:15]Write to MH i2c: E2 08 00 8C 04 80 13 01 00 00 00 00 00 0D [20:08:15]Write i2c OK [20:08:15]MH_I2C_Read... [20:08:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:08:15]Read from MH i2c: E2 [20:08:15]MH_I2C_Read... [20:08:15]Read from MH i2c: E2 0E 00 [20:08:15]MH_I2C_Read... [20:08:15]Read from MH i2c: E2 0E 00 8C 04 00 09 00 01 17 88 19 66 00 00 00 00 90 00 37 [20:08:15]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [20:08:15]wFMCommunicate OK [20:08:15]SAM_PROTO_GetShiftState done [20:08:15]FM_GetShiftState done [20:08:15]opened in 1712949271 [20:08:15]opened+sec_in_day 1713035671 [20:08:15]quantity*price = 2480206 [20:08:15]sum+1 = 2480208 [20:08:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 24802.07 НСП 1% : 219.49 НДС 12% : 2633.85 Наличными: 0.00 Безнал.: 24802.07 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 14 12.04.2024 20:08 Смена: 114 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 28740 ФПД: 266682378572581 1/tax-web-control/client/api/v1/ticket?date=20240412T200816&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28740&fm=266682378572581&tin=02508201610067®Number=0000138879044617&sum=2480207 [20:08:17]StoreToDocumentArchive [20:08:17]shift 114 fd 28740 [20:08:17]save to /storage/0114/doc_00028740 [20:08:17]save last doc name /storage/0114/doc_00028740 to /storage/kkm_last_doc_name [20:08:17]save OK [20:08:17]Clear old archive folders... [20:08:17]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:08:17]tlvbuf is 0119FE40 [20:08:17]SAM_PROTO_ClearQueue [20:08:17]wFMCommunicate request_size=4 [20:08:17]MH_SAM_APDU [20:08:17]CAPDU: 80 09 00 00 [20:08:17]Write to MH i2c: E2 08 00 99 04 80 09 00 00 00 00 00 00 0F [20:08:17]Write i2c OK [20:08:17]MH_I2C_Read... [20:08:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:08:17]Read from MH i2c: E2 [20:08:17]MH_I2C_Read... [20:08:17]Read from MH i2c: E2 03 00 [20:08:17]MH_I2C_Read... [20:08:17]Read from MH i2c: E2 03 00 99 04 00 90 00 11 [20:08:17]RAPDU: 90 00 [20:08:17]wFMCommunicate OK [20:08:17]SAM_PROTO_ClearQueue done [20:08:17]KKMCreateOFDPacket [20:08:17]OFDProtocolAddRootSTLVToBuf [20:08:17]FM_MakeSignedData [20:08:17]FM_MakeSignedData [20:08:17]SAM_PROTO_SignData [20:08:17]wFMCommunicate request_size=4 [20:08:17]MH_SAM_APDU [20:08:17]CAPDU: 80 0D 01 02 [20:08:17]Write to MH i2c: E2 08 00 9A 04 80 0D 01 02 00 00 00 00 17 [20:08:17]Write i2c OK [20:08:17]MH_I2C_Read... [20:08:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:08:17]Read from MH i2c: E2 [20:08:17]MH_I2C_Read... [20:08:17]Read from MH i2c: E2 03 00 [20:08:17]MH_I2C_Read... [20:08:17]Read from MH i2c: E2 03 00 9A 04 00 90 00 12 [20:08:17]RAPDU: 90 00 [20:08:17]wFMCommunicate OK [20:08:17]wFMCommunicate request_size=255 [20:08:17]MH_SAM_APDU [20:08:17]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2A 3A 05 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 4F D8 25 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4F D8 25 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BD 55 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 04 04 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4F D8 25 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 B0 94 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 44 70 00 00 35 04 06 00 F2 8B D4 71 [20:08:17]Write to MH i2c: E2 02 01 9B 04 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2A 3A 05 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 4F D8 25 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4F D8 25 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BD 55 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 04 04 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4F D8 25 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 B0 94 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 44 70 00 00 35 04 06 00 F2 8B D4 71 00 00 EE [20:08:17]Write i2c OK [20:08:17]MH_I2C_Read... [20:08:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:08:17]Read from MH i2c: E2 [20:08:17]MH_I2C_Read... [20:08:17]Read from MH i2c: E2 03 00 [20:08:17]MH_I2C_Read... [20:08:17]Read from MH i2c: E2 03 00 9B 04 00 90 00 13 [20:08:17]RAPDU: 90 00 [20:08:17]wFMCommunicate OK [20:08:17]wFMCommunicate request_size=7 [20:08:17]MH_SAM_APDU [20:08:17]CAPDU: 80 0D 02 02 02 53 25 [20:08:17]Write to MH i2c: E2 0A 00 9C 04 80 0D 02 02 02 00 53 25 00 00 96 [20:08:17]Write i2c OK [20:08:17]MH_I2C_Read... [20:08:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:08:17]Read from MH i2c: E2 [20:08:17]MH_I2C_Read... [20:08:17]Read from MH i2c: E2 03 00 [20:08:17]MH_I2C_Read... [20:08:17]Read from MH i2c: E2 03 00 9C 04 00 90 00 14 [20:08:17]RAPDU: 90 00 [20:08:17]wFMCommunicate OK [20:08:17]wFMCommunicate request_size=4 [20:08:17]MH_SAM_APDU [20:08:17]CAPDU: 80 0D 03 02 [20:08:17]Write to MH i2c: E2 08 00 9D 04 80 0D 03 02 00 00 00 00 1C [20:08:17]Write i2c OK [20:08:17]MH_I2C_Read... [20:08:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:08:17]Read from MH i2c: E2 [20:08:17]MH_I2C_Read... [20:08:17]Read from MH i2c: E2 0B 00 [20:08:17]MH_I2C_Read... [20:08:17]Read from MH i2c: E2 0B 00 9D 04 00 5B 2A 18 83 C9 8A 11 9A 90 00 3B [20:08:17]RAPDU: 5B 2A 18 83 C9 8A 11 9A 90 00 [20:08:17]wFMCommunicate OK [20:08:17]SAM_PROTO_SignData done [20:08:17]FM_MakeSignedData done [20:08:17]CreateOFDProtocolMessage [20:08:17]wFMCommunicate request_size=4 [20:08:17]MH_SAM_APDU [20:08:17]CAPDU: 80 11 00 00 [20:08:17]Write to MH i2c: E2 08 00 9E 04 80 11 00 00 00 00 00 00 1C [20:08:17]Write i2c OK [20:08:17]MH_I2C_Read... [20:08:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:08:17]Read from MH i2c: E2 [20:08:17]MH_I2C_Read... [20:08:17]Read from MH i2c: E2 17 00 [20:08:17]MH_I2C_Read... [20:08:17]Read from MH i2c: E2 17 00 9E 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 6B [20:08:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:08:17]wFMCommunicate OK [20:08:17]CreateOFDProtocolMessage done [20:08:17]OFDSenderStorePacket 28740 [20:08:17]StoreOFDPacket docnum=28740 [20:08:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 70 F4 04 01 AC 42 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2A 3A 05 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 4F D8 25 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4F D8 25 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BD 55 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 04 04 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4F D8 25 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 B0 94 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 44 70 00 00 35 04 06 00 F2 8B D4 71 53 25 5B 2A 18 83 C9 8A 11 9A [20:08:17]CheckFolder [20:08:17]dirname=/storage/ofd_packets [20:08:17]CheckFolder done [20:08:17]ProducePacketName [20:08:17]name=ofd_packets/00028740 [20:08:17]NVStorageSaveData ofd_packets/00028740 [20:08:17]File name is /storage/ofd_packets/00028740 [20:08:17]Write 298 bytes [20:08:17]NVStorageSaveData done [20:08:17]OFDSenderStorePacket done [20:08:17]KKMCreateOFDPacket done [20:08:17]NVStorageSaveData kkm_last_timestamp [20:08:17]File name is /storage/kkm_last_timestamp [20:08:17]Write 4 bytes [20:08:17]NVStorageSaveData done [20:08:17]ExternCall_PrintAddStr [20:08:17]wPrintStart [20:08:17]Write to MH i2c: 01 00 00 9F 04 A3 [20:08:17]Write i2c OK [20:08:17]MH_I2C_Read... [20:08:17]Read from MH i2c: 01 [20:08:17]MH_I2C_Read... [20:08:17]Read from MH i2c: 01 07 00 [20:08:17]MH_I2C_Read... [20:08:17]Read from MH i2c: 01 07 00 9F 04 00 00 00 00 00 FF 0F B8 [20:08:17]RasterBufferAndPrint [20:08:17]line Счет N : (1)347076 [20:08:17]line ИНН: 02508201610067 [20:08:17]line Контрольно-Кассовый Чек [20:08:17]line ПРОДАЖА [20:08:17]line ТРК (МРК, ГНК) : 61 [20:08:17]line Товар: 2710194210 [20:08:17]line ДТ-К-5 [20:08:17]line 342.570 * 72.40 [20:08:17]line = 24802.07 [20:08:17]line НДС 12% НСП 1% [20:08:17]line > о реализуемом товаре [20:08:17]line ИТОГО: 24802.07 [20:08:17]line НСП 1% : 219.49 [20:08:17]line НДС 12% : 2633.85 [20:08:17]line Наличными: 0.00 [20:08:17]line Безнал.: 24802.07 [20:08:17]line Место: АЗС № 108 "Партнер Нефть" [20:08:17]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [20:08:17]line СНО: Общий режим [20:08:17]line Чек 14 12.04.2024 20:08 [20:08:17]line Смена: 114 ФФД: 1.0 [20:08:17]line ЗНМ: 0300000027 [20:08:17]line РНМ: 0000138879044617 [20:08:17]line Версия ККМ: 001 [20:08:17]line Платежная система: О! деньги [20:08:17]line ФМ: 0000000000963154 [20:08:17]line ФД: 28740 [20:08:17]line ФПД: 266682378572581 [20:08:17]line 1/tax-web-control/client/api/v1/ticket?date=20240412T200816&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28740&fm=266682378572581&tin=02508201610067®Number=0000138879044617&sum=2480207 [20:08:17]OFD Sender: Processing packet 28740 [packets to send 8, broken 7] [20:08:17]ProducePacketName [20:08:17]name=ofd_packets/00028740 [20:08:17]OFD Sender: To server: pG, [20:08:17]CommunicateWithHost lk.salyk.kg:30040 [20:08:17]ConnectInit lk.salyk.kg [20:08:17]written 0, free lines is 4095 [20:08:17]Connected sock=10 [20:08:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 70 F4 04 01 AC 42 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2A 3A 05 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 4F D8 25 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4F D8 25 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BD 55 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 04 04 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4F D8 25 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 B0 94 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 44 70 00 00 35 04 06 00 F2 8B D4 71 53 25 5B 2A 18 83 C9 8A 11 9A [20:08:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 6C 0F 47 00 FC E1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 44 70 00 00 F4 03 04 00 5A 3F 19 66 B6 04 01 00 00 F2 82 0D FC 34 AA 12 0E [20:08:18]CommunicateWithHost err = 0 [20:08:18]CheckOFDResponse [20:08:18]1017 (14) - 77093643461234 [20:08:18]1041 (16) - 0000000000963154 [20:08:18]1040 (4) - 28740 [20:08:18]1012 (4) - 12.04.2024 14:04 [20:08:18]1206 (1) - 0 [20:08:18]OFD Sender: Remove packet 28740 [20:08:18]ProducePacketName [20:08:18]name=ofd_packets/00028740 [20:08:18]NVStorageDeleteData [20:08:18]Write to MH i2c: 01 00 00 C8 04 CC [20:08:18]Write i2c OK [20:08:18]MH_I2C_Read... [20:08:18]Read from MH i2c: 01 [20:08:18]MH_I2C_Read... [20:08:18]Read from MH i2c: 01 07 00 [20:08:18]MH_I2C_Read... [20:08:18]Read from MH i2c: 01 07 00 C8 04 00 00 00 00 00 E1 0C C0 [20:08:18]RasterBufferAndPrint [20:08:18]line [20:08:18]line [20:08:18]line [20:08:18]line [20:08:18]line [20:08:18]written 0, free lines is 3302 [20:08:18]MH_Cut [20:08:18]Write to MH i2c: D1 01 00 CF 04 01 A5 [20:08:18]Write i2c OK [20:08:18]MH_I2C_Read... [20:08:18]Read from MH i2c: D1 [20:08:18]MH_I2C_Read... [20:08:18]Read from MH i2c: D1 01 00 [20:08:18]MH_I2C_Read... [20:08:18]Read from MH i2c: D1 01 00 CF 04 00 A4 [20:08:18]Write to MH i2c: 01 00 00 D0 04 D4 [20:08:18]Write i2c OK [20:08:18]MH_I2C_Read... [20:08:18]OFD Sender: No OFD packet to send [20:08:19]*** Cut start [20:08:19]*** Partial cut [20:08:19]*** CUTSNS_PIN = 1 [20:08:19]*** CUTSNS_PIN = 0 [20:08:19]*** Brake cut motor [20:08:19]Read from MH i2c: 01 [20:08:19]MH_I2C_Read... [20:08:19]*** Stop cut motor [20:08:19]*** Cut end [20:08:19]Read from MH i2c: 01 07 00 [20:08:19]MH_I2C_Read... [20:08:19]Read from MH i2c: 01 07 00 D0 04 00 00 00 00 00 FF 0F E9 [20:08:19]process_action close_receipt done [20:08:19]requested_data is exist [20:08:19]produce_requested_data [20:08:19]requested_item fm.sn is exist - process it [20:08:19]wFMCommunicate request_size=4 [20:08:19]MH_SAM_APDU [20:08:19]CAPDU: 80 11 00 00 [20:08:19]Write to MH i2c: E2 08 00 D1 04 80 11 00 00 00 00 00 00 4F [20:08:19]Write i2c OK [20:08:19]MH_I2C_Read... [20:08:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:08:19]Read from MH i2c: E2 [20:08:19]MH_I2C_Read... [20:08:19]Read from MH i2c: E2 17 00 [20:08:19]MH_I2C_Read... [20:08:19]Read from MH i2c: E2 17 00 D1 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 9E [20:08:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:08:19]wFMCommunicate OK [20:08:19]requested_item fd.num is exist - process it [20:08:19]SAM_PROTO_GetFieldsCounters [20:08:19]wFMCommunicate request_size=4 [20:08:19]MH_SAM_APDU [20:08:19]CAPDU: 80 13 00 00 [20:08:19]Write to MH i2c: E2 08 00 D2 04 80 13 00 00 00 00 00 00 52 [20:08:19]Write i2c OK [20:08:19]MH_I2C_Read... [20:08:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:08:20]Read from MH i2c: E2 [20:08:20]MH_I2C_Read... [20:08:20]Read from MH i2c: E2 62 00 [20:08:20]MH_I2C_Read... [20:08:20]Read from MH i2c: E2 62 00 D2 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 44 70 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 E0 [20:08:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 44 70 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 [20:08:20]wFMCommunicate OK [20:08:20]SAM_PROTO_GetFieldsCounters done [20:08:20]requested_item shift.num is exist - process it [20:08:20]requested_item shift.opened is exist - process it [20:08:20]req_shift_opened [20:08:20]FM_GetShiftState [20:08:20]SAM_PROTO_GetShiftState [20:08:20]wFMCommunicate request_size=4 [20:08:20]MH_SAM_APDU [20:08:20]CAPDU: 80 13 01 00 [20:08:20]Write to MH i2c: E2 08 00 D3 04 80 13 01 00 00 00 00 00 54 [20:08:20]Write i2c OK [20:08:20]MH_I2C_Read... [20:08:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:08:20]Read from MH i2c: E2 [20:08:20]MH_I2C_Read... [20:08:20]Read from MH i2c: E2 0E 00 [20:08:20]MH_I2C_Read... [20:08:20]Read from MH i2c: E2 0E 00 D3 04 00 09 00 01 17 88 19 66 00 00 00 00 90 00 7E [20:08:20]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [20:08:20]wFMCommunicate OK [20:08:20]SAM_PROTO_GetShiftState done [20:08:20]FM_GetShiftState done [20:08:20]req_shift_opened done [20:08:20]requested_item shift.open_date is exist - process it [20:08:20]req_shift_open_date [20:08:20]req_shift_open_date done [20:08:20]produce_requested_data done [20:08:20]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28740,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271} [20:08:20]process_action_free close_receipt [20:08:20]json_value_free [20:08:20]json_value_free done [20:08:20]process_json_proto returns [20:08:20]Send response to host [20:08:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28740,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271}}} [20:08:20]free response buf [20:08:20]execute_script done [20:08:20]execute_script returns [20:08:20]free content buf [20:08:20]Sock 7.Close socket [20:08:20]Sock 7.Thread stoped [20:08:23]OFD Sender: No OFD packet to send [20:08:28]OFD Sender: No OFD packet to send [20:08:33]OFD Sender: No OFD packet to send [20:08:38]OFD Sender: No OFD packet to send [20:08:43]OFD Sender: No OFD packet to send [20:08:48]OFD Sender: No OFD packet to send [20:08:53]OFD Sender: No OFD packet to send [20:08:58]OFD Sender: No OFD packet to send [20:09:03]OFD Sender: No OFD packet to send [20:09:08]OFD Sender: No OFD packet to send [20:09:13]OFD Sender: No OFD packet to send [20:09:18]OFD Sender: No OFD packet to send [20:09:23]OFD Sender: No OFD packet to send [20:09:28]OFD Sender: No OFD packet to send [20:09:33]OFD Sender: No OFD packet to send [20:09:38]OFD Sender: No OFD packet to send [20:09:43]OFD Sender: No OFD packet to send [20:09:48]OFD Sender: No OFD packet to send [20:09:53]OFD Sender: No OFD packet to send [20:09:58]OFD Sender: No OFD packet to send [20:10:03]OFD Sender: No OFD packet to send [20:10:08]OFD Sender: No OFD packet to send [20:10:13]OFD Sender: No OFD packet to send [20:10:18]OFD Sender: No OFD packet to send [20:10:23]OFD Sender: No OFD packet to send [20:10:28]OFD Sender: No OFD packet to send [20:10:33]OFD Sender: No OFD packet to send [20:10:38]OFD Sender: No OFD packet to send [20:10:43]OFD Sender: No OFD packet to send [20:10:48]OFD Sender: No OFD packet to send [20:10:53]OFD Sender: No OFD packet to send [20:10:58]OFD Sender: No OFD packet to send [20:11:03]OFD Sender: No OFD packet to send [20:11:08]OFD Sender: No OFD packet to send [20:11:13]OFD Sender: No OFD packet to send [20:11:18]OFD Sender: No OFD packet to send [20:11:23]OFD Sender: No OFD packet to send [20:11:28]OFD Sender: No OFD packet to send [20:11:33]OFD Sender: No OFD packet to send [20:11:38]OFD Sender: No OFD packet to send [20:11:43]OFD Sender: No OFD packet to send [20:11:48]OFD Sender: No OFD packet to send [20:11:53]OFD Sender: No OFD packet to send [20:11:58]OFD Sender: No OFD packet to send [20:12:03]OFD Sender: No OFD packet to send [20:12:08]OFD Sender: No OFD packet to send [20:12:13]OFD Sender: No OFD packet to send [20:12:18]OFD Sender: No OFD packet to send [20:12:23]OFD Sender: No OFD packet to send [20:12:28]OFD Sender: No OFD packet to send [20:12:33]OFD Sender: No OFD packet to send [20:12:38]OFD Sender: No OFD packet to send [20:12:43]OFD Sender: No OFD packet to send [20:12:48]OFD Sender: No OFD packet to send [20:12:53]OFD Sender: No OFD packet to send [20:12:54]accept exits with 9 [20:12:54]New connection [20:12:54]New thread 3066928484 created [20:12:54]Thread 3066785124 joined [20:12:54]Waiting for new connection... [20:12:54] Sock 9.Parse request [20:12:54]Sock 9.Check first char [20:12:54]Sock 9.First char is OK [20:12:54]request: POST /json_proto HTTP/1.0 [20:12:54]Method: POST [20:12:54]URL: /json_proto [20:12:54]Method is POST - this is cgi request [20:12:54]url: /json_proto [20:12:54]query_string will be loaded in cgi processing [20:12:54]execute_cgi json_proto POST (null) [20:12:54]execute_cgi path=json_proto method=POST [20:12:54]POST find Content-Length [20:12:54]Host: 172.17.33.3:8080 [20:12:54]Content-Length: 840 [20:12:54]Content-Type: application/json [20:12:54] [20:12:54]POST finish read [20:12:54]Found Content-Length = 840 [20:12:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347078", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 7.780, "sum" : 500.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:12:54]execute_script... [20:12: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)347078", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 7.780, "sum" : 500.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:12:54]POST & json_proto [20:12:54]process_json_proto [20:12:54]json parsed OK: [20:12:54]protocol is kg_v1.0 [20:12:54]action value=close_receipt [20:12:54]process_action close_receipt [20:12:54]cmd_close_receipt [20:12:54]MH_GetDate [20:12:54]Write to MH i2c: F0 00 00 D4 04 C7 [20:12:54]Write i2c OK [20:12:54]MH_I2C_Read... [20:12:54]Read from MH i2c: F0 [20:12:54]MH_I2C_Read... [20:12:54]Read from MH i2c: F0 09 00 [20:12:54]MH_I2C_Read... [20:12:54]Read from MH i2c: F0 09 00 D4 04 00 C7 95 19 66 23 5B 8F 65 1D [20:12:54]GetLastDocTimeStamp 1712952496 [20:12:54]current date 1712952775 [20:12:54]FM_GetShiftState [20:12:54]SAM_PROTO_GetShiftState [20:12:54]wFMCommunicate request_size=4 [20:12:54]MH_SAM_APDU [20:12:54]CAPDU: 80 13 01 00 [20:12:54]Write to MH i2c: E2 08 00 D5 04 80 13 01 00 00 00 00 00 56 [20:12:54]Write i2c OK [20:12:54]MH_I2C_Read... [20:12:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:12:54]Read from MH i2c: E2 [20:12:54]MH_I2C_Read... [20:12:54]Read from MH i2c: E2 0E 00 [20:12:54]MH_I2C_Read... [20:12:54]Read from MH i2c: E2 0E 00 D5 04 00 09 00 01 17 88 19 66 00 00 00 00 90 00 80 [20:12:54]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [20:12:54]wFMCommunicate OK [20:12:54]SAM_PROTO_GetShiftState done [20:12:54]FM_GetShiftState done [20:12:54]opened in 1712949271 [20:12:54]opened+sec_in_day 1713035671 [20:12:54]quantity*price = 50025 [20:12:54]sum+1 = 50026 [20:12:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.25 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 0.00 Безнал.: 500.25 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 15 12.04.2024 20:12 Смена: 114 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 28741 ФПД: 160034628492500 1/tax-web-control/client/api/v1/ticket?date=20240412T201255&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28741&fm=160034628492500&tin=02508201610067®Number=0000138879044617&sum=50025 [20:12:55]StoreToDocumentArchive [20:12:55]shift 114 fd 28741 [20:12:55]save to /storage/0114/doc_00028741 [20:12:55]save last doc name /storage/0114/doc_00028741 to /storage/kkm_last_doc_name [20:12:55]save OK [20:12:55]Clear old archive folders... [20:12:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:12:55]tlvbuf is 012182D0 [20:12:55]SAM_PROTO_ClearQueue [20:12:55]wFMCommunicate request_size=4 [20:12:55]MH_SAM_APDU [20:12:55]CAPDU: 80 09 00 00 [20:12:55]Write to MH i2c: E2 08 00 E2 04 80 09 00 00 00 00 00 00 58 [20:12:55]Write i2c OK [20:12:55]MH_I2C_Read... [20:12:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:12:55]Read from MH i2c: E2 [20:12:55]MH_I2C_Read... [20:12:55]Read from MH i2c: E2 03 00 [20:12:55]MH_I2C_Read... [20:12:55]Read from MH i2c: E2 03 00 E2 04 00 90 00 5A [20:12:55]RAPDU: 90 00 [20:12:55]wFMCommunicate OK [20:12:55]SAM_PROTO_ClearQueue done [20:12:55]KKMCreateOFDPacket [20:12:55]OFDProtocolAddRootSTLVToBuf [20:12:55]FM_MakeSignedData [20:12:55]FM_MakeSignedData [20:12:55]SAM_PROTO_SignData [20:12:55]wFMCommunicate request_size=4 [20:12:55]MH_SAM_APDU [20:12:55]CAPDU: 80 0D 01 02 [20:12:55]Write to MH i2c: E2 08 00 E3 04 80 0D 01 02 00 00 00 00 60 [20:12:55]Write i2c OK [20:12:55]MH_I2C_Read... [20:12:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:12:55]Read from MH i2c: E2 [20:12:55]MH_I2C_Read... [20:12:55]Read from MH i2c: E2 03 00 [20:12:55]MH_I2C_Read... [20:12:55]Read from MH i2c: E2 03 00 E3 04 00 90 00 5B [20:12:55]RAPDU: 90 00 [20:12:55]wFMCommunicate OK [20:12:55]wFMCommunicate request_size=255 [20:12:55]MH_SAM_APDU [20:12: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 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 69 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 C7 95 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 45 70 00 00 35 04 06 00 91 [20:12:55]Write to MH i2c: E2 02 01 E4 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 69 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 C7 95 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 45 70 00 00 35 04 06 00 91 00 00 F6 [20:12:55]Write i2c OK [20:12:55]MH_I2C_Read... [20:12:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:12:55]Read from MH i2c: E2 [20:12:55]MH_I2C_Read... [20:12:55]Read from MH i2c: E2 03 00 [20:12:55]MH_I2C_Read... [20:12:55]Read from MH i2c: E2 03 00 E4 04 00 90 00 5C [20:12:55]RAPDU: 90 00 [20:12:55]wFMCommunicate OK [20:12:55]wFMCommunicate request_size=10 [20:12:55]MH_SAM_APDU [20:12:55]CAPDU: 80 0D 02 02 05 8C F7 2E DC D4 [20:12:55]Write to MH i2c: E2 0D 00 E5 04 80 0D 02 02 05 00 8C F7 2E DC D4 00 00 CE [20:12:55]Write i2c OK [20:12:55]MH_I2C_Read... [20:12:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:12:55]Read from MH i2c: E2 [20:12:55]MH_I2C_Read... [20:12:55]Read from MH i2c: E2 03 00 [20:12:55]MH_I2C_Read... [20:12:55]Read from MH i2c: E2 03 00 E5 04 00 90 00 5D [20:12:55]RAPDU: 90 00 [20:12:55]wFMCommunicate OK [20:12:55]wFMCommunicate request_size=4 [20:12:55]MH_SAM_APDU [20:12:55]CAPDU: 80 0D 03 02 [20:12:55]Write to MH i2c: E2 08 00 E6 04 80 0D 03 02 00 00 00 00 65 [20:12:55]Write i2c OK [20:12:55]MH_I2C_Read... [20:12:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:12:55]Read from MH i2c: E2 [20:12:55]MH_I2C_Read... [20:12:55]Read from MH i2c: E2 0B 00 [20:12:55]MH_I2C_Read... [20:12:55]Read from MH i2c: E2 0B 00 E6 04 00 76 39 BC CD 89 24 67 F1 90 00 A3 [20:12:55]RAPDU: 76 39 BC CD 89 24 67 F1 90 00 [20:12:55]wFMCommunicate OK [20:12:55]SAM_PROTO_SignData done [20:12:55]FM_MakeSignedData done [20:12:55]CreateOFDProtocolMessage [20:12:55]wFMCommunicate request_size=4 [20:12:55]MH_SAM_APDU [20:12:55]CAPDU: 80 11 00 00 [20:12:55]Write to MH i2c: E2 08 00 E7 04 80 11 00 00 00 00 00 00 65 [20:12:55]Write i2c OK [20:12:55]MH_I2C_Read... [20:12:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:12:56]Read from MH i2c: E2 [20:12:56]MH_I2C_Read... [20:12:56]Read from MH i2c: E2 17 00 [20:12:56]MH_I2C_Read... [20:12:56]Read from MH i2c: E2 17 00 E7 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 B4 [20:12:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:12:56]wFMCommunicate OK [20:12:56]CreateOFDProtocolMessage done [20:12:56]OFDSenderStorePacket 28741 [20:12:56]StoreOFDPacket docnum=28741 [20:12:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 2C 5B 07 01 EF CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 69 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 C7 95 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 45 70 00 00 35 04 06 00 91 8C F7 2E DC D4 76 39 BC CD 89 24 67 F1 [20:12:56]CheckFolder [20:12:56]dirname=/storage/ofd_packets [20:12:56]CheckFolder done [20:12:56]ProducePacketName [20:12:56]name=ofd_packets/00028741 [20:12:56]NVStorageSaveData ofd_packets/00028741 [20:12:56]File name is /storage/ofd_packets/00028741 [20:12:56]Write 301 bytes [20:12:56]NVStorageSaveData done [20:12:56]OFDSenderStorePacket done [20:12:56]KKMCreateOFDPacket done [20:12:56]NVStorageSaveData kkm_last_timestamp [20:12:56]File name is /storage/kkm_last_timestamp [20:12:56]Write 4 bytes [20:12:56]NVStorageSaveData done [20:12:56]ExternCall_PrintAddStr [20:12:56]wPrintStart [20:12:56]Write to MH i2c: 01 00 00 E8 04 EC [20:12:56]Write i2c OK [20:12:56]MH_I2C_Read... [20:12:56]Read from MH i2c: 01 [20:12:56]MH_I2C_Read... [20:12:56]Read from MH i2c: 01 07 00 [20:12:56]MH_I2C_Read... [20:12:56]Read from MH i2c: 01 07 00 E8 04 00 00 00 00 00 FF 0F 01 [20:12:56]RasterBufferAndPrint [20:12:56]line Счет N : (1)347078 [20:12:56]line ИНН: 02508201610067 [20:12:56]line Контрольно-Кассовый Чек [20:12:56]line ПРОДАЖА [20:12:56]line ТРК (МРК, ГНК) : 32 [20:12:56]line Товар: 2710124130 [20:12:56]line Аи-92-К-5 [20:12:56]line 7.780 * 64.30 [20:12:56]line = 500.25 [20:12:56]line НДС 12% НСП 1% [20:12:56]line > о реализуемом товаре [20:12:56]line ИТОГО: 500.25 [20:12:56]line НСП 1% : 4.43 [20:12:56]line НДС 12% : 53.12 [20:12:56]line Наличными: 0.00 [20:12:56]line Безнал.: 500.25 [20:12:56]line Место: АЗС № 108 "Партнер Нефть" [20:12:56]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [20:12:56]line СНО: Общий режим [20:12:56]line Чек 15 12.04.2024 20:12 [20:12:56]line Смена: 114 ФФД: 1.0 [20:12:56]line ЗНМ: 0300000027 [20:12:56]line РНМ: 0000138879044617 [20:12:56]line Версия ККМ: 001 [20:12:56]line Платежная система: АКБ Кыргызстан [20:12:56]line ФМ: 0000000000963154 [20:12:56]line ФД: 28741 [20:12:56]line ФПД: 160034628492500 [20:12:56]line 1/tax-web-control/client/api/v1/ticket?date=20240412T201255&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28741&fm=160034628492500&tin=02508201610067®Number=0000138879044617&sum=50025 [20:12:56]written 0, free lines is 4095 [20:12:56]OFD Sender: Processing packet 28741 [packets to send 8, broken 7] [20:12:56]ProducePacketName [20:12:56]name=ofd_packets/00028741 [20:12:56]OFD Sender: To server: pG, [20:12:56]CommunicateWithHost lk.salyk.kg:30040 [20:12:56]ConnectInit lk.salyk.kg [20:12:56]Connected sock=11 [20:12:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 2C 5B 07 01 EF CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 69 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 C7 95 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 45 70 00 00 35 04 06 00 91 8C F7 2E DC D4 76 39 BC CD 89 24 67 F1 [20:12:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 2C 94 47 00 0A F3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 45 70 00 00 F4 03 04 00 70 40 19 66 B6 04 01 00 00 F6 42 F6 D4 89 97 84 8F [20:12:56]CommunicateWithHost err = 0 [20:12:56]CheckOFDResponse [20:12:56]1017 (14) - 77093643461234 [20:12:56]1041 (16) - 0000000000963154 [20:12:56]1040 (4) - 28741 [20:12:56]1012 (4) - 12.04.2024 14:08 [20:12:56]1206 (1) - 0 [20:12:56]OFD Sender: Remove packet 28741 [20:12:56]ProducePacketName [20:12:56]name=ofd_packets/00028741 [20:12:56]NVStorageDeleteData [20:12:56]Write to MH i2c: 01 00 00 11 05 16 [20:12:56]Write i2c OK [20:12:56]MH_I2C_Read... [20:12:56]Read from MH i2c: 01 [20:12:56]MH_I2C_Read... [20:12:56]Read from MH i2c: 01 07 00 [20:12:56]MH_I2C_Read... [20:12:56]Read from MH i2c: 01 07 00 11 05 00 00 00 00 00 E9 0C 12 [20:12:56]RasterBufferAndPrint [20:12:56]line [20:12:56]line [20:12:56]line [20:12:56]line [20:12:56]line [20:12:56]written 0, free lines is 3312 [20:12:56]MH_Cut [20:12:56]Write to MH i2c: D1 01 00 18 05 01 EF [20:12:56]Write i2c OK [20:12:56]MH_I2C_Read... [20:12:56]Read from MH i2c: D1 [20:12:56]MH_I2C_Read... [20:12:56]Read from MH i2c: D1 01 00 [20:12:56]MH_I2C_Read... [20:12:56]Read from MH i2c: D1 01 00 18 05 00 EE [20:12:56]Write to MH i2c: 01 00 00 19 05 1E [20:12:56]Write i2c OK [20:12:56]MH_I2C_Read... [20:12:56]OFD Sender: No OFD packet to send [20:12:57]*** Cut start [20:12:57]*** Partial cut [20:12:57]*** CUTSNS_PIN = 1 [20:12:57]*** CUTSNS_PIN = 0 [20:12:57]*** Brake cut motor [20:12:57]Read from MH i2c: 01 [20:12:57]MH_I2C_Read... [20:12:57]*** Stop cut motor [20:12:57]*** Cut end [20:12:57]Read from MH i2c: 01 07 00 [20:12:57]MH_I2C_Read... [20:12:57]Read from MH i2c: 01 07 00 19 05 00 00 00 00 00 FF 0F 33 [20:12:57]process_action close_receipt done [20:12:57]requested_data is exist [20:12:57]produce_requested_data [20:12:57]requested_item fm.sn is exist - process it [20:12:57]wFMCommunicate request_size=4 [20:12:57]MH_SAM_APDU [20:12:57]CAPDU: 80 11 00 00 [20:12:57]Write to MH i2c: E2 08 00 1A 05 80 11 00 00 00 00 00 00 99 [20:12:57]Write i2c OK [20:12:57]MH_I2C_Read... [20:12:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:12:57]Read from MH i2c: E2 [20:12:57]MH_I2C_Read... [20:12:57]Read from MH i2c: E2 17 00 [20:12:57]MH_I2C_Read... [20:12:57]Read from MH i2c: E2 17 00 1A 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 E8 [20:12:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:12:57]wFMCommunicate OK [20:12:57]requested_item fd.num is exist - process it [20:12:57]SAM_PROTO_GetFieldsCounters [20:12:57]wFMCommunicate request_size=4 [20:12:57]MH_SAM_APDU [20:12:57]CAPDU: 80 13 00 00 [20:12:57]Write to MH i2c: E2 08 00 1B 05 80 13 00 00 00 00 00 00 9C [20:12:57]Write i2c OK [20:12:57]MH_I2C_Read... [20:12:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:12:58]Read from MH i2c: E2 [20:12:58]MH_I2C_Read... [20:12:58]Read from MH i2c: E2 62 00 [20:12:58]MH_I2C_Read... [20:12:58]Read from MH i2c: E2 62 00 1B 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 45 70 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 2E [20:12:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 45 70 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 [20:12:58]wFMCommunicate OK [20:12:58]SAM_PROTO_GetFieldsCounters done [20:12:58]requested_item shift.num is exist - process it [20:12:58]requested_item shift.opened is exist - process it [20:12:58]req_shift_opened [20:12:58]FM_GetShiftState [20:12:58]SAM_PROTO_GetShiftState [20:12:58]wFMCommunicate request_size=4 [20:12:58]MH_SAM_APDU [20:12:58]CAPDU: 80 13 01 00 [20:12:58]Write to MH i2c: E2 08 00 1C 05 80 13 01 00 00 00 00 00 9E [20:12:58]Write i2c OK [20:12:58]MH_I2C_Read... [20:12:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:12:58]Read from MH i2c: E2 [20:12:58]MH_I2C_Read... [20:12:58]Read from MH i2c: E2 0E 00 [20:12:58]MH_I2C_Read... [20:12:58]Read from MH i2c: E2 0E 00 1C 05 00 09 00 01 17 88 19 66 00 00 00 00 90 00 C8 [20:12:58]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [20:12:58]wFMCommunicate OK [20:12:58]SAM_PROTO_GetShiftState done [20:12:58]FM_GetShiftState done [20:12:58]req_shift_opened done [20:12:58]requested_item shift.open_date is exist - process it [20:12:58]req_shift_open_date [20:12:58]req_shift_open_date done [20:12:58]produce_requested_data done [20:12:58]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28741,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271} [20:12:58]process_action_free close_receipt [20:12:58]json_value_free [20:12:58]json_value_free done [20:12:58]process_json_proto returns [20:12:58]Send response to host [20:12:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28741,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271}}} [20:12:58]free response buf [20:12:58]execute_script done [20:12:58]execute_script returns [20:12:58]free content buf [20:12:58]Sock 9.Close socket [20:12:58]Sock 9.Thread stoped [20:13:01]OFD Sender: No OFD packet to send [20:13:06]OFD Sender: No OFD packet to send [20:13:11]OFD Sender: No OFD packet to send [20:13:16]OFD Sender: No OFD packet to send [20:13:20]accept exits with 7 [20:13:20]New connection [20:13:20]New thread 3066785124 created [20:13:20]Thread 3066928484 joined [20:13:20]Waiting for new connection... [20:13:20] Sock 7.Parse request [20:13:20]Sock 7.Check first char [20:13:20]Sock 7.First char is OK [20:13:20]request: POST /json_proto HTTP/1.0 [20:13:20]Method: POST [20:13:20]URL: /json_proto [20:13:20]Method is POST - this is cgi request [20:13:20]url: /json_proto [20:13:20]query_string will be loaded in cgi processing [20:13:20]execute_cgi json_proto POST (null) [20:13:20]execute_cgi path=json_proto method=POST [20:13:20]POST find Content-Length [20:13:20]Host: 172.17.33.3:8080 [20:13:20]Content-Length: 677 [20:13:20]Content-Type: application/json [20:13:20] [20:13:20]POST finish read [20:13:20]Found Content-Length = 677 [20:13:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347079", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 3.120, "sum" : 200.62, "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" ] } } [20:13:20]execute_script... [20:13: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)347079", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 3.120, "sum" : 200.62, "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" ] } } [20:13:20]POST & json_proto [20:13:20]process_json_proto [20:13:20]json parsed OK: [20:13:20]protocol is kg_v1.0 [20:13:20]action value=close_receipt [20:13:20]process_action close_receipt [20:13:20]cmd_close_receipt [20:13:20]MH_GetDate [20:13:20]Write to MH i2c: F0 00 00 1D 05 11 [20:13:20]Write i2c OK [20:13:20]MH_I2C_Read... [20:13:20]Read from MH i2c: F0 [20:13:20]MH_I2C_Read... [20:13:20]Read from MH i2c: F0 09 00 [20:13:20]MH_I2C_Read... [20:13:20]Read from MH i2c: F0 09 00 1D 05 00 E1 95 19 66 23 5B 8F 65 81 [20:13:20]GetLastDocTimeStamp 1712952775 [20:13:20]current date 1712952801 [20:13:20]FM_GetShiftState [20:13:20]SAM_PROTO_GetShiftState [20:13:20]wFMCommunicate request_size=4 [20:13:20]MH_SAM_APDU [20:13:20]CAPDU: 80 13 01 00 [20:13:20]Write to MH i2c: E2 08 00 1E 05 80 13 01 00 00 00 00 00 A0 [20:13:20]Write i2c OK [20:13:20]MH_I2C_Read... [20:13:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:13:21]Read from MH i2c: E2 [20:13:21]MH_I2C_Read... [20:13:21]Read from MH i2c: E2 0E 00 [20:13:21]MH_I2C_Read... [20:13:21]Read from MH i2c: E2 0E 00 1E 05 00 09 00 01 17 88 19 66 00 00 00 00 90 00 CA [20:13:21]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [20:13:21]wFMCommunicate OK [20:13:21]SAM_PROTO_GetShiftState done [20:13:21]FM_GetShiftState done [20:13:21]opened in 1712949271 [20:13:21]opened+sec_in_day 1713035671 [20:13:21]quantity*price = 20061 [20:13:21]sum+1 = 20063 [20:13:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.30 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 16 12.04.2024 20:13 Смена: 114 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28742 ФПД: 192287127287682 1/tax-web-control/client/api/v1/ticket?date=20240412T201322&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28742&fm=192287127287682&tin=02508201610067®Number=0000138879044617&sum=20000 [20:13:22]StoreToDocumentArchive [20:13:22]shift 114 fd 28742 [20:13:22]save to /storage/0114/doc_00028742 [20:13:22]save last doc name /storage/0114/doc_00028742 to /storage/kkm_last_doc_name [20:13:22]save OK [20:13:22]Clear old archive folders... [20:13:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:13:22]tlvbuf is 012181C0 [20:13:22]SAM_PROTO_ClearQueue [20:13:22]wFMCommunicate request_size=4 [20:13:22]MH_SAM_APDU [20:13:22]CAPDU: 80 09 00 00 [20:13:22]Write to MH i2c: E2 08 00 2B 05 80 09 00 00 00 00 00 00 A2 [20:13:22]Write i2c OK [20:13:22]MH_I2C_Read... [20:13:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:13:22]Read from MH i2c: E2 [20:13:22]MH_I2C_Read... [20:13:22]Read from MH i2c: E2 03 00 [20:13:22]MH_I2C_Read... [20:13:22]Read from MH i2c: E2 03 00 2B 05 00 90 00 A4 [20:13:22]RAPDU: 90 00 [20:13:22]wFMCommunicate OK [20:13:22]SAM_PROTO_ClearQueue done [20:13:22]KKMCreateOFDPacket [20:13:22]OFDProtocolAddRootSTLVToBuf [20:13:22]FM_MakeSignedData [20:13:22]FM_MakeSignedData [20:13:22]SAM_PROTO_SignData [20:13:22]wFMCommunicate request_size=4 [20:13:22]MH_SAM_APDU [20:13:22]CAPDU: 80 0D 01 02 [20:13:22]Write to MH i2c: E2 08 00 2C 05 80 0D 01 02 00 00 00 00 AA [20:13:22]Write i2c OK [20:13:22]MH_I2C_Read... [20:13:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:13:22]Read from MH i2c: E2 [20:13:22]MH_I2C_Read... [20:13:22]Read from MH i2c: E2 03 00 [20:13:22]MH_I2C_Read... [20:13:22]Read from MH i2c: E2 03 00 2C 05 00 90 00 A5 [20:13:22]RAPDU: 90 00 [20:13:22]wFMCommunicate OK [20:13:22]wFMCommunicate request_size=255 [20:13:22]MH_SAM_APDU [20:13:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 0C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 5E 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 52 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 10 00 00 00 F4 03 04 00 E2 95 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 46 70 00 00 35 04 06 00 AE [20:13:22]Write to MH i2c: E2 02 01 2D 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 0C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 5E 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 52 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 10 00 00 00 F4 03 04 00 E2 95 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 46 70 00 00 35 04 06 00 AE 00 00 B3 [20:13:22]Write i2c OK [20:13:22]MH_I2C_Read... [20:13:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:13:22]Read from MH i2c: E2 [20:13:22]MH_I2C_Read... [20:13:22]Read from MH i2c: E2 03 00 [20:13:22]MH_I2C_Read... [20:13:22]Read from MH i2c: E2 03 00 2D 05 00 90 00 A6 [20:13:22]RAPDU: 90 00 [20:13:22]wFMCommunicate OK [20:13:22]wFMCommunicate request_size=10 [20:13:22]MH_SAM_APDU [20:13:22]CAPDU: 80 0D 02 02 05 E2 55 EA B7 82 [20:13:22]Write to MH i2c: E2 0D 00 2E 05 80 0D 02 02 05 00 E2 55 EA B7 82 00 00 11 [20:13:22]Write i2c OK [20:13:22]MH_I2C_Read... [20:13:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:13:22]Read from MH i2c: E2 [20:13:22]MH_I2C_Read... [20:13:22]Read from MH i2c: E2 03 00 [20:13:22]MH_I2C_Read... [20:13:22]Read from MH i2c: E2 03 00 2E 05 00 90 00 A7 [20:13:22]RAPDU: 90 00 [20:13:22]wFMCommunicate OK [20:13:22]wFMCommunicate request_size=4 [20:13:22]MH_SAM_APDU [20:13:22]CAPDU: 80 0D 03 02 [20:13:22]Write to MH i2c: E2 08 00 2F 05 80 0D 03 02 00 00 00 00 AF [20:13:22]Write i2c OK [20:13:22]MH_I2C_Read... [20:13:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:13:22]Read from MH i2c: E2 [20:13:22]MH_I2C_Read... [20:13:22]Read from MH i2c: E2 0B 00 [20:13:22]MH_I2C_Read... [20:13:22]Read from MH i2c: E2 0B 00 2F 05 00 31 38 5E 4E A0 F2 74 B6 90 00 81 [20:13:22]RAPDU: 31 38 5E 4E A0 F2 74 B6 90 00 [20:13:22]wFMCommunicate OK [20:13:22]SAM_PROTO_SignData done [20:13:22]FM_MakeSignedData done [20:13:22]CreateOFDProtocolMessage [20:13:22]wFMCommunicate request_size=4 [20:13:22]MH_SAM_APDU [20:13:22]CAPDU: 80 11 00 00 [20:13:22]Write to MH i2c: E2 08 00 30 05 80 11 00 00 00 00 00 00 AF [20:13:22]Write i2c OK [20:13:22]MH_I2C_Read... [20:13:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:13:22]Read from MH i2c: E2 [20:13:22]MH_I2C_Read... [20:13:22]Read from MH i2c: E2 17 00 [20:13:22]MH_I2C_Read... [20:13:22]Read from MH i2c: E2 17 00 30 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 FE [20:13:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:13:22]wFMCommunicate OK [20:13:22]CreateOFDProtocolMessage done [20:13:22]OFDSenderStorePacket 28742 [20:13:22]StoreOFDPacket docnum=28742 [20:13:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 22 11 07 01 DC C3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 0C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 5E 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 52 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 10 00 00 00 F4 03 04 00 E2 95 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 46 70 00 00 35 04 06 00 AE E2 55 EA B7 82 31 38 5E 4E A0 F2 74 B6 [20:13:22]CheckFolder [20:13:22]dirname=/storage/ofd_packets [20:13:22]CheckFolder done [20:13:22]ProducePacketName [20:13:22]name=ofd_packets/00028742 [20:13:22]NVStorageSaveData ofd_packets/00028742 [20:13:22]File name is /storage/ofd_packets/00028742 [20:13:22]Write 301 bytes [20:13:22]NVStorageSaveData done [20:13:22]OFDSenderStorePacket done [20:13:22]KKMCreateOFDPacket done [20:13:22]NVStorageSaveData kkm_last_timestamp [20:13:22]File name is /storage/kkm_last_timestamp [20:13:22]Write 4 bytes [20:13:22]NVStorageSaveData done [20:13:22]ExternCall_PrintAddStr [20:13:22]wPrintStart [20:13:22]Write to MH i2c: 01 00 00 31 05 36 [20:13:22]Write i2c OK [20:13:22]MH_I2C_Read... [20:13:22]Read from MH i2c: 01 [20:13:22]MH_I2C_Read... [20:13:22]Read from MH i2c: 01 07 00 [20:13:22]MH_I2C_Read... [20:13:22]Read from MH i2c: 01 07 00 31 05 00 00 00 00 00 FF 0F 4B [20:13:22]RasterBufferAndPrint [20:13:22]line Счет N : (1)347079 [20:13:22]line ИНН: 02508201610067 [20:13:22]line Контрольно-Кассовый Чек [20:13:22]line ПРОДАЖА [20:13:22]line ТРК (МРК, ГНК) : 32 [20:13:22]line Товар: 2710124130 [20:13:22]line Аи-92-К-5 [20:13:22]line 3.120 * 64.30 [20:13:22]line = 200.62 [20:13:22]line НДС 12% НСП 1% [20:13:22]line > о реализуемом товаре [20:13:22]line ОКРУГЛЕНИЕ: -0.62 [20:13:22]line ИТОГО: 200.00 [20:13:22]line Внесено: 200.00 [20:13:22]line СДАЧА: 0.00 [20:13:22]line НСП 1% : 1.77 [20:13:22]line НДС 12% : 21.30 [20:13:22]line Наличными: 200.00 [20:13:22]line Безнал.: 0.00 [20:13:22]line Место: АЗС № 108 "Партнер Нефть" [20:13:22]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [20:13:22]line СНО: Общий режим [20:13:22]line Чек 16 12.04.2024 20:13 [20:13:22]line Смена: 114 ФФД: 1.0 [20:13:22]line ЗНМ: 0300000027 [20:13:22]line РНМ: 0000138879044617 [20:13:22]line Версия ККМ: 001 [20:13:22]line ФМ: 0000000000963154 [20:13:22]line ФД: 28742 [20:13:22]line ФПД: 192287127287682 [20:13:22]line 1/tax-web-control/client/api/v1/ticket?date=20240412T201322&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28742&fm=192287127287682&tin=02508201610067®Number=0000138879044617&sum=20000 [20:13:22]OFD Sender: Processing packet 28742 [packets to send 8, broken 7] [20:13:22]ProducePacketName [20:13:22]name=ofd_packets/00028742 [20:13:22]OFD Sender: To server: pG, [20:13:22]CommunicateWithHost lk.salyk.kg:30040 [20:13:22]ConnectInit lk.salyk.kg [20:13:22]written 0, free lines is 4095 [20:13:23]Connected sock=10 [20:13:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 22 11 07 01 DC C3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 0C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 5E 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 52 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 10 00 00 00 F4 03 04 00 E2 95 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 46 70 00 00 35 04 06 00 AE E2 55 EA B7 82 31 38 5E 4E A0 F2 74 B6 [20:13:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 9A B2 47 00 B6 9E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 46 70 00 00 F4 03 04 00 8B 40 19 66 B6 04 01 00 00 6F B0 EC 05 C9 15 C6 C8 [20:13:23]CommunicateWithHost err = 0 [20:13:23]CheckOFDResponse [20:13:23]1017 (14) - 77093643461234 [20:13:23]1041 (16) - 0000000000963154 [20:13:23]1040 (4) - 28742 [20:13:23]1012 (4) - 12.04.2024 14:09 [20:13:23]1206 (1) - 0 [20:13:23]OFD Sender: Remove packet 28742 [20:13:23]ProducePacketName [20:13:23]name=ofd_packets/00028742 [20:13:23]NVStorageDeleteData [20:13:23]Write to MH i2c: 01 00 00 5B 05 60 [20:13:23]Write i2c OK [20:13:23]MH_I2C_Read... [20:13:23]Read from MH i2c: 01 [20:13:23]MH_I2C_Read... [20:13:23]Read from MH i2c: 01 07 00 [20:13:23]MH_I2C_Read... [20:13:23]Read from MH i2c: 01 07 00 5B 05 00 00 00 00 00 C6 0C 39 [20:13:23]RasterBufferAndPrint [20:13:23]line [20:13:23]line [20:13:23]line [20:13:23]line [20:13:23]line [20:13:23]written 0, free lines is 3274 [20:13:23]MH_Cut [20:13:23]Write to MH i2c: D1 01 00 62 05 01 39 [20:13:23]Write i2c OK [20:13:23]MH_I2C_Read... [20:13:23]Read from MH i2c: D1 [20:13:23]MH_I2C_Read... [20:13:23]Read from MH i2c: D1 01 00 [20:13:23]MH_I2C_Read... [20:13:23]Read from MH i2c: D1 01 00 62 05 00 38 [20:13:23]Write to MH i2c: 01 00 00 63 05 68 [20:13:23]Write i2c OK [20:13:23]MH_I2C_Read... [20:13:23]OFD Sender: No OFD packet to send [20:13:24]*** Cut start [20:13:24]*** Partial cut [20:13:24]*** CUTSNS_PIN = 1 [20:13:24]*** CUTSNS_PIN = 0 [20:13:24]*** Brake cut motor [20:13:24]Read from MH i2c: 01 [20:13:24]MH_I2C_Read... [20:13:24]*** Stop cut motor [20:13:24]*** Cut end [20:13:24]Read from MH i2c: 01 07 00 [20:13:24]MH_I2C_Read... [20:13:24]Read from MH i2c: 01 07 00 63 05 00 00 00 00 00 FF 0F 7D [20:13:24]process_action close_receipt done [20:13:24]requested_data is exist [20:13:24]produce_requested_data [20:13:24]requested_item fm.sn is exist - process it [20:13:24]wFMCommunicate request_size=4 [20:13:24]MH_SAM_APDU [20:13:24]CAPDU: 80 11 00 00 [20:13:24]Write to MH i2c: E2 08 00 64 05 80 11 00 00 00 00 00 00 E3 [20:13:24]Write i2c OK [20:13:24]MH_I2C_Read... [20:13:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:13:24]Read from MH i2c: E2 [20:13:24]MH_I2C_Read... [20:13:24]Read from MH i2c: E2 17 00 [20:13:24]MH_I2C_Read... [20:13:24]Read from MH i2c: E2 17 00 64 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 32 [20:13:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:13:24]wFMCommunicate OK [20:13:24]requested_item fd.num is exist - process it [20:13:24]SAM_PROTO_GetFieldsCounters [20:13:24]wFMCommunicate request_size=4 [20:13:24]MH_SAM_APDU [20:13:24]CAPDU: 80 13 00 00 [20:13:24]Write to MH i2c: E2 08 00 65 05 80 13 00 00 00 00 00 00 E6 [20:13:24]Write i2c OK [20:13:24]MH_I2C_Read... [20:13:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:13:25]Read from MH i2c: E2 [20:13:25]MH_I2C_Read... [20:13:25]Read from MH i2c: E2 62 00 [20:13:25]MH_I2C_Read... [20:13:25]Read from MH i2c: E2 62 00 65 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 46 70 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 7C [20:13:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 46 70 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 [20:13:25]wFMCommunicate OK [20:13:25]SAM_PROTO_GetFieldsCounters done [20:13:25]requested_item shift.num is exist - process it [20:13:25]requested_item shift.opened is exist - process it [20:13:25]req_shift_opened [20:13:25]FM_GetShiftState [20:13:25]SAM_PROTO_GetShiftState [20:13:25]wFMCommunicate request_size=4 [20:13:25]MH_SAM_APDU [20:13:25]CAPDU: 80 13 01 00 [20:13:25]Write to MH i2c: E2 08 00 66 05 80 13 01 00 00 00 00 00 E8 [20:13:25]Write i2c OK [20:13:25]MH_I2C_Read... [20:13:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:13:25]Read from MH i2c: E2 [20:13:25]MH_I2C_Read... [20:13:25]Read from MH i2c: E2 0E 00 [20:13:25]MH_I2C_Read... [20:13:25]Read from MH i2c: E2 0E 00 66 05 00 09 00 01 17 88 19 66 00 00 00 00 90 00 12 [20:13:25]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [20:13:25]wFMCommunicate OK [20:13:25]SAM_PROTO_GetShiftState done [20:13:25]FM_GetShiftState done [20:13:25]req_shift_opened done [20:13:25]requested_item shift.open_date is exist - process it [20:13:25]req_shift_open_date [20:13:25]req_shift_open_date done [20:13:25]produce_requested_data done [20:13:25]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28742,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271} [20:13:25]process_action_free close_receipt [20:13:25]json_value_free [20:13:25]json_value_free done [20:13:25]process_json_proto returns [20:13:25]Send response to host [20:13:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28742,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271}}} [20:13:25]free response buf [20:13:25]execute_script done [20:13:25]execute_script returns [20:13:25]free content buf [20:13:25]Sock 7.Close socket [20:13:25]Sock 7.Thread stoped [20:13:28]OFD Sender: No OFD packet to send [20:13:33]OFD Sender: No OFD packet to send [20:13:38]OFD Sender: No OFD packet to send [20:13:43]OFD Sender: No OFD packet to send [20:13:48]OFD Sender: No OFD packet to send [20:13:53]OFD Sender: No OFD packet to send [20:13:58]OFD Sender: No OFD packet to send [20:14:03]OFD Sender: No OFD packet to send [20:14:08]OFD Sender: No OFD packet to send [20:14:13]OFD Sender: No OFD packet to send [20:14:18]OFD Sender: No OFD packet to send [20:14:23]OFD Sender: No OFD packet to send [20:14:28]OFD Sender: No OFD packet to send [20:14:33]OFD Sender: No OFD packet to send [20:14:38]OFD Sender: No OFD packet to send [20:14:43]OFD Sender: No OFD packet to send [20:14:48]OFD Sender: No OFD packet to send [20:14:53]OFD Sender: No OFD packet to send [20:14:58]OFD Sender: No OFD packet to send [20:15:03]OFD Sender: No OFD packet to send [20:15:08]OFD Sender: No OFD packet to send [20:15:13]OFD Sender: No OFD packet to send [20:15:18]OFD Sender: No OFD packet to send [20:15:23]OFD Sender: No OFD packet to send [20:15:28]OFD Sender: No OFD packet to send [20:15:33]OFD Sender: No OFD packet to send [20:15:38]OFD Sender: No OFD packet to send [20:15:43]OFD Sender: No OFD packet to send [20:15:48]OFD Sender: No OFD packet to send [20:15:53]OFD Sender: No OFD packet to send [20:15:58]OFD Sender: No OFD packet to send [20:16:03]OFD Sender: No OFD packet to send [20:16:08]OFD Sender: No OFD packet to send [20:16:13]OFD Sender: No OFD packet to send [20:16:18]OFD Sender: No OFD packet to send [20:16:23]OFD Sender: No OFD packet to send [20:16:28]OFD Sender: No OFD packet to send [20:16:33]OFD Sender: No OFD packet to send [20:16:38]OFD Sender: No OFD packet to send [20:16:43]OFD Sender: No OFD packet to send [20:16:48]OFD Sender: No OFD packet to send [20:16:53]OFD Sender: No OFD packet to send [20:16:58]OFD Sender: No OFD packet to send [20:17:03]OFD Sender: No OFD packet to send [20:17:08]accept exits with 9 [20:17:08]New connection [20:17:08]New thread 3066928484 created [20:17:08]Thread 3066785124 joined [20:17:08]Waiting for new connection... [20:17:08] Sock 9.Parse request [20:17:08]Sock 9.Check first char [20:17:08]Sock 9.First char is OK [20:17:08]request: POST /json_proto HTTP/1.0 [20:17:08]Method: POST [20:17:08]URL: /json_proto [20:17:08]Method is POST - this is cgi request [20:17:08]url: /json_proto [20:17:08]query_string will be loaded in cgi processing [20:17:08]execute_cgi json_proto POST (null) [20:17:08]execute_cgi path=json_proto method=POST [20:17:08]POST find Content-Length [20:17:08]Host: 172.17.33.3:8080 [20:17:08]Content-Length: 843 [20:17:08]Content-Type: application/json [20:17:08] [20:17:08]POST finish read [20:17:08]Found Content-Length = 843 [20:17:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347081", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 15.560, "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" ] } } [20:17:08]execute_script... [20:17: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)347081", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 15.560, "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" ] } } [20:17:08]POST & json_proto [20:17:08]process_json_proto [20:17:08]json parsed OK: [20:17:08]protocol is kg_v1.0 [20:17:08]action value=close_receipt [20:17:08]process_action close_receipt [20:17:08]cmd_close_receipt [20:17:08]MH_GetDate [20:17:08]Write to MH i2c: F0 00 00 67 05 5B [20:17:08]Write i2c OK [20:17:08]MH_I2C_Read... [20:17:08]Read from MH i2c: F0 [20:17:08]MH_I2C_Read... [20:17:08]Read from MH i2c: F0 09 00 [20:17:08]MH_I2C_Read... [20:17:08]Read from MH i2c: F0 09 00 67 05 00 C5 96 19 66 23 5B 8F 65 B0 [20:17:08]GetLastDocTimeStamp 1712952802 [20:17:08]current date 1712953029 [20:17:08]FM_GetShiftState [20:17:08]SAM_PROTO_GetShiftState [20:17:08]wFMCommunicate request_size=4 [20:17:08]MH_SAM_APDU [20:17:08]CAPDU: 80 13 01 00 [20:17:08]Write to MH i2c: E2 08 00 68 05 80 13 01 00 00 00 00 00 EA [20:17:08]Write i2c OK [20:17:08]MH_I2C_Read... [20:17:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:17:08]Read from MH i2c: E2 [20:17:08]MH_I2C_Read... [20:17:08]Read from MH i2c: E2 0E 00 [20:17:08]MH_I2C_Read... [20:17:08]Read from MH i2c: E2 0E 00 68 05 00 09 00 01 17 88 19 66 00 00 00 00 90 00 14 [20:17:08]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [20:17:08]wFMCommunicate OK [20:17:08]SAM_PROTO_GetShiftState done [20:17:08]FM_GetShiftState done [20:17:08]opened in 1712949271 [20:17:08]opened+sec_in_day 1713035671 [20:17:08]quantity*price = 100050 [20:17:08]sum+1 = 100052 [20:17:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 17 12.04.2024 20:17 Смена: 114 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 28743 ФПД: 226163308017657 1/tax-web-control/client/api/v1/ticket?date=20240412T201709&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28743&fm=226163308017657&tin=02508201610067®Number=0000138879044617&sum=100051 [20:17:09]StoreToDocumentArchive [20:17:09]shift 114 fd 28743 [20:17:09]save to /storage/0114/doc_00028743 [20:17:09]save last doc name /storage/0114/doc_00028743 to /storage/kkm_last_doc_name [20:17:09]save OK [20:17:09]Clear old archive folders... [20:17:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:17:09]tlvbuf is 0120E570 [20:17:09]SAM_PROTO_ClearQueue [20:17:09]wFMCommunicate request_size=4 [20:17:09]MH_SAM_APDU [20:17:09]CAPDU: 80 09 00 00 [20:17:09]Write to MH i2c: E2 08 00 75 05 80 09 00 00 00 00 00 00 EC [20:17:09]Write i2c OK [20:17:09]MH_I2C_Read... [20:17:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:17:09]Read from MH i2c: E2 [20:17:09]MH_I2C_Read... [20:17:09]Read from MH i2c: E2 03 00 [20:17:09]MH_I2C_Read... [20:17:09]Read from MH i2c: E2 03 00 75 05 00 90 00 EE [20:17:09]RAPDU: 90 00 [20:17:09]wFMCommunicate OK [20:17:09]SAM_PROTO_ClearQueue done [20:17:09]KKMCreateOFDPacket [20:17:09]OFDProtocolAddRootSTLVToBuf [20:17:09]FM_MakeSignedData [20:17:09]FM_MakeSignedData [20:17:09]SAM_PROTO_SignData [20:17:09]wFMCommunicate request_size=4 [20:17:09]MH_SAM_APDU [20:17:09]CAPDU: 80 0D 01 02 [20:17:09]Write to MH i2c: E2 08 00 76 05 80 0D 01 02 00 00 00 00 F4 [20:17:09]Write i2c OK [20:17:09]MH_I2C_Read... [20:17:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:17:09]Read from MH i2c: E2 [20:17:09]MH_I2C_Read... [20:17:09]Read from MH i2c: E2 03 00 [20:17:09]MH_I2C_Read... [20:17:09]Read from MH i2c: E2 03 00 76 05 00 90 00 EF [20:17:09]RAPDU: 90 00 [20:17:09]wFMCommunicate OK [20:17:09]wFMCommunicate request_size=255 [20:17:09]MH_SAM_APDU [20:17:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 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 11 00 00 00 F4 03 04 00 C5 96 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 47 70 00 00 35 04 06 00 CD [20:17:09]Write to MH i2c: E2 02 01 77 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 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 11 00 00 00 F4 03 04 00 C5 96 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 47 70 00 00 35 04 06 00 CD 00 00 67 [20:17:09]Write i2c OK [20:17:09]MH_I2C_Read... [20:17:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:17:09]Read from MH i2c: E2 [20:17:09]MH_I2C_Read... [20:17:09]Read from MH i2c: E2 03 00 [20:17:09]MH_I2C_Read... [20:17:09]Read from MH i2c: E2 03 00 77 05 00 90 00 F0 [20:17:09]RAPDU: 90 00 [20:17:09]wFMCommunicate OK [20:17:09]wFMCommunicate request_size=10 [20:17:09]MH_SAM_APDU [20:17:09]CAPDU: 80 0D 02 02 05 B1 BF A2 B7 F9 [20:17:09]Write to MH i2c: E2 0D 00 78 05 80 0D 02 02 05 00 B1 BF A2 B7 F9 00 00 C3 [20:17:09]Write i2c OK [20:17:09]MH_I2C_Read... [20:17:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:17:09]Read from MH i2c: E2 [20:17:09]MH_I2C_Read... [20:17:09]Read from MH i2c: E2 03 00 [20:17:09]MH_I2C_Read... [20:17:09]Read from MH i2c: E2 03 00 78 05 00 90 00 F1 [20:17:09]RAPDU: 90 00 [20:17:09]wFMCommunicate OK [20:17:09]wFMCommunicate request_size=4 [20:17:09]MH_SAM_APDU [20:17:09]CAPDU: 80 0D 03 02 [20:17:09]Write to MH i2c: E2 08 00 79 05 80 0D 03 02 00 00 00 00 F9 [20:17:09]Write i2c OK [20:17:09]MH_I2C_Read... [20:17:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:17:10]Read from MH i2c: E2 [20:17:10]MH_I2C_Read... [20:17:10]Read from MH i2c: E2 0B 00 [20:17:10]MH_I2C_Read... [20:17:10]Read from MH i2c: E2 0B 00 79 05 00 76 99 76 16 D9 34 A2 E2 90 00 26 [20:17:10]RAPDU: 76 99 76 16 D9 34 A2 E2 90 00 [20:17:10]wFMCommunicate OK [20:17:10]SAM_PROTO_SignData done [20:17:10]FM_MakeSignedData done [20:17:10]CreateOFDProtocolMessage [20:17:10]wFMCommunicate request_size=4 [20:17:10]MH_SAM_APDU [20:17:10]CAPDU: 80 11 00 00 [20:17:10]Write to MH i2c: E2 08 00 7A 05 80 11 00 00 00 00 00 00 F9 [20:17:10]Write i2c OK [20:17:10]MH_I2C_Read... [20:17:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:17:10]Read from MH i2c: E2 [20:17:10]MH_I2C_Read... [20:17:10]Read from MH i2c: E2 17 00 [20:17:10]MH_I2C_Read... [20:17:10]Read from MH i2c: E2 17 00 7A 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 48 [20:17:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:17:10]wFMCommunicate OK [20:17:10]CreateOFDProtocolMessage done [20:17:10]OFDSenderStorePacket 28743 [20:17:10]StoreOFDPacket docnum=28743 [20:17:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 F8 85 07 01 10 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 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 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 11 00 00 00 F4 03 04 00 C5 96 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 47 70 00 00 35 04 06 00 CD B1 BF A2 B7 F9 76 99 76 16 D9 34 A2 E2 [20:17:10]CheckFolder [20:17:10]dirname=/storage/ofd_packets [20:17:10]CheckFolder done [20:17:10]ProducePacketName [20:17:10]name=ofd_packets/00028743 [20:17:10]NVStorageSaveData ofd_packets/00028743 [20:17:10]File name is /storage/ofd_packets/00028743 [20:17:10]Write 301 bytes [20:17:10]NVStorageSaveData done [20:17:10]OFDSenderStorePacket done [20:17:10]KKMCreateOFDPacket done [20:17:10]NVStorageSaveData kkm_last_timestamp [20:17:10]File name is /storage/kkm_last_timestamp [20:17:10]Write 4 bytes [20:17:10]NVStorageSaveData done [20:17:10]ExternCall_PrintAddStr [20:17:10]wPrintStart [20:17:10]Write to MH i2c: 01 00 00 7B 05 80 [20:17:10]Write i2c OK [20:17:10]MH_I2C_Read... [20:17:10]Read from MH i2c: 01 [20:17:10]MH_I2C_Read... [20:17:10]Read from MH i2c: 01 07 00 [20:17:10]MH_I2C_Read... [20:17:10]Read from MH i2c: 01 07 00 7B 05 00 00 00 00 00 FF 0F 95 [20:17:10]RasterBufferAndPrint [20:17:10]line Счет N : (1)347081 [20:17:10]line ИНН: 02508201610067 [20:17:10]line Контрольно-Кассовый Чек [20:17:10]line ПРОДАЖА [20:17:10]line ТРК (МРК, ГНК) : 23 [20:17:10]line Товар: 2710124130 [20:17:10]line Аи-92-К-5 [20:17:10]line 15.560 * 64.30 [20:17:10]line = 1000.51 [20:17:10]line НДС 12% НСП 1% [20:17:10]line > о реализуемом товаре [20:17:10]line ИТОГО: 1000.51 [20:17:10]line НСП 1% : 8.85 [20:17:10]line НДС 12% : 106.25 [20:17:10]line Наличными: 0.00 [20:17:10]line Безнал.: 1000.51 [20:17:10]line Место: АЗС № 108 "Партнер Нефть" [20:17:10]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [20:17:10]line СНО: Общий режим [20:17:10]line Чек 17 12.04.2024 20:17 [20:17:10]line Смена: 114 ФФД: 1.0 [20:17:10]line ЗНМ: 0300000027 [20:17:10]line РНМ: 0000138879044617 [20:17:10]line Версия ККМ: 001 [20:17:10]line Платежная система: АКБ Кыргызстан [20:17:10]line ФМ: 0000000000963154 [20:17:10]line ФД: 28743 [20:17:10]line ФПД: 226163308017657 [20:17:10]line 1/tax-web-control/client/api/v1/ticket?date=20240412T201709&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28743&fm=226163308017657&tin=02508201610067®Number=0000138879044617&sum=100051 [20:17:10]OFD Sender: Processing packet 28743 [packets to send 8, broken 7] [20:17:10]ProducePacketName [20:17:10]name=ofd_packets/00028743 [20:17:10]OFD Sender: To server: pG, [20:17:10]CommunicateWithHost lk.salyk.kg:30040 [20:17:10]ConnectInit lk.salyk.kg [20:17:10]written 0, free lines is 4095 [20:17:10]Connected sock=10 [20:17:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 F8 85 07 01 10 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 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 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 11 00 00 00 F4 03 04 00 C5 96 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 47 70 00 00 35 04 06 00 CD B1 BF A2 B7 F9 76 99 76 16 D9 34 A2 E2 [20:17:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 2B B4 47 00 69 E6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 47 70 00 00 F4 03 04 00 6E 41 19 66 B6 04 01 00 00 14 D6 91 26 B2 10 15 26 [20:17:10]CommunicateWithHost err = 0 [20:17:10]CheckOFDResponse [20:17:10]1017 (14) - 77093643461234 [20:17:10]1041 (16) - 0000000000963154 [20:17:10]1040 (4) - 28743 [20:17:10]1012 (4) - 12.04.2024 14:13 [20:17:10]1206 (1) - 0 [20:17:10]OFD Sender: Remove packet 28743 [20:17:10]ProducePacketName [20:17:10]name=ofd_packets/00028743 [20:17:10]NVStorageDeleteData [20:17:10]Write to MH i2c: 01 00 00 A4 05 A9 [20:17:10]Write i2c OK [20:17:10]MH_I2C_Read... [20:17:10]Read from MH i2c: 01 [20:17:10]MH_I2C_Read... [20:17:10]Read from MH i2c: 01 07 00 [20:17:10]MH_I2C_Read... [20:17:10]Read from MH i2c: 01 07 00 A4 05 00 00 00 00 00 E5 0C A1 [20:17:10]RasterBufferAndPrint [20:17:10]line [20:17:10]line [20:17:10]line [20:17:10]line [20:17:10]line [20:17:10]written 0, free lines is 3306 [20:17:10]MH_Cut [20:17:10]Write to MH i2c: D1 01 00 AB 05 01 82 [20:17:10]Write i2c OK [20:17:10]MH_I2C_Read... [20:17:10]Read from MH i2c: D1 [20:17:10]MH_I2C_Read... [20:17:10]Read from MH i2c: D1 01 00 [20:17:10]MH_I2C_Read... [20:17:10]Read from MH i2c: D1 01 00 AB 05 00 81 [20:17:10]Write to MH i2c: 01 00 00 AC 05 B1 [20:17:10]Write i2c OK [20:17:10]MH_I2C_Read... [20:17:11]OFD Sender: No OFD packet to send [20:17:11]*** Cut start [20:17:11]*** Partial cut [20:17:11]*** CUTSNS_PIN = 1 [20:17:11]*** CUTSNS_PIN = 0 [20:17:11]*** Brake cut motor [20:17:12]Read from MH i2c: 01 [20:17:12]MH_I2C_Read... [20:17:12]*** Stop cut motor [20:17:12]*** Cut end [20:17:12]Read from MH i2c: 01 07 00 [20:17:12]MH_I2C_Read... [20:17:12]Read from MH i2c: 01 07 00 AC 05 00 00 00 00 00 FF 0F C6 [20:17:12]process_action close_receipt done [20:17:12]requested_data is exist [20:17:12]produce_requested_data [20:17:12]requested_item fm.sn is exist - process it [20:17:12]wFMCommunicate request_size=4 [20:17:12]MH_SAM_APDU [20:17:12]CAPDU: 80 11 00 00 [20:17:12]Write to MH i2c: E2 08 00 AD 05 80 11 00 00 00 00 00 00 2C [20:17:12]Write i2c OK [20:17:12]MH_I2C_Read... [20:17:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:17:12]Read from MH i2c: E2 [20:17:12]MH_I2C_Read... [20:17:12]Read from MH i2c: E2 17 00 [20:17:12]MH_I2C_Read... [20:17:12]Read from MH i2c: E2 17 00 AD 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 7B [20:17:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:17:12]wFMCommunicate OK [20:17:12]requested_item fd.num is exist - process it [20:17:12]SAM_PROTO_GetFieldsCounters [20:17:12]wFMCommunicate request_size=4 [20:17:12]MH_SAM_APDU [20:17:12]CAPDU: 80 13 00 00 [20:17:12]Write to MH i2c: E2 08 00 AE 05 80 13 00 00 00 00 00 00 2F [20:17:12]Write i2c OK [20:17:12]MH_I2C_Read... [20:17:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:17:12]Read from MH i2c: E2 [20:17:12]MH_I2C_Read... [20:17:12]Read from MH i2c: E2 62 00 [20:17:12]MH_I2C_Read... [20:17:12]Read from MH i2c: E2 62 00 AE 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 47 70 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 C9 [20:17:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 47 70 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 [20:17:12]wFMCommunicate OK [20:17:12]SAM_PROTO_GetFieldsCounters done [20:17:12]requested_item shift.num is exist - process it [20:17:12]requested_item shift.opened is exist - process it [20:17:12]req_shift_opened [20:17:12]FM_GetShiftState [20:17:12]SAM_PROTO_GetShiftState [20:17:12]wFMCommunicate request_size=4 [20:17:12]MH_SAM_APDU [20:17:12]CAPDU: 80 13 01 00 [20:17:12]Write to MH i2c: E2 08 00 AF 05 80 13 01 00 00 00 00 00 31 [20:17:12]Write i2c OK [20:17:12]MH_I2C_Read... [20:17:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:17:12]Read from MH i2c: E2 [20:17:12]MH_I2C_Read... [20:17:12]Read from MH i2c: E2 0E 00 [20:17:12]MH_I2C_Read... [20:17:12]Read from MH i2c: E2 0E 00 AF 05 00 09 00 01 17 88 19 66 00 00 00 00 90 00 5B [20:17:12]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [20:17:12]wFMCommunicate OK [20:17:12]SAM_PROTO_GetShiftState done [20:17:12]FM_GetShiftState done [20:17:12]req_shift_opened done [20:17:12]requested_item shift.open_date is exist - process it [20:17:12]req_shift_open_date [20:17:12]req_shift_open_date done [20:17:12]produce_requested_data done [20:17:12]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28743,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271} [20:17:12]process_action_free close_receipt [20:17:12]json_value_free [20:17:12]json_value_free done [20:17:12]process_json_proto returns [20:17:12]Send response to host [20:17:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28743,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271}}} [20:17:12]free response buf [20:17:12]execute_script done [20:17:12]execute_script returns [20:17:12]free content buf [20:17:12]Sock 9.Close socket [20:17:12]Sock 9.Thread stoped [20:17:16]OFD Sender: No OFD packet to send [20:17:21]OFD Sender: No OFD packet to send [20:17:26]OFD Sender: No OFD packet to send [20:17:31]OFD Sender: No OFD packet to send [20:17:36]OFD Sender: No OFD packet to send [20:17:41]OFD Sender: No OFD packet to send [20:17:46]OFD Sender: No OFD packet to send [20:17:51]OFD Sender: No OFD packet to send [20:17:56]OFD Sender: No OFD packet to send [20:18:01]OFD Sender: No OFD packet to send [20:18:06]OFD Sender: No OFD packet to send [20:18:09]accept exits with 7 [20:18:09]New connection [20:18:09]New thread 3066785124 created [20:18:09]Thread 3066928484 joined [20:18:09]Waiting for new connection... [20:18:09] Sock 7.Parse request [20:18:09]Sock 7.Check first char [20:18:09]Sock 7.First char is OK [20:18:09]request: POST /json_proto HTTP/1.0 [20:18:09]Method: POST [20:18:09]URL: /json_proto [20:18:09]Method is POST - this is cgi request [20:18:09]url: /json_proto [20:18:09]query_string will be loaded in cgi processing [20:18:09]execute_cgi json_proto POST (null) [20:18:09]execute_cgi path=json_proto method=POST [20:18:09]POST find Content-Length [20:18:09]Host: 172.17.33.3:8080 [20:18:09]Content-Length: 811 [20:18:09]Content-Type: application/json [20:18:09] [20:18:09]POST finish read [20:18:09]Found Content-Length = 811 [20:18:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347080", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 54.720, "sum" : 1800.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1800.29 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:18:09]execute_script... [20:18:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347080", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 54.720, "sum" : 1800.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1800.29 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:18:09]POST & json_proto [20:18:09]process_json_proto [20:18:09]json parsed OK: [20:18:09]protocol is kg_v1.0 [20:18:09]action value=close_receipt [20:18:09]process_action close_receipt [20:18:09]cmd_close_receipt [20:18:09]MH_GetDate [20:18:09]Write to MH i2c: F0 00 00 B0 05 A4 [20:18:09]Write i2c OK [20:18:09]MH_I2C_Read... [20:18:09]Read from MH i2c: F0 [20:18:09]MH_I2C_Read... [20:18:09]Read from MH i2c: F0 09 00 [20:18:09]MH_I2C_Read... [20:18:09]Read from MH i2c: F0 09 00 B0 05 00 02 97 19 66 23 5B 8F 65 37 [20:18:09]GetLastDocTimeStamp 1712953029 [20:18:09]current date 1712953090 [20:18:09]FM_GetShiftState [20:18:09]SAM_PROTO_GetShiftState [20:18:09]wFMCommunicate request_size=4 [20:18:09]MH_SAM_APDU [20:18:09]CAPDU: 80 13 01 00 [20:18:09]Write to MH i2c: E2 08 00 B1 05 80 13 01 00 00 00 00 00 33 [20:18:09]Write i2c OK [20:18:09]MH_I2C_Read... [20:18:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:18:09]Read from MH i2c: E2 [20:18:09]MH_I2C_Read... [20:18:09]Read from MH i2c: E2 0E 00 [20:18:09]MH_I2C_Read... [20:18:09]Read from MH i2c: E2 0E 00 B1 05 00 09 00 01 17 88 19 66 00 00 00 00 90 00 5D [20:18:09]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [20:18:09]wFMCommunicate OK [20:18:09]SAM_PROTO_GetShiftState done [20:18:09]FM_GetShiftState done [20:18:09]opened in 1712949271 [20:18:09]opened+sec_in_day 1713035671 [20:18:09]quantity*price = 180028 [20:18:09]sum+1 = 180030 [20:18:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1800.29 НСП 1% : 15.93 НДС 12% : 191.18 Наличными: 0.00 Безнал.: 1800.29 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 18 12.04.2024 20:18 Смена: 114 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 28744 ФПД: 100656130961774 1/tax-web-control/client/api/v1/ticket?date=20240412T201810&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28744&fm=100656130961774&tin=02508201610067®Number=0000138879044617&sum=180029 [20:18:10]StoreToDocumentArchive [20:18:10]shift 114 fd 28744 [20:18:10]save to /storage/0114/doc_00028744 [20:18:10]save last doc name /storage/0114/doc_00028744 to /storage/kkm_last_doc_name [20:18:10]save OK [20:18:10]Clear old archive folders... [20:18:10]ProcessDocumentItem done err = 0, tmpTLVsize=250 [20:18:10]tlvbuf is 0120E350 [20:18:10]SAM_PROTO_ClearQueue [20:18:10]wFMCommunicate request_size=4 [20:18:10]MH_SAM_APDU [20:18:10]CAPDU: 80 09 00 00 [20:18:10]Write to MH i2c: E2 08 00 BE 05 80 09 00 00 00 00 00 00 35 [20:18:10]Write i2c OK [20:18:10]MH_I2C_Read... [20:18:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:18:10]Read from MH i2c: E2 [20:18:10]MH_I2C_Read... [20:18:10]Read from MH i2c: E2 03 00 [20:18:10]MH_I2C_Read... [20:18:10]Read from MH i2c: E2 03 00 BE 05 00 90 00 37 [20:18:10]RAPDU: 90 00 [20:18:10]wFMCommunicate OK [20:18:10]SAM_PROTO_ClearQueue done [20:18:10]KKMCreateOFDPacket [20:18:10]OFDProtocolAddRootSTLVToBuf [20:18:10]FM_MakeSignedData [20:18:10]FM_MakeSignedData [20:18:10]SAM_PROTO_SignData [20:18:10]wFMCommunicate request_size=4 [20:18:10]MH_SAM_APDU [20:18:10]CAPDU: 80 0D 01 02 [20:18:10]Write to MH i2c: E2 08 00 BF 05 80 0D 01 02 00 00 00 00 3D [20:18:10]Write i2c OK [20:18:10]MH_I2C_Read... [20:18:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:18:10]Read from MH i2c: E2 [20:18:10]MH_I2C_Read... [20:18:10]Read from MH i2c: E2 03 00 [20:18:10]MH_I2C_Read... [20:18:10]Read from MH i2c: E2 03 00 BF 05 00 90 00 38 [20:18:10]RAPDU: 90 00 [20:18:10]wFMCommunicate OK [20:18:10]wFMCommunicate request_size=255 [20:18:10]MH_SAM_APDU [20:18:10]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C0 D5 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 3D BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 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 00 00 00 00 00 00 39 04 06 00 3D BF 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 02 97 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 48 70 00 00 35 04 06 00 5B 8B [20:18:10]Write to MH i2c: E2 02 01 C0 05 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C0 D5 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 3D BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 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 00 00 00 00 00 00 39 04 06 00 3D BF 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 02 97 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 48 70 00 00 35 04 06 00 5B 8B 00 00 FA [20:18:10]Write i2c OK [20:18:10]MH_I2C_Read... [20:18:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:18:11]Read from MH i2c: E2 [20:18:11]MH_I2C_Read... [20:18:11]Read from MH i2c: E2 03 00 [20:18:11]MH_I2C_Read... [20:18:11]Read from MH i2c: E2 03 00 C0 05 00 90 00 39 [20:18:11]RAPDU: 90 00 [20:18:11]wFMCommunicate OK [20:18:11]wFMCommunicate request_size=9 [20:18:11]MH_SAM_APDU [20:18:11]CAPDU: 80 0D 02 02 04 D4 EE 31 6E [20:18:11]Write to MH i2c: E2 0C 00 C1 05 80 0D 02 02 04 00 D4 EE 31 6E 00 00 A9 [20:18:11]Write i2c OK [20:18:11]MH_I2C_Read... [20:18:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:18:11]Read from MH i2c: E2 [20:18:11]MH_I2C_Read... [20:18:11]Read from MH i2c: E2 03 00 [20:18:11]MH_I2C_Read... [20:18:11]Read from MH i2c: E2 03 00 C1 05 00 90 00 3A [20:18:11]RAPDU: 90 00 [20:18:11]wFMCommunicate OK [20:18:11]wFMCommunicate request_size=4 [20:18:11]MH_SAM_APDU [20:18:11]CAPDU: 80 0D 03 02 [20:18:11]Write to MH i2c: E2 08 00 C2 05 80 0D 03 02 00 00 00 00 42 [20:18:11]Write i2c OK [20:18:11]MH_I2C_Read... [20:18:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:18:11]Read from MH i2c: E2 [20:18:11]MH_I2C_Read... [20:18:11]Read from MH i2c: E2 0B 00 [20:18:11]MH_I2C_Read... [20:18:11]Read from MH i2c: E2 0B 00 C2 05 00 18 A7 EA 34 7F D0 5E AF 90 00 7C [20:18:11]RAPDU: 18 A7 EA 34 7F D0 5E AF 90 00 [20:18:11]wFMCommunicate OK [20:18:11]SAM_PROTO_SignData done [20:18:11]FM_MakeSignedData done [20:18:11]CreateOFDProtocolMessage [20:18:11]wFMCommunicate request_size=4 [20:18:11]MH_SAM_APDU [20:18:11]CAPDU: 80 11 00 00 [20:18:11]Write to MH i2c: E2 08 00 C3 05 80 11 00 00 00 00 00 00 42 [20:18:11]Write i2c OK [20:18:11]MH_I2C_Read... [20:18:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:18:11]Read from MH i2c: E2 [20:18:11]MH_I2C_Read... [20:18:11]Read from MH i2c: E2 17 00 [20:18:11]MH_I2C_Read... [20:18:11]Read from MH i2c: E2 17 00 C3 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 91 [20:18:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:18:11]wFMCommunicate OK [20:18:11]CreateOFDProtocolMessage done [20:18:11]OFDSenderStorePacket 28744 [20:18:11]StoreOFDPacket docnum=28744 [20:18:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 F9 73 06 01 2B 94 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C0 D5 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 3D BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 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 00 00 00 00 00 00 39 04 06 00 3D BF 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 02 97 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 48 70 00 00 35 04 06 00 5B 8B D4 EE 31 6E 18 A7 EA 34 7F D0 5E AF [20:18:11]CheckFolder [20:18:11]dirname=/storage/ofd_packets [20:18:11]CheckFolder done [20:18:11]ProducePacketName [20:18:11]name=ofd_packets/00028744 [20:18:11]NVStorageSaveData ofd_packets/00028744 [20:18:11]File name is /storage/ofd_packets/00028744 [20:18:11]Write 300 bytes [20:18:11]NVStorageSaveData done [20:18:11]OFDSenderStorePacket done [20:18:11]KKMCreateOFDPacket done [20:18:11]NVStorageSaveData kkm_last_timestamp [20:18:11]File name is /storage/kkm_last_timestamp [20:18:11]Write 4 bytes [20:18:11]NVStorageSaveData done [20:18:11]ExternCall_PrintAddStr [20:18:11]wPrintStart [20:18:11]Write to MH i2c: 01 00 00 C4 05 C9 [20:18:11]Write i2c OK [20:18:11]MH_I2C_Read... [20:18:11]Read from MH i2c: 01 [20:18:11]MH_I2C_Read... [20:18:11]Read from MH i2c: 01 07 00 [20:18:11]MH_I2C_Read... [20:18:11]Read from MH i2c: 01 07 00 C4 05 00 00 00 00 00 FF 0F DE [20:18:11]RasterBufferAndPrint [20:18:11]line Счет N : (1)347080 [20:18:11]line ИНН: 02508201610067 [20:18:11]line Контрольно-Кассовый Чек [20:18:11]line ПРОДАЖА [20:18:11]line ТРК (МРК, ГНК) : 71 [20:18:11]line Товар: 2711129700 [20:18:11]line ГАЗ-К-5 [20:18:11]line 54.720 * 32.90 [20:18:11]line = 1800.29 [20:18:11]line НДС 12% НСП 1% [20:18:11]line > о реализуемом товаре [20:18:11]line ИТОГО: 1800.29 [20:18:11]line НСП 1% : 15.93 [20:18:11]line НДС 12% : 191.18 [20:18:11]line Наличными: 0.00 [20:18:11]line Безнал.: 1800.29 [20:18:11]line Место: АЗС № 108 "Партнер Нефть" [20:18:11]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [20:18:11]line СНО: Общий режим [20:18:11]line Чек 18 12.04.2024 20:18 [20:18:11]line Смена: 114 ФФД: 1.0 [20:18:11]line ЗНМ: 0300000027 [20:18:11]line РНМ: 0000138879044617 [20:18:11]line Версия ККМ: 001 [20:18:11]line Платежная система: О! деньги [20:18:11]line ФМ: 0000000000963154 [20:18:11]line ФД: 28744 [20:18:11]line ФПД: 100656130961774 [20:18:11]line 1/tax-web-control/client/api/v1/ticket?date=20240412T201810&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28744&fm=100656130961774&tin=02508201610067®Number=0000138879044617&sum=180029 [20:18:11]OFD Sender: Processing packet 28744 [packets to send 8, broken 7] [20:18:11]ProducePacketName [20:18:11]name=ofd_packets/00028744 [20:18:11]OFD Sender: To server: pG, [20:18:11]CommunicateWithHost lk.salyk.kg:30040 [20:18:11]ConnectInit lk.salyk.kg [20:18:11]written 0, free lines is 4095 [20:18:11]Connected sock=10 [20:18:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 F9 73 06 01 2B 94 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C0 D5 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 3D BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 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 00 00 00 00 00 00 39 04 06 00 3D BF 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 02 97 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 48 70 00 00 35 04 06 00 5B 8B D4 EE 31 6E 18 A7 EA 34 7F D0 5E AF [20:18:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 7D 95 47 00 BC C7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 48 70 00 00 F4 03 04 00 AB 41 19 66 B6 04 01 00 00 E1 DA 1F 8F A6 6E AE DE [20:18:11]CommunicateWithHost err = 0 [20:18:11]CheckOFDResponse [20:18:11]1017 (14) - 77093643461234 [20:18:11]1041 (16) - 0000000000963154 [20:18:11]1040 (4) - 28744 [20:18:11]1012 (4) - 12.04.2024 14:14 [20:18:11]1206 (1) - 0 [20:18:11]OFD Sender: Remove packet 28744 [20:18:11]ProducePacketName [20:18:11]name=ofd_packets/00028744 [20:18:11]NVStorageDeleteData [20:18:11]Write to MH i2c: 01 00 00 ED 05 F2 [20:18:11]Write i2c OK [20:18:11]MH_I2C_Read... [20:18:11]Read from MH i2c: 01 [20:18:11]MH_I2C_Read... [20:18:11]Read from MH i2c: 01 07 00 [20:18:11]MH_I2C_Read... [20:18:11]Read from MH i2c: 01 07 00 ED 05 00 00 00 00 00 D7 0C DC [20:18:11]RasterBufferAndPrint [20:18:11]line [20:18:11]line [20:18:11]line [20:18:11]line [20:18:11]line [20:18:11]written 0, free lines is 3292 [20:18:11]MH_Cut [20:18:11]Write to MH i2c: D1 01 00 F4 05 01 CB [20:18:11]Write i2c OK [20:18:11]MH_I2C_Read... [20:18:11]Read from MH i2c: D1 [20:18:11]MH_I2C_Read... [20:18:11]Read from MH i2c: D1 01 00 [20:18:11]MH_I2C_Read... [20:18:11]Read from MH i2c: D1 01 00 F4 05 00 CA [20:18:11]Write to MH i2c: 01 00 00 F5 05 FA [20:18:11]Write i2c OK [20:18:11]MH_I2C_Read... [20:18:12]OFD Sender: No OFD packet to send [20:18:12]*** Cut start [20:18:12]*** Partial cut [20:18:12]*** CUTSNS_PIN = 1 [20:18:12]*** CUTSNS_PIN = 0 [20:18:13]*** Brake cut motor [20:18:13]Read from MH i2c: 01 [20:18:13]MH_I2C_Read... [20:18:13]*** Stop cut motor [20:18:13]*** Cut end [20:18:13]Read from MH i2c: 01 07 00 [20:18:13]MH_I2C_Read... [20:18:13]Read from MH i2c: 01 07 00 F5 05 00 00 00 00 00 FF 0F 0F [20:18:13]process_action close_receipt done [20:18:13]requested_data is exist [20:18:13]produce_requested_data [20:18:13]requested_item fm.sn is exist - process it [20:18:13]wFMCommunicate request_size=4 [20:18:13]MH_SAM_APDU [20:18:13]CAPDU: 80 11 00 00 [20:18:13]Write to MH i2c: E2 08 00 F6 05 80 11 00 00 00 00 00 00 75 [20:18:13]Write i2c OK [20:18:13]MH_I2C_Read... [20:18:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:18:13]Read from MH i2c: E2 [20:18:13]MH_I2C_Read... [20:18:13]Read from MH i2c: E2 17 00 [20:18:13]MH_I2C_Read... [20:18:13]Read from MH i2c: E2 17 00 F6 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 C4 [20:18:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:18:13]wFMCommunicate OK [20:18:13]requested_item fd.num is exist - process it [20:18:13]SAM_PROTO_GetFieldsCounters [20:18:13]wFMCommunicate request_size=4 [20:18:13]MH_SAM_APDU [20:18:13]CAPDU: 80 13 00 00 [20:18:13]Write to MH i2c: E2 08 00 F7 05 80 13 00 00 00 00 00 00 78 [20:18:13]Write i2c OK [20:18:13]MH_I2C_Read... [20:18:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:18:13]Read from MH i2c: E2 [20:18:13]MH_I2C_Read... [20:18:13]Read from MH i2c: E2 62 00 [20:18:13]MH_I2C_Read... [20:18:13]Read from MH i2c: E2 62 00 F7 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 48 70 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 16 [20:18:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 48 70 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 [20:18:13]wFMCommunicate OK [20:18:13]SAM_PROTO_GetFieldsCounters done [20:18:13]requested_item shift.num is exist - process it [20:18:13]requested_item shift.opened is exist - process it [20:18:13]req_shift_opened [20:18:13]FM_GetShiftState [20:18:13]SAM_PROTO_GetShiftState [20:18:13]wFMCommunicate request_size=4 [20:18:13]MH_SAM_APDU [20:18:13]CAPDU: 80 13 01 00 [20:18:13]Write to MH i2c: E2 08 00 F8 05 80 13 01 00 00 00 00 00 7A [20:18:13]Write i2c OK [20:18:13]MH_I2C_Read... [20:18:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:18:13]Read from MH i2c: E2 [20:18:13]MH_I2C_Read... [20:18:13]Read from MH i2c: E2 0E 00 [20:18:13]MH_I2C_Read... [20:18:13]Read from MH i2c: E2 0E 00 F8 05 00 09 00 01 17 88 19 66 00 00 00 00 90 00 A4 [20:18:13]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [20:18:13]wFMCommunicate OK [20:18:13]SAM_PROTO_GetShiftState done [20:18:13]FM_GetShiftState done [20:18:13]req_shift_opened done [20:18:13]requested_item shift.open_date is exist - process it [20:18:13]req_shift_open_date [20:18:13]req_shift_open_date done [20:18:13]produce_requested_data done [20:18:13]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28744,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271} [20:18:13]process_action_free close_receipt [20:18:13]json_value_free [20:18:13]json_value_free done [20:18:13]process_json_proto returns [20:18:13]Send response to host [20:18:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28744,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271}}} [20:18:13]free response buf [20:18:13]execute_script done [20:18:13]execute_script returns [20:18:13]free content buf [20:18:13]Sock 7.Close socket [20:18:13]Sock 7.Thread stoped [20:18:17]OFD Sender: No OFD packet to send [20:18:22]OFD Sender: No OFD packet to send [20:18:27]OFD Sender: No OFD packet to send [20:18:32]OFD Sender: No OFD packet to send [20:18:37]OFD Sender: No OFD packet to send [20:18:42]OFD Sender: No OFD packet to send [20:18:47]OFD Sender: No OFD packet to send [20:18:52]OFD Sender: No OFD packet to send [20:18:57]OFD Sender: No OFD packet to send [20:19:02]OFD Sender: No OFD packet to send [20:19:07]OFD Sender: No OFD packet to send [20:19:12]OFD Sender: No OFD packet to send [20:19:17]OFD Sender: No OFD packet to send [20:19:22]OFD Sender: No OFD packet to send [20:19:27]OFD Sender: No OFD packet to send [20:19:32]OFD Sender: No OFD packet to send [20:19:37]OFD Sender: No OFD packet to send [20:19:42]OFD Sender: No OFD packet to send [20:19:47]OFD Sender: No OFD packet to send [20:19:52]OFD Sender: No OFD packet to send [20:19:57]OFD Sender: No OFD packet to send [20:20:02]OFD Sender: No OFD packet to send [20:20:07]OFD Sender: No OFD packet to send [20:20:12]OFD Sender: No OFD packet to send [20:20:12]accept exits with 9 [20:20:12]New connection [20:20:12]New thread 3066928484 created [20:20:12]Thread 3066785124 joined [20:20:12]Waiting for new connection... [20:20:12] Sock 9.Parse request [20:20:12]Sock 9.Check first char [20:20:12]Sock 9.First char is OK [20:20:12]request: POST /json_proto HTTP/1.0 [20:20:12]Method: POST [20:20:12]URL: /json_proto [20:20:12]Method is POST - this is cgi request [20:20:12]url: /json_proto [20:20:12]query_string will be loaded in cgi processing [20:20:12]execute_cgi json_proto POST (null) [20:20:12]execute_cgi path=json_proto method=POST [20:20:12]POST find Content-Length [20:20:12]Host: 172.17.33.3:8080 [20:20:12]Content-Length: 840 [20:20:12]Content-Type: application/json [20:20:12] [20:20:12]POST finish read [20:20:12]Found Content-Length = 840 [20:20:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347082", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 7.780, "sum" : 500.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:20:12]execute_script... [20:20: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)347082", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 7.780, "sum" : 500.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:20:12]POST & json_proto [20:20:12]process_json_proto [20:20:12]json parsed OK: [20:20:12]protocol is kg_v1.0 [20:20:12]action value=close_receipt [20:20:12]process_action close_receipt [20:20:12]cmd_close_receipt [20:20:12]MH_GetDate [20:20:12]Write to MH i2c: F0 00 00 F9 05 ED [20:20:12]Write i2c OK [20:20:12]MH_I2C_Read... [20:20:12]Read from MH i2c: F0 [20:20:12]MH_I2C_Read... [20:20:12]Read from MH i2c: F0 09 00 [20:20:12]MH_I2C_Read... [20:20:12]Read from MH i2c: F0 09 00 F9 05 00 7D 97 19 66 23 5B 8F 65 FB [20:20:12]GetLastDocTimeStamp 1712953090 [20:20:12]current date 1712953213 [20:20:12]FM_GetShiftState [20:20:12]SAM_PROTO_GetShiftState [20:20:12]wFMCommunicate request_size=4 [20:20:12]MH_SAM_APDU [20:20:12]CAPDU: 80 13 01 00 [20:20:12]Write to MH i2c: E2 08 00 FA 05 80 13 01 00 00 00 00 00 7C [20:20:12]Write i2c OK [20:20:12]MH_I2C_Read... [20:20:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:20:12]Read from MH i2c: E2 [20:20:12]MH_I2C_Read... [20:20:12]Read from MH i2c: E2 0E 00 [20:20:12]MH_I2C_Read... [20:20:12]Read from MH i2c: E2 0E 00 FA 05 00 09 00 01 17 88 19 66 00 00 00 00 90 00 A6 [20:20:12]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [20:20:12]wFMCommunicate OK [20:20:12]SAM_PROTO_GetShiftState done [20:20:12]FM_GetShiftState done [20:20:12]opened in 1712949271 [20:20:12]opened+sec_in_day 1713035671 [20:20:12]quantity*price = 50025 [20:20:12]sum+1 = 50026 [20:20:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.25 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 0.00 Безнал.: 500.25 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 19 12.04.2024 20:20 Смена: 114 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 28745 ФПД: 222306735956026 1/tax-web-control/client/api/v1/ticket?date=20240412T202013&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28745&fm=222306735956026&tin=02508201610067®Number=0000138879044617&sum=50025 [20:20:13]StoreToDocumentArchive [20:20:13]shift 114 fd 28745 [20:20:13]save to /storage/0114/doc_00028745 [20:20:13]save last doc name /storage/0114/doc_00028745 to /storage/kkm_last_doc_name [20:20:13]save OK [20:20:13]Clear old archive folders... [20:20:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:20:13]tlvbuf is 0120EC30 [20:20:13]SAM_PROTO_ClearQueue [20:20:13]wFMCommunicate request_size=4 [20:20:13]MH_SAM_APDU [20:20:13]CAPDU: 80 09 00 00 [20:20:13]Write to MH i2c: E2 08 00 07 06 80 09 00 00 00 00 00 00 7F [20:20:13]Write i2c OK [20:20:13]MH_I2C_Read... [20:20:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:20:13]Read from MH i2c: E2 [20:20:13]MH_I2C_Read... [20:20:13]Read from MH i2c: E2 03 00 [20:20:13]MH_I2C_Read... [20:20:13]Read from MH i2c: E2 03 00 07 06 00 90 00 81 [20:20:13]RAPDU: 90 00 [20:20:13]wFMCommunicate OK [20:20:13]SAM_PROTO_ClearQueue done [20:20:13]KKMCreateOFDPacket [20:20:13]OFDProtocolAddRootSTLVToBuf [20:20:13]FM_MakeSignedData [20:20:13]FM_MakeSignedData [20:20:13]SAM_PROTO_SignData [20:20:13]wFMCommunicate request_size=4 [20:20:13]MH_SAM_APDU [20:20:13]CAPDU: 80 0D 01 02 [20:20:13]Write to MH i2c: E2 08 00 08 06 80 0D 01 02 00 00 00 00 87 [20:20:13]Write i2c OK [20:20:13]MH_I2C_Read... [20:20:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:20:14]Read from MH i2c: E2 [20:20:14]MH_I2C_Read... [20:20:14]Read from MH i2c: E2 03 00 [20:20:14]MH_I2C_Read... [20:20:14]Read from MH i2c: E2 03 00 08 06 00 90 00 82 [20:20:14]RAPDU: 90 00 [20:20:14]wFMCommunicate OK [20:20:14]wFMCommunicate request_size=255 [20:20:14]MH_SAM_APDU [20:20:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 69 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 7D 97 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 49 70 00 00 35 04 06 00 CA [20:20:14]Write to MH i2c: E2 02 01 09 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 69 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 7D 97 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 49 70 00 00 35 04 06 00 CA 00 00 16 [20:20:14]Write i2c OK [20:20:14]MH_I2C_Read... [20:20:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:20:14]Read from MH i2c: E2 [20:20:14]MH_I2C_Read... [20:20:14]Read from MH i2c: E2 03 00 [20:20:14]MH_I2C_Read... [20:20:14]Read from MH i2c: E2 03 00 09 06 00 90 00 83 [20:20:14]RAPDU: 90 00 [20:20:14]wFMCommunicate OK [20:20:14]wFMCommunicate request_size=10 [20:20:14]MH_SAM_APDU [20:20:14]CAPDU: 80 0D 02 02 05 2F D2 07 20 3A [20:20:14]Write to MH i2c: E2 0D 00 0A 06 80 0D 02 02 05 00 2F D2 07 20 3A 00 00 F6 [20:20:14]Write i2c OK [20:20:14]MH_I2C_Read... [20:20:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:20:14]Read from MH i2c: E2 [20:20:14]MH_I2C_Read... [20:20:14]Read from MH i2c: E2 03 00 [20:20:14]MH_I2C_Read... [20:20:14]Read from MH i2c: E2 03 00 0A 06 00 90 00 84 [20:20:14]RAPDU: 90 00 [20:20:14]wFMCommunicate OK [20:20:14]wFMCommunicate request_size=4 [20:20:14]MH_SAM_APDU [20:20:14]CAPDU: 80 0D 03 02 [20:20:14]Write to MH i2c: E2 08 00 0B 06 80 0D 03 02 00 00 00 00 8C [20:20:14]Write i2c OK [20:20:14]MH_I2C_Read... [20:20:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:20:14]Read from MH i2c: E2 [20:20:14]MH_I2C_Read... [20:20:14]Read from MH i2c: E2 0B 00 [20:20:14]MH_I2C_Read... [20:20:14]Read from MH i2c: E2 0B 00 0B 06 00 E1 98 38 99 53 D0 6D D6 90 00 3D [20:20:14]RAPDU: E1 98 38 99 53 D0 6D D6 90 00 [20:20:14]wFMCommunicate OK [20:20:14]SAM_PROTO_SignData done [20:20:14]FM_MakeSignedData done [20:20:14]CreateOFDProtocolMessage [20:20:14]wFMCommunicate request_size=4 [20:20:14]MH_SAM_APDU [20:20:14]CAPDU: 80 11 00 00 [20:20:14]Write to MH i2c: E2 08 00 0C 06 80 11 00 00 00 00 00 00 8C [20:20:14]Write i2c OK [20:20:14]MH_I2C_Read... [20:20:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:20:14]Read from MH i2c: E2 [20:20:14]MH_I2C_Read... [20:20:14]Read from MH i2c: E2 17 00 [20:20:14]MH_I2C_Read... [20:20:14]Read from MH i2c: E2 17 00 0C 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 DB [20:20:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:20:14]wFMCommunicate OK [20:20:14]CreateOFDProtocolMessage done [20:20:14]OFDSenderStorePacket 28745 [20:20:14]StoreOFDPacket docnum=28745 [20:20:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 70 D5 07 01 62 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 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 69 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 7D 97 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 49 70 00 00 35 04 06 00 CA 2F D2 07 20 3A E1 98 38 99 53 D0 6D D6 [20:20:14]CheckFolder [20:20:14]dirname=/storage/ofd_packets [20:20:14]CheckFolder done [20:20:14]ProducePacketName [20:20:14]name=ofd_packets/00028745 [20:20:14]NVStorageSaveData ofd_packets/00028745 [20:20:14]File name is /storage/ofd_packets/00028745 [20:20:14]Write 301 bytes [20:20:14]NVStorageSaveData done [20:20:14]OFDSenderStorePacket done [20:20:14]KKMCreateOFDPacket done [20:20:14]NVStorageSaveData kkm_last_timestamp [20:20:14]File name is /storage/kkm_last_timestamp [20:20:14]Write 4 bytes [20:20:14]NVStorageSaveData done [20:20:14]ExternCall_PrintAddStr [20:20:14]wPrintStart [20:20:14]Write to MH i2c: 01 00 00 0D 06 13 [20:20:14]Write i2c OK [20:20:14]MH_I2C_Read... [20:20:14]Read from MH i2c: 01 [20:20:14]MH_I2C_Read... [20:20:14]Read from MH i2c: 01 07 00 [20:20:14]MH_I2C_Read... [20:20:14]Read from MH i2c: 01 07 00 0D 06 00 00 00 00 00 FF 0F 28 [20:20:14]RasterBufferAndPrint [20:20:14]line Счет N : (1)347082 [20:20:14]line ИНН: 02508201610067 [20:20:14]line Контрольно-Кассовый Чек [20:20:14]line ПРОДАЖА [20:20:14]line ТРК (МРК, ГНК) : 23 [20:20:14]line Товар: 2710124130 [20:20:14]line Аи-92-К-5 [20:20:14]line 7.780 * 64.30 [20:20:14]line = 500.25 [20:20:14]line НДС 12% НСП 1% [20:20:14]line > о реализуемом товаре [20:20:14]line ИТОГО: 500.25 [20:20:14]line НСП 1% : 4.43 [20:20:14]line НДС 12% : 53.12 [20:20:14]line Наличными: 0.00 [20:20:14]line Безнал.: 500.25 [20:20:14]line Место: АЗС № 108 "Партнер Нефть" [20:20:14]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [20:20:14]line СНО: Общий режим [20:20:14]line Чек 19 12.04.2024 20:20 [20:20:14]line Смена: 114 ФФД: 1.0 [20:20:14]line ЗНМ: 0300000027 [20:20:14]line РНМ: 0000138879044617 [20:20:14]line Версия ККМ: 001 [20:20:14]line Платежная система: АКБ Кыргызстан [20:20:14]line ФМ: 0000000000963154 [20:20:14]line ФД: 28745 [20:20:14]line ФПД: 222306735956026 [20:20:14]line 1/tax-web-control/client/api/v1/ticket?date=20240412T202013&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28745&fm=222306735956026&tin=02508201610067®Number=0000138879044617&sum=50025 [20:20:14]OFD Sender: Processing packet 28745 [packets to send 8, broken 7] [20:20:14]ProducePacketName [20:20:14]name=ofd_packets/00028745 [20:20:14]OFD Sender: To server: pG, [20:20:14]CommunicateWithHost lk.salyk.kg:30040 [20:20:14]ConnectInit lk.salyk.kg [20:20:14]written 0, free lines is 4095 [20:20:14]Connected sock=10 [20:20:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 70 D5 07 01 62 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 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 69 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 7D 97 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 49 70 00 00 35 04 06 00 CA 2F D2 07 20 3A E1 98 38 99 53 D0 6D D6 [20:20:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 EE 77 47 00 99 24 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 49 70 00 00 F4 03 04 00 26 42 19 66 B6 04 01 00 00 F3 6A A2 44 AE AB 6E 21 [20:20:15]CommunicateWithHost err = 0 [20:20:15]CheckOFDResponse [20:20:15]1017 (14) - 77093643461234 [20:20:15]1041 (16) - 0000000000963154 [20:20:15]1040 (4) - 28745 [20:20:15]1012 (4) - 12.04.2024 14:16 [20:20:15]1206 (1) - 0 [20:20:15]OFD Sender: Remove packet 28745 [20:20:15]ProducePacketName [20:20:15]name=ofd_packets/00028745 [20:20:15]NVStorageDeleteData [20:20:15]Write to MH i2c: 01 00 00 36 06 3C [20:20:15]Write i2c OK [20:20:15]MH_I2C_Read... [20:20:15]Read from MH i2c: 01 [20:20:15]MH_I2C_Read... [20:20:15]Read from MH i2c: 01 07 00 [20:20:15]MH_I2C_Read... [20:20:15]Read from MH i2c: 01 07 00 36 06 00 00 00 00 00 EA 0C 39 [20:20:15]RasterBufferAndPrint [20:20:15]line [20:20:15]line [20:20:15]line [20:20:15]line [20:20:15]line [20:20:15]written 0, free lines is 3313 [20:20:15]MH_Cut [20:20:15]Write to MH i2c: D1 01 00 3D 06 01 15 [20:20:15]Write i2c OK [20:20:15]MH_I2C_Read... [20:20:15]Read from MH i2c: D1 [20:20:15]MH_I2C_Read... [20:20:15]Read from MH i2c: D1 01 00 [20:20:15]MH_I2C_Read... [20:20:15]Read from MH i2c: D1 01 00 3D 06 00 14 [20:20:15]Write to MH i2c: 01 00 00 3E 06 44 [20:20:15]Write i2c OK [20:20:15]MH_I2C_Read... [20:20:15]OFD Sender: No OFD packet to send [20:20:16]*** Cut start [20:20:16]*** Partial cut [20:20:16]*** CUTSNS_PIN = 1 [20:20:16]*** CUTSNS_PIN = 0 [20:20:16]*** Brake cut motor [20:20:16]Read from MH i2c: 01 [20:20:16]MH_I2C_Read... [20:20:16]*** Stop cut motor [20:20:16]*** Cut end [20:20:16]Read from MH i2c: 01 07 00 [20:20:16]MH_I2C_Read... [20:20:16]Read from MH i2c: 01 07 00 3E 06 00 00 00 00 00 FF 0F 59 [20:20:16]process_action close_receipt done [20:20:16]requested_data is exist [20:20:16]produce_requested_data [20:20:16]requested_item fm.sn is exist - process it [20:20:16]wFMCommunicate request_size=4 [20:20:16]MH_SAM_APDU [20:20:16]CAPDU: 80 11 00 00 [20:20:16]Write to MH i2c: E2 08 00 3F 06 80 11 00 00 00 00 00 00 BF [20:20:16]Write i2c OK [20:20:16]MH_I2C_Read... [20:20:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:20:16]Read from MH i2c: E2 [20:20:16]MH_I2C_Read... [20:20:16]Read from MH i2c: E2 17 00 [20:20:16]MH_I2C_Read... [20:20:16]Read from MH i2c: E2 17 00 3F 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 0E [20:20:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:20:16]wFMCommunicate OK [20:20:16]requested_item fd.num is exist - process it [20:20:16]SAM_PROTO_GetFieldsCounters [20:20:16]wFMCommunicate request_size=4 [20:20:16]MH_SAM_APDU [20:20:16]CAPDU: 80 13 00 00 [20:20:16]Write to MH i2c: E2 08 00 40 06 80 13 00 00 00 00 00 00 C2 [20:20:16]Write i2c OK [20:20:16]MH_I2C_Read... [20:20:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:20:16]Read from MH i2c: E2 [20:20:16]MH_I2C_Read... [20:20:16]Read from MH i2c: E2 62 00 [20:20:16]MH_I2C_Read... [20:20:16]Read from MH i2c: E2 62 00 40 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 49 70 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 64 [20:20:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 49 70 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 [20:20:16]wFMCommunicate OK [20:20:16]SAM_PROTO_GetFieldsCounters done [20:20:16]requested_item shift.num is exist - process it [20:20:16]requested_item shift.opened is exist - process it [20:20:16]req_shift_opened [20:20:16]FM_GetShiftState [20:20:16]SAM_PROTO_GetShiftState [20:20:16]wFMCommunicate request_size=4 [20:20:16]MH_SAM_APDU [20:20:16]CAPDU: 80 13 01 00 [20:20:16]Write to MH i2c: E2 08 00 41 06 80 13 01 00 00 00 00 00 C4 [20:20:16]Write i2c OK [20:20:16]MH_I2C_Read... [20:20:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:20:16]Read from MH i2c: E2 [20:20:16]MH_I2C_Read... [20:20:16]Read from MH i2c: E2 0E 00 [20:20:16]MH_I2C_Read... [20:20:16]Read from MH i2c: E2 0E 00 41 06 00 09 00 01 17 88 19 66 00 00 00 00 90 00 EE [20:20:16]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [20:20:16]wFMCommunicate OK [20:20:16]SAM_PROTO_GetShiftState done [20:20:16]FM_GetShiftState done [20:20:16]req_shift_opened done [20:20:16]requested_item shift.open_date is exist - process it [20:20:16]req_shift_open_date [20:20:16]req_shift_open_date done [20:20:16]produce_requested_data done [20:20:16]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28745,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271} [20:20:16]process_action_free close_receipt [20:20:16]json_value_free [20:20:16]json_value_free done [20:20:16]process_json_proto returns [20:20:16]Send response to host [20:20:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28745,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271}}} [20:20:16]free response buf [20:20:16]execute_script done [20:20:16]execute_script returns [20:20:16]free content buf [20:20:16]Sock 9.Close socket [20:20:16]Sock 9.Thread stoped [20:20:20]OFD Sender: No OFD packet to send [20:20:25]OFD Sender: No OFD packet to send [20:20:30]OFD Sender: No OFD packet to send [20:20:35]OFD Sender: No OFD packet to send [20:20:40]OFD Sender: No OFD packet to send [20:20:45]OFD Sender: No OFD packet to send [20:20:50]OFD Sender: No OFD packet to send [20:20:55]OFD Sender: No OFD packet to send [20:21:00]OFD Sender: No OFD packet to send [20:21:05]OFD Sender: No OFD packet to send [20:21:10]OFD Sender: No OFD packet to send [20:21:15]OFD Sender: No OFD packet to send [20:21:20]OFD Sender: No OFD packet to send [20:21:25]OFD Sender: No OFD packet to send [20:21:30]OFD Sender: No OFD packet to send [20:21:35]OFD Sender: No OFD packet to send [20:21:40]OFD Sender: No OFD packet to send [20:21:45]OFD Sender: No OFD packet to send [20:21:50]OFD Sender: No OFD packet to send [20:21:55]OFD Sender: No OFD packet to send [20:22:00]OFD Sender: No OFD packet to send [20:22:05]OFD Sender: No OFD packet to send [20:22:10]OFD Sender: No OFD packet to send [20:22:15]OFD Sender: No OFD packet to send [20:22:20]OFD Sender: No OFD packet to send [20:22:25]OFD Sender: No OFD packet to send [20:22:30]OFD Sender: No OFD packet to send [20:22:35]OFD Sender: No OFD packet to send [20:22:40]OFD Sender: No OFD packet to send [20:22:45]OFD Sender: No OFD packet to send [20:22:50]OFD Sender: No OFD packet to send [20:22:55]OFD Sender: No OFD packet to send [20:23:00]OFD Sender: No OFD packet to send [20:23:05]OFD Sender: No OFD packet to send [20:23:10]OFD Sender: No OFD packet to send [20:23:15]OFD Sender: No OFD packet to send [20:23:20]OFD Sender: No OFD packet to send [20:23:25]OFD Sender: No OFD packet to send [20:23:30]OFD Sender: No OFD packet to send [20:23:35]OFD Sender: No OFD packet to send [20:23:40]OFD Sender: No OFD packet to send [20:23:45]OFD Sender: No OFD packet to send [20:23:50]OFD Sender: No OFD packet to send [20:23:55]OFD Sender: No OFD packet to send [20:24:00]OFD Sender: No OFD packet to send [20:24:03]accept exits with 7 [20:24:03]New connection [20:24:03]New thread 3066785124 created [20:24:03]Thread 3066928484 joined [20:24:03]Waiting for new connection... [20:24:03] Sock 7.Parse request [20:24:03]Sock 7.Check first char [20:24:03]Sock 7.First char is OK [20:24:03]request: POST /json_proto HTTP/1.0 [20:24:03]Method: POST [20:24:03]URL: /json_proto [20:24:03]Method is POST - this is cgi request [20:24:03]url: /json_proto [20:24:03]query_string will be loaded in cgi processing [20:24:03]execute_cgi json_proto POST (null) [20:24:03]execute_cgi path=json_proto method=POST [20:24:03]POST find Content-Length [20:24:03]Host: 172.17.33.3:8080 [20:24:03]Content-Length: 1198 [20:24:03]Content-Type: application/json [20:24:03] [20:24:03]POST finish read [20:24:03]Found Content-Length = 1198 [20:24:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0440\u044B\u0431\u0430\u0435\u0432 \u042D. \u000A\u0421\u0447\u0435\u0442 N : (1)347083\u000A12.04.2024 20:05\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 41.440 x 72.40\u000A\u0418\u0422\u041E\u0413: 3000.26\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3778289;3778288;3792846\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:24:03]execute_script... [20:24:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0440\u044B\u0431\u0430\u0435\u0432 \u042D. \u000A\u0421\u0447\u0435\u0442 N : (1)347083\u000A12.04.2024 20:05\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 41.440 x 72.40\u000A\u0418\u0422\u041E\u0413: 3000.26\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3778289;3778288;3792846\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:24:03]POST & json_proto [20:24:03]process_json_proto [20:24:03]json parsed OK: [20:24:03]protocol is kg_v1.0 [20:24:03]action value=print_text [20:24:03]process_action print_text [20:24:03]cmd_print_text [20:24:03]ExternCall_PrintAddStr [20:24:03]wPrintStart [20:24:03]Write to MH i2c: 01 00 00 42 06 48 [20:24:03]Write i2c OK [20:24:03]MH_I2C_Read... [20:24:03]Read from MH i2c: 01 [20:24:03]MH_I2C_Read... [20:24:03]Read from MH i2c: 01 07 00 [20:24:03]MH_I2C_Read... [20:24:03]Read from MH i2c: 01 07 00 42 06 00 00 00 00 00 FF 0F 5D [20:24:03]RasterBufferAndPrint [20:24:03]line *****ТОВАРНЫЙ ЧЕК***** [20:24:03]line АЗС 108 [20:24:03]line Партнер нефть [20:24:03]line 02508201610067 [20:24:03]line Кассир : Сарыбаев Э. [20:24:03]line Счет N : (1)347083 [20:24:03]line 12.04.2024 20:05 [20:24:03]line ПРОДАЖА [20:24:03]line ТРК (МРК, ГНК): 11 [20:24:03]line Вид ГСМ : 2710194210 [20:24:03]line ДТ-К-5 [20:24:03]line 41.440 x 72.40 [20:24:03]line ИТОГ: 3000.26 [20:24:03]line Тип оплаты: Талоны: Партнер нефть [20:24:03]line 3778289;3778288;3792846 [20:24:03]line ______________________ [20:24:03]line (подпись) [20:24:03]written 0, free lines is 4095 [20:24:03]Write to MH i2c: 01 00 00 56 06 5C [20:24:03]Write i2c OK [20:24:03]MH_I2C_Read... [20:24:03]Read from MH i2c: 01 [20:24:03]MH_I2C_Read... [20:24:03]Read from MH i2c: 01 07 00 [20:24:03]MH_I2C_Read... [20:24:03]Read from MH i2c: 01 07 00 56 06 00 00 00 00 00 1C 0E 8D [20:24:03]RasterBufferAndPrint [20:24:03]line [20:24:03]line [20:24:03]line [20:24:03]line [20:24:03]line [20:24:03]written 0, free lines is 3614 [20:24:03]MH_Cut [20:24:03]Write to MH i2c: D1 01 00 5D 06 01 35 [20:24:03]Write i2c OK [20:24:03]MH_I2C_Read... [20:24:03]Read from MH i2c: D1 [20:24:03]MH_I2C_Read... [20:24:03]Read from MH i2c: D1 01 00 [20:24:03]MH_I2C_Read... [20:24:03]Read from MH i2c: D1 01 00 5D 06 00 34 [20:24:03]Write to MH i2c: 01 00 00 5E 06 64 [20:24:03]Write i2c OK [20:24:03]MH_I2C_Read... [20:24:04]*** Cut start [20:24:04]*** Partial cut [20:24:04]*** CUTSNS_PIN = 1 [20:24:04]*** CUTSNS_PIN = 0 [20:24:04]*** Brake cut motor [20:24:04]Read from MH i2c: 01 [20:24:04]MH_I2C_Read... [20:24:04]*** Stop cut motor [20:24:04]*** Cut end [20:24:04]Read from MH i2c: 01 07 00 [20:24:04]MH_I2C_Read... [20:24:04]Read from MH i2c: 01 07 00 5E 06 00 00 00 00 00 FF 0F 79 [20:24:04]process_action print_text done [20:24:04]requested_data is exist [20:24:04]produce_requested_data [20:24:04]requested_item fm.sn is exist - process it [20:24:04]wFMCommunicate request_size=4 [20:24:04]MH_SAM_APDU [20:24:04]CAPDU: 80 11 00 00 [20:24:04]Write to MH i2c: E2 08 00 5F 06 80 11 00 00 00 00 00 00 DF [20:24:04]Write i2c OK [20:24:04]MH_I2C_Read... [20:24:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:24:04]Read from MH i2c: E2 [20:24:04]MH_I2C_Read... [20:24:04]Read from MH i2c: E2 17 00 [20:24:04]MH_I2C_Read... [20:24:04]Read from MH i2c: E2 17 00 5F 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 2E [20:24:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:24:04]wFMCommunicate OK [20:24:04]requested_item fd.num is exist - process it [20:24:04]SAM_PROTO_GetFieldsCounters [20:24:04]wFMCommunicate request_size=4 [20:24:04]MH_SAM_APDU [20:24:04]CAPDU: 80 13 00 00 [20:24:04]Write to MH i2c: E2 08 00 60 06 80 13 00 00 00 00 00 00 E2 [20:24:04]Write i2c OK [20:24:04]MH_I2C_Read... [20:24:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:24:04]Read from MH i2c: E2 [20:24:04]MH_I2C_Read... [20:24:04]Read from MH i2c: E2 62 00 [20:24:04]MH_I2C_Read... [20:24:04]Read from MH i2c: E2 62 00 60 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 49 70 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 84 [20:24:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 49 70 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 [20:24:04]wFMCommunicate OK [20:24:04]SAM_PROTO_GetFieldsCounters done [20:24:04]requested_item shift.num is exist - process it [20:24:04]requested_item shift.opened is exist - process it [20:24:04]req_shift_opened [20:24:04]FM_GetShiftState [20:24:04]SAM_PROTO_GetShiftState [20:24:04]wFMCommunicate request_size=4 [20:24:04]MH_SAM_APDU [20:24:04]CAPDU: 80 13 01 00 [20:24:04]Write to MH i2c: E2 08 00 61 06 80 13 01 00 00 00 00 00 E4 [20:24:04]Write i2c OK [20:24:04]MH_I2C_Read... [20:24:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:24:04]Read from MH i2c: E2 [20:24:04]MH_I2C_Read... [20:24:04]Read from MH i2c: E2 0E 00 [20:24:04]MH_I2C_Read... [20:24:04]Read from MH i2c: E2 0E 00 61 06 00 09 00 01 17 88 19 66 00 00 00 00 90 00 0E [20:24:04]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [20:24:04]wFMCommunicate OK [20:24:04]SAM_PROTO_GetShiftState done [20:24:04]FM_GetShiftState done [20:24:04]req_shift_opened done [20:24:04]requested_item shift.open_date is exist - process it [20:24:04]req_shift_open_date [20:24:04]req_shift_open_date done [20:24:04]produce_requested_data done [20:24:04]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28745,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271} [20:24:04]process_action_free print_text [20:24:04]json_value_free [20:24:04]json_value_free done [20:24:04]process_json_proto returns [20:24:04]Send response to host [20:24:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28745,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271}}} [20:24:04]free response buf [20:24:04]execute_script done [20:24:04]execute_script returns [20:24:04]free content buf [20:24:04]Sock 7.Close socket [20:24:04]Sock 7.Thread stoped [20:24:05]OFD Sender: No OFD packet to send [20:24:10]OFD Sender: No OFD packet to send [20:24:15]OFD Sender: No OFD packet to send [20:24:20]OFD Sender: No OFD packet to send [20:24:25]accept exits with 9 [20:24:25]New connection [20:24:25]New thread 3066928484 created [20:24:25]Thread 3066785124 joined [20:24:25]Waiting for new connection... [20:24:25] Sock 9.Parse request [20:24:25]Sock 9.Check first char [20:24:25]Sock 9.First char is OK [20:24:25]request: POST /json_proto HTTP/1.0 [20:24:25]Method: POST [20:24:25]URL: /json_proto [20:24:25]Method is POST - this is cgi request [20:24:25]url: /json_proto [20:24:25]query_string will be loaded in cgi processing [20:24:25]execute_cgi json_proto POST (null) [20:24:25]execute_cgi path=json_proto method=POST [20:24:25]POST find Content-Length [20:24:25]Host: 172.17.33.3:8080 [20:24:25]Content-Length: 685 [20:24:25]Content-Type: application/json [20:24:25] [20:24:25]POST finish read [20:24:25]Found Content-Length = 685 [20:24:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347084", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 30.400, "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" ] } } [20:24:25]execute_script... [20:24: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)347084", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 30.400, "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" ] } } [20:24:25]POST & json_proto [20:24:25]process_json_proto [20:24:25]json parsed OK: [20:24:25]protocol is kg_v1.0 [20:24:25]action value=close_receipt [20:24:25]process_action close_receipt [20:24:25]cmd_close_receipt [20:24:25]MH_GetDate [20:24:25]Write to MH i2c: F0 00 00 62 06 57 [20:24:25]Write i2c OK [20:24:25]MH_I2C_Read... [20:24:25]Read from MH i2c: F0 [20:24:25]MH_I2C_Read... [20:24:25]Read from MH i2c: F0 09 00 [20:24:25]MH_I2C_Read... [20:24:25]Read from MH i2c: F0 09 00 62 06 00 7A 98 19 66 23 5B 8F 65 63 [20:24:25]GetLastDocTimeStamp 1712953213 [20:24:25]current date 1712953466 [20:24:25]FM_GetShiftState [20:24:25]SAM_PROTO_GetShiftState [20:24:25]wFMCommunicate request_size=4 [20:24:25]MH_SAM_APDU [20:24:25]CAPDU: 80 13 01 00 [20:24:25]Write to MH i2c: E2 08 00 63 06 80 13 01 00 00 00 00 00 E6 [20:24:25]Write i2c OK [20:24:25]MH_I2C_Read... [20:24:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:24:25]Read from MH i2c: E2 [20:24:25]MH_I2C_Read... [20:24:25]Read from MH i2c: E2 0E 00 [20:24:25]MH_I2C_Read... [20:24:25]Read from MH i2c: E2 0E 00 63 06 00 09 00 01 17 88 19 66 00 00 00 00 90 00 10 [20:24:25]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [20:24:25]wFMCommunicate OK [20:24:25]SAM_PROTO_GetShiftState done [20:24:25]FM_GetShiftState done [20:24:25]opened in 1712949271 [20:24:25]opened+sec_in_day 1713035671 [20:24:25]quantity*price = 100016 [20:24:25]sum+1 = 100017 [20:24:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 20 12.04.2024 20:24 Смена: 114 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28746 ФПД: 70536196678252 1/tax-web-control/client/api/v1/ticket?date=20240412T202426&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28746&fm=70536196678252&tin=02508201610067®Number=0000138879044617&sum=100000 [20:24:26]StoreToDocumentArchive [20:24:26]shift 114 fd 28746 [20:24:26]save to /storage/0114/doc_00028746 [20:24:26]save last doc name /storage/0114/doc_00028746 to /storage/kkm_last_doc_name [20:24:26]save OK [20:24:26]Clear old archive folders... [20:24:26]ProcessDocumentItem done err = 0, tmpTLVsize=250 [20:24:26]tlvbuf is 0120EAA0 [20:24:26]SAM_PROTO_ClearQueue [20:24:26]wFMCommunicate request_size=4 [20:24:26]MH_SAM_APDU [20:24:26]CAPDU: 80 09 00 00 [20:24:26]Write to MH i2c: E2 08 00 70 06 80 09 00 00 00 00 00 00 E8 [20:24:26]Write i2c OK [20:24:26]MH_I2C_Read... [20:24:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:24:26]Read from MH i2c: E2 [20:24:26]MH_I2C_Read... [20:24:26]Read from MH i2c: E2 03 00 [20:24:26]MH_I2C_Read... [20:24:26]Read from MH i2c: E2 03 00 70 06 00 90 00 EA [20:24:26]RAPDU: 90 00 [20:24:26]wFMCommunicate OK [20:24:26]SAM_PROTO_ClearQueue done [20:24:26]KKMCreateOFDPacket [20:24:26]OFDProtocolAddRootSTLVToBuf [20:24:26]FM_MakeSignedData [20:24:26]FM_MakeSignedData [20:24:26]SAM_PROTO_SignData [20:24:26]wFMCommunicate request_size=4 [20:24:26]MH_SAM_APDU [20:24:26]CAPDU: 80 0D 01 02 [20:24:26]Write to MH i2c: E2 08 00 71 06 80 0D 01 02 00 00 00 00 F0 [20:24:26]Write i2c OK [20:24:26]MH_I2C_Read... [20:24:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:24:26]Read from MH i2c: E2 [20:24:26]MH_I2C_Read... [20:24:26]Read from MH i2c: E2 03 00 [20:24:26]MH_I2C_Read... [20:24:26]Read from MH i2c: E2 03 00 71 06 00 90 00 EB [20:24:26]RAPDU: 90 00 [20:24:26]wFMCommunicate OK [20:24:26]wFMCommunicate request_size=255 [20:24:26]MH_SAM_APDU [20:24:26]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 DA 0C 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 14 00 00 00 F4 03 04 00 7A 98 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4A 70 00 00 35 04 06 00 40 26 [20:24:26]Write to MH i2c: E2 02 01 72 06 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 DA 0C 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 14 00 00 00 F4 03 04 00 7A 98 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4A 70 00 00 35 04 06 00 40 26 00 00 BD [20:24:26]Write i2c OK [20:24:26]MH_I2C_Read... [20:24:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:24:26]Read from MH i2c: E2 [20:24:26]MH_I2C_Read... [20:24:26]Read from MH i2c: E2 03 00 [20:24:26]MH_I2C_Read... [20:24:26]Read from MH i2c: E2 03 00 72 06 00 90 00 EC [20:24:26]RAPDU: 90 00 [20:24:26]wFMCommunicate OK [20:24:26]wFMCommunicate request_size=9 [20:24:26]MH_SAM_APDU [20:24:26]CAPDU: 80 0D 02 02 04 FC F2 62 6C [20:24:26]Write to MH i2c: E2 0C 00 73 06 80 0D 02 02 04 00 FC F2 62 6C 00 00 B7 [20:24:26]Write i2c OK [20:24:26]MH_I2C_Read... [20:24:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:24:26]Read from MH i2c: E2 [20:24:26]MH_I2C_Read... [20:24:26]Read from MH i2c: E2 03 00 [20:24:26]MH_I2C_Read... [20:24:26]Read from MH i2c: E2 03 00 73 06 00 90 00 ED [20:24:26]RAPDU: 90 00 [20:24:26]wFMCommunicate OK [20:24:26]wFMCommunicate request_size=4 [20:24:26]MH_SAM_APDU [20:24:26]CAPDU: 80 0D 03 02 [20:24:26]Write to MH i2c: E2 08 00 74 06 80 0D 03 02 00 00 00 00 F5 [20:24:26]Write i2c OK [20:24:26]MH_I2C_Read... [20:24:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:24:27]Read from MH i2c: E2 [20:24:27]MH_I2C_Read... [20:24:27]Read from MH i2c: E2 0B 00 [20:24:27]MH_I2C_Read... [20:24:27]Read from MH i2c: E2 0B 00 74 06 00 82 83 4F 03 F6 D5 F4 6E 90 00 7A [20:24:27]RAPDU: 82 83 4F 03 F6 D5 F4 6E 90 00 [20:24:27]wFMCommunicate OK [20:24:27]SAM_PROTO_SignData done [20:24:27]FM_MakeSignedData done [20:24:27]CreateOFDProtocolMessage [20:24:27]wFMCommunicate request_size=4 [20:24:27]MH_SAM_APDU [20:24:27]CAPDU: 80 11 00 00 [20:24:27]Write to MH i2c: E2 08 00 75 06 80 11 00 00 00 00 00 00 F5 [20:24:27]Write i2c OK [20:24:27]MH_I2C_Read... [20:24:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:24:27]Read from MH i2c: E2 [20:24:27]MH_I2C_Read... [20:24:27]Read from MH i2c: E2 17 00 [20:24:27]MH_I2C_Read... [20:24:27]Read from MH i2c: E2 17 00 75 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 44 [20:24:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:24:27]wFMCommunicate OK [20:24:27]CreateOFDProtocolMessage done [20:24:27]OFDSenderStorePacket 28746 [20:24:27]StoreOFDPacket docnum=28746 [20:24:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 89 F5 06 01 01 A4 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 DA 0C 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 14 00 00 00 F4 03 04 00 7A 98 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4A 70 00 00 35 04 06 00 40 26 FC F2 62 6C 82 83 4F 03 F6 D5 F4 6E [20:24:27]CheckFolder [20:24:27]dirname=/storage/ofd_packets [20:24:27]CheckFolder done [20:24:27]ProducePacketName [20:24:27]name=ofd_packets/00028746 [20:24:27]NVStorageSaveData ofd_packets/00028746 [20:24:27]File name is /storage/ofd_packets/00028746 [20:24:27]Write 300 bytes [20:24:27]NVStorageSaveData done [20:24:27]OFDSenderStorePacket done [20:24:27]KKMCreateOFDPacket done [20:24:27]NVStorageSaveData kkm_last_timestamp [20:24:27]File name is /storage/kkm_last_timestamp [20:24:27]Write 4 bytes [20:24:27]NVStorageSaveData done [20:24:27]ExternCall_PrintAddStr [20:24:27]wPrintStart [20:24:27]Write to MH i2c: 01 00 00 76 06 7C [20:24:27]Write i2c OK [20:24:27]MH_I2C_Read... [20:24:27]Read from MH i2c: 01 [20:24:27]MH_I2C_Read... [20:24:27]Read from MH i2c: 01 07 00 [20:24:27]MH_I2C_Read... [20:24:27]Read from MH i2c: 01 07 00 76 06 00 00 00 00 00 FF 0F 91 [20:24:27]RasterBufferAndPrint [20:24:27]line Счет N : (1)347084 [20:24:27]line ИНН: 02508201610067 [20:24:27]line Контрольно-Кассовый Чек [20:24:27]line ПРОДАЖА [20:24:27]line ТРК (МРК, ГНК) : 71 [20:24:27]line Товар: 2711129700 [20:24:27]line ГАЗ-К-5 [20:24:27]line 30.400 * 32.90 [20:24:27]line = 1000.16 [20:24:27]line НДС 12% НСП 1% [20:24:27]line > о реализуемом товаре [20:24:27]line ОКРУГЛЕНИЕ: -0.16 [20:24:27]line ИТОГО: 1000.00 [20:24:27]line Внесено: 1000.00 [20:24:27]line СДАЧА: 0.00 [20:24:27]line НСП 1% : 8.85 [20:24:27]line НДС 12% : 106.21 [20:24:27]line Наличными: 1000.00 [20:24:27]line Безнал.: 0.00 [20:24:27]line Место: АЗС № 108 "Партнер Нефть" [20:24:27]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [20:24:27]line СНО: Общий режим [20:24:27]line Чек 20 12.04.2024 20:24 [20:24:27]line Смена: 114 ФФД: 1.0 [20:24:27]line ЗНМ: 0300000027 [20:24:27]line РНМ: 0000138879044617 [20:24:27]line Версия ККМ: 001 [20:24:27]line ФМ: 0000000000963154 [20:24:27]line ФД: 28746 [20:24:27]line ФПД: 70536196678252 [20:24:27]line 1/tax-web-control/client/api/v1/ticket?date=20240412T202426&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28746&fm=70536196678252&tin=02508201610067®Number=0000138879044617&sum=100000 [20:24:27]OFD Sender: Processing packet 28746 [packets to send 8, broken 7] [20:24:27]ProducePacketName [20:24:27]name=ofd_packets/00028746 [20:24:27]OFD Sender: To server: pG, [20:24:27]CommunicateWithHost lk.salyk.kg:30040 [20:24:27]ConnectInit lk.salyk.kg [20:24:27]written 0, free lines is 4095 [20:24:27]Connected sock=10 [20:24:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 89 F5 06 01 01 A4 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 DA 0C 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 14 00 00 00 F4 03 04 00 7A 98 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4A 70 00 00 35 04 06 00 40 26 FC F2 62 6C 82 83 4F 03 F6 D5 F4 6E [20:24:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 BB 3A 47 00 6D D4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4A 70 00 00 F4 03 04 00 23 43 19 66 B6 04 01 00 00 34 CD 5B 25 6F 38 9B 90 [20:24:27]CommunicateWithHost err = 0 [20:24:27]CheckOFDResponse [20:24:27]1017 (14) - 77093643461234 [20:24:27]1041 (16) - 0000000000963154 [20:24:27]1040 (4) - 28746 [20:24:27]1012 (4) - 12.04.2024 14:20 [20:24:27]1206 (1) - 0 [20:24:27]OFD Sender: Remove packet 28746 [20:24:27]ProducePacketName [20:24:27]name=ofd_packets/00028746 [20:24:27]NVStorageDeleteData [20:24:27]Write to MH i2c: 01 00 00 A0 06 A6 [20:24:27]Write i2c OK [20:24:27]MH_I2C_Read... [20:24:27]Read from MH i2c: 01 [20:24:27]MH_I2C_Read... [20:24:27]Read from MH i2c: 01 07 00 [20:24:27]MH_I2C_Read... [20:24:27]Read from MH i2c: 01 07 00 A0 06 00 00 00 00 00 C8 0C 81 [20:24:27]RasterBufferAndPrint [20:24:27]line [20:24:27]line [20:24:27]line [20:24:27]line [20:24:27]line [20:24:27]written 0, free lines is 3276 [20:24:27]MH_Cut [20:24:27]Write to MH i2c: D1 01 00 A7 06 01 7F [20:24:27]Write i2c OK [20:24:27]MH_I2C_Read... [20:24:27]Read from MH i2c: D1 [20:24:27]MH_I2C_Read... [20:24:27]Read from MH i2c: D1 01 00 [20:24:27]MH_I2C_Read... [20:24:27]Read from MH i2c: D1 01 00 A7 06 00 7E [20:24:27]Write to MH i2c: 01 00 00 A8 06 AE [20:24:27]Write i2c OK [20:24:27]MH_I2C_Read... [20:24:28]OFD Sender: No OFD packet to send [20:24:28]*** Cut start [20:24:28]*** Partial cut [20:24:28]*** CUTSNS_PIN = 1 [20:24:28]*** CUTSNS_PIN = 0 [20:24:28]*** Brake cut motor [20:24:29]Read from MH i2c: 01 [20:24:29]MH_I2C_Read... [20:24:29]*** Stop cut motor [20:24:29]*** Cut end [20:24:29]Read from MH i2c: 01 07 00 [20:24:29]MH_I2C_Read... [20:24:29]Read from MH i2c: 01 07 00 A8 06 00 00 00 00 00 FF 0F C3 [20:24:29]process_action close_receipt done [20:24:29]requested_data is exist [20:24:29]produce_requested_data [20:24:29]requested_item fm.sn is exist - process it [20:24:29]wFMCommunicate request_size=4 [20:24:29]MH_SAM_APDU [20:24:29]CAPDU: 80 11 00 00 [20:24:29]Write to MH i2c: E2 08 00 A9 06 80 11 00 00 00 00 00 00 29 [20:24:29]Write i2c OK [20:24:29]MH_I2C_Read... [20:24:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:24:29]Read from MH i2c: E2 [20:24:29]MH_I2C_Read... [20:24:29]Read from MH i2c: E2 17 00 [20:24:29]MH_I2C_Read... [20:24:29]Read from MH i2c: E2 17 00 A9 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 78 [20:24:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:24:29]wFMCommunicate OK [20:24:29]requested_item fd.num is exist - process it [20:24:29]SAM_PROTO_GetFieldsCounters [20:24:29]wFMCommunicate request_size=4 [20:24:29]MH_SAM_APDU [20:24:29]CAPDU: 80 13 00 00 [20:24:29]Write to MH i2c: E2 08 00 AA 06 80 13 00 00 00 00 00 00 2C [20:24:29]Write i2c OK [20:24:29]MH_I2C_Read... [20:24:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:24:29]Read from MH i2c: E2 [20:24:29]MH_I2C_Read... [20:24:29]Read from MH i2c: E2 62 00 [20:24:29]MH_I2C_Read... [20:24:29]Read from MH i2c: E2 62 00 AA 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 4A 70 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 D2 [20:24:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 4A 70 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 [20:24:29]wFMCommunicate OK [20:24:29]SAM_PROTO_GetFieldsCounters done [20:24:29]requested_item shift.num is exist - process it [20:24:29]requested_item shift.opened is exist - process it [20:24:29]req_shift_opened [20:24:29]FM_GetShiftState [20:24:29]SAM_PROTO_GetShiftState [20:24:29]wFMCommunicate request_size=4 [20:24:29]MH_SAM_APDU [20:24:29]CAPDU: 80 13 01 00 [20:24:29]Write to MH i2c: E2 08 00 AB 06 80 13 01 00 00 00 00 00 2E [20:24:29]Write i2c OK [20:24:29]MH_I2C_Read... [20:24:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:24:29]Read from MH i2c: E2 [20:24:29]MH_I2C_Read... [20:24:29]Read from MH i2c: E2 0E 00 [20:24:29]MH_I2C_Read... [20:24:29]Read from MH i2c: E2 0E 00 AB 06 00 09 00 01 17 88 19 66 00 00 00 00 90 00 58 [20:24:29]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [20:24:29]wFMCommunicate OK [20:24:29]SAM_PROTO_GetShiftState done [20:24:29]FM_GetShiftState done [20:24:29]req_shift_opened done [20:24:29]requested_item shift.open_date is exist - process it [20:24:29]req_shift_open_date [20:24:29]req_shift_open_date done [20:24:29]produce_requested_data done [20:24:29]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28746,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271} [20:24:29]process_action_free close_receipt [20:24:29]json_value_free [20:24:29]json_value_free done [20:24:29]process_json_proto returns [20:24:29]Send response to host [20:24:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28746,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271}}} [20:24:29]free response buf [20:24:29]execute_script done [20:24:29]execute_script returns [20:24:29]free content buf [20:24:29]Sock 9.Close socket [20:24:29]Sock 9.Thread stoped [20:24:33]OFD Sender: No OFD packet to send [20:24:38]OFD Sender: No OFD packet to send [20:24:43]OFD Sender: No OFD packet to send [20:24:48]OFD Sender: No OFD packet to send [20:24:53]OFD Sender: No OFD packet to send [20:24:58]OFD Sender: No OFD packet to send [20:25:03]OFD Sender: No OFD packet to send [20:25:08]OFD Sender: No OFD packet to send [20:25:13]OFD Sender: No OFD packet to send [20:25:18]OFD Sender: No OFD packet to send [20:25:23]OFD Sender: No OFD packet to send [20:25:28]OFD Sender: No OFD packet to send [20:25:33]OFD Sender: No OFD packet to send [20:25:38]OFD Sender: No OFD packet to send [20:25:43]OFD Sender: No OFD packet to send [20:25:48]OFD Sender: No OFD packet to send [20:25:53]OFD Sender: No OFD packet to send [20:25:58]OFD Sender: No OFD packet to send [20:26:03]OFD Sender: No OFD packet to send [20:26:08]OFD Sender: No OFD packet to send [20:26:13]OFD Sender: No OFD packet to send [20:26:18]OFD Sender: No OFD packet to send [20:26:23]OFD Sender: No OFD packet to send [20:26:28]OFD Sender: No OFD packet to send [20:26:33]OFD Sender: No OFD packet to send [20:26:38]OFD Sender: No OFD packet to send [20:26:43]OFD Sender: No OFD packet to send [20:26:48]OFD Sender: No OFD packet to send [20:26:53]OFD Sender: No OFD packet to send [20:26:58]OFD Sender: No OFD packet to send [20:27:03]OFD Sender: No OFD packet to send [20:27:08]OFD Sender: No OFD packet to send [20:27:13]OFD Sender: No OFD packet to send [20:27:18]OFD Sender: No OFD packet to send [20:27:23]OFD Sender: No OFD packet to send [20:27:28]OFD Sender: No OFD packet to send [20:27:33]OFD Sender: No OFD packet to send [20:27:38]OFD Sender: No OFD packet to send [20:27:43]OFD Sender: No OFD packet to send [20:27:48]OFD Sender: No OFD packet to send [20:27:53]OFD Sender: No OFD packet to send [20:27:58]OFD Sender: No OFD packet to send [20:28:03]OFD Sender: No OFD packet to send [20:28:06]accept exits with 7 [20:28:06]New connection [20:28:06]New thread 3066785124 created [20:28:06]Thread 3066928484 joined [20:28:06]Waiting for new connection... [20:28:06] Sock 7.Parse request [20:28:06]Sock 7.Check first char [20:28:06]Sock 7.First char is OK [20:28:06]request: POST /json_proto HTTP/1.0 [20:28:06]Method: POST [20:28:06]URL: /json_proto [20:28:06]Method is POST - this is cgi request [20:28:06]url: /json_proto [20:28:06]query_string will be loaded in cgi processing [20:28:06]execute_cgi json_proto POST (null) [20:28:06]execute_cgi path=json_proto method=POST [20:28:06]POST find Content-Length [20:28:06]Host: 172.17.33.3:8080 [20:28:06]Content-Length: 1180 [20:28:06]Content-Type: application/json [20:28:06] [20:28:06]POST finish read [20:28:06]Found Content-Length = 1180 [20:28:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0440\u044B\u0431\u0430\u0435\u0432 \u042D. \u000A\u0421\u0447\u0435\u0442 N : (1)347085\u000A12.04.2024 20:09\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 9.670 x 72.40\u000A\u0418\u0422\u041E\u0413: 700.11\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3792846\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:28:06]execute_script... [20:28:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0440\u044B\u0431\u0430\u0435\u0432 \u042D. \u000A\u0421\u0447\u0435\u0442 N : (1)347085\u000A12.04.2024 20:09\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 9.670 x 72.40\u000A\u0418\u0422\u041E\u0413: 700.11\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3792846\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:28:06]POST & json_proto [20:28:06]process_json_proto [20:28:06]json parsed OK: [20:28:06]protocol is kg_v1.0 [20:28:06]action value=print_text [20:28:06]process_action print_text [20:28:06]cmd_print_text [20:28:06]ExternCall_PrintAddStr [20:28:06]wPrintStart [20:28:06]Write to MH i2c: 01 00 00 AC 06 B2 [20:28:06]Write i2c OK [20:28:06]MH_I2C_Read... [20:28:06]Read from MH i2c: 01 [20:28:06]MH_I2C_Read... [20:28:06]Read from MH i2c: 01 07 00 [20:28:06]MH_I2C_Read... [20:28:06]Read from MH i2c: 01 07 00 AC 06 00 00 00 00 00 FF 0F C7 [20:28:06]RasterBufferAndPrint [20:28:06]line *****ТОВАРНЫЙ ЧЕК***** [20:28:06]line АЗС 108 [20:28:06]line Партнер нефть [20:28:06]line 02508201610067 [20:28:06]line Кассир : Сарыбаев Э. [20:28:06]line Счет N : (1)347085 [20:28:06]line 12.04.2024 20:09 [20:28:06]line ПРОДАЖА [20:28:06]line ТРК (МРК, ГНК): 11 [20:28:06]line Вид ГСМ : 2710194210 [20:28:06]line ДТ-К-5 [20:28:06]line 9.670 x 72.40 [20:28:06]line ИТОГ: 700.11 [20:28:06]line Тип оплаты: Талоны: Партнер нефть [20:28:06]line 3792846 [20:28:06]line ______________________ [20:28:06]line (подпись) [20:28:06]written 0, free lines is 4095 [20:28:06]Write to MH i2c: 01 00 00 C0 06 C6 [20:28:06]Write i2c OK [20:28:06]MH_I2C_Read... [20:28:06]Read from MH i2c: 01 [20:28:06]MH_I2C_Read... [20:28:06]Read from MH i2c: 01 07 00 [20:28:06]MH_I2C_Read... [20:28:06]Read from MH i2c: 01 07 00 C0 06 00 00 00 00 00 10 0E EB [20:28:06]RasterBufferAndPrint [20:28:06]line [20:28:06]line [20:28:06]line [20:28:06]line [20:28:06]line [20:28:06]written 0, free lines is 3601 [20:28:06]MH_Cut [20:28:06]Write to MH i2c: D1 01 00 C7 06 01 9F [20:28:06]Write i2c OK [20:28:06]MH_I2C_Read... [20:28:06]Read from MH i2c: D1 [20:28:06]MH_I2C_Read... [20:28:06]Read from MH i2c: D1 01 00 [20:28:06]MH_I2C_Read... [20:28:06]Read from MH i2c: D1 01 00 C7 06 00 9E [20:28:06]Write to MH i2c: 01 00 00 C8 06 CE [20:28:06]Write i2c OK [20:28:06]MH_I2C_Read... [20:28:06]*** Cut start [20:28:06]*** Partial cut [20:28:06]*** CUTSNS_PIN = 1 [20:28:06]*** CUTSNS_PIN = 0 [20:28:07]*** Brake cut motor [20:28:07]Read from MH i2c: 01 [20:28:07]MH_I2C_Read... [20:28:07]*** Stop cut motor [20:28:07]*** Cut end [20:28:07]Read from MH i2c: 01 07 00 [20:28:07]MH_I2C_Read... [20:28:07]Read from MH i2c: 01 07 00 C8 06 00 00 00 00 00 FF 0F E3 [20:28:07]process_action print_text done [20:28:07]requested_data is exist [20:28:07]produce_requested_data [20:28:07]requested_item fm.sn is exist - process it [20:28:07]wFMCommunicate request_size=4 [20:28:07]MH_SAM_APDU [20:28:07]CAPDU: 80 11 00 00 [20:28:07]Write to MH i2c: E2 08 00 C9 06 80 11 00 00 00 00 00 00 49 [20:28:07]Write i2c OK [20:28:07]MH_I2C_Read... [20:28:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:28:07]Read from MH i2c: E2 [20:28:07]MH_I2C_Read... [20:28:07]Read from MH i2c: E2 17 00 [20:28:07]MH_I2C_Read... [20:28:07]Read from MH i2c: E2 17 00 C9 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 98 [20:28:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:28:07]wFMCommunicate OK [20:28:07]requested_item fd.num is exist - process it [20:28:07]SAM_PROTO_GetFieldsCounters [20:28:07]wFMCommunicate request_size=4 [20:28:07]MH_SAM_APDU [20:28:07]CAPDU: 80 13 00 00 [20:28:07]Write to MH i2c: E2 08 00 CA 06 80 13 00 00 00 00 00 00 4C [20:28:07]Write i2c OK [20:28:07]MH_I2C_Read... [20:28:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:28:07]Read from MH i2c: E2 [20:28:07]MH_I2C_Read... [20:28:07]Read from MH i2c: E2 62 00 [20:28:07]MH_I2C_Read... [20:28:07]Read from MH i2c: E2 62 00 CA 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 4A 70 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 F2 [20:28:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 4A 70 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 [20:28:07]wFMCommunicate OK [20:28:07]SAM_PROTO_GetFieldsCounters done [20:28:07]requested_item shift.num is exist - process it [20:28:07]requested_item shift.opened is exist - process it [20:28:07]req_shift_opened [20:28:07]FM_GetShiftState [20:28:07]SAM_PROTO_GetShiftState [20:28:07]wFMCommunicate request_size=4 [20:28:07]MH_SAM_APDU [20:28:07]CAPDU: 80 13 01 00 [20:28:07]Write to MH i2c: E2 08 00 CB 06 80 13 01 00 00 00 00 00 4E [20:28:07]Write i2c OK [20:28:07]MH_I2C_Read... [20:28:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:28:07]Read from MH i2c: E2 [20:28:07]MH_I2C_Read... [20:28:07]Read from MH i2c: E2 0E 00 [20:28:07]MH_I2C_Read... [20:28:07]Read from MH i2c: E2 0E 00 CB 06 00 09 00 01 17 88 19 66 00 00 00 00 90 00 78 [20:28:07]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [20:28:07]wFMCommunicate OK [20:28:07]SAM_PROTO_GetShiftState done [20:28:07]FM_GetShiftState done [20:28:07]req_shift_opened done [20:28:07]requested_item shift.open_date is exist - process it [20:28:07]req_shift_open_date [20:28:07]req_shift_open_date done [20:28:07]produce_requested_data done [20:28:07]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28746,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271} [20:28:07]process_action_free print_text [20:28:07]json_value_free [20:28:07]json_value_free done [20:28:07]process_json_proto returns [20:28:07]Send response to host [20:28:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28746,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271}}} [20:28:07]free response buf [20:28:07]execute_script done [20:28:07]execute_script returns [20:28:07]free content buf [20:28:07]Sock 7.Close socket [20:28:07]Sock 7.Thread stoped [20:28:08]OFD Sender: No OFD packet to send [20:28:13]OFD Sender: No OFD packet to send [20:28:18]OFD Sender: No OFD packet to send [20:28:23]OFD Sender: No OFD packet to send [20:28:28]OFD Sender: No OFD packet to send [20:28:33]OFD Sender: No OFD packet to send [20:28:38]OFD Sender: No OFD packet to send [20:28:43]OFD Sender: No OFD packet to send [20:28:48]OFD Sender: No OFD packet to send [20:28:53]OFD Sender: No OFD packet to send [20:28:58]OFD Sender: No OFD packet to send [20:29:03]OFD Sender: No OFD packet to send [20:29:08]OFD Sender: No OFD packet to send [20:29:13]OFD Sender: No OFD packet to send [20:29:18]OFD Sender: No OFD packet to send [20:29:23]OFD Sender: No OFD packet to send [20:29:28]OFD Sender: No OFD packet to send [20:29:33]OFD Sender: No OFD packet to send [20:29:38]OFD Sender: No OFD packet to send [20:29:43]OFD Sender: No OFD packet to send [20:29:48]OFD Sender: No OFD packet to send [20:29:53]OFD Sender: No OFD packet to send [20:29:58]OFD Sender: No OFD packet to send [20:30:03]OFD Sender: No OFD packet to send [20:30:08]OFD Sender: No OFD packet to send [20:30:13]OFD Sender: No OFD packet to send [20:30: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:03]OFD Sender: No OFD packet to send [20:41:08]OFD Sender: No OFD packet to send [20:41:13]OFD Sender: No OFD packet to send [20:41:18]OFD Sender: No OFD packet to send [20:41:24]OFD Sender: No OFD packet to send [20:41:29]OFD Sender: No OFD packet to send [20:41:34]OFD Sender: No OFD packet to send [20:41:39]OFD Sender: No OFD packet to send [20:41:44]OFD Sender: No OFD packet to send [20:41:49]OFD Sender: No OFD packet to send [20:41:54]OFD Sender: No OFD packet to send [20:41:59]OFD Sender: No OFD packet to send [20:42:04]OFD Sender: No OFD packet to send [20:42:09]OFD Sender: No OFD packet to send [20:42:14]OFD Sender: No OFD packet to send [20:42:19]OFD Sender: No OFD packet to send [20:42:24]OFD Sender: No OFD packet to send [20:42:29]OFD Sender: No OFD packet to send [20:42:34]OFD Sender: No OFD packet to send [20:42:39]OFD Sender: No OFD packet to send [20:42:44]OFD Sender: No OFD packet to send [20:42:49]OFD Sender: No OFD packet to send [20:42:54]OFD Sender: No OFD packet to send [20:42:59]OFD Sender: No OFD packet to send [20:43:04]OFD Sender: No OFD packet to send [20:43:09]OFD Sender: No OFD packet to send [20:43:14]OFD Sender: No OFD packet to send [20:43:19]OFD Sender: No OFD packet to send [20:43:24]OFD Sender: No OFD packet to send [20:43:29]OFD Sender: No OFD packet to send [20:43:34]OFD Sender: No OFD packet to send [20:43:39]OFD Sender: No OFD packet to send [20:43:44]OFD Sender: No OFD packet to send [20:43:49]OFD Sender: No OFD packet to send [20:43:54]OFD Sender: No OFD packet to send [20:43:59]OFD Sender: No OFD packet to send [20:44:04]OFD Sender: No OFD packet to send [20:44:06]accept exits with 9 [20:44:06]New connection [20:44:06]New thread 3066928484 created [20:44:06]Thread 3066785124 joined [20:44:06]Waiting for new connection... [20:44:06] Sock 9.Parse request [20:44:06]Sock 9.Check first char [20:44:06]Sock 9.First char is OK [20:44:06]request: POST /json_proto HTTP/1.0 [20:44:06]Method: POST [20:44:06]URL: /json_proto [20:44:06]Method is POST - this is cgi request [20:44:06]url: /json_proto [20:44:06]query_string will be loaded in cgi processing [20:44:06]execute_cgi json_proto POST (null) [20:44:06]execute_cgi path=json_proto method=POST [20:44:06]POST find Content-Length [20:44:06]Host: 172.17.33.3:8080 [20:44:06]Content-Length: 670 [20:44:06]Content-Type: application/json [20:44:06] [20:44:06]POST finish read [20:44:06]Found Content-Length = 670 [20:44:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347086", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 4.600, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:44:06]execute_script... [20:44: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)347086", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 4.600, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:44:06]POST & json_proto [20:44:06]process_json_proto [20:44:06]json parsed OK: [20:44:06]protocol is kg_v1.0 [20:44:06]action value=close_receipt [20:44:06]process_action close_receipt [20:44:06]cmd_close_receipt [20:44:06]MH_GetDate [20:44:06]Write to MH i2c: F0 00 00 CC 06 C1 [20:44:06]Write i2c OK [20:44:06]MH_I2C_Read... [20:44:06]Read from MH i2c: F0 [20:44:06]MH_I2C_Read... [20:44:06]Read from MH i2c: F0 09 00 [20:44:06]MH_I2C_Read... [20:44:06]Read from MH i2c: F0 09 00 CC 06 00 17 9D 19 66 23 5B 8F 65 6F [20:44:06]GetLastDocTimeStamp 1712953466 [20:44:06]current date 1712954647 [20:44:06]FM_GetShiftState [20:44:06]SAM_PROTO_GetShiftState [20:44:06]wFMCommunicate request_size=4 [20:44:06]MH_SAM_APDU [20:44:06]CAPDU: 80 13 01 00 [20:44:06]Write to MH i2c: E2 08 00 CD 06 80 13 01 00 00 00 00 00 50 [20:44:06]Write i2c OK [20:44:06]MH_I2C_Read... [20:44:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:44:06]Read from MH i2c: E2 [20:44:06]MH_I2C_Read... [20:44:06]Read from MH i2c: E2 0E 00 [20:44:06]MH_I2C_Read... [20:44:06]Read from MH i2c: E2 0E 00 CD 06 00 09 00 01 17 88 19 66 00 00 00 00 90 00 7A [20:44:06]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [20:44:06]wFMCommunicate OK [20:44:06]SAM_PROTO_GetShiftState done [20:44:06]FM_GetShiftState done [20:44:06]opened in 1712949271 [20:44:06]opened+sec_in_day 1713035671 [20:44:06]quantity*price = 30038 [20:44:06]sum+1 = 30039 [20:44:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 21 12.04.2024 20:44 Смена: 114 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28747 ФПД: 255740702696679 1/tax-web-control/client/api/v1/ticket?date=20240412T204407&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28747&fm=255740702696679&tin=02508201610067®Number=0000138879044617&sum=30000 [20:44:07]StoreToDocumentArchive [20:44:07]shift 114 fd 28747 [20:44:07]save to /storage/0114/doc_00028747 [20:44:07]save last doc name /storage/0114/doc_00028747 to /storage/kkm_last_doc_name [20:44:07]save OK [20:44:07]Clear old archive folders... [20:44:07]ProcessDocumentItem done err = 0, tmpTLVsize=252 [20:44:07]tlvbuf is 011B1C40 [20:44:07]SAM_PROTO_ClearQueue [20:44:07]wFMCommunicate request_size=4 [20:44:07]MH_SAM_APDU [20:44:07]CAPDU: 80 09 00 00 [20:44:07]Write to MH i2c: E2 08 00 DA 06 80 09 00 00 00 00 00 00 52 [20:44:07]Write i2c OK [20:44:07]MH_I2C_Read... [20:44:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:44:07]Read from MH i2c: E2 [20:44:07]MH_I2C_Read... [20:44:07]Read from MH i2c: E2 03 00 [20:44:07]MH_I2C_Read... [20:44:07]Read from MH i2c: E2 03 00 DA 06 00 90 00 54 [20:44:07]RAPDU: 90 00 [20:44:07]wFMCommunicate OK [20:44:07]SAM_PROTO_ClearQueue done [20:44:07]KKMCreateOFDPacket [20:44:07]OFDProtocolAddRootSTLVToBuf [20:44:07]FM_MakeSignedData [20:44:07]FM_MakeSignedData [20:44:07]SAM_PROTO_SignData [20:44:07]wFMCommunicate request_size=4 [20:44:07]MH_SAM_APDU [20:44:07]CAPDU: 80 0D 01 02 [20:44:07]Write to MH i2c: E2 08 00 DB 06 80 0D 01 02 00 00 00 00 5A [20:44:07]Write i2c OK [20:44:07]MH_I2C_Read... [20:44:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:44:07]Read from MH i2c: E2 [20:44:07]MH_I2C_Read... [20:44:07]Read from MH i2c: E2 03 00 [20:44:07]MH_I2C_Read... [20:44:07]Read from MH i2c: E2 03 00 DB 06 00 90 00 55 [20:44:07]RAPDU: 90 00 [20:44:07]wFMCommunicate OK [20:44:07]wFMCommunicate request_size=255 [20:44:07]MH_SAM_APDU [20:44:07]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 11 00 00 00 00 00 37 04 06 00 82 19 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 15 00 00 00 F4 03 04 00 17 9D 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4B 70 00 00 35 04 06 00 [20:44:07]Write to MH i2c: E2 02 01 DC 06 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 11 00 00 00 00 00 37 04 06 00 82 19 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 15 00 00 00 F4 03 04 00 17 9D 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4B 70 00 00 35 04 06 00 00 00 E6 [20:44:07]Write i2c OK [20:44:07]MH_I2C_Read... [20:44:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:44:07]Read from MH i2c: E2 [20:44:07]MH_I2C_Read... [20:44:07]Read from MH i2c: E2 03 00 [20:44:07]MH_I2C_Read... [20:44:07]Read from MH i2c: E2 03 00 DC 06 00 90 00 56 [20:44:07]RAPDU: 90 00 [20:44:07]wFMCommunicate OK [20:44:07]wFMCommunicate request_size=11 [20:44:07]MH_SAM_APDU [20:44:07]CAPDU: 80 0D 02 02 06 E8 98 45 BD 24 E7 [20:44:07]Write to MH i2c: E2 0E 00 DD 06 80 0D 02 02 06 00 E8 98 45 BD 24 E7 00 00 F6 [20:44:07]Write i2c OK [20:44:07]MH_I2C_Read... [20:44:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:44:07]Read from MH i2c: E2 [20:44:07]MH_I2C_Read... [20:44:07]Read from MH i2c: E2 03 00 [20:44:07]MH_I2C_Read... [20:44:07]Read from MH i2c: E2 03 00 DD 06 00 90 00 57 [20:44:07]RAPDU: 90 00 [20:44:07]wFMCommunicate OK [20:44:07]wFMCommunicate request_size=4 [20:44:07]MH_SAM_APDU [20:44:07]CAPDU: 80 0D 03 02 [20:44:07]Write to MH i2c: E2 08 00 DE 06 80 0D 03 02 00 00 00 00 5F [20:44:07]Write i2c OK [20:44:07]MH_I2C_Read... [20:44:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:44:07]Read from MH i2c: E2 [20:44:07]MH_I2C_Read... [20:44:07]Read from MH i2c: E2 0B 00 [20:44:07]MH_I2C_Read... [20:44:07]Read from MH i2c: E2 0B 00 DE 06 00 E7 F9 8F AF 40 49 6B 92 90 00 04 [20:44:07]RAPDU: E7 F9 8F AF 40 49 6B 92 90 00 [20:44:07]wFMCommunicate OK [20:44:07]SAM_PROTO_SignData done [20:44:07]FM_MakeSignedData done [20:44:07]CreateOFDProtocolMessage [20:44:07]wFMCommunicate request_size=4 [20:44:07]MH_SAM_APDU [20:44:07]CAPDU: 80 11 00 00 [20:44:07]Write to MH i2c: E2 08 00 DF 06 80 11 00 00 00 00 00 00 5F [20:44:07]Write i2c OK [20:44:07]MH_I2C_Read... [20:44:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:44:07]Read from MH i2c: E2 [20:44:07]MH_I2C_Read... [20:44:07]Read from MH i2c: E2 17 00 [20:44:07]MH_I2C_Read... [20:44:07]Read from MH i2c: E2 17 00 DF 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 AE [20:44:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:44:07]wFMCommunicate OK [20:44:07]CreateOFDProtocolMessage done [20:44:07]OFDSenderStorePacket 28747 [20:44:07]StoreOFDPacket docnum=28747 [20:44:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 19 55 08 01 AB 86 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 11 00 00 00 00 00 37 04 06 00 82 19 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 15 00 00 00 F4 03 04 00 17 9D 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4B 70 00 00 35 04 06 00 E8 98 45 BD 24 E7 E7 F9 8F AF 40 49 6B 92 [20:44:07]CheckFolder [20:44:07]dirname=/storage/ofd_packets [20:44:07]CheckFolder done [20:44:07]ProducePacketName [20:44:07]name=ofd_packets/00028747 [20:44:07]NVStorageSaveData ofd_packets/00028747 [20:44:07]File name is /storage/ofd_packets/00028747 [20:44:07]Write 302 bytes [20:44:07]NVStorageSaveData done [20:44:07]OFDSenderStorePacket done [20:44:07]KKMCreateOFDPacket done [20:44:07]NVStorageSaveData kkm_last_timestamp [20:44:07]File name is /storage/kkm_last_timestamp [20:44:08]Write 4 bytes [20:44:08]NVStorageSaveData done [20:44:08]ExternCall_PrintAddStr [20:44:08]wPrintStart [20:44:08]Write to MH i2c: 01 00 00 E0 06 E6 [20:44:08]Write i2c OK [20:44:08]MH_I2C_Read... [20:44:08]Read from MH i2c: 01 [20:44:08]MH_I2C_Read... [20:44:08]Read from MH i2c: 01 07 00 [20:44:08]MH_I2C_Read... [20:44:08]Read from MH i2c: 01 07 00 E0 06 00 00 00 00 00 FF 0F FB [20:44:08]RasterBufferAndPrint [20:44:08]line Счет N : (1)347086 [20:44:08]line ИНН: 02508201610067 [20:44:08]line Контрольно-Кассовый Чек [20:44:08]line ПРОДАЖА [20:44:08]line ТРК (МРК, ГНК) : 22 [20:44:08]line Товар: 2710124130 [20:44:08]line SUPER-92-К-5 [20:44:08]line 4.600 * 65.30 [20:44:08]line = 300.38 [20:44:08]line НДС 12% НСП 1% [20:44:08]line > о реализуемом товаре [20:44:08]line ОКРУГЛЕНИЕ: -0.38 [20:44:08]line ИТОГО: 300.00 [20:44:08]line Внесено: 300.00 [20:44:08]line СДАЧА: 0.00 [20:44:08]line НСП 1% : 2.66 [20:44:08]line НДС 12% : 31.90 [20:44:08]line Наличными: 300.00 [20:44:08]line Безнал.: 0.00 [20:44:08]line Место: АЗС № 108 "Партнер Нефть" [20:44:08]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [20:44:08]line СНО: Общий режим [20:44:08]line Чек 21 12.04.2024 20:44 [20:44:08]line Смена: 114 ФФД: 1.0 [20:44:08]line ЗНМ: 0300000027 [20:44:08]line РНМ: 0000138879044617 [20:44:08]line Версия ККМ: 001 [20:44:08]line ФМ: 0000000000963154 [20:44:08]line ФД: 28747 [20:44:08]line ФПД: 255740702696679 [20:44:08]line 1/tax-web-control/client/api/v1/ticket?date=20240412T204407&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28747&fm=255740702696679&tin=02508201610067®Number=0000138879044617&sum=30000 [20:44:08]OFD Sender: Processing packet 28747 [packets to send 8, broken 7] [20:44:08]ProducePacketName [20:44:08]name=ofd_packets/00028747 [20:44:08]OFD Sender: To server: pG, [20:44:08]CommunicateWithHost lk.salyk.kg:30040 [20:44:08]ConnectInit lk.salyk.kg [20:44:08]written 0, free lines is 4095 [20:44:08]Connected sock=10 [20:44:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 19 55 08 01 AB 86 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 11 00 00 00 00 00 37 04 06 00 82 19 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 15 00 00 00 F4 03 04 00 17 9D 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4B 70 00 00 35 04 06 00 E8 98 45 BD 24 E7 E7 F9 8F AF 40 49 6B 92 [20:44:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 4D E7 47 00 9A AC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4B 70 00 00 F4 03 04 00 C0 47 19 66 B6 04 01 00 00 57 75 45 A9 21 56 A4 2D [20:44:08]CommunicateWithHost err = 0 [20:44:08]CheckOFDResponse [20:44:08]1017 (14) - 77093643461234 [20:44:08]1041 (16) - 0000000000963154 [20:44:08]1040 (4) - 28747 [20:44:08]1012 (4) - 12.04.2024 14:40 [20:44:08]1206 (1) - 0 [20:44:08]OFD Sender: Remove packet 28747 [20:44:08]ProducePacketName [20:44:08]name=ofd_packets/00028747 [20:44:08]NVStorageDeleteData [20:44:08]Write to MH i2c: 01 00 00 0A 07 11 [20:44:08]Write i2c OK [20:44:08]MH_I2C_Read... [20:44:08]Read from MH i2c: 01 [20:44:08]MH_I2C_Read... [20:44:08]Read from MH i2c: 01 07 00 [20:44:08]MH_I2C_Read... [20:44:08]Read from MH i2c: 01 07 00 0A 07 00 00 00 00 00 C4 0C E8 [20:44:08]RasterBufferAndPrint [20:44:08]line [20:44:08]line [20:44:08]line [20:44:08]line [20:44:08]line [20:44:08]written 0, free lines is 3272 [20:44:08]MH_Cut [20:44:08]Write to MH i2c: D1 01 00 11 07 01 EA [20:44:08]Write i2c OK [20:44:08]MH_I2C_Read... [20:44:08]Read from MH i2c: D1 [20:44:08]MH_I2C_Read... [20:44:08]Read from MH i2c: D1 01 00 [20:44:08]MH_I2C_Read... [20:44:08]Read from MH i2c: D1 01 00 11 07 00 E9 [20:44:08]Write to MH i2c: 01 00 00 12 07 19 [20:44:08]Write i2c OK [20:44:08]MH_I2C_Read... [20:44:09]OFD Sender: No OFD packet to send [20:44:09]*** Cut start [20:44:09]*** Partial cut [20:44:09]*** CUTSNS_PIN = 1 [20:44:09]*** CUTSNS_PIN = 0 [20:44:09]*** Brake cut motor [20:44:10]Read from MH i2c: 01 [20:44:10]MH_I2C_Read... [20:44:10]*** Stop cut motor [20:44:10]*** Cut end [20:44:10]Read from MH i2c: 01 07 00 [20:44:10]MH_I2C_Read... [20:44:10]Read from MH i2c: 01 07 00 12 07 00 00 00 00 00 FF 0F 2E [20:44:10]process_action close_receipt done [20:44:10]requested_data is exist [20:44:10]produce_requested_data [20:44:10]requested_item fm.sn is exist - process it [20:44:10]wFMCommunicate request_size=4 [20:44:10]MH_SAM_APDU [20:44:10]CAPDU: 80 11 00 00 [20:44:10]Write to MH i2c: E2 08 00 13 07 80 11 00 00 00 00 00 00 94 [20:44:10]Write i2c OK [20:44:10]MH_I2C_Read... [20:44:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:44:10]Read from MH i2c: E2 [20:44:10]MH_I2C_Read... [20:44:10]Read from MH i2c: E2 17 00 [20:44:10]MH_I2C_Read... [20:44:10]Read from MH i2c: E2 17 00 13 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 E3 [20:44:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:44:10]wFMCommunicate OK [20:44:10]requested_item fd.num is exist - process it [20:44:10]SAM_PROTO_GetFieldsCounters [20:44:10]wFMCommunicate request_size=4 [20:44:10]MH_SAM_APDU [20:44:10]CAPDU: 80 13 00 00 [20:44:10]Write to MH i2c: E2 08 00 14 07 80 13 00 00 00 00 00 00 97 [20:44:10]Write i2c OK [20:44:10]MH_I2C_Read... [20:44:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:44:10]Read from MH i2c: E2 [20:44:10]MH_I2C_Read... [20:44:10]Read from MH i2c: E2 62 00 [20:44:10]MH_I2C_Read... [20:44:10]Read from MH i2c: E2 62 00 14 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 4B 70 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 41 [20:44:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 4B 70 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 [20:44:10]wFMCommunicate OK [20:44:10]SAM_PROTO_GetFieldsCounters done [20:44:10]requested_item shift.num is exist - process it [20:44:10]requested_item shift.opened is exist - process it [20:44:10]req_shift_opened [20:44:10]FM_GetShiftState [20:44:10]SAM_PROTO_GetShiftState [20:44:10]wFMCommunicate request_size=4 [20:44:10]MH_SAM_APDU [20:44:10]CAPDU: 80 13 01 00 [20:44:10]Write to MH i2c: E2 08 00 15 07 80 13 01 00 00 00 00 00 99 [20:44:10]Write i2c OK [20:44:10]MH_I2C_Read... [20:44:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:44:10]Read from MH i2c: E2 [20:44:10]MH_I2C_Read... [20:44:10]Read from MH i2c: E2 0E 00 [20:44:10]MH_I2C_Read... [20:44:10]Read from MH i2c: E2 0E 00 15 07 00 09 00 01 17 88 19 66 00 00 00 00 90 00 C3 [20:44:10]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [20:44:10]wFMCommunicate OK [20:44:10]SAM_PROTO_GetShiftState done [20:44:10]FM_GetShiftState done [20:44:10]req_shift_opened done [20:44:10]requested_item shift.open_date is exist - process it [20:44:10]req_shift_open_date [20:44:10]req_shift_open_date done [20:44:10]produce_requested_data done [20:44:10]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28747,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271} [20:44:10]process_action_free close_receipt [20:44:10]json_value_free [20:44:10]json_value_free done [20:44:10]process_json_proto returns [20:44:10]Send response to host [20:44:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28747,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271}}} [20:44:10]free response buf [20:44:10]execute_script done [20:44:10]execute_script returns [20:44:10]free content buf [20:44:10]Sock 9.Close socket [20:44:10]Sock 9.Thread stoped [20:44:14]OFD Sender: No OFD packet to send [20:44:19]OFD Sender: No OFD packet to send [20:44:24]OFD Sender: No OFD packet to send [20:44:29]OFD Sender: No OFD packet to send [20:44:34]OFD Sender: No OFD packet to send [20:44:39]OFD Sender: No OFD packet to send [20:44:44]OFD Sender: No OFD packet to send [20:44:49]OFD Sender: No OFD packet to send [20:44:54]OFD Sender: No OFD packet to send [20:44:59]OFD Sender: No OFD packet to send [20:45:04]OFD Sender: No OFD packet to send [20:45:09]OFD Sender: No OFD packet to send [20:45:14]OFD Sender: No OFD packet to send [20:45:19]OFD Sender: No OFD packet to send [20:45:24]OFD Sender: No OFD packet to send [20:45:29]OFD Sender: No OFD packet to send [20:45:34]OFD Sender: No OFD packet to send [20:45:39]OFD Sender: No OFD packet to send [20:45:44]OFD Sender: No OFD packet to send [20:45:49]OFD Sender: No OFD packet to send [20:45:54]OFD Sender: No OFD packet to send [20:45:59]OFD Sender: No OFD packet to send [20:46:04]OFD Sender: No OFD packet to send [20:46:09]OFD Sender: No OFD packet to send [20:46:14]OFD Sender: No OFD packet to send [20:46:19]OFD Sender: No OFD packet to send [20:46:24]OFD Sender: No OFD packet to send [20:46:29]OFD Sender: No OFD packet to send [20:46:34]OFD Sender: No OFD packet to send [20:46:39]OFD Sender: No OFD packet to send [20:46:44]OFD Sender: No OFD packet to send [20:46:49]OFD Sender: No OFD packet to send [20:46:54]OFD Sender: No OFD packet to send [20:46:59]OFD Sender: No OFD packet to send [20:47:04]OFD Sender: No OFD packet to send [20:47:09]OFD Sender: No OFD packet to send [20:47:14]OFD Sender: No OFD packet to send [20:47:19]OFD Sender: No OFD packet to send [20:47:24]OFD Sender: No OFD packet to send [20:47:29]OFD Sender: No OFD packet to send [20:47:34]OFD Sender: No OFD packet to send [20:47:36]accept exits with 7 [20:47:36]New connection [20:47:36]New thread 3066785124 created [20:47:36]Thread 3066928484 joined [20:47:36]Waiting for new connection... [20:47:36] Sock 7.Parse request [20:47:36]Sock 7.Check first char [20:47:36]Sock 7.First char is OK [20:47:36]request: POST /json_proto HTTP/1.0 [20:47:36]Method: POST [20:47:36]URL: /json_proto [20:47:36]Method is POST - this is cgi request [20:47:36]url: /json_proto [20:47:36]query_string will be loaded in cgi processing [20:47:36]execute_cgi json_proto POST (null) [20:47:36]execute_cgi path=json_proto method=POST [20:47:36]POST find Content-Length [20:47:36]Host: 172.17.33.3:8080 [20:47:36]Content-Length: 642 [20:47:36]Content-Type: application/json [20:47:36] [20:47:36]POST finish read [20:47:36]Found Content-Length = 642 [20:47:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347087", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 20.000, "sum" : 1286.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1286.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:47:36]execute_script... [20:47: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)347087", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 20.000, "sum" : 1286.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1286.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:47:36]POST & json_proto [20:47:36]process_json_proto [20:47:36]json parsed OK: [20:47:36]protocol is kg_v1.0 [20:47:36]action value=close_receipt [20:47:36]process_action close_receipt [20:47:36]cmd_close_receipt [20:47:36]MH_GetDate [20:47:36]Write to MH i2c: F0 00 00 16 07 0C [20:47:36]Write i2c OK [20:47:36]MH_I2C_Read... [20:47:36]Read from MH i2c: F0 [20:47:36]MH_I2C_Read... [20:47:36]Read from MH i2c: F0 09 00 [20:47:36]MH_I2C_Read... [20:47:36]Read from MH i2c: F0 09 00 16 07 00 E9 9D 19 66 23 5B 8F 65 8C [20:47:36]GetLastDocTimeStamp 1712954647 [20:47:36]current date 1712954857 [20:47:36]FM_GetShiftState [20:47:36]SAM_PROTO_GetShiftState [20:47:36]wFMCommunicate request_size=4 [20:47:36]MH_SAM_APDU [20:47:36]CAPDU: 80 13 01 00 [20:47:36]Write to MH i2c: E2 08 00 17 07 80 13 01 00 00 00 00 00 9B [20:47:36]Write i2c OK [20:47:36]MH_I2C_Read... [20:47:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:47:36]Read from MH i2c: E2 [20:47:36]MH_I2C_Read... [20:47:36]Read from MH i2c: E2 0E 00 [20:47:36]MH_I2C_Read... [20:47:36]Read from MH i2c: E2 0E 00 17 07 00 09 00 01 17 88 19 66 00 00 00 00 90 00 C5 [20:47:36]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [20:47:36]wFMCommunicate OK [20:47:36]SAM_PROTO_GetShiftState done [20:47:36]FM_GetShiftState done [20:47:36]opened in 1712949271 [20:47:36]opened+sec_in_day 1713035671 [20:47:36]quantity*price = 128600 [20:47:36]sum+1 = 128601 [20:47:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1286.00 НСП 1% : 11.38 НДС 12% : 136.57 Наличными: 1286.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 22 12.04.2024 20:47 Смена: 114 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28748 ФПД: 230256483966653 1/tax-web-control/client/api/v1/ticket?date=20240412T204737&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28748&fm=230256483966653&tin=02508201610067®Number=0000138879044617&sum=128600 [20:47:37]StoreToDocumentArchive [20:47:37]shift 114 fd 28748 [20:47:37]save to /storage/0114/doc_00028748 [20:47:37]save last doc name /storage/0114/doc_00028748 to /storage/kkm_last_doc_name [20:47:37]save OK [20:47:37]Clear old archive folders... [20:47:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:47:37]tlvbuf is 011B2A40 [20:47:37]SAM_PROTO_ClearQueue [20:47:37]wFMCommunicate request_size=4 [20:47:37]MH_SAM_APDU [20:47:37]CAPDU: 80 09 00 00 [20:47:37]Write to MH i2c: E2 08 00 24 07 80 09 00 00 00 00 00 00 9D [20:47:37]Write i2c OK [20:47:37]MH_I2C_Read... [20:47:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:47:37]Read from MH i2c: E2 [20:47:37]MH_I2C_Read... [20:47:37]Read from MH i2c: E2 03 00 [20:47:37]MH_I2C_Read... [20:47:37]Read from MH i2c: E2 03 00 24 07 00 90 00 9F [20:47:37]RAPDU: 90 00 [20:47:37]wFMCommunicate OK [20:47:37]SAM_PROTO_ClearQueue done [20:47:37]KKMCreateOFDPacket [20:47:37]OFDProtocolAddRootSTLVToBuf [20:47:37]FM_MakeSignedData [20:47:37]FM_MakeSignedData [20:47:37]SAM_PROTO_SignData [20:47:37]wFMCommunicate request_size=4 [20:47:37]MH_SAM_APDU [20:47:37]CAPDU: 80 0D 01 02 [20:47:37]Write to MH i2c: E2 08 00 25 07 80 0D 01 02 00 00 00 00 A5 [20:47:37]Write i2c OK [20:47:37]MH_I2C_Read... [20:47:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:47:37]Read from MH i2c: E2 [20:47:37]MH_I2C_Read... [20:47:37]Read from MH i2c: E2 03 00 [20:47:37]MH_I2C_Read... [20:47:37]Read from MH i2c: E2 03 00 25 07 00 90 00 A0 [20:47:37]RAPDU: 90 00 [20:47:37]wFMCommunicate OK [20:47:37]wFMCommunicate request_size=255 [20:47:37]MH_SAM_APDU [20:47:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 58 F6 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 F6 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 59 35 00 00 00 00 07 04 06 00 58 F6 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 E9 9D 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4C 70 00 00 35 04 06 00 D1 [20:47:37]Write to MH i2c: E2 02 01 26 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 58 F6 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 F6 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 59 35 00 00 00 00 07 04 06 00 58 F6 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 E9 9D 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4C 70 00 00 35 04 06 00 D1 00 00 7C [20:47:37]Write i2c OK [20:47:37]MH_I2C_Read... [20:47:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:47:37]Read from MH i2c: E2 [20:47:37]MH_I2C_Read... [20:47:37]Read from MH i2c: E2 03 00 [20:47:37]MH_I2C_Read... [20:47:37]Read from MH i2c: E2 03 00 26 07 00 90 00 A1 [20:47:37]RAPDU: 90 00 [20:47:37]wFMCommunicate OK [20:47:37]wFMCommunicate request_size=10 [20:47:37]MH_SAM_APDU [20:47:37]CAPDU: 80 0D 02 02 05 6A C3 EF 1E BD [20:47:37]Write to MH i2c: E2 0D 00 27 07 80 0D 02 02 05 00 6A C3 EF 1E BD 00 00 A9 [20:47:37]Write i2c OK [20:47:37]MH_I2C_Read... [20:47:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:47:37]Read from MH i2c: E2 [20:47:37]MH_I2C_Read... [20:47:37]Read from MH i2c: E2 03 00 [20:47:37]MH_I2C_Read... [20:47:37]Read from MH i2c: E2 03 00 27 07 00 90 00 A2 [20:47:37]RAPDU: 90 00 [20:47:37]wFMCommunicate OK [20:47:37]wFMCommunicate request_size=4 [20:47:37]MH_SAM_APDU [20:47:37]CAPDU: 80 0D 03 02 [20:47:37]Write to MH i2c: E2 08 00 28 07 80 0D 03 02 00 00 00 00 AA [20:47:37]Write i2c OK [20:47:37]MH_I2C_Read... [20:47:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:47:37]Read from MH i2c: E2 [20:47:37]MH_I2C_Read... [20:47:37]Read from MH i2c: E2 0B 00 [20:47:37]MH_I2C_Read... [20:47:37]Read from MH i2c: E2 0B 00 28 07 00 E6 F0 8F FF 17 4E 53 66 90 00 2D [20:47:37]RAPDU: E6 F0 8F FF 17 4E 53 66 90 00 [20:47:37]wFMCommunicate OK [20:47:37]SAM_PROTO_SignData done [20:47:37]FM_MakeSignedData done [20:47:37]CreateOFDProtocolMessage [20:47:37]wFMCommunicate request_size=4 [20:47:37]MH_SAM_APDU [20:47:37]CAPDU: 80 11 00 00 [20:47:37]Write to MH i2c: E2 08 00 29 07 80 11 00 00 00 00 00 00 AA [20:47:37]Write i2c OK [20:47:37]MH_I2C_Read... [20:47:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:47:37]Read from MH i2c: E2 [20:47:37]MH_I2C_Read... [20:47:37]Read from MH i2c: E2 17 00 [20:47:37]MH_I2C_Read... [20:47:37]Read from MH i2c: E2 17 00 29 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 F9 [20:47:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:47:37]wFMCommunicate OK [20:47:37]CreateOFDProtocolMessage done [20:47:37]OFDSenderStorePacket 28748 [20:47:37]StoreOFDPacket docnum=28748 [20:47:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 45 FD 07 01 7D 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 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 58 F6 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 F6 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 59 35 00 00 00 00 07 04 06 00 58 F6 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 E9 9D 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4C 70 00 00 35 04 06 00 D1 6A C3 EF 1E BD E6 F0 8F FF 17 4E 53 66 [20:47:37]CheckFolder [20:47:37]dirname=/storage/ofd_packets [20:47:37]CheckFolder done [20:47:37]ProducePacketName [20:47:37]name=ofd_packets/00028748 [20:47:37]NVStorageSaveData ofd_packets/00028748 [20:47:37]File name is /storage/ofd_packets/00028748 [20:47:37]Write 301 bytes [20:47:37]NVStorageSaveData done [20:47:37]OFDSenderStorePacket done [20:47:37]KKMCreateOFDPacket done [20:47:37]NVStorageSaveData kkm_last_timestamp [20:47:37]File name is /storage/kkm_last_timestamp [20:47:37]Write 4 bytes [20:47:37]NVStorageSaveData done [20:47:37]ExternCall_PrintAddStr [20:47:37]wPrintStart [20:47:37]Write to MH i2c: 01 00 00 2A 07 31 [20:47:37]Write i2c OK [20:47:37]MH_I2C_Read... [20:47:37]Read from MH i2c: 01 [20:47:37]MH_I2C_Read... [20:47:37]Read from MH i2c: 01 07 00 [20:47:37]MH_I2C_Read... [20:47:37]Read from MH i2c: 01 07 00 2A 07 00 00 00 00 00 FF 0F 46 [20:47:37]RasterBufferAndPrint [20:47:37]line Счет N : (1)347087 [20:47:37]line ИНН: 02508201610067 [20:47:37]line Контрольно-Кассовый Чек [20:47:37]line ПРОДАЖА [20:47:37]line ТРК (МРК, ГНК) : 42 [20:47:37]line Товар: 2710124130 [20:47:37]line Аи-92-К-5 [20:47:37]line 20.000 * 64.30 [20:47:37]line = 1286.00 [20:47:37]line НДС 12% НСП 1% [20:47:37]line > о реализуемом товаре [20:47:37]line ИТОГО: 1286.00 [20:47:37]line НСП 1% : 11.38 [20:47:37]line НДС 12% : 136.57 [20:47:37]line Наличными: 1286.00 [20:47:37]line Безнал.: 0.00 [20:47:37]line Место: АЗС № 108 "Партнер Нефть" [20:47:37]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [20:47:37]line СНО: Общий режим [20:47:37]line Чек 22 12.04.2024 20:47 [20:47:37]line Смена: 114 ФФД: 1.0 [20:47:37]line ЗНМ: 0300000027 [20:47:37]line РНМ: 0000138879044617 [20:47:37]line Версия ККМ: 001 [20:47:37]line ФМ: 0000000000963154 [20:47:37]line ФД: 28748 [20:47:37]line ФПД: 230256483966653 [20:47:38]line 1/tax-web-control/client/api/v1/ticket?date=20240412T204737&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28748&fm=230256483966653&tin=02508201610067®Number=0000138879044617&sum=128600 [20:47:38]OFD Sender: Processing packet 28748 [packets to send 8, broken 7] [20:47:38]ProducePacketName [20:47:38]name=ofd_packets/00028748 [20:47:38]OFD Sender: To server: pG, [20:47:38]CommunicateWithHost lk.salyk.kg:30040 [20:47:38]ConnectInit lk.salyk.kg [20:47:38]written 0, free lines is 4095 [20:47:38]Connected sock=10 [20:47:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 45 FD 07 01 7D 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 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 58 F6 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 F6 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 59 35 00 00 00 00 07 04 06 00 58 F6 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 E9 9D 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4C 70 00 00 35 04 06 00 D1 6A C3 EF 1E BD E6 F0 8F FF 17 4E 53 66 [20:47:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 C0 C6 47 00 3F 6A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4C 70 00 00 F4 03 04 00 92 48 19 66 B6 04 01 00 00 1B E2 1E DB 77 4B F4 01 [20:47:38]CommunicateWithHost err = 0 [20:47:38]CheckOFDResponse [20:47:38]1017 (14) - 77093643461234 [20:47:38]1041 (16) - 0000000000963154 [20:47:38]1040 (4) - 28748 [20:47:38]1012 (4) - 12.04.2024 14:43 [20:47:38]1206 (1) - 0 [20:47:38]OFD Sender: Remove packet 28748 [20:47:38]ProducePacketName [20:47:38]name=ofd_packets/00028748 [20:47:38]NVStorageDeleteData [20:47:38]Write to MH i2c: 01 00 00 51 07 58 [20:47:38]Write i2c OK [20:47:38]MH_I2C_Read... [20:47:38]Read from MH i2c: 01 [20:47:38]MH_I2C_Read... [20:47:38]Read from MH i2c: 01 07 00 [20:47:38]MH_I2C_Read... [20:47:38]Read from MH i2c: 01 07 00 51 07 00 00 00 00 00 0E 0D 7A [20:47:38]RasterBufferAndPrint [20:47:38]line [20:47:38]line [20:47:38]line [20:47:38]line [20:47:38]line [20:47:38]written 0, free lines is 3348 [20:47:38]MH_Cut [20:47:38]Write to MH i2c: D1 01 00 58 07 01 31 [20:47:38]Write i2c OK [20:47:38]MH_I2C_Read... [20:47:38]Read from MH i2c: D1 [20:47:38]MH_I2C_Read... [20:47:38]Read from MH i2c: D1 01 00 [20:47:38]MH_I2C_Read... [20:47:38]Read from MH i2c: D1 01 00 58 07 00 30 [20:47:38]Write to MH i2c: 01 00 00 59 07 60 [20:47:38]Write i2c OK [20:47:38]MH_I2C_Read... [20:47:39]OFD Sender: No OFD packet to send [20:47:39]*** Cut start [20:47:39]*** Partial cut [20:47:39]*** CUTSNS_PIN = 1 [20:47:39]*** CUTSNS_PIN = 0 [20:47:39]*** Brake cut motor [20:47:40]Read from MH i2c: 01 [20:47:40]MH_I2C_Read... [20:47:40]*** Stop cut motor [20:47:40]*** Cut end [20:47:40]Read from MH i2c: 01 07 00 [20:47:40]MH_I2C_Read... [20:47:40]Read from MH i2c: 01 07 00 59 07 00 00 00 00 00 FF 0F 75 [20:47:40]process_action close_receipt done [20:47:40]requested_data is exist [20:47:40]produce_requested_data [20:47:40]requested_item fm.sn is exist - process it [20:47:40]wFMCommunicate request_size=4 [20:47:40]MH_SAM_APDU [20:47:40]CAPDU: 80 11 00 00 [20:47:40]Write to MH i2c: E2 08 00 5A 07 80 11 00 00 00 00 00 00 DB [20:47:40]Write i2c OK [20:47:40]MH_I2C_Read... [20:47:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:47:40]Read from MH i2c: E2 [20:47:40]MH_I2C_Read... [20:47:40]Read from MH i2c: E2 17 00 [20:47:40]MH_I2C_Read... [20:47:40]Read from MH i2c: E2 17 00 5A 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 2A [20:47:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:47:40]wFMCommunicate OK [20:47:40]requested_item fd.num is exist - process it [20:47:40]SAM_PROTO_GetFieldsCounters [20:47:40]wFMCommunicate request_size=4 [20:47:40]MH_SAM_APDU [20:47:40]CAPDU: 80 13 00 00 [20:47:40]Write to MH i2c: E2 08 00 5B 07 80 13 00 00 00 00 00 00 DE [20:47:40]Write i2c OK [20:47:40]MH_I2C_Read... [20:47:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:47:40]Read from MH i2c: E2 [20:47:40]MH_I2C_Read... [20:47:40]Read from MH i2c: E2 62 00 [20:47:40]MH_I2C_Read... [20:47:40]Read from MH i2c: E2 62 00 5B 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 4C 70 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 8C [20:47:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 4C 70 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 [20:47:40]wFMCommunicate OK [20:47:40]SAM_PROTO_GetFieldsCounters done [20:47:40]requested_item shift.num is exist - process it [20:47:40]requested_item shift.opened is exist - process it [20:47:40]req_shift_opened [20:47:40]FM_GetShiftState [20:47:40]SAM_PROTO_GetShiftState [20:47:40]wFMCommunicate request_size=4 [20:47:40]MH_SAM_APDU [20:47:40]CAPDU: 80 13 01 00 [20:47:40]Write to MH i2c: E2 08 00 5C 07 80 13 01 00 00 00 00 00 E0 [20:47:40]Write i2c OK [20:47:40]MH_I2C_Read... [20:47:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:47:40]Read from MH i2c: E2 [20:47:40]MH_I2C_Read... [20:47:40]Read from MH i2c: E2 0E 00 [20:47:40]MH_I2C_Read... [20:47:40]Read from MH i2c: E2 0E 00 5C 07 00 09 00 01 17 88 19 66 00 00 00 00 90 00 0A [20:47:40]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [20:47:40]wFMCommunicate OK [20:47:40]SAM_PROTO_GetShiftState done [20:47:40]FM_GetShiftState done [20:47:40]req_shift_opened done [20:47:40]requested_item shift.open_date is exist - process it [20:47:40]req_shift_open_date [20:47:40]req_shift_open_date done [20:47:40]produce_requested_data done [20:47:40]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28748,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271} [20:47:40]process_action_free close_receipt [20:47:40]json_value_free [20:47:40]json_value_free done [20:47:40]process_json_proto returns [20:47:40]Send response to host [20:47:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28748,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271}}} [20:47:40]free response buf [20:47:40]execute_script done [20:47:40]execute_script returns [20:47:40]free content buf [20:47:40]Sock 7.Close socket [20:47:40]Sock 7.Thread stoped [20:47:44]OFD Sender: No OFD packet to send [20:47:49]OFD Sender: No OFD packet to send [20:47:54]OFD Sender: No OFD packet to send [20:47:59]OFD Sender: No OFD packet to send [20:48:04]OFD Sender: No OFD packet to send [20:48:09]OFD Sender: No OFD packet to send [20:48:14]OFD Sender: No OFD packet to send [20:48:19]OFD Sender: No OFD packet to send [20:48:24]OFD Sender: No OFD packet to send [20:48:29]OFD Sender: No OFD packet to send [20:48:34]OFD Sender: No OFD packet to send [20:48:39]OFD Sender: No OFD packet to send [20:48:44]OFD Sender: No OFD packet to send [20:48:49]OFD Sender: No OFD packet to send [20:48:54]OFD Sender: No OFD packet to send [20:48:59]OFD Sender: No OFD packet to send [20:49:04]OFD Sender: No OFD packet to send [20:49:09]OFD Sender: No OFD packet to send [20:49:14]OFD Sender: No OFD packet to send [20:49:19]OFD Sender: No OFD packet to send [20:49:24]OFD Sender: No OFD packet to send [20:49:29]OFD Sender: No OFD packet to send [20:49:34]OFD Sender: No OFD packet to send [20:49:39]OFD Sender: No OFD packet to send [20:49:44]OFD Sender: No OFD packet to send [20:49:49]OFD Sender: No OFD packet to send [20:49:54]OFD Sender: No OFD packet to send [20:49:59]OFD Sender: No OFD packet to send [20:50:04]OFD Sender: No OFD packet to send [20:50:09]OFD Sender: No OFD packet to send [20:50:14]OFD Sender: No OFD packet to send [20:50:19]OFD Sender: No OFD packet to send [20:50:24]OFD Sender: No OFD packet to send [20:50:29]OFD Sender: No OFD packet to send [20:50:34]OFD Sender: No OFD packet to send [20:50:39]OFD Sender: No OFD packet to send [20:50:44]OFD Sender: No OFD packet to send [20:50:49]OFD Sender: No OFD packet to send [20:50:54]OFD Sender: No OFD packet to send [20:50:59]OFD Sender: No OFD packet to send [20:51:04]OFD Sender: No OFD packet to send [20:51:09]OFD Sender: No OFD packet to send [20:51:14]OFD Sender: No OFD packet to send [20:51:19]OFD Sender: No OFD packet to send [20:51:24]OFD Sender: No OFD packet to send [20:51:29]OFD Sender: No OFD packet to send [20:51:34]OFD Sender: No OFD packet to send [20:51:39]OFD Sender: No OFD packet to send [20:51:44]OFD Sender: No OFD packet to send [20:51:49]OFD Sender: No OFD packet to send [20:51:54]OFD Sender: No OFD packet to send [20:51:59]OFD Sender: No OFD packet to send [20:52:00]accept exits with 9 [20:52:00]New connection [20:52:00]New thread 3066928484 created [20:52:00]Thread 3066785124 joined [20:52:00]Waiting for new connection... [20:52:00] Sock 9.Parse request [20:52:00]Sock 9.Check first char [20:52:00]Sock 9.First char is OK [20:52:00]request: POST /json_proto HTTP/1.0 [20:52:00]Method: POST [20:52:00]URL: /json_proto [20:52:00]Method is POST - this is cgi request [20:52:00]url: /json_proto [20:52:00]query_string will be loaded in cgi processing [20:52:00]execute_cgi json_proto POST (null) [20:52:00]execute_cgi path=json_proto method=POST [20:52:00]POST find Content-Length [20:52:00]Host: 172.17.33.3:8080 [20:52:00]Content-Length: 1195 [20:52:00]Content-Type: application/json [20:52:00] [20:52:00]POST finish read [20:52:00]Found Content-Length = 1195 [20:52:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0440\u044B\u0431\u0430\u0435\u0432 \u042D. \u000A\u0421\u0447\u0435\u0442 N : (1)347089\u000A12.04.2024 20:33\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 30.000 x 64.30\u000A\u0418\u0422\u041E\u0413: 1929.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A74635\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:52:00]execute_script... [20:52:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0440\u044B\u0431\u0430\u0435\u0432 \u042D. \u000A\u0421\u0447\u0435\u0442 N : (1)347089\u000A12.04.2024 20:33\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 30.000 x 64.30\u000A\u0418\u0422\u041E\u0413: 1929.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A74635\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:52:00]POST & json_proto [20:52:00]process_json_proto [20:52:00]json parsed OK: [20:52:00]protocol is kg_v1.0 [20:52:00]action value=print_text [20:52:00]process_action print_text [20:52:00]cmd_print_text [20:52:00]ExternCall_PrintAddStr [20:52:00]wPrintStart [20:52:00]Write to MH i2c: 01 00 00 5D 07 64 [20:52:00]Write i2c OK [20:52:00]MH_I2C_Read... [20:52:00]Read from MH i2c: 01 [20:52:00]MH_I2C_Read... [20:52:00]Read from MH i2c: 01 07 00 [20:52:00]MH_I2C_Read... [20:52:00]Read from MH i2c: 01 07 00 5D 07 00 00 00 00 00 FF 0F 79 [20:52:00]RasterBufferAndPrint [20:52:00]line *****ТОВАРНЫЙ ЧЕК***** [20:52:00]line АЗС 108 [20:52:00]line Партнер нефть [20:52:00]line 02508201610067 [20:52:00]line Кассир : Сарыбаев Э. [20:52:00]line Счет N : (1)347089 [20:52:00]line 12.04.2024 20:33 [20:52:00]line ПРОДАЖА [20:52:00]line ТРК (МРК, ГНК): 32 [20:52:00]line Вид ГСМ : 2710124130 [20:52:00]line Аи-92-К-5 [20:52:00]line 30.000 x 64.30 [20:52:00]line ИТОГ: 1929.00 [20:52:00]line Тип оплаты: Талоны: Топливная Карта [20:52:00]line 74635 [20:52:00]line ______________________ [20:52:00]line (подпись) [20:52:00]written 0, free lines is 4095 [20:52:00]Write to MH i2c: 01 00 00 71 07 78 [20:52:00]Write i2c OK [20:52:00]MH_I2C_Read... [20:52:00]Read from MH i2c: 01 [20:52:00]MH_I2C_Read... [20:52:00]Read from MH i2c: 01 07 00 [20:52:00]MH_I2C_Read... [20:52:00]Read from MH i2c: 01 07 00 71 07 00 00 00 00 00 13 0E A0 [20:52:00]RasterBufferAndPrint [20:52:00]line [20:52:00]line [20:52:00]line [20:52:00]line [20:52:00]line [20:52:00]written 0, free lines is 3605 [20:52:00]MH_Cut [20:52:00]Write to MH i2c: D1 01 00 78 07 01 51 [20:52:00]Write i2c OK [20:52:00]MH_I2C_Read... [20:52:00]Read from MH i2c: D1 [20:52:00]MH_I2C_Read... [20:52:00]Read from MH i2c: D1 01 00 [20:52:00]MH_I2C_Read... [20:52:00]Read from MH i2c: D1 01 00 78 07 00 50 [20:52:00]Write to MH i2c: 01 00 00 79 07 80 [20:52:00]Write i2c OK [20:52:00]MH_I2C_Read... [20:52:01]*** Cut start [20:52:01]*** Partial cut [20:52:01]*** CUTSNS_PIN = 1 [20:52:01]*** CUTSNS_PIN = 0 [20:52:01]*** Brake cut motor [20:52:02]Read from MH i2c: 01 [20:52:02]MH_I2C_Read... [20:52:02]*** Stop cut motor [20:52:02]*** Cut end [20:52:02]Read from MH i2c: 01 07 00 [20:52:02]MH_I2C_Read... [20:52:02]Read from MH i2c: 01 07 00 79 07 00 00 00 00 00 FF 0F 95 [20:52:02]process_action print_text done [20:52:02]requested_data is exist [20:52:02]produce_requested_data [20:52:02]requested_item fm.sn is exist - process it [20:52:02]wFMCommunicate request_size=4 [20:52:02]MH_SAM_APDU [20:52:02]CAPDU: 80 11 00 00 [20:52:02]Write to MH i2c: E2 08 00 7A 07 80 11 00 00 00 00 00 00 FB [20:52:02]Write i2c OK [20:52:02]MH_I2C_Read... [20:52:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:52:02]Read from MH i2c: E2 [20:52:02]MH_I2C_Read... [20:52:02]Read from MH i2c: E2 17 00 [20:52:02]MH_I2C_Read... [20:52:02]Read from MH i2c: E2 17 00 7A 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 4A [20:52:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:52:02]wFMCommunicate OK [20:52:02]requested_item fd.num is exist - process it [20:52:02]SAM_PROTO_GetFieldsCounters [20:52:02]wFMCommunicate request_size=4 [20:52:02]MH_SAM_APDU [20:52:02]CAPDU: 80 13 00 00 [20:52:02]Write to MH i2c: E2 08 00 7B 07 80 13 00 00 00 00 00 00 FE [20:52:02]Write i2c OK [20:52:02]MH_I2C_Read... [20:52:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:52:02]Read from MH i2c: E2 [20:52:02]MH_I2C_Read... [20:52:02]Read from MH i2c: E2 62 00 [20:52:02]MH_I2C_Read... [20:52:02]Read from MH i2c: E2 62 00 7B 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 4C 70 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 AC [20:52:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 4C 70 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 [20:52:02]wFMCommunicate OK [20:52:02]SAM_PROTO_GetFieldsCounters done [20:52:02]requested_item shift.num is exist - process it [20:52:02]requested_item shift.opened is exist - process it [20:52:02]req_shift_opened [20:52:02]FM_GetShiftState [20:52:02]SAM_PROTO_GetShiftState [20:52:02]wFMCommunicate request_size=4 [20:52:02]MH_SAM_APDU [20:52:02]CAPDU: 80 13 01 00 [20:52:02]Write to MH i2c: E2 08 00 7C 07 80 13 01 00 00 00 00 00 00 [20:52:02]Write i2c OK [20:52:02]MH_I2C_Read... [20:52:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:52:02]Read from MH i2c: E2 [20:52:02]MH_I2C_Read... [20:52:02]Read from MH i2c: E2 0E 00 [20:52:02]MH_I2C_Read... [20:52:02]Read from MH i2c: E2 0E 00 7C 07 00 09 00 01 17 88 19 66 00 00 00 00 90 00 2A [20:52:02]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [20:52:02]wFMCommunicate OK [20:52:02]SAM_PROTO_GetShiftState done [20:52:02]FM_GetShiftState done [20:52:02]req_shift_opened done [20:52:02]requested_item shift.open_date is exist - process it [20:52:02]req_shift_open_date [20:52:02]req_shift_open_date done [20:52:02]produce_requested_data done [20:52:02]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28748,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271} [20:52:02]process_action_free print_text [20:52:02]json_value_free [20:52:02]json_value_free done [20:52:02]process_json_proto returns [20:52:02]Send response to host [20:52:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28748,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271}}} [20:52:02]free response buf [20:52:02]execute_script done [20:52:02]execute_script returns [20:52:02]free content buf [20:52:02]Sock 9.Close socket [20:52:02]Sock 9.Thread stoped [20:52:02]accept exits with 7 [20:52:02]New connection [20:52:02]New thread 3066785124 created [20:52:02]Thread 3066928484 joined [20:52:02]Waiting for new connection... [20:52:02] Sock 7.Parse request [20:52:02]Sock 7.Check first char [20:52:02]Sock 7.First char is OK [20:52:02]request: POST /json_proto HTTP/1.0 [20:52:02]Method: POST [20:52:02]URL: /json_proto [20:52:02]Method is POST - this is cgi request [20:52:02]url: /json_proto [20:52:02]query_string will be loaded in cgi processing [20:52:02]execute_cgi json_proto POST (null) [20:52:02]execute_cgi path=json_proto method=POST [20:52:02]POST find Content-Length [20:52:02]Host: 172.17.33.3:8080 [20:52:02]Content-Length: 677 [20:52:02]Content-Type: application/json [20:52:02] [20:52:02]POST finish read [20:52:02]Found Content-Length = 677 [20:52:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347090", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 6.230, "sum" : 400.59, "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:52:02]execute_script... [20:52: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)347090", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 6.230, "sum" : 400.59, "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:52:02]POST & json_proto [20:52:02]process_json_proto [20:52:02]json parsed OK: [20:52:02]protocol is kg_v1.0 [20:52:02]action value=close_receipt [20:52:02]process_action close_receipt [20:52:02]cmd_close_receipt [20:52:02]MH_GetDate [20:52:02]Write to MH i2c: F0 00 00 7D 07 73 [20:52:02]Write i2c OK [20:52:02]MH_I2C_Read... [20:52:02]Read from MH i2c: F0 [20:52:02]MH_I2C_Read... [20:52:02]Read from MH i2c: F0 09 00 [20:52:02]MH_I2C_Read... [20:52:02]Read from MH i2c: F0 09 00 7D 07 00 F3 9E 19 66 23 5B 8F 65 FE [20:52:02]GetLastDocTimeStamp 1712954857 [20:52:02]current date 1712955123 [20:52:02]FM_GetShiftState [20:52:02]SAM_PROTO_GetShiftState [20:52:02]wFMCommunicate request_size=4 [20:52:02]MH_SAM_APDU [20:52:02]CAPDU: 80 13 01 00 [20:52:02]Write to MH i2c: E2 08 00 7E 07 80 13 01 00 00 00 00 00 02 [20:52:02]Write i2c OK [20:52:02]MH_I2C_Read... [20:52:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:52:02]Read from MH i2c: E2 [20:52:02]MH_I2C_Read... [20:52:02]Read from MH i2c: E2 0E 00 [20:52:02]MH_I2C_Read... [20:52:02]Read from MH i2c: E2 0E 00 7E 07 00 09 00 01 17 88 19 66 00 00 00 00 90 00 2C [20:52:02]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [20:52:02]wFMCommunicate OK [20:52:02]SAM_PROTO_GetShiftState done [20:52:02]FM_GetShiftState done [20:52:02]opened in 1712949271 [20:52:02]opened+sec_in_day 1713035671 [20:52:02]quantity*price = 40058 [20:52:02]sum+1 = 40060 [20:52:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.54 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 23 12.04.2024 20:52 Смена: 114 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28749 ФПД: 228233895891955 1/tax-web-control/client/api/v1/ticket?date=20240412T205203&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28749&fm=228233895891955&tin=02508201610067®Number=0000138879044617&sum=40000 [20:52:04]StoreToDocumentArchive [20:52:04]shift 114 fd 28749 [20:52:04]save to /storage/0114/doc_00028749 [20:52:04]save last doc name /storage/0114/doc_00028749 to /storage/kkm_last_doc_name [20:52:04]save OK [20:52:04]Clear old archive folders... [20:52:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:52:04]tlvbuf is 011B3F20 [20:52:04]SAM_PROTO_ClearQueue [20:52:04]wFMCommunicate request_size=4 [20:52:04]MH_SAM_APDU [20:52:04]CAPDU: 80 09 00 00 [20:52:04]Write to MH i2c: E2 08 00 8B 07 80 09 00 00 00 00 00 00 04 [20:52:04]Write i2c OK [20:52:04]MH_I2C_Read... [20:52:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:52:04]Read from MH i2c: E2 [20:52:04]MH_I2C_Read... [20:52:04]Read from MH i2c: E2 03 00 [20:52:04]MH_I2C_Read... [20:52:04]Read from MH i2c: E2 03 00 8B 07 00 90 00 06 [20:52:04]RAPDU: 90 00 [20:52:04]wFMCommunicate OK [20:52:04]SAM_PROTO_ClearQueue done [20:52:04]KKMCreateOFDPacket [20:52:04]OFDProtocolAddRootSTLVToBuf [20:52:04]FM_MakeSignedData [20:52:04]FM_MakeSignedData [20:52:04]SAM_PROTO_SignData [20:52:04]wFMCommunicate request_size=4 [20:52:04]MH_SAM_APDU [20:52:04]CAPDU: 80 0D 01 02 [20:52:04]Write to MH i2c: E2 08 00 8C 07 80 0D 01 02 00 00 00 00 0C [20:52:04]Write i2c OK [20:52:04]MH_I2C_Read... [20:52:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:52:04]OFD Sender: No OFD packet to send [20:52:04]Read from MH i2c: E2 [20:52:04]MH_I2C_Read... [20:52:04]Read from MH i2c: E2 03 00 [20:52:04]MH_I2C_Read... [20:52:04]Read from MH i2c: E2 03 00 8C 07 00 90 00 07 [20:52:04]RAPDU: 90 00 [20:52:04]wFMCommunicate OK [20:52:04]wFMCommunicate request_size=255 [20:52:04]MH_SAM_APDU [20:52:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 56 18 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 7B 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 9E 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 F3 9E 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4D 70 00 00 35 04 06 00 CF [20:52:04]Write to MH i2c: E2 02 01 8D 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 56 18 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 7B 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 9E 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 F3 9E 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4D 70 00 00 35 04 06 00 CF 00 00 DD [20:52:04]Write i2c OK [20:52:04]MH_I2C_Read... [20:52:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:52:04]Read from MH i2c: E2 [20:52:04]MH_I2C_Read... [20:52:04]Read from MH i2c: E2 03 00 [20:52:04]MH_I2C_Read... [20:52:04]Read from MH i2c: E2 03 00 8D 07 00 90 00 08 [20:52:04]RAPDU: 90 00 [20:52:04]wFMCommunicate OK [20:52:04]wFMCommunicate request_size=10 [20:52:04]MH_SAM_APDU [20:52:04]CAPDU: 80 0D 02 02 05 93 D8 4A 53 F3 [20:52:04]Write to MH i2c: E2 0D 00 8E 07 80 0D 02 02 05 00 93 D8 4A 53 F3 00 00 14 [20:52:04]Write i2c OK [20:52:04]MH_I2C_Read... [20:52:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:52:04]Read from MH i2c: E2 [20:52:04]MH_I2C_Read... [20:52:04]Read from MH i2c: E2 03 00 [20:52:04]MH_I2C_Read... [20:52:04]Read from MH i2c: E2 03 00 8E 07 00 90 00 09 [20:52:04]RAPDU: 90 00 [20:52:04]wFMCommunicate OK [20:52:04]wFMCommunicate request_size=4 [20:52:04]MH_SAM_APDU [20:52:04]CAPDU: 80 0D 03 02 [20:52:04]Write to MH i2c: E2 08 00 8F 07 80 0D 03 02 00 00 00 00 11 [20:52:04]Write i2c OK [20:52:04]MH_I2C_Read... [20:52:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:52:04]Read from MH i2c: E2 [20:52:04]MH_I2C_Read... [20:52:04]Read from MH i2c: E2 0B 00 [20:52:04]MH_I2C_Read... [20:52:04]Read from MH i2c: E2 0B 00 8F 07 00 90 5F 05 B9 AF 03 23 4E 90 00 E2 [20:52:04]RAPDU: 90 5F 05 B9 AF 03 23 4E 90 00 [20:52:04]wFMCommunicate OK [20:52:04]SAM_PROTO_SignData done [20:52:04]FM_MakeSignedData done [20:52:04]CreateOFDProtocolMessage [20:52:04]wFMCommunicate request_size=4 [20:52:04]MH_SAM_APDU [20:52:04]CAPDU: 80 11 00 00 [20:52:04]Write to MH i2c: E2 08 00 90 07 80 11 00 00 00 00 00 00 11 [20:52:04]Write i2c OK [20:52:04]MH_I2C_Read... [20:52:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:52:04]Read from MH i2c: E2 [20:52:04]MH_I2C_Read... [20:52:04]Read from MH i2c: E2 17 00 [20:52:04]MH_I2C_Read... [20:52:04]Read from MH i2c: E2 17 00 90 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 60 [20:52:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:52:04]wFMCommunicate OK [20:52:04]CreateOFDProtocolMessage done [20:52:04]OFDSenderStorePacket 28749 [20:52:04]StoreOFDPacket docnum=28749 [20:52:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 60 FF 07 01 14 9B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 56 18 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 7B 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 9E 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 F3 9E 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4D 70 00 00 35 04 06 00 CF 93 D8 4A 53 F3 90 5F 05 B9 AF 03 23 4E [20:52:04]CheckFolder [20:52:04]dirname=/storage/ofd_packets [20:52:04]CheckFolder done [20:52:04]ProducePacketName [20:52:04]name=ofd_packets/00028749 [20:52:04]NVStorageSaveData ofd_packets/00028749 [20:52:04]File name is /storage/ofd_packets/00028749 [20:52:04]Write 301 bytes [20:52:04]NVStorageSaveData done [20:52:04]OFDSenderStorePacket done [20:52:04]KKMCreateOFDPacket done [20:52:04]NVStorageSaveData kkm_last_timestamp [20:52:04]File name is /storage/kkm_last_timestamp [20:52:04]Write 4 bytes [20:52:04]NVStorageSaveData done [20:52:04]ExternCall_PrintAddStr [20:52:04]wPrintStart [20:52:04]Write to MH i2c: 01 00 00 91 07 98 [20:52:04]Write i2c OK [20:52:04]MH_I2C_Read... [20:52:04]Read from MH i2c: 01 [20:52:04]MH_I2C_Read... [20:52:04]Read from MH i2c: 01 07 00 [20:52:04]MH_I2C_Read... [20:52:04]Read from MH i2c: 01 07 00 91 07 00 00 00 00 00 FF 0F AD [20:52:04]RasterBufferAndPrint [20:52:04]line Счет N : (1)347090 [20:52:04]line ИНН: 02508201610067 [20:52:04]line Контрольно-Кассовый Чек [20:52:04]line ПРОДАЖА [20:52:04]line ТРК (МРК, ГНК) : 32 [20:52:04]line Товар: 2710124130 [20:52:04]line Аи-92-К-5 [20:52:04]line 6.230 * 64.30 [20:52:04]line = 400.59 [20:52:04]line НДС 12% НСП 1% [20:52:04]line > о реализуемом товаре [20:52:04]line ОКРУГЛЕНИЕ: -0.59 [20:52:04]line ИТОГО: 400.00 [20:52:04]line Внесено: 400.00 [20:52:04]line СДАЧА: 0.00 [20:52:04]line НСП 1% : 3.54 [20:52:04]line НДС 12% : 42.54 [20:52:04]line Наличными: 400.00 [20:52:04]line Безнал.: 0.00 [20:52:04]line Место: АЗС № 108 "Партнер Нефть" [20:52:04]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [20:52:05]line СНО: Общий режим [20:52:05]line Чек 23 12.04.2024 20:52 [20:52:05]line Смена: 114 ФФД: 1.0 [20:52:05]line ЗНМ: 0300000027 [20:52:05]line РНМ: 0000138879044617 [20:52:05]line Версия ККМ: 001 [20:52:05]line ФМ: 0000000000963154 [20:52:05]line ФД: 28749 [20:52:05]line ФПД: 228233895891955 [20:52:05]line 1/tax-web-control/client/api/v1/ticket?date=20240412T205203&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28749&fm=228233895891955&tin=02508201610067®Number=0000138879044617&sum=40000 [20:52:05]OFD Sender: Processing packet 28749 [packets to send 8, broken 7] [20:52:05]ProducePacketName [20:52:05]name=ofd_packets/00028749 [20:52:05]OFD Sender: To server: pG, [20:52:05]CommunicateWithHost lk.salyk.kg:30040 [20:52:05]ConnectInit lk.salyk.kg [20:52:05]written 0, free lines is 4095 [20:52:05]Connected sock=10 [20:52:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 60 FF 07 01 14 9B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 56 18 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 7B 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 9E 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 F3 9E 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4D 70 00 00 35 04 06 00 CF 93 D8 4A 53 F3 90 5F 05 B9 AF 03 23 4E [20:52:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 EB FC 47 00 D6 2E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4D 70 00 00 F4 03 04 00 9D 49 19 66 B6 04 01 00 00 E4 99 EA A2 CC D2 B8 25 [20:52:05]CommunicateWithHost err = 0 [20:52:05]CheckOFDResponse [20:52:05]1017 (14) - 77093643461234 [20:52:05]1041 (16) - 0000000000963154 [20:52:05]1040 (4) - 28749 [20:52:05]1012 (4) - 12.04.2024 14:47 [20:52:05]1206 (1) - 0 [20:52:05]OFD Sender: Remove packet 28749 [20:52:05]ProducePacketName [20:52:05]name=ofd_packets/00028749 [20:52:05]NVStorageDeleteData [20:52:05]Write to MH i2c: 01 00 00 BB 07 C2 [20:52:05]Write i2c OK [20:52:05]MH_I2C_Read... [20:52:05]Read from MH i2c: 01 [20:52:05]MH_I2C_Read... [20:52:05]Read from MH i2c: 01 07 00 [20:52:05]MH_I2C_Read... [20:52:05]Read from MH i2c: 01 07 00 BB 07 00 00 00 00 00 D6 0C AB [20:52:05]RasterBufferAndPrint [20:52:05]line [20:52:05]line [20:52:05]line [20:52:05]line [20:52:05]line [20:52:05]written 0, free lines is 3294 [20:52:05]MH_Cut [20:52:05]Write to MH i2c: D1 01 00 C2 07 01 9B [20:52:05]Write i2c OK [20:52:05]MH_I2C_Read... [20:52:05]Read from MH i2c: D1 [20:52:05]MH_I2C_Read... [20:52:05]Read from MH i2c: D1 01 00 [20:52:05]MH_I2C_Read... [20:52:05]Read from MH i2c: D1 01 00 C2 07 00 9A [20:52:05]Write to MH i2c: 01 00 00 C3 07 CA [20:52:05]Write i2c OK [20:52:05]MH_I2C_Read... [20:52:05]OFD Sender: No OFD packet to send [20:52:06]*** Cut start [20:52:06]*** Partial cut [20:52:06]*** CUTSNS_PIN = 1 [20:52:06]*** CUTSNS_PIN = 0 [20:52:06]*** Brake cut motor [20:52:06]Read from MH i2c: 01 [20:52:06]MH_I2C_Read... [20:52:06]*** Stop cut motor [20:52:06]*** Cut end [20:52:06]Read from MH i2c: 01 07 00 [20:52:06]MH_I2C_Read... [20:52:06]Read from MH i2c: 01 07 00 C3 07 00 00 00 00 00 FF 0F DF [20:52:06]process_action close_receipt done [20:52:06]requested_data is exist [20:52:06]produce_requested_data [20:52:06]requested_item fm.sn is exist - process it [20:52:06]wFMCommunicate request_size=4 [20:52:06]MH_SAM_APDU [20:52:06]CAPDU: 80 11 00 00 [20:52:06]Write to MH i2c: E2 08 00 C4 07 80 11 00 00 00 00 00 00 45 [20:52:06]Write i2c OK [20:52:06]MH_I2C_Read... [20:52:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:52:07]Read from MH i2c: E2 [20:52:07]MH_I2C_Read... [20:52:07]Read from MH i2c: E2 17 00 [20:52:07]MH_I2C_Read... [20:52:07]Read from MH i2c: E2 17 00 C4 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 94 [20:52:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:52:07]wFMCommunicate OK [20:52:07]requested_item fd.num is exist - process it [20:52:07]SAM_PROTO_GetFieldsCounters [20:52:07]wFMCommunicate request_size=4 [20:52:07]MH_SAM_APDU [20:52:07]CAPDU: 80 13 00 00 [20:52:07]Write to MH i2c: E2 08 00 C5 07 80 13 00 00 00 00 00 00 48 [20:52:07]Write i2c OK [20:52:07]MH_I2C_Read... [20:52:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:52:07]Read from MH i2c: E2 [20:52:07]MH_I2C_Read... [20:52:07]Read from MH i2c: E2 62 00 [20:52:07]MH_I2C_Read... [20:52:07]Read from MH i2c: E2 62 00 C5 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 4D 70 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 FA [20:52:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 4D 70 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 [20:52:07]wFMCommunicate OK [20:52:07]SAM_PROTO_GetFieldsCounters done [20:52:07]requested_item shift.num is exist - process it [20:52:07]requested_item shift.opened is exist - process it [20:52:07]req_shift_opened [20:52:07]FM_GetShiftState [20:52:07]SAM_PROTO_GetShiftState [20:52:07]wFMCommunicate request_size=4 [20:52:07]MH_SAM_APDU [20:52:07]CAPDU: 80 13 01 00 [20:52:07]Write to MH i2c: E2 08 00 C6 07 80 13 01 00 00 00 00 00 4A [20:52:07]Write i2c OK [20:52:07]MH_I2C_Read... [20:52:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:52:07]Read from MH i2c: E2 [20:52:07]MH_I2C_Read... [20:52:07]Read from MH i2c: E2 0E 00 [20:52:07]MH_I2C_Read... [20:52:07]Read from MH i2c: E2 0E 00 C6 07 00 09 00 01 17 88 19 66 00 00 00 00 90 00 74 [20:52:07]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [20:52:07]wFMCommunicate OK [20:52:07]SAM_PROTO_GetShiftState done [20:52:07]FM_GetShiftState done [20:52:07]req_shift_opened done [20:52:07]requested_item shift.open_date is exist - process it [20:52:07]req_shift_open_date [20:52:07]req_shift_open_date done [20:52:07]produce_requested_data done [20:52:07]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28749,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271} [20:52:07]process_action_free close_receipt [20:52:07]json_value_free [20:52:07]json_value_free done [20:52:07]process_json_proto returns [20:52:07]Send response to host [20:52:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28749,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271}}} [20:52:07]free response buf [20:52:07]execute_script done [20:52:07]execute_script returns [20:52:07]free content buf [20:52:07]Sock 7.Close socket [20:52:07]Sock 7.Thread stoped [20:52:09]accept exits with 9 [20:52:09]New connection [20:52:09]New thread 3066928484 created [20:52:09]Thread 3066785124 joined [20:52:09]Waiting for new connection... [20:52:09] Sock 9.Parse request [20:52:09]Sock 9.Check first char [20:52:09]Sock 9.First char is OK [20:52:09]request: POST /json_proto HTTP/1.0 [20:52:09]Method: POST [20:52:09]URL: /json_proto [20:52:09]Method is POST - this is cgi request [20:52:09]url: /json_proto [20:52:09]query_string will be loaded in cgi processing [20:52:09]execute_cgi json_proto POST (null) [20:52:09]execute_cgi path=json_proto method=POST [20:52:09]POST find Content-Length [20:52:09]Host: 172.17.33.3:8080 [20:52:09]Content-Length: 677 [20:52:09]Content-Type: application/json [20:52:09] [20:52:09]POST finish read [20:52:09]Found Content-Length = 677 [20:52:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347091", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 7.780, "sum" : 500.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:52:09]execute_script... [20:52: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)347091", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 7.780, "sum" : 500.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:52:09]POST & json_proto [20:52:09]process_json_proto [20:52:09]json parsed OK: [20:52:09]protocol is kg_v1.0 [20:52:09]action value=close_receipt [20:52:09]process_action close_receipt [20:52:09]cmd_close_receipt [20:52:09]MH_GetDate [20:52:09]Write to MH i2c: F0 00 00 C7 07 BD [20:52:09]Write i2c OK [20:52:09]MH_I2C_Read... [20:52:09]Read from MH i2c: F0 [20:52:09]MH_I2C_Read... [20:52:09]Read from MH i2c: F0 09 00 [20:52:09]MH_I2C_Read... [20:52:09]Read from MH i2c: F0 09 00 C7 07 00 FA 9E 19 66 23 5B 8F 65 4F [20:52:09]GetLastDocTimeStamp 1712955123 [20:52:09]current date 1712955130 [20:52:09]FM_GetShiftState [20:52:09]SAM_PROTO_GetShiftState [20:52:09]wFMCommunicate request_size=4 [20:52:09]MH_SAM_APDU [20:52:09]CAPDU: 80 13 01 00 [20:52:09]Write to MH i2c: E2 08 00 C8 07 80 13 01 00 00 00 00 00 4C [20:52:09]Write i2c OK [20:52:09]MH_I2C_Read... [20:52:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:52:09]Read from MH i2c: E2 [20:52:09]MH_I2C_Read... [20:52:09]Read from MH i2c: E2 0E 00 [20:52:09]MH_I2C_Read... [20:52:09]Read from MH i2c: E2 0E 00 C8 07 00 09 00 01 17 88 19 66 00 00 00 00 90 00 76 [20:52:09]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [20:52:09]wFMCommunicate OK [20:52:09]SAM_PROTO_GetShiftState done [20:52:09]FM_GetShiftState done [20:52:09]opened in 1712949271 [20:52:09]opened+sec_in_day 1713035671 [20:52:09]quantity*price = 50025 [20:52:09]sum+1 = 50026 [20:52:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 24 12.04.2024 20:52 Смена: 114 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28750 ФПД: 60636456664104 1/tax-web-control/client/api/v1/ticket?date=20240412T205210&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28750&fm=60636456664104&tin=02508201610067®Number=0000138879044617&sum=50000 [20:52:10]StoreToDocumentArchive [20:52:10]shift 114 fd 28750 [20:52:10]save to /storage/0114/doc_00028750 [20:52:10]save last doc name /storage/0114/doc_00028750 to /storage/kkm_last_doc_name [20:52:10]save OK [20:52:10]Clear old archive folders... [20:52:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:52:10]tlvbuf is 011D2F90 [20:52:10]SAM_PROTO_ClearQueue [20:52:10]wFMCommunicate request_size=4 [20:52:10]MH_SAM_APDU [20:52:10]CAPDU: 80 09 00 00 [20:52:10]Write to MH i2c: E2 08 00 D5 07 80 09 00 00 00 00 00 00 4E [20:52:10]Write i2c OK [20:52:10]MH_I2C_Read... [20:52:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:52:10]Read from MH i2c: E2 [20:52:10]MH_I2C_Read... [20:52:10]Read from MH i2c: E2 03 00 [20:52:10]MH_I2C_Read... [20:52:10]Read from MH i2c: E2 03 00 D5 07 00 90 00 50 [20:52:10]RAPDU: 90 00 [20:52:10]wFMCommunicate OK [20:52:10]SAM_PROTO_ClearQueue done [20:52:10]KKMCreateOFDPacket [20:52:10]OFDProtocolAddRootSTLVToBuf [20:52:10]FM_MakeSignedData [20:52:10]FM_MakeSignedData [20:52:10]SAM_PROTO_SignData [20:52:10]wFMCommunicate request_size=4 [20:52:10]MH_SAM_APDU [20:52:10]CAPDU: 80 0D 01 02 [20:52:10]Write to MH i2c: E2 08 00 D6 07 80 0D 01 02 00 00 00 00 56 [20:52:10]Write i2c OK [20:52:10]MH_I2C_Read... [20:52:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:52:10]Read from MH i2c: E2 [20:52:10]MH_I2C_Read... [20:52:10]Read from MH i2c: E2 03 00 [20:52:10]MH_I2C_Read... [20:52:10]Read from MH i2c: E2 03 00 D6 07 00 90 00 51 [20:52:10]RAPDU: 90 00 [20:52:10]wFMCommunicate OK [20:52:10]wFMCommunicate request_size=255 [20:52:10]MH_SAM_APDU [20:52:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 FA 9E 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4E 70 00 00 35 04 06 00 37 [20:52:10]Write to MH i2c: E2 02 01 D7 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 FA 9E 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4E 70 00 00 35 04 06 00 37 00 00 AE [20:52:10]Write i2c OK [20:52:10]MH_I2C_Read... [20:52:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:52:10]OFD Sender: No OFD packet to send [20:52:10]Read from MH i2c: E2 [20:52:10]MH_I2C_Read... [20:52:10]Read from MH i2c: E2 03 00 [20:52:10]MH_I2C_Read... [20:52:10]Read from MH i2c: E2 03 00 D7 07 00 90 00 52 [20:52:10]RAPDU: 90 00 [20:52:10]wFMCommunicate OK [20:52:10]wFMCommunicate request_size=10 [20:52:10]MH_SAM_APDU [20:52:10]CAPDU: 80 0D 02 02 05 26 06 75 BC 28 [20:52:10]Write to MH i2c: E2 0D 00 D8 07 80 0D 02 02 05 00 26 06 75 BC 28 00 00 E8 [20:52:10]Write i2c OK [20:52:10]MH_I2C_Read... [20:52:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:52:10]Read from MH i2c: E2 [20:52:10]MH_I2C_Read... [20:52:10]Read from MH i2c: E2 03 00 [20:52:10]MH_I2C_Read... [20:52:10]Read from MH i2c: E2 03 00 D8 07 00 90 00 53 [20:52:10]RAPDU: 90 00 [20:52:10]wFMCommunicate OK [20:52:10]wFMCommunicate request_size=4 [20:52:10]MH_SAM_APDU [20:52:10]CAPDU: 80 0D 03 02 [20:52:10]Write to MH i2c: E2 08 00 D9 07 80 0D 03 02 00 00 00 00 5B [20:52:10]Write i2c OK [20:52:10]MH_I2C_Read... [20:52:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:52:11]Read from MH i2c: E2 [20:52:11]MH_I2C_Read... [20:52:11]Read from MH i2c: E2 0B 00 [20:52:11]MH_I2C_Read... [20:52:11]Read from MH i2c: E2 0B 00 D9 07 00 E0 0D 22 8B 97 0B A0 C6 90 00 FE [20:52:11]RAPDU: E0 0D 22 8B 97 0B A0 C6 90 00 [20:52:11]wFMCommunicate OK [20:52:11]SAM_PROTO_SignData done [20:52:11]FM_MakeSignedData done [20:52:11]CreateOFDProtocolMessage [20:52:11]wFMCommunicate request_size=4 [20:52:11]MH_SAM_APDU [20:52:11]CAPDU: 80 11 00 00 [20:52:11]Write to MH i2c: E2 08 00 DA 07 80 11 00 00 00 00 00 00 5B [20:52:11]Write i2c OK [20:52:11]MH_I2C_Read... [20:52:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:52:11]Read from MH i2c: E2 [20:52:11]MH_I2C_Read... [20:52:11]Read from MH i2c: E2 17 00 [20:52:11]MH_I2C_Read... [20:52:11]Read from MH i2c: E2 17 00 DA 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 AA [20:52:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:52:11]wFMCommunicate OK [20:52:11]CreateOFDProtocolMessage done [20:52:11]OFDSenderStorePacket 28750 [20:52:11]StoreOFDPacket docnum=28750 [20:52:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 03 0A 07 01 24 4D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 FA 9E 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4E 70 00 00 35 04 06 00 37 26 06 75 BC 28 E0 0D 22 8B 97 0B A0 C6 [20:52:11]CheckFolder [20:52:11]dirname=/storage/ofd_packets [20:52:11]CheckFolder done [20:52:11]ProducePacketName [20:52:11]name=ofd_packets/00028750 [20:52:11]NVStorageSaveData ofd_packets/00028750 [20:52:11]File name is /storage/ofd_packets/00028750 [20:52:11]Write 301 bytes [20:52:11]NVStorageSaveData done [20:52:11]OFDSenderStorePacket done [20:52:11]KKMCreateOFDPacket done [20:52:11]NVStorageSaveData kkm_last_timestamp [20:52:11]File name is /storage/kkm_last_timestamp [20:52:11]Write 4 bytes [20:52:11]NVStorageSaveData done [20:52:11]ExternCall_PrintAddStr [20:52:11]wPrintStart [20:52:11]Write to MH i2c: 01 00 00 DB 07 E2 [20:52:11]Write i2c OK [20:52:11]MH_I2C_Read... [20:52:11]Read from MH i2c: 01 [20:52:11]MH_I2C_Read... [20:52:11]Read from MH i2c: 01 07 00 [20:52:11]MH_I2C_Read... [20:52:11]Read from MH i2c: 01 07 00 DB 07 00 00 00 00 00 FF 0F F7 [20:52:11]RasterBufferAndPrint [20:52:11]line Счет N : (1)347091 [20:52:11]line ИНН: 02508201610067 [20:52:11]line Контрольно-Кассовый Чек [20:52:11]line ПРОДАЖА [20:52:11]line ТРК (МРК, ГНК) : 13 [20:52:11]line Товар: 2710124130 [20:52:11]line Аи-92-К-5 [20:52:11]line 7.780 * 64.30 [20:52:11]line = 500.25 [20:52:11]line НДС 12% НСП 1% [20:52:11]line > о реализуемом товаре [20:52:11]line ОКРУГЛЕНИЕ: -0.25 [20:52:11]line ИТОГО: 500.00 [20:52:11]line Внесено: 500.00 [20:52:11]line СДАЧА: 0.00 [20:52:11]line НСП 1% : 4.43 [20:52:11]line НДС 12% : 53.12 [20:52:11]line Наличными: 500.00 [20:52:11]line Безнал.: 0.00 [20:52:11]line Место: АЗС № 108 "Партнер Нефть" [20:52:11]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [20:52:11]line СНО: Общий режим [20:52:11]line Чек 24 12.04.2024 20:52 [20:52:11]line Смена: 114 ФФД: 1.0 [20:52:11]line ЗНМ: 0300000027 [20:52:11]line РНМ: 0000138879044617 [20:52:11]line Версия ККМ: 001 [20:52:11]line ФМ: 0000000000963154 [20:52:11]line ФД: 28750 [20:52:11]line ФПД: 60636456664104 [20:52:11]line 1/tax-web-control/client/api/v1/ticket?date=20240412T205210&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28750&fm=60636456664104&tin=02508201610067®Number=0000138879044617&sum=50000 [20:52:11]written 0, free lines is 4095 [20:52:11]OFD Sender: Processing packet 28750 [packets to send 8, broken 7] [20:52:11]ProducePacketName [20:52:11]name=ofd_packets/00028750 [20:52:11]OFD Sender: To server: pG, [20:52:11]CommunicateWithHost lk.salyk.kg:30040 [20:52:11]ConnectInit lk.salyk.kg [20:52:11]Connected sock=10 [20:52:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 03 0A 07 01 24 4D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 FA 9E 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4E 70 00 00 35 04 06 00 37 26 06 75 BC 28 E0 0D 22 8B 97 0B A0 C6 [20:52:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 9B 31 47 00 47 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 30 39 36 33 31 35 34 10 04 04 00 4E 70 00 00 F4 03 04 00 A3 49 19 66 B6 04 01 00 00 C4 1F 68 89 BA E0 FC 0B [20:52:11]CommunicateWithHost err = 0 [20:52:11]CheckOFDResponse [20:52:11]1017 (14) - 77093643461234 [20:52:11]1041 (16) - 0000000000963154 [20:52:11]1040 (4) - 28750 [20:52:11]1012 (4) - 12.04.2024 14:48 [20:52:11]1206 (1) - 0 [20:52:11]OFD Sender: Remove packet 28750 [20:52:11]ProducePacketName [20:52:11]name=ofd_packets/00028750 [20:52:11]NVStorageDeleteData [20:52:11]Write to MH i2c: 01 00 00 05 08 0D [20:52:11]Write i2c OK [20:52:11]MH_I2C_Read... [20:52:11]Read from MH i2c: 01 [20:52:11]MH_I2C_Read... [20:52:11]Read from MH i2c: 01 07 00 [20:52:11]MH_I2C_Read... [20:52:11]Read from MH i2c: 01 07 00 05 08 00 00 00 00 00 D3 0C F3 [20:52:11]RasterBufferAndPrint [20:52:11]line [20:52:11]line [20:52:11]line [20:52:11]line [20:52:11]line [20:52:11]written 0, free lines is 3299 [20:52:11]MH_Cut [20:52:11]Write to MH i2c: D1 01 00 0C 08 01 E6 [20:52:11]Write i2c OK [20:52:11]MH_I2C_Read... [20:52:11]Read from MH i2c: D1 [20:52:11]MH_I2C_Read... [20:52:11]Read from MH i2c: D1 01 00 [20:52:11]MH_I2C_Read... [20:52:11]Read from MH i2c: D1 01 00 0C 08 00 E5 [20:52:11]Write to MH i2c: 01 00 00 0D 08 15 [20:52:11]Write i2c OK [20:52:11]MH_I2C_Read... [20:52:11]OFD Sender: No OFD packet to send [20:52:12]*** Cut start [20:52:12]*** Partial cut [20:52:12]*** CUTSNS_PIN = 1 [20:52:12]*** CUTSNS_PIN = 0 [20:52:12]*** Brake cut motor [20:52:12]Read from MH i2c: 01 [20:52:12]MH_I2C_Read... [20:52:12]*** Stop cut motor [20:52:12]*** Cut end [20:52:12]Read from MH i2c: 01 07 00 [20:52:12]MH_I2C_Read... [20:52:12]Read from MH i2c: 01 07 00 0D 08 00 00 00 00 00 FF 0F 2A [20:52:12]process_action close_receipt done [20:52:12]requested_data is exist [20:52:12]produce_requested_data [20:52:12]requested_item fm.sn is exist - process it [20:52:12]wFMCommunicate request_size=4 [20:52:12]MH_SAM_APDU [20:52:12]CAPDU: 80 11 00 00 [20:52:12]Write to MH i2c: E2 08 00 0E 08 80 11 00 00 00 00 00 00 90 [20:52:12]Write i2c OK [20:52:12]MH_I2C_Read... [20:52:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:52:13]Read from MH i2c: E2 [20:52:13]MH_I2C_Read... [20:52:13]Read from MH i2c: E2 17 00 [20:52:13]MH_I2C_Read... [20:52:13]Read from MH i2c: E2 17 00 0E 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 DF [20:52:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:52:13]wFMCommunicate OK [20:52:13]requested_item fd.num is exist - process it [20:52:13]SAM_PROTO_GetFieldsCounters [20:52:13]wFMCommunicate request_size=4 [20:52:13]MH_SAM_APDU [20:52:13]CAPDU: 80 13 00 00 [20:52:13]Write to MH i2c: E2 08 00 0F 08 80 13 00 00 00 00 00 00 93 [20:52:13]Write i2c OK [20:52:13]MH_I2C_Read... [20:52:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:52:13]Read from MH i2c: E2 [20:52:13]MH_I2C_Read... [20:52:13]Read from MH i2c: E2 62 00 [20:52:13]MH_I2C_Read... [20:52:13]Read from MH i2c: E2 62 00 0F 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 4E 70 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 49 [20:52:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 4E 70 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 [20:52:13]wFMCommunicate OK [20:52:13]SAM_PROTO_GetFieldsCounters done [20:52:13]requested_item shift.num is exist - process it [20:52:13]requested_item shift.opened is exist - process it [20:52:13]req_shift_opened [20:52:13]FM_GetShiftState [20:52:13]SAM_PROTO_GetShiftState [20:52:13]wFMCommunicate request_size=4 [20:52:13]MH_SAM_APDU [20:52:13]CAPDU: 80 13 01 00 [20:52:13]Write to MH i2c: E2 08 00 10 08 80 13 01 00 00 00 00 00 95 [20:52:13]Write i2c OK [20:52:13]MH_I2C_Read... [20:52:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:52:13]Read from MH i2c: E2 [20:52:13]MH_I2C_Read... [20:52:13]Read from MH i2c: E2 0E 00 [20:52:13]MH_I2C_Read... [20:52:13]Read from MH i2c: E2 0E 00 10 08 00 09 00 01 17 88 19 66 00 00 00 00 90 00 BF [20:52:13]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [20:52:13]wFMCommunicate OK [20:52:13]SAM_PROTO_GetShiftState done [20:52:13]FM_GetShiftState done [20:52:13]req_shift_opened done [20:52:13]requested_item shift.open_date is exist - process it [20:52:13]req_shift_open_date [20:52:13]req_shift_open_date done [20:52:13]produce_requested_data done [20:52:13]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28750,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271} [20:52:13]process_action_free close_receipt [20:52:13]json_value_free [20:52:13]json_value_free done [20:52:13]process_json_proto returns [20:52:13]Send response to host [20:52:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28750,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271}}} [20:52:13]free response buf [20:52:13]execute_script done [20:52:13]execute_script returns [20:52:13]free content buf [20:52:13]Sock 9.Close socket [20:52:13]Sock 9.Thread stoped [20:52:16]OFD Sender: No OFD packet to send [20:52:21]OFD Sender: No OFD packet to send [20:52:26]OFD Sender: No OFD packet to send [20:52:31]OFD Sender: No OFD packet to send [20:52:36]OFD Sender: No OFD packet to send [20:52:41]OFD Sender: No OFD packet to send [20:52:46]OFD Sender: No OFD packet to send [20:52:51]OFD Sender: No OFD packet to send [20:52:56]OFD Sender: No OFD packet to send [20:53:01]OFD Sender: No OFD packet to send [20:53:06]OFD Sender: No OFD packet to send [20:53:11]OFD Sender: No OFD packet to send [20:53:17]OFD Sender: No OFD packet to send [20:53:22]OFD Sender: No OFD packet to send [20:53:27]OFD Sender: No OFD packet to send [20:53:28]accept exits with 7 [20:53:28]New connection [20:53:28]New thread 3066785124 created [20:53:28]Thread 3066928484 joined [20:53:28]Waiting for new connection... [20:53:28] Sock 7.Parse request [20:53:28]Sock 7.Check first char [20:53:28]Sock 7.First char is OK [20:53:28]request: POST /json_proto HTTP/1.0 [20:53:28]Method: POST [20:53:28]URL: /json_proto [20:53:28]Method is POST - this is cgi request [20:53:28]url: /json_proto [20:53:28]query_string will be loaded in cgi processing [20:53:28]execute_cgi json_proto POST (null) [20:53:28]execute_cgi path=json_proto method=POST [20:53:28]POST find Content-Length [20:53:28]Host: 172.17.33.3:8080 [20:53:28]Content-Length: 685 [20:53:28]Content-Type: application/json [20:53:28] [20:53:28]POST finish read [20:53:28]Found Content-Length = 685 [20:53:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347088", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 39.520, "sum" : 1300.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1300.00, "total" : 1300.00, "payments": [ { "type": 0, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:53:28]execute_script... [20:53: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)347088", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 39.520, "sum" : 1300.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1300.00, "total" : 1300.00, "payments": [ { "type": 0, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:53:28]POST & json_proto [20:53:28]process_json_proto [20:53:28]json parsed OK: [20:53:28]protocol is kg_v1.0 [20:53:28]action value=close_receipt [20:53:28]process_action close_receipt [20:53:28]cmd_close_receipt [20:53:28]MH_GetDate [20:53:28]Write to MH i2c: F0 00 00 11 08 08 [20:53:28]Write i2c OK [20:53:28]MH_I2C_Read... [20:53:28]Read from MH i2c: F0 [20:53:28]MH_I2C_Read... [20:53:28]Read from MH i2c: F0 09 00 [20:53:28]MH_I2C_Read... [20:53:28]Read from MH i2c: F0 09 00 11 08 00 49 9F 19 66 23 5B 8F 65 EA [20:53:28]GetLastDocTimeStamp 1712955130 [20:53:28]current date 1712955209 [20:53:28]FM_GetShiftState [20:53:28]SAM_PROTO_GetShiftState [20:53:28]wFMCommunicate request_size=4 [20:53:28]MH_SAM_APDU [20:53:28]CAPDU: 80 13 01 00 [20:53:28]Write to MH i2c: E2 08 00 12 08 80 13 01 00 00 00 00 00 97 [20:53:28]Write i2c OK [20:53:28]MH_I2C_Read... [20:53:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:53:28]Read from MH i2c: E2 [20:53:28]MH_I2C_Read... [20:53:28]Read from MH i2c: E2 0E 00 [20:53:28]MH_I2C_Read... [20:53:28]Read from MH i2c: E2 0E 00 12 08 00 09 00 01 17 88 19 66 00 00 00 00 90 00 C1 [20:53:28]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [20:53:28]wFMCommunicate OK [20:53:28]SAM_PROTO_GetShiftState done [20:53:28]FM_GetShiftState done [20:53:28]opened in 1712949271 [20:53:28]opened+sec_in_day 1713035671 [20:53:28]quantity*price = 130020 [20:53:28]sum+1 = 130022 [20:53:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 1300.00 Внесено: 1300.00 СДАЧА: 0.00 НСП 1% : 11.51 НДС 12% : 138.07 Наличными: 1300.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 25 12.04.2024 20:53 Смена: 114 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28751 ФПД: 140983848330509 1/tax-web-control/client/api/v1/ticket?date=20240412T205330&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28751&fm=140983848330509&tin=02508201610067®Number=0000138879044617&sum=130000 [20:53:30]StoreToDocumentArchive [20:53:30]shift 114 fd 28751 [20:53:30]save to /storage/0114/doc_00028751 [20:53:30]save last doc name /storage/0114/doc_00028751 to /storage/kkm_last_doc_name [20:53:30]save OK [20:53:30]Clear old archive folders... [20:53:30]ProcessDocumentItem done err = 0, tmpTLVsize=250 [20:53:30]tlvbuf is 012199B0 [20:53:30]SAM_PROTO_ClearQueue [20:53:30]wFMCommunicate request_size=4 [20:53:30]MH_SAM_APDU [20:53:30]CAPDU: 80 09 00 00 [20:53:30]Write to MH i2c: E2 08 00 1F 08 80 09 00 00 00 00 00 00 99 [20:53:30]Write i2c OK [20:53:30]MH_I2C_Read... [20:53:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:53:30]Read from MH i2c: E2 [20:53:30]MH_I2C_Read... [20:53:30]Read from MH i2c: E2 03 00 [20:53:30]MH_I2C_Read... [20:53:30]Read from MH i2c: E2 03 00 1F 08 00 90 00 9B [20:53:30]RAPDU: 90 00 [20:53:30]wFMCommunicate OK [20:53:30]SAM_PROTO_ClearQueue done [20:53:30]KKMCreateOFDPacket [20:53:30]OFDProtocolAddRootSTLVToBuf [20:53:30]FM_MakeSignedData [20:53:30]FM_MakeSignedData [20:53:30]SAM_PROTO_SignData [20:53:30]wFMCommunicate request_size=4 [20:53:30]MH_SAM_APDU [20:53:30]CAPDU: 80 0D 01 02 [20:53:30]Write to MH i2c: E2 08 00 20 08 80 0D 01 02 00 00 00 00 A1 [20:53:30]Write i2c OK [20:53:30]MH_I2C_Read... [20:53:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:53:30]Read from MH i2c: E2 [20:53:30]MH_I2C_Read... [20:53:30]Read from MH i2c: E2 03 00 [20:53:30]MH_I2C_Read... [20:53:30]Read from MH i2c: E2 03 00 20 08 00 90 00 9C [20:53:30]RAPDU: 90 00 [20:53:30]wFMCommunicate OK [20:53:30]wFMCommunicate request_size=255 [20:53:30]MH_SAM_APDU [20:53:30]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 60 9A 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 E5 FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 4A 9F 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4F 70 00 00 35 04 06 00 80 39 [20:53:30]Write to MH i2c: E2 02 01 21 08 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 60 9A 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 E5 FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 4A 9F 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4F 70 00 00 35 04 06 00 80 39 00 00 E3 [20:53:30]Write i2c OK [20:53:30]MH_I2C_Read... [20:53:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:53:30]Read from MH i2c: E2 [20:53:30]MH_I2C_Read... [20:53:30]Read from MH i2c: E2 03 00 [20:53:30]MH_I2C_Read... [20:53:30]Read from MH i2c: E2 03 00 21 08 00 90 00 9D [20:53:30]RAPDU: 90 00 [20:53:30]wFMCommunicate OK [20:53:30]wFMCommunicate request_size=9 [20:53:30]MH_SAM_APDU [20:53:30]CAPDU: 80 0D 02 02 04 5C 32 E5 0D [20:53:30]Write to MH i2c: E2 0C 00 22 08 80 0D 02 02 04 00 5C 32 E5 0D 00 00 2C [20:53:30]Write i2c OK [20:53:30]MH_I2C_Read... [20:53:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:53:30]Read from MH i2c: E2 [20:53:30]MH_I2C_Read... [20:53:30]Read from MH i2c: E2 03 00 [20:53:30]MH_I2C_Read... [20:53:30]Read from MH i2c: E2 03 00 22 08 00 90 00 9E [20:53:30]RAPDU: 90 00 [20:53:30]wFMCommunicate OK [20:53:30]wFMCommunicate request_size=4 [20:53:30]MH_SAM_APDU [20:53:30]CAPDU: 80 0D 03 02 [20:53:30]Write to MH i2c: E2 08 00 23 08 80 0D 03 02 00 00 00 00 A6 [20:53:30]Write i2c OK [20:53:30]MH_I2C_Read... [20:53:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:53:30]Read from MH i2c: E2 [20:53:30]MH_I2C_Read... [20:53:30]Read from MH i2c: E2 0B 00 [20:53:30]MH_I2C_Read... [20:53:30]Read from MH i2c: E2 0B 00 23 08 00 58 C4 C3 F9 6A B2 97 78 90 00 AA [20:53:30]RAPDU: 58 C4 C3 F9 6A B2 97 78 90 00 [20:53:30]wFMCommunicate OK [20:53:30]SAM_PROTO_SignData done [20:53:30]FM_MakeSignedData done [20:53:30]CreateOFDProtocolMessage [20:53:30]wFMCommunicate request_size=4 [20:53:30]MH_SAM_APDU [20:53:30]CAPDU: 80 11 00 00 [20:53:30]Write to MH i2c: E2 08 00 24 08 80 11 00 00 00 00 00 00 A6 [20:53:30]Write i2c OK [20:53:30]MH_I2C_Read... [20:53:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:53:30]Read from MH i2c: E2 [20:53:30]MH_I2C_Read... [20:53:30]Read from MH i2c: E2 17 00 [20:53:30]MH_I2C_Read... [20:53:30]Read from MH i2c: E2 17 00 24 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 F5 [20:53:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:53:30]wFMCommunicate OK [20:53:30]CreateOFDProtocolMessage done [20:53:30]OFDSenderStorePacket 28751 [20:53:30]StoreOFDPacket docnum=28751 [20:53:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 BA E4 06 01 AF 5A 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 60 9A 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 E5 FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 4A 9F 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4F 70 00 00 35 04 06 00 80 39 5C 32 E5 0D 58 C4 C3 F9 6A B2 97 78 [20:53:30]CheckFolder [20:53:30]dirname=/storage/ofd_packets [20:53:30]CheckFolder done [20:53:30]ProducePacketName [20:53:30]name=ofd_packets/00028751 [20:53:30]NVStorageSaveData ofd_packets/00028751 [20:53:30]File name is /storage/ofd_packets/00028751 [20:53:30]Write 300 bytes [20:53:30]NVStorageSaveData done [20:53:30]OFDSenderStorePacket done [20:53:30]KKMCreateOFDPacket done [20:53:30]NVStorageSaveData kkm_last_timestamp [20:53:30]File name is /storage/kkm_last_timestamp [20:53:30]Write 4 bytes [20:53:30]NVStorageSaveData done [20:53:30]ExternCall_PrintAddStr [20:53:30]wPrintStart [20:53:30]Write to MH i2c: 01 00 00 25 08 2D [20:53:30]Write i2c OK [20:53:30]MH_I2C_Read... [20:53:30]Read from MH i2c: 01 [20:53:30]MH_I2C_Read... [20:53:30]Read from MH i2c: 01 07 00 [20:53:30]MH_I2C_Read... [20:53:30]Read from MH i2c: 01 07 00 25 08 00 00 00 00 00 FF 0F 42 [20:53:30]RasterBufferAndPrint [20:53:30]line Счет N : (1)347088 [20:53:30]line ИНН: 02508201610067 [20:53:30]line Контрольно-Кассовый Чек [20:53:30]line ПРОДАЖА [20:53:30]line ТРК (МРК, ГНК) : 71 [20:53:30]line Товар: 2711129700 [20:53:30]line ГАЗ-К-5 [20:53:30]line 39.520 * 32.90 [20:53:30]line = 1300.21 [20:53:30]line НДС 12% НСП 1% [20:53:30]line > о реализуемом товаре [20:53:30]line ОКРУГЛЕНИЕ: -0.21 [20:53:30]line ИТОГО: 1300.00 [20:53:30]line Внесено: 1300.00 [20:53:30]line СДАЧА: 0.00 [20:53:30]line НСП 1% : 11.51 [20:53:30]line НДС 12% : 138.07 [20:53:30]line Наличными: 1300.00 [20:53:30]line Безнал.: 0.00 [20:53:30]line Место: АЗС № 108 "Партнер Нефть" [20:53:30]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [20:53:30]line СНО: Общий режим [20:53:30]line Чек 25 12.04.2024 20:53 [20:53:30]line Смена: 114 ФФД: 1.0 [20:53:30]line ЗНМ: 0300000027 [20:53:30]line РНМ: 0000138879044617 [20:53:30]line Версия ККМ: 001 [20:53:30]line ФМ: 0000000000963154 [20:53:30]line ФД: 28751 [20:53:30]line ФПД: 140983848330509 [20:53:30]line 1/tax-web-control/client/api/v1/ticket?date=20240412T205330&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28751&fm=140983848330509&tin=02508201610067®Number=0000138879044617&sum=130000 [20:53:30]OFD Sender: Processing packet 28751 [packets to send 8, broken 7] [20:53:30]ProducePacketName [20:53:30]name=ofd_packets/00028751 [20:53:30]OFD Sender: To server: pG, [20:53:30]CommunicateWithHost lk.salyk.kg:30040 [20:53:30]ConnectInit lk.salyk.kg [20:53:30]written 0, free lines is 4095 [20:53:30]Connected sock=11 [20:53:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 BA E4 06 01 AF 5A 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 60 9A 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 E5 FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 4A 9F 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4F 70 00 00 35 04 06 00 80 39 5C 32 E5 0D 58 C4 C3 F9 6A B2 97 78 [20:53:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 1A 79 47 00 EA 19 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4F 70 00 00 F4 03 04 00 F3 49 19 66 B6 04 01 00 00 47 69 49 2C 40 55 24 5E [20:53:31]CommunicateWithHost err = 0 [20:53:31]CheckOFDResponse [20:53:31]1017 (14) - 77093643461234 [20:53:31]1041 (16) - 0000000000963154 [20:53:31]1040 (4) - 28751 [20:53:31]1012 (4) - 12.04.2024 14:49 [20:53:31]1206 (1) - 0 [20:53:31]OFD Sender: Remove packet 28751 [20:53:31]ProducePacketName [20:53:31]name=ofd_packets/00028751 [20:53:31]NVStorageDeleteData [20:53:31]Write to MH i2c: 01 00 00 4F 08 57 [20:53:31]Write i2c OK [20:53:31]MH_I2C_Read... [20:53:31]Read from MH i2c: 01 [20:53:31]MH_I2C_Read... [20:53:31]Read from MH i2c: 01 07 00 [20:53:31]MH_I2C_Read... [20:53:31]Read from MH i2c: 01 07 00 4F 08 00 00 00 00 00 C7 0C 31 [20:53:31]RasterBufferAndPrint [20:53:31]line [20:53:31]line [20:53:31]line [20:53:31]line [20:53:31]line [20:53:31]written 0, free lines is 3274 [20:53:31]MH_Cut [20:53:31]Write to MH i2c: D1 01 00 56 08 01 30 [20:53:31]Write i2c OK [20:53:31]MH_I2C_Read... [20:53:31]Read from MH i2c: D1 [20:53:31]MH_I2C_Read... [20:53:31]Read from MH i2c: D1 01 00 [20:53:31]MH_I2C_Read... [20:53:31]Read from MH i2c: D1 01 00 56 08 00 2F [20:53:31]Write to MH i2c: 01 00 00 57 08 5F [20:53:31]Write i2c OK [20:53:31]MH_I2C_Read... [20:53:31]OFD Sender: No OFD packet to send [20:53:32]*** Cut start [20:53:32]*** Partial cut [20:53:32]*** CUTSNS_PIN = 1 [20:53:32]*** CUTSNS_PIN = 0 [20:53:32]*** Brake cut motor [20:53:32]Read from MH i2c: 01 [20:53:32]MH_I2C_Read... [20:53:32]*** Stop cut motor [20:53:32]*** Cut end [20:53:32]Read from MH i2c: 01 07 00 [20:53:32]MH_I2C_Read... [20:53:32]Read from MH i2c: 01 07 00 57 08 00 00 00 00 00 FF 0F 74 [20:53:32]process_action close_receipt done [20:53:32]requested_data is exist [20:53:32]produce_requested_data [20:53:32]requested_item fm.sn is exist - process it [20:53:32]wFMCommunicate request_size=4 [20:53:32]MH_SAM_APDU [20:53:32]CAPDU: 80 11 00 00 [20:53:32]Write to MH i2c: E2 08 00 58 08 80 11 00 00 00 00 00 00 DA [20:53:32]Write i2c OK [20:53:32]MH_I2C_Read... [20:53:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:53:32]Read from MH i2c: E2 [20:53:32]MH_I2C_Read... [20:53:32]Read from MH i2c: E2 17 00 [20:53:32]MH_I2C_Read... [20:53:32]Read from MH i2c: E2 17 00 58 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 29 [20:53:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:53:32]wFMCommunicate OK [20:53:32]requested_item fd.num is exist - process it [20:53:32]SAM_PROTO_GetFieldsCounters [20:53:32]wFMCommunicate request_size=4 [20:53:32]MH_SAM_APDU [20:53:32]CAPDU: 80 13 00 00 [20:53:32]Write to MH i2c: E2 08 00 59 08 80 13 00 00 00 00 00 00 DD [20:53:32]Write i2c OK [20:53:32]MH_I2C_Read... [20:53:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:53:32]Read from MH i2c: E2 [20:53:32]MH_I2C_Read... [20:53:32]Read from MH i2c: E2 62 00 [20:53:32]MH_I2C_Read... [20:53:32]Read from MH i2c: E2 62 00 59 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 4F 70 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 97 [20:53:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 4F 70 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 [20:53:32]wFMCommunicate OK [20:53:32]SAM_PROTO_GetFieldsCounters done [20:53:32]requested_item shift.num is exist - process it [20:53:32]requested_item shift.opened is exist - process it [20:53:32]req_shift_opened [20:53:32]FM_GetShiftState [20:53:32]SAM_PROTO_GetShiftState [20:53:32]wFMCommunicate request_size=4 [20:53:32]MH_SAM_APDU [20:53:32]CAPDU: 80 13 01 00 [20:53:32]Write to MH i2c: E2 08 00 5A 08 80 13 01 00 00 00 00 00 DF [20:53:32]Write i2c OK [20:53:32]MH_I2C_Read... [20:53:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:53:32]Read from MH i2c: E2 [20:53:32]MH_I2C_Read... [20:53:32]Read from MH i2c: E2 0E 00 [20:53:32]MH_I2C_Read... [20:53:32]Read from MH i2c: E2 0E 00 5A 08 00 09 00 01 17 88 19 66 00 00 00 00 90 00 09 [20:53:33]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [20:53:33]wFMCommunicate OK [20:53:33]SAM_PROTO_GetShiftState done [20:53:33]FM_GetShiftState done [20:53:33]req_shift_opened done [20:53:33]requested_item shift.open_date is exist - process it [20:53:33]req_shift_open_date [20:53:33]req_shift_open_date done [20:53:33]produce_requested_data done [20:53:33]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28751,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271} [20:53:33]process_action_free close_receipt [20:53:33]json_value_free [20:53:33]json_value_free done [20:53:33]process_json_proto returns [20:53:33]Send response to host [20:53:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28751,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271}}} [20:53:33]free response buf [20:53:33]execute_script done [20:53:33]execute_script returns [20:53:33]free content buf [20:53:33]Sock 7.Close socket [20:53:33]Sock 7.Thread stoped [20:53:33]int [20:53:33]Write to MH i2c: 01 00 00 5B 08 63 [20:53:33]*** FLAG_PRN_PAP1 set [20:53:33]Write i2c OK [20:53:33]MH_I2C_Read... [20:53:33]Read from MH i2c: 01 [20:53:33]MH_I2C_Read... [20:53:33]Read from MH i2c: 01 07 00 [20:53:33]MH_I2C_Read... [20:53:33]Read from MH i2c: 01 07 00 5B 08 00 01 00 00 00 FF 0F 79 [20:53:33]state=0 [20:53:33]No paper [20:53:34]int [20:53:34]Write to MH i2c: 01 00 00 5C 08 64 [20:53:34]*** FLAG_PRN_PAP2 set [20:53:34]Write i2c OK [20:53:34]MH_I2C_Read... [20:53:34]Read from MH i2c: 01 [20:53:34]MH_I2C_Read... [20:53:34]Read from MH i2c: 01 07 00 [20:53:34]MH_I2C_Read... [20:53:34]Read from MH i2c: 01 07 00 5C 08 00 03 00 00 00 FF 0F 7C [20:53:34]state=0 [20:53:34]No paper [20:53:34]Cover opened [20:53:36]int [20:53:36]Write to MH i2c: 01 00 00 5D 08 65 [20:53:36]*** FLAG_PRN_PAP2 reset [20:53:36]Write i2c OK [20:53:36]MH_I2C_Read... [20:53:36]Read from MH i2c: 01 [20:53:36]MH_I2C_Read... [20:53:36]Read from MH i2c: 01 07 00 [20:53:36]MH_I2C_Read... [20:53:36]Read from MH i2c: 01 07 00 5D 08 00 01 00 00 00 FF 0F 7B [20:53:36]state=3 [20:53:36]No paper [20:53:36]Cover closed [20:53:36]int [20:53:36]Write to MH i2c: 01 00 00 5E 08 66 [20:53:36]*** FLAG_PRN_PAP1 reset [20:53:36]Write i2c OK [20:53:36]MH_I2C_Read... [20:53:36]Read from MH i2c: 01 [20:53:36]MH_I2C_Read... [20:53:36]Read from MH i2c: 01 07 00 [20:53:36]MH_I2C_Read... [20:53:36]Read from MH i2c: 01 07 00 5E 08 00 00 00 00 00 FF 0F 7B [20:53:36]state=0 [20:53:36]OFD Sender: No OFD packet to send [20:53:41]OFD Sender: No OFD packet to send [20:53:46]OFD Sender: No OFD packet to send [20:53:51]OFD Sender: No OFD packet to send [20:53:56]OFD Sender: No OFD packet to send [20:54:01]OFD Sender: No OFD packet to send [20:54:06]OFD Sender: No OFD packet to send [20:54:11]OFD Sender: No OFD packet to send [20:54:16]OFD Sender: No OFD packet to send [20:54:21]OFD Sender: No OFD packet to send [20:54:26]OFD Sender: No OFD packet to send [20:54:31]OFD Sender: No OFD packet to send [20:54:36]OFD Sender: No OFD packet to send [20:54:41]OFD Sender: No OFD packet to send [20:54:46]OFD Sender: No OFD packet to send [20:54:51]OFD Sender: No OFD packet to send [20:54:56]OFD Sender: No OFD packet to send [20:55:01]OFD Sender: No OFD packet to send [20:55:06]OFD Sender: No OFD packet to send [20:55:11]OFD Sender: No OFD packet to send [20:55:16]OFD Sender: No OFD packet to send [20:55:21]OFD Sender: No OFD packet to send [20:55:26]OFD Sender: No OFD packet to send [20:55:31]OFD Sender: No OFD packet to send [20:55:36]OFD Sender: No OFD packet to send [20:55:41]OFD Sender: No OFD packet to send [20:55:46]OFD Sender: No OFD packet to send [20:55:51]OFD Sender: No OFD packet to send [20:55:56]OFD Sender: No OFD packet to send [20:56:01]OFD Sender: No OFD packet to send [20:56:06]OFD Sender: No OFD packet to send [20:56:11]OFD Sender: No OFD packet to send [20:56:16]OFD Sender: No OFD packet to send [20:56:21]OFD Sender: No OFD packet to send [20:56:26]OFD Sender: No OFD packet to send [20:56:31]OFD Sender: No OFD packet to send [20:56:36]OFD Sender: No OFD packet to send [20:56:41]OFD Sender: No OFD packet to send [20:56:46]OFD Sender: No OFD packet to send [20:56:47]accept exits with 9 [20:56:47]New connection [20:56:47]New thread 3066928484 created [20:56:47]Thread 3066785124 joined [20:56:47]Waiting for new connection... [20:56:47] Sock 9.Parse request [20:56:47]Sock 9.Check first char [20:56:47]Sock 9.First char is OK [20:56:47]request: POST /json_proto HTTP/1.0 [20:56:47]Method: POST [20:56:47]URL: /json_proto [20:56:47]Method is POST - this is cgi request [20:56:47]url: /json_proto [20:56:47]query_string will be loaded in cgi processing [20:56:47]execute_cgi json_proto POST (null) [20:56:47]execute_cgi path=json_proto method=POST [20:56:47]POST find Content-Length [20:56:47]Host: 172.17.33.3:8080 [20:56:47]Content-Length: 677 [20:56:47]Content-Type: application/json [20:56:47] [20:56:47]POST finish read [20:56:47]Found Content-Length = 677 [20:56:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347092", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 7.780, "sum" : 500.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:56:47]execute_script... [20:56:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347092", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 7.780, "sum" : 500.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:56:47]POST & json_proto [20:56:47]process_json_proto [20:56:47]json parsed OK: [20:56:47]protocol is kg_v1.0 [20:56:47]action value=close_receipt [20:56:47]process_action close_receipt [20:56:47]cmd_close_receipt [20:56:47]MH_GetDate [20:56:47]Write to MH i2c: F0 00 00 5F 08 56 [20:56:47]Write i2c OK [20:56:47]MH_I2C_Read... [20:56:47]Read from MH i2c: F0 [20:56:47]MH_I2C_Read... [20:56:47]Read from MH i2c: F0 09 00 [20:56:47]MH_I2C_Read... [20:56:47]Read from MH i2c: F0 09 00 5F 08 00 10 A0 19 66 23 5B 8F 65 00 [20:56:47]GetLastDocTimeStamp 1712955210 [20:56:47]current date 1712955408 [20:56:47]FM_GetShiftState [20:56:47]SAM_PROTO_GetShiftState [20:56:47]wFMCommunicate request_size=4 [20:56:47]MH_SAM_APDU [20:56:47]CAPDU: 80 13 01 00 [20:56:47]Write to MH i2c: E2 08 00 60 08 80 13 01 00 00 00 00 00 E5 [20:56:47]Write i2c OK [20:56:47]MH_I2C_Read... [20:56:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:56:47]Read from MH i2c: E2 [20:56:47]MH_I2C_Read... [20:56:47]Read from MH i2c: E2 0E 00 [20:56:47]MH_I2C_Read... [20:56:47]Read from MH i2c: E2 0E 00 60 08 00 09 00 01 17 88 19 66 00 00 00 00 90 00 0F [20:56:47]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [20:56:47]wFMCommunicate OK [20:56:47]SAM_PROTO_GetShiftState done [20:56:47]FM_GetShiftState done [20:56:47]opened in 1712949271 [20:56:47]opened+sec_in_day 1713035671 [20:56:47]quantity*price = 50025 [20:56:47]sum+1 = 50026 [20:56:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 26 12.04.2024 20:56 Смена: 114 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28752 ФПД: 195238354594887 1/tax-web-control/client/api/v1/ticket?date=20240412T205648&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28752&fm=195238354594887&tin=02508201610067®Number=0000138879044617&sum=50000 [20:56:48]StoreToDocumentArchive [20:56:48]shift 114 fd 28752 [20:56:48]save to /storage/0114/doc_00028752 [20:56:48]save last doc name /storage/0114/doc_00028752 to /storage/kkm_last_doc_name [20:56:48]save OK [20:56:48]Clear old archive folders... [20:56:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:56:48]tlvbuf is 011AE580 [20:56:48]SAM_PROTO_ClearQueue [20:56:48]wFMCommunicate request_size=4 [20:56:48]MH_SAM_APDU [20:56:48]CAPDU: 80 09 00 00 [20:56:48]Write to MH i2c: E2 08 00 6D 08 80 09 00 00 00 00 00 00 E7 [20:56:48]Write i2c OK [20:56:48]MH_I2C_Read... [20:56:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:56:48]Read from MH i2c: E2 [20:56:48]MH_I2C_Read... [20:56:48]Read from MH i2c: E2 03 00 [20:56:48]MH_I2C_Read... [20:56:48]Read from MH i2c: E2 03 00 6D 08 00 90 00 E9 [20:56:48]RAPDU: 90 00 [20:56:48]wFMCommunicate OK [20:56:48]SAM_PROTO_ClearQueue done [20:56:48]KKMCreateOFDPacket [20:56:48]OFDProtocolAddRootSTLVToBuf [20:56:48]FM_MakeSignedData [20:56:48]FM_MakeSignedData [20:56:48]SAM_PROTO_SignData [20:56:48]wFMCommunicate request_size=4 [20:56:48]MH_SAM_APDU [20:56:48]CAPDU: 80 0D 01 02 [20:56:48]Write to MH i2c: E2 08 00 6E 08 80 0D 01 02 00 00 00 00 EF [20:56:48]Write i2c OK [20:56:48]MH_I2C_Read... [20:56:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:56:48]Read from MH i2c: E2 [20:56:48]MH_I2C_Read... [20:56:48]Read from MH i2c: E2 03 00 [20:56:48]MH_I2C_Read... [20:56:48]Read from MH i2c: E2 03 00 6E 08 00 90 00 EA [20:56:48]RAPDU: 90 00 [20:56:48]wFMCommunicate OK [20:56:48]wFMCommunicate request_size=255 [20:56:48]MH_SAM_APDU [20:56:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 10 A0 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 50 70 00 00 35 04 06 00 B1 [20:56:48]Write to MH i2c: E2 02 01 6F 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 10 A0 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 50 70 00 00 35 04 06 00 B1 00 00 DD [20:56:48]Write i2c OK [20:56:48]MH_I2C_Read... [20:56:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:56:48]Read from MH i2c: E2 [20:56:48]MH_I2C_Read... [20:56:48]Read from MH i2c: E2 03 00 [20:56:48]MH_I2C_Read... [20:56:48]Read from MH i2c: E2 03 00 6F 08 00 90 00 EB [20:56:48]RAPDU: 90 00 [20:56:48]wFMCommunicate OK [20:56:48]wFMCommunicate request_size=10 [20:56:48]MH_SAM_APDU [20:56:48]CAPDU: 80 0D 02 02 05 91 78 C5 AC 47 [20:56:48]Write to MH i2c: E2 0D 00 70 08 80 0D 02 02 05 00 91 78 C5 AC 47 00 00 BD [20:56:48]Write i2c OK [20:56:48]MH_I2C_Read... [20:56:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:56:48]Read from MH i2c: E2 [20:56:48]MH_I2C_Read... [20:56:48]Read from MH i2c: E2 03 00 [20:56:48]MH_I2C_Read... [20:56:48]Read from MH i2c: E2 03 00 70 08 00 90 00 EC [20:56:48]RAPDU: 90 00 [20:56:48]wFMCommunicate OK [20:56:48]wFMCommunicate request_size=4 [20:56:48]MH_SAM_APDU [20:56:48]CAPDU: 80 0D 03 02 [20:56:48]Write to MH i2c: E2 08 00 71 08 80 0D 03 02 00 00 00 00 F4 [20:56:48]Write i2c OK [20:56:48]MH_I2C_Read... [20:56:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:56:48]Read from MH i2c: E2 [20:56:48]MH_I2C_Read... [20:56:48]Read from MH i2c: E2 0B 00 [20:56:48]MH_I2C_Read... [20:56:48]Read from MH i2c: E2 0B 00 71 08 00 FE 48 AC 3C A0 C0 76 2E 90 00 27 [20:56:48]RAPDU: FE 48 AC 3C A0 C0 76 2E 90 00 [20:56:48]wFMCommunicate OK [20:56:48]SAM_PROTO_SignData done [20:56:48]FM_MakeSignedData done [20:56:48]CreateOFDProtocolMessage [20:56:48]wFMCommunicate request_size=4 [20:56:48]MH_SAM_APDU [20:56:48]CAPDU: 80 11 00 00 [20:56:48]Write to MH i2c: E2 08 00 72 08 80 11 00 00 00 00 00 00 F4 [20:56:48]Write i2c OK [20:56:48]MH_I2C_Read... [20:56:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:56:48]Read from MH i2c: E2 [20:56:48]MH_I2C_Read... [20:56:48]Read from MH i2c: E2 17 00 [20:56:48]MH_I2C_Read... [20:56:48]Read from MH i2c: E2 17 00 72 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 43 [20:56:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:56:48]wFMCommunicate OK [20:56:48]CreateOFDProtocolMessage done [20:56:48]OFDSenderStorePacket 28752 [20:56:48]StoreOFDPacket docnum=28752 [20:56:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 71 28 07 01 CC 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 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 10 A0 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 50 70 00 00 35 04 06 00 B1 91 78 C5 AC 47 FE 48 AC 3C A0 C0 76 2E [20:56:48]CheckFolder [20:56:48]dirname=/storage/ofd_packets [20:56:48]CheckFolder done [20:56:48]ProducePacketName [20:56:48]name=ofd_packets/00028752 [20:56:48]NVStorageSaveData ofd_packets/00028752 [20:56:48]File name is /storage/ofd_packets/00028752 [20:56:48]Write 301 bytes [20:56:48]NVStorageSaveData done [20:56:48]OFDSenderStorePacket done [20:56:48]KKMCreateOFDPacket done [20:56:48]NVStorageSaveData kkm_last_timestamp [20:56:48]File name is /storage/kkm_last_timestamp [20:56:48]Write 4 bytes [20:56:48]NVStorageSaveData done [20:56:48]ExternCall_PrintAddStr [20:56:48]wPrintStart [20:56:48]Write to MH i2c: 01 00 00 73 08 7B [20:56:48]Write i2c OK [20:56:48]MH_I2C_Read... [20:56:48]Read from MH i2c: 01 [20:56:48]MH_I2C_Read... [20:56:48]Read from MH i2c: 01 07 00 [20:56:48]MH_I2C_Read... [20:56:48]Read from MH i2c: 01 07 00 73 08 00 00 00 00 00 FF 0F 90 [20:56:48]RasterBufferAndPrint [20:56:48]line Счет N : (1)347092 [20:56:48]line ИНН: 02508201610067 [20:56:48]line Контрольно-Кассовый Чек [20:56:48]line ПРОДАЖА [20:56:48]line ТРК (МРК, ГНК) : 32 [20:56:48]line Товар: 2710124130 [20:56:48]line Аи-92-К-5 [20:56:48]line 7.780 * 64.30 [20:56:48]line = 500.25 [20:56:48]line НДС 12% НСП 1% [20:56:48]line > о реализуемом товаре [20:56:48]line ОКРУГЛЕНИЕ: -0.25 [20:56:48]line ИТОГО: 500.00 [20:56:48]line Внесено: 500.00 [20:56:48]line СДАЧА: 0.00 [20:56:48]line НСП 1% : 4.43 [20:56:48]line НДС 12% : 53.12 [20:56:48]line Наличными: 500.00 [20:56:48]line Безнал.: 0.00 [20:56:48]line Место: АЗС № 108 "Партнер Нефть" [20:56:48]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [20:56:48]line СНО: Общий режим [20:56:48]line Чек 26 12.04.2024 20:56 [20:56:48]line Смена: 114 ФФД: 1.0 [20:56:48]line ЗНМ: 0300000027 [20:56:48]line РНМ: 0000138879044617 [20:56:48]line Версия ККМ: 001 [20:56:48]line ФМ: 0000000000963154 [20:56:48]line ФД: 28752 [20:56:48]line ФПД: 195238354594887 [20:56:48]line 1/tax-web-control/client/api/v1/ticket?date=20240412T205648&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28752&fm=195238354594887&tin=02508201610067®Number=0000138879044617&sum=50000 [20:56:49]OFD Sender: Processing packet 28752 [packets to send 8, broken 7] [20:56:49]ProducePacketName [20:56:49]name=ofd_packets/00028752 [20:56:49]OFD Sender: To server: pG, [20:56:49]CommunicateWithHost lk.salyk.kg:30040 [20:56:49]ConnectInit lk.salyk.kg [20:56:49]written 0, free lines is 4095 [20:56:49]Connected sock=10 [20:56:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 71 28 07 01 CC 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 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 10 A0 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 50 70 00 00 35 04 06 00 B1 91 78 C5 AC 47 FE 48 AC 3C A0 C0 76 2E [20:56:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 42 5C 47 00 05 65 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 50 70 00 00 F4 03 04 00 B9 4A 19 66 B6 04 01 00 00 F7 9B 42 D1 E4 72 7F B5 [20:56:49]CommunicateWithHost err = 0 [20:56:49]CheckOFDResponse [20:56:49]1017 (14) - 77093643461234 [20:56:49]1041 (16) - 0000000000963154 [20:56:49]1040 (4) - 28752 [20:56:49]1012 (4) - 12.04.2024 14:52 [20:56:49]1206 (1) - 0 [20:56:49]OFD Sender: Remove packet 28752 [20:56:49]ProducePacketName [20:56:49]name=ofd_packets/00028752 [20:56:49]NVStorageDeleteData [20:56:49]Write to MH i2c: 01 00 00 9D 08 A5 [20:56:49]Write i2c OK [20:56:49]MH_I2C_Read... [20:56:49]Read from MH i2c: 01 [20:56:49]MH_I2C_Read... [20:56:49]Read from MH i2c: 01 07 00 [20:56:49]MH_I2C_Read... [20:56:49]Read from MH i2c: 01 07 00 9D 08 00 00 00 00 00 D5 0C 8D [20:56:49]RasterBufferAndPrint [20:56:49]line [20:56:49]line [20:56:49]line [20:56:49]line [20:56:49]line [20:56:49]written 0, free lines is 3291 [20:56:49]MH_Cut [20:56:49]Write to MH i2c: D1 01 00 A4 08 01 7E [20:56:49]Write i2c OK [20:56:49]MH_I2C_Read... [20:56:49]Read from MH i2c: D1 [20:56:49]MH_I2C_Read... [20:56:49]Read from MH i2c: D1 01 00 [20:56:49]MH_I2C_Read... [20:56:49]Read from MH i2c: D1 01 00 A4 08 00 7D [20:56:49]Write to MH i2c: 01 00 00 A5 08 AD [20:56:49]Write i2c OK [20:56:49]MH_I2C_Read... [20:56:50]OFD Sender: No OFD packet to send [20:56:50]*** Cut start [20:56:50]*** Partial cut [20:56:50]*** CUTSNS_PIN = 1 [20:56:50]*** CUTSNS_PIN = 0 [20:56:50]*** Brake cut motor [20:56:51]Read from MH i2c: 01 [20:56:51]MH_I2C_Read... [20:56:51]*** Stop cut motor [20:56:51]*** Cut end [20:56:51]Read from MH i2c: 01 07 00 [20:56:51]MH_I2C_Read... [20:56:51]Read from MH i2c: 01 07 00 A5 08 00 00 00 00 00 FF 0F C2 [20:56:51]process_action close_receipt done [20:56:51]requested_data is exist [20:56:51]produce_requested_data [20:56:51]requested_item fm.sn is exist - process it [20:56:51]wFMCommunicate request_size=4 [20:56:51]MH_SAM_APDU [20:56:51]CAPDU: 80 11 00 00 [20:56:51]Write to MH i2c: E2 08 00 A6 08 80 11 00 00 00 00 00 00 28 [20:56:51]Write i2c OK [20:56:51]MH_I2C_Read... [20:56:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:56:51]Read from MH i2c: E2 [20:56:51]MH_I2C_Read... [20:56:51]Read from MH i2c: E2 17 00 [20:56:51]MH_I2C_Read... [20:56:51]Read from MH i2c: E2 17 00 A6 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 77 [20:56:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:56:51]wFMCommunicate OK [20:56:51]requested_item fd.num is exist - process it [20:56:51]SAM_PROTO_GetFieldsCounters [20:56:51]wFMCommunicate request_size=4 [20:56:51]MH_SAM_APDU [20:56:51]CAPDU: 80 13 00 00 [20:56:51]Write to MH i2c: E2 08 00 A7 08 80 13 00 00 00 00 00 00 2B [20:56:51]Write i2c OK [20:56:51]MH_I2C_Read... [20:56:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:56:51]Read from MH i2c: E2 [20:56:51]MH_I2C_Read... [20:56:51]Read from MH i2c: E2 62 00 [20:56:51]MH_I2C_Read... [20:56:51]Read from MH i2c: E2 62 00 A7 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 50 70 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 E9 [20:56:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 50 70 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 [20:56:51]wFMCommunicate OK [20:56:51]SAM_PROTO_GetFieldsCounters done [20:56:51]requested_item shift.num is exist - process it [20:56:51]requested_item shift.opened is exist - process it [20:56:51]req_shift_opened [20:56:51]FM_GetShiftState [20:56:51]SAM_PROTO_GetShiftState [20:56:51]wFMCommunicate request_size=4 [20:56:51]MH_SAM_APDU [20:56:51]CAPDU: 80 13 01 00 [20:56:51]Write to MH i2c: E2 08 00 A8 08 80 13 01 00 00 00 00 00 2D [20:56:51]Write i2c OK [20:56:51]MH_I2C_Read... [20:56:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:56:51]Read from MH i2c: E2 [20:56:51]MH_I2C_Read... [20:56:51]Read from MH i2c: E2 0E 00 [20:56:51]MH_I2C_Read... [20:56:51]Read from MH i2c: E2 0E 00 A8 08 00 09 00 01 17 88 19 66 00 00 00 00 90 00 57 [20:56:51]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [20:56:51]wFMCommunicate OK [20:56:51]SAM_PROTO_GetShiftState done [20:56:51]FM_GetShiftState done [20:56:51]req_shift_opened done [20:56:51]requested_item shift.open_date is exist - process it [20:56:51]req_shift_open_date [20:56:51]req_shift_open_date done [20:56:51]produce_requested_data done [20:56:51]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28752,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271} [20:56:51]process_action_free close_receipt [20:56:51]json_value_free [20:56:51]json_value_free done [20:56:51]process_json_proto returns [20:56:51]Send response to host [20:56:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28752,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271}}} [20:56:51]free response buf [20:56:51]execute_script done [20:56:51]execute_script returns [20:56:51]free content buf [20:56:51]Sock 9.Close socket [20:56:51]Sock 9.Thread stoped [20:56:55]OFD Sender: No OFD packet to send [20:57:00]OFD Sender: No OFD packet to send [20:57:05]OFD Sender: No OFD packet to send [20:57:10]OFD Sender: No OFD packet to send [20:57:15]OFD Sender: No OFD packet to send [20:57:20]OFD Sender: No OFD packet to send [20:57:25]OFD Sender: No OFD packet to send [20:57:30]OFD Sender: No OFD packet to send [20:57:35]OFD Sender: No OFD packet to send [20:57:40]OFD Sender: No OFD packet to send [20:57:45]OFD Sender: No OFD packet to send [20:57:50]OFD Sender: No OFD packet to send [20:57:55]OFD Sender: No OFD packet to send [20:58:00]OFD Sender: No OFD packet to send [20:58:05]OFD Sender: No OFD packet to send [20:58:10]OFD Sender: No OFD packet to send [20:58:15]OFD Sender: No OFD packet to send [20:58:20]OFD Sender: No OFD packet to send [20:58:25]OFD Sender: No OFD packet to send [20:58:30]OFD Sender: No OFD packet to send [20:58:35]OFD Sender: No OFD packet to send [20:58:40]OFD Sender: No OFD packet to send [20:58:45]OFD Sender: No OFD packet to send [20:58:50]OFD Sender: No OFD packet to send [20:58:55]OFD Sender: No OFD packet to send [20:59:00]OFD Sender: No OFD packet to send [20:59:05]OFD Sender: No OFD packet to send [20:59:10]OFD Sender: No OFD packet to send [20:59:15]OFD Sender: No OFD packet to send [20:59:20]OFD Sender: No OFD packet to send [20:59:25]OFD Sender: No OFD packet to send [20:59:30]OFD Sender: No OFD packet to send [20:59:35]OFD Sender: No OFD packet to send [20:59:40]OFD Sender: No OFD packet to send [20:59:45]OFD Sender: No OFD packet to send [20:59:50]OFD Sender: No OFD packet to send [20:59:55]OFD Sender: No OFD packet to send [21:00:00]OFD Sender: No OFD packet to send [21:00:05]OFD Sender: No OFD packet to send [21:00:10]OFD Sender: No OFD packet to send [21:00:15]OFD Sender: No OFD packet to send [21:00:20]OFD Sender: No OFD packet to send [21:00:25]OFD Sender: No OFD packet to send [21:00:30]OFD Sender: No OFD packet to send [21:00:35]OFD Sender: No OFD packet to send [21:00:40]OFD Sender: No OFD packet to send [21:00:45]OFD Sender: No OFD packet to send [21:00:50]OFD Sender: No OFD packet to send [21:00:55]OFD Sender: No OFD packet to send [21:01:00]OFD Sender: No OFD packet to send [21:01:05]OFD Sender: No OFD packet to send [21:01:10]OFD Sender: No OFD packet to send [21:01:15]OFD Sender: No OFD packet to send [21:01:20]OFD Sender: No OFD packet to send [21:01:25]OFD Sender: No OFD packet to send [21:01:30]OFD Sender: No OFD packet to send [21:01:35]OFD Sender: No OFD packet to send [21:01:40]OFD Sender: No OFD packet to send [21:01:45]OFD Sender: No OFD packet to send [21:01:50]OFD Sender: No OFD packet to send [21:01:55]OFD Sender: No OFD packet to send [21:02:00]OFD Sender: No OFD packet to send [21:02:05]OFD Sender: No OFD packet to send [21:02:10]OFD Sender: No OFD packet to send [21:02:15]OFD Sender: No OFD packet to send [21:02:20]OFD Sender: No OFD packet to send [21:02:25]OFD Sender: No OFD packet to send [21:02:30]OFD Sender: No OFD packet to send [21:02:35]OFD Sender: No OFD packet to send [21:02:40]OFD Sender: No OFD packet to send [21:02:45]OFD Sender: No OFD packet to send [21:02:50]OFD Sender: No OFD packet to send [21:02:55]OFD Sender: No OFD packet to send [21:03:00]OFD Sender: No OFD packet to send [21:03:05]OFD Sender: No OFD packet to send [21:03:10]OFD Sender: No OFD packet to send [21:03:15]OFD Sender: No OFD packet to send [21:03:20]OFD Sender: No OFD packet to send [21:03:25]OFD Sender: No OFD packet to send [21:03:30]OFD Sender: No OFD packet to send [21:03:35]OFD Sender: No OFD packet to send [21:03:40]OFD Sender: No OFD packet to send [21:03:45]OFD Sender: No OFD packet to send [21:03:50]OFD Sender: No OFD packet to send [21:03:55]OFD Sender: No OFD packet to send [21:04:00]OFD Sender: No OFD packet to send [21:04:05]OFD Sender: No OFD packet to send [21:04:10]OFD Sender: No OFD packet to send [21:04:15]OFD Sender: No OFD packet to send [21:04:20]OFD Sender: No OFD packet to send [21:04:25]OFD Sender: No OFD packet to send [21:04:30]OFD Sender: No OFD packet to send [21:04:35]OFD Sender: No OFD packet to send [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:15]OFD Sender: No OFD packet to send [21:12:20]OFD Sender: No OFD packet to send [21:12:25]OFD Sender: No OFD packet to send [21:12:30]OFD Sender: No OFD packet to send [21:12:35]OFD Sender: No OFD packet to send [21:12:40]OFD Sender: No OFD packet to send [21:12:45]OFD Sender: No OFD packet to send [21:12:50]OFD Sender: No OFD packet to send [21:12:55]OFD Sender: No OFD packet to send [21:13:00]OFD Sender: No OFD packet to send [21:13:04]accept exits with 7 [21:13:04]New connection [21:13:04]New thread 3066785124 created [21:13:04]Thread 3066928484 joined [21:13:04]Waiting for new connection... [21:13:04] Sock 7.Parse request [21:13:04]Sock 7.Check first char [21:13:04]Sock 7.First char is OK [21:13:04]request: POST /json_proto HTTP/1.0 [21:13:04]Method: POST [21:13:04]URL: /json_proto [21:13:04]Method is POST - this is cgi request [21:13:04]url: /json_proto [21:13:04]query_string will be loaded in cgi processing [21:13:04]execute_cgi json_proto POST (null) [21:13:04]execute_cgi path=json_proto method=POST [21:13:04]POST find Content-Length [21:13:04]Host: 172.17.33.3:8080 [21:13:04]Content-Length: 1180 [21:13:04]Content-Type: application/json [21:13:04] [21:13:04]POST finish read [21:13:04]Found Content-Length = 1180 [21:13:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0440\u044B\u0431\u0430\u0435\u0432 \u042D. \u000A\u0421\u0447\u0435\u0442 N : (1)347093\u000A12.04.2024 20:54\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 8.290 x 72.40\u000A\u0418\u0422\u041E\u0413: 600.20\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3792847\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:13:04]execute_script... [21:13:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0440\u044B\u0431\u0430\u0435\u0432 \u042D. \u000A\u0421\u0447\u0435\u0442 N : (1)347093\u000A12.04.2024 20:54\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 8.290 x 72.40\u000A\u0418\u0422\u041E\u0413: 600.20\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3792847\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:13:04]POST & json_proto [21:13:04]process_json_proto [21:13:04]json parsed OK: [21:13:04]protocol is kg_v1.0 [21:13:04]action value=print_text [21:13:04]process_action print_text [21:13:04]cmd_print_text [21:13:04]ExternCall_PrintAddStr [21:13:04]wPrintStart [21:13:04]Write to MH i2c: 01 00 00 A9 08 B1 [21:13:04]Write i2c OK [21:13:04]MH_I2C_Read... [21:13:04]Read from MH i2c: 01 [21:13:04]MH_I2C_Read... [21:13:04]Read from MH i2c: 01 07 00 [21:13:04]MH_I2C_Read... [21:13:04]Read from MH i2c: 01 07 00 A9 08 00 00 00 00 00 FF 0F C6 [21:13:04]RasterBufferAndPrint [21:13:04]line *****ТОВАРНЫЙ ЧЕК***** [21:13:04]line АЗС 108 [21:13:04]line Партнер нефть [21:13:04]line 02508201610067 [21:13:04]line Кассир : Сарыбаев Э. [21:13:04]line Счет N : (1)347093 [21:13:04]line 12.04.2024 20:54 [21:13:04]line ПРОДАЖА [21:13:04]line ТРК (МРК, ГНК): 21 [21:13:04]line Вид ГСМ : 2710194210 [21:13:04]line ДТ-К-5 [21:13:04]line 8.290 x 72.40 [21:13:04]line ИТОГ: 600.20 [21:13:04]line Тип оплаты: Талоны: Партнер нефть [21:13:04]line 3792847 [21:13:04]line ______________________ [21:13:04]line (подпись) [21:13:04]written 0, free lines is 4095 [21:13:05]Write to MH i2c: 01 00 00 BD 08 C5 [21:13:05]Write i2c OK [21:13:05]MH_I2C_Read... [21:13:05]Read from MH i2c: 01 [21:13:05]MH_I2C_Read... [21:13:05]Read from MH i2c: 01 07 00 [21:13:05]MH_I2C_Read... [21:13:05]Read from MH i2c: 01 07 00 BD 08 00 00 00 00 00 10 0E EA [21:13:05]RasterBufferAndPrint [21:13:05]line [21:13:05]line [21:13:05]line [21:13:05]line [21:13:05]line [21:13:05]written 0, free lines is 3601 [21:13:05]MH_Cut [21:13:05]Write to MH i2c: D1 01 00 C4 08 01 9E [21:13:05]Write i2c OK [21:13:05]MH_I2C_Read... [21:13:05]Read from MH i2c: D1 [21:13:05]MH_I2C_Read... [21:13:05]Read from MH i2c: D1 01 00 [21:13:05]MH_I2C_Read... [21:13:05]Read from MH i2c: D1 01 00 C4 08 00 9D [21:13:05]Write to MH i2c: 01 00 00 C5 08 CD [21:13:05]Write i2c OK [21:13:05]MH_I2C_Read... [21:13:05]*** Cut start [21:13:05]*** Partial cut [21:13:05]*** CUTSNS_PIN = 1 [21:13:05]*** CUTSNS_PIN = 0 [21:13:05]OFD Sender: No OFD packet to send [21:13:05]*** Brake cut motor [21:13:06]Read from MH i2c: 01 [21:13:06]MH_I2C_Read... [21:13:06]Read from MH i2c: 01 07 00 *** Stop cut motor [21:13:06]*** Cut end [21:13:06] [21:13:06]MH_I2C_Read... [21:13:06]Read from MH i2c: 01 07 00 C5 08 00 00 00 00 00 FF 0F E2 [21:13:06]process_action print_text done [21:13:06]requested_data is exist [21:13:06]produce_requested_data [21:13:06]requested_item fm.sn is exist - process it [21:13:06]wFMCommunicate request_size=4 [21:13:06]MH_SAM_APDU [21:13:06]CAPDU: 80 11 00 00 [21:13:06]Write to MH i2c: E2 08 00 C6 08 80 11 00 00 00 00 00 00 48 [21:13:06]Write i2c OK [21:13:06]MH_I2C_Read... [21:13:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:13:06]Read from MH i2c: E2 [21:13:06]MH_I2C_Read... [21:13:06]Read from MH i2c: E2 17 00 [21:13:06]MH_I2C_Read... [21:13:06]Read from MH i2c: E2 17 00 C6 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 97 [21:13:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:13:06]wFMCommunicate OK [21:13:06]requested_item fd.num is exist - process it [21:13:06]SAM_PROTO_GetFieldsCounters [21:13:06]wFMCommunicate request_size=4 [21:13:06]MH_SAM_APDU [21:13:06]CAPDU: 80 13 00 00 [21:13:06]Write to MH i2c: E2 08 00 C7 08 80 13 00 00 00 00 00 00 4B [21:13:06]Write i2c OK [21:13:06]MH_I2C_Read... [21:13:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:13:06]Read from MH i2c: E2 [21:13:06]MH_I2C_Read... [21:13:06]Read from MH i2c: E2 62 00 [21:13:06]MH_I2C_Read... [21:13:06]Read from MH i2c: E2 62 00 C7 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 50 70 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 09 [21:13:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 50 70 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 [21:13:06]wFMCommunicate OK [21:13:06]SAM_PROTO_GetFieldsCounters done [21:13:06]requested_item shift.num is exist - process it [21:13:06]requested_item shift.opened is exist - process it [21:13:06]req_shift_opened [21:13:06]FM_GetShiftState [21:13:06]SAM_PROTO_GetShiftState [21:13:06]wFMCommunicate request_size=4 [21:13:06]MH_SAM_APDU [21:13:06]CAPDU: 80 13 01 00 [21:13:06]Write to MH i2c: E2 08 00 C8 08 80 13 01 00 00 00 00 00 4D [21:13:06]Write i2c OK [21:13:06]MH_I2C_Read... [21:13:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:13:06]Read from MH i2c: E2 [21:13:06]MH_I2C_Read... [21:13:06]Read from MH i2c: E2 0E 00 [21:13:06]MH_I2C_Read... [21:13:06]Read from MH i2c: E2 0E 00 C8 08 00 09 00 01 17 88 19 66 00 00 00 00 90 00 77 [21:13:06]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [21:13:06]wFMCommunicate OK [21:13:06]SAM_PROTO_GetShiftState done [21:13:06]FM_GetShiftState done [21:13:06]req_shift_opened done [21:13:06]requested_item shift.open_date is exist - process it [21:13:06]req_shift_open_date [21:13:06]req_shift_open_date done [21:13:06]produce_requested_data done [21:13:06]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28752,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271} [21:13:06]process_action_free print_text [21:13:06]json_value_free [21:13:06]json_value_free done [21:13:06]process_json_proto returns [21:13:06]Send response to host [21:13:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28752,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271}}} [21:13:06]free response buf [21:13:06]execute_script done [21:13:06]execute_script returns [21:13:06]free content buf [21:13:06]Sock 7.Close socket [21:13:06]Sock 7.Thread stoped [21:13:10]OFD Sender: No OFD packet to send [21:13:15]OFD Sender: No OFD packet to send [21:13:20]OFD Sender: No OFD packet to send [21:13:25]OFD Sender: No OFD packet to send [21:13:30]OFD Sender: No OFD packet to send [21:13:35]OFD Sender: No OFD packet to send [21:13:40]OFD Sender: No OFD packet to send [21:13:45]OFD Sender: No OFD packet to send [21:13:50]OFD Sender: No OFD packet to send [21:13:55]OFD Sender: No OFD packet to send [21:14:00]OFD Sender: No OFD packet to send [21:14:05]OFD Sender: No OFD packet to send [21:14:10]OFD Sender: No OFD packet to send [21:14:15]OFD Sender: No OFD packet to send [21:14:20]OFD Sender: No OFD packet to send [21:14:25]OFD Sender: No OFD packet to send [21:14:30]OFD Sender: No OFD packet to send [21:14:35]OFD Sender: No OFD packet to send [21:14:40]OFD Sender: No OFD packet to send [21:14:45]OFD Sender: No OFD packet to send [21:14:50]OFD Sender: No OFD packet to send [21:14:55]OFD Sender: No OFD packet to send [21:15:00]OFD Sender: No OFD packet to send [21:15:05]OFD Sender: No OFD packet to send [21:15:10]OFD Sender: No OFD packet to send [21:15:15]OFD Sender: No OFD packet to send [21:15:20]OFD Sender: No OFD packet to send [21:15:25]OFD Sender: No OFD packet to send [21:15:30]OFD Sender: No OFD packet to send [21:15:35]OFD Sender: No OFD packet to send [21:15:40]OFD Sender: No OFD packet to send [21:15:45]OFD Sender: No OFD packet to send [21:15:50]OFD Sender: No OFD packet to send [21:15:55]OFD Sender: No OFD packet to send [21:16:00]OFD Sender: No OFD packet to send [21:16:05]OFD Sender: No OFD packet to send [21:16:10]OFD Sender: No OFD packet to send [21:16:15]OFD Sender: No OFD packet to send [21:16:20]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:30]accept exits with 9 [21:17:30]New connection [21:17:30]New thread 3066928484 created [21:17:30]Thread 3066785124 joined [21:17:30]Waiting for new connection... [21:17:30] Sock 9.Parse request [21:17:30]Sock 9.Check first char [21:17:30]Sock 9.First char is OK [21:17:30]request: POST /json_proto HTTP/1.0 [21:17:30]Method: POST [21:17:30]URL: /json_proto [21:17:30]Method is POST - this is cgi request [21:17:30]url: /json_proto [21:17:30]query_string will be loaded in cgi processing [21:17:30]execute_cgi json_proto POST (null) [21:17:30]execute_cgi path=json_proto method=POST [21:17:30]POST find Content-Length [21:17:30]Host: 172.17.33.3:8080 [21:17:30]Content-Length: 681 [21:17:30]Content-Type: application/json [21:17:30] [21:17:30]POST finish read [21:17:30]Found Content-Length = 681 [21:17:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347094", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 12.160, "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" ] } } [21:17:30]execute_script... [21:17: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)347094", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 12.160, "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" ] } } [21:17:30]POST & json_proto [21:17:30]process_json_proto [21:17:30]json parsed OK: [21:17:30]protocol is kg_v1.0 [21:17:30]action value=close_receipt [21:17:30]process_action close_receipt [21:17:30]cmd_close_receipt [21:17:30]MH_GetDate [21:17:30]Write to MH i2c: F0 00 00 C9 08 C0 [21:17:30]Write i2c OK [21:17:30]MH_I2C_Read... [21:17:30]Read from MH i2c: F0 [21:17:30]MH_I2C_Read... [21:17:30]Read from MH i2c: F0 09 00 [21:17:30]MH_I2C_Read... [21:17:30]Read from MH i2c: F0 09 00 C9 08 00 EB A4 19 66 23 5B 8F 65 49 [21:17:30]GetLastDocTimeStamp 1712955408 [21:17:30]current date 1712956651 [21:17:30]FM_GetShiftState [21:17:30]SAM_PROTO_GetShiftState [21:17:30]wFMCommunicate request_size=4 [21:17:30]MH_SAM_APDU [21:17:30]CAPDU: 80 13 01 00 [21:17:30]Write to MH i2c: E2 08 00 CA 08 80 13 01 00 00 00 00 00 4F [21:17:30]Write i2c OK [21:17:30]MH_I2C_Read... [21:17:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:17:30]Read from MH i2c: E2 [21:17:30]MH_I2C_Read... [21:17:30]Read from MH i2c: E2 0E 00 [21:17:30]MH_I2C_Read... [21:17:30]Read from MH i2c: E2 0E 00 CA 08 00 09 00 01 17 88 19 66 00 00 00 00 90 00 79 [21:17:30]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [21:17:30]wFMCommunicate OK [21:17:30]SAM_PROTO_GetShiftState done [21:17:30]FM_GetShiftState done [21:17:30]opened in 1712949271 [21:17:30]opened+sec_in_day 1713035671 [21:17:30]quantity*price = 40006 [21:17:30]sum+1 = 40007 [21:17: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 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 27 12.04.2024 21:17 Смена: 114 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28753 ФПД: 36111584237603 1/tax-web-control/client/api/v1/ticket?date=20240412T211731&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28753&fm=36111584237603&tin=02508201610067®Number=0000138879044617&sum=40000 [21:17:31]StoreToDocumentArchive [21:17:31]shift 114 fd 28753 [21:17:31]save to /storage/0114/doc_00028753 [21:17:31]save last doc name /storage/0114/doc_00028753 to /storage/kkm_last_doc_name [21:17:31]save OK [21:17:31]Clear old archive folders... [21:17:31]ProcessDocumentItem done err = 0, tmpTLVsize=250 [21:17:31]tlvbuf is 0121E350 [21:17:31]SAM_PROTO_ClearQueue [21:17:31]wFMCommunicate request_size=4 [21:17:31]MH_SAM_APDU [21:17:31]CAPDU: 80 09 00 00 [21:17:31]Write to MH i2c: E2 08 00 D7 08 80 09 00 00 00 00 00 00 51 [21:17:31]Write i2c OK [21:17:31]MH_I2C_Read... [21:17:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:17:31]Read from MH i2c: E2 [21:17:31]MH_I2C_Read... [21:17:31]Read from MH i2c: E2 03 00 [21:17:31]MH_I2C_Read... [21:17:31]Read from MH i2c: E2 03 00 D7 08 00 90 00 53 [21:17:31]RAPDU: 90 00 [21:17:31]wFMCommunicate OK [21:17:31]SAM_PROTO_ClearQueue done [21:17:31]KKMCreateOFDPacket [21:17:31]OFDProtocolAddRootSTLVToBuf [21:17:31]FM_MakeSignedData [21:17:31]FM_MakeSignedData [21:17:31]SAM_PROTO_SignData [21:17:31]wFMCommunicate request_size=4 [21:17:31]MH_SAM_APDU [21:17:31]CAPDU: 80 0D 01 02 [21:17:31]Write to MH i2c: E2 08 00 D8 08 80 0D 01 02 00 00 00 00 59 [21:17:31]Write i2c OK [21:17:31]MH_I2C_Read... [21:17:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:17:31]Read from MH i2c: E2 [21:17:31]MH_I2C_Read... [21:17:31]Read from MH i2c: E2 03 00 [21:17:31]MH_I2C_Read... [21:17:31]Read from MH i2c: E2 03 00 D8 08 00 90 00 54 [21:17:31]RAPDU: 90 00 [21:17:31]wFMCommunicate OK [21:17:31]wFMCommunicate request_size=255 [21:17:31]MH_SAM_APDU [21:17:31]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 80 2F 00 00 00 00 00 37 04 06 00 DA 0C 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 1B 00 00 00 F4 03 04 00 EB A4 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 51 70 00 00 35 04 06 00 20 D7 [21:17:31]Write to MH i2c: E2 02 01 D9 08 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 80 2F 00 00 00 00 00 37 04 06 00 DA 0C 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 1B 00 00 00 F4 03 04 00 EB A4 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 51 70 00 00 35 04 06 00 20 D7 00 00 BD [21:17:31]Write i2c OK [21:17:31]MH_I2C_Read... [21:17:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:17:32]Read from MH i2c: E2 [21:17:32]MH_I2C_Read... [21:17:32]Read from MH i2c: E2 03 00 [21:17:32]MH_I2C_Read... [21:17:32]Read from MH i2c: E2 03 00 D9 08 00 90 00 55 [21:17:32]RAPDU: 90 00 [21:17:32]wFMCommunicate OK [21:17:32]wFMCommunicate request_size=9 [21:17:32]MH_SAM_APDU [21:17:32]CAPDU: 80 0D 02 02 04 E2 26 98 23 [21:17:32]Write to MH i2c: E2 0C 00 DA 08 80 0D 02 02 04 00 E2 26 98 23 00 00 27 [21:17:32]Write i2c OK [21:17:32]MH_I2C_Read... [21:17:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:17:32]Read from MH i2c: E2 [21:17:32]MH_I2C_Read... [21:17:32]Read from MH i2c: E2 03 00 [21:17:32]MH_I2C_Read... [21:17:32]Read from MH i2c: E2 03 00 DA 08 00 90 00 56 [21:17:32]RAPDU: 90 00 [21:17:32]wFMCommunicate OK [21:17:32]wFMCommunicate request_size=4 [21:17:32]MH_SAM_APDU [21:17:32]CAPDU: 80 0D 03 02 [21:17:32]Write to MH i2c: E2 08 00 DB 08 80 0D 03 02 00 00 00 00 5E [21:17:32]Write i2c OK [21:17:32]MH_I2C_Read... [21:17:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:17:32]Read from MH i2c: E2 [21:17:32]MH_I2C_Read... [21:17:32]Read from MH i2c: E2 0B 00 [21:17:32]MH_I2C_Read... [21:17:32]Read from MH i2c: E2 0B 00 DB 08 00 9C 4E 15 CE 55 97 BB 7E 90 00 51 [21:17:32]RAPDU: 9C 4E 15 CE 55 97 BB 7E 90 00 [21:17:32]wFMCommunicate OK [21:17:32]SAM_PROTO_SignData done [21:17:32]FM_MakeSignedData done [21:17:32]CreateOFDProtocolMessage [21:17:32]wFMCommunicate request_size=4 [21:17:32]MH_SAM_APDU [21:17:32]CAPDU: 80 11 00 00 [21:17:32]Write to MH i2c: E2 08 00 DC 08 80 11 00 00 00 00 00 00 5E [21:17:32]Write i2c OK [21:17:32]MH_I2C_Read... [21:17:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:17:32]Read from MH i2c: E2 [21:17:32]MH_I2C_Read... [21:17:32]Read from MH i2c: E2 17 00 [21:17:32]MH_I2C_Read... [21:17:32]Read from MH i2c: E2 17 00 DC 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 AD [21:17:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:17:32]wFMCommunicate OK [21:17:32]CreateOFDProtocolMessage done [21:17:32]OFDSenderStorePacket 28753 [21:17:32]StoreOFDPacket docnum=28753 [21:17:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 AE A5 06 01 86 0B 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 80 2F 00 00 00 00 00 37 04 06 00 DA 0C 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 1B 00 00 00 F4 03 04 00 EB A4 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 51 70 00 00 35 04 06 00 20 D7 E2 26 98 23 9C 4E 15 CE 55 97 BB 7E [21:17:32]CheckFolder [21:17:32]dirname=/storage/ofd_packets [21:17:32]CheckFolder done [21:17:32]ProducePacketName [21:17:32]name=ofd_packets/00028753 [21:17:32]NVStorageSaveData ofd_packets/00028753 [21:17:32]File name is /storage/ofd_packets/00028753 [21:17:32]Write 300 bytes [21:17:32]NVStorageSaveData done [21:17:32]OFDSenderStorePacket done [21:17:32]KKMCreateOFDPacket done [21:17:32]NVStorageSaveData kkm_last_timestamp [21:17:32]File name is /storage/kkm_last_timestamp [21:17:32]Write 4 bytes [21:17:32]NVStorageSaveData done [21:17:32]ExternCall_PrintAddStr [21:17:32]wPrintStart [21:17:32]Write to MH i2c: 01 00 00 DD 08 E5 [21:17:32]Write i2c OK [21:17:32]MH_I2C_Read... [21:17:32]Read from MH i2c: 01 [21:17:32]MH_I2C_Read... [21:17:32]Read from MH i2c: 01 07 00 [21:17:32]MH_I2C_Read... [21:17:32]Read from MH i2c: 01 07 00 DD 08 00 00 00 00 00 FF 0F FA [21:17:32]RasterBufferAndPrint [21:17:32]line Счет N : (1)347094 [21:17:32]line ИНН: 02508201610067 [21:17:32]line Контрольно-Кассовый Чек [21:17:32]line ПРОДАЖА [21:17:32]line ТРК (МРК, ГНК) : 71 [21:17:32]line Товар: 2711129700 [21:17:32]line ГАЗ-К-5 [21:17:32]line 12.160 * 32.90 [21:17:32]line = 400.06 [21:17:32]line НДС 12% НСП 1% [21:17:32]line > о реализуемом товаре [21:17:32]line ОКРУГЛЕНИЕ: -0.06 [21:17:32]line ИТОГО: 400.00 [21:17:32]line Внесено: 400.00 [21:17:32]line СДАЧА: 0.00 [21:17:32]line НСП 1% : 3.54 [21:17:32]line НДС 12% : 42.48 [21:17:32]line Наличными: 400.00 [21:17:32]line Безнал.: 0.00 [21:17:32]line Место: АЗС № 108 "Партнер Нефть" [21:17:32]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [21:17:32]line СНО: Общий режим [21:17:32]line Чек 27 12.04.2024 21:17 [21:17:32]line Смена: 114 ФФД: 1.0 [21:17:32]line ЗНМ: 0300000027 [21:17:32]line РНМ: 0000138879044617 [21:17:32]line Версия ККМ: 001 [21:17:32]line ФМ: 0000000000963154 [21:17:32]line ФД: 28753 [21:17:32]line ФПД: 36111584237603 [21:17:32]line 1/tax-web-control/client/api/v1/ticket?date=20240412T211731&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28753&fm=36111584237603&tin=02508201610067®Number=0000138879044617&sum=40000 [21:17:32]OFD Sender: Processing packet 28753 [packets to send 8, broken 7] [21:17:32]ProducePacketName [21:17:32]name=ofd_packets/00028753 [21:17:32]OFD Sender: To server: pG, [21:17:32]CommunicateWithHost lk.salyk.kg:30040 [21:17:32]ConnectInit lk.salyk.kg [21:17:32]written 0, free lines is 4095 [21:17:32]Connected sock=10 [21:17:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 AE A5 06 01 86 0B 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 80 2F 00 00 00 00 00 37 04 06 00 DA 0C 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 1B 00 00 00 F4 03 04 00 EB A4 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 51 70 00 00 35 04 06 00 20 D7 E2 26 98 23 9C 4E 15 CE 55 97 BB 7E [21:17:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 6B 85 47 00 42 DE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 51 70 00 00 F4 03 04 00 94 4F 19 66 B6 04 01 00 00 F9 43 1B 26 FC 49 77 3F [21:17:32]CommunicateWithHost err = 0 [21:17:32]CheckOFDResponse [21:17:32]1017 (14) - 77093643461234 [21:17:32]1041 (16) - 0000000000963154 [21:17:32]1040 (4) - 28753 [21:17:32]1012 (4) - 12.04.2024 15:13 [21:17:32]1206 (1) - 0 [21:17:32]OFD Sender: Remove packet 28753 [21:17:32]ProducePacketName [21:17:32]name=ofd_packets/00028753 [21:17:32]NVStorageDeleteData [21:17:33]Write to MH i2c: 01 00 00 07 09 10 [21:17:33]Write i2c OK [21:17:33]MH_I2C_Read... [21:17:33]Read from MH i2c: 01 [21:17:33]MH_I2C_Read... [21:17:33]Read from MH i2c: 01 07 00 [21:17:33]MH_I2C_Read... [21:17:33]Read from MH i2c: 01 07 00 07 09 00 00 00 00 00 B7 0C DA [21:17:33]RasterBufferAndPrint [21:17:33]line [21:17:33]line [21:17:33]line [21:17:33]line [21:17:33]line [21:17:33]written 0, free lines is 3259 [21:17:33]MH_Cut [21:17:33]Write to MH i2c: D1 01 00 0E 09 01 E9 [21:17:33]Write i2c OK [21:17:33]MH_I2C_Read... [21:17:33]Read from MH i2c: D1 [21:17:33]MH_I2C_Read... [21:17:33]Read from MH i2c: D1 01 00 [21:17:33]MH_I2C_Read... [21:17:33]Read from MH i2c: D1 01 00 0E 09 00 E8 [21:17:33]Write to MH i2c: 01 00 00 0F 09 18 [21:17:33]Write i2c OK [21:17:33]MH_I2C_Read... [21:17:33]OFD Sender: No OFD packet to send [21:17:33]*** Cut start [21:17:33]*** Partial cut [21:17:33]*** CUTSNS_PIN = 1 [21:17:33]*** CUTSNS_PIN = 0 [21:17:34]*** Brake cut motor [21:17:34]Read from MH i2c: 01 [21:17:34]MH_I2C_Read... [21:17:34]*** Stop cut motor [21:17:34]*** Cut end [21:17:34]Read from MH i2c: 01 07 00 [21:17:34]MH_I2C_Read... [21:17:34]Read from MH i2c: 01 07 00 0F 09 00 00 00 00 00 FF 0F 2D [21:17:34]process_action close_receipt done [21:17:34]requested_data is exist [21:17:34]produce_requested_data [21:17:34]requested_item fm.sn is exist - process it [21:17:34]wFMCommunicate request_size=4 [21:17:34]MH_SAM_APDU [21:17:34]CAPDU: 80 11 00 00 [21:17:34]Write to MH i2c: E2 08 00 10 09 80 11 00 00 00 00 00 00 93 [21:17:34]Write i2c OK [21:17:34]MH_I2C_Read... [21:17:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:17:34]Read from MH i2c: E2 [21:17:34]MH_I2C_Read... [21:17:34]Read from MH i2c: E2 17 00 [21:17:34]MH_I2C_Read... [21:17:34]Read from MH i2c: E2 17 00 10 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 E2 [21:17:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:17:34]wFMCommunicate OK [21:17:34]requested_item fd.num is exist - process it [21:17:34]SAM_PROTO_GetFieldsCounters [21:17:34]wFMCommunicate request_size=4 [21:17:34]MH_SAM_APDU [21:17:34]CAPDU: 80 13 00 00 [21:17:34]Write to MH i2c: E2 08 00 11 09 80 13 00 00 00 00 00 00 96 [21:17:34]Write i2c OK [21:17:34]MH_I2C_Read... [21:17:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:17:34]Read from MH i2c: E2 [21:17:34]MH_I2C_Read... [21:17:34]Read from MH i2c: E2 62 00 [21:17:34]MH_I2C_Read... [21:17:34]Read from MH i2c: E2 62 00 11 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 51 70 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 58 [21:17:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 51 70 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 [21:17:34]wFMCommunicate OK [21:17:34]SAM_PROTO_GetFieldsCounters done [21:17:34]requested_item shift.num is exist - process it [21:17:34]requested_item shift.opened is exist - process it [21:17:34]req_shift_opened [21:17:34]FM_GetShiftState [21:17:34]SAM_PROTO_GetShiftState [21:17:34]wFMCommunicate request_size=4 [21:17:34]MH_SAM_APDU [21:17:34]CAPDU: 80 13 01 00 [21:17:34]Write to MH i2c: E2 08 00 12 09 80 13 01 00 00 00 00 00 98 [21:17:34]Write i2c OK [21:17:34]MH_I2C_Read... [21:17:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:17:34]Read from MH i2c: E2 [21:17:34]MH_I2C_Read... [21:17:34]Read from MH i2c: E2 0E 00 [21:17:34]MH_I2C_Read... [21:17:34]Read from MH i2c: E2 0E 00 12 09 00 09 00 01 17 88 19 66 00 00 00 00 90 00 C2 [21:17:34]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [21:17:34]wFMCommunicate OK [21:17:34]SAM_PROTO_GetShiftState done [21:17:34]FM_GetShiftState done [21:17:34]req_shift_opened done [21:17:34]requested_item shift.open_date is exist - process it [21:17:34]req_shift_open_date [21:17:34]req_shift_open_date done [21:17:34]produce_requested_data done [21:17:34]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28753,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271} [21:17:34]process_action_free close_receipt [21:17:34]json_value_free [21:17:34]json_value_free done [21:17:34]process_json_proto returns [21:17:34]Send response to host [21:17:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28753,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271}}} [21:17:34]free response buf [21:17:34]execute_script done [21:17:34]execute_script returns [21:17:34]free content buf [21:17:34]Sock 9.Close socket [21:17:34]Sock 9.Thread stoped [21:17:35]int [21:17:35]Write to MH i2c: 01 00 00 13 09 1C [21:17:35]*** FLAG_PRN_KEY set [21:17:35]Write i2c OK [21:17:35]MH_I2C_Read... [21:17:35]Read from MH i2c: 01 [21:17:35]MH_I2C_Read... [21:17:35]Read from MH i2c: 01 07 00 [21:17:35]MH_I2C_Read... [21:17:35]Read from MH i2c: 01 07 00 13 09 00 08 00 00 00 FF 0F 39 [21:17:35]state=0 [21:17:35]Key pressed [21:17:35]Feed [21:17:35]Write to MH i2c: D8 00 00 14 09 F4 [21:17:35]Write i2c OK [21:17:35]MH_I2C_Read... [21:17:35]Read from MH i2c: D8 [21:17:35]MH_I2C_Read... [21:17:35]Read from MH i2c: D8 01 00 [21:17:35]MH_I2C_Read... [21:17:35]Read from MH i2c: D8 01 00 14 09 00 F5 [21:17:35]int [21:17:35]Write to MH i2c: 01 00 00 15 09 1E [21:17:35]Write i2c OK [21:17:35]MH_I2C_Read... [21:17:35]Read from MH i2c: 01 [21:17:35]MH_I2C_Read... [21:17:35]Read from MH i2c: 01 07 00 [21:17:35]MH_I2C_Read... [21:17:35]Read from MH i2c: 01 07 00 15 09 00 48 00 00 00 3C 00 A9 [21:17:35]state=2 [21:17:35]Key pressed [21:17:35]int [21:17:35]Write to MH i2c: 01 00 00 16 09 1F [21:17:35]*** FLAG_PRN_KEY reset [21:17:35]Write i2c OK [21:17:35]MH_I2C_Read... [21:17:35]Read from MH i2c: 01 [21:17:35]MH_I2C_Read... [21:17:35]Read from MH i2c: 01 07 00 [21:17:35]MH_I2C_Read... [21:17:35]Read from MH i2c: 01 07 00 16 09 00 00 00 00 00 FF 0F 34 [21:17:35]state=2 [21:17:35]Stop feed [21:17:35]int [21:17:35]Write to MH i2c: 01 00 00 17 09 20 [21:17:35]*** FLAG_PRN_PAP1 set [21:17:35]Write i2c OK [21:17:35]MH_I2C_Read... [21:17:35]Read from MH i2c: 01 [21:17:35]MH_I2C_Read... [21:17:35]Read from MH i2c: 01 07 00 [21:17:35]MH_I2C_Read... [21:17:35]Read from MH i2c: 01 07 00 17 09 00 01 00 00 00 FF 0F 36 [21:17:35]state=0 [21:17:35]No paper [21:17:36]int [21:17:36]Write to MH i2c: 01 00 00 18 09 21 [21:17:36]*** FLAG_PRN_PAP2 set [21:17:36]Write i2c OK [21:17:36]MH_I2C_Read... [21:17:36]Read from MH i2c: 01 [21:17:36]MH_I2C_Read... [21:17:36]Read from MH i2c: 01 07 00 [21:17:36]MH_I2C_Read... [21:17:36]Read from MH i2c: 01 07 00 18 09 00 03 00 00 00 FF 0F 39 [21:17:36]state=0 [21:17:36]No paper [21:17:36]Cover opened [21:17:38]int [21:17:38]Write to MH i2c: 01 00 00 19 09 22 [21:17:38]*** FLAG_PRN_PAP2 reset [21:17:38]Write i2c OK [21:17:38]MH_I2C_Read... [21:17:38]Read from MH i2c: 01 [21:17:38]MH_I2C_Read... [21:17:38]Read from MH i2c: 01 07 00 [21:17:38]MH_I2C_Read... [21:17:38]Read from MH i2c: 01 07 00 19 09 00 01 00 00 00 FF 0F 38 [21:17:38]state=3 [21:17:38]No paper [21:17:38]Cover closed [21:17:38]int [21:17:38]Write to MH i2c: 01 00 00 1A 09 23 [21:17:38]*** FLAG_PRN_PAP1 reset [21:17:38]Write i2c OK [21:17:38]MH_I2C_Read... [21:17:38]Read from MH i2c: 01 [21:17:38]MH_I2C_Read... [21:17:38]Read from MH i2c: 01 07 00 [21:17:38]MH_I2C_Read... [21:17:38]Read from MH i2c: 01 07 00 1A 09 00 00 00 00 00 FF 0F 38 [21:17:38]state=0 [21:17:38]OFD Sender: No OFD packet to send [21:17:43]OFD Sender: No OFD packet to send [21:17:48]OFD Sender: No OFD packet to send [21:17:53]OFD Sender: No OFD packet to send [21:17:58]OFD Sender: No OFD packet to send [21:18:03]OFD Sender: No OFD packet to send [21:18:08]OFD Sender: No OFD packet to send [21:18:13]OFD Sender: No OFD packet to send [21:18:18]OFD Sender: No OFD packet to send [21:18:23]OFD Sender: No OFD packet to send [21:18:26]int [21:18:26]Write to MH i2c: 01 00 00 1B 09 24 [21:18:26]*** FLAG_PRN_KEY set [21:18:26]Write i2c OK [21:18:26]MH_I2C_Read... [21:18:26]Read from MH i2c: 01 [21:18:26]MH_I2C_Read... [21:18:26]Read from MH i2c: 01 07 00 [21:18:26]MH_I2C_Read... [21:18:26]Read from MH i2c: 01 07 00 1B 09 00 08 00 00 00 FF 0F 41 [21:18:26]state=0 [21:18:26]Key pressed [21:18:26]Feed [21:18:26]Write to MH i2c: D8 00 00 1C 09 FC [21:18:26]Write i2c OK [21:18:26]MH_I2C_Read... [21:18:26]Read from MH i2c: D8 [21:18:26]MH_I2C_Read... [21:18:26]Read from MH i2c: D8 01 00 [21:18:26]MH_I2C_Read... [21:18:26]Read from MH i2c: D8 01 00 1C 09 00 FD [21:18:26]int [21:18:26]Write to MH i2c: 01 00 00 1D 09 26 [21:18:26]Write i2c OK [21:18:26]MH_I2C_Read... [21:18:26]Read from MH i2c: 01 [21:18:26]MH_I2C_Read... [21:18:26]Read from MH i2c: 01 07 00 [21:18:26]MH_I2C_Read... [21:18:26]Read from MH i2c: 01 07 00 1D 09 00 48 00 00 00 3D 00 B2 [21:18:26]state=2 [21:18:26]Key pressed [21:18:26]int [21:18:26]Write to MH i2c: 01 00 00 1E 09 27 [21:18:26]*** FLAG_PRN_KEY reset [21:18:26]Write i2c OK [21:18:26]MH_I2C_Read... [21:18:26]Read from MH i2c: 01 [21:18:26]MH_I2C_Read... [21:18:26]Read from MH i2c: 01 07 00 [21:18:26]MH_I2C_Read... [21:18:26]Read from MH i2c: 01 07 00 1E 09 00 00 00 00 00 F6 0F 33 [21:18:26]state=2 [21:18:26]Stop feed [21:18:26]int [21:18:26]Write to MH i2c: 01 00 00 1F 09 28 [21:18:26]*** FLAG_PRN_KEY set [21:18:26]Write i2c OK [21:18:26]MH_I2C_Read... [21:18:26]Read from MH i2c: 01 [21:18:26]MH_I2C_Read... [21:18:26]Read from MH i2c: 01 07 00 [21:18:26]MH_I2C_Read... [21:18:26]Read from MH i2c: 01 07 00 1F 09 00 08 00 00 00 FF 0F 45 [21:18:26]state=0 [21:18:26]Key pressed [21:18:26]Feed [21:18:26]Write to MH i2c: D8 00 00 20 09 00 [21:18:26]Write i2c OK [21:18:26]MH_I2C_Read... [21:18:26]Read from MH i2c: D8 [21:18:26]MH_I2C_Read... [21:18:26]Read from MH i2c: D8 01 00 [21:18:26]MH_I2C_Read... [21:18:26]Read from MH i2c: D8 01 00 20 09 00 01 [21:18:26]int [21:18:26]Write to MH i2c: 01 00 00 21 09 2A [21:18:26]Write i2c OK [21:18:26]MH_I2C_Read... [21:18:26]Read from MH i2c: 01 [21:18:26]MH_I2C_Read... [21:18:26]Read from MH i2c: 01 07 00 [21:18:26]MH_I2C_Read... [21:18:26]Read from MH i2c: 01 07 00 21 09 00 48 00 00 00 3D 00 B6 [21:18:26]state=2 [21:18:26]Key pressed [21:18:26]int [21:18:26]Write to MH i2c: 01 00 00 22 09 2B [21:18:26]*** FLAG_PRN_KEY reset [21:18:26]Write i2c OK [21:18:26]MH_I2C_Read... [21:18:26]Read from MH i2c: 01 [21:18:26]MH_I2C_Read... [21:18:26]Read from MH i2c: 01 07 00 [21:18:26]MH_I2C_Read... [21:18:26]Read from MH i2c: 01 07 00 22 09 00 00 00 00 00 F6 0F 37 [21:18:26]state=2 [21:18:26]Stop feed [21:18:27]int [21:18:27]Write to MH i2c: 01 00 00 23 09 2C [21:18:27]*** FLAG_PRN_KEY set [21:18:27]Write i2c OK [21:18:27]MH_I2C_Read... [21:18:27]Read from MH i2c: 01 [21:18:27]MH_I2C_Read... [21:18:27]Read from MH i2c: 01 07 00 [21:18:27]MH_I2C_Read... [21:18:27]Read from MH i2c: 01 07 00 23 09 00 08 00 00 00 FF 0F 49 [21:18:27]state=0 [21:18:27]Key pressed [21:18:27]Feed [21:18:27]Write to MH i2c: D8 00 00 24 09 04 [21:18:27]Write i2c OK [21:18:27]MH_I2C_Read... [21:18:27]Read from MH i2c: D8 [21:18:27]MH_I2C_Read... [21:18:27]Read from MH i2c: D8 01 00 [21:18:27]MH_I2C_Read... [21:18:27]Read from MH i2c: D8 01 00 24 09 00 05 [21:18:27]int [21:18:27]Write to MH i2c: 01 00 00 25 09 2E [21:18:27]Write i2c OK [21:18:27]MH_I2C_Read... [21:18:27]Read from MH i2c: 01 [21:18:27]MH_I2C_Read... [21:18:27]Read from MH i2c: 01 07 00 [21:18:27]MH_I2C_Read... [21:18:27]Read from MH i2c: 01 07 00 25 09 00 48 00 00 00 3D 00 BA [21:18:27]state=2 [21:18:27]Key pressed [21:18:27]int [21:18:27]Write to MH i2c: 01 00 00 26 09 2F [21:18:27]*** FLAG_PRN_KEY reset [21:18:27]Write i2c OK [21:18:27]MH_I2C_Read... [21:18:27]Read from MH i2c: 01 [21:18:27]MH_I2C_Read... [21:18:27]Read from MH i2c: 01 07 00 [21:18:27]MH_I2C_Read... [21:18:27]Read from MH i2c: 01 07 00 26 09 00 00 00 00 00 F6 0F 3B [21:18:27]state=2 [21:18:27]Stop feed [21:18:28]OFD Sender: No OFD packet to send [21:18:33]OFD Sender: No OFD packet to send [21:18:38]OFD Sender: No OFD packet to send [21:18:43]OFD Sender: No OFD packet to send [21:18:48]OFD Sender: No OFD packet to send [21:18:53]OFD Sender: No OFD packet to send [21:18:58]OFD Sender: No OFD packet to send [21:19:03]OFD Sender: No OFD packet to send [21:19:04]accept exits with 7 [21:19:04]New connection [21:19:04]New thread 3066785124 created [21:19:04]Thread 3066928484 joined [21:19:04]Waiting for new connection... [21:19:04] Sock 7.Parse request [21:19:04]Sock 7.Check first char [21:19:04]Sock 7.First char is OK [21:19:04]request: POST /json_proto HTTP/1.0 [21:19:04]Method: POST [21:19:04]URL: /json_proto [21:19:04]Method is POST - this is cgi request [21:19:04]url: /json_proto [21:19:04]query_string will be loaded in cgi processing [21:19:04]execute_cgi json_proto POST (null) [21:19:04]execute_cgi path=json_proto method=POST [21:19:04]POST find Content-Length [21:19:04]Host: 172.17.33.3:8080 [21:19:04]Content-Length: 808 [21:19:04]Content-Type: application/json [21:19:04] [21:19:04]POST finish read [21:19:04]Found Content-Length = 808 [21:19:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347095", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 31.110, "sum" : 2000.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.37 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:19:04]execute_script... [21:19: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)347095", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 31.110, "sum" : 2000.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.37 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:19:04]POST & json_proto [21:19:04]process_json_proto [21:19:04]json parsed OK: [21:19:04]protocol is kg_v1.0 [21:19:04]action value=close_receipt [21:19:04]process_action close_receipt [21:19:04]cmd_close_receipt [21:19:04]MH_GetDate [21:19:04]Write to MH i2c: F0 00 00 27 09 1F [21:19:04]Write i2c OK [21:19:04]MH_I2C_Read... [21:19:04]Read from MH i2c: F0 [21:19:04]MH_I2C_Read... [21:19:04]Read from MH i2c: F0 09 00 [21:19:04]MH_I2C_Read... [21:19:04]Read from MH i2c: F0 09 00 27 09 00 49 A5 19 66 23 5B 8F 65 07 [21:19:04]GetLastDocTimeStamp 1712956651 [21:19:04]current date 1712956745 [21:19:04]FM_GetShiftState [21:19:04]SAM_PROTO_GetShiftState [21:19:04]wFMCommunicate request_size=4 [21:19:04]MH_SAM_APDU [21:19:04]CAPDU: 80 13 01 00 [21:19:04]Write to MH i2c: E2 08 00 28 09 80 13 01 00 00 00 00 00 AE [21:19:04]Write i2c OK [21:19:04]MH_I2C_Read... [21:19:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:19:04]Read from MH i2c: E2 [21:19:04]MH_I2C_Read... [21:19:04]Read from MH i2c: E2 0E 00 [21:19:04]MH_I2C_Read... [21:19:04]Read from MH i2c: E2 0E 00 28 09 00 09 00 01 17 88 19 66 00 00 00 00 90 00 D8 [21:19:04]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [21:19:04]wFMCommunicate OK [21:19:04]SAM_PROTO_GetShiftState done [21:19:04]FM_GetShiftState done [21:19:04]opened in 1712949271 [21:19:04]opened+sec_in_day 1713035671 [21:19:04]quantity*price = 200037 [21:19:04]sum+1 = 200038 [21:19:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.37 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 0.00 Безнал.: 2000.37 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 28 12.04.2024 21:19 Смена: 114 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 28754 ФПД: 174118081848091 1/tax-web-control/client/api/v1/ticket?date=20240412T211905&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28754&fm=174118081848091&tin=02508201610067®Number=0000138879044617&sum=200037 [21:19:05]StoreToDocumentArchive [21:19:05]shift 114 fd 28754 [21:19:05]save to /storage/0114/doc_00028754 [21:19:05]save last doc name /storage/0114/doc_00028754 to /storage/kkm_last_doc_name [21:19:05]save OK [21:19:05]Clear old archive folders... [21:19:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:19:05]tlvbuf is 0121EB40 [21:19:05]SAM_PROTO_ClearQueue [21:19:05]wFMCommunicate request_size=4 [21:19:05]MH_SAM_APDU [21:19:05]CAPDU: 80 09 00 00 [21:19:05]Write to MH i2c: E2 08 00 35 09 80 09 00 00 00 00 00 00 B0 [21:19:05]Write i2c OK [21:19:05]MH_I2C_Read... [21:19:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:19:05]Read from MH i2c: E2 [21:19:05]MH_I2C_Read... [21:19:05]Read from MH i2c: E2 03 00 [21:19:05]MH_I2C_Read... [21:19:05]Read from MH i2c: E2 03 00 35 09 00 90 00 B2 [21:19:05]RAPDU: 90 00 [21:19:05]wFMCommunicate OK [21:19:05]SAM_PROTO_ClearQueue done [21:19:05]KKMCreateOFDPacket [21:19:05]OFDProtocolAddRootSTLVToBuf [21:19:05]FM_MakeSignedData [21:19:05]FM_MakeSignedData [21:19:05]SAM_PROTO_SignData [21:19:05]wFMCommunicate request_size=4 [21:19:05]MH_SAM_APDU [21:19:05]CAPDU: 80 0D 01 02 [21:19:05]Write to MH i2c: E2 08 00 36 09 80 0D 01 02 00 00 00 00 B8 [21:19:05]Write i2c OK [21:19:05]MH_I2C_Read... [21:19:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:19:05]Read from MH i2c: E2 [21:19:05]MH_I2C_Read... [21:19:05]Read from MH i2c: E2 03 00 [21:19:05]MH_I2C_Read... [21:19:05]Read from MH i2c: E2 03 00 36 09 00 90 00 B3 [21:19:05]RAPDU: 90 00 [21:19:05]wFMCommunicate OK [21:19:05]wFMCommunicate request_size=255 [21:19:05]MH_SAM_APDU [21:19: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 35 FF 03 08 00 03 86 79 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 65 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 65 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 65 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 49 A5 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 52 70 00 00 35 04 06 00 9E [21:19:05]Write to MH i2c: E2 02 01 37 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 79 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 65 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 65 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 65 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 49 A5 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 52 70 00 00 35 04 06 00 9E 00 00 0C [21:19:05]Write i2c OK [21:19:05]MH_I2C_Read... [21:19:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:19:06]Read from MH i2c: E2 [21:19:06]MH_I2C_Read... [21:19:06]Read from MH i2c: E2 03 00 [21:19:06]MH_I2C_Read... [21:19:06]Read from MH i2c: E2 03 00 37 09 00 90 00 B4 [21:19:06]RAPDU: 90 00 [21:19:06]wFMCommunicate OK [21:19:06]wFMCommunicate request_size=10 [21:19:06]MH_SAM_APDU [21:19:06]CAPDU: 80 0D 02 02 05 5C 06 6A E3 1B [21:19:06]Write to MH i2c: E2 0D 00 38 09 80 0D 02 02 05 00 5C 06 6A E3 1B 00 00 8F [21:19:06]Write i2c OK [21:19:06]MH_I2C_Read... [21:19:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:19:06]Read from MH i2c: E2 [21:19:06]MH_I2C_Read... [21:19:06]Read from MH i2c: E2 03 00 [21:19:06]MH_I2C_Read... [21:19:06]Read from MH i2c: E2 03 00 38 09 00 90 00 B5 [21:19:06]RAPDU: 90 00 [21:19:06]wFMCommunicate OK [21:19:06]wFMCommunicate request_size=4 [21:19:06]MH_SAM_APDU [21:19:06]CAPDU: 80 0D 03 02 [21:19:06]Write to MH i2c: E2 08 00 39 09 80 0D 03 02 00 00 00 00 BD [21:19:06]Write i2c OK [21:19:06]MH_I2C_Read... [21:19:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:19:06]Read from MH i2c: E2 [21:19:06]MH_I2C_Read... [21:19:06]Read from MH i2c: E2 0B 00 [21:19:06]MH_I2C_Read... [21:19:06]Read from MH i2c: E2 0B 00 39 09 00 99 33 64 8E ED E7 1B 59 90 00 C4 [21:19:06]RAPDU: 99 33 64 8E ED E7 1B 59 90 00 [21:19:06]wFMCommunicate OK [21:19:06]SAM_PROTO_SignData done [21:19:06]FM_MakeSignedData done [21:19:06]CreateOFDProtocolMessage [21:19:06]wFMCommunicate request_size=4 [21:19:06]MH_SAM_APDU [21:19:06]CAPDU: 80 11 00 00 [21:19:06]Write to MH i2c: E2 08 00 3A 09 80 11 00 00 00 00 00 00 BD [21:19:06]Write i2c OK [21:19:06]MH_I2C_Read... [21:19:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:19:06]Read from MH i2c: E2 [21:19:06]MH_I2C_Read... [21:19:06]Read from MH i2c: E2 17 00 [21:19:06]MH_I2C_Read... [21:19:06]Read from MH i2c: E2 17 00 3A 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 0C [21:19:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:19:06]wFMCommunicate OK [21:19:06]CreateOFDProtocolMessage done [21:19:06]OFDSenderStorePacket 28754 [21:19:06]StoreOFDPacket docnum=28754 [21:19:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 3D 58 07 01 79 17 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 79 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 65 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 65 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 65 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 49 A5 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 52 70 00 00 35 04 06 00 9E 5C 06 6A E3 1B 99 33 64 8E ED E7 1B 59 [21:19:06]CheckFolder [21:19:06]dirname=/storage/ofd_packets [21:19:06]CheckFolder done [21:19:06]ProducePacketName [21:19:06]name=ofd_packets/00028754 [21:19:06]NVStorageSaveData ofd_packets/00028754 [21:19:06]File name is /storage/ofd_packets/00028754 [21:19:06]Write 301 bytes [21:19:06]NVStorageSaveData done [21:19:06]OFDSenderStorePacket done [21:19:06]KKMCreateOFDPacket done [21:19:06]NVStorageSaveData kkm_last_timestamp [21:19:06]File name is /storage/kkm_last_timestamp [21:19:06]Write 4 bytes [21:19:06]NVStorageSaveData done [21:19:06]ExternCall_PrintAddStr [21:19:06]wPrintStart [21:19:06]Write to MH i2c: 01 00 00 3B 09 44 [21:19:06]Write i2c OK [21:19:06]MH_I2C_Read... [21:19:06]Read from MH i2c: 01 [21:19:06]MH_I2C_Read... [21:19:06]Read from MH i2c: 01 07 00 [21:19:06]MH_I2C_Read... [21:19:06]Read from MH i2c: 01 07 00 3B 09 00 00 00 00 00 FF 0F 59 [21:19:06]RasterBufferAndPrint [21:19:06]line Счет N : (1)347095 [21:19:06]line ИНН: 02508201610067 [21:19:06]line Контрольно-Кассовый Чек [21:19:06]line ПРОДАЖА [21:19:06]line ТРК (МРК, ГНК) : 42 [21:19:06]line Товар: 2710124130 [21:19:06]line Аи-92-К-5 [21:19:06]line 31.110 * 64.30 [21:19:06]line = 2000.37 [21:19:06]line НДС 12% НСП 1% [21:19:06]line > о реализуемом товаре [21:19:06]line ИТОГО: 2000.37 [21:19:06]line НСП 1% : 17.70 [21:19:06]line НДС 12% : 212.43 [21:19:06]line Наличными: 0.00 [21:19:06]line Безнал.: 2000.37 [21:19:06]line Место: АЗС № 108 "Партнер Нефть" [21:19:06]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [21:19:06]line СНО: Общий режим [21:19:06]line Чек 28 12.04.2024 21:19 [21:19:06]line Смена: 114 ФФД: 1.0 [21:19:06]line ЗНМ: 0300000027 [21:19:06]line РНМ: 0000138879044617 [21:19:06]line Версия ККМ: 001 [21:19:06]line Платежная система: О! деньги [21:19:06]line ФМ: 0000000000963154 [21:19:06]line ФД: 28754 [21:19:06]line ФПД: 174118081848091 [21:19:06]line 1/tax-web-control/client/api/v1/ticket?date=20240412T211905&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28754&fm=174118081848091&tin=02508201610067®Number=0000138879044617&sum=200037 [21:19:06]OFD Sender: Processing packet 28754 [packets to send 8, broken 7] [21:19:06]ProducePacketName [21:19:06]name=ofd_packets/00028754 [21:19:06]OFD Sender: To server: pG, [21:19:06]CommunicateWithHost lk.salyk.kg:30040 [21:19:06]ConnectInit lk.salyk.kg [21:19:06]written 0, free lines is 4095 [21:19:06]Connected sock=10 [21:19:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 3D 58 07 01 79 17 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 79 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 65 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 65 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 65 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 49 A5 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 52 70 00 00 35 04 06 00 9E 5C 06 6A E3 1B 99 33 64 8E ED E7 1B 59 [21:19:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 AC 8E 47 00 91 5E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 52 70 00 00 F4 03 04 00 F2 4F 19 66 B6 04 01 00 00 F3 E0 7F 49 B6 41 DC 42 [21:19:06]CommunicateWithHost err = 0 [21:19:06]CheckOFDResponse [21:19:06]1017 (14) - 77093643461234 [21:19:06]1041 (16) - 0000000000963154 [21:19:06]1040 (4) - 28754 [21:19:06]1012 (4) - 12.04.2024 15:14 [21:19:06]1206 (1) - 0 [21:19:06]OFD Sender: Remove packet 28754 [21:19:06]ProducePacketName [21:19:06]name=ofd_packets/00028754 [21:19:06]NVStorageDeleteData [21:19:07]Write to MH i2c: 01 00 00 64 09 6D [21:19:07]Write i2c OK [21:19:07]MH_I2C_Read... [21:19:07]Read from MH i2c: 01 [21:19:07]MH_I2C_Read... [21:19:07]Read from MH i2c: 01 07 00 [21:19:07]MH_I2C_Read... [21:19:07]Read from MH i2c: 01 07 00 64 09 00 00 00 00 00 D8 0C 58 [21:19:07]RasterBufferAndPrint [21:19:07]line [21:19:07]line [21:19:07]line [21:19:07]line [21:19:07]line [21:19:07]written 0, free lines is 3295 [21:19:07]MH_Cut [21:19:07]Write to MH i2c: D1 01 00 6B 09 01 46 [21:19:07]Write i2c OK [21:19:07]MH_I2C_Read... [21:19:07]Read from MH i2c: D1 [21:19:07]MH_I2C_Read... [21:19:07]Read from MH i2c: D1 01 00 [21:19:07]MH_I2C_Read... [21:19:07]Read from MH i2c: D1 01 00 6B 09 00 45 [21:19:07]Write to MH i2c: 01 00 00 6C 09 75 [21:19:07]Write i2c OK [21:19:07]MH_I2C_Read... [21:19:07]OFD Sender: No OFD packet to send [21:19:07]*** Cut start [21:19:07]*** Partial cut [21:19:07]*** CUTSNS_PIN = 1 [21:19:07]*** CUTSNS_PIN = 0 [21:19:08]*** Brake cut motor [21:19:08]Read from MH i2c: 01 [21:19:08]MH_I2C_Read... [21:19:08]*** Stop cut motor [21:19:08]*** Cut end [21:19:08]Read from MH i2c: 01 07 00 [21:19:08]MH_I2C_Read... [21:19:08]Read from MH i2c: 01 07 00 6C 09 00 00 00 00 00 FF 0F 8A [21:19:08]process_action close_receipt done [21:19:08]requested_data is exist [21:19:08]produce_requested_data [21:19:08]requested_item fm.sn is exist - process it [21:19:08]wFMCommunicate request_size=4 [21:19:08]MH_SAM_APDU [21:19:08]CAPDU: 80 11 00 00 [21:19:08]Write to MH i2c: E2 08 00 6D 09 80 11 00 00 00 00 00 00 F0 [21:19:08]Write i2c OK [21:19:08]MH_I2C_Read... [21:19:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:19:08]Read from MH i2c: E2 [21:19:08]MH_I2C_Read... [21:19:08]Read from MH i2c: E2 17 00 [21:19:08]MH_I2C_Read... [21:19:08]Read from MH i2c: E2 17 00 6D 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 3F [21:19:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:19:08]wFMCommunicate OK [21:19:08]requested_item fd.num is exist - process it [21:19:08]SAM_PROTO_GetFieldsCounters [21:19:08]wFMCommunicate request_size=4 [21:19:08]MH_SAM_APDU [21:19:08]CAPDU: 80 13 00 00 [21:19:08]Write to MH i2c: E2 08 00 6E 09 80 13 00 00 00 00 00 00 F3 [21:19:08]Write i2c OK [21:19:08]MH_I2C_Read... [21:19:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:19:08]Read from MH i2c: E2 [21:19:08]MH_I2C_Read... [21:19:08]Read from MH i2c: E2 62 00 [21:19:08]MH_I2C_Read... [21:19:08]Read from MH i2c: E2 62 00 6E 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 52 70 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 B9 [21:19:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 52 70 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 [21:19:08]wFMCommunicate OK [21:19:08]SAM_PROTO_GetFieldsCounters done [21:19:08]requested_item shift.num is exist - process it [21:19:08]requested_item shift.opened is exist - process it [21:19:08]req_shift_opened [21:19:08]FM_GetShiftState [21:19:08]SAM_PROTO_GetShiftState [21:19:08]wFMCommunicate request_size=4 [21:19:08]MH_SAM_APDU [21:19:08]CAPDU: 80 13 01 00 [21:19:08]Write to MH i2c: E2 08 00 6F 09 80 13 01 00 00 00 00 00 F5 [21:19:08]Write i2c OK [21:19:08]MH_I2C_Read... [21:19:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:19:08]Read from MH i2c: E2 [21:19:08]MH_I2C_Read... [21:19:08]Read from MH i2c: E2 0E 00 [21:19:08]MH_I2C_Read... [21:19:08]Read from MH i2c: E2 0E 00 6F 09 00 09 00 01 17 88 19 66 00 00 00 00 90 00 1F [21:19:08]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [21:19:08]wFMCommunicate OK [21:19:08]SAM_PROTO_GetShiftState done [21:19:08]FM_GetShiftState done [21:19:08]req_shift_opened done [21:19:08]requested_item shift.open_date is exist - process it [21:19:08]req_shift_open_date [21:19:08]req_shift_open_date done [21:19:08]produce_requested_data done [21:19:08]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28754,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271} [21:19:08]process_action_free close_receipt [21:19:08]json_value_free [21:19:08]json_value_free done [21:19:08]process_json_proto returns [21:19:08]Send response to host [21:19:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28754,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271}}} [21:19:08]free response buf [21:19:08]execute_script done [21:19:08]execute_script returns [21:19:08]free content buf [21:19:08]Sock 7.Close socket [21:19:08]Sock 7.Thread stoped [21:19:12]OFD Sender: No OFD packet to send [21:19:17]OFD Sender: No OFD packet to send [21:19:22]OFD Sender: No OFD packet to send [21:19:27]OFD Sender: No OFD packet to send [21:19:32]OFD Sender: No OFD packet to send [21:19:37]OFD Sender: No OFD packet to send [21:19:40]accept exits with 9 [21:19:40]New connection [21:19:40]New thread 3066928484 created [21:19:40]Thread 3066785124 joined [21:19:40]Waiting for new connection... [21:19:40] Sock 9.Parse request [21:19:40]Sock 9.Check first char [21:19:40]Sock 9.First char is OK [21:19:40]request: POST /json_proto HTTP/1.0 [21:19:40]Method: POST [21:19:40]URL: /json_proto [21:19:40]Method is POST - this is cgi request [21:19:40]url: /json_proto [21:19:40]query_string will be loaded in cgi processing [21:19:40]execute_cgi json_proto POST (null) [21:19:40]execute_cgi path=json_proto method=POST [21:19:40]POST find Content-Length [21:19:40]Host: 172.17.33.3:8080 [21:19:40]Content-Length: 677 [21:19:40]Content-Type: application/json [21:19:40] [21:19:40]POST finish read [21:19:40]Found Content-Length = 677 [21:19:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347097", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 3.970, "sum" : 255.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 255.00, "total" : 255.00, "payments": [ { "type": 0, "sum" : 255.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:19:40]execute_script... [21: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)347097", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 3.970, "sum" : 255.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 255.00, "total" : 255.00, "payments": [ { "type": 0, "sum" : 255.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:19:40]POST & json_proto [21:19:40]process_json_proto [21:19:40]json parsed OK: [21:19:40]protocol is kg_v1.0 [21:19:40]action value=close_receipt [21:19:40]process_action close_receipt [21:19:40]cmd_close_receipt [21:19:40]MH_GetDate [21:19:40]Write to MH i2c: F0 00 00 70 09 68 [21:19:40]Write i2c OK [21:19:40]MH_I2C_Read... [21:19:40]Read from MH i2c: F0 [21:19:40]MH_I2C_Read... [21:19:40]Read from MH i2c: F0 09 00 [21:19:40]MH_I2C_Read... [21:19:40]Read from MH i2c: F0 09 00 70 09 00 6D A5 19 66 23 5B 8F 65 74 [21:19:40]GetLastDocTimeStamp 1712956745 [21:19:40]current date 1712956781 [21:19:40]FM_GetShiftState [21:19:40]SAM_PROTO_GetShiftState [21:19:40]wFMCommunicate request_size=4 [21:19:40]MH_SAM_APDU [21:19:40]CAPDU: 80 13 01 00 [21:19:40]Write to MH i2c: E2 08 00 71 09 80 13 01 00 00 00 00 00 F7 [21:19:40]Write i2c OK [21:19:40]MH_I2C_Read... [21:19:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:19:40]Read from MH i2c: E2 [21:19:40]MH_I2C_Read... [21:19:40]Read from MH i2c: E2 0E 00 [21:19:40]MH_I2C_Read... [21:19:40]Read from MH i2c: E2 0E 00 71 09 00 09 00 01 17 88 19 66 00 00 00 00 90 00 21 [21:19:40]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [21:19:40]wFMCommunicate OK [21:19:40]SAM_PROTO_GetShiftState done [21:19:40]FM_GetShiftState done [21:19:40]opened in 1712949271 [21:19:40]opened+sec_in_day 1713035671 [21:19:40]quantity*price = 25527 [21:19:40]sum+1 = 25528 [21:19:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.27 ИТОГО: 255.00 Внесено: 255.00 СДАЧА: 0.00 НСП 1% : 2.26 НДС 12% : 27.11 Наличными: 255.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 29 12.04.2024 21:19 Смена: 114 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28755 ФПД: 45476296431803 1/tax-web-control/client/api/v1/ticket?date=20240412T211941&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28755&fm=45476296431803&tin=02508201610067®Number=0000138879044617&sum=25500 [21:19:41]StoreToDocumentArchive [21:19:41]shift 114 fd 28755 [21:19:41]save to /storage/0114/doc_00028755 [21:19:41]save last doc name /storage/0114/doc_00028755 to /storage/kkm_last_doc_name [21:19:41]save OK [21:19:41]Clear old archive folders... [21:19:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:19:41]tlvbuf is 0121F8A0 [21:19:41]SAM_PROTO_ClearQueue [21:19:41]wFMCommunicate request_size=4 [21:19:41]MH_SAM_APDU [21:19:41]CAPDU: 80 09 00 00 [21:19:41]Write to MH i2c: E2 08 00 7E 09 80 09 00 00 00 00 00 00 F9 [21:19:41]Write i2c OK [21:19:41]MH_I2C_Read... [21:19:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:19:41]Read from MH i2c: E2 [21:19:41]MH_I2C_Read... [21:19:41]Read from MH i2c: E2 03 00 [21:19:41]MH_I2C_Read... [21:19:41]Read from MH i2c: E2 03 00 7E 09 00 90 00 FB [21:19:41]RAPDU: 90 00 [21:19:41]wFMCommunicate OK [21:19:41]SAM_PROTO_ClearQueue done [21:19:41]KKMCreateOFDPacket [21:19:41]OFDProtocolAddRootSTLVToBuf [21:19:41]FM_MakeSignedData [21:19:41]FM_MakeSignedData [21:19:41]SAM_PROTO_SignData [21:19:41]wFMCommunicate request_size=4 [21:19:41]MH_SAM_APDU [21:19:41]CAPDU: 80 0D 01 02 [21:19:41]Write to MH i2c: E2 08 00 7F 09 80 0D 01 02 00 00 00 00 01 [21:19:41]Write i2c OK [21:19:41]MH_I2C_Read... [21:19:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:19:41]Read from MH i2c: E2 [21:19:41]MH_I2C_Read... [21:19:41]Read from MH i2c: E2 03 00 [21:19:41]MH_I2C_Read... [21:19:41]Read from MH i2c: E2 03 00 7F 09 00 90 00 FC [21:19:41]RAPDU: 90 00 [21:19:41]wFMCommunicate OK [21:19:41]wFMCommunicate request_size=255 [21:19:41]MH_SAM_APDU [21: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 35 FF 03 08 00 03 82 0F 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 B7 63 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 63 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 0A 00 00 00 00 07 04 06 00 9C 63 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 6D A5 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 53 70 00 00 35 04 06 00 29 [21:19:41]Write to MH i2c: E2 02 01 80 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 82 0F 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 B7 63 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 63 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 0A 00 00 00 00 07 04 06 00 9C 63 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 6D A5 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 53 70 00 00 35 04 06 00 29 00 00 97 [21:19:41]Write i2c OK [21:19:41]MH_I2C_Read... [21:19:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:19:41]Read from MH i2c: E2 [21:19:41]MH_I2C_Read... [21:19:41]Read from MH i2c: E2 03 00 [21:19:41]MH_I2C_Read... [21:19:41]Read from MH i2c: E2 03 00 80 09 00 90 00 FD [21:19:41]RAPDU: 90 00 [21:19:41]wFMCommunicate OK [21:19:41]wFMCommunicate request_size=10 [21:19:41]MH_SAM_APDU [21:19:41]CAPDU: 80 0D 02 02 05 5C 46 7E 98 BB [21:19:41]Write to MH i2c: E2 0D 00 81 09 80 0D 02 02 05 00 5C 46 7E 98 BB 00 00 81 [21:19:41]Write i2c OK [21:19:41]MH_I2C_Read... [21:19:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:19:41]Read from MH i2c: E2 [21:19:41]MH_I2C_Read... [21:19:41]Read from MH i2c: E2 03 00 [21:19:41]MH_I2C_Read... [21:19:41]Read from MH i2c: E2 03 00 81 09 00 90 00 FE [21:19:41]RAPDU: 90 00 [21:19:41]wFMCommunicate OK [21:19:41]wFMCommunicate request_size=4 [21:19:41]MH_SAM_APDU [21:19:41]CAPDU: 80 0D 03 02 [21:19:41]Write to MH i2c: E2 08 00 82 09 80 0D 03 02 00 00 00 00 06 [21:19:41]Write i2c OK [21:19:41]MH_I2C_Read... [21:19:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:19:41]Read from MH i2c: E2 [21:19:41]MH_I2C_Read... [21:19:41]Read from MH i2c: E2 0B 00 [21:19:41]MH_I2C_Read... [21:19:41]Read from MH i2c: E2 0B 00 82 09 00 35 15 D6 1A 91 DB 4C 44 90 00 3D [21:19:41]RAPDU: 35 15 D6 1A 91 DB 4C 44 90 00 [21:19:41]wFMCommunicate OK [21:19:41]SAM_PROTO_SignData done [21:19:41]FM_MakeSignedData done [21:19:41]CreateOFDProtocolMessage [21:19:41]wFMCommunicate request_size=4 [21:19:41]MH_SAM_APDU [21:19:41]CAPDU: 80 11 00 00 [21:19:41]Write to MH i2c: E2 08 00 83 09 80 11 00 00 00 00 00 00 06 [21:19:41]Write i2c OK [21:19:41]MH_I2C_Read... [21:19:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:19:42]Read from MH i2c: E2 [21:19:42]MH_I2C_Read... [21:19:42]Read from MH i2c: E2 17 00 [21:19:42]MH_I2C_Read... [21:19:42]Read from MH i2c: E2 17 00 83 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 55 [21:19:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:19:42]wFMCommunicate OK [21:19:42]CreateOFDProtocolMessage done [21:19:42]OFDSenderStorePacket 28755 [21:19:42]StoreOFDPacket docnum=28755 [21:19:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 56 00 07 01 A0 19 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 82 0F 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 B7 63 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 63 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 0A 00 00 00 00 07 04 06 00 9C 63 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 6D A5 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 53 70 00 00 35 04 06 00 29 5C 46 7E 98 BB 35 15 D6 1A 91 DB 4C 44 [21:19:42]CheckFolder [21:19:42]dirname=/storage/ofd_packets [21:19:42]CheckFolder done [21:19:42]ProducePacketName [21:19:42]name=ofd_packets/00028755 [21:19:42]NVStorageSaveData ofd_packets/00028755 [21:19:42]File name is /storage/ofd_packets/00028755 [21:19:42]Write 301 bytes [21:19:42]NVStorageSaveData done [21:19:42]OFDSenderStorePacket done [21:19:42]KKMCreateOFDPacket done [21:19:42]NVStorageSaveData kkm_last_timestamp [21:19:42]File name is /storage/kkm_last_timestamp [21:19:42]Write 4 bytes [21:19:42]NVStorageSaveData done [21:19:42]ExternCall_PrintAddStr [21:19:42]wPrintStart [21:19:42]Write to MH i2c: 01 00 00 84 09 8D [21:19:42]Write i2c OK [21:19:42]MH_I2C_Read... [21:19:42]Read from MH i2c: 01 [21:19:42]MH_I2C_Read... [21:19:42]Read from MH i2c: 01 07 00 [21:19:42]MH_I2C_Read... [21:19:42]Read from MH i2c: 01 07 00 84 09 00 00 00 00 00 FF 0F A2 [21:19:42]RasterBufferAndPrint [21:19:42]line Счет N : (1)347097 [21:19:42]line ИНН: 02508201610067 [21:19:42]line Контрольно-Кассовый Чек [21:19:42]line ПРОДАЖА [21:19:42]line ТРК (МРК, ГНК) : 32 [21:19:42]line Товар: 2710124130 [21:19:42]line Аи-92-К-5 [21:19:42]line 3.970 * 64.30 [21:19:42]line = 255.27 [21:19:42]line НДС 12% НСП 1% [21:19:42]line > о реализуемом товаре [21:19:42]line ОКРУГЛЕНИЕ: -0.27 [21:19:42]line ИТОГО: 255.00 [21:19:42]line Внесено: 255.00 [21:19:42]line СДАЧА: 0.00 [21:19:42]line НСП 1% : 2.26 [21:19:42]line НДС 12% : 27.11 [21:19:42]line Наличными: 255.00 [21:19:42]line Безнал.: 0.00 [21:19:42]line Место: АЗС № 108 "Партнер Нефть" [21:19:42]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [21:19:42]line СНО: Общий режим [21:19:42]line Чек 29 12.04.2024 21:19 [21:19:42]line Смена: 114 ФФД: 1.0 [21:19:42]line ЗНМ: 0300000027 [21:19:42]line РНМ: 0000138879044617 [21:19:42]line Версия ККМ: 001 [21:19:42]line ФМ: 0000000000963154 [21:19:42]line ФД: 28755 [21:19:42]line ФПД: 45476296431803 [21:19:42]line 1/tax-web-control/client/api/v1/ticket?date=20240412T211941&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28755&fm=45476296431803&tin=02508201610067®Number=0000138879044617&sum=25500 [21:19:42]OFD Sender: Processing packet 28755 [packets to send 8, broken 7] [21:19:42]ProducePacketName [21:19:42]name=ofd_packets/00028755 [21:19:42]OFD Sender: To server: pG, [21:19:42]CommunicateWithHost lk.salyk.kg:30040 [21:19:42]ConnectInit lk.salyk.kg [21:19:42]written 0, free lines is 4095 [21:19:42]Connected sock=10 [21:19:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 56 00 07 01 A0 19 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 82 0F 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 B7 63 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 63 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 0A 00 00 00 00 07 04 06 00 9C 63 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 6D A5 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 53 70 00 00 35 04 06 00 29 5C 46 7E 98 BB 35 15 D6 1A 91 DB 4C 44 [21:19:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 DA 26 47 00 CA BB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 53 70 00 00 F4 03 04 00 16 50 19 66 B6 04 01 00 00 AA AD D7 AF 26 DD A0 EA [21:19:42]CommunicateWithHost err = 0 [21:19:42]CheckOFDResponse [21:19:42]1017 (14) - 77093643461234 [21:19:42]1041 (16) - 0000000000963154 [21:19:42]1040 (4) - 28755 [21:19:42]1012 (4) - 12.04.2024 15:15 [21:19:42]1206 (1) - 0 [21:19:42]OFD Sender: Remove packet 28755 [21:19:42]ProducePacketName [21:19:42]name=ofd_packets/00028755 [21:19:42]NVStorageDeleteData [21:19:42]Write to MH i2c: 01 00 00 AE 09 B7 [21:19:42]Write i2c OK [21:19:42]MH_I2C_Read... [21:19:42]Read from MH i2c: 01 [21:19:42]MH_I2C_Read... [21:19:42]Read from MH i2c: 01 07 00 [21:19:42]MH_I2C_Read... [21:19:42]Read from MH i2c: 01 07 00 AE 09 00 00 00 00 00 BD 0C 87 [21:19:42]RasterBufferAndPrint [21:19:42]line [21:19:42]line [21:19:42]line [21:19:42]line [21:19:42]line [21:19:42]written 0, free lines is 3267 [21:19:42]MH_Cut [21:19:42]Write to MH i2c: D1 01 00 B5 09 01 90 [21:19:42]Write i2c OK [21:19:42]MH_I2C_Read... [21:19:42]Read from MH i2c: D1 [21:19:42]MH_I2C_Read... [21:19:42]Read from MH i2c: D1 01 00 [21:19:42]MH_I2C_Read... [21:19:42]Read from MH i2c: D1 01 00 B5 09 00 8F [21:19:42]Write to MH i2c: 01 00 00 B6 09 BF [21:19:42]Write i2c OK [21:19:42]MH_I2C_Read... [21:19:43]OFD Sender: No OFD packet to send [21:19:43]*** Cut start [21:19:43]*** Partial cut [21:19:43]*** CUTSNS_PIN = 1 [21:19:43]*** CUTSNS_PIN = 0 [21:19:43]*** Brake cut motor [21:19:44]Read from MH i2c: 01 [21:19:44]MH_I2C_Read... [21:19:44]*** Stop cut motor [21:19:44]*** Cut end [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 B6 09 00 00 00 00 00 FF 0F D4 [21:19:44]process_action close_receipt done [21:19:44]requested_data is exist [21:19:44]produce_requested_data [21:19:44]requested_item fm.sn is exist - process it [21:19:44]wFMCommunicate request_size=4 [21:19:44]MH_SAM_APDU [21:19:44]CAPDU: 80 11 00 00 [21:19:44]Write to MH i2c: E2 08 00 B7 09 80 11 00 00 00 00 00 00 3A [21:19:44]Write i2c OK [21:19:44]MH_I2C_Read... [21:19:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:19:44]Read from MH i2c: E2 [21:19:44]MH_I2C_Read... [21:19:44]Read from MH i2c: E2 17 00 [21:19:44]MH_I2C_Read... [21:19:44]Read from MH i2c: E2 17 00 B7 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 89 [21:19:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:19:44]wFMCommunicate OK [21:19:44]requested_item fd.num is exist - process it [21:19:44]SAM_PROTO_GetFieldsCounters [21:19:44]wFMCommunicate request_size=4 [21:19:44]MH_SAM_APDU [21:19:44]CAPDU: 80 13 00 00 [21:19:44]Write to MH i2c: E2 08 00 B8 09 80 13 00 00 00 00 00 00 3D [21:19:44]Write i2c OK [21:19:44]MH_I2C_Read... [21:19:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:19:44]Read from MH i2c: E2 [21:19:44]MH_I2C_Read... [21:19:44]Read from MH i2c: E2 62 00 [21:19:44]MH_I2C_Read... [21:19:44]Read from MH i2c: E2 62 00 B8 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 53 70 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 07 [21:19:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 53 70 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 [21:19:44]wFMCommunicate OK [21:19:44]SAM_PROTO_GetFieldsCounters done [21:19:44]requested_item shift.num is exist - process it [21:19:44]requested_item shift.opened is exist - process it [21:19:44]req_shift_opened [21:19:44]FM_GetShiftState [21:19:44]SAM_PROTO_GetShiftState [21:19:44]wFMCommunicate request_size=4 [21:19:44]MH_SAM_APDU [21:19:44]CAPDU: 80 13 01 00 [21:19:44]Write to MH i2c: E2 08 00 B9 09 80 13 01 00 00 00 00 00 3F [21:19:44]Write i2c OK [21:19:44]MH_I2C_Read... [21:19:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:19:44]Read from MH i2c: E2 [21:19:44]MH_I2C_Read... [21:19:44]Read from MH i2c: E2 0E 00 [21:19:44]MH_I2C_Read... [21:19:44]Read from MH i2c: E2 0E 00 B9 09 00 09 00 01 17 88 19 66 00 00 00 00 90 00 69 [21:19:44]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [21:19:44]wFMCommunicate OK [21:19:44]SAM_PROTO_GetShiftState done [21:19:44]FM_GetShiftState done [21:19:44]req_shift_opened done [21:19:44]requested_item shift.open_date is exist - process it [21:19:44]req_shift_open_date [21:19:44]req_shift_open_date done [21:19:44]produce_requested_data done [21:19:44]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28755,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271} [21:19:44]process_action_free close_receipt [21:19:44]json_value_free [21:19:44]json_value_free done [21:19:44]process_json_proto returns [21:19:44]Send response to host [21:19:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28755,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271}}} [21:19:44]free response buf [21:19:44]execute_script done [21:19:44]execute_script returns [21:19:44]free content buf [21:19:44]Sock 9.Close socket [21:19:44]Sock 9.Thread stoped [21:19:48]OFD Sender: No OFD packet to send [21:19:53]OFD Sender: No OFD packet to send [21:19:58]OFD Sender: No OFD packet to send [21:20:03]OFD Sender: No OFD packet to send [21:20:08]OFD Sender: No OFD packet to send [21:20:08]accept exits with 7 [21:20:08]New connection [21:20:08]New thread 3066785124 created [21:20:08]Thread 3066928484 joined [21:20:08]Waiting for new connection... [21:20:08] Sock 7.Parse request [21:20:08]Sock 7.Check first char [21:20:08]Sock 7.First char is OK [21:20:08]request: POST /json_proto HTTP/1.0 [21:20:08]Method: POST [21:20:08]URL: /json_proto [21:20:08]Method is POST - this is cgi request [21:20:08]url: /json_proto [21:20:08]query_string will be loaded in cgi processing [21:20:08]execute_cgi json_proto POST (null) [21:20:08]execute_cgi path=json_proto method=POST [21:20:08]POST find Content-Length [21:20:08]Host: 172.17.33.3:8080 [21:20:08]Content-Length: 811 [21:20:08]Content-Type: application/json [21:20:08] [21:20:08]POST finish read [21:20:08]Found Content-Length = 811 [21:20:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347096", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 36.370, "sum" : 1196.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1196.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:20:08]execute_script... [21:20: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)347096", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 36.370, "sum" : 1196.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1196.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:20:08]POST & json_proto [21:20:08]process_json_proto [21:20:08]json parsed OK: [21:20:08]protocol is kg_v1.0 [21:20:08]action value=close_receipt [21:20:08]process_action close_receipt [21:20:08]cmd_close_receipt [21:20:08]MH_GetDate [21:20:08]Write to MH i2c: F0 00 00 BA 09 B2 [21:20:08]Write i2c OK [21:20:08]MH_I2C_Read... [21:20:08]Read from MH i2c: F0 [21:20:08]MH_I2C_Read... [21:20:08]Read from MH i2c: F0 09 00 [21:20:08]MH_I2C_Read... [21:20:08]Read from MH i2c: F0 09 00 BA 09 00 89 A5 19 66 23 5B 8F 65 DA [21:20:08]GetLastDocTimeStamp 1712956781 [21:20:08]current date 1712956809 [21:20:08]FM_GetShiftState [21:20:08]SAM_PROTO_GetShiftState [21:20:08]wFMCommunicate request_size=4 [21:20:08]MH_SAM_APDU [21:20:08]CAPDU: 80 13 01 00 [21:20:08]Write to MH i2c: E2 08 00 BB 09 80 13 01 00 00 00 00 00 41 [21:20:08]Write i2c OK [21:20:08]MH_I2C_Read... [21:20:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:20:08]Read from MH i2c: E2 [21:20:08]MH_I2C_Read... [21:20:08]Read from MH i2c: E2 0E 00 [21:20:08]MH_I2C_Read... [21:20:08]Read from MH i2c: E2 0E 00 BB 09 00 09 00 01 17 88 19 66 00 00 00 00 90 00 6B [21:20:08]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [21:20:08]wFMCommunicate OK [21:20:08]SAM_PROTO_GetShiftState done [21:20:08]FM_GetShiftState done [21:20:08]opened in 1712949271 [21:20:08]opened+sec_in_day 1713035671 [21:20:08]quantity*price = 119657 [21:20:08]sum+1 = 119658 [21:20:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1196.57 НСП 1% : 10.59 НДС 12% : 127.07 Наличными: 0.00 Безнал.: 1196.57 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 30 12.04.2024 21:20 Смена: 114 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 28756 ФПД: 192659801230478 1/tax-web-control/client/api/v1/ticket?date=20240412T212009&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28756&fm=192659801230478&tin=02508201610067®Number=0000138879044617&sum=119657 [21:20:09]StoreToDocumentArchive [21:20:09]shift 114 fd 28756 [21:20:09]save to /storage/0114/doc_00028756 [21:20:09]save last doc name /storage/0114/doc_00028756 to /storage/kkm_last_doc_name [21:20:09]save OK [21:20:09]Clear old archive folders... [21:20:09]ProcessDocumentItem done err = 0, tmpTLVsize=250 [21:20:09]tlvbuf is 0121F790 [21:20:09]SAM_PROTO_ClearQueue [21:20:09]wFMCommunicate request_size=4 [21:20:09]MH_SAM_APDU [21:20:09]CAPDU: 80 09 00 00 [21:20:09]Write to MH i2c: E2 08 00 C8 09 80 09 00 00 00 00 00 00 43 [21:20:09]Write i2c OK [21:20:09]MH_I2C_Read... [21:20:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:20:09]Read from MH i2c: E2 [21:20:09]MH_I2C_Read... [21:20:09]Read from MH i2c: E2 03 00 [21:20:09]MH_I2C_Read... [21:20:09]Read from MH i2c: E2 03 00 C8 09 00 90 00 45 [21:20:09]RAPDU: 90 00 [21:20:09]wFMCommunicate OK [21:20:09]SAM_PROTO_ClearQueue done [21:20:09]KKMCreateOFDPacket [21:20:09]OFDProtocolAddRootSTLVToBuf [21:20:09]FM_MakeSignedData [21:20:09]FM_MakeSignedData [21:20:09]SAM_PROTO_SignData [21:20:09]wFMCommunicate request_size=4 [21:20:09]MH_SAM_APDU [21:20:09]CAPDU: 80 0D 01 02 [21:20:09]Write to MH i2c: E2 08 00 C9 09 80 0D 01 02 00 00 00 00 4B [21:20:09]Write i2c OK [21:20:09]MH_I2C_Read... [21:20:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:20:09]Read from MH i2c: E2 [21:20:09]MH_I2C_Read... [21:20:09]Read from MH i2c: E2 03 00 [21:20:09]MH_I2C_Read... [21:20:09]Read from MH i2c: E2 03 00 C9 09 00 90 00 46 [21:20:09]RAPDU: 90 00 [21:20:09]wFMCommunicate OK [21:20:09]wFMCommunicate request_size=255 [21:20:09]MH_SAM_APDU [21:20:09]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 12 8E 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 69 D3 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 D3 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 69 D3 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 89 A5 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 54 70 00 00 35 04 06 00 AF 39 [21:20:09]Write to MH i2c: E2 02 01 CA 09 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 12 8E 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 69 D3 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 D3 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 69 D3 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 89 A5 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 54 70 00 00 35 04 06 00 AF 39 00 00 43 [21:20:09]Write i2c OK [21:20:09]MH_I2C_Read... [21:20:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:20:10]Read from MH i2c: E2 [21:20:10]MH_I2C_Read... [21:20:10]Read from MH i2c: E2 03 00 [21:20:10]MH_I2C_Read... [21:20:10]Read from MH i2c: E2 03 00 CA 09 00 90 00 47 [21:20:10]RAPDU: 90 00 [21:20:10]wFMCommunicate OK [21:20:10]wFMCommunicate request_size=9 [21:20:10]MH_SAM_APDU [21:20:10]CAPDU: 80 0D 02 02 04 1B 03 CC 8E [21:20:10]Write to MH i2c: E2 0C 00 CB 09 80 0D 02 02 04 00 1B 03 CC 8E 00 00 CE [21:20:10]Write i2c OK [21:20:10]MH_I2C_Read... [21:20:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:20:10]Read from MH i2c: E2 [21:20:10]MH_I2C_Read... [21:20:10]Read from MH i2c: E2 03 00 [21:20:10]MH_I2C_Read... [21:20:10]Read from MH i2c: E2 03 00 CB 09 00 90 00 48 [21:20:10]RAPDU: 90 00 [21:20:10]wFMCommunicate OK [21:20:10]wFMCommunicate request_size=4 [21:20:10]MH_SAM_APDU [21:20:10]CAPDU: 80 0D 03 02 [21:20:10]Write to MH i2c: E2 08 00 CC 09 80 0D 03 02 00 00 00 00 50 [21:20:10]Write i2c OK [21:20:10]MH_I2C_Read... [21:20:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:20:10]Read from MH i2c: E2 [21:20:10]MH_I2C_Read... [21:20:10]Read from MH i2c: E2 0B 00 [21:20:10]MH_I2C_Read... [21:20:10]Read from MH i2c: E2 0B 00 CC 09 00 9E 93 0D 76 5B 58 54 E2 90 00 EE [21:20:10]RAPDU: 9E 93 0D 76 5B 58 54 E2 90 00 [21:20:10]wFMCommunicate OK [21:20:10]SAM_PROTO_SignData done [21:20:10]FM_MakeSignedData done [21:20:10]CreateOFDProtocolMessage [21:20:10]wFMCommunicate request_size=4 [21:20:10]MH_SAM_APDU [21:20:10]CAPDU: 80 11 00 00 [21:20:10]Write to MH i2c: E2 08 00 CD 09 80 11 00 00 00 00 00 00 50 [21:20:10]Write i2c OK [21:20:10]MH_I2C_Read... [21:20:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:20:10]Read from MH i2c: E2 [21:20:10]MH_I2C_Read... [21:20:10]Read from MH i2c: E2 17 00 [21:20:10]MH_I2C_Read... [21:20:10]Read from MH i2c: E2 17 00 CD 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 9F [21:20:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:20:10]wFMCommunicate OK [21:20:10]CreateOFDProtocolMessage done [21:20:10]OFDSenderStorePacket 28756 [21:20:10]StoreOFDPacket docnum=28756 [21:20:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 CA 57 06 01 0B 4E 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 12 8E 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 69 D3 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 D3 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 69 D3 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 89 A5 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 54 70 00 00 35 04 06 00 AF 39 1B 03 CC 8E 9E 93 0D 76 5B 58 54 E2 [21:20:10]CheckFolder [21:20:10]dirname=/storage/ofd_packets [21:20:10]CheckFolder done [21:20:10]ProducePacketName [21:20:10]name=ofd_packets/00028756 [21:20:10]NVStorageSaveData ofd_packets/00028756 [21:20:10]File name is /storage/ofd_packets/00028756 [21:20:10]Write 300 bytes [21:20:10]NVStorageSaveData done [21:20:10]OFDSenderStorePacket done [21:20:10]KKMCreateOFDPacket done [21:20:10]NVStorageSaveData kkm_last_timestamp [21:20:10]File name is /storage/kkm_last_timestamp [21:20:10]Write 4 bytes [21:20:10]NVStorageSaveData done [21:20:10]ExternCall_PrintAddStr [21:20:10]wPrintStart [21:20:10]Write to MH i2c: 01 00 00 CE 09 D7 [21:20:10]OFD Sender: Processing packet 28756 [packets to send 8, broken 7] [21:20:10]ProducePacketName [21:20:10]name=ofd_packets/00028756 [21:20:10]OFD Sender: To server: pG, [21:20:10]CommunicateWithHost lk.salyk.kg:30040 [21:20:10]ConnectInit lk.salyk.kg [21:20:10]Write i2c OK [21:20:10]MH_I2C_Read... [21:20:10]Read from MH i2c: 01 [21:20:10]MH_I2C_Read... [21:20:10]Read from MH i2c: 01 07 00 [21:20:10]MH_I2C_Read... [21:20:10]Read from MH i2c: 01 07 00 CE 09 00 00 00 00 00 FF 0F EC [21:20:10]RasterBufferAndPrint [21:20:10]line Счет N : (1)347096 [21:20:10]line ИНН: 02508201610067 [21:20:10]line Контрольно-Кассовый Чек [21:20:10]line ПРОДАЖА [21:20:10]line ТРК (МРК, ГНК) : 71 [21:20:10]line Товар: 2711129700 [21:20:10]line ГАЗ-К-5 [21:20:10]line 36.370 * 32.90 [21:20:10]line = 1196.57 [21:20:10]line НДС 12% НСП 1% [21:20:10]line > о реализуемом товаре [21:20:10]line ИТОГО: 1196.57 [21:20:10]line НСП 1% : 10.59 [21:20:10]line НДС 12% : 127.07 [21:20:10]line Наличными: 0.00 [21:20:10]line Безнал.: 1196.57 [21:20:10]line Место: АЗС № 108 "Партнер Нефть" [21:20:10]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [21:20:10]line СНО: Общий режим [21:20:10]line Чек 30 12.04.2024 21:20 [21:20:10]line Смена: 114 ФФД: 1.0 [21:20:10]line ЗНМ: 0300000027 [21:20:10]line РНМ: 0000138879044617 [21:20:10]line Версия ККМ: 001 [21:20:10]line Платежная система: О! деньги [21:20:10]line ФМ: 0000000000963154 [21:20:10]line ФД: 28756 [21:20:10]line ФПД: 192659801230478 [21:20:10]line 1/tax-web-control/client/api/v1/ticket?date=20240412T212009&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28756&fm=192659801230478&tin=02508201610067®Number=0000138879044617&sum=119657 [21:20:10]Connected sock=11 [21:20:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 CA 57 06 01 0B 4E 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 12 8E 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 69 D3 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 D3 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 69 D3 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 89 A5 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 54 70 00 00 35 04 06 00 AF 39 1B 03 CC 8E 9E 93 0D 76 5B 58 54 E2 [21:20:10]written 0, free lines is 4095 [21:20:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 00 74 47 00 8C CF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 54 70 00 00 F4 03 04 00 32 50 19 66 B6 04 01 00 00 E4 85 71 12 F6 60 F3 B8 [21:20:10]CommunicateWithHost err = 0 [21:20:10]CheckOFDResponse [21:20:10]1017 (14) - 77093643461234 [21:20:10]1041 (16) - 0000000000963154 [21:20:10]1040 (4) - 28756 [21:20:10]1012 (4) - 12.04.2024 15:16 [21:20:10]1206 (1) - 0 [21:20:10]OFD Sender: Remove packet 28756 [21:20:10]ProducePacketName [21:20:10]name=ofd_packets/00028756 [21:20:10]NVStorageDeleteData [21:20:11]Write to MH i2c: 01 00 00 F7 09 00 [21:20:11]Write i2c OK [21:20:11]MH_I2C_Read... [21:20:11]Read from MH i2c: 01 [21:20:11]MH_I2C_Read... [21:20:11]Read from MH i2c: 01 07 00 [21:20:11]MH_I2C_Read... [21:20:11]Read from MH i2c: 01 07 00 F7 09 00 00 00 00 00 D9 0C EC [21:20:11]RasterBufferAndPrint [21:20:11]line [21:20:11]line [21:20:11]line [21:20:11]line [21:20:11]line [21:20:11]written 0, free lines is 3295 [21:20:11]MH_Cut [21:20:11]Write to MH i2c: D1 01 00 FE 09 01 D9 [21:20:11]Write i2c OK [21:20:11]MH_I2C_Read... [21:20:11]Read from MH i2c: D1 [21:20:11]MH_I2C_Read... [21:20:11]Read from MH i2c: D1 01 00 [21:20:11]MH_I2C_Read... [21:20:11]Read from MH i2c: D1 01 00 FE 09 00 D8 [21:20:11]Write to MH i2c: 01 00 00 FF 09 08 [21:20:11]Write i2c OK [21:20:11]MH_I2C_Read... [21:20:11]OFD Sender: No OFD packet to send [21:20:11]*** Cut start [21:20:11]*** Partial cut [21:20:11]*** CUTSNS_PIN = 1 [21:20:12]*** CUTSNS_PIN = 0 [21:20:12]*** Brake cut motor [21:20:12]Read from MH i2c: 01 [21:20:12]MH_I2C_Read... [21:20:12]*** Stop cut motor [21:20:12]*** Cut end [21:20:12]Read from MH i2c: 01 07 00 [21:20:12]MH_I2C_Read... [21:20:12]Read from MH i2c: 01 07 00 FF 09 00 00 00 00 00 FF 0F 1D [21:20:12]process_action close_receipt done [21:20:12]requested_data is exist [21:20:12]produce_requested_data [21:20:12]requested_item fm.sn is exist - process it [21:20:12]wFMCommunicate request_size=4 [21:20:12]MH_SAM_APDU [21:20:12]CAPDU: 80 11 00 00 [21:20:12]Write to MH i2c: E2 08 00 00 0A 80 11 00 00 00 00 00 00 84 [21:20:12]Write i2c OK [21:20:12]MH_I2C_Read... [21:20:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:20:12]Read from MH i2c: E2 [21:20:12]MH_I2C_Read... [21:20:12]Read from MH i2c: E2 17 00 [21:20:12]MH_I2C_Read... [21:20:12]Read from MH i2c: E2 17 00 00 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D3 [21:20:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:20:12]wFMCommunicate OK [21:20:12]requested_item fd.num is exist - process it [21:20:12]SAM_PROTO_GetFieldsCounters [21:20:12]wFMCommunicate request_size=4 [21:20:12]MH_SAM_APDU [21:20:12]CAPDU: 80 13 00 00 [21:20:12]Write to MH i2c: E2 08 00 01 0A 80 13 00 00 00 00 00 00 87 [21:20:12]Write i2c OK [21:20:12]MH_I2C_Read... [21:20:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:20:12]Read from MH i2c: E2 [21:20:12]MH_I2C_Read... [21:20:12]Read from MH i2c: E2 62 00 [21:20:12]MH_I2C_Read... [21:20:12]Read from MH i2c: E2 62 00 01 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 54 70 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 55 [21:20:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 54 70 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 [21:20:12]wFMCommunicate OK [21:20:12]SAM_PROTO_GetFieldsCounters done [21:20:12]requested_item shift.num is exist - process it [21:20:12]requested_item shift.opened is exist - process it [21:20:12]req_shift_opened [21:20:12]FM_GetShiftState [21:20:12]SAM_PROTO_GetShiftState [21:20:12]wFMCommunicate request_size=4 [21:20:12]MH_SAM_APDU [21:20:12]CAPDU: 80 13 01 00 [21:20:12]Write to MH i2c: E2 08 00 02 0A 80 13 01 00 00 00 00 00 89 [21:20:12]Write i2c OK [21:20:12]MH_I2C_Read... [21:20:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:20:12]Read from MH i2c: E2 [21:20:12]MH_I2C_Read... [21:20:12]Read from MH i2c: E2 0E 00 [21:20:12]MH_I2C_Read... [21:20:12]Read from MH i2c: E2 0E 00 02 0A 00 09 00 01 17 88 19 66 00 00 00 00 90 00 B3 [21:20:12]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [21:20:12]wFMCommunicate OK [21:20:12]SAM_PROTO_GetShiftState done [21:20:12]FM_GetShiftState done [21:20:12]req_shift_opened done [21:20:12]requested_item shift.open_date is exist - process it [21:20:12]req_shift_open_date [21:20:12]req_shift_open_date done [21:20:12]produce_requested_data done [21:20:12]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28756,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271} [21:20:12]process_action_free close_receipt [21:20:12]json_value_free [21:20:12]json_value_free done [21:20:12]process_json_proto returns [21:20:12]Send response to host [21:20:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28756,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271}}} [21:20:12]free response buf [21:20:12]execute_script done [21:20:12]execute_script returns [21:20:12]free content buf [21:20:12]Sock 7.Close socket [21:20:12]Sock 7.Thread stoped [21:20:16]OFD Sender: No OFD packet to send [21:20:21]OFD Sender: No OFD packet to send [21:20:26]OFD Sender: No OFD packet to send [21:20:31]OFD Sender: No OFD packet to send [21:20:36]OFD Sender: No OFD packet to send [21:20:41]OFD Sender: No OFD packet to send [21:20:46]OFD Sender: No OFD packet to send [21:20:51]OFD Sender: No OFD packet to send [21:20:56]OFD Sender: No OFD packet to send [21:21:01]OFD Sender: No OFD packet to send [21:21:06]OFD Sender: No OFD packet to send [21:21:11]OFD Sender: No OFD packet to send [21:21:16]OFD Sender: No OFD packet to send [21:21:21]OFD Sender: No OFD packet to send [21:21:26]OFD Sender: No OFD packet to send [21:21:31]OFD Sender: No OFD packet to send [21:21:36]OFD Sender: No OFD packet to send [21:21:41]OFD Sender: No OFD packet to send [21:21:46]OFD Sender: No OFD packet to send [21:21:51]OFD Sender: No OFD packet to send [21:21:56]OFD Sender: No OFD packet to send [21:22:01]OFD Sender: No OFD packet to send [21:22:06]OFD Sender: No OFD packet to send [21:22:11]OFD Sender: No OFD packet to send [21:22:16]OFD Sender: No OFD packet to send [21:22:21]OFD Sender: No OFD packet to send [21:22:26]OFD Sender: No OFD packet to send [21:22:31]OFD Sender: No OFD packet to send [21:22:36]OFD Sender: No OFD packet to send [21:22:41]OFD Sender: No OFD packet to send [21:22:46]OFD Sender: No OFD packet to send [21:22:51]OFD Sender: No OFD packet to send [21:22:56]OFD Sender: No OFD packet to send [21:23:00]accept exits with 9 [21:23:00]New connection [21:23:00]New thread 3066928484 created [21:23:00]Thread 3066785124 joined [21:23:00]Waiting for new connection... [21:23:00] Sock 9.Parse request [21:23:00]Sock 9.Check first char [21:23:00]Sock 9.First char is OK [21:23:00]request: POST /json_proto HTTP/1.0 [21:23:00]Method: POST [21:23:00]URL: /json_proto [21:23:00]Method is POST - this is cgi request [21:23:00]url: /json_proto [21:23:00]query_string will be loaded in cgi processing [21:23:00]execute_cgi json_proto POST (null) [21:23:00]execute_cgi path=json_proto method=POST [21:23:00]POST find Content-Length [21:23:00]Host: 172.17.33.3:8080 [21:23:00]Content-Length: 1214 [21:23:00]Content-Type: application/json [21:23:00] [21:23:00]POST finish read [21:23:00]Found Content-Length = 1214 [21:23:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0440\u044B\u0431\u0430\u0435\u0432 \u042D. \u000A\u0421\u0447\u0435\u0442 N : (1)347098\u000A12.04.2024 21:04\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 96.690 x 72.40\u000A\u0418\u0422\u041E\u0413: 7000.36\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3792847;3792849;3792850;3792851;3792852\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:23:00]execute_script... [21:23:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0440\u044B\u0431\u0430\u0435\u0432 \u042D. \u000A\u0421\u0447\u0435\u0442 N : (1)347098\u000A12.04.2024 21:04\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 96.690 x 72.40\u000A\u0418\u0422\u041E\u0413: 7000.36\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3792847;3792849;3792850;3792851;3792852\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:23:00]POST & json_proto [21:23:00]process_json_proto [21:23:00]json parsed OK: [21:23:00]protocol is kg_v1.0 [21:23:00]action value=print_text [21:23:00]process_action print_text [21:23:00]cmd_print_text [21:23:00]ExternCall_PrintAddStr [21:23:00]wPrintStart [21:23:00]Write to MH i2c: 01 00 00 03 0A 0D [21:23:00]Write i2c OK [21:23:00]MH_I2C_Read... [21:23:00]Read from MH i2c: 01 [21:23:00]MH_I2C_Read... [21:23:00]Read from MH i2c: 01 07 00 [21:23:00]MH_I2C_Read... [21:23:00]Read from MH i2c: 01 07 00 03 0A 00 00 00 00 00 FF 0F 22 [21:23:00]RasterBufferAndPrint [21:23:00]line *****ТОВАРНЫЙ ЧЕК***** [21:23:00]line АЗС 108 [21:23:00]line Партнер нефть [21:23:00]line 02508201610067 [21:23:00]line Кассир : Сарыбаев Э. [21:23:00]line Счет N : (1)347098 [21:23:00]line 12.04.2024 21:04 [21:23:00]line ПРОДАЖА [21:23:00]line ТРК (МРК, ГНК): 61 [21:23:00]line Вид ГСМ : 2710194210 [21:23:00]line ДТ-К-5 [21:23:00]line 96.690 x 72.40 [21:23:00]line ИТОГ: 7000.36 [21:23:00]line Тип оплаты: Талоны: Партнер нефть [21:23:00]line 3792847;3792849;3792850;3792851;3792852 [21:23:00]line ______________________ [21:23:00]line (подпись) [21:23:00]written 0, free lines is 4095 [21:23:00]Write to MH i2c: 01 00 00 18 0A 22 [21:23:00]Write i2c OK [21:23:00]MH_I2C_Read... [21:23:00]Read from MH i2c: 01 [21:23:00]MH_I2C_Read... [21:23:00]Read from MH i2c: 01 07 00 [21:23:00]MH_I2C_Read... [21:23:00]Read from MH i2c: 01 07 00 18 0A 00 00 00 00 00 0C 0E 43 [21:23:00]RasterBufferAndPrint [21:23:00]line [21:23:00]line [21:23:00]line [21:23:00]line [21:23:00]line [21:23:00]written 0, free lines is 3600 [21:23:00]MH_Cut [21:23:00]Write to MH i2c: D1 01 00 1F 0A 01 FB [21:23:00]Write i2c OK [21:23:00]MH_I2C_Read... [21:23:00]Read from MH i2c: D1 [21:23:00]MH_I2C_Read... [21:23:00]Read from MH i2c: D1 01 00 [21:23:00]MH_I2C_Read... [21:23:00]Read from MH i2c: D1 01 00 1F 0A 00 FA [21:23:00]Write to MH i2c: 01 00 00 20 0A 2A [21:23:00]Write i2c OK [21:23:00]MH_I2C_Read... [21:23:01]*** Cut start [21:23:01]*** Partial cut [21:23:01]*** CUTSNS_PIN = 1 [21:23:01]*** CUTSNS_PIN = 0 [21:23:01]OFD Sender: No OFD packet to send [21:23:01]*** Brake cut motor [21:23:02]Read from MH i2c: 01 [21:23:02]MH_I2C_Read... [21:23:02]*** Stop cut motor [21:23:02]*** Cut end [21:23:02]Read from MH i2c: 01 07 00 [21:23:02]MH_I2C_Read... [21:23:02]Read from MH i2c: 01 07 00 20 0A 00 00 00 00 00 FF 0F 3F [21:23:02]process_action print_text done [21:23:02]requested_data is exist [21:23:02]produce_requested_data [21:23:02]requested_item fm.sn is exist - process it [21:23:02]wFMCommunicate request_size=4 [21:23:02]MH_SAM_APDU [21:23:02]CAPDU: 80 11 00 00 [21:23:02]Write to MH i2c: E2 08 00 21 0A 80 11 00 00 00 00 00 00 A5 [21:23:02]Write i2c OK [21:23:02]MH_I2C_Read... [21:23:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:23:02]Read from MH i2c: E2 [21:23:02]MH_I2C_Read... [21:23:02]Read from MH i2c: E2 17 00 [21:23:02]MH_I2C_Read... [21:23:02]Read from MH i2c: E2 17 00 21 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 F4 [21:23:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:23:02]wFMCommunicate OK [21:23:02]requested_item fd.num is exist - process it [21:23:02]SAM_PROTO_GetFieldsCounters [21:23:02]wFMCommunicate request_size=4 [21:23:02]MH_SAM_APDU [21:23:02]CAPDU: 80 13 00 00 [21:23:02]Write to MH i2c: E2 08 00 22 0A 80 13 00 00 00 00 00 00 A8 [21:23:02]Write i2c OK [21:23:02]MH_I2C_Read... [21:23:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:23:02]Read from MH i2c: E2 [21:23:02]MH_I2C_Read... [21:23:02]Read from MH i2c: E2 62 00 [21:23:02]MH_I2C_Read... [21:23:02]Read from MH i2c: E2 62 00 22 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 54 70 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 76 [21:23:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 54 70 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 [21:23:02]wFMCommunicate OK [21:23:02]SAM_PROTO_GetFieldsCounters done [21:23:02]requested_item shift.num is exist - process it [21:23:02]requested_item shift.opened is exist - process it [21:23:02]req_shift_opened [21:23:02]FM_GetShiftState [21:23:02]SAM_PROTO_GetShiftState [21:23:02]wFMCommunicate request_size=4 [21:23:02]MH_SAM_APDU [21:23:02]CAPDU: 80 13 01 00 [21:23:02]Write to MH i2c: E2 08 00 23 0A 80 13 01 00 00 00 00 00 AA [21:23:02]Write i2c OK [21:23:02]MH_I2C_Read... [21:23:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:23:02]Read from MH i2c: E2 [21:23:02]MH_I2C_Read... [21:23:02]Read from MH i2c: E2 0E 00 [21:23:02]MH_I2C_Read... [21:23:02]Read from MH i2c: E2 0E 00 23 0A 00 09 00 01 17 88 19 66 00 00 00 00 90 00 D4 [21:23:02]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [21:23:02]wFMCommunicate OK [21:23:02]SAM_PROTO_GetShiftState done [21:23:02]FM_GetShiftState done [21:23:02]req_shift_opened done [21:23:02]requested_item shift.open_date is exist - process it [21:23:02]req_shift_open_date [21:23:02]req_shift_open_date done [21:23:02]produce_requested_data done [21:23:02]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28756,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271} [21:23:02]process_action_free print_text [21:23:02]json_value_free [21:23:02]json_value_free done [21:23:02]process_json_proto returns [21:23:02]Send response to host [21:23:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28756,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271}}} [21:23:02]free response buf [21:23:02]execute_script done [21:23:02]execute_script returns [21:23:02]free content buf [21:23:02]Sock 9.Close socket [21:23:02]Sock 9.Thread stoped [21:23:06]OFD Sender: No OFD packet to send [21:23:11]OFD Sender: No OFD packet to send [21:23:16]OFD Sender: No OFD packet to send [21:23:21]OFD Sender: No OFD packet to send [21:23:26]OFD Sender: No OFD packet to send [21:23:31]OFD Sender: No OFD packet to send [21:23:32]accept exits with 7 [21:23:32]New connection [21:23:32]New thread 3066785124 created [21:23:32]Thread 3066928484 joined [21:23:32]Waiting for new connection... [21:23:32] Sock 7.Parse request [21:23:32]Sock 7.Check first char [21:23:32]Sock 7.First char is OK [21:23:32]request: POST /json_proto HTTP/1.0 [21:23:32]Method: POST [21:23:32]URL: /json_proto [21:23:32]Method is POST - this is cgi request [21:23:32]url: /json_proto [21:23:32]query_string will be loaded in cgi processing [21:23:32]execute_cgi json_proto POST (null) [21:23:32]execute_cgi path=json_proto method=POST [21:23:32]POST find Content-Length [21:23:32]Host: 172.17.33.3:8080 [21:23:32]Content-Length: 805 [21:23:32]Content-Type: application/json [21:23:32] [21:23:32]POST finish read [21:23:32]Found Content-Length = 805 [21:23:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347100", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 7.840, "sum" : 504.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 504.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:23:32]execute_script... [21:23: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)347100", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 7.840, "sum" : 504.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 504.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:23:32]POST & json_proto [21:23:32]process_json_proto [21:23:32]json parsed OK: [21:23:32]protocol is kg_v1.0 [21:23:32]action value=close_receipt [21:23:32]process_action close_receipt [21:23:32]cmd_close_receipt [21:23:32]MH_GetDate [21:23:32]Write to MH i2c: F0 00 00 24 0A 1D [21:23:32]Write i2c OK [21:23:32]MH_I2C_Read... [21:23:32]Read from MH i2c: F0 [21:23:32]MH_I2C_Read... [21:23:32]Read from MH i2c: F0 09 00 [21:23:32]MH_I2C_Read... [21:23:32]Read from MH i2c: F0 09 00 24 0A 00 55 A6 19 66 23 5B 8F 65 12 [21:23:32]GetLastDocTimeStamp 1712956809 [21:23:32]current date 1712957013 [21:23:32]FM_GetShiftState [21:23:32]SAM_PROTO_GetShiftState [21:23:32]wFMCommunicate request_size=4 [21:23:32]MH_SAM_APDU [21:23:32]CAPDU: 80 13 01 00 [21:23:32]Write to MH i2c: E2 08 00 25 0A 80 13 01 00 00 00 00 00 AC [21:23:32]Write i2c OK [21:23:32]MH_I2C_Read... [21:23:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:23:32]Read from MH i2c: E2 [21:23:32]MH_I2C_Read... [21:23:32]Read from MH i2c: E2 0E 00 [21:23:32]MH_I2C_Read... [21:23:32]Read from MH i2c: E2 0E 00 25 0A 00 09 00 01 17 88 19 66 00 00 00 00 90 00 D6 [21:23:32]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [21:23:32]wFMCommunicate OK [21:23:32]SAM_PROTO_GetShiftState done [21:23:32]FM_GetShiftState done [21:23:32]opened in 1712949271 [21:23:32]opened+sec_in_day 1713035671 [21:23:32]quantity*price = 50411 [21:23:32]sum+1 = 50412 [21:23:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 504.11 НСП 1% : 4.46 НДС 12% : 53.53 Наличными: 0.00 Безнал.: 504.11 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 31 12.04.2024 21:23 Смена: 114 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 28757 ФПД: 237016970167250 1/tax-web-control/client/api/v1/ticket?date=20240412T212333&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28757&fm=237016970167250&tin=02508201610067®Number=0000138879044617&sum=50411 [21:23:33]StoreToDocumentArchive [21:23:33]shift 114 fd 28757 [21:23:33]save to /storage/0114/doc_00028757 [21:23:33]save last doc name /storage/0114/doc_00028757 to /storage/kkm_last_doc_name [21:23:33]save OK [21:23:33]Clear old archive folders... [21:23:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:23:33]tlvbuf is 01222590 [21:23:33]SAM_PROTO_ClearQueue [21:23:33]wFMCommunicate request_size=4 [21:23:33]MH_SAM_APDU [21:23:33]CAPDU: 80 09 00 00 [21:23:33]Write to MH i2c: E2 08 00 32 0A 80 09 00 00 00 00 00 00 AE [21:23:33]Write i2c OK [21:23:33]MH_I2C_Read... [21:23:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:23:33]Read from MH i2c: E2 [21:23:33]MH_I2C_Read... [21:23:33]Read from MH i2c: E2 03 00 [21:23:33]MH_I2C_Read... [21:23:33]Read from MH i2c: E2 03 00 32 0A 00 90 00 B0 [21:23:33]RAPDU: 90 00 [21:23:33]wFMCommunicate OK [21:23:33]SAM_PROTO_ClearQueue done [21:23:33]KKMCreateOFDPacket [21:23:33]OFDProtocolAddRootSTLVToBuf [21:23:33]FM_MakeSignedData [21:23:33]FM_MakeSignedData [21:23:33]SAM_PROTO_SignData [21:23:33]wFMCommunicate request_size=4 [21:23:33]MH_SAM_APDU [21:23:33]CAPDU: 80 0D 01 02 [21:23:33]Write to MH i2c: E2 08 00 33 0A 80 0D 01 02 00 00 00 00 B6 [21:23:33]Write i2c OK [21:23:33]MH_I2C_Read... [21:23:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:23:33]Read from MH i2c: E2 [21:23:33]MH_I2C_Read... [21:23:33]Read from MH i2c: E2 03 00 [21:23:33]MH_I2C_Read... [21:23:33]Read from MH i2c: E2 03 00 33 0A 00 90 00 B1 [21:23:33]RAPDU: 90 00 [21:23:33]wFMCommunicate OK [21:23:33]wFMCommunicate request_size=255 [21:23:33]MH_SAM_APDU [21:23: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 35 FF 03 08 00 03 A0 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 EB C4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EB C4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EB C4 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 55 A6 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 55 70 00 00 35 04 06 00 D7 [21:23:33]Write to MH i2c: E2 02 01 34 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 EB C4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EB C4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EB C4 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 55 A6 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 55 70 00 00 35 04 06 00 D7 00 00 42 [21:23:33]Write i2c OK [21:23:33]MH_I2C_Read... [21:23:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:23:33]Read from MH i2c: E2 [21:23:33]MH_I2C_Read... [21:23:33]Read from MH i2c: E2 03 00 [21:23:33]MH_I2C_Read... [21:23:33]Read from MH i2c: E2 03 00 34 0A 00 90 00 B2 [21:23:33]RAPDU: 90 00 [21:23:33]wFMCommunicate OK [21:23:33]wFMCommunicate request_size=10 [21:23:33]MH_SAM_APDU [21:23:33]CAPDU: 80 0D 02 02 05 90 D0 50 03 D2 [21:23:33]Write to MH i2c: E2 0D 00 35 0A 80 0D 02 02 05 00 90 D0 50 03 D2 00 00 48 [21:23:33]Write i2c OK [21:23:33]MH_I2C_Read... [21:23:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:23:33]Read from MH i2c: E2 [21:23:33]MH_I2C_Read... [21:23:33]Read from MH i2c: E2 03 00 [21:23:33]MH_I2C_Read... [21:23:33]Read from MH i2c: E2 03 00 35 0A 00 90 00 B3 [21:23:33]RAPDU: 90 00 [21:23:33]wFMCommunicate OK [21:23:33]wFMCommunicate request_size=4 [21:23:33]MH_SAM_APDU [21:23:33]CAPDU: 80 0D 03 02 [21:23:33]Write to MH i2c: E2 08 00 36 0A 80 0D 03 02 00 00 00 00 BB [21:23:33]Write i2c OK [21:23:33]MH_I2C_Read... [21:23:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:23:34]Read from MH i2c: E2 [21:23:34]MH_I2C_Read... [21:23:34]Read from MH i2c: E2 0B 00 [21:23:34]MH_I2C_Read... [21:23:34]Read from MH i2c: E2 0B 00 36 0A 00 AD 06 10 F0 61 D4 60 70 90 00 74 [21:23:34]RAPDU: AD 06 10 F0 61 D4 60 70 90 00 [21:23:34]wFMCommunicate OK [21:23:34]SAM_PROTO_SignData done [21:23:34]FM_MakeSignedData done [21:23:34]CreateOFDProtocolMessage [21:23:34]wFMCommunicate request_size=4 [21:23:34]MH_SAM_APDU [21:23:34]CAPDU: 80 11 00 00 [21:23:34]Write to MH i2c: E2 08 00 37 0A 80 11 00 00 00 00 00 00 BB [21:23:34]Write i2c OK [21:23:34]MH_I2C_Read... [21:23:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:23:34]Read from MH i2c: E2 [21:23:34]MH_I2C_Read... [21:23:34]Read from MH i2c: E2 17 00 [21:23:34]MH_I2C_Read... [21:23:34]Read from MH i2c: E2 17 00 37 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 0A [21:23:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:23:34]wFMCommunicate OK [21:23:34]CreateOFDProtocolMessage done [21:23:34]OFDSenderStorePacket 28757 [21:23:34]StoreOFDPacket docnum=28757 [21:23:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 51 A7 07 01 24 2D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 EB C4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EB C4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EB C4 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 55 A6 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 55 70 00 00 35 04 06 00 D7 90 D0 50 03 D2 AD 06 10 F0 61 D4 60 70 [21:23:34]CheckFolder [21:23:34]dirname=/storage/ofd_packets [21:23:34]CheckFolder done [21:23:34]ProducePacketName [21:23:34]name=ofd_packets/00028757 [21:23:34]NVStorageSaveData ofd_packets/00028757 [21:23:34]File name is /storage/ofd_packets/00028757 [21:23:34]Write 301 bytes [21:23:34]NVStorageSaveData done [21:23:34]OFDSenderStorePacket done [21:23:34]KKMCreateOFDPacket done [21:23:34]NVStorageSaveData kkm_last_timestamp [21:23:34]File name is /storage/kkm_last_timestamp [21:23:34]Write 4 bytes [21:23:34]NVStorageSaveData done [21:23:34]ExternCall_PrintAddStr [21:23:34]wPrintStart [21:23:34]Write to MH i2c: 01 00 00 38 0A 42 [21:23:34]Write i2c OK [21:23:34]MH_I2C_Read... [21:23:34]Read from MH i2c: 01 [21:23:34]MH_I2C_Read... [21:23:34]Read from MH i2c: 01 07 00 [21:23:34]MH_I2C_Read... [21:23:34]Read from MH i2c: 01 07 00 38 0A 00 00 00 00 00 FF 0F 57 [21:23:34]RasterBufferAndPrint [21:23:34]line Счет N : (1)347100 [21:23:34]line ИНН: 02508201610067 [21:23:34]line Контрольно-Кассовый Чек [21:23:34]line ПРОДАЖА [21:23:34]line ТРК (МРК, ГНК) : 42 [21:23:34]line Товар: 2710124130 [21:23:34]line Аи-92-К-5 [21:23:34]line 7.840 * 64.30 [21:23:34]line = 504.11 [21:23:34]line НДС 12% НСП 1% [21:23:34]line > о реализуемом товаре [21:23:34]line ИТОГО: 504.11 [21:23:34]line НСП 1% : 4.46 [21:23:34]line НДС 12% : 53.53 [21:23:34]line Наличными: 0.00 [21:23:34]line Безнал.: 504.11 [21:23:34]line Место: АЗС № 108 "Партнер Нефть" [21:23:34]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [21:23:34]line СНО: Общий режим [21:23:34]line Чек 31 12.04.2024 21:23 [21:23:34]line Смена: 114 ФФД: 1.0 [21:23:34]line ЗНМ: 0300000027 [21:23:34]line РНМ: 0000138879044617 [21:23:34]line Версия ККМ: 001 [21:23:34]line Платежная система: О! деньги [21:23:34]line ФМ: 0000000000963154 [21:23:34]line ФД: 28757 [21:23:34]line ФПД: 237016970167250 [21:23:34]line 1/tax-web-control/client/api/v1/ticket?date=20240412T212333&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28757&fm=237016970167250&tin=02508201610067®Number=0000138879044617&sum=50411 [21:23:34]OFD Sender: Processing packet 28757 [packets to send 8, broken 7] [21:23:34]ProducePacketName [21:23:34]name=ofd_packets/00028757 [21:23:34]OFD Sender: To server: pG, [21:23:34]CommunicateWithHost lk.salyk.kg:30040 [21:23:34]ConnectInit lk.salyk.kg [21:23:34]written 0, free lines is 4095 [21:23:34]Connected sock=10 [21:23:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 51 A7 07 01 24 2D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 EB C4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EB C4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EB C4 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 55 A6 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 55 70 00 00 35 04 06 00 D7 90 D0 50 03 D2 AD 06 10 F0 61 D4 60 70 [21:23:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 DD 36 47 00 83 14 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 55 70 00 00 F4 03 04 00 FE 50 19 66 B6 04 01 00 00 A6 F0 C8 0A FD A0 9F 93 [21:23:34]CommunicateWithHost err = 0 [21:23:34]CheckOFDResponse [21:23:34]1017 (14) - 77093643461234 [21:23:34]1041 (16) - 0000000000963154 [21:23:34]1040 (4) - 28757 [21:23:34]1012 (4) - 12.04.2024 15:19 [21:23:34]1206 (1) - 0 [21:23:34]OFD Sender: Remove packet 28757 [21:23:34]ProducePacketName [21:23:34]name=ofd_packets/00028757 [21:23:34]NVStorageDeleteData [21:23:34]Write to MH i2c: 01 00 00 61 0A 6B [21:23:34]Write i2c OK [21:23:34]MH_I2C_Read... [21:23:34]Read from MH i2c: 01 [21:23:34]MH_I2C_Read... [21:23:34]Read from MH i2c: 01 07 00 [21:23:34]MH_I2C_Read... [21:23:34]Read from MH i2c: 01 07 00 61 0A 00 00 00 00 00 DF 0C 5D [21:23:34]RasterBufferAndPrint [21:23:34]line [21:23:34]line [21:23:34]line [21:23:34]line [21:23:34]line [21:23:34]written 0, free lines is 3301 [21:23:34]MH_Cut [21:23:34]Write to MH i2c: D1 01 00 68 0A 01 44 [21:23:34]Write i2c OK [21:23:34]MH_I2C_Read... [21:23:34]Read from MH i2c: D1 [21:23:34]MH_I2C_Read... [21:23:34]Read from MH i2c: D1 01 00 [21:23:34]MH_I2C_Read... [21:23:34]Read from MH i2c: D1 01 00 68 0A 00 43 [21:23:34]Write to MH i2c: 01 00 00 69 0A 73 [21:23:34]Write i2c OK [21:23:34]MH_I2C_Read... [21:23:35]OFD Sender: No OFD packet to send [21:23:35]*** Cut start [21:23:35]*** Partial cut [21:23:35]*** CUTSNS_PIN = 1 [21:23:35]*** CUTSNS_PIN = 0 [21:23:35]*** Brake cut motor [21:23:36]Read from MH i2c: 01 [21:23:36]MH_I2C_Read... [21:23:36]*** Stop cut motor [21:23:36]*** Cut end [21:23:36]Read from MH i2c: 01 07 00 [21:23:36]MH_I2C_Read... [21:23:36]Read from MH i2c: 01 07 00 69 0A 00 00 00 00 00 FF 0F 88 [21:23:36]process_action close_receipt done [21:23:36]requested_data is exist [21:23:36]produce_requested_data [21:23:36]requested_item fm.sn is exist - process it [21:23:36]wFMCommunicate request_size=4 [21:23:36]MH_SAM_APDU [21:23:36]CAPDU: 80 11 00 00 [21:23:36]Write to MH i2c: E2 08 00 6A 0A 80 11 00 00 00 00 00 00 EE [21:23:36]Write i2c OK [21:23:36]MH_I2C_Read... [21:23:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:23:36]Read from MH i2c: E2 [21:23:36]MH_I2C_Read... [21:23:36]Read from MH i2c: E2 17 00 [21:23:36]MH_I2C_Read... [21:23:36]Read from MH i2c: E2 17 00 6A 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 3D [21:23:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:23:36]wFMCommunicate OK [21:23:36]requested_item fd.num is exist - process it [21:23:36]SAM_PROTO_GetFieldsCounters [21:23:36]wFMCommunicate request_size=4 [21:23:36]MH_SAM_APDU [21:23:36]CAPDU: 80 13 00 00 [21:23:36]Write to MH i2c: E2 08 00 6B 0A 80 13 00 00 00 00 00 00 F1 [21:23:36]Write i2c OK [21:23:36]MH_I2C_Read... [21:23:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:23:36]Read from MH i2c: E2 [21:23:36]MH_I2C_Read... [21:23:36]Read from MH i2c: E2 62 00 [21:23:36]MH_I2C_Read... [21:23:36]Read from MH i2c: E2 62 00 6B 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 55 70 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 C3 [21:23:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 55 70 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 [21:23:36]wFMCommunicate OK [21:23:36]SAM_PROTO_GetFieldsCounters done [21:23:36]requested_item shift.num is exist - process it [21:23:36]requested_item shift.opened is exist - process it [21:23:36]req_shift_opened [21:23:36]FM_GetShiftState [21:23:36]SAM_PROTO_GetShiftState [21:23:36]wFMCommunicate request_size=4 [21:23:36]MH_SAM_APDU [21:23:36]CAPDU: 80 13 01 00 [21:23:36]Write to MH i2c: E2 08 00 6C 0A 80 13 01 00 00 00 00 00 F3 [21:23:36]Write i2c OK [21:23:36]MH_I2C_Read... [21:23:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:23:36]Read from MH i2c: E2 [21:23:36]MH_I2C_Read... [21:23:36]Read from MH i2c: E2 0E 00 [21:23:36]MH_I2C_Read... [21:23:36]Read from MH i2c: E2 0E 00 6C 0A 00 09 00 01 17 88 19 66 00 00 00 00 90 00 1D [21:23:36]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [21:23:36]wFMCommunicate OK [21:23:36]SAM_PROTO_GetShiftState done [21:23:36]FM_GetShiftState done [21:23:36]req_shift_opened done [21:23:36]requested_item shift.open_date is exist - process it [21:23:36]req_shift_open_date [21:23:36]req_shift_open_date done [21:23:36]produce_requested_data done [21:23:36]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28757,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271} [21:23:36]process_action_free close_receipt [21:23:36]json_value_free [21:23:36]json_value_free done [21:23:36]process_json_proto returns [21:23:36]Send response to host [21:23:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28757,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271}}} [21:23:36]free response buf [21:23:36]execute_script done [21:23:36]execute_script returns [21:23:36]free content buf [21:23:36]Sock 7.Close socket [21:23:36]Sock 7.Thread stoped [21:23:36]accept exits with 9 [21:23:36]New connection [21:23:36]New thread 3066928484 created [21:23:36]Thread 3066785124 joined [21:23:36]Waiting for new connection... [21:23:36] Sock 9.Parse request [21:23:36]Sock 9.Check first char [21:23:36]Sock 9.First char is OK [21:23:36]request: POST /json_proto HTTP/1.0 [21:23:36]Method: POST [21:23:36]URL: /json_proto [21:23:36]Method is POST - this is cgi request [21:23:36]url: /json_proto [21:23:36]query_string will be loaded in cgi processing [21:23:36]execute_cgi json_proto POST (null) [21:23:36]execute_cgi path=json_proto method=POST [21:23:36]POST find Content-Length [21:23:36]Host: 172.17.33.3:8080 [21:23:36]Content-Length: 640 [21:23:36]Content-Type: application/json [21:23:36] [21:23:36]POST finish read [21:23:36]Found Content-Length = 640 [21:23:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347101", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 10.000, "sum" : 643.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 643.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:23:36]execute_script... [21:23: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)347101", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 10.000, "sum" : 643.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 643.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:23:36]POST & json_proto [21:23:36]process_json_proto [21:23:36]json parsed OK: [21:23:36]protocol is kg_v1.0 [21:23:36]action value=close_receipt [21:23:36]process_action close_receipt [21:23:36]cmd_close_receipt [21:23:36]MH_GetDate [21:23:36]Write to MH i2c: F0 00 00 6D 0A 66 [21:23:36]Write i2c OK [21:23:36]MH_I2C_Read... [21:23:36]Read from MH i2c: F0 [21:23:36]MH_I2C_Read... [21:23:36]Read from MH i2c: F0 09 00 [21:23:36]MH_I2C_Read... [21:23:36]Read from MH i2c: F0 09 00 6D 0A 00 5A A6 19 66 23 5B 8F 65 60 [21:23:36]GetLastDocTimeStamp 1712957013 [21:23:36]current date 1712957018 [21:23:36]FM_GetShiftState [21:23:36]SAM_PROTO_GetShiftState [21:23:36]wFMCommunicate request_size=4 [21:23:36]MH_SAM_APDU [21:23:36]CAPDU: 80 13 01 00 [21:23:36]Write to MH i2c: E2 08 00 6E 0A 80 13 01 00 00 00 00 00 F5 [21:23:36]Write i2c OK [21:23:36]MH_I2C_Read... [21:23:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:23:36]Read from MH i2c: E2 [21:23:36]MH_I2C_Read... [21:23:36]Read from MH i2c: E2 0E 00 [21:23:36]MH_I2C_Read... [21:23:36]Read from MH i2c: E2 0E 00 6E 0A 00 09 00 01 17 88 19 66 00 00 00 00 90 00 1F [21:23:36]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [21:23:36]wFMCommunicate OK [21:23:36]SAM_PROTO_GetShiftState done [21:23:36]FM_GetShiftState done [21:23:36]opened in 1712949271 [21:23:36]opened+sec_in_day 1713035671 [21:23:36]quantity*price = 64300 [21:23:36]sum+1 = 64301 [21:23:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 643.00 НСП 1% : 5.69 НДС 12% : 68.28 Наличными: 643.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 32 12.04.2024 21:23 Смена: 114 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28758 ФПД: 69017937739602 1/tax-web-control/client/api/v1/ticket?date=20240412T212338&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28758&fm=69017937739602&tin=02508201610067®Number=0000138879044617&sum=64300 [21:23:38]StoreToDocumentArchive [21:23:38]shift 114 fd 28758 [21:23:38]save to /storage/0114/doc_00028758 [21:23:38]save last doc name /storage/0114/doc_00028758 to /storage/kkm_last_doc_name [21:23:38]save OK [21:23:38]Clear old archive folders... [21:23:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:23:38]tlvbuf is 0120E2F0 [21:23:38]SAM_PROTO_ClearQueue [21:23:38]wFMCommunicate request_size=4 [21:23:38]MH_SAM_APDU [21:23:38]CAPDU: 80 09 00 00 [21:23:38]Write to MH i2c: E2 08 00 7B 0A 80 09 00 00 00 00 00 00 F7 [21:23:38]Write i2c OK [21:23:38]MH_I2C_Read... [21:23:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:23:38]Read from MH i2c: E2 [21:23:38]MH_I2C_Read... [21:23:38]Read from MH i2c: E2 03 00 [21:23:38]MH_I2C_Read... [21:23:38]Read from MH i2c: E2 03 00 7B 0A 00 90 00 F9 [21:23:38]RAPDU: 90 00 [21:23:38]wFMCommunicate OK [21:23:38]SAM_PROTO_ClearQueue done [21:23:38]KKMCreateOFDPacket [21:23:38]OFDProtocolAddRootSTLVToBuf [21:23:38]FM_MakeSignedData [21:23:38]FM_MakeSignedData [21:23:38]SAM_PROTO_SignData [21:23:38]wFMCommunicate request_size=4 [21:23:38]MH_SAM_APDU [21:23:38]CAPDU: 80 0D 01 02 [21:23:38]Write to MH i2c: E2 08 00 7C 0A 80 0D 01 02 00 00 00 00 FF [21:23:38]Write i2c OK [21:23:38]MH_I2C_Read... [21:23:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:23:38]Read from MH i2c: E2 [21:23:38]MH_I2C_Read... [21:23:38]Read from MH i2c: E2 03 00 [21:23:38]MH_I2C_Read... [21:23:38]Read from MH i2c: E2 03 00 7C 0A 00 90 00 FA [21:23:38]RAPDU: 90 00 [21:23:38]wFMCommunicate OK [21:23:38]wFMCommunicate request_size=255 [21:23:38]MH_SAM_APDU [21: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 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 2C FB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C FB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 1A 00 00 00 00 07 04 06 00 2C FB 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 5A A6 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 56 70 00 00 35 04 06 00 3E [21:23:38]Write to MH i2c: E2 02 01 7D 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 2C FB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C FB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 1A 00 00 00 00 07 04 06 00 2C FB 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 5A A6 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 56 70 00 00 35 04 06 00 3E 00 00 1F [21:23:38]Write i2c OK [21:23:38]MH_I2C_Read... [21:23:38]Read from MH i2c: E2 [21:23:38]MH_I2C_Read... [21:23:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:23:38]Read from MH i2c: E2 03 00 [21:23:38]MH_I2C_Read... [21:23:38]Read from MH i2c: E2 03 00 7D 0A 00 90 00 FB [21:23:38]RAPDU: 90 00 [21:23:38]wFMCommunicate OK [21:23:38]wFMCommunicate request_size=10 [21:23:38]MH_SAM_APDU [21:23:38]CAPDU: 80 0D 02 02 05 C5 7D A9 7F 52 [21:23:38]Write to MH i2c: E2 0D 00 7E 0A 80 0D 02 02 05 00 C5 7D A9 7F 52 00 00 C8 [21:23:38]Write i2c OK [21:23:38]MH_I2C_Read... [21:23:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:23:38]Read from MH i2c: E2 [21:23:38]MH_I2C_Read... [21:23:38]Read from MH i2c: E2 03 00 [21:23:38]MH_I2C_Read... [21:23:38]Read from MH i2c: E2 03 00 7E 0A 00 90 00 FC [21:23:38]RAPDU: 90 00 [21:23:38]wFMCommunicate OK [21:23:38]wFMCommunicate request_size=4 [21:23:38]MH_SAM_APDU [21:23:38]CAPDU: 80 0D 03 02 [21:23:38]Write to MH i2c: E2 08 00 7F 0A 80 0D 03 02 00 00 00 00 04 [21:23:38]Write i2c OK [21:23:38]MH_I2C_Read... [21:23:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:23:38]Read from MH i2c: E2 [21:23:38]MH_I2C_Read... [21:23:38]Read from MH i2c: E2 0B 00 [21:23:38]MH_I2C_Read... [21:23:38]Read from MH i2c: E2 0B 00 7F 0A 00 0D 07 9A 52 74 81 7A B9 90 00 2D [21:23:38]RAPDU: 0D 07 9A 52 74 81 7A B9 90 00 [21:23:38]wFMCommunicate OK [21:23:38]SAM_PROTO_SignData done [21:23:38]FM_MakeSignedData done [21:23:38]CreateOFDProtocolMessage [21:23:38]wFMCommunicate request_size=4 [21:23:38]MH_SAM_APDU [21:23:38]CAPDU: 80 11 00 00 [21:23:38]Write to MH i2c: E2 08 00 80 0A 80 11 00 00 00 00 00 00 04 [21:23:38]Write i2c OK [21:23:38]MH_I2C_Read... [21:23:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:23:38]Read from MH i2c: E2 [21:23:38]MH_I2C_Read... [21:23:38]Read from MH i2c: E2 17 00 [21:23:38]MH_I2C_Read... [21:23:38]Read from MH i2c: E2 17 00 80 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 53 [21:23:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:23:38]wFMCommunicate OK [21:23:38]CreateOFDProtocolMessage done [21:23:38]OFDSenderStorePacket 28758 [21:23:38]StoreOFDPacket docnum=28758 [21:23:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 E7 05 07 01 F6 FD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 2C FB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C FB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 1A 00 00 00 00 07 04 06 00 2C FB 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 5A A6 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 56 70 00 00 35 04 06 00 3E C5 7D A9 7F 52 0D 07 9A 52 74 81 7A B9 [21:23:38]CheckFolder [21:23:38]dirname=/storage/ofd_packets [21:23:38]CheckFolder done [21:23:38]ProducePacketName [21:23:38]name=ofd_packets/00028758 [21:23:38]NVStorageSaveData ofd_packets/00028758 [21:23:38]File name is /storage/ofd_packets/00028758 [21:23:38]Write 301 bytes [21:23:38]NVStorageSaveData done [21:23:38]OFDSenderStorePacket done [21:23:38]KKMCreateOFDPacket done [21:23:38]NVStorageSaveData kkm_last_timestamp [21:23:38]File name is /storage/kkm_last_timestamp [21:23:38]Write 4 bytes [21:23:38]NVStorageSaveData done [21:23:38]ExternCall_PrintAddStr [21:23:38]wPrintStart [21:23:38]Write to MH i2c: 01 00 00 81 0A 8B [21:23:38]Write i2c OK [21:23:38]MH_I2C_Read... [21:23:38]Read from MH i2c: 01 [21:23:38]MH_I2C_Read... [21:23:38]Read from MH i2c: 01 07 00 [21:23:38]MH_I2C_Read... [21:23:38]Read from MH i2c: 01 07 00 81 0A 00 00 00 00 00 FF 0F A0 [21:23:38]RasterBufferAndPrint [21:23:38]line Счет N : (1)347101 [21:23:38]line ИНН: 02508201610067 [21:23:38]line Контрольно-Кассовый Чек [21:23:38]line ПРОДАЖА [21:23:38]line ТРК (МРК, ГНК) : 42 [21:23:38]line Товар: 2710124130 [21:23:38]line Аи-92-К-5 [21:23:38]line 10.000 * 64.30 [21:23:38]line = 643.00 [21:23:38]line НДС 12% НСП 1% [21:23:38]line > о реализуемом товаре [21:23:38]line ИТОГО: 643.00 [21:23:38]line НСП 1% : 5.69 [21:23:38]line НДС 12% : 68.28 [21:23:38]line Наличными: 643.00 [21:23:38]line Безнал.: 0.00 [21:23:38]line Место: АЗС № 108 "Партнер Нефть" [21:23:38]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [21:23:38]line СНО: Общий режим [21:23:38]line Чек 32 12.04.2024 21:23 [21:23:38]line Смена: 114 ФФД: 1.0 [21:23:38]line ЗНМ: 0300000027 [21:23:39]line РНМ: 0000138879044617 [21:23:39]line Версия ККМ: 001 [21:23:39]line ФМ: 0000000000963154 [21:23:39]line ФД: 28758 [21:23:39]line ФПД: 69017937739602 [21:23:39]line 1/tax-web-control/client/api/v1/ticket?date=20240412T212338&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28758&fm=69017937739602&tin=02508201610067®Number=0000138879044617&sum=64300 [21:23:39]OFD Sender: Processing packet 28758 [packets to send 8, broken 7] [21:23:39]ProducePacketName [21:23:39]name=ofd_packets/00028758 [21:23:39]OFD Sender: To server: pG, [21:23:39]CommunicateWithHost lk.salyk.kg:30040 [21:23:39]ConnectInit lk.salyk.kg [21:23:39]written 0, free lines is 4095 [21:23:39]Connected sock=10 [21:23:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 E7 05 07 01 F6 FD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 2C FB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C FB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 1A 00 00 00 00 07 04 06 00 2C FB 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 5A A6 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 56 70 00 00 35 04 06 00 3E C5 7D A9 7F 52 0D 07 9A 52 74 81 7A B9 [21:23:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 B8 66 47 00 45 C2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 56 70 00 00 F4 03 04 00 03 51 19 66 B6 04 01 00 00 52 17 69 34 AB AF 59 5C [21:23:39]CommunicateWithHost err = 0 [21:23:39]CheckOFDResponse [21:23:39]1017 (14) - 77093643461234 [21:23:39]1041 (16) - 0000000000963154 [21:23:39]1040 (4) - 28758 [21:23:39]1012 (4) - 12.04.2024 15:19 [21:23:39]1206 (1) - 0 [21:23:39]OFD Sender: Remove packet 28758 [21:23:39]ProducePacketName [21:23:39]name=ofd_packets/00028758 [21:23:39]NVStorageDeleteData [21:23:39]Write to MH i2c: 01 00 00 A8 0A B2 [21:23:39]Write i2c OK [21:23:39]MH_I2C_Read... [21:23:39]Read from MH i2c: 01 [21:23:39]MH_I2C_Read... [21:23:39]Read from MH i2c: 01 07 00 [21:23:39]MH_I2C_Read... [21:23:39]Read from MH i2c: 01 07 00 A8 0A 00 00 00 00 00 18 0D DE [21:23:39]RasterBufferAndPrint [21:23:39]line [21:23:39]line [21:23:39]line [21:23:39]line [21:23:39]line [21:23:39]written 0, free lines is 3365 [21:23:39]MH_Cut [21:23:39]Write to MH i2c: D1 01 00 AF 0A 01 8B [21:23:39]Write i2c OK [21:23:39]MH_I2C_Read... [21:23:39]Read from MH i2c: D1 [21:23:39]MH_I2C_Read... [21:23:39]Read from MH i2c: D1 01 00 [21:23:39]MH_I2C_Read... [21:23:39]Read from MH i2c: D1 01 00 AF 0A 00 8A [21:23:39]Write to MH i2c: 01 00 00 B0 0A BA [21:23:39]Write i2c OK [21:23:39]MH_I2C_Read... [21:23:40]OFD Sender: No OFD packet to send [21:23:40]*** Cut start [21:23:40]*** Partial cut [21:23:40]*** CUTSNS_PIN = 1 [21:23:40]*** CUTSNS_PIN = 0 [21:23:40]*** Brake cut motor [21:23:41]Read from MH i2c: 01 [21:23:41]MH_I2C_Read... [21:23:41]*** Stop cut motor [21:23:41]*** Cut end [21:23:41]Read from MH i2c: 01 07 00 [21:23:41]MH_I2C_Read... [21:23:41]Read from MH i2c: 01 07 00 B0 0A 00 00 00 00 00 FF 0F CF [21:23:41]process_action close_receipt done [21:23:41]requested_data is exist [21:23:41]produce_requested_data [21:23:41]requested_item fm.sn is exist - process it [21:23:41]wFMCommunicate request_size=4 [21:23:41]MH_SAM_APDU [21:23:41]CAPDU: 80 11 00 00 [21:23:41]Write to MH i2c: E2 08 00 B1 0A 80 11 00 00 00 00 00 00 35 [21:23:41]Write i2c OK [21:23:41]MH_I2C_Read... [21:23:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:23:41]Read from MH i2c: E2 [21:23:41]MH_I2C_Read... [21:23:41]Read from MH i2c: E2 17 00 [21:23:41]MH_I2C_Read... [21:23:41]Read from MH i2c: E2 17 00 B1 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 84 [21:23:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:23:41]wFMCommunicate OK [21:23:41]requested_item fd.num is exist - process it [21:23:41]SAM_PROTO_GetFieldsCounters [21:23:41]wFMCommunicate request_size=4 [21:23:41]MH_SAM_APDU [21:23:41]CAPDU: 80 13 00 00 [21:23:41]Write to MH i2c: E2 08 00 B2 0A 80 13 00 00 00 00 00 00 38 [21:23:41]Write i2c OK [21:23:41]MH_I2C_Read... [21:23:41]Read from MH i2c: E2 [21:23:41]MH_I2C_Read... [21:23:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:23:41]Read from MH i2c: E2 62 00 [21:23:41]MH_I2C_Read... [21:23:41]Read from MH i2c: E2 62 00 B2 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 56 70 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 0E [21:23:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 56 70 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 [21:23:41]wFMCommunicate OK [21:23:41]SAM_PROTO_GetFieldsCounters done [21:23:41]requested_item shift.num is exist - process it [21:23:41]requested_item shift.opened is exist - process it [21:23:41]req_shift_opened [21:23:41]FM_GetShiftState [21:23:41]SAM_PROTO_GetShiftState [21:23:41]wFMCommunicate request_size=4 [21:23:41]MH_SAM_APDU [21:23:41]CAPDU: 80 13 01 00 [21:23:41]Write to MH i2c: E2 08 00 B3 0A 80 13 01 00 00 00 00 00 3A [21:23:41]Write i2c OK [21:23:41]MH_I2C_Read... [21:23:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:23:41]Read from MH i2c: E2 [21:23:41]MH_I2C_Read... [21:23:41]Read from MH i2c: E2 0E 00 [21:23:41]MH_I2C_Read... [21:23:41]Read from MH i2c: E2 0E 00 B3 0A 00 09 00 01 17 88 19 66 00 00 00 00 90 00 64 [21:23:41]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [21:23:41]wFMCommunicate OK [21:23:41]SAM_PROTO_GetShiftState done [21:23:41]FM_GetShiftState done [21:23:41]req_shift_opened done [21:23:41]requested_item shift.open_date is exist - process it [21:23:41]req_shift_open_date [21:23:41]req_shift_open_date done [21:23:41]produce_requested_data done [21:23:41]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28758,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271} [21:23:41]process_action_free close_receipt [21:23:41]json_value_free [21:23:41]json_value_free done [21:23:41]process_json_proto returns [21:23:41]Send response to host [21:23:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28758,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271}}} [21:23:41]free response buf [21:23:41]execute_script done [21:23:41]execute_script returns [21:23:41]free content buf [21:23:41]Sock 9.Close socket [21:23:41]Sock 9.Thread stoped [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:28]accept exits with 7 [21:24:28]New connection [21:24:28]New thread 3066785124 created [21:24:28]Thread 3066928484 joined [21:24:28]Waiting for new connection... [21:24:28] Sock 7.Parse request [21:24:28]Sock 7.Check first char [21:24:28]Sock 7.First char is OK [21:24:28]request: POST /json_proto HTTP/1.0 [21:24:28]Method: POST [21:24:28]URL: /json_proto [21:24:28]Method is POST - this is cgi request [21:24:28]url: /json_proto [21:24:28]query_string will be loaded in cgi processing [21:24:28]execute_cgi json_proto POST (null) [21:24:28]execute_cgi path=json_proto method=POST [21:24:28]POST find Content-Length [21:24:28]Host: 172.17.33.3:8080 [21:24:28]Content-Length: 811 [21:24:28]Content-Type: application/json [21:24:28] [21:24:28]POST finish read [21:24:28]Found Content-Length = 811 [21:24:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347099", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 39.730, "sum" : 1307.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1307.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:24:28]execute_script... [21:24: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)347099", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 39.730, "sum" : 1307.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1307.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:24:28]POST & json_proto [21:24:28]process_json_proto [21:24:28]json parsed OK: [21:24:28]protocol is kg_v1.0 [21:24:28]action value=close_receipt [21:24:28]process_action close_receipt [21:24:28]cmd_close_receipt [21:24:28]MH_GetDate [21:24:28]Write to MH i2c: F0 00 00 B4 0A AD [21:24:28]Write i2c OK [21:24:28]MH_I2C_Read... [21:24:28]Read from MH i2c: F0 [21:24:28]MH_I2C_Read... [21:24:28]Read from MH i2c: F0 09 00 [21:24:28]MH_I2C_Read... [21:24:28]Read from MH i2c: F0 09 00 B4 0A 00 8D A6 19 66 23 5B 8F 65 DA [21:24:28]GetLastDocTimeStamp 1712957018 [21:24:28]current date 1712957069 [21:24:28]FM_GetShiftState [21:24:28]SAM_PROTO_GetShiftState [21:24:28]wFMCommunicate request_size=4 [21:24:28]MH_SAM_APDU [21:24:28]CAPDU: 80 13 01 00 [21:24:28]Write to MH i2c: E2 08 00 B5 0A 80 13 01 00 00 00 00 00 3C [21:24:28]Write i2c OK [21:24:28]MH_I2C_Read... [21:24:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:24:28]Read from MH i2c: E2 [21:24:28]MH_I2C_Read... [21:24:28]Read from MH i2c: E2 0E 00 [21:24:28]MH_I2C_Read... [21:24:28]Read from MH i2c: E2 0E 00 B5 0A 00 09 00 01 17 88 19 66 00 00 00 00 90 00 66 [21:24:28]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [21:24:28]wFMCommunicate OK [21:24:28]SAM_PROTO_GetShiftState done [21:24:28]FM_GetShiftState done [21:24:28]opened in 1712949271 [21:24:28]opened+sec_in_day 1713035671 [21:24:28]quantity*price = 130711 [21:24:28]sum+1 = 130713 [21:24:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1307.12 НСП 1% : 11.57 НДС 12% : 138.81 Наличными: 0.00 Безнал.: 1307.12 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 33 12.04.2024 21:24 Смена: 114 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 28759 ФПД: 219310896001388 1/tax-web-control/client/api/v1/ticket?date=20240412T212429&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28759&fm=219310896001388&tin=02508201610067®Number=0000138879044617&sum=130712 [21:24:29]StoreToDocumentArchive [21:24:29]shift 114 fd 28759 [21:24:29]save to /storage/0114/doc_00028759 [21:24:29]save last doc name /storage/0114/doc_00028759 to /storage/kkm_last_doc_name [21:24:29]save OK [21:24:29]Clear old archive folders... [21:24:29]ProcessDocumentItem done err = 0, tmpTLVsize=250 [21:24:29]tlvbuf is 011B67C0 [21:24:29]SAM_PROTO_ClearQueue [21:24:29]wFMCommunicate request_size=4 [21:24:29]MH_SAM_APDU [21:24:29]CAPDU: 80 09 00 00 [21:24:29]Write to MH i2c: E2 08 00 C2 0A 80 09 00 00 00 00 00 00 3E [21:24:29]Write i2c OK [21:24:29]MH_I2C_Read... [21:24:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:24:29]Read from MH i2c: E2 [21:24:29]MH_I2C_Read... [21:24:29]Read from MH i2c: E2 03 00 [21:24:29]MH_I2C_Read... [21:24:29]Read from MH i2c: E2 03 00 C2 0A 00 90 00 40 [21:24:29]RAPDU: 90 00 [21:24:29]wFMCommunicate OK [21:24:29]SAM_PROTO_ClearQueue done [21:24:29]KKMCreateOFDPacket [21:24:29]OFDProtocolAddRootSTLVToBuf [21:24:29]FM_MakeSignedData [21:24:29]FM_MakeSignedData [21:24:29]SAM_PROTO_SignData [21:24:29]wFMCommunicate request_size=4 [21:24:29]MH_SAM_APDU [21:24:29]CAPDU: 80 0D 01 02 [21:24:29]Write to MH i2c: E2 08 00 C3 0A 80 0D 01 02 00 00 00 00 46 [21:24:29]Write i2c OK [21:24:29]MH_I2C_Read... [21:24:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:24:29]Read from MH i2c: E2 [21:24:29]MH_I2C_Read... [21:24:29]Read from MH i2c: E2 03 00 [21:24:29]MH_I2C_Read... [21:24:29]Read from MH i2c: E2 03 00 C3 0A 00 90 00 41 [21:24:29]RAPDU: 90 00 [21:24:29]wFMCommunicate OK [21:24:29]wFMCommunicate request_size=255 [21:24:29]MH_SAM_APDU [21:24:29]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 32 9B 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 98 FE 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 FE 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 36 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 FE 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 8D A6 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 57 70 00 00 35 04 06 00 C7 76 [21:24:29]Write to MH i2c: E2 02 01 C4 0A 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 32 9B 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 98 FE 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 FE 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 36 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 FE 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 8D A6 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 57 70 00 00 35 04 06 00 C7 76 00 00 D6 [21:24:29]Write i2c OK [21:24:29]MH_I2C_Read... [21:24:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:24:30]Read from MH i2c: E2 [21:24:30]MH_I2C_Read... [21:24:30]Read from MH i2c: E2 03 00 [21:24:30]MH_I2C_Read... [21:24:30]Read from MH i2c: E2 03 00 C4 0A 00 90 00 42 [21:24:30]RAPDU: 90 00 [21:24:30]wFMCommunicate OK [21:24:30]wFMCommunicate request_size=9 [21:24:30]MH_SAM_APDU [21:24:30]CAPDU: 80 0D 02 02 04 4C 0D 31 6C [21:24:30]Write to MH i2c: E2 0C 00 C5 0A 80 0D 02 02 04 00 4C 0D 31 6C 00 00 47 [21:24:30]Write i2c OK [21:24:30]MH_I2C_Read... [21:24:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:24:30]Read from MH i2c: E2 [21:24:30]MH_I2C_Read... [21:24:30]Read from MH i2c: E2 03 00 [21:24:30]MH_I2C_Read... [21:24:30]Read from MH i2c: E2 03 00 C5 0A 00 90 00 43 [21:24:30]RAPDU: 90 00 [21:24:30]wFMCommunicate OK [21:24:30]wFMCommunicate request_size=4 [21:24:30]MH_SAM_APDU [21:24:30]CAPDU: 80 0D 03 02 [21:24:30]Write to MH i2c: E2 08 00 C6 0A 80 0D 03 02 00 00 00 00 4B [21:24:30]Write i2c OK [21:24:30]MH_I2C_Read... [21:24:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:24:30]OFD Sender: No OFD packet to send [21:24:30]Read from MH i2c: E2 [21:24:30]MH_I2C_Read... [21:24:30]Read from MH i2c: E2 0B 00 [21:24:30]MH_I2C_Read... [21:24:30]Read from MH i2c: E2 0B 00 C6 0A 00 D1 9A D1 14 0E 81 8A 1F 90 00 D4 [21:24:30]RAPDU: D1 9A D1 14 0E 81 8A 1F 90 00 [21:24:30]wFMCommunicate OK [21:24:30]SAM_PROTO_SignData done [21:24:30]FM_MakeSignedData done [21:24:30]CreateOFDProtocolMessage [21:24:30]wFMCommunicate request_size=4 [21:24:30]MH_SAM_APDU [21:24:30]CAPDU: 80 11 00 00 [21:24:30]Write to MH i2c: E2 08 00 C7 0A 80 11 00 00 00 00 00 00 4B [21:24:30]Write i2c OK [21:24:30]MH_I2C_Read... [21:24:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:24:30]Read from MH i2c: E2 [21:24:30]MH_I2C_Read... [21:24:30]Read from MH i2c: E2 17 00 [21:24:30]MH_I2C_Read... [21:24:30]Read from MH i2c: E2 17 00 C7 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 9A [21:24:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:24:30]wFMCommunicate OK [21:24:30]CreateOFDProtocolMessage done [21:24:30]OFDSenderStorePacket 28759 [21:24:30]StoreOFDPacket docnum=28759 [21:24:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 45 6A 06 01 CE 70 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 32 9B 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 98 FE 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 FE 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 36 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 FE 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 8D A6 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 57 70 00 00 35 04 06 00 C7 76 4C 0D 31 6C D1 9A D1 14 0E 81 8A 1F [21:24:30]CheckFolder [21:24:30]dirname=/storage/ofd_packets [21:24:30]CheckFolder done [21:24:30]ProducePacketName [21:24:30]name=ofd_packets/00028759 [21:24:30]NVStorageSaveData ofd_packets/00028759 [21:24:30]File name is /storage/ofd_packets/00028759 [21:24:30]Write 300 bytes [21:24:30]NVStorageSaveData done [21:24:30]OFDSenderStorePacket done [21:24:30]KKMCreateOFDPacket done [21:24:30]NVStorageSaveData kkm_last_timestamp [21:24:30]File name is /storage/kkm_last_timestamp [21:24:30]Write 4 bytes [21:24:30]NVStorageSaveData done [21:24:30]ExternCall_PrintAddStr [21:24:30]wPrintStart [21:24:30]Write to MH i2c: 01 00 00 C8 0A D2 [21:24:30]Write i2c OK [21:24:30]MH_I2C_Read... [21:24:30]Read from MH i2c: 01 [21:24:30]MH_I2C_Read... [21:24:30]Read from MH i2c: 01 07 00 [21:24:30]MH_I2C_Read... [21:24:30]Read from MH i2c: 01 07 00 C8 0A 00 00 00 00 00 FF 0F E7 [21:24:30]RasterBufferAndPrint [21:24:30]line Счет N : (1)347099 [21:24:30]line ИНН: 02508201610067 [21:24:30]line Контрольно-Кассовый Чек [21:24:30]line ПРОДАЖА [21:24:30]line ТРК (МРК, ГНК) : 71 [21:24:30]line Товар: 2711129700 [21:24:30]line ГАЗ-К-5 [21:24:30]line 39.730 * 32.90 [21:24:30]line = 1307.12 [21:24:30]line НДС 12% НСП 1% [21:24:30]line > о реализуемом товаре [21:24:30]line ИТОГО: 1307.12 [21:24:30]line НСП 1% : 11.57 [21:24:30]line НДС 12% : 138.81 [21:24:30]line Наличными: 0.00 [21:24:30]line Безнал.: 1307.12 [21:24:30]line Место: АЗС № 108 "Партнер Нефть" [21:24:30]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [21:24:30]line СНО: Общий режим [21:24:30]line Чек 33 12.04.2024 21:24 [21:24:30]line Смена: 114 ФФД: 1.0 [21:24:30]line ЗНМ: 0300000027 [21:24:30]line РНМ: 0000138879044617 [21:24:30]line Версия ККМ: 001 [21:24:30]line Платежная система: О! деньги [21:24:30]line ФМ: 0000000000963154 [21:24:30]line ФД: 28759 [21:24:30]line ФПД: 219310896001388 [21:24:30]line 1/tax-web-control/client/api/v1/ticket?date=20240412T212429&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28759&fm=219310896001388&tin=02508201610067®Number=0000138879044617&sum=130712 [21:24:30]OFD Sender: Processing packet 28759 [packets to send 8, broken 7] [21:24:30]ProducePacketName [21:24:30]name=ofd_packets/00028759 [21:24:30]OFD Sender: To server: pG, [21:24:30]CommunicateWithHost lk.salyk.kg:30040 [21:24:30]ConnectInit lk.salyk.kg [21:24:30]written 0, free lines is 4095 [21:24:30]Connected sock=10 [21:24:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 45 6A 06 01 CE 70 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 32 9B 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 98 FE 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 FE 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 36 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 FE 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 8D A6 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 57 70 00 00 35 04 06 00 C7 76 4C 0D 31 6C D1 9A D1 14 0E 81 8A 1F [21:24:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 31 68 47 00 AD 9D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 57 70 00 00 F4 03 04 00 36 51 19 66 B6 04 01 00 00 B3 7C 06 5B DD EE AB 96 [21:24:30]CommunicateWithHost err = 0 [21:24:30]CheckOFDResponse [21:24:30]1017 (14) - 77093643461234 [21:24:30]1041 (16) - 0000000000963154 [21:24:30]1040 (4) - 28759 [21:24:30]1012 (4) - 12.04.2024 15:20 [21:24:30]1206 (1) - 0 [21:24:30]OFD Sender: Remove packet 28759 [21:24:30]ProducePacketName [21:24:30]name=ofd_packets/00028759 [21:24:30]NVStorageDeleteData [21:24:30]Write to MH i2c: 01 00 00 F1 0A FB [21:24:30]Write i2c OK [21:24:30]MH_I2C_Read... [21:24:30]Read from MH i2c: 01 [21:24:30]MH_I2C_Read... [21:24:30]Read from MH i2c: 01 07 00 [21:24:30]MH_I2C_Read... [21:24:30]Read from MH i2c: 01 07 00 F1 0A 00 00 00 00 00 E6 0C F4 [21:24:30]RasterBufferAndPrint [21:24:30]line [21:24:30]line [21:24:30]line [21:24:30]line [21:24:30]line [21:24:30]written 0, free lines is 3308 [21:24:30]MH_Cut [21:24:30]Write to MH i2c: D1 01 00 F8 0A 01 D4 [21:24:30]Write i2c OK [21:24:30]MH_I2C_Read... [21:24:30]Read from MH i2c: D1 [21:24:30]MH_I2C_Read... [21:24:30]Read from MH i2c: D1 01 00 [21:24:30]MH_I2C_Read... [21:24:30]Read from MH i2c: D1 01 00 F8 0A 00 D3 [21:24:30]Write to MH i2c: 01 00 00 F9 0A 03 [21:24:30]Write i2c OK [21:24:30]MH_I2C_Read... [21:24:31]OFD Sender: No OFD packet to send [21:24:31]*** Cut start [21:24:31]*** Partial cut [21:24:31]*** CUTSNS_PIN = 1 [21:24:31]*** CUTSNS_PIN = 0 [21:24:32]*** Brake cut motor [21:24:32]Read from MH i2c: 01 [21:24:32]MH_I2C_Read... [21:24:32]*** Stop cut motor [21:24:32]*** Cut end [21:24:32]Read from MH i2c: 01 07 00 [21:24:32]MH_I2C_Read... [21:24:32]Read from MH i2c: 01 07 00 F9 0A 00 00 00 00 00 FF 0F 18 [21:24:32]process_action close_receipt done [21:24:32]requested_data is exist [21:24:32]produce_requested_data [21:24:32]requested_item fm.sn is exist - process it [21:24:32]wFMCommunicate request_size=4 [21:24:32]MH_SAM_APDU [21:24:32]CAPDU: 80 11 00 00 [21:24:32]Write to MH i2c: E2 08 00 FA 0A 80 11 00 00 00 00 00 00 7E [21:24:32]Write i2c OK [21:24:32]MH_I2C_Read... [21:24:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:24:32]Read from MH i2c: E2 [21:24:32]MH_I2C_Read... [21:24:32]Read from MH i2c: E2 17 00 [21:24:32]MH_I2C_Read... [21:24:32]Read from MH i2c: E2 17 00 FA 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 CD [21:24:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:24:32]wFMCommunicate OK [21:24:32]requested_item fd.num is exist - process it [21:24:32]SAM_PROTO_GetFieldsCounters [21:24:32]wFMCommunicate request_size=4 [21:24:32]MH_SAM_APDU [21:24:32]CAPDU: 80 13 00 00 [21:24:32]Write to MH i2c: E2 08 00 FB 0A 80 13 00 00 00 00 00 00 81 [21:24:32]Write i2c OK [21:24:32]MH_I2C_Read... [21:24:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:24:32]Read from MH i2c: E2 [21:24:32]MH_I2C_Read... [21:24:32]Read from MH i2c: E2 62 00 [21:24:32]MH_I2C_Read... [21:24:32]Read from MH i2c: E2 62 00 FB 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 57 70 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 5B [21:24:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 57 70 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 [21:24:32]wFMCommunicate OK [21:24:32]SAM_PROTO_GetFieldsCounters done [21:24:32]requested_item shift.num is exist - process it [21:24:32]requested_item shift.opened is exist - process it [21:24:32]req_shift_opened [21:24:32]FM_GetShiftState [21:24:32]SAM_PROTO_GetShiftState [21:24:32]wFMCommunicate request_size=4 [21:24:32]MH_SAM_APDU [21:24:32]CAPDU: 80 13 01 00 [21:24:32]Write to MH i2c: E2 08 00 FC 0A 80 13 01 00 00 00 00 00 83 [21:24:32]Write i2c OK [21:24:32]MH_I2C_Read... [21:24:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:24:32]Read from MH i2c: E2 [21:24:32]MH_I2C_Read... [21:24:32]Read from MH i2c: E2 0E 00 [21:24:32]MH_I2C_Read... [21:24:32]Read from MH i2c: E2 0E 00 FC 0A 00 09 00 01 17 88 19 66 00 00 00 00 90 00 AD [21:24:32]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [21:24:32]wFMCommunicate OK [21:24:32]SAM_PROTO_GetShiftState done [21:24:32]FM_GetShiftState done [21:24:32]req_shift_opened done [21:24:32]requested_item shift.open_date is exist - process it [21:24:32]req_shift_open_date [21:24:32]req_shift_open_date done [21:24:32]produce_requested_data done [21:24:32]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28759,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271} [21:24:32]process_action_free close_receipt [21:24:32]json_value_free [21:24:32]json_value_free done [21:24:32]process_json_proto returns [21:24:32]Send response to host [21:24:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28759,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271}}} [21:24:32]free response buf [21:24:32]execute_script done [21:24:32]execute_script returns [21:24:32]free content buf [21:24:32]Sock 7.Close socket [21:24:32]Sock 7.Thread stoped [21:24:36]OFD Sender: No OFD packet to send [21:24:41]OFD Sender: No OFD packet to send [21:24:46]OFD Sender: No OFD packet to send [21:24:51]OFD Sender: No OFD packet to send [21:24:56]OFD Sender: No OFD packet to send [21:25:01]OFD Sender: No OFD packet to send [21:25:06]OFD Sender: No OFD packet to send [21:25:11]OFD Sender: No OFD packet to send [21:25:16]OFD Sender: No OFD packet to send [21:25:21]OFD Sender: No OFD packet to send [21:25:26]OFD Sender: No OFD packet to send [21:25:31]OFD Sender: No OFD packet to send [21:25:36]OFD Sender: No OFD packet to send [21:25:41]OFD Sender: No OFD packet to send [21:25:46]OFD Sender: No OFD packet to send [21:25:51]OFD Sender: No OFD packet to send [21:25:56]OFD Sender: No OFD packet to send [21:26:01]OFD Sender: No OFD packet to send [21:26:06]OFD Sender: No OFD packet to send [21:26:11]OFD Sender: No OFD packet to send [21:26:16]OFD Sender: No OFD packet to send [21:26:21]OFD Sender: No OFD packet to send [21:26:26]OFD Sender: No OFD packet to send [21:26:31]OFD Sender: No OFD packet to send [21:26:36]OFD Sender: No OFD packet to send [21:26:41]OFD Sender: No OFD packet to send [21:26:46]OFD Sender: No OFD packet to send [21:26:51]OFD Sender: No OFD packet to send [21:26:56]OFD Sender: No OFD packet to send [21:27:01]OFD Sender: No OFD packet to send [21:27:06]OFD Sender: No OFD packet to send [21:27:11]OFD Sender: No OFD packet to send [21:27:16]OFD Sender: No OFD packet to send [21:27:21]OFD Sender: No OFD packet to send [21:27:26]OFD Sender: No OFD packet to send [21:27:31]OFD Sender: No OFD packet to send [21:27:36]OFD Sender: No OFD packet to send [21:27:41]OFD Sender: No OFD packet to send [21:27:46]OFD Sender: No OFD packet to send [21:27:51]OFD Sender: No OFD packet to send [21:27:56]OFD Sender: No OFD packet to send [21:28:01]OFD Sender: No OFD packet to send [21:28:06]OFD Sender: No OFD packet to send [21:28:11]OFD Sender: No OFD packet to send [21:28:16]OFD Sender: No OFD packet to send [21:28:21]OFD Sender: No OFD packet to send [21:28:26]OFD Sender: No OFD packet to send [21:28:31]OFD Sender: No OFD packet to send [21:28:36]OFD Sender: No OFD packet to send [21:28:41]OFD Sender: No OFD packet to send [21:28:46]OFD Sender: No OFD packet to send [21:28:51]OFD Sender: No OFD packet to send [21:28:56]OFD Sender: No OFD packet to send [21:29:01]OFD Sender: No OFD packet to send [21:29:06]OFD Sender: No OFD packet to send [21:29:11]OFD Sender: No OFD packet to send [21:29:16]OFD Sender: No OFD packet to send [21:29:21]OFD Sender: No OFD packet to send [21:29:26]OFD Sender: No OFD packet to send [21:29:31]OFD Sender: No OFD packet to send [21:29:36]OFD Sender: No OFD packet to send [21:29:41]OFD Sender: No OFD packet to send [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:10]accept exits with 9 [21:30:10]New connection [21:30:10]New thread 3066928484 created [21:30:10]Thread 3066785124 joined [21:30:10]Waiting for new connection... [21:30:10] Sock 9.Parse request [21:30:10]Sock 9.Check first char [21:30:10]Sock 9.First char is OK [21:30:10]request: POST /json_proto HTTP/1.0 [21:30:10]Method: POST [21:30:10]URL: /json_proto [21:30:10]Method is POST - this is cgi request [21:30:10]url: /json_proto [21:30:10]query_string will be loaded in cgi processing [21:30:10]execute_cgi json_proto POST (null) [21:30:10]execute_cgi path=json_proto method=POST [21:30:10]POST find Content-Length [21:30:10]Host: 172.17.33.3:8080 [21:30:10]Content-Length: 1182 [21:30:10]Content-Type: application/json [21:30:10] [21:30:10]POST finish read [21:30:10]Found Content-Length = 1182 [21:30:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0440\u044B\u0431\u0430\u0435\u0432 \u042D. \u000A\u0421\u0447\u0435\u0442 N : (1)347103\u000A12.04.2024 21:11\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 13.820 x 72.40\u000A\u0418\u0422\u041E\u0413: 1000.57\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3792853\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:30:10]execute_script... [21:30:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0440\u044B\u0431\u0430\u0435\u0432 \u042D. \u000A\u0421\u0447\u0435\u0442 N : (1)347103\u000A12.04.2024 21:11\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 13.820 x 72.40\u000A\u0418\u0422\u041E\u0413: 1000.57\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3792853\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:30:10]POST & json_proto [21:30:10]process_json_proto [21:30:10]json parsed OK: [21:30:10]protocol is kg_v1.0 [21:30:10]action value=print_text [21:30:10]process_action print_text [21:30:10]cmd_print_text [21:30:10]ExternCall_PrintAddStr [21:30:10]wPrintStart [21:30:10]Write to MH i2c: 01 00 00 FD 0A 07 [21:30:10]Write i2c OK [21:30:10]MH_I2C_Read... [21:30:10]Read from MH i2c: 01 [21:30:10]MH_I2C_Read... [21:30:10]Read from MH i2c: 01 07 00 [21:30:10]MH_I2C_Read... [21:30:10]Read from MH i2c: 01 07 00 FD 0A 00 00 00 00 00 FF 0F 1C [21:30:10]RasterBufferAndPrint [21:30:10]line *****ТОВАРНЫЙ ЧЕК***** [21:30:10]line АЗС 108 [21:30:10]line Партнер нефть [21:30:10]line 02508201610067 [21:30:10]line Кассир : Сарыбаев Э. [21:30:10]line Счет N : (1)347103 [21:30:10]line 12.04.2024 21:11 [21:30:10]line ПРОДАЖА [21:30:10]line ТРК (МРК, ГНК): 11 [21:30:10]line Вид ГСМ : 2710194210 [21:30:10]line ДТ-К-5 [21:30:10]line 13.820 x 72.40 [21:30:10]line ИТОГ: 1000.57 [21:30:10]line Тип оплаты: Талоны: Партнер нефть [21:30:10]line 3792853 [21:30:10]line ______________________ [21:30:10]line (подпись) [21:30:10]written 0, free lines is 4095 [21:30:10]Write to MH i2c: 01 00 00 11 0B 1C [21:30:10]Write i2c OK [21:30:10]MH_I2C_Read... [21:30:10]Read from MH i2c: 01 [21:30:10]MH_I2C_Read... [21:30:10]Read from MH i2c: 01 07 00 [21:30:10]MH_I2C_Read... [21:30:10]Read from MH i2c: 01 07 00 11 0B 00 00 00 00 00 0F 0E 40 [21:30:10]RasterBufferAndPrint [21:30:10]line [21:30:10]line [21:30:10]line [21:30:10]line [21:30:10]line [21:30:10]written 0, free lines is 3601 [21:30:10]MH_Cut [21:30:10]Write to MH i2c: D1 01 00 18 0B 01 F5 [21:30:10]Write i2c OK [21:30:10]MH_I2C_Read... [21:30:10]Read from MH i2c: D1 [21:30:10]MH_I2C_Read... [21:30:10]Read from MH i2c: D1 01 00 [21:30:10]MH_I2C_Read... [21:30:10]Read from MH i2c: D1 01 00 18 0B 00 F4 [21:30:10]Write to MH i2c: 01 00 00 19 0B 24 [21:30:10]Write i2c OK [21:30:10]MH_I2C_Read... [21:30:11]*** Cut start [21:30:11]*** Partial cut [21:30:11]*** CUTSNS_PIN = 1 [21:30:11]*** CUTSNS_PIN = 0 [21:30:11]*** Brake cut motor [21:30:11]OFD Sender: No OFD packet to send [21:30:11]Read from MH i2c: 01 [21:30:11]MH_I2C_Read... [21:30:11]*** Stop cut motor [21:30:11]*** Cut end [21:30:11]Read from MH i2c: 01 07 00 [21:30:11]MH_I2C_Read... [21:30:11]Read from MH i2c: 01 07 00 19 0B 00 00 00 00 00 FF 0F 39 [21:30:11]process_action print_text done [21:30:11]requested_data is exist [21:30:11]produce_requested_data [21:30:11]requested_item fm.sn is exist - process it [21:30:11]wFMCommunicate request_size=4 [21:30:11]MH_SAM_APDU [21:30:11]CAPDU: 80 11 00 00 [21:30:11]Write to MH i2c: E2 08 00 1A 0B 80 11 00 00 00 00 00 00 9F [21:30:11]Write i2c OK [21:30:11]MH_I2C_Read... [21:30:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:30:11]Read from MH i2c: E2 [21:30:11]MH_I2C_Read... [21:30:11]Read from MH i2c: E2 17 00 [21:30:11]MH_I2C_Read... [21:30:11]Read from MH i2c: E2 17 00 1A 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 EE [21:30:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:30:11]wFMCommunicate OK [21:30:11]requested_item fd.num is exist - process it [21:30:11]SAM_PROTO_GetFieldsCounters [21:30:11]wFMCommunicate request_size=4 [21:30:11]MH_SAM_APDU [21:30:11]CAPDU: 80 13 00 00 [21:30:11]Write to MH i2c: E2 08 00 1B 0B 80 13 00 00 00 00 00 00 A2 [21:30:11]Write i2c OK [21:30:11]MH_I2C_Read... [21:30:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:30:11]Read from MH i2c: E2 [21:30:11]MH_I2C_Read... [21:30:11]Read from MH i2c: E2 62 00 [21:30:11]MH_I2C_Read... [21:30:11]Read from MH i2c: E2 62 00 1B 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 57 70 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 7C [21:30:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 57 70 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 [21:30:11]wFMCommunicate OK [21:30:11]SAM_PROTO_GetFieldsCounters done [21:30:11]requested_item shift.num is exist - process it [21:30:11]requested_item shift.opened is exist - process it [21:30:11]req_shift_opened [21:30:11]FM_GetShiftState [21:30:11]SAM_PROTO_GetShiftState [21:30:11]wFMCommunicate request_size=4 [21:30:11]MH_SAM_APDU [21:30:11]CAPDU: 80 13 01 00 [21:30:11]Write to MH i2c: E2 08 00 1C 0B 80 13 01 00 00 00 00 00 A4 [21:30:11]Write i2c OK [21:30:11]MH_I2C_Read... [21:30:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:30:11]Read from MH i2c: E2 [21:30:11]MH_I2C_Read... [21:30:11]Read from MH i2c: E2 0E 00 [21:30:11]MH_I2C_Read... [21:30:11]Read from MH i2c: E2 0E 00 1C 0B 00 09 00 01 17 88 19 66 00 00 00 00 90 00 CE [21:30:11]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [21:30:11]wFMCommunicate OK [21:30:11]SAM_PROTO_GetShiftState done [21:30:11]FM_GetShiftState done [21:30:11]req_shift_opened done [21:30:11]requested_item shift.open_date is exist - process it [21:30:11]req_shift_open_date [21:30:11]req_shift_open_date done [21:30:11]produce_requested_data done [21:30:11]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28759,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271} [21:30:11]process_action_free print_text [21:30:11]json_value_free [21:30:11]json_value_free done [21:30:11]process_json_proto returns [21:30:11]Send response to host [21:30:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28759,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271}}} [21:30:11]free response buf [21:30:11]execute_script done [21:30:11]execute_script returns [21:30:11]free content buf [21:30:11]Sock 9.Close socket [21:30:11]Sock 9.Thread stoped [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:14]accept exits with 7 [21:31:14]New connection [21:31:14]New thread 3066785124 created [21:31:14]Thread 3066928484 joined [21:31:14]Waiting for new connection... [21:31:14] Sock 7.Parse request [21:31:14]Sock 7.Check first char [21:31:14]Sock 7.First char is OK [21:31:14]request: POST /json_proto HTTP/1.0 [21:31:14]Method: POST [21:31:14]URL: /json_proto [21:31:14]Method is POST - this is cgi request [21:31:14]url: /json_proto [21:31:14]query_string will be loaded in cgi processing [21:31:14]execute_cgi json_proto POST (null) [21:31:14]execute_cgi path=json_proto method=POST [21:31:14]POST find Content-Length [21:31:14]Host: 172.17.33.3:8080 [21:31:14]Content-Length: 811 [21:31:14]Content-Type: application/json [21:31:14] [21:31:14]POST finish read [21:31:14]Found Content-Length = 811 [21:31:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347102", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 47.790, "sum" : 1572.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1572.29 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:31:14]execute_script... [21:31: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)347102", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 47.790, "sum" : 1572.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1572.29 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:31:14]POST & json_proto [21:31:14]process_json_proto [21:31:14]json parsed OK: [21:31:14]protocol is kg_v1.0 [21:31:14]action value=close_receipt [21:31:14]process_action close_receipt [21:31:14]cmd_close_receipt [21:31:14]MH_GetDate [21:31:14]Write to MH i2c: F0 00 00 1D 0B 17 [21:31:14]Write i2c OK [21:31:14]MH_I2C_Read... [21:31:14]Read from MH i2c: F0 [21:31:14]MH_I2C_Read... [21:31:14]Read from MH i2c: F0 09 00 [21:31:14]MH_I2C_Read... [21:31:14]Read from MH i2c: F0 09 00 1D 0B 00 23 A8 19 66 23 5B 8F 65 DC [21:31:14]GetLastDocTimeStamp 1712957069 [21:31:14]current date 1712957475 [21:31:14]FM_GetShiftState [21:31:14]SAM_PROTO_GetShiftState [21:31:14]wFMCommunicate request_size=4 [21:31:14]MH_SAM_APDU [21:31:14]CAPDU: 80 13 01 00 [21:31:14]Write to MH i2c: E2 08 00 1E 0B 80 13 01 00 00 00 00 00 A6 [21:31:14]Write i2c OK [21:31:14]MH_I2C_Read... [21:31:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:31:14]Read from MH i2c: E2 [21:31:14]MH_I2C_Read... [21:31:14]Read from MH i2c: E2 0E 00 [21:31:14]MH_I2C_Read... [21:31:14]Read from MH i2c: E2 0E 00 1E 0B 00 09 00 01 17 88 19 66 00 00 00 00 90 00 D0 [21:31:14]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [21:31:14]wFMCommunicate OK [21:31:14]SAM_PROTO_GetShiftState done [21:31:14]FM_GetShiftState done [21:31:14]opened in 1712949271 [21:31:14]opened+sec_in_day 1713035671 [21:31:14]quantity*price = 157229 [21:31:14]sum+1 = 157230 [21:31:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1572.29 НСП 1% : 13.91 НДС 12% : 166.97 Наличными: 0.00 Безнал.: 1572.29 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 34 12.04.2024 21:31 Смена: 114 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 28760 ФПД: 33935182466545 1/tax-web-control/client/api/v1/ticket?date=20240412T213115&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28760&fm=33935182466545&tin=02508201610067®Number=0000138879044617&sum=157229 [21:31:15]StoreToDocumentArchive [21:31:15]shift 114 fd 28760 [21:31:15]save to /storage/0114/doc_00028760 [21:31:15]save last doc name /storage/0114/doc_00028760 to /storage/kkm_last_doc_name [21:31:15]save OK [21:31:15]Clear old archive folders... [21:31:15]ProcessDocumentItem done err = 0, tmpTLVsize=250 [21:31:15]tlvbuf is 011B66A0 [21:31:15]SAM_PROTO_ClearQueue [21:31:15]wFMCommunicate request_size=4 [21:31:15]MH_SAM_APDU [21:31:15]CAPDU: 80 09 00 00 [21:31:15]Write to MH i2c: E2 08 00 2B 0B 80 09 00 00 00 00 00 00 A8 [21:31:15]Write i2c OK [21:31:15]MH_I2C_Read... [21:31:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:31:15]Read from MH i2c: E2 [21:31:15]MH_I2C_Read... [21:31:15]Read from MH i2c: E2 03 00 [21:31:15]MH_I2C_Read... [21:31:15]Read from MH i2c: E2 03 00 2B 0B 00 90 00 AA [21:31:15]RAPDU: 90 00 [21:31:15]wFMCommunicate OK [21:31:15]SAM_PROTO_ClearQueue done [21:31:15]KKMCreateOFDPacket [21:31:15]OFDProtocolAddRootSTLVToBuf [21:31:15]FM_MakeSignedData [21:31:15]FM_MakeSignedData [21:31:15]SAM_PROTO_SignData [21:31:15]wFMCommunicate request_size=4 [21:31:15]MH_SAM_APDU [21:31:15]CAPDU: 80 0D 01 02 [21:31:15]Write to MH i2c: E2 08 00 2C 0B 80 0D 01 02 00 00 00 00 B0 [21:31:15]Write i2c OK [21:31:15]MH_I2C_Read... [21:31:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:31:15]Read from MH i2c: E2 [21:31:15]MH_I2C_Read... [21:31:15]Read from MH i2c: E2 03 00 [21:31:15]MH_I2C_Read... [21:31:15]Read from MH i2c: E2 03 00 2C 0B 00 90 00 AB [21:31:15]RAPDU: 90 00 [21:31:15]wFMCommunicate OK [21:31:15]wFMCommunicate request_size=255 [21:31:15]MH_SAM_APDU [21:31:15]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 AE BA 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 2D 66 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2D 66 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 41 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2D 66 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 23 A8 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 58 70 00 00 35 04 06 00 1E DD [21:31:15]Write to MH i2c: E2 02 01 2D 0B 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 AE BA 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 2D 66 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2D 66 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 41 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2D 66 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 23 A8 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 58 70 00 00 35 04 06 00 1E DD 00 00 23 [21:31:15]Write i2c OK [21:31:15]MH_I2C_Read... [21:31:16]Read from MH i2c: E2 [21:31:16]MH_I2C_Read... [21:31:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:31:16]Read from MH i2c: E2 03 00 [21:31:16]MH_I2C_Read... [21:31:16]Read from MH i2c: E2 03 00 2D 0B 00 90 00 AC [21:31:16]RAPDU: 90 00 [21:31:16]wFMCommunicate OK [21:31:16]wFMCommunicate request_size=9 [21:31:16]MH_SAM_APDU [21:31:16]CAPDU: 80 0D 02 02 04 26 7F 0D F1 [21:31:16]Write to MH i2c: E2 0C 00 2E 0B 80 0D 02 02 04 00 26 7F 0D F1 00 00 5E [21:31:16]Write i2c OK [21:31:16]MH_I2C_Read... [21:31:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:31:16]Read from MH i2c: E2 [21:31:16]MH_I2C_Read... [21:31:16]Read from MH i2c: E2 03 00 [21:31:16]MH_I2C_Read... [21:31:16]Read from MH i2c: E2 03 00 2E 0B 00 90 00 AD [21:31:16]RAPDU: 90 00 [21:31:16]wFMCommunicate OK [21:31:16]wFMCommunicate request_size=4 [21:31:16]MH_SAM_APDU [21:31:16]CAPDU: 80 0D 03 02 [21:31:16]Write to MH i2c: E2 08 00 2F 0B 80 0D 03 02 00 00 00 00 B5 [21:31:16]Write i2c OK [21:31:16]MH_I2C_Read... [21:31:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:31:16]Read from MH i2c: E2 [21:31:16]MH_I2C_Read... [21:31:16]Read from MH i2c: E2 0B 00 [21:31:16]MH_I2C_Read... [21:31:16]Read from MH i2c: E2 0B 00 2F 0B 00 A6 73 88 B5 65 68 26 CA 90 00 C9 [21:31:16]RAPDU: A6 73 88 B5 65 68 26 CA 90 00 [21:31:16]wFMCommunicate OK [21:31:16]SAM_PROTO_SignData done [21:31:16]FM_MakeSignedData done [21:31:16]CreateOFDProtocolMessage [21:31:16]wFMCommunicate request_size=4 [21:31:16]MH_SAM_APDU [21:31:16]CAPDU: 80 11 00 00 [21:31:16]Write to MH i2c: E2 08 00 30 0B 80 11 00 00 00 00 00 00 B5 [21:31:16]Write i2c OK [21:31:16]MH_I2C_Read... [21:31:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:31:16]Read from MH i2c: E2 [21:31:16]MH_I2C_Read... [21:31:16]Read from MH i2c: E2 17 00 [21:31:16]MH_I2C_Read... [21:31:16]Read from MH i2c: E2 17 00 30 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 04 [21:31:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:31:16]wFMCommunicate OK [21:31:16]CreateOFDProtocolMessage done [21:31:16]OFDSenderStorePacket 28760 [21:31:16]StoreOFDPacket docnum=28760 [21:31:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 BA A3 06 01 80 15 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 AE BA 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 2D 66 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2D 66 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 41 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2D 66 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 23 A8 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 58 70 00 00 35 04 06 00 1E DD 26 7F 0D F1 A6 73 88 B5 65 68 26 CA [21:31:16]CheckFolder [21:31:16]dirname=/storage/ofd_packets [21:31:16]CheckFolder done [21:31:16]ProducePacketName [21:31:16]name=ofd_packets/00028760 [21:31:16]NVStorageSaveData ofd_packets/00028760 [21:31:16]File name is /storage/ofd_packets/00028760 [21:31:16]Write 300 bytes [21:31:16]NVStorageSaveData done [21:31:16]OFDSenderStorePacket done [21:31:16]KKMCreateOFDPacket done [21:31:16]NVStorageSaveData kkm_last_timestamp [21:31:16]File name is /storage/kkm_last_timestamp [21:31:16]Write 4 bytes [21:31:16]NVStorageSaveData done [21:31:16]ExternCall_PrintAddStr [21:31:16]wPrintStart [21:31:16]Write to MH i2c: 01 00 00 31 0B 3C [21:31:16]Write i2c OK [21:31:16]MH_I2C_Read... [21:31:16]Read from MH i2c: 01 [21:31:16]MH_I2C_Read... [21:31:16]Read from MH i2c: 01 07 00 [21:31:16]MH_I2C_Read... [21:31:16]Read from MH i2c: 01 07 00 31 0B 00 00 00 00 00 FF 0F 51 [21:31:16]RasterBufferAndPrint [21:31:16]line Счет N : (1)347102 [21:31:16]line ИНН: 02508201610067 [21:31:16]line Контрольно-Кассовый Чек [21:31:16]line ПРОДАЖА [21:31:16]line ТРК (МРК, ГНК) : 71 [21:31:16]line Товар: 2711129700 [21:31:16]line ГАЗ-К-5 [21:31:16]line 47.790 * 32.90 [21:31:16]line = 1572.29 [21:31:16]line НДС 12% НСП 1% [21:31:16]line > о реализуемом товаре [21:31:16]line ИТОГО: 1572.29 [21:31:16]line НСП 1% : 13.91 [21:31:16]line НДС 12% : 166.97 [21:31:16]line Наличными: 0.00 [21:31:16]line Безнал.: 1572.29 [21:31:16]line Место: АЗС № 108 "Партнер Нефть" [21:31:16]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [21:31:16]line СНО: Общий режим [21:31:16]line Чек 34 12.04.2024 21:31 [21:31:16]line Смена: 114 ФФД: 1.0 [21:31:16]line ЗНМ: 0300000027 [21:31:16]line РНМ: 0000138879044617 [21:31:16]line Версия ККМ: 001 [21:31:16]line Платежная система: О! деньги [21:31:16]line ФМ: 0000000000963154 [21:31:16]line ФД: 28760 [21:31:16]line ФПД: 33935182466545 [21:31:16]line 1/tax-web-control/client/api/v1/ticket?date=20240412T213115&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28760&fm=33935182466545&tin=02508201610067®Number=0000138879044617&sum=157229 [21:31:16]OFD Sender: Processing packet 28760 [packets to send 8, broken 7] [21:31:16]ProducePacketName [21:31:16]name=ofd_packets/00028760 [21:31:16]OFD Sender: To server: pG, [21:31:16]CommunicateWithHost lk.salyk.kg:30040 [21:31:16]ConnectInit lk.salyk.kg [21:31:16]written 0, free lines is 4095 [21:31:16]Connected sock=10 [21:31:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 BA A3 06 01 80 15 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 AE BA 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 2D 66 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2D 66 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 41 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2D 66 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 23 A8 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 58 70 00 00 35 04 06 00 1E DD 26 7F 0D F1 A6 73 88 B5 65 68 26 CA [21:31:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 05 7D 47 00 67 F2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 58 70 00 00 F4 03 04 00 CC 52 19 66 B6 04 01 00 00 2C 48 64 79 AB C5 28 C3 [21:31:16]CommunicateWithHost err = 0 [21:31:16]CheckOFDResponse [21:31:16]1017 (14) - 77093643461234 [21:31:16]1041 (16) - 0000000000963154 [21:31:16]1040 (4) - 28760 [21:31:16]1012 (4) - 12.04.2024 15:27 [21:31:16]1206 (1) - 0 [21:31:16]OFD Sender: Remove packet 28760 [21:31:16]ProducePacketName [21:31:16]name=ofd_packets/00028760 [21:31:16]NVStorageDeleteData [21:31:16]Write to MH i2c: 01 00 00 5A 0B 65 [21:31:16]Write i2c OK [21:31:16]MH_I2C_Read... [21:31:16]Read from MH i2c: 01 [21:31:16]MH_I2C_Read... [21:31:16]Read from MH i2c: 01 07 00 [21:31:16]MH_I2C_Read... [21:31:16]Read from MH i2c: 01 07 00 5A 0B 00 00 00 00 00 D4 0C 4C [21:31:16]RasterBufferAndPrint [21:31:16]line [21:31:16]line [21:31:16]line [21:31:16]line [21:31:16]line [21:31:16]written 0, free lines is 3288 [21:31:16]MH_Cut [21:31:16]Write to MH i2c: D1 01 00 61 0B 01 3E [21:31:16]Write i2c OK [21:31:16]MH_I2C_Read... [21:31:16]Read from MH i2c: D1 [21:31:16]MH_I2C_Read... [21:31:16]Read from MH i2c: D1 01 00 [21:31:16]MH_I2C_Read... [21:31:16]Read from MH i2c: D1 01 00 61 0B 00 3D [21:31:16]Write to MH i2c: 01 00 00 62 0B 6D [21:31:16]Write i2c OK [21:31:16]MH_I2C_Read... [21:31:17]OFD Sender: No OFD packet to send [21:31:17]*** Cut start [21:31:17]*** Partial cut [21:31:17]*** CUTSNS_PIN = 1 [21:31:17]*** CUTSNS_PIN = 0 [21:31:18]*** Brake cut motor [21:31:18]Read from MH i2c: 01 [21:31:18]MH_I2C_Read... [21:31:18]*** Stop cut motor [21:31:18]*** Cut end [21:31:18]Read from MH i2c: 01 07 00 [21:31:18]MH_I2C_Read... [21:31:18]Read from MH i2c: 01 07 00 62 0B 00 00 00 00 00 FF 0F 82 [21:31:18]process_action close_receipt done [21:31:18]requested_data is exist [21:31:18]produce_requested_data [21:31:18]requested_item fm.sn is exist - process it [21:31:18]wFMCommunicate request_size=4 [21:31:18]MH_SAM_APDU [21:31:18]CAPDU: 80 11 00 00 [21:31:18]Write to MH i2c: E2 08 00 63 0B 80 11 00 00 00 00 00 00 E8 [21:31:18]Write i2c OK [21:31:18]MH_I2C_Read... [21:31:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:31:18]Read from MH i2c: E2 [21:31:18]MH_I2C_Read... [21:31:18]Read from MH i2c: E2 17 00 [21:31:18]MH_I2C_Read... [21:31:18]Read from MH i2c: E2 17 00 63 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 37 [21:31:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:31:18]wFMCommunicate OK [21:31:18]requested_item fd.num is exist - process it [21:31:18]SAM_PROTO_GetFieldsCounters [21:31:18]wFMCommunicate request_size=4 [21:31:18]MH_SAM_APDU [21:31:18]CAPDU: 80 13 00 00 [21:31:18]Write to MH i2c: E2 08 00 64 0B 80 13 00 00 00 00 00 00 EB [21:31:18]Write i2c OK [21:31:18]MH_I2C_Read... [21:31:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:31:18]Read from MH i2c: E2 [21:31:18]MH_I2C_Read... [21:31:18]Read from MH i2c: E2 62 00 [21:31:18]MH_I2C_Read... [21:31:18]Read from MH i2c: E2 62 00 64 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 58 70 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 C9 [21:31:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 58 70 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 [21:31:18]wFMCommunicate OK [21:31:18]SAM_PROTO_GetFieldsCounters done [21:31:18]requested_item shift.num is exist - process it [21:31:18]requested_item shift.opened is exist - process it [21:31:18]req_shift_opened [21:31:18]FM_GetShiftState [21:31:18]SAM_PROTO_GetShiftState [21:31:18]wFMCommunicate request_size=4 [21:31:18]MH_SAM_APDU [21:31:18]CAPDU: 80 13 01 00 [21:31:18]Write to MH i2c: E2 08 00 65 0B 80 13 01 00 00 00 00 00 ED [21:31:18]Write i2c OK [21:31:18]MH_I2C_Read... [21:31:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:31:18]Read from MH i2c: E2 [21:31:18]MH_I2C_Read... [21:31:18]Read from MH i2c: E2 0E 00 [21:31:18]MH_I2C_Read... [21:31:18]Read from MH i2c: E2 0E 00 65 0B 00 09 00 01 17 88 19 66 00 00 00 00 90 00 17 [21:31:18]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [21:31:18]wFMCommunicate OK [21:31:18]SAM_PROTO_GetShiftState done [21:31:18]FM_GetShiftState done [21:31:18]req_shift_opened done [21:31:18]requested_item shift.open_date is exist - process it [21:31:18]req_shift_open_date [21:31:18]req_shift_open_date done [21:31:18]produce_requested_data done [21:31:18]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28760,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271} [21:31:18]process_action_free close_receipt [21:31:18]json_value_free [21:31:18]json_value_free done [21:31:18]process_json_proto returns [21:31:18]Send response to host [21:31:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28760,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271}}} [21:31:18]free response buf [21:31:18]execute_script done [21:31:18]execute_script returns [21:31:18]free content buf [21:31:18]Sock 7.Close socket [21:31:18]Sock 7.Thread stoped [21:31:22]OFD Sender: No OFD packet to send [21:31:27]OFD Sender: No OFD packet to send [21:31:32]OFD Sender: No OFD packet to send [21:31:37]OFD Sender: No OFD packet to send [21:31:42]OFD Sender: No OFD packet to send [21:31:47]OFD Sender: No OFD packet to send [21:31:52]OFD Sender: No OFD packet to send [21:31:57]OFD Sender: No OFD packet to send [21:32:02]OFD Sender: No OFD packet to send [21:32:07]OFD Sender: No OFD packet to send [21:32:11]accept exits with 9 [21:32:11]New connection [21:32:11]New thread 3066928484 created [21:32:11]Thread 3066785124 joined [21:32:11]Waiting for new connection... [21:32:11] Sock 9.Parse request [21:32:11]Sock 9.Check first char [21:32:11]Sock 9.First char is OK [21:32:11]request: POST /json_proto HTTP/1.0 [21:32:11]Method: POST [21:32:11]URL: /json_proto [21:32:11]Method is POST - this is cgi request [21:32:11]url: /json_proto [21:32:11]query_string will be loaded in cgi processing [21:32:11]execute_cgi json_proto POST (null) [21:32:11]execute_cgi path=json_proto method=POST [21:32:11]POST find Content-Length [21:32:11]Host: 172.17.33.3:8080 [21:32:11]Content-Length: 682 [21:32:11]Content-Type: application/json [21:32:11] [21:32:11]POST finish read [21:32:11]Found Content-Length = 682 [21:32:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347105", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 15.560, "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" ] } } [21:32:11]execute_script... [21:32: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)347105", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 15.560, "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" ] } } [21:32:11]POST & json_proto [21:32:11]process_json_proto [21:32:11]json parsed OK: [21:32:11]protocol is kg_v1.0 [21:32:11]action value=close_receipt [21:32:11]process_action close_receipt [21:32:11]cmd_close_receipt [21:32:11]MH_GetDate [21:32:11]Write to MH i2c: F0 00 00 66 0B 60 [21:32:11]Write i2c OK [21:32:11]MH_I2C_Read... [21:32:11]Read from MH i2c: F0 [21:32:11]MH_I2C_Read... [21:32:11]Read from MH i2c: F0 09 00 [21:32:11]MH_I2C_Read... [21:32:11]Read from MH i2c: F0 09 00 66 0B 00 5C A8 19 66 23 5B 8F 65 5E [21:32:11]GetLastDocTimeStamp 1712957475 [21:32:11]current date 1712957532 [21:32:11]FM_GetShiftState [21:32:11]SAM_PROTO_GetShiftState [21:32:11]wFMCommunicate request_size=4 [21:32:11]MH_SAM_APDU [21:32:11]CAPDU: 80 13 01 00 [21:32:11]Write to MH i2c: E2 08 00 67 0B 80 13 01 00 00 00 00 00 EF [21:32:11]Write i2c OK [21:32:11]MH_I2C_Read... [21:32:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:32:11]Read from MH i2c: E2 [21:32:11]MH_I2C_Read... [21:32:11]Read from MH i2c: E2 0E 00 [21:32:11]MH_I2C_Read... [21:32:11]Read from MH i2c: E2 0E 00 67 0B 00 09 00 01 17 88 19 66 00 00 00 00 90 00 19 [21:32:11]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [21:32:11]wFMCommunicate OK [21:32:11]SAM_PROTO_GetShiftState done [21:32:11]FM_GetShiftState done [21:32:11]opened in 1712949271 [21:32:11]opened+sec_in_day 1713035671 [21:32:11]quantity*price = 100050 [21:32:11]sum+1 = 100052 [21:32:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 35 12.04.2024 21:32 Смена: 114 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28761 ФПД: 190949119415642 1/tax-web-control/client/api/v1/ticket?date=20240412T213212&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28761&fm=190949119415642&tin=02508201610067®Number=0000138879044617&sum=100000 [21:32:12]StoreToDocumentArchive [21:32:12]shift 114 fd 28761 [21:32:12]save to /storage/0114/doc_00028761 [21:32:12]save last doc name /storage/0114/doc_00028761 to /storage/kkm_last_doc_name [21:32:12]save OK [21:32:12]Clear old archive folders... [21:32:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:32:12]tlvbuf is 011B3230 [21:32:12]SAM_PROTO_ClearQueue [21:32:12]wFMCommunicate request_size=4 [21:32:12]MH_SAM_APDU [21:32:12]CAPDU: 80 09 00 00 [21:32:12]Write to MH i2c: E2 08 00 74 0B 80 09 00 00 00 00 00 00 F1 [21:32:12]Write i2c OK [21:32:12]MH_I2C_Read... [21:32:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:32:12]Read from MH i2c: E2 [21:32:12]MH_I2C_Read... [21:32:12]Read from MH i2c: E2 03 00 [21:32:12]MH_I2C_Read... [21:32:12]Read from MH i2c: E2 03 00 74 0B 00 90 00 F3 [21:32:12]RAPDU: 90 00 [21:32:12]wFMCommunicate OK [21:32:12]SAM_PROTO_ClearQueue done [21:32:12]KKMCreateOFDPacket [21:32:12]OFDProtocolAddRootSTLVToBuf [21:32:12]FM_MakeSignedData [21:32:12]FM_MakeSignedData [21:32:12]SAM_PROTO_SignData [21:32:12]wFMCommunicate request_size=4 [21:32:12]MH_SAM_APDU [21:32:12]CAPDU: 80 0D 01 02 [21:32:12]Write to MH i2c: E2 08 00 75 0B 80 0D 01 02 00 00 00 00 F9 [21:32:12]Write i2c OK [21:32:12]MH_I2C_Read... [21:32:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:32:12]Read from MH i2c: E2 [21:32:12]MH_I2C_Read... [21:32:12]Read from MH i2c: E2 03 00 [21:32:12]MH_I2C_Read... [21:32:12]Read from MH i2c: E2 03 00 75 0B 00 90 00 F4 [21:32:12]RAPDU: 90 00 [21:32:12]wFMCommunicate OK [21:32:12]wFMCommunicate request_size=255 [21:32:12]MH_SAM_APDU [21:32:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 23 00 00 00 F4 03 04 00 5C A8 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 59 70 00 00 35 04 06 00 AD [21:32:12]Write to MH i2c: E2 02 01 76 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 23 00 00 00 F4 03 04 00 5C A8 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 59 70 00 00 35 04 06 00 AD 00 00 B3 [21:32:12]Write i2c OK [21:32:12]MH_I2C_Read... [21:32:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:32:12]Read from MH i2c: E2 [21:32:12]MH_I2C_Read... [21:32:12]Read from MH i2c: E2 03 00 [21:32:12]MH_I2C_Read... [21:32:12]Read from MH i2c: E2 03 00 76 0B 00 90 00 F5 [21:32:12]RAPDU: 90 00 [21:32:12]wFMCommunicate OK [21:32:12]wFMCommunicate request_size=10 [21:32:12]MH_SAM_APDU [21:32:12]CAPDU: 80 0D 02 02 05 AA CE 6E D5 5A [21:32:12]Write to MH i2c: E2 0D 00 77 0B 80 0D 02 02 05 00 AA CE 6E D5 5A 00 00 1B [21:32:12]Write i2c OK [21:32:12]MH_I2C_Read... [21:32:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:32:12]Read from MH i2c: E2 [21:32:12]MH_I2C_Read... [21:32:12]Read from MH i2c: E2 03 00 [21:32:12]MH_I2C_Read... [21:32:12]Read from MH i2c: E2 03 00 77 0B 00 90 00 F6 [21:32:12]RAPDU: 90 00 [21:32:12]wFMCommunicate OK [21:32:12]wFMCommunicate request_size=4 [21:32:12]MH_SAM_APDU [21:32:12]CAPDU: 80 0D 03 02 [21:32:12]Write to MH i2c: E2 08 00 78 0B 80 0D 03 02 00 00 00 00 FE [21:32:12]Write i2c OK [21:32:12]MH_I2C_Read... [21:32:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:32:12]Read from MH i2c: E2 [21:32:12]MH_I2C_Read... [21:32:12]Read from MH i2c: E2 0B 00 [21:32:12]MH_I2C_Read... [21:32:12]Read from MH i2c: E2 0B 00 78 0B 00 AD 5F B1 C5 E8 A5 66 E1 90 00 55 [21:32:12]RAPDU: AD 5F B1 C5 E8 A5 66 E1 90 00 [21:32:12]wFMCommunicate OK [21:32:12]SAM_PROTO_SignData done [21:32:12]FM_MakeSignedData done [21:32:12]CreateOFDProtocolMessage [21:32:12]wFMCommunicate request_size=4 [21:32:12]MH_SAM_APDU [21:32:12]CAPDU: 80 11 00 00 [21:32:12]Write to MH i2c: E2 08 00 79 0B 80 11 00 00 00 00 00 00 FE [21:32:12]Write i2c OK [21:32:12]MH_I2C_Read... [21:32:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:32:12]Read from MH i2c: E2 [21:32:12]MH_I2C_Read... [21:32:12]Read from MH i2c: E2 17 00 [21:32:12]MH_I2C_Read... [21:32:12]Read from MH i2c: E2 17 00 79 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 4D [21:32:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:32:12]wFMCommunicate OK [21:32:12]CreateOFDProtocolMessage done [21:32:12]OFDSenderStorePacket 28761 [21:32:12]StoreOFDPacket docnum=28761 [21:32:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 7C 0E 07 01 1F A8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 23 00 00 00 F4 03 04 00 5C A8 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 59 70 00 00 35 04 06 00 AD AA CE 6E D5 5A AD 5F B1 C5 E8 A5 66 E1 [21:32:12]CheckFolder [21:32:12]dirname=/storage/ofd_packets [21:32:12]CheckFolder done [21:32:12]ProducePacketName [21:32:12]name=ofd_packets/00028761 [21:32:12]NVStorageSaveData ofd_packets/00028761 [21:32:12]File name is /storage/ofd_packets/00028761 [21:32:12]Write 301 bytes [21:32:12]NVStorageSaveData done [21:32:12]OFDSenderStorePacket done [21:32:12]KKMCreateOFDPacket done [21:32:12]NVStorageSaveData kkm_last_timestamp [21:32:12]File name is /storage/kkm_last_timestamp [21:32:12]Write 4 bytes [21:32:12]NVStorageSaveData done [21:32:12]ExternCall_PrintAddStr [21:32:12]wPrintStart [21:32:12]Write to MH i2c: 01 00 00 7A 0B 85 [21:32:12]Write i2c OK [21:32:12]MH_I2C_Read... [21:32:12]Read from MH i2c: 01 [21:32:12]MH_I2C_Read... [21:32:12]Read from MH i2c: 01 07 00 [21:32:12]MH_I2C_Read... [21:32:12]Read from MH i2c: 01 07 00 7A 0B 00 00 00 00 00 FF 0F 9A [21:32:12]RasterBufferAndPrint [21:32:12]line Счет N : (1)347105 [21:32:12]line ИНН: 02508201610067 [21:32:12]line Контрольно-Кассовый Чек [21:32:12]line ПРОДАЖА [21:32:12]line ТРК (МРК, ГНК) : 23 [21:32:12]line Товар: 2710124130 [21:32:12]line Аи-92-К-5 [21:32:12]line 15.560 * 64.30 [21:32:12]line = 1000.51 [21:32:12]line НДС 12% НСП 1% [21:32:12]line > о реализуемом товаре [21:32:12]line ОКРУГЛЕНИЕ: -0.51 [21:32:12]line ИТОГО: 1000.00 [21:32:12]line Внесено: 1000.00 [21:32:12]line СДАЧА: 0.00 [21:32:12]line НСП 1% : 8.85 [21:32:12]line НДС 12% : 106.25 [21:32:12]line Наличными: 1000.00 [21:32:12]line Безнал.: 0.00 [21:32:12]line Место: АЗС № 108 "Партнер Нефть" [21:32:12]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [21:32:12]line СНО: Общий режим [21:32:12]line Чек 35 12.04.2024 21:32 [21:32:12]line Смена: 114 ФФД: 1.0 [21:32:12]line ЗНМ: 0300000027 [21:32:12]line РНМ: 0000138879044617 [21:32:12]line Версия ККМ: 001 [21:32:12]line ФМ: 0000000000963154 [21:32:12]line ФД: 28761 [21:32:12]line ФПД: 190949119415642 [21:32:13]line 1/tax-web-control/client/api/v1/ticket?date=20240412T213212&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28761&fm=190949119415642&tin=02508201610067®Number=0000138879044617&sum=100000 [21:32:13]OFD Sender: Processing packet 28761 [packets to send 8, broken 7] [21:32:13]ProducePacketName [21:32:13]name=ofd_packets/00028761 [21:32:13]OFD Sender: To server: pG, [21:32:13]CommunicateWithHost lk.salyk.kg:30040 [21:32:13]ConnectInit lk.salyk.kg [21:32:13]written 0, free lines is 4095 [21:32:13]Connected sock=10 [21:32:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 7C 0E 07 01 1F A8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 23 00 00 00 F4 03 04 00 5C A8 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 59 70 00 00 35 04 06 00 AD AA CE 6E D5 5A AD 5F B1 C5 E8 A5 66 E1 [21:32:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 7F 51 47 00 A7 E8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 59 70 00 00 F4 03 04 00 05 53 19 66 B6 04 01 00 00 15 FA 73 64 F7 EC 3F 1D [21:32:13]CommunicateWithHost err = 0 [21:32:13]CheckOFDResponse [21:32:13]1017 (14) - 77093643461234 [21:32:13]1041 (16) - 0000000000963154 [21:32:13]1040 (4) - 28761 [21:32:13]1012 (4) - 12.04.2024 15:28 [21:32:13]1206 (1) - 0 [21:32:13]OFD Sender: Remove packet 28761 [21:32:13]ProducePacketName [21:32:13]name=ofd_packets/00028761 [21:32:13]NVStorageDeleteData [21:32:13]Write to MH i2c: 01 00 00 A4 0B AF [21:32:13]Write i2c OK [21:32:13]MH_I2C_Read... [21:32:13]Read from MH i2c: 01 [21:32:13]MH_I2C_Read... [21:32:13]Read from MH i2c: 01 07 00 [21:32:13]MH_I2C_Read... [21:32:13]Read from MH i2c: 01 07 00 A4 0B 00 00 00 00 00 BD 0C 7F [21:32:13]RasterBufferAndPrint [21:32:13]line [21:32:13]line [21:32:13]line [21:32:13]line [21:32:13]line [21:32:13]written 0, free lines is 3268 [21:32:13]MH_Cut [21:32:13]Write to MH i2c: D1 01 00 AB 0B 01 88 [21:32:13]Write i2c OK [21:32:13]MH_I2C_Read... [21:32:13]Read from MH i2c: D1 [21:32:13]MH_I2C_Read... [21:32:13]Read from MH i2c: D1 01 00 [21:32:13]MH_I2C_Read... [21:32:13]Read from MH i2c: D1 01 00 AB 0B 00 87 [21:32:13]Write to MH i2c: 01 00 00 AC 0B B7 [21:32:13]Write i2c OK [21:32:13]MH_I2C_Read... [21:32:14]OFD Sender: No OFD packet to send [21:32:14]*** Cut start [21:32:14]*** Partial cut [21:32:14]*** CUTSNS_PIN = 1 [21:32:14]*** CUTSNS_PIN = 0 [21:32:14]*** Brake cut motor [21:32:15]Read from MH i2c: 01 [21:32:15]MH_I2C_Read... [21:32:15]*** Stop cut motor [21:32:15]*** Cut end [21:32:15]Read from MH i2c: 01 07 00 [21:32:15]MH_I2C_Read... [21:32:15]Read from MH i2c: 01 07 00 AC 0B 00 00 00 00 00 FF 0F CC [21:32:15]process_action close_receipt done [21:32:15]requested_data is exist [21:32:15]produce_requested_data [21:32:15]requested_item fm.sn is exist - process it [21:32:15]wFMCommunicate request_size=4 [21:32:15]MH_SAM_APDU [21:32:15]CAPDU: 80 11 00 00 [21:32:15]Write to MH i2c: E2 08 00 AD 0B 80 11 00 00 00 00 00 00 32 [21:32:15]Write i2c OK [21:32:15]MH_I2C_Read... [21:32:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:32:15]Read from MH i2c: E2 [21:32:15]MH_I2C_Read... [21:32:15]Read from MH i2c: E2 17 00 [21:32:15]MH_I2C_Read... [21:32:15]Read from MH i2c: E2 17 00 AD 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 81 [21:32:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:32:15]wFMCommunicate OK [21:32:15]requested_item fd.num is exist - process it [21:32:15]SAM_PROTO_GetFieldsCounters [21:32:15]wFMCommunicate request_size=4 [21:32:15]MH_SAM_APDU [21:32:15]CAPDU: 80 13 00 00 [21:32:15]Write to MH i2c: E2 08 00 AE 0B 80 13 00 00 00 00 00 00 35 [21:32:15]Write i2c OK [21:32:15]MH_I2C_Read... [21:32:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:32:15]Read from MH i2c: E2 [21:32:15]MH_I2C_Read... [21:32:15]Read from MH i2c: E2 62 00 [21:32:15]MH_I2C_Read... [21:32:15]Read from MH i2c: E2 62 00 AE 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 59 70 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 17 [21:32:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 59 70 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 [21:32:15]wFMCommunicate OK [21:32:15]SAM_PROTO_GetFieldsCounters done [21:32:15]requested_item shift.num is exist - process it [21:32:15]requested_item shift.opened is exist - process it [21:32:15]req_shift_opened [21:32:15]FM_GetShiftState [21:32:15]SAM_PROTO_GetShiftState [21:32:15]wFMCommunicate request_size=4 [21:32:15]MH_SAM_APDU [21:32:15]CAPDU: 80 13 01 00 [21:32:15]Write to MH i2c: E2 08 00 AF 0B 80 13 01 00 00 00 00 00 37 [21:32:15]Write i2c OK [21:32:15]MH_I2C_Read... [21:32:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:32:15]Read from MH i2c: E2 [21:32:15]MH_I2C_Read... [21:32:15]Read from MH i2c: E2 0E 00 [21:32:15]MH_I2C_Read... [21:32:15]Read from MH i2c: E2 0E 00 AF 0B 00 09 00 01 17 88 19 66 00 00 00 00 90 00 61 [21:32:15]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [21:32:15]wFMCommunicate OK [21:32:15]SAM_PROTO_GetShiftState done [21:32:15]FM_GetShiftState done [21:32:15]req_shift_opened done [21:32:15]requested_item shift.open_date is exist - process it [21:32:15]req_shift_open_date [21:32:15]req_shift_open_date done [21:32:15]produce_requested_data done [21:32:15]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28761,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271} [21:32:15]process_action_free close_receipt [21:32:15]json_value_free [21:32:15]json_value_free done [21:32:15]process_json_proto returns [21:32:15]Send response to host [21:32:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28761,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271}}} [21:32:15]free response buf [21:32:15]execute_script done [21:32:15]execute_script returns [21:32:15]free content buf [21:32:15]Sock 9.Close socket [21:32:15]Sock 9.Thread stoped [21:32:19]OFD Sender: No OFD packet to send [21:32:24]OFD Sender: No OFD packet to send [21:32:29]OFD Sender: No OFD packet to send [21:32:34]OFD Sender: No OFD packet to send [21:32:39]OFD Sender: No OFD packet to send [21:32:44]OFD Sender: No OFD packet to send [21:32:49]OFD Sender: No OFD packet to send [21:32:54]OFD Sender: No OFD packet to send [21:32:59]OFD Sender: No OFD packet to send [21:33:04]OFD Sender: No OFD packet to send [21:33:09]OFD Sender: No OFD packet to send [21:33:14]OFD Sender: No OFD packet to send [21:33:19]OFD Sender: No OFD packet to send [21:33:24]OFD Sender: No OFD packet to send [21:33:29]OFD Sender: No OFD packet to send [21:33:34]OFD Sender: No OFD packet to send [21:33:39]OFD Sender: No OFD packet to send [21:33:39]accept exits with 7 [21:33:39]New connection [21:33:39]New thread 3066785124 created [21:33:39]Thread 3066928484 joined [21:33:39]Waiting for new connection... [21:33:39] Sock 7.Parse request [21:33:39]Sock 7.Check first char [21:33:39]Sock 7.First char is OK [21:33:39]request: POST /json_proto HTTP/1.0 [21:33:39]Method: POST [21:33:39]URL: /json_proto [21:33:39]Method is POST - this is cgi request [21:33:39]url: /json_proto [21:33:39]query_string will be loaded in cgi processing [21:33:39]execute_cgi json_proto POST (null) [21:33:39]execute_cgi path=json_proto method=POST [21:33:39]POST find Content-Length [21:33:39]Host: 172.17.33.3:8080 [21:33:39]Content-Length: 642 [21:33:39]Content-Type: application/json [21:33:39] [21:33:39]POST finish read [21:33:39]Found Content-Length = 642 [21:33:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347106", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 20.000, "sum" : 1286.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1286.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:33:39]execute_script... [21:33: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)347106", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 20.000, "sum" : 1286.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1286.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:33:39]POST & json_proto [21:33:39]process_json_proto [21:33:39]json parsed OK: [21:33:39]protocol is kg_v1.0 [21:33:39]action value=close_receipt [21:33:39]process_action close_receipt [21:33:39]cmd_close_receipt [21:33:39]MH_GetDate [21:33:39]Write to MH i2c: F0 00 00 B0 0B AA [21:33:39]Write i2c OK [21:33:39]MH_I2C_Read... [21:33:39]Read from MH i2c: F0 [21:33:39]MH_I2C_Read... [21:33:39]Read from MH i2c: F0 09 00 [21:33:39]MH_I2C_Read... [21:33:39]Read from MH i2c: F0 09 00 B0 0B 00 B4 A8 19 66 23 5B 8F 65 00 [21:33:39]GetLastDocTimeStamp 1712957532 [21:33:39]current date 1712957620 [21:33:39]FM_GetShiftState [21:33:39]SAM_PROTO_GetShiftState [21:33:39]wFMCommunicate request_size=4 [21:33:39]MH_SAM_APDU [21:33:39]CAPDU: 80 13 01 00 [21:33:39]Write to MH i2c: E2 08 00 B1 0B 80 13 01 00 00 00 00 00 39 [21:33:39]Write i2c OK [21:33:39]MH_I2C_Read... [21:33:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:33:39]Read from MH i2c: E2 [21:33:39]MH_I2C_Read... [21:33:39]Read from MH i2c: E2 0E 00 [21:33:39]MH_I2C_Read... [21:33:39]Read from MH i2c: E2 0E 00 B1 0B 00 09 00 01 17 88 19 66 00 00 00 00 90 00 63 [21:33:39]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [21:33:39]wFMCommunicate OK [21:33:39]SAM_PROTO_GetShiftState done [21:33:39]FM_GetShiftState done [21:33:39]opened in 1712949271 [21:33:39]opened+sec_in_day 1713035671 [21:33:39]quantity*price = 128600 [21:33:39]sum+1 = 128601 [21:33:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1286.00 НСП 1% : 11.38 НДС 12% : 136.57 Наличными: 1286.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 36 12.04.2024 21:33 Смена: 114 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28762 ФПД: 241194640410784 1/tax-web-control/client/api/v1/ticket?date=20240412T213340&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28762&fm=241194640410784&tin=02508201610067®Number=0000138879044617&sum=128600 [21:33:40]StoreToDocumentArchive [21:33:40]shift 114 fd 28762 [21:33:40]save to /storage/0114/doc_00028762 [21:33:40]save last doc name /storage/0114/doc_00028762 to /storage/kkm_last_doc_name [21:33:40]save OK [21:33:40]Clear old archive folders... [21:33:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:33:40]tlvbuf is 011B3490 [21:33:40]SAM_PROTO_ClearQueue [21:33:40]wFMCommunicate request_size=4 [21:33:40]MH_SAM_APDU [21:33:40]CAPDU: 80 09 00 00 [21:33:40]Write to MH i2c: E2 08 00 BE 0B 80 09 00 00 00 00 00 00 3B [21:33:40]Write i2c OK [21:33:40]MH_I2C_Read... [21:33:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:33:40]Read from MH i2c: E2 [21:33:40]MH_I2C_Read... [21:33:40]Read from MH i2c: E2 03 00 [21:33:40]MH_I2C_Read... [21:33:40]Read from MH i2c: E2 03 00 BE 0B 00 90 00 3D [21:33:40]RAPDU: 90 00 [21:33:40]wFMCommunicate OK [21:33:40]SAM_PROTO_ClearQueue done [21:33:40]KKMCreateOFDPacket [21:33:40]OFDProtocolAddRootSTLVToBuf [21:33:40]FM_MakeSignedData [21:33:40]FM_MakeSignedData [21:33:40]SAM_PROTO_SignData [21:33:40]wFMCommunicate request_size=4 [21:33:40]MH_SAM_APDU [21:33:40]CAPDU: 80 0D 01 02 [21:33:40]Write to MH i2c: E2 08 00 BF 0B 80 0D 01 02 00 00 00 00 43 [21:33:40]Write i2c OK [21:33:40]MH_I2C_Read... [21:33:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:33:40]Read from MH i2c: E2 [21:33:40]MH_I2C_Read... [21:33:40]Read from MH i2c: E2 03 00 [21:33:40]MH_I2C_Read... [21:33:40]Read from MH i2c: E2 03 00 BF 0B 00 90 00 3E [21:33:40]RAPDU: 90 00 [21:33:40]wFMCommunicate OK [21:33:40]wFMCommunicate request_size=255 [21:33:40]MH_SAM_APDU [21:33:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 58 F6 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 F6 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 59 35 00 00 00 00 07 04 06 00 58 F6 01 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 B4 A8 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5A 70 00 00 35 04 06 00 DB [21:33:40]Write to MH i2c: E2 02 01 C0 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 58 F6 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 F6 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 59 35 00 00 00 00 07 04 06 00 58 F6 01 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 B4 A8 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5A 70 00 00 35 04 06 00 DB 00 00 16 [21:33:40]Write i2c OK [21:33:40]MH_I2C_Read... [21:33:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:33:40]Read from MH i2c: E2 [21:33:40]MH_I2C_Read... [21:33:40]Read from MH i2c: E2 03 00 [21:33:40]MH_I2C_Read... [21:33:40]Read from MH i2c: E2 03 00 C0 0B 00 90 00 3F [21:33:40]RAPDU: 90 00 [21:33:40]wFMCommunicate OK [21:33:40]wFMCommunicate request_size=10 [21:33:40]MH_SAM_APDU [21:33:40]CAPDU: 80 0D 02 02 05 5D 80 DD 08 A0 [21:33:40]Write to MH i2c: E2 0D 00 C1 0B 80 0D 02 02 05 00 5D 80 DD 08 A0 00 00 B2 [21:33:40]Write i2c OK [21:33:40]MH_I2C_Read... [21:33:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:33:41]Read from MH i2c: E2 [21:33:41]MH_I2C_Read... [21:33:41]Read from MH i2c: E2 03 00 [21:33:41]MH_I2C_Read... [21:33:41]Read from MH i2c: E2 03 00 C1 0B 00 90 00 40 [21:33:41]RAPDU: 90 00 [21:33:41]wFMCommunicate OK [21:33:41]wFMCommunicate request_size=4 [21:33:41]MH_SAM_APDU [21:33:41]CAPDU: 80 0D 03 02 [21:33:41]Write to MH i2c: E2 08 00 C2 0B 80 0D 03 02 00 00 00 00 48 [21:33:41]Write i2c OK [21:33:41]MH_I2C_Read... [21:33:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:33:41]Read from MH i2c: E2 [21:33:41]MH_I2C_Read... [21:33:41]Read from MH i2c: E2 0B 00 [21:33:41]MH_I2C_Read... [21:33:41]Read from MH i2c: E2 0B 00 C2 0B 00 40 92 40 A5 87 08 09 AC 90 00 44 [21:33:41]RAPDU: 40 92 40 A5 87 08 09 AC 90 00 [21:33:41]wFMCommunicate OK [21:33:41]SAM_PROTO_SignData done [21:33:41]FM_MakeSignedData done [21:33:41]CreateOFDProtocolMessage [21:33:41]wFMCommunicate request_size=4 [21:33:41]MH_SAM_APDU [21:33:41]CAPDU: 80 11 00 00 [21:33:41]Write to MH i2c: E2 08 00 C3 0B 80 11 00 00 00 00 00 00 48 [21:33:41]Write i2c OK [21:33:41]MH_I2C_Read... [21:33:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:33:41]Read from MH i2c: E2 [21:33:41]MH_I2C_Read... [21:33:41]Read from MH i2c: E2 17 00 [21:33:41]MH_I2C_Read... [21:33:41]Read from MH i2c: E2 17 00 C3 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 97 [21:33:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:33:41]wFMCommunicate OK [21:33:41]CreateOFDProtocolMessage done [21:33:41]OFDSenderStorePacket 28762 [21:33:41]StoreOFDPacket docnum=28762 [21:33:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 36 D1 07 01 62 E8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 58 F6 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 F6 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 59 35 00 00 00 00 07 04 06 00 58 F6 01 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 B4 A8 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5A 70 00 00 35 04 06 00 DB 5D 80 DD 08 A0 40 92 40 A5 87 08 09 AC [21:33:41]CheckFolder [21:33:41]dirname=/storage/ofd_packets [21:33:41]CheckFolder done [21:33:41]ProducePacketName [21:33:41]name=ofd_packets/00028762 [21:33:41]NVStorageSaveData ofd_packets/00028762 [21:33:41]File name is /storage/ofd_packets/00028762 [21:33:41]Write 301 bytes [21:33:41]NVStorageSaveData done [21:33:41]OFDSenderStorePacket done [21:33:41]KKMCreateOFDPacket done [21:33:41]NVStorageSaveData kkm_last_timestamp [21:33:41]File name is /storage/kkm_last_timestamp [21:33:41]Write 4 bytes [21:33:41]NVStorageSaveData done [21:33:41]ExternCall_PrintAddStr [21:33:41]wPrintStart [21:33:41]Write to MH i2c: 01 00 00 C4 0B CF [21:33:41]Write i2c OK [21:33:41]MH_I2C_Read... [21:33:41]Read from MH i2c: 01 [21:33:41]MH_I2C_Read... [21:33:41]Read from MH i2c: 01 07 00 [21:33:41]MH_I2C_Read... [21:33:41]Read from MH i2c: 01 07 00 C4 0B 00 00 00 00 00 FF 0F E4 [21:33:41]RasterBufferAndPrint [21:33:41]line Счет N : (1)347106 [21:33:41]line ИНН: 02508201610067 [21:33:41]line Контрольно-Кассовый Чек [21:33:41]line ПРОДАЖА [21:33:41]line ТРК (МРК, ГНК) : 13 [21:33:41]line Товар: 2710124130 [21:33:41]line Аи-92-К-5 [21:33:41]line 20.000 * 64.30 [21:33:41]line = 1286.00 [21:33:41]line НДС 12% НСП 1% [21:33:41]line > о реализуемом товаре [21:33:41]line ИТОГО: 1286.00 [21:33:41]line НСП 1% : 11.38 [21:33:41]line НДС 12% : 136.57 [21:33:41]line Наличными: 1286.00 [21:33:41]line Безнал.: 0.00 [21:33:41]line Место: АЗС № 108 "Партнер Нефть" [21:33:41]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [21:33:41]line СНО: Общий режим [21:33:41]line Чек 36 12.04.2024 21:33 [21:33:41]line Смена: 114 ФФД: 1.0 [21:33:41]line ЗНМ: 0300000027 [21:33:41]line РНМ: 0000138879044617 [21:33:41]line Версия ККМ: 001 [21:33:41]line ФМ: 0000000000963154 [21:33:41]line ФД: 28762 [21:33:41]line ФПД: 241194640410784 [21:33:41]line 1/tax-web-control/client/api/v1/ticket?date=20240412T213340&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28762&fm=241194640410784&tin=02508201610067®Number=0000138879044617&sum=128600 [21:33:41]written 0, free lines is 4095 [21:33:41]OFD Sender: Processing packet 28762 [packets to send 8, broken 7] [21:33:41]ProducePacketName [21:33:41]name=ofd_packets/00028762 [21:33:41]OFD Sender: To server: pG, [21:33:41]CommunicateWithHost lk.salyk.kg:30040 [21:33:41]ConnectInit lk.salyk.kg [21:33:41]Connected sock=10 [21:33:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 36 D1 07 01 62 E8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 58 F6 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 F6 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 59 35 00 00 00 00 07 04 06 00 58 F6 01 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 B4 A8 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5A 70 00 00 35 04 06 00 DB 5D 80 DD 08 A0 40 92 40 A5 87 08 09 AC [21:33:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 89 B3 47 00 D3 60 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5A 70 00 00 F4 03 04 00 5D 53 19 66 B6 04 01 00 00 4E 81 93 81 9A C1 C1 82 [21:33:41]CommunicateWithHost err = 0 [21:33:41]CheckOFDResponse [21:33:41]1017 (14) - 77093643461234 [21:33:41]1041 (16) - 0000000000963154 [21:33:41]1040 (4) - 28762 [21:33:41]1012 (4) - 12.04.2024 15:29 [21:33:41]1206 (1) - 0 [21:33:41]OFD Sender: Remove packet 28762 [21:33:41]ProducePacketName [21:33:41]name=ofd_packets/00028762 [21:33:41]NVStorageDeleteData [21:33:41]Write to MH i2c: 01 00 00 EB 0B F6 [21:33:41]Write i2c OK [21:33:41]MH_I2C_Read... [21:33:41]Read from MH i2c: 01 [21:33:41]MH_I2C_Read... [21:33:41]Read from MH i2c: 01 07 00 [21:33:41]MH_I2C_Read... [21:33:41]Read from MH i2c: 01 07 00 EB 0B 00 00 00 00 00 FD 0C 06 [21:33:41]RasterBufferAndPrint [21:33:41]line [21:33:41]line [21:33:41]line [21:33:41]line [21:33:41]line [21:33:41]written 0, free lines is 3331 [21:33:41]MH_Cut [21:33:41]Write to MH i2c: D1 01 00 F2 0B 01 CF [21:33:41]Write i2c OK [21:33:41]MH_I2C_Read... [21:33:41]Read from MH i2c: D1 [21:33:41]MH_I2C_Read... [21:33:41]Read from MH i2c: D1 01 00 [21:33:41]MH_I2C_Read... [21:33:41]Read from MH i2c: D1 01 00 F2 0B 00 CE [21:33:41]Write to MH i2c: 01 00 00 F3 0B FE [21:33:41]Write i2c OK [21:33:41]MH_I2C_Read... [21:33:41]OFD Sender: No OFD packet to send [21:33:42]*** Cut start [21:33:42]*** Partial cut [21:33:42]*** CUTSNS_PIN = 1 [21:33:42]*** CUTSNS_PIN = 0 [21:33:42]*** Brake cut motor [21:33:42]Read from MH i2c: 01 [21:33:42]MH_I2C_Read... [21:33:42]*** Stop cut motor [21:33:42]*** Cut end [21:33:42]Read from MH i2c: 01 07 00 [21:33:42]MH_I2C_Read... [21:33:42]Read from MH i2c: 01 07 00 F3 0B 00 00 00 00 00 FF 0F 13 [21:33:42]process_action close_receipt done [21:33:42]requested_data is exist [21:33:42]produce_requested_data [21:33:42]requested_item fm.sn is exist - process it [21:33:42]wFMCommunicate request_size=4 [21:33:42]MH_SAM_APDU [21:33:42]CAPDU: 80 11 00 00 [21:33:42]Write to MH i2c: E2 08 00 F4 0B 80 11 00 00 00 00 00 00 79 [21:33:42]Write i2c OK [21:33:42]MH_I2C_Read... [21:33:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:33:42]Read from MH i2c: E2 [21:33:42]MH_I2C_Read... [21:33:42]Read from MH i2c: E2 17 00 [21:33:42]MH_I2C_Read... [21:33:42]Read from MH i2c: E2 17 00 F4 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 C8 [21:33:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:33:42]wFMCommunicate OK [21:33:42]requested_item fd.num is exist - process it [21:33:42]SAM_PROTO_GetFieldsCounters [21:33:42]wFMCommunicate request_size=4 [21:33:42]MH_SAM_APDU [21:33:42]CAPDU: 80 13 00 00 [21:33:42]Write to MH i2c: E2 08 00 F5 0B 80 13 00 00 00 00 00 00 7C [21:33:42]Write i2c OK [21:33:42]MH_I2C_Read... [21:33:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:33:43]Read from MH i2c: E2 [21:33:43]MH_I2C_Read... [21:33:43]Read from MH i2c: E2 62 00 [21:33:43]MH_I2C_Read... [21:33:43]Read from MH i2c: E2 62 00 F5 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 5A 70 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 62 [21:33:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 5A 70 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 [21:33:43]wFMCommunicate OK [21:33:43]SAM_PROTO_GetFieldsCounters done [21:33:43]requested_item shift.num is exist - process it [21:33:43]requested_item shift.opened is exist - process it [21:33:43]req_shift_opened [21:33:43]FM_GetShiftState [21:33:43]SAM_PROTO_GetShiftState [21:33:43]wFMCommunicate request_size=4 [21:33:43]MH_SAM_APDU [21:33:43]CAPDU: 80 13 01 00 [21:33:43]Write to MH i2c: E2 08 00 F6 0B 80 13 01 00 00 00 00 00 7E [21:33:43]Write i2c OK [21:33:43]MH_I2C_Read... [21:33:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:33:43]Read from MH i2c: E2 [21:33:43]MH_I2C_Read... [21:33:43]Read from MH i2c: E2 0E 00 [21:33:43]MH_I2C_Read... [21:33:43]Read from MH i2c: E2 0E 00 F6 0B 00 09 00 01 17 88 19 66 00 00 00 00 90 00 A8 [21:33:43]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [21:33:43]wFMCommunicate OK [21:33:43]SAM_PROTO_GetShiftState done [21:33:43]FM_GetShiftState done [21:33:43]req_shift_opened done [21:33:43]requested_item shift.open_date is exist - process it [21:33:43]req_shift_open_date [21:33:43]req_shift_open_date done [21:33:43]produce_requested_data done [21:33:43]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28762,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271} [21:33:43]process_action_free close_receipt [21:33:43]json_value_free [21:33:43]json_value_free done [21:33:43]process_json_proto returns [21:33:43]Send response to host [21:33:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28762,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271}}} [21:33:43]free response buf [21:33:43]execute_script done [21:33:43]execute_script returns [21:33:43]free content buf [21:33:43]Sock 7.Close socket [21:33:43]Sock 7.Thread stoped [21:33:46]OFD Sender: No OFD packet to send [21:33:51]OFD Sender: No OFD packet to send [21:33:56]OFD Sender: No OFD packet to send [21:34:01]OFD Sender: No OFD packet to send [21:34:06]OFD Sender: No OFD packet to send [21:34:11]OFD Sender: No OFD packet to send [21:34:16]OFD Sender: No OFD packet to send [21:34:21]OFD Sender: No OFD packet to send [21:34:26]OFD Sender: No OFD packet to send [21:34:31]OFD Sender: No OFD packet to send [21:34:36]OFD Sender: No OFD packet to send [21:34:41]OFD Sender: No OFD packet to send [21:34:46]OFD Sender: No OFD packet to send [21:34:51]OFD Sender: No OFD packet to send [21:34:56]OFD Sender: No OFD packet to send [21:35:01]OFD Sender: No OFD packet to send [21:35:06]OFD Sender: No OFD packet to send [21:35:12]OFD Sender: No OFD packet to send [21:35:17]OFD Sender: No OFD packet to send [21:35:22]OFD Sender: No OFD packet to send [21:35:27]OFD Sender: No OFD packet to send [21:35:32]OFD Sender: No OFD packet to send [21:35:37]OFD Sender: No OFD packet to send [21:35:42]OFD Sender: No OFD packet to send [21:35:47]OFD Sender: No OFD packet to send [21:35:52]OFD Sender: No OFD packet to send [21:35:57]OFD Sender: No OFD packet to send [21:36:02]OFD Sender: No OFD packet to send [21:36:07]OFD Sender: No OFD packet to send [21:36:12]OFD Sender: No OFD packet to send [21:36:17]OFD Sender: No OFD packet to send [21:36:22]OFD Sender: No OFD packet to send [21:36:27]OFD Sender: No OFD packet to send [21:36:32]OFD Sender: No OFD packet to send [21:36:37]OFD Sender: No OFD packet to send [21:36:42]OFD Sender: No OFD packet to send [21:36:47]OFD Sender: No OFD packet to send [21:36:52]OFD Sender: No OFD packet to send [21:36:57]OFD Sender: No OFD packet to send [21:37:02]OFD Sender: No OFD packet to send [21:37:02]accept exits with 9 [21:37:02]New connection [21:37:02]New thread 3066928484 created [21:37:02]Thread 3066785124 joined [21:37:02]Waiting for new connection... [21:37:02] Sock 9.Parse request [21:37:02]Sock 9.Check first char [21:37:02]Sock 9.First char is OK [21:37:02]request: POST /json_proto HTTP/1.0 [21:37:02]Method: POST [21:37:02]URL: /json_proto [21:37:02]Method is POST - this is cgi request [21:37:02]url: /json_proto [21:37:02]query_string will be loaded in cgi processing [21:37:02]execute_cgi json_proto POST (null) [21:37:02]execute_cgi path=json_proto method=POST [21:37:02]POST find Content-Length [21:37:02]Host: 172.17.33.3:8080 [21:37:02]Content-Length: 834 [21:37:02]Content-Type: application/json [21:37:02] [21:37:02]POST finish read [21:37:02]Found Content-Length = 834 [21:37:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347107", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 10.720, "sum" : 700.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 700.02 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:37:02]execute_script... [21:37: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)347107", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 10.720, "sum" : 700.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 700.02 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:37:02]POST & json_proto [21:37:02]process_json_proto [21:37:02]json parsed OK: [21:37:02]protocol is kg_v1.0 [21:37:02]action value=close_receipt [21:37:02]process_action close_receipt [21:37:02]cmd_close_receipt [21:37:02]MH_GetDate [21:37:02]Write to MH i2c: F0 00 00 F7 0B F1 [21:37:02]Write i2c OK [21:37:02]MH_I2C_Read... [21:37:02]Read from MH i2c: F0 [21:37:02]MH_I2C_Read... [21:37:02]Read from MH i2c: F0 09 00 [21:37:02]MH_I2C_Read... [21:37:02]Read from MH i2c: F0 09 00 F7 0B 00 7F A9 19 66 23 5B 8F 65 13 [21:37:02]GetLastDocTimeStamp 1712957620 [21:37:02]current date 1712957823 [21:37:02]FM_GetShiftState [21:37:02]SAM_PROTO_GetShiftState [21:37:02]wFMCommunicate request_size=4 [21:37:02]MH_SAM_APDU [21:37:02]CAPDU: 80 13 01 00 [21:37:02]Write to MH i2c: E2 08 00 F8 0B 80 13 01 00 00 00 00 00 80 [21:37:02]Write i2c OK [21:37:02]MH_I2C_Read... [21:37:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:37:02]Read from MH i2c: E2 [21:37:02]MH_I2C_Read... [21:37:02]Read from MH i2c: E2 0E 00 [21:37:02]MH_I2C_Read... [21:37:02]Read from MH i2c: E2 0E 00 F8 0B 00 09 00 01 17 88 19 66 00 00 00 00 90 00 AA [21:37:02]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [21:37:02]wFMCommunicate OK [21:37:02]SAM_PROTO_GetShiftState done [21:37:02]FM_GetShiftState done [21:37:02]opened in 1712949271 [21:37:02]opened+sec_in_day 1713035671 [21:37:02]quantity*price = 70001 [21:37:02]sum+1 = 70003 [21:37:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.02 НСП 1% : 6.19 НДС 12% : 74.34 Наличными: 0.00 Безнал.: 700.02 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 37 12.04.2024 21:37 Смена: 114 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 28763 ФПД: 139306162696788 1/tax-web-control/client/api/v1/ticket?date=20240412T213704&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28763&fm=139306162696788&tin=02508201610067®Number=0000138879044617&sum=70002 [21:37:03]StoreToDocumentArchive [21:37:03]shift 114 fd 28763 [21:37:03]save to /storage/0114/doc_00028763 [21:37:03]save last doc name /storage/0114/doc_00028763 to /storage/kkm_last_doc_name [21:37:03]save OK [21:37:03]Clear old archive folders... [21:37:03]ProcessDocumentItem done err = 0, tmpTLVsize=252 [21:37:03]tlvbuf is 01221780 [21:37:03]SAM_PROTO_ClearQueue [21:37:03]wFMCommunicate request_size=4 [21:37:03]MH_SAM_APDU [21:37:03]CAPDU: 80 09 00 00 [21:37:03]Write to MH i2c: E2 08 00 05 0C 80 09 00 00 00 00 00 00 83 [21:37:03]Write i2c OK [21:37:03]MH_I2C_Read... [21:37:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:37:03]Read from MH i2c: E2 [21:37:03]MH_I2C_Read... [21:37:03]Read from MH i2c: E2 03 00 [21:37:03]MH_I2C_Read... [21:37:03]Read from MH i2c: E2 03 00 05 0C 00 90 00 85 [21:37:03]RAPDU: 90 00 [21:37:03]wFMCommunicate OK [21:37:03]SAM_PROTO_ClearQueue done [21:37:03]KKMCreateOFDPacket [21:37:03]OFDProtocolAddRootSTLVToBuf [21:37:03]FM_MakeSignedData [21:37:03]FM_MakeSignedData [21:37:03]SAM_PROTO_SignData [21:37:03]wFMCommunicate request_size=4 [21:37:03]MH_SAM_APDU [21:37:03]CAPDU: 80 0D 01 02 [21:37:03]Write to MH i2c: E2 08 00 06 0C 80 0D 01 02 00 00 00 00 8B [21:37:03]Write i2c OK [21:37:03]MH_I2C_Read... [21:37:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:37:03]Read from MH i2c: E2 [21:37:03]MH_I2C_Read... [21:37:03]Read from MH i2c: E2 03 00 [21:37:03]MH_I2C_Read... [21:37:03]Read from MH i2c: E2 03 00 06 0C 00 90 00 86 [21:37:03]RAPDU: 90 00 [21:37:03]wFMCommunicate OK [21:37:03]wFMCommunicate request_size=255 [21:37:03]MH_SAM_APDU [21:37:03]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 29 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 72 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 72 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 72 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 80 A9 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5B 70 00 00 35 04 06 00 [21:37:03]Write to MH i2c: E2 02 01 07 0C 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 29 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 72 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 72 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 72 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 80 A9 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5B 70 00 00 35 04 06 00 00 00 2A [21:37:03]Write i2c OK [21:37:03]MH_I2C_Read... [21:37:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:37:04]Read from MH i2c: E2 [21:37:04]MH_I2C_Read... [21:37:04]Read from MH i2c: E2 03 00 [21:37:04]MH_I2C_Read... [21:37:04]Read from MH i2c: E2 03 00 07 0C 00 90 00 87 [21:37:04]RAPDU: 90 00 [21:37:04]wFMCommunicate OK [21:37:04]wFMCommunicate request_size=11 [21:37:04]MH_SAM_APDU [21:37:04]CAPDU: 80 0D 02 02 06 7E B2 BE 57 B2 54 [21:37:04]Write to MH i2c: E2 0E 00 08 0C 80 0D 02 02 06 00 7E B2 BE 57 B2 54 00 00 E5 [21:37:04]Write i2c OK [21:37:04]MH_I2C_Read... [21:37:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:37:04]Read from MH i2c: E2 [21:37:04]MH_I2C_Read... [21:37:04]Read from MH i2c: E2 03 00 [21:37:04]MH_I2C_Read... [21:37:04]Read from MH i2c: E2 03 00 08 0C 00 90 00 88 [21:37:04]RAPDU: 90 00 [21:37:04]wFMCommunicate OK [21:37:04]wFMCommunicate request_size=4 [21:37:04]MH_SAM_APDU [21:37:04]CAPDU: 80 0D 03 02 [21:37:04]Write to MH i2c: E2 08 00 09 0C 80 0D 03 02 00 00 00 00 90 [21:37:04]Write i2c OK [21:37:04]MH_I2C_Read... [21:37:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:37:04]Read from MH i2c: E2 [21:37:04]MH_I2C_Read... [21:37:04]Read from MH i2c: E2 0B 00 [21:37:04]MH_I2C_Read... [21:37:04]Read from MH i2c: E2 0B 00 09 0C 00 05 5B 47 2E 74 52 F1 3D 90 00 5A [21:37:04]RAPDU: 05 5B 47 2E 74 52 F1 3D 90 00 [21:37:04]wFMCommunicate OK [21:37:04]SAM_PROTO_SignData done [21:37:04]FM_MakeSignedData done [21:37:04]CreateOFDProtocolMessage [21:37:04]wFMCommunicate request_size=4 [21:37:04]MH_SAM_APDU [21:37:04]CAPDU: 80 11 00 00 [21:37:04]Write to MH i2c: E2 08 00 0A 0C 80 11 00 00 00 00 00 00 90 [21:37:04]Write i2c OK [21:37:04]MH_I2C_Read... [21:37:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:37:04]Read from MH i2c: E2 [21:37:04]MH_I2C_Read... [21:37:04]Read from MH i2c: E2 17 00 [21:37:04]MH_I2C_Read... [21:37:04]Read from MH i2c: E2 17 00 0A 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 DF [21:37:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:37:04]wFMCommunicate OK [21:37:04]CreateOFDProtocolMessage done [21:37:04]OFDSenderStorePacket 28763 [21:37:04]StoreOFDPacket docnum=28763 [21:37:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 47 29 08 01 95 6B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 29 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 72 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 72 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 72 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 80 A9 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5B 70 00 00 35 04 06 00 7E B2 BE 57 B2 54 05 5B 47 2E 74 52 F1 3D [21:37:04]CheckFolder [21:37:04]dirname=/storage/ofd_packets [21:37:04]CheckFolder done [21:37:04]ProducePacketName [21:37:04]name=ofd_packets/00028763 [21:37:04]NVStorageSaveData ofd_packets/00028763 [21:37:04]File name is /storage/ofd_packets/00028763 [21:37:04]Write 302 bytes [21:37:04]NVStorageSaveData done [21:37:04]OFDSenderStorePacket done [21:37:04]KKMCreateOFDPacket done [21:37:04]NVStorageSaveData kkm_last_timestamp [21:37:04]File name is /storage/kkm_last_timestamp [21:37:04]Write 4 bytes [21:37:04]NVStorageSaveData done [21:37:04]ExternCall_PrintAddStr [21:37:04]wPrintStart [21:37:04]Write to MH i2c: 01 00 00 0B 0C 17 [21:37:04]Write i2c OK [21:37:04]MH_I2C_Read... [21:37:04]Read from MH i2c: 01 [21:37:04]MH_I2C_Read... [21:37:04]Read from MH i2c: 01 07 00 [21:37:04]MH_I2C_Read... [21:37:04]Read from MH i2c: 01 07 00 0B 0C 00 00 00 00 00 FF 0F 2C [21:37:04]RasterBufferAndPrint [21:37:04]line Счет N : (1)347107 [21:37:04]line ИНН: 02508201610067 [21:37:04]line Контрольно-Кассовый Чек [21:37:04]line ПРОДАЖА [21:37:04]line ТРК (МРК, ГНК) : 22 [21:37:04]line Товар: 2710124130 [21:37:04]line SUPER-92-К-5 [21:37:04]line 10.720 * 65.30 [21:37:04]line = 700.02 [21:37:04]line НДС 12% НСП 1% [21:37:04]line > о реализуемом товаре [21:37:04]line ИТОГО: 700.02 [21:37:04]line НСП 1% : 6.19 [21:37:04]line НДС 12% : 74.34 [21:37:04]line Наличными: 0.00 [21:37:04]line Безнал.: 700.02 [21:37:04]line Место: АЗС № 108 "Партнер Нефть" [21:37:04]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [21:37:04]line СНО: Общий режим [21:37:04]line Чек 37 12.04.2024 21:37 [21:37:04]line Смена: 114 ФФД: 1.0 [21:37:04]line ЗНМ: 0300000027 [21:37:04]line РНМ: 0000138879044617 [21:37:04]line Версия ККМ: 001 [21:37:04]line Платежная система: АКБ Кыргызстан [21:37:04]line ФМ: 0000000000963154 [21:37:04]line ФД: 28763 [21:37:04]line ФПД: 139306162696788 [21:37:04]line 1/tax-web-control/client/api/v1/ticket?date=20240412T213704&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28763&fm=139306162696788&tin=02508201610067®Number=0000138879044617&sum=70002 [21:37:04]OFD Sender: Processing packet 28763 [packets to send 8, broken 7] [21:37:04]ProducePacketName [21:37:04]name=ofd_packets/00028763 [21:37:04]OFD Sender: To server: pG, [21:37:04]CommunicateWithHost lk.salyk.kg:30040 [21:37:04]ConnectInit lk.salyk.kg [21:37:04]written 0, free lines is 4095 [21:37:04]Connected sock=10 [21:37:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 47 29 08 01 95 6B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 29 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 72 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 72 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 72 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 80 A9 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5B 70 00 00 35 04 06 00 7E B2 BE 57 B2 54 05 5B 47 2E 74 52 F1 3D [21:37:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 30 BB 47 00 8D 63 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5B 70 00 00 F4 03 04 00 29 54 19 66 B6 04 01 00 00 2B 42 12 7A 2A 59 2C C3 [21:37:05]CommunicateWithHost err = 0 [21:37:05]CheckOFDResponse [21:37:05]1017 (14) - 77093643461234 [21:37:05]1041 (16) - 0000000000963154 [21:37:05]1040 (4) - 28763 [21:37:05]1012 (4) - 12.04.2024 15:32 [21:37:05]1206 (1) - 0 [21:37:05]OFD Sender: Remove packet 28763 [21:37:05]ProducePacketName [21:37:05]name=ofd_packets/00028763 [21:37:05]NVStorageDeleteData [21:37:05]Write to MH i2c: 01 00 00 34 0C 40 [21:37:05]Write i2c OK [21:37:05]MH_I2C_Read... [21:37:05]Read from MH i2c: 01 [21:37:05]MH_I2C_Read... [21:37:05]Read from MH i2c: 01 07 00 [21:37:05]MH_I2C_Read... [21:37:05]Read from MH i2c: 01 07 00 34 0C 00 00 00 00 00 E8 0C 3B [21:37:05]RasterBufferAndPrint [21:37:05]line [21:37:05]line [21:37:05]line [21:37:05]line [21:37:05]line [21:37:05]written 0, free lines is 3310 [21:37:05]MH_Cut [21:37:05]Write to MH i2c: D1 01 00 3B 0C 01 19 [21:37:05]Write i2c OK [21:37:05]MH_I2C_Read... [21:37:05]Read from MH i2c: D1 [21:37:05]MH_I2C_Read... [21:37:05]Read from MH i2c: D1 01 00 [21:37:05]MH_I2C_Read... [21:37:05]Read from MH i2c: D1 01 00 3B 0C 00 18 [21:37:05]Write to MH i2c: 01 00 00 3C 0C 48 [21:37:05]Write i2c OK [21:37:05]MH_I2C_Read... [21:37:05]OFD Sender: No OFD packet to send [21:37:05]*** Cut start [21:37:05]*** Partial cut [21:37:05]*** CUTSNS_PIN = 1 [21:37:06]*** CUTSNS_PIN = 0 [21:37:06]*** Brake cut motor [21:37:06]Read from MH i2c: 01 [21:37:06]MH_I2C_Read... [21:37:06]*** Stop cut motor [21:37:06]*** Cut end [21:37:06]Read from MH i2c: 01 07 00 [21:37:06]MH_I2C_Read... [21:37:06]Read from MH i2c: 01 07 00 3C 0C 00 00 00 00 00 FF 0F 5D [21:37:06]process_action close_receipt done [21:37:06]requested_data is exist [21:37:06]produce_requested_data [21:37:06]requested_item fm.sn is exist - process it [21:37:06]wFMCommunicate request_size=4 [21:37:06]MH_SAM_APDU [21:37:06]CAPDU: 80 11 00 00 [21:37:06]Write to MH i2c: E2 08 00 3D 0C 80 11 00 00 00 00 00 00 C3 [21:37:06]Write i2c OK [21:37:06]MH_I2C_Read... [21:37:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:37:06]Read from MH i2c: E2 [21:37:06]MH_I2C_Read... [21:37:06]Read from MH i2c: E2 17 00 [21:37:06]MH_I2C_Read... [21:37:06]Read from MH i2c: E2 17 00 3D 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 12 [21:37:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:37:06]wFMCommunicate OK [21:37:06]requested_item fd.num is exist - process it [21:37:06]SAM_PROTO_GetFieldsCounters [21:37:06]wFMCommunicate request_size=4 [21:37:06]MH_SAM_APDU [21:37:06]CAPDU: 80 13 00 00 [21:37:06]Write to MH i2c: E2 08 00 3E 0C 80 13 00 00 00 00 00 00 C6 [21:37:06]Write i2c OK [21:37:06]MH_I2C_Read... [21:37:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:37:06]Read from MH i2c: E2 [21:37:06]MH_I2C_Read... [21:37:06]Read from MH i2c: E2 62 00 [21:37:06]MH_I2C_Read... [21:37:06]Read from MH i2c: E2 62 00 3E 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 5B 70 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 B0 [21:37:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 5B 70 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 [21:37:06]wFMCommunicate OK [21:37:06]SAM_PROTO_GetFieldsCounters done [21:37:06]requested_item shift.num is exist - process it [21:37:06]requested_item shift.opened is exist - process it [21:37:06]req_shift_opened [21:37:06]FM_GetShiftState [21:37:06]SAM_PROTO_GetShiftState [21:37:06]wFMCommunicate request_size=4 [21:37:06]MH_SAM_APDU [21:37:06]CAPDU: 80 13 01 00 [21:37:06]Write to MH i2c: E2 08 00 3F 0C 80 13 01 00 00 00 00 00 C8 [21:37:06]Write i2c OK [21:37:06]MH_I2C_Read... [21:37:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:37:06]Read from MH i2c: E2 [21:37:06]MH_I2C_Read... [21:37:06]Read from MH i2c: E2 0E 00 [21:37:06]MH_I2C_Read... [21:37:06]Read from MH i2c: E2 0E 00 3F 0C 00 09 00 01 17 88 19 66 00 00 00 00 90 00 F2 [21:37:06]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [21:37:06]wFMCommunicate OK [21:37:06]SAM_PROTO_GetShiftState done [21:37:06]FM_GetShiftState done [21:37:06]req_shift_opened done [21:37:06]requested_item shift.open_date is exist - process it [21:37:06]req_shift_open_date [21:37:06]req_shift_open_date done [21:37:06]produce_requested_data done [21:37:06]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28763,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271} [21:37:06]process_action_free close_receipt [21:37:06]json_value_free [21:37:06]json_value_free done [21:37:06]process_json_proto returns [21:37:06]Send response to host [21:37:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28763,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271}}} [21:37:06]free response buf [21:37:06]execute_script done [21:37:06]execute_script returns [21:37:06]free content buf [21:37:06]Sock 9.Close socket [21:37:06]Sock 9.Thread stoped [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:48]accept exits with 7 [21:39:48]New connection [21:39:48]New thread 3066785124 created [21:39:48]Thread 3066928484 joined [21:39:48]Waiting for new connection... [21:39:48] Sock 7.Parse request [21:39:48]Sock 7.Check first char [21:39:48]Sock 7.First char is OK [21:39:48]request: POST /json_proto HTTP/1.0 [21:39:48]Method: POST [21:39:48]URL: /json_proto [21:39:48]Method is POST - this is cgi request [21:39:48]url: /json_proto [21:39:48]query_string will be loaded in cgi processing [21:39:48]execute_cgi json_proto POST (null) [21:39:48]execute_cgi path=json_proto method=POST [21:39:48]POST find Content-Length [21:39:48]Host: 172.17.33.3:8080 [21:39:48]Content-Length: 682 [21:39:48]Content-Type: application/json [21:39:48] [21:39:48]POST finish read [21:39:48]Found Content-Length = 682 [21:39:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347109", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 15.560, "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" ] } } [21:39:48]execute_script... [21:39: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)347109", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 15.560, "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" ] } } [21:39:48]POST & json_proto [21:39:48]process_json_proto [21:39:48]json parsed OK: [21:39:48]protocol is kg_v1.0 [21:39:48]action value=close_receipt [21:39:48]process_action close_receipt [21:39:48]cmd_close_receipt [21:39:48]MH_GetDate [21:39:48]Write to MH i2c: F0 00 00 40 0C 3B [21:39:48]Write i2c OK [21:39:48]MH_I2C_Read... [21:39:48]Read from MH i2c: F0 [21:39:48]MH_I2C_Read... [21:39:48]Read from MH i2c: F0 09 00 [21:39:48]MH_I2C_Read... [21:39:48]Read from MH i2c: F0 09 00 40 0C 00 26 AA 19 66 23 5B 8F 65 05 [21:39:48]GetLastDocTimeStamp 1712957824 [21:39:48]current date 1712957990 [21:39:48]FM_GetShiftState [21:39:48]SAM_PROTO_GetShiftState [21:39:48]wFMCommunicate request_size=4 [21:39:48]MH_SAM_APDU [21:39:48]CAPDU: 80 13 01 00 [21:39:48]Write to MH i2c: E2 08 00 41 0C 80 13 01 00 00 00 00 00 CA [21:39:48]Write i2c OK [21:39:48]MH_I2C_Read... [21:39:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:39:48]Read from MH i2c: E2 [21:39:48]MH_I2C_Read... [21:39:48]Read from MH i2c: E2 0E 00 [21:39:48]MH_I2C_Read... [21:39:48]Read from MH i2c: E2 0E 00 41 0C 00 09 00 01 17 88 19 66 00 00 00 00 90 00 F4 [21:39:48]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [21:39:48]wFMCommunicate OK [21:39:48]SAM_PROTO_GetShiftState done [21:39:48]FM_GetShiftState done [21:39:48]opened in 1712949271 [21:39:48]opened+sec_in_day 1713035671 [21:39:48]quantity*price = 100050 [21:39:48]sum+1 = 100052 [21:39: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 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 38 12.04.2024 21:39 Смена: 114 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28764 ФПД: 72661559038605 1/tax-web-control/client/api/v1/ticket?date=20240412T213950&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28764&fm=72661559038605&tin=02508201610067®Number=0000138879044617&sum=100000 [21:39:49]StoreToDocumentArchive [21:39:49]shift 114 fd 28764 [21:39:49]save to /storage/0114/doc_00028764 [21:39:49]save last doc name /storage/0114/doc_00028764 to /storage/kkm_last_doc_name [21:39:49]save OK [21:39:49]Clear old archive folders... [21:39:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:39:49]tlvbuf is 011BB1F0 [21:39:49]SAM_PROTO_ClearQueue [21:39:49]wFMCommunicate request_size=4 [21:39:49]MH_SAM_APDU [21:39:49]CAPDU: 80 09 00 00 [21:39:49]Write to MH i2c: E2 08 00 4E 0C 80 09 00 00 00 00 00 00 CC [21:39:49]Write i2c OK [21:39:49]MH_I2C_Read... [21:39:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:39:49]Read from MH i2c: E2 [21:39:49]MH_I2C_Read... [21:39:49]Read from MH i2c: E2 03 00 [21:39:49]MH_I2C_Read... [21:39:49]Read from MH i2c: E2 03 00 4E 0C 00 90 00 CE [21:39:49]RAPDU: 90 00 [21:39:49]wFMCommunicate OK [21:39:49]SAM_PROTO_ClearQueue done [21:39:49]KKMCreateOFDPacket [21:39:49]OFDProtocolAddRootSTLVToBuf [21:39:49]FM_MakeSignedData [21:39:49]FM_MakeSignedData [21:39:49]SAM_PROTO_SignData [21:39:49]wFMCommunicate request_size=4 [21:39:49]MH_SAM_APDU [21:39:49]CAPDU: 80 0D 01 02 [21:39:49]Write to MH i2c: E2 08 00 4F 0C 80 0D 01 02 00 00 00 00 D4 [21:39:49]Write i2c OK [21:39:49]MH_I2C_Read... [21:39:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:39:50]Read from MH i2c: E2 [21:39:50]MH_I2C_Read... [21:39:50]Read from MH i2c: E2 03 00 [21:39:50]MH_I2C_Read... [21:39:50]Read from MH i2c: E2 03 00 4F 0C 00 90 00 CF [21:39:50]RAPDU: 90 00 [21:39:50]wFMCommunicate OK [21:39:50]wFMCommunicate request_size=255 [21:39:50]MH_SAM_APDU [21:39:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 26 00 00 00 F4 03 04 00 26 AA 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5C 70 00 00 35 04 06 00 42 [21:39:50]Write to MH i2c: E2 02 01 50 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 26 00 00 00 F4 03 04 00 26 AA 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5C 70 00 00 35 04 06 00 42 00 00 F5 [21:39:50]Write i2c OK [21:39:50]MH_I2C_Read... [21:39:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:39:50]Read from MH i2c: E2 [21:39:50]MH_I2C_Read... [21:39:50]Read from MH i2c: E2 03 00 [21:39:50]MH_I2C_Read... [21:39:50]Read from MH i2c: E2 03 00 50 0C 00 90 00 D0 [21:39:50]RAPDU: 90 00 [21:39:50]wFMCommunicate OK [21:39:50]wFMCommunicate request_size=10 [21:39:50]MH_SAM_APDU [21:39:50]CAPDU: 80 0D 02 02 05 15 D6 6A 52 8D [21:39:50]Write to MH i2c: E2 0D 00 51 0C 80 0D 02 02 05 00 15 D6 6A 52 8D 00 00 15 [21:39:50]Write i2c OK [21:39:50]MH_I2C_Read... [21:39:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:39:50]Read from MH i2c: E2 [21:39:50]MH_I2C_Read... [21:39:50]Read from MH i2c: E2 03 00 [21:39:50]MH_I2C_Read... [21:39:50]Read from MH i2c: E2 03 00 51 0C 00 90 00 D1 [21:39:50]RAPDU: 90 00 [21:39:50]wFMCommunicate OK [21:39:50]wFMCommunicate request_size=4 [21:39:50]MH_SAM_APDU [21:39:50]CAPDU: 80 0D 03 02 [21:39:50]Write to MH i2c: E2 08 00 52 0C 80 0D 03 02 00 00 00 00 D9 [21:39:50]Write i2c OK [21:39:50]MH_I2C_Read... [21:39:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:39:50]Read from MH i2c: E2 [21:39:50]MH_I2C_Read... [21:39:50]Read from MH i2c: E2 0B 00 [21:39:50]MH_I2C_Read... [21:39:50]Read from MH i2c: E2 0B 00 52 0C 00 F7 71 D4 59 5D 69 93 F3 90 00 BB [21:39:50]RAPDU: F7 71 D4 59 5D 69 93 F3 90 00 [21:39:50]wFMCommunicate OK [21:39:50]SAM_PROTO_SignData done [21:39:50]FM_MakeSignedData done [21:39:50]CreateOFDProtocolMessage [21:39:50]wFMCommunicate request_size=4 [21:39:50]MH_SAM_APDU [21:39:50]CAPDU: 80 11 00 00 [21:39:50]Write to MH i2c: E2 08 00 53 0C 80 11 00 00 00 00 00 00 D9 [21:39:50]Write i2c OK [21:39:50]MH_I2C_Read... [21:39:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:39:50]Read from MH i2c: E2 [21:39:50]MH_I2C_Read... [21:39:50]Read from MH i2c: E2 17 00 [21:39:50]MH_I2C_Read... [21:39:50]Read from MH i2c: E2 17 00 53 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 28 [21:39:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:39:50]wFMCommunicate OK [21:39:50]CreateOFDProtocolMessage done [21:39:50]OFDSenderStorePacket 28764 [21:39:50]StoreOFDPacket docnum=28764 [21:39:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 F4 97 07 01 A9 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 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 26 00 00 00 F4 03 04 00 26 AA 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5C 70 00 00 35 04 06 00 42 15 D6 6A 52 8D F7 71 D4 59 5D 69 93 F3 [21:39:50]CheckFolder [21:39:50]dirname=/storage/ofd_packets [21:39:50]CheckFolder done [21:39:50]ProducePacketName [21:39:50]name=ofd_packets/00028764 [21:39:50]NVStorageSaveData ofd_packets/00028764 [21:39:50]File name is /storage/ofd_packets/00028764 [21:39:50]Write 301 bytes [21:39:50]NVStorageSaveData done [21:39:50]OFDSenderStorePacket done [21:39:50]KKMCreateOFDPacket done [21:39:50]NVStorageSaveData kkm_last_timestamp [21:39:50]File name is /storage/kkm_last_timestamp [21:39:50]Write 4 bytes [21:39:50]NVStorageSaveData done [21:39:50]ExternCall_PrintAddStr [21:39:50]wPrintStart [21:39:50]Write to MH i2c: 01 00 00 54 0C 60 [21:39:50]Write i2c OK [21:39:50]MH_I2C_Read... [21:39:50]Read from MH i2c: 01 [21:39:50]MH_I2C_Read... [21:39:50]Read from MH i2c: 01 07 00 [21:39:50]MH_I2C_Read... [21:39:50]Read from MH i2c: 01 07 00 54 0C 00 00 00 00 00 FF 0F 75 [21:39:50]RasterBufferAndPrint [21:39:50]line Счет N : (1)347109 [21:39:50]line ИНН: 02508201610067 [21:39:50]line Контрольно-Кассовый Чек [21:39:50]line ПРОДАЖА [21:39:50]line ТРК (МРК, ГНК) : 32 [21:39:50]line Товар: 2710124130 [21:39:50]line Аи-92-К-5 [21:39:50]line 15.560 * 64.30 [21:39:50]line = 1000.51 [21:39:50]line НДС 12% НСП 1% [21:39:50]line > о реализуемом товаре [21:39:50]line ОКРУГЛЕНИЕ: -0.51 [21:39:50]line ИТОГО: 1000.00 [21:39:50]line Внесено: 1000.00 [21:39:50]line СДАЧА: 0.00 [21:39:50]line НСП 1% : 8.85 [21:39:50]line НДС 12% : 106.25 [21:39:50]line Наличными: 1000.00 [21:39:50]line Безнал.: 0.00 [21:39:50]line Место: АЗС № 108 "Партнер Нефть" [21:39:50]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [21:39:50]line СНО: Общий режим [21:39:50]line Чек 38 12.04.2024 21:39 [21:39:50]line Смена: 114 ФФД: 1.0 [21:39:50]line ЗНМ: 0300000027 [21:39:50]line РНМ: 0000138879044617 [21:39:50]line Версия ККМ: 001 [21:39:50]line ФМ: 0000000000963154 [21:39:50]line ФД: 28764 [21:39:50]line ФПД: 72661559038605 [21:39:50]line 1/tax-web-control/client/api/v1/ticket?date=20240412T213950&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28764&fm=72661559038605&tin=02508201610067®Number=0000138879044617&sum=100000 [21:39:50]OFD Sender: Processing packet 28764 [packets to send 8, broken 7] [21:39:50]ProducePacketName [21:39:50]name=ofd_packets/00028764 [21:39:50]OFD Sender: To server: pG, [21:39:50]CommunicateWithHost lk.salyk.kg:30040 [21:39:50]ConnectInit lk.salyk.kg [21:39:50]written 0, free lines is 4095 [21:39:50]Connected sock=10 [21:39:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 F4 97 07 01 A9 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 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 26 00 00 00 F4 03 04 00 26 AA 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5C 70 00 00 35 04 06 00 42 15 D6 6A 52 8D F7 71 D4 59 5D 69 93 F3 [21:39:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 15 85 47 00 18 80 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5C 70 00 00 F4 03 04 00 CF 54 19 66 B6 04 01 00 00 57 61 2B B5 2D D5 92 01 [21:39:51]CommunicateWithHost err = 0 [21:39:51]CheckOFDResponse [21:39:51]1017 (14) - 77093643461234 [21:39:51]1041 (16) - 0000000000963154 [21:39:51]1040 (4) - 28764 [21:39:51]1012 (4) - 12.04.2024 15:35 [21:39:51]1206 (1) - 0 [21:39:51]OFD Sender: Remove packet 28764 [21:39:51]ProducePacketName [21:39:51]name=ofd_packets/00028764 [21:39:51]NVStorageDeleteData [21:39:51]Write to MH i2c: 01 00 00 7E 0C 8A [21:39:51]Write i2c OK [21:39:51]MH_I2C_Read... [21:39:51]Read from MH i2c: 01 [21:39:51]MH_I2C_Read... [21:39:51]Read from MH i2c: 01 07 00 [21:39:51]MH_I2C_Read... [21:39:51]Read from MH i2c: 01 07 00 7E 0C 00 00 00 00 00 CF 0C 6C [21:39:51]RasterBufferAndPrint [21:39:51]line [21:39:51]line [21:39:51]line [21:39:51]line [21:39:51]line [21:39:51]written 0, free lines is 3285 [21:39:51]MH_Cut [21:39:51]Write to MH i2c: D1 01 00 85 0C 01 63 [21:39:51]Write i2c OK [21:39:51]MH_I2C_Read... [21:39:51]Read from MH i2c: D1 [21:39:51]MH_I2C_Read... [21:39:51]Read from MH i2c: D1 01 00 [21:39:51]MH_I2C_Read... [21:39:51]Read from MH i2c: D1 01 00 85 0C 00 62 [21:39:51]Write to MH i2c: 01 00 00 86 0C 92 [21:39:51]Write i2c OK [21:39:51]MH_I2C_Read... [21:39:51]OFD Sender: No OFD packet to send [21:39:52]*** Cut start [21:39:52]*** Partial cut [21:39:52]*** CUTSNS_PIN = 1 [21:39:52]*** CUTSNS_PIN = 0 [21:39:52]*** Brake cut motor [21:39:52]Read from MH i2c: 01 [21:39:52]MH_I2C_Read... [21:39:52]*** Stop cut motor [21:39:52]*** Cut end [21:39:52]Read from MH i2c: 01 07 00 [21:39:52]MH_I2C_Read... [21:39:52]Read from MH i2c: 01 07 00 86 0C 00 00 00 00 00 FF 0F A7 [21:39:52]process_action close_receipt done [21:39:52]requested_data is exist [21:39:52]produce_requested_data [21:39:52]requested_item fm.sn is exist - process it [21:39:52]wFMCommunicate request_size=4 [21:39:52]MH_SAM_APDU [21:39:52]CAPDU: 80 11 00 00 [21:39:52]Write to MH i2c: E2 08 00 87 0C 80 11 00 00 00 00 00 00 0D [21:39:52]Write i2c OK [21:39:52]MH_I2C_Read... [21:39:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:39:52]Read from MH i2c: E2 [21:39:52]MH_I2C_Read... [21:39:52]Read from MH i2c: E2 17 00 [21:39:52]MH_I2C_Read... [21:39:52]Read from MH i2c: E2 17 00 87 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 5C [21:39:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:39:52]wFMCommunicate OK [21:39:52]requested_item fd.num is exist - process it [21:39:52]SAM_PROTO_GetFieldsCounters [21:39:52]wFMCommunicate request_size=4 [21:39:52]MH_SAM_APDU [21:39:52]CAPDU: 80 13 00 00 [21:39:52]Write to MH i2c: E2 08 00 88 0C 80 13 00 00 00 00 00 00 10 [21:39:52]Write i2c OK [21:39:52]MH_I2C_Read... [21:39:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:39:52]Read from MH i2c: E2 [21:39:52]MH_I2C_Read... [21:39:52]Read from MH i2c: E2 62 00 [21:39:52]MH_I2C_Read... [21:39:52]Read from MH i2c: E2 62 00 88 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 5C 70 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 FE [21:39:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 5C 70 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 [21:39:52]wFMCommunicate OK [21:39:52]SAM_PROTO_GetFieldsCounters done [21:39:52]requested_item shift.num is exist - process it [21:39:52]requested_item shift.opened is exist - process it [21:39:52]req_shift_opened [21:39:52]FM_GetShiftState [21:39:52]SAM_PROTO_GetShiftState [21:39:52]wFMCommunicate request_size=4 [21:39:52]MH_SAM_APDU [21:39:52]CAPDU: 80 13 01 00 [21:39:52]Write to MH i2c: E2 08 00 89 0C 80 13 01 00 00 00 00 00 12 [21:39:52]Write i2c OK [21:39:52]MH_I2C_Read... [21:39:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:39:52]Read from MH i2c: E2 [21:39:52]MH_I2C_Read... [21:39:52]Read from MH i2c: E2 0E 00 [21:39:52]MH_I2C_Read... [21:39:52]Read from MH i2c: E2 0E 00 89 0C 00 09 00 01 17 88 19 66 00 00 00 00 90 00 3C [21:39:52]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [21:39:52]wFMCommunicate OK [21:39:52]SAM_PROTO_GetShiftState done [21:39:52]FM_GetShiftState done [21:39:52]req_shift_opened done [21:39:52]requested_item shift.open_date is exist - process it [21:39:52]req_shift_open_date [21:39:52]req_shift_open_date done [21:39:52]produce_requested_data done [21:39:52]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28764,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271} [21:39:52]process_action_free close_receipt [21:39:52]json_value_free [21:39:52]json_value_free done [21:39:52]process_json_proto returns [21:39:52]Send response to host [21:39:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28764,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271}}} [21:39:52]free response buf [21:39:52]execute_script done [21:39:52]execute_script returns [21:39:52]free content buf [21:39:52]Sock 7.Close socket [21:39:52]Sock 7.Thread stoped [21:39:56]OFD Sender: No OFD packet to send [21:40:01]OFD Sender: No OFD packet to send [21:40:06]OFD Sender: No OFD packet to send [21:40:11]OFD Sender: No OFD packet to send [21:40:12]accept exits with 9 [21:40:12]New connection [21:40:12]New thread 3066928484 created [21:40:12]Thread 3066785124 joined [21:40:12]Waiting for new connection... [21:40:12] Sock 9.Parse request [21:40:12]Sock 9.Check first char [21:40:12]Sock 9.First char is OK [21:40:12]request: POST /json_proto HTTP/1.0 [21:40:12]Method: POST [21:40:12]URL: /json_proto [21:40:12]Method is POST - this is cgi request [21:40:12]url: /json_proto [21:40:12]query_string will be loaded in cgi processing [21:40:12]execute_cgi json_proto POST (null) [21:40:12]execute_cgi path=json_proto method=POST [21:40:12]POST find Content-Length [21:40:12]Host: 172.17.33.3:8080 [21:40:12]Content-Length: 677 [21:40:12]Content-Type: application/json [21:40:12] [21:40:12]POST finish read [21:40:12]Found Content-Length = 677 [21:40:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347108", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 6.230, "sum" : 400.59, "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" ] } } [21:40:12]execute_script... [21: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)347108", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 6.230, "sum" : 400.59, "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" ] } } [21:40:12]POST & json_proto [21:40:12]process_json_proto [21:40:12]json parsed OK: [21:40:12]protocol is kg_v1.0 [21:40:12]action value=close_receipt [21:40:12]process_action close_receipt [21:40:12]cmd_close_receipt [21:40:12]MH_GetDate [21:40:12]Write to MH i2c: F0 00 00 8A 0C 85 [21:40:12]Write i2c OK [21:40:12]MH_I2C_Read... [21:40:12]Read from MH i2c: F0 [21:40:12]MH_I2C_Read... [21:40:12]Read from MH i2c: F0 09 00 [21:40:12]MH_I2C_Read... [21:40:12]Read from MH i2c: F0 09 00 8A 0C 00 3D AA 19 66 23 5B 8F 65 66 [21:40:12]GetLastDocTimeStamp 1712957990 [21:40:12]current date 1712958013 [21:40:12]FM_GetShiftState [21:40:12]SAM_PROTO_GetShiftState [21:40:12]wFMCommunicate request_size=4 [21:40:12]MH_SAM_APDU [21:40:12]CAPDU: 80 13 01 00 [21:40:12]Write to MH i2c: E2 08 00 8B 0C 80 13 01 00 00 00 00 00 14 [21:40:12]Write i2c OK [21:40:12]MH_I2C_Read... [21:40:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:40:12]Read from MH i2c: E2 [21:40:12]MH_I2C_Read... [21:40:12]Read from MH i2c: E2 0E 00 [21:40:12]MH_I2C_Read... [21:40:12]Read from MH i2c: E2 0E 00 8B 0C 00 09 00 01 17 88 19 66 00 00 00 00 90 00 3E [21:40:12]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [21:40:12]wFMCommunicate OK [21:40:12]SAM_PROTO_GetShiftState done [21:40:12]FM_GetShiftState done [21:40:12]opened in 1712949271 [21:40:12]opened+sec_in_day 1713035671 [21:40:12]quantity*price = 40058 [21:40:12]sum+1 = 40060 [21:40:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.54 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 39 12.04.2024 21:40 Смена: 114 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28765 ФПД: 93228942811374 1/tax-web-control/client/api/v1/ticket?date=20240412T214013&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28765&fm=93228942811374&tin=02508201610067®Number=0000138879044617&sum=40000 [21:40:13]StoreToDocumentArchive [21:40:13]shift 114 fd 28765 [21:40:13]save to /storage/0114/doc_00028765 [21:40:13]save last doc name /storage/0114/doc_00028765 to /storage/kkm_last_doc_name [21:40:13]save OK [21:40:13]Clear old archive folders... [21:40:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:40:13]tlvbuf is 011BCFD0 [21:40:13]SAM_PROTO_ClearQueue [21:40:13]wFMCommunicate request_size=4 [21:40:13]MH_SAM_APDU [21:40:13]CAPDU: 80 09 00 00 [21:40:13]Write to MH i2c: E2 08 00 98 0C 80 09 00 00 00 00 00 00 16 [21:40:13]Write i2c OK [21:40:13]MH_I2C_Read... [21:40:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:40:13]Read from MH i2c: E2 [21:40:13]MH_I2C_Read... [21:40:13]Read from MH i2c: E2 03 00 [21:40:13]MH_I2C_Read... [21:40:13]Read from MH i2c: E2 03 00 98 0C 00 90 00 18 [21:40:13]RAPDU: 90 00 [21:40:13]wFMCommunicate OK [21:40:13]SAM_PROTO_ClearQueue done [21:40:13]KKMCreateOFDPacket [21:40:13]OFDProtocolAddRootSTLVToBuf [21:40:13]FM_MakeSignedData [21:40:13]FM_MakeSignedData [21:40:13]SAM_PROTO_SignData [21:40:13]wFMCommunicate request_size=4 [21:40:13]MH_SAM_APDU [21:40:13]CAPDU: 80 0D 01 02 [21:40:13]Write to MH i2c: E2 08 00 99 0C 80 0D 01 02 00 00 00 00 1E [21:40:13]Write i2c OK [21:40:13]MH_I2C_Read... [21:40:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:40:13]Read from MH i2c: E2 [21:40:13]MH_I2C_Read... [21:40:13]Read from MH i2c: E2 03 00 [21:40:13]MH_I2C_Read... [21:40:13]Read from MH i2c: E2 03 00 99 0C 00 90 00 19 [21:40:13]RAPDU: 90 00 [21:40:13]wFMCommunicate OK [21:40:13]wFMCommunicate request_size=255 [21:40:13]MH_SAM_APDU [21:40:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 56 18 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 7B 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 9E 10 00 00 00 00 07 04 06 00 40 9C 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 3D AA 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5D 70 00 00 35 04 06 00 54 [21:40:13]Write to MH i2c: E2 02 01 9A 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 56 18 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 7B 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 9E 10 00 00 00 00 07 04 06 00 40 9C 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 3D AA 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5D 70 00 00 35 04 06 00 54 00 00 EA [21:40:13]Write i2c OK [21:40:13]MH_I2C_Read... [21:40:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:40:13]Read from MH i2c: E2 [21:40:13]MH_I2C_Read... [21:40:13]Read from MH i2c: E2 03 00 [21:40:13]MH_I2C_Read... [21:40:13]Read from MH i2c: E2 03 00 9A 0C 00 90 00 1A [21:40:13]RAPDU: 90 00 [21:40:13]wFMCommunicate OK [21:40:13]wFMCommunicate request_size=10 [21:40:13]MH_SAM_APDU [21:40:13]CAPDU: 80 0D 02 02 05 CA 8E 04 E0 EE [21:40:13]Write to MH i2c: E2 0D 00 9B 0C 80 0D 02 02 05 00 CA 8E 04 E0 EE 00 00 55 [21:40:13]Write i2c OK [21:40:13]MH_I2C_Read... [21:40:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:40:13]Read from MH i2c: E2 [21:40:13]MH_I2C_Read... [21:40:13]Read from MH i2c: E2 03 00 [21:40:13]MH_I2C_Read... [21:40:13]Read from MH i2c: E2 03 00 9B 0C 00 90 00 1B [21:40:13]RAPDU: 90 00 [21:40:13]wFMCommunicate OK [21:40:13]wFMCommunicate request_size=4 [21:40:13]MH_SAM_APDU [21:40:13]CAPDU: 80 0D 03 02 [21:40:13]Write to MH i2c: E2 08 00 9C 0C 80 0D 03 02 00 00 00 00 23 [21:40:13]Write i2c OK [21:40:13]MH_I2C_Read... [21:40:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:40:13]Read from MH i2c: E2 [21:40:13]MH_I2C_Read... [21:40:13]Read from MH i2c: E2 0B 00 [21:40:13]MH_I2C_Read... [21:40:13]Read from MH i2c: E2 0B 00 9C 0C 00 01 95 50 2D 8F 62 8F BB 90 00 72 [21:40:13]RAPDU: 01 95 50 2D 8F 62 8F BB 90 00 [21:40:13]wFMCommunicate OK [21:40:13]SAM_PROTO_SignData done [21:40:13]FM_MakeSignedData done [21:40:13]CreateOFDProtocolMessage [21:40:13]wFMCommunicate request_size=4 [21:40:13]MH_SAM_APDU [21:40:13]CAPDU: 80 11 00 00 [21:40:13]Write to MH i2c: E2 08 00 9D 0C 80 11 00 00 00 00 00 00 23 [21:40:13]Write i2c OK [21:40:13]MH_I2C_Read... [21:40:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:40:13]Read from MH i2c: E2 [21:40:13]MH_I2C_Read... [21:40:13]Read from MH i2c: E2 17 00 [21:40:13]MH_I2C_Read... [21:40:13]Read from MH i2c: E2 17 00 9D 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 72 [21:40:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:40:13]wFMCommunicate OK [21:40:13]CreateOFDProtocolMessage done [21:40:13]OFDSenderStorePacket 28765 [21:40:13]StoreOFDPacket docnum=28765 [21:40:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 69 03 07 01 7D 93 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 56 18 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 7B 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 9E 10 00 00 00 00 07 04 06 00 40 9C 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 3D AA 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5D 70 00 00 35 04 06 00 54 CA 8E 04 E0 EE 01 95 50 2D 8F 62 8F BB [21:40:13]CheckFolder [21:40:13]dirname=/storage/ofd_packets [21:40:13]CheckFolder done [21:40:13]ProducePacketName [21:40:13]name=ofd_packets/00028765 [21:40:13]NVStorageSaveData ofd_packets/00028765 [21:40:13]File name is /storage/ofd_packets/00028765 [21:40:13]Write 301 bytes [21:40:13]NVStorageSaveData done [21:40:13]OFDSenderStorePacket done [21:40:13]KKMCreateOFDPacket done [21:40:13]NVStorageSaveData kkm_last_timestamp [21:40:13]File name is /storage/kkm_last_timestamp [21:40:13]Write 4 bytes [21:40:13]NVStorageSaveData done [21:40:13]ExternCall_PrintAddStr [21:40:13]wPrintStart [21:40:13]Write to MH i2c: 01 00 00 9E 0C AA [21:40:13]Write i2c OK [21:40:13]MH_I2C_Read... [21:40:13]Read from MH i2c: 01 [21:40:13]MH_I2C_Read... [21:40:13]Read from MH i2c: 01 07 00 [21:40:13]MH_I2C_Read... [21:40:13]Read from MH i2c: 01 07 00 9E 0C 00 00 00 00 00 FF 0F BF [21:40:13]RasterBufferAndPrint [21:40:13]line Счет N : (1)347108 [21:40:13]line ИНН: 02508201610067 [21:40:13]line Контрольно-Кассовый Чек [21:40:13]line ПРОДАЖА [21:40:13]line ТРК (МРК, ГНК) : 42 [21:40:13]line Товар: 2710124130 [21:40:13]line Аи-92-К-5 [21:40:13]line 6.230 * 64.30 [21:40:13]line = 400.59 [21:40:13]line НДС 12% НСП 1% [21:40:13]line > о реализуемом товаре [21:40:13]line ОКРУГЛЕНИЕ: -0.59 [21:40:13]line ИТОГО: 400.00 [21:40:13]line Внесено: 400.00 [21:40:13]line СДАЧА: 0.00 [21:40:13]line НСП 1% : 3.54 [21:40:13]line НДС 12% : 42.54 [21:40:13]line Наличными: 400.00 [21:40:13]line Безнал.: 0.00 [21:40:13]line Место: АЗС № 108 "Партнер Нефть" [21:40:13]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [21:40:13]line СНО: Общий режим [21:40:13]line Чек 39 12.04.2024 21:40 [21:40:13]line Смена: 114 ФФД: 1.0 [21:40:13]line ЗНМ: 0300000027 [21:40:13]line РНМ: 0000138879044617 [21:40:13]line Версия ККМ: 001 [21:40:13]line ФМ: 0000000000963154 [21:40:13]line ФД: 28765 [21:40:13]line ФПД: 93228942811374 [21:40:14]line 1/tax-web-control/client/api/v1/ticket?date=20240412T214013&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28765&fm=93228942811374&tin=02508201610067®Number=0000138879044617&sum=40000 [21:40:14]OFD Sender: Processing packet 28765 [packets to send 8, broken 7] [21:40:14]ProducePacketName [21:40:14]name=ofd_packets/00028765 [21:40:14]OFD Sender: To server: pG, [21:40:14]CommunicateWithHost lk.salyk.kg:30040 [21:40:14]ConnectInit lk.salyk.kg [21:40:14]written 0, free lines is 4095 [21:40:14]Connected sock=10 [21:40:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 69 03 07 01 7D 93 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 56 18 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 7B 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 9E 10 00 00 00 00 07 04 06 00 40 9C 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 3D AA 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5D 70 00 00 35 04 06 00 54 CA 8E 04 E0 EE 01 95 50 2D 8F 62 8F BB [21:40:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 45 7F 47 00 F7 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 30 39 36 33 31 35 34 10 04 04 00 5D 70 00 00 F4 03 04 00 E6 54 19 66 B6 04 01 00 00 8C 9B ED F8 86 F9 FA 91 [21:40:14]CommunicateWithHost err = 0 [21:40:14]CheckOFDResponse [21:40:14]1017 (14) - 77093643461234 [21:40:14]1041 (16) - 0000000000963154 [21:40:14]1040 (4) - 28765 [21:40:14]1012 (4) - 12.04.2024 15:36 [21:40:14]1206 (1) - 0 [21:40:14]OFD Sender: Remove packet 28765 [21:40:14]ProducePacketName [21:40:14]name=ofd_packets/00028765 [21:40:14]NVStorageDeleteData [21:40:14]Write to MH i2c: 01 00 00 C8 0C D4 [21:40:14]Write i2c OK [21:40:14]MH_I2C_Read... [21:40:14]Read from MH i2c: 01 [21:40:14]MH_I2C_Read... [21:40:14]Read from MH i2c: 01 07 00 [21:40:14]MH_I2C_Read... [21:40:14]Read from MH i2c: 01 07 00 C8 0C 00 00 00 00 00 CD 0C B4 [21:40:14]RasterBufferAndPrint [21:40:14]line [21:40:14]line [21:40:14]line [21:40:14]line [21:40:14]line [21:40:14]written 0, free lines is 3283 [21:40:14]MH_Cut [21:40:14]Write to MH i2c: D1 01 00 CF 0C 01 AD [21:40:14]Write i2c OK [21:40:14]MH_I2C_Read... [21:40:14]Read from MH i2c: D1 [21:40:14]MH_I2C_Read... [21:40:14]Read from MH i2c: D1 01 00 [21:40:14]MH_I2C_Read... [21:40:14]Read from MH i2c: D1 01 00 CF 0C 00 AC [21:40:14]Write to MH i2c: 01 00 00 D0 0C DC [21:40:14]Write i2c OK [21:40:14]MH_I2C_Read... [21:40:14]OFD Sender: No OFD packet to send [21:40:15]*** Cut start [21:40:15]*** Partial cut [21:40:15]*** CUTSNS_PIN = 1 [21:40:15]*** CUTSNS_PIN = 0 [21:40:15]*** Brake cut motor [21:40:15]Read from MH i2c: 01 [21:40:16]MH_I2C_Read... [21:40:16]*** Stop cut motor [21:40:16]*** Cut end [21:40:16]Read from MH i2c: 01 07 00 [21:40:16]MH_I2C_Read... [21:40:16]Read from MH i2c: 01 07 00 D0 0C 00 00 00 00 00 FF 0F F1 [21:40:16]process_action close_receipt done [21:40:16]requested_data is exist [21:40:16]produce_requested_data [21:40:16]requested_item fm.sn is exist - process it [21:40:16]wFMCommunicate request_size=4 [21:40:16]MH_SAM_APDU [21:40:16]CAPDU: 80 11 00 00 [21:40:16]Write to MH i2c: E2 08 00 D1 0C 80 11 00 00 00 00 00 00 57 [21:40:16]Write i2c OK [21:40:16]MH_I2C_Read... [21:40:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:40:16]Read from MH i2c: E2 [21:40:16]MH_I2C_Read... [21:40:16]Read from MH i2c: E2 17 00 [21:40:16]MH_I2C_Read... [21:40:16]Read from MH i2c: E2 17 00 D1 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 A6 [21:40:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:40:16]wFMCommunicate OK [21:40:16]requested_item fd.num is exist - process it [21:40:16]SAM_PROTO_GetFieldsCounters [21:40:16]wFMCommunicate request_size=4 [21:40:16]MH_SAM_APDU [21:40:16]CAPDU: 80 13 00 00 [21:40:16]Write to MH i2c: E2 08 00 D2 0C 80 13 00 00 00 00 00 00 5A [21:40:16]Write i2c OK [21:40:16]MH_I2C_Read... [21:40:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:40:16]Read from MH i2c: E2 [21:40:16]MH_I2C_Read... [21:40:16]Read from MH i2c: E2 62 00 [21:40:16]MH_I2C_Read... [21:40:16]Read from MH i2c: E2 62 00 D2 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 5D 70 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 4C [21:40:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 5D 70 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 [21:40:16]wFMCommunicate OK [21:40:16]SAM_PROTO_GetFieldsCounters done [21:40:16]requested_item shift.num is exist - process it [21:40:16]requested_item shift.opened is exist - process it [21:40:16]req_shift_opened [21:40:16]FM_GetShiftState [21:40:16]SAM_PROTO_GetShiftState [21:40:16]wFMCommunicate request_size=4 [21:40:16]MH_SAM_APDU [21:40:16]CAPDU: 80 13 01 00 [21:40:16]Write to MH i2c: E2 08 00 D3 0C 80 13 01 00 00 00 00 00 5C [21:40:16]Write i2c OK [21:40:16]MH_I2C_Read... [21:40:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:40:16]Read from MH i2c: E2 [21:40:16]MH_I2C_Read... [21:40:16]Read from MH i2c: E2 0E 00 [21:40:16]MH_I2C_Read... [21:40:16]Read from MH i2c: E2 0E 00 D3 0C 00 09 00 01 17 88 19 66 00 00 00 00 90 00 86 [21:40:16]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [21:40:16]wFMCommunicate OK [21:40:16]SAM_PROTO_GetShiftState done [21:40:16]FM_GetShiftState done [21:40:16]req_shift_opened done [21:40:16]requested_item shift.open_date is exist - process it [21:40:16]req_shift_open_date [21:40:16]req_shift_open_date done [21:40:16]produce_requested_data done [21:40:16]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28765,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271} [21:40:16]process_action_free close_receipt [21:40:16]json_value_free [21:40:16]json_value_free done [21:40:16]process_json_proto returns [21:40:16]Send response to host [21:40:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28765,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271}}} [21:40:16]free response buf [21:40:16]execute_script done [21:40:16]execute_script returns [21:40:16]free content buf [21:40:16]Sock 9.Close socket [21:40:16]Sock 9.Thread stoped [21:40:19]OFD Sender: No OFD packet to send [21:40:24]OFD Sender: No OFD packet to send [21:40:29]OFD Sender: No OFD packet to send [21:40:34]OFD Sender: No OFD packet to send [21:40:39]OFD Sender: No OFD packet to send [21:40:44]OFD Sender: No OFD packet to send [21:40:49]OFD Sender: No OFD packet to send [21:40:54]OFD Sender: No OFD packet to send [21:40:59]OFD Sender: No OFD packet to send [21:41:04]OFD Sender: No OFD packet to send [21:41:07]accept exits with 7 [21:41:07]New connection [21:41:07]New thread 3066785124 created [21:41:07]Thread 3066928484 joined [21:41:07]Waiting for new connection... [21:41:07] Sock 7.Parse request [21:41:07]Sock 7.Check first char [21:41:07]Sock 7.First char is OK [21:41:07]request: POST /json_proto HTTP/1.0 [21:41:07]Method: POST [21:41:07]URL: /json_proto [21:41:07]Method is POST - this is cgi request [21:41:07]url: /json_proto [21:41:07]query_string will be loaded in cgi processing [21:41:07]execute_cgi json_proto POST (null) [21:41:07]execute_cgi path=json_proto method=POST [21:41:07]POST find Content-Length [21:41:07]Host: 172.17.33.3:8080 [21:41:07]Content-Length: 840 [21:41:07]Content-Type: application/json [21:41:07] [21:41:07]POST finish read [21:41:07]Found Content-Length = 840 [21:41:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347110", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 7.780, "sum" : 500.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:41:07]execute_script... [21:41:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347110", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 7.780, "sum" : 500.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:41:07]POST & json_proto [21:41:07]process_json_proto [21:41:07]json parsed OK: [21:41:07]protocol is kg_v1.0 [21:41:07]action value=close_receipt [21:41:07]process_action close_receipt [21:41:07]cmd_close_receipt [21:41:07]MH_GetDate [21:41:07]Write to MH i2c: F0 00 00 D4 0C CF [21:41:07]Write i2c OK [21:41:07]MH_I2C_Read... [21:41:07]Read from MH i2c: F0 [21:41:07]MH_I2C_Read... [21:41:07]Read from MH i2c: F0 09 00 [21:41:07]MH_I2C_Read... [21:41:07]Read from MH i2c: F0 09 00 D4 0C 00 75 AA 19 66 23 5B 8F 65 E8 [21:41:07]GetLastDocTimeStamp 1712958013 [21:41:07]current date 1712958069 [21:41:07]FM_GetShiftState [21:41:07]SAM_PROTO_GetShiftState [21:41:07]wFMCommunicate request_size=4 [21:41:07]MH_SAM_APDU [21:41:07]CAPDU: 80 13 01 00 [21:41:07]Write to MH i2c: E2 08 00 D5 0C 80 13 01 00 00 00 00 00 5E [21:41:07]Write i2c OK [21:41:07]MH_I2C_Read... [21:41:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:41:07]Read from MH i2c: E2 [21:41:07]MH_I2C_Read... [21:41:07]Read from MH i2c: E2 0E 00 [21:41:07]MH_I2C_Read... [21:41:07]Read from MH i2c: E2 0E 00 D5 0C 00 09 00 01 17 88 19 66 00 00 00 00 90 00 88 [21:41:07]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [21:41:07]wFMCommunicate OK [21:41:07]SAM_PROTO_GetShiftState done [21:41:07]FM_GetShiftState done [21:41:07]opened in 1712949271 [21:41:07]opened+sec_in_day 1713035671 [21:41:07]quantity*price = 50025 [21:41:07]sum+1 = 50026 [21:41:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.25 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 0.00 Безнал.: 500.25 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 40 12.04.2024 21:41 Смена: 114 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 28766 ФПД: 52483802833914 1/tax-web-control/client/api/v1/ticket?date=20240412T214109&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28766&fm=52483802833914&tin=02508201610067®Number=0000138879044617&sum=50025 [21:41:09]StoreToDocumentArchive [21:41:09]shift 114 fd 28766 [21:41:09]save to /storage/0114/doc_00028766 [21:41:09]save last doc name /storage/0114/doc_00028766 to /storage/kkm_last_doc_name [21:41:09]save OK [21:41:09]Clear old archive folders... [21:41:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:41:09]tlvbuf is 011C1B10 [21:41:09]SAM_PROTO_ClearQueue [21:41:09]wFMCommunicate request_size=4 [21:41:09]MH_SAM_APDU [21:41:09]CAPDU: 80 09 00 00 [21:41:09]Write to MH i2c: E2 08 00 E2 0C 80 09 00 00 00 00 00 00 60 [21:41:09]Write i2c OK [21:41:09]MH_I2C_Read... [21:41:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:41:09]Read from MH i2c: E2 [21:41:09]MH_I2C_Read... [21:41:09]Read from MH i2c: E2 03 00 [21:41:09]MH_I2C_Read... [21:41:09]Read from MH i2c: E2 03 00 E2 0C 00 90 00 62 [21:41:09]RAPDU: 90 00 [21:41:09]wFMCommunicate OK [21:41:09]SAM_PROTO_ClearQueue done [21:41:09]KKMCreateOFDPacket [21:41:09]OFDProtocolAddRootSTLVToBuf [21:41:09]FM_MakeSignedData [21:41:09]FM_MakeSignedData [21:41:09]SAM_PROTO_SignData [21:41:09]wFMCommunicate request_size=4 [21:41:09]MH_SAM_APDU [21:41:09]CAPDU: 80 0D 01 02 [21:41:09]Write to MH i2c: E2 08 00 E3 0C 80 0D 01 02 00 00 00 00 68 [21:41:09]Write i2c OK [21:41:09]MH_I2C_Read... [21:41:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:41:09]Read from MH i2c: E2 [21:41:09]MH_I2C_Read... [21:41:09]Read from MH i2c: E2 03 00 [21:41:09]MH_I2C_Read... [21:41:09]Read from MH i2c: E2 03 00 E3 0C 00 90 00 63 [21:41:09]RAPDU: 90 00 [21:41:09]wFMCommunicate OK [21:41:09]wFMCommunicate request_size=255 [21:41:09]MH_SAM_APDU [21:41:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 69 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 75 AA 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5E 70 00 00 35 04 06 00 2F [21:41:09]Write to MH i2c: E2 02 01 E4 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 69 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 75 AA 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5E 70 00 00 35 04 06 00 2F 00 00 91 [21:41:09]Write i2c OK [21:41:09]MH_I2C_Read... [21:41:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:41:09]Read from MH i2c: E2 [21:41:09]MH_I2C_Read... [21:41:09]Read from MH i2c: E2 03 00 [21:41:09]MH_I2C_Read... [21:41:09]Read from MH i2c: E2 03 00 E4 0C 00 90 00 64 [21:41:09]RAPDU: 90 00 [21:41:09]wFMCommunicate OK [21:41:09]wFMCommunicate request_size=10 [21:41:09]MH_SAM_APDU [21:41:09]CAPDU: 80 0D 02 02 05 BB D6 6C A3 FA [21:41:09]Write to MH i2c: E2 0D 00 E5 0C 80 0D 02 02 05 00 BB D6 6C A3 FA 00 00 0F [21:41:09]Write i2c OK [21:41:09]MH_I2C_Read... [21:41:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:41:09]Read from MH i2c: E2 [21:41:09]MH_I2C_Read... [21:41:09]Read from MH i2c: E2 03 00 [21:41:09]MH_I2C_Read... [21:41:09]Read from MH i2c: E2 03 00 E5 0C 00 90 00 65 [21:41:09]RAPDU: 90 00 [21:41:09]wFMCommunicate OK [21:41:09]wFMCommunicate request_size=4 [21:41:09]MH_SAM_APDU [21:41:09]CAPDU: 80 0D 03 02 [21:41:09]Write to MH i2c: E2 08 00 E6 0C 80 0D 03 02 00 00 00 00 6D [21:41:09]Write i2c OK [21:41:09]MH_I2C_Read... [21:41:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:41:09]Read from MH i2c: E2 [21:41:09]MH_I2C_Read... [21:41:09]Read from MH i2c: E2 0B 00 [21:41:09]MH_I2C_Read... [21:41:09]Read from MH i2c: E2 0B 00 E6 0C 00 9B 89 01 AD BA 8F 96 A9 90 00 C8 [21:41:09]RAPDU: 9B 89 01 AD BA 8F 96 A9 90 00 [21:41:09]wFMCommunicate OK [21:41:09]SAM_PROTO_SignData done [21:41:09]FM_MakeSignedData done [21:41:09]CreateOFDProtocolMessage [21:41:09]wFMCommunicate request_size=4 [21:41:09]MH_SAM_APDU [21:41:09]CAPDU: 80 11 00 00 [21:41:09]Write to MH i2c: E2 08 00 E7 0C 80 11 00 00 00 00 00 00 6D [21:41:09]Write i2c OK [21:41:09]MH_I2C_Read... [21:41:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:41:09]Read from MH i2c: E2 [21:41:09]MH_I2C_Read... [21:41:09]Read from MH i2c: E2 17 00 [21:41:09]MH_I2C_Read... [21:41:09]Read from MH i2c: E2 17 00 E7 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 BC [21:41:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:41:09]wFMCommunicate OK [21:41:09]CreateOFDProtocolMessage done [21:41:09]OFDSenderStorePacket 28766 [21:41:09]StoreOFDPacket docnum=28766 [21:41:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 C9 27 07 01 0F 68 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 69 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 75 AA 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5E 70 00 00 35 04 06 00 2F BB D6 6C A3 FA 9B 89 01 AD BA 8F 96 A9 [21:41:09]CheckFolder [21:41:09]dirname=/storage/ofd_packets [21:41:09]CheckFolder done [21:41:09]ProducePacketName [21:41:09]name=ofd_packets/00028766 [21:41:09]NVStorageSaveData ofd_packets/00028766 [21:41:09]File name is /storage/ofd_packets/00028766 [21:41:09]Write 301 bytes [21:41:09]NVStorageSaveData done [21:41:09]OFDSenderStorePacket done [21:41:09]KKMCreateOFDPacket done [21:41:09]NVStorageSaveData kkm_last_timestamp [21:41:09]File name is /storage/kkm_last_timestamp [21:41:09]Write 4 bytes [21:41:09]NVStorageSaveData done [21:41:09]ExternCall_PrintAddStr [21:41:09]wPrintStart [21:41:09]Write to MH i2c: 01 00 00 E8 0C F4 [21:41:09]Write i2c OK [21:41:09]MH_I2C_Read... [21:41:09]Read from MH i2c: 01 [21:41:09]MH_I2C_Read... [21:41:09]Read from MH i2c: 01 07 00 [21:41:09]MH_I2C_Read... [21:41:09]Read from MH i2c: 01 07 00 E8 0C 00 00 00 00 00 FF 0F 09 [21:41:09]RasterBufferAndPrint [21:41:09]line Счет N : (1)347110 [21:41:09]line ИНН: 02508201610067 [21:41:09]line Контрольно-Кассовый Чек [21:41:09]line ПРОДАЖА [21:41:09]line ТРК (МРК, ГНК) : 13 [21:41:09]line Товар: 2710124130 [21:41:09]line Аи-92-К-5 [21:41:09]line 7.780 * 64.30 [21:41:09]line = 500.25 [21:41:09]line НДС 12% НСП 1% [21:41:09]line > о реализуемом товаре [21:41:09]line ИТОГО: 500.25 [21:41:09]line НСП 1% : 4.43 [21:41:09]line НДС 12% : 53.12 [21:41:09]line Наличными: 0.00 [21:41:09]line Безнал.: 500.25 [21:41:09]line Место: АЗС № 108 "Партнер Нефть" [21:41:09]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [21:41:09]line СНО: Общий режим [21:41:09]line Чек 40 12.04.2024 21:41 [21:41:09]line Смена: 114 ФФД: 1.0 [21:41:09]line ЗНМ: 0300000027 [21:41:09]line РНМ: 0000138879044617 [21:41:09]line Версия ККМ: 001 [21:41:09]line Платежная система: АКБ Кыргызстан [21:41:09]line ФМ: 0000000000963154 [21:41:09]line ФД: 28766 [21:41:09]line ФПД: 52483802833914 [21:41:09]line 1/tax-web-control/client/api/v1/ticket?date=20240412T214109&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28766&fm=52483802833914&tin=02508201610067®Number=0000138879044617&sum=50025 [21:41:09]OFD Sender: Processing packet 28766 [packets to send 8, broken 7] [21:41:09]ProducePacketName [21:41:09]name=ofd_packets/00028766 [21:41:09]OFD Sender: To server: pG, [21:41:09]CommunicateWithHost lk.salyk.kg:30040 [21:41:09]ConnectInit lk.salyk.kg [21:41:09]written 0, free lines is 4095 [21:41:10]Connected sock=10 [21:41:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 C9 27 07 01 0F 68 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 69 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 75 AA 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5E 70 00 00 35 04 06 00 2F BB D6 6C A3 FA 9B 89 01 AD BA 8F 96 A9 [21:41:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 44 DB 47 00 F5 C4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5E 70 00 00 F4 03 04 00 1E 55 19 66 B6 04 01 00 00 F2 28 1F 69 0E 35 C0 CE [21:41:10]CommunicateWithHost err = 0 [21:41:10]CheckOFDResponse [21:41:10]1017 (14) - 77093643461234 [21:41:10]1041 (16) - 0000000000963154 [21:41:10]1040 (4) - 28766 [21:41:10]1012 (4) - 12.04.2024 15:37 [21:41:10]1206 (1) - 0 [21:41:10]OFD Sender: Remove packet 28766 [21:41:10]ProducePacketName [21:41:10]name=ofd_packets/00028766 [21:41:10]NVStorageDeleteData [21:41:10]Write to MH i2c: 01 00 00 11 0D 1E [21:41:10]Write i2c OK [21:41:10]MH_I2C_Read... [21:41:10]Read from MH i2c: 01 [21:41:10]MH_I2C_Read... [21:41:10]Read from MH i2c: 01 07 00 [21:41:10]MH_I2C_Read... [21:41:10]Read from MH i2c: 01 07 00 11 0D 00 00 00 00 00 E8 0C 19 [21:41:10]RasterBufferAndPrint [21:41:10]line [21:41:10]line [21:41:10]line [21:41:10]line [21:41:10]line [21:41:10]written 0, free lines is 3310 [21:41:10]MH_Cut [21:41:10]Write to MH i2c: D1 01 00 18 0D 01 F7 [21:41:10]Write i2c OK [21:41:10]MH_I2C_Read... [21:41:10]Read from MH i2c: D1 [21:41:10]MH_I2C_Read... [21:41:10]Read from MH i2c: D1 01 00 [21:41:10]MH_I2C_Read... [21:41:10]Read from MH i2c: D1 01 00 18 0D 00 F6 [21:41:10]Write to MH i2c: 01 00 00 19 0D 26 [21:41:10]Write i2c OK [21:41:10]MH_I2C_Read... [21:41:10]OFD Sender: No OFD packet to send [21:41:11]*** Cut start [21:41:11]*** Partial cut [21:41:11]*** CUTSNS_PIN = 1 [21:41:11]*** CUTSNS_PIN = 0 [21:41:11]*** Brake cut motor [21:41:11]Read from MH i2c: 01 [21:41:11]MH_I2C_Read... [21:41:11]*** Stop cut motor [21:41:11]*** Cut end [21:41:11]Read from MH i2c: 01 07 00 [21:41:11]MH_I2C_Read... [21:41:11]Read from MH i2c: 01 07 00 19 0D 00 00 00 00 00 FF 0F 3B [21:41:11]process_action close_receipt done [21:41:11]requested_data is exist [21:41:11]produce_requested_data [21:41:11]requested_item fm.sn is exist - process it [21:41:11]wFMCommunicate request_size=4 [21:41:11]MH_SAM_APDU [21:41:11]CAPDU: 80 11 00 00 [21:41:11]Write to MH i2c: E2 08 00 1A 0D 80 11 00 00 00 00 00 00 A1 [21:41:11]Write i2c OK [21:41:11]MH_I2C_Read... [21:41:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:41:11]Read from MH i2c: E2 [21:41:11]MH_I2C_Read... [21:41:11]Read from MH i2c: E2 17 00 [21:41:11]MH_I2C_Read... [21:41:11]Read from MH i2c: E2 17 00 1A 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 F0 [21:41:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:41:11]wFMCommunicate OK [21:41:11]requested_item fd.num is exist - process it [21:41:11]SAM_PROTO_GetFieldsCounters [21:41:11]wFMCommunicate request_size=4 [21:41:11]MH_SAM_APDU [21:41:11]CAPDU: 80 13 00 00 [21:41:11]Write to MH i2c: E2 08 00 1B 0D 80 13 00 00 00 00 00 00 A4 [21:41:11]Write i2c OK [21:41:11]MH_I2C_Read... [21:41:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:41:12]Read from MH i2c: E2 [21:41:12]MH_I2C_Read... [21:41:12]Read from MH i2c: E2 62 00 [21:41:12]MH_I2C_Read... [21:41:12]Read from MH i2c: E2 62 00 1B 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 5E 70 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 9A [21:41:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 5E 70 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 [21:41:12]wFMCommunicate OK [21:41:12]SAM_PROTO_GetFieldsCounters done [21:41:12]requested_item shift.num is exist - process it [21:41:12]requested_item shift.opened is exist - process it [21:41:12]req_shift_opened [21:41:12]FM_GetShiftState [21:41:12]SAM_PROTO_GetShiftState [21:41:12]wFMCommunicate request_size=4 [21:41:12]MH_SAM_APDU [21:41:12]CAPDU: 80 13 01 00 [21:41:12]Write to MH i2c: E2 08 00 1C 0D 80 13 01 00 00 00 00 00 A6 [21:41:12]Write i2c OK [21:41:12]MH_I2C_Read... [21:41:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:41:12]Read from MH i2c: E2 [21:41:12]MH_I2C_Read... [21:41:12]Read from MH i2c: E2 0E 00 [21:41:12]MH_I2C_Read... [21:41:12]Read from MH i2c: E2 0E 00 1C 0D 00 09 00 01 17 88 19 66 00 00 00 00 90 00 D0 [21:41:12]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [21:41:12]wFMCommunicate OK [21:41:12]SAM_PROTO_GetShiftState done [21:41:12]FM_GetShiftState done [21:41:12]req_shift_opened done [21:41:12]requested_item shift.open_date is exist - process it [21:41:12]req_shift_open_date [21:41:12]req_shift_open_date done [21:41:12]produce_requested_data done [21:41:12]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28766,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271} [21:41:12]process_action_free close_receipt [21:41:12]json_value_free [21:41:12]json_value_free done [21:41:12]process_json_proto returns [21:41:12]Send response to host [21:41:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28766,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271}}} [21:41:12]free response buf [21:41:12]execute_script done [21:41:12]execute_script returns [21:41:12]free content buf [21:41:12]Sock 7.Close socket [21:41:12]Sock 7.Thread stoped [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:10]OFD Sender: No OFD packet to send [21:45:15]OFD Sender: No OFD packet to send [21:45:20]OFD Sender: No OFD packet to send [21:45:25]OFD Sender: No OFD packet to send [21:45:30]OFD Sender: No OFD packet to send [21:45:35]OFD Sender: No OFD packet to send [21:45:40]OFD Sender: No OFD packet to send [21:45:45]OFD Sender: No OFD packet to send [21:45:50]OFD Sender: No OFD packet to send [21:45:55]OFD Sender: No OFD packet to send [21:46:00]OFD Sender: No OFD packet to send [21:46:05]OFD Sender: No OFD packet to send [21:46:10]OFD Sender: No OFD packet to send [21:46:16]OFD Sender: No OFD packet to send [21:46:21]OFD Sender: No OFD packet to send [21:46:26]OFD Sender: No OFD packet to send [21:46:31]OFD Sender: No OFD packet to send [21:46:36]OFD Sender: No OFD packet to send [21:46:41]OFD Sender: No OFD packet to send [21:46:46]OFD Sender: No OFD packet to send [21:46:51]OFD Sender: No OFD packet to send [21:46:56]OFD Sender: No OFD packet to send [21:47:01]OFD Sender: No OFD packet to send [21:47:06]OFD Sender: No OFD packet to send [21:47:11]OFD Sender: No OFD packet to send [21:47:16]OFD Sender: No OFD packet to send [21:47:21]OFD Sender: No OFD packet to send [21:47:26]OFD Sender: No OFD packet to send [21:47:31]OFD Sender: No OFD packet to send [21:47:36]OFD Sender: No OFD packet to send [21:47:41]OFD Sender: No OFD packet to send [21:47:46]OFD Sender: No OFD packet to send [21:47:51]OFD Sender: No OFD packet to send [21:47:56]OFD Sender: No OFD packet to send [21:48:01]OFD Sender: No OFD packet to send [21:48:06]OFD Sender: No OFD packet to send [21:48:11]OFD Sender: No OFD packet to send [21:48:16]OFD Sender: No OFD packet to send [21:48:21]OFD Sender: No OFD packet to send [21:48:26]OFD Sender: No OFD packet to send [21:48:31]OFD Sender: No OFD packet to send [21:48:36]OFD Sender: No OFD packet to send [21:48:41]OFD Sender: No OFD packet to send [21:48:46]OFD Sender: No OFD packet to send [21:48:51]OFD Sender: No OFD packet to send [21:48:56]OFD Sender: No OFD packet to send [21:48:59]accept exits with 9 [21:48:59]New connection [21:48:59]New thread 3066928484 created [21:48:59]Thread 3066785124 joined [21:48:59]Waiting for new connection... [21:48:59] Sock 9.Parse request [21:48:59]Sock 9.Check first char [21:48:59]Sock 9.First char is OK [21:48:59]request: POST /json_proto HTTP/1.0 [21:48:59]Method: POST [21:48:59]URL: /json_proto [21:48:59]Method is POST - this is cgi request [21:48:59]url: /json_proto [21:48:59]query_string will be loaded in cgi processing [21:48:59]execute_cgi json_proto POST (null) [21:48:59]execute_cgi path=json_proto method=POST [21:48:59]POST find Content-Length [21:48:59]Host: 172.17.33.3:8080 [21:48:59]Content-Length: 808 [21:48:59]Content-Type: application/json [21:48:59] [21:48:59]POST finish read [21:48:59]Found Content-Length = 808 [21:48:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347111", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 38.890, "sum" : 2500.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2500.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:48:59]execute_script... [21:48: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)347111", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 38.890, "sum" : 2500.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2500.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:48:59]POST & json_proto [21:48:59]process_json_proto [21:48:59]json parsed OK: [21:48:59]protocol is kg_v1.0 [21:48:59]action value=close_receipt [21:48:59]process_action close_receipt [21:48:59]cmd_close_receipt [21:48:59]MH_GetDate [21:48:59]Write to MH i2c: F0 00 00 1D 0D 19 [21:48:59]Write i2c OK [21:48:59]MH_I2C_Read... [21:48:59]Read from MH i2c: F0 [21:48:59]MH_I2C_Read... [21:48:59]Read from MH i2c: F0 09 00 [21:48:59]MH_I2C_Read... [21:48:59]Read from MH i2c: F0 09 00 1D 0D 00 4D AC 19 66 23 5B 8F 65 0C [21:48:59]GetLastDocTimeStamp 1712958069 [21:48:59]current date 1712958541 [21:48:59]FM_GetShiftState [21:48:59]SAM_PROTO_GetShiftState [21:48:59]wFMCommunicate request_size=4 [21:48:59]MH_SAM_APDU [21:48:59]CAPDU: 80 13 01 00 [21:48:59]Write to MH i2c: E2 08 00 1E 0D 80 13 01 00 00 00 00 00 A8 [21:48:59]Write i2c OK [21:48:59]MH_I2C_Read... [21:48:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:48:59]Read from MH i2c: E2 [21:48:59]MH_I2C_Read... [21:48:59]Read from MH i2c: E2 0E 00 [21:48:59]MH_I2C_Read... [21:48:59]Read from MH i2c: E2 0E 00 1E 0D 00 09 00 01 17 88 19 66 00 00 00 00 90 00 D2 [21:48:59]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [21:48:59]wFMCommunicate OK [21:48:59]SAM_PROTO_GetShiftState done [21:48:59]FM_GetShiftState done [21:48:59]opened in 1712949271 [21:48:59]opened+sec_in_day 1713035671 [21:48:59]quantity*price = 250062 [21:48:59]sum+1 = 250064 [21:48:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2500.63 НСП 1% : 22.13 НДС 12% : 265.55 Наличными: 0.00 Безнал.: 2500.63 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 41 12.04.2024 21:49 Смена: 114 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 28767 ФПД: 174623284766507 1/tax-web-control/client/api/v1/ticket?date=20240412T214901&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28767&fm=174623284766507&tin=02508201610067®Number=0000138879044617&sum=250063 [21:49:00]StoreToDocumentArchive [21:49:00]shift 114 fd 28767 [21:49:00]save to /storage/0114/doc_00028767 [21:49:00]save last doc name /storage/0114/doc_00028767 to /storage/kkm_last_doc_name [21:49:00]save OK [21:49:00]Clear old archive folders... [21:49:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:49:00]tlvbuf is 011A96A0 [21:49:00]SAM_PROTO_ClearQueue [21:49:00]wFMCommunicate request_size=4 [21:49:00]MH_SAM_APDU [21:49:00]CAPDU: 80 09 00 00 [21:49:00]Write to MH i2c: E2 08 00 2B 0D 80 09 00 00 00 00 00 00 AA [21:49:00]Write i2c OK [21:49:00]MH_I2C_Read... [21:49:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:49:01]Read from MH i2c: E2 [21:49:01]MH_I2C_Read... [21:49:01]Read from MH i2c: E2 03 00 [21:49:01]MH_I2C_Read... [21:49:01]Read from MH i2c: E2 03 00 2B 0D 00 90 00 AC [21:49:01]RAPDU: 90 00 [21:49:01]wFMCommunicate OK [21:49:01]SAM_PROTO_ClearQueue done [21:49:01]KKMCreateOFDPacket [21:49:01]OFDProtocolAddRootSTLVToBuf [21:49:01]FM_MakeSignedData [21:49:01]FM_MakeSignedData [21:49:01]SAM_PROTO_SignData [21:49:01]wFMCommunicate request_size=4 [21:49:01]MH_SAM_APDU [21:49:01]CAPDU: 80 0D 01 02 [21:49:01]Write to MH i2c: E2 08 00 2C 0D 80 0D 01 02 00 00 00 00 B2 [21:49:01]Write i2c OK [21:49:01]MH_I2C_Read... [21:49:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:49:01]Read from MH i2c: E2 [21:49:01]MH_I2C_Read... [21:49:01]Read from MH i2c: E2 03 00 [21:49:01]MH_I2C_Read... [21:49:01]Read from MH i2c: E2 03 00 2C 0D 00 90 00 AD [21:49:01]RAPDU: 90 00 [21:49:01]wFMCommunicate OK [21:49:01]wFMCommunicate request_size=255 [21:49:01]MH_SAM_APDU [21:49:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EA 97 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 CF D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CF 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 BB 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CF D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 4D AC 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5F 70 00 00 35 04 06 00 9E [21:49:01]Write to MH i2c: E2 02 01 2D 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EA 97 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 CF D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CF 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 BB 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CF D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 4D AC 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5F 70 00 00 35 04 06 00 9E 00 00 C6 [21:49:01]Write i2c OK [21:49:01]MH_I2C_Read... [21:49:01]OFD Sender: No OFD packet to send [21:49:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:49:01]Read from MH i2c: E2 [21:49:01]MH_I2C_Read... [21:49:01]Read from MH i2c: E2 03 00 [21:49:01]MH_I2C_Read... [21:49:01]Read from MH i2c: E2 03 00 2D 0D 00 90 00 AE [21:49:01]RAPDU: 90 00 [21:49:01]wFMCommunicate OK [21:49:01]wFMCommunicate request_size=10 [21:49:01]MH_SAM_APDU [21:49:01]CAPDU: 80 0D 02 02 05 D1 A6 DB A7 2B [21:49:01]Write to MH i2c: E2 0D 00 2E 0D 80 0D 02 02 05 00 D1 A6 DB A7 2B 00 00 E3 [21:49:01]Write i2c OK [21:49:01]MH_I2C_Read... [21:49:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:49:01]Read from MH i2c: E2 [21:49:01]MH_I2C_Read... [21:49:01]Read from MH i2c: E2 03 00 [21:49:01]MH_I2C_Read... [21:49:01]Read from MH i2c: E2 03 00 2E 0D 00 90 00 AF [21:49:01]RAPDU: 90 00 [21:49:01]wFMCommunicate OK [21:49:01]wFMCommunicate request_size=4 [21:49:01]MH_SAM_APDU [21:49:01]CAPDU: 80 0D 03 02 [21:49:01]Write to MH i2c: E2 08 00 2F 0D 80 0D 03 02 00 00 00 00 B7 [21:49:01]Write i2c OK [21:49:01]MH_I2C_Read... [21:49:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:49:01]Read from MH i2c: E2 [21:49:01]MH_I2C_Read... [21:49:01]Read from MH i2c: E2 0B 00 [21:49:01]MH_I2C_Read... [21:49:01]Read from MH i2c: E2 0B 00 2F 0D 00 03 65 AC 0F 5A 1C 8C BF 90 00 9C [21:49:01]RAPDU: 03 65 AC 0F 5A 1C 8C BF 90 00 [21:49:01]wFMCommunicate OK [21:49:01]SAM_PROTO_SignData done [21:49:01]FM_MakeSignedData done [21:49:01]CreateOFDProtocolMessage [21:49:01]wFMCommunicate request_size=4 [21:49:01]MH_SAM_APDU [21:49:01]CAPDU: 80 11 00 00 [21:49:01]Write to MH i2c: E2 08 00 30 0D 80 11 00 00 00 00 00 00 B7 [21:49:01]Write i2c OK [21:49:01]MH_I2C_Read... [21:49:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:49:01]Read from MH i2c: E2 [21:49:01]MH_I2C_Read... [21:49:01]Read from MH i2c: E2 17 00 [21:49:01]MH_I2C_Read... [21:49:01]Read from MH i2c: E2 17 00 30 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 06 [21:49:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:49:01]wFMCommunicate OK [21:49:01]CreateOFDProtocolMessage done [21:49:01]OFDSenderStorePacket 28767 [21:49:01]StoreOFDPacket docnum=28767 [21:49:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 40 9E 07 01 A8 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 35 FF 03 08 00 03 EA 97 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 CF D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CF 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 BB 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CF D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 4D AC 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5F 70 00 00 35 04 06 00 9E D1 A6 DB A7 2B 03 65 AC 0F 5A 1C 8C BF [21:49:01]CheckFolder [21:49:01]dirname=/storage/ofd_packets [21:49:01]CheckFolder done [21:49:01]ProducePacketName [21:49:01]name=ofd_packets/00028767 [21:49:01]NVStorageSaveData ofd_packets/00028767 [21:49:01]File name is /storage/ofd_packets/00028767 [21:49:01]Write 301 bytes [21:49:01]NVStorageSaveData done [21:49:01]OFDSenderStorePacket done [21:49:01]KKMCreateOFDPacket done [21:49:01]NVStorageSaveData kkm_last_timestamp [21:49:01]File name is /storage/kkm_last_timestamp [21:49:01]Write 4 bytes [21:49:01]NVStorageSaveData done [21:49:01]ExternCall_PrintAddStr [21:49:01]wPrintStart [21:49:01]Write to MH i2c: 01 00 00 31 0D 3E [21:49:01]OFD Sender: Processing packet 28767 [packets to send 8, broken 7] [21:49:01]ProducePacketName [21:49:01]name=ofd_packets/00028767 [21:49:01]OFD Sender: To server: pG, [21:49:01]CommunicateWithHost lk.salyk.kg:30040 [21:49:01]ConnectInit lk.salyk.kg [21:49:01]Write i2c OK [21:49:01]MH_I2C_Read... [21:49:01]Read from MH i2c: 01 [21:49:01]MH_I2C_Read... [21:49:01]Read from MH i2c: 01 07 00 [21:49:01]MH_I2C_Read... [21:49:01]Read from MH i2c: 01 07 00 31 0D 00 00 00 00 00 FF 0F 53 [21:49:01]RasterBufferAndPrint [21:49:01]line Счет N : (1)347111 [21:49:01]line ИНН: 02508201610067 [21:49:01]line Контрольно-Кассовый Чек [21:49:01]line ПРОДАЖА [21:49:01]line ТРК (МРК, ГНК) : 32 [21:49:01]line Товар: 2710124130 [21:49:01]line Аи-92-К-5 [21:49:01]line 38.890 * 64.30 [21:49:01]line = 2500.63 [21:49:01]line НДС 12% НСП 1% [21:49:01]line > о реализуемом товаре [21:49:01]line ИТОГО: 2500.63 [21:49:01]line НСП 1% : 22.13 [21:49:01]line НДС 12% : 265.55 [21:49:01]line Наличными: 0.00 [21:49:01]line Безнал.: 2500.63 [21:49:01]line Место: АЗС № 108 "Партнер Нефть" [21:49:01]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [21:49:01]line СНО: Общий режим [21:49:01]line Чек 41 12.04.2024 21:49 [21:49:01]line Смена: 114 ФФД: 1.0 [21:49:01]line ЗНМ: 0300000027 [21:49:01]line РНМ: 0000138879044617 [21:49:01]line Версия ККМ: 001 [21:49:01]line Платежная система: О! деньги [21:49:01]line ФМ: 0000000000963154 [21:49:01]line ФД: 28767 [21:49:01]line ФПД: 174623284766507 [21:49:01]line 1/tax-web-control/client/api/v1/ticket?date=20240412T214901&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28767&fm=174623284766507&tin=02508201610067®Number=0000138879044617&sum=250063 [21:49:01]Connected sock=10 [21:49:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 40 9E 07 01 A8 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 35 FF 03 08 00 03 EA 97 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 CF D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CF 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 BB 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CF D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 4D AC 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5F 70 00 00 35 04 06 00 9E D1 A6 DB A7 2B 03 65 AC 0F 5A 1C 8C BF [21:49:01]written 0, free lines is 4095 [21:49:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 EC BF 47 00 99 1B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5F 70 00 00 F4 03 04 00 F6 56 19 66 B6 04 01 00 00 65 61 1F FF 13 47 F4 74 [21:49:01]CommunicateWithHost err = 0 [21:49:01]CheckOFDResponse [21:49:01]1017 (14) - 77093643461234 [21:49:01]1041 (16) - 0000000000963154 [21:49:01]1040 (4) - 28767 [21:49:01]1012 (4) - 12.04.2024 15:44 [21:49:01]1206 (1) - 0 [21:49:01]OFD Sender: Remove packet 28767 [21:49:01]ProducePacketName [21:49:01]name=ofd_packets/00028767 [21:49:01]NVStorageDeleteData [21:49:02]Write to MH i2c: 01 00 00 5A 0D 67 [21:49:02]Write i2c OK [21:49:02]MH_I2C_Read... [21:49:02]Read from MH i2c: 01 [21:49:02]MH_I2C_Read... [21:49:02]Read from MH i2c: 01 07 00 [21:49:02]MH_I2C_Read... [21:49:02]Read from MH i2c: 01 07 00 5A 0D 00 00 00 00 00 E6 0C 60 [21:49:02]RasterBufferAndPrint [21:49:02]line [21:49:02]line [21:49:02]line [21:49:02]line [21:49:02]line [21:49:02]written 0, free lines is 3308 [21:49:02]MH_Cut [21:49:02]Write to MH i2c: D1 01 00 61 0D 01 40 [21:49:02]Write i2c OK [21:49:02]MH_I2C_Read... [21:49:02]Read from MH i2c: D1 [21:49:02]MH_I2C_Read... [21:49:02]Read from MH i2c: D1 01 00 [21:49:02]MH_I2C_Read... [21:49:02]Read from MH i2c: D1 01 00 61 0D 00 3F [21:49:02]Write to MH i2c: 01 00 00 62 0D 6F [21:49:02]Write i2c OK [21:49:02]MH_I2C_Read... [21:49:02]OFD Sender: No OFD packet to send [21:49:03]*** Cut start [21:49:03]*** Partial cut [21:49:03]*** CUTSNS_PIN = 1 [21:49:03]*** CUTSNS_PIN = 0 [21:49:03]*** Brake cut motor [21:49:03]Read from MH i2c: 01 [21:49:03]MH_I2C_Read... [21:49:03]*** Stop cut motor [21:49:03]*** Cut end [21:49:03]Read from MH i2c: 01 07 00 [21:49:03]MH_I2C_Read... [21:49:03]Read from MH i2c: 01 07 00 62 0D 00 00 00 00 00 FF 0F 84 [21:49:03]process_action close_receipt done [21:49:03]requested_data is exist [21:49:03]produce_requested_data [21:49:03]requested_item fm.sn is exist - process it [21:49:03]wFMCommunicate request_size=4 [21:49:03]MH_SAM_APDU [21:49:03]CAPDU: 80 11 00 00 [21:49:03]Write to MH i2c: E2 08 00 63 0D 80 11 00 00 00 00 00 00 EA [21:49:03]Write i2c OK [21:49:03]MH_I2C_Read... [21:49:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:49:03]Read from MH i2c: E2 [21:49:03]MH_I2C_Read... [21:49:03]Read from MH i2c: E2 17 00 [21:49:03]MH_I2C_Read... [21:49:03]Read from MH i2c: E2 17 00 63 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 39 [21:49:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:49:03]wFMCommunicate OK [21:49:03]requested_item fd.num is exist - process it [21:49:03]SAM_PROTO_GetFieldsCounters [21:49:03]wFMCommunicate request_size=4 [21:49:03]MH_SAM_APDU [21:49:03]CAPDU: 80 13 00 00 [21:49:03]Write to MH i2c: E2 08 00 64 0D 80 13 00 00 00 00 00 00 ED [21:49:03]Write i2c OK [21:49:03]MH_I2C_Read... [21:49:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:49:03]Read from MH i2c: E2 [21:49:03]MH_I2C_Read... [21:49:03]Read from MH i2c: E2 62 00 [21:49:03]MH_I2C_Read... [21:49:03]Read from MH i2c: E2 62 00 64 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 5F 70 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 E7 [21:49:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 5F 70 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 [21:49:03]wFMCommunicate OK [21:49:03]SAM_PROTO_GetFieldsCounters done [21:49:03]requested_item shift.num is exist - process it [21:49:03]requested_item shift.opened is exist - process it [21:49:03]req_shift_opened [21:49:03]FM_GetShiftState [21:49:03]SAM_PROTO_GetShiftState [21:49:03]wFMCommunicate request_size=4 [21:49:03]MH_SAM_APDU [21:49:03]CAPDU: 80 13 01 00 [21:49:03]Write to MH i2c: E2 08 00 65 0D 80 13 01 00 00 00 00 00 EF [21:49:03]Write i2c OK [21:49:03]MH_I2C_Read... [21:49:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:49:03]Read from MH i2c: E2 [21:49:03]MH_I2C_Read... [21:49:03]Read from MH i2c: E2 0E 00 [21:49:03]MH_I2C_Read... [21:49:03]Read from MH i2c: E2 0E 00 65 0D 00 09 00 01 17 88 19 66 00 00 00 00 90 00 19 [21:49:03]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [21:49:03]wFMCommunicate OK [21:49:03]SAM_PROTO_GetShiftState done [21:49:03]FM_GetShiftState done [21:49:03]req_shift_opened done [21:49:03]requested_item shift.open_date is exist - process it [21:49:03]req_shift_open_date [21:49:03]req_shift_open_date done [21:49:03]produce_requested_data done [21:49:03]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28767,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271} [21:49:03]process_action_free close_receipt [21:49:03]json_value_free [21:49:03]json_value_free done [21:49:03]process_json_proto returns [21:49:03]Send response to host [21:49:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28767,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271}}} [21:49:03]free response buf [21:49:03]execute_script done [21:49:03]execute_script returns [21:49:03]free content buf [21:49:03]Sock 9.Close socket [21:49:03]Sock 9.Thread stoped [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:24]accept exits with 7 [21:51:24]New connection [21:51:24]New thread 3066785124 created [21:51:24]Thread 3066928484 joined [21:51:24]Waiting for new connection... [21:51:24] Sock 7.Parse request [21:51:24]Sock 7.Check first char [21:51:24]Sock 7.First char is OK [21:51:24]request: POST /json_proto HTTP/1.0 [21:51:24]Method: POST [21:51:24]URL: /json_proto [21:51:24]Method is POST - this is cgi request [21:51:24]url: /json_proto [21:51:24]query_string will be loaded in cgi processing [21:51:24]execute_cgi json_proto POST (null) [21:51:24]execute_cgi path=json_proto method=POST [21:51:24]POST find Content-Length [21:51:24]Host: 172.17.33.3:8080 [21:51:24]Content-Length: 677 [21:51:24]Content-Type: application/json [21:51:24] [21:51:24]POST finish read [21:51:24]Found Content-Length = 677 [21:51:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347112", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 7.780, "sum" : 500.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:51:24]execute_script... [21:51:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347112", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 7.780, "sum" : 500.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:51:24]POST & json_proto [21:51:24]process_json_proto [21:51:24]json parsed OK: [21:51:24]protocol is kg_v1.0 [21:51:24]action value=close_receipt [21:51:24]process_action close_receipt [21:51:24]cmd_close_receipt [21:51:24]MH_GetDate [21:51:24]Write to MH i2c: F0 00 00 66 0D 62 [21:51:24]Write i2c OK [21:51:24]MH_I2C_Read... [21:51:24]Read from MH i2c: F0 [21:51:24]MH_I2C_Read... [21:51:24]Read from MH i2c: F0 09 00 [21:51:24]MH_I2C_Read... [21:51:24]Read from MH i2c: F0 09 00 66 0D 00 DD AC 19 66 23 5B 8F 65 E5 [21:51:24]GetLastDocTimeStamp 1712958541 [21:51:24]current date 1712958685 [21:51:24]FM_GetShiftState [21:51:24]SAM_PROTO_GetShiftState [21:51:24]wFMCommunicate request_size=4 [21:51:24]MH_SAM_APDU [21:51:24]CAPDU: 80 13 01 00 [21:51:24]Write to MH i2c: E2 08 00 67 0D 80 13 01 00 00 00 00 00 F1 [21:51:24]Write i2c OK [21:51:24]MH_I2C_Read... [21:51:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:51:24]Read from MH i2c: E2 [21:51:24]MH_I2C_Read... [21:51:24]Read from MH i2c: E2 0E 00 [21:51:24]MH_I2C_Read... [21:51:24]Read from MH i2c: E2 0E 00 67 0D 00 09 00 01 17 88 19 66 00 00 00 00 90 00 1B [21:51:24]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [21:51:24]wFMCommunicate OK [21:51:24]SAM_PROTO_GetShiftState done [21:51:24]FM_GetShiftState done [21:51:24]opened in 1712949271 [21:51:24]opened+sec_in_day 1713035671 [21:51:24]quantity*price = 50025 [21:51:24]sum+1 = 50026 [21:51:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 42 12.04.2024 21:51 Смена: 114 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28768 ФПД: 184139383198685 1/tax-web-control/client/api/v1/ticket?date=20240412T215125&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28768&fm=184139383198685&tin=02508201610067®Number=0000138879044617&sum=50000 [21:51:25]StoreToDocumentArchive [21:51:25]shift 114 fd 28768 [21:51:25]save to /storage/0114/doc_00028768 [21:51:25]save last doc name /storage/0114/doc_00028768 to /storage/kkm_last_doc_name [21:51:25]save OK [21:51:25]Clear old archive folders... [21:51:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:51:25]tlvbuf is 011BE650 [21:51:25]SAM_PROTO_ClearQueue [21:51:25]wFMCommunicate request_size=4 [21:51:25]MH_SAM_APDU [21:51:25]CAPDU: 80 09 00 00 [21:51:25]Write to MH i2c: E2 08 00 74 0D 80 09 00 00 00 00 00 00 F3 [21:51:25]Write i2c OK [21:51:25]MH_I2C_Read... [21:51:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:51:25]Read from MH i2c: E2 [21:51:25]MH_I2C_Read... [21:51:25]Read from MH i2c: E2 03 00 [21:51:25]MH_I2C_Read... [21:51:25]Read from MH i2c: E2 03 00 74 0D 00 90 00 F5 [21:51:25]RAPDU: 90 00 [21:51:25]wFMCommunicate OK [21:51:25]SAM_PROTO_ClearQueue done [21:51:25]KKMCreateOFDPacket [21:51:25]OFDProtocolAddRootSTLVToBuf [21:51:25]FM_MakeSignedData [21:51:25]FM_MakeSignedData [21:51:25]SAM_PROTO_SignData [21:51:25]wFMCommunicate request_size=4 [21:51:25]MH_SAM_APDU [21:51:25]CAPDU: 80 0D 01 02 [21:51:25]Write to MH i2c: E2 08 00 75 0D 80 0D 01 02 00 00 00 00 FB [21:51:25]Write i2c OK [21:51:25]MH_I2C_Read... [21:51:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:51:25]Read from MH i2c: E2 [21:51:25]MH_I2C_Read... [21:51:25]Read from MH i2c: E2 03 00 [21:51:25]MH_I2C_Read... [21:51:25]Read from MH i2c: E2 03 00 75 0D 00 90 00 F6 [21:51:25]RAPDU: 90 00 [21:51:25]wFMCommunicate OK [21:51:25]wFMCommunicate request_size=255 [21:51:25]MH_SAM_APDU [21:51:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 DD AC 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 60 70 00 00 35 04 06 00 A7 [21:51:25]Write to MH i2c: E2 02 01 76 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 DD AC 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 60 70 00 00 35 04 06 00 A7 00 00 D8 [21:51:25]Write i2c OK [21:51:25]MH_I2C_Read... [21:51:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:51:25]Read from MH i2c: E2 [21:51:25]MH_I2C_Read... [21:51:25]Read from MH i2c: E2 03 00 [21:51:25]MH_I2C_Read... [21:51:25]Read from MH i2c: E2 03 00 76 0D 00 90 00 F7 [21:51:25]RAPDU: 90 00 [21:51:25]wFMCommunicate OK [21:51:25]wFMCommunicate request_size=10 [21:51:25]MH_SAM_APDU [21:51:25]CAPDU: 80 0D 02 02 05 79 4A 86 53 DD [21:51:25]Write to MH i2c: E2 0D 00 77 0D 80 0D 02 02 05 00 79 4A 86 53 DD 00 00 81 [21:51:25]Write i2c OK [21:51:25]MH_I2C_Read... [21:51:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:51:25]Read from MH i2c: E2 [21:51:25]MH_I2C_Read... [21:51:25]Read from MH i2c: E2 03 00 [21:51:25]MH_I2C_Read... [21:51:25]Read from MH i2c: E2 03 00 77 0D 00 90 00 F8 [21:51:25]RAPDU: 90 00 [21:51:25]wFMCommunicate OK [21:51:25]wFMCommunicate request_size=4 [21:51:25]MH_SAM_APDU [21:51:25]CAPDU: 80 0D 03 02 [21:51:25]Write to MH i2c: E2 08 00 78 0D 80 0D 03 02 00 00 00 00 00 [21:51:25]Write i2c OK [21:51:25]MH_I2C_Read... [21:51:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:51:25]Read from MH i2c: E2 [21:51:25]MH_I2C_Read... [21:51:25]Read from MH i2c: E2 0B 00 [21:51:25]MH_I2C_Read... [21:51:25]Read from MH i2c: E2 0B 00 78 0D 00 9E 76 83 4B 0A AE 7B 2D 90 00 43 [21:51:25]RAPDU: 9E 76 83 4B 0A AE 7B 2D 90 00 [21:51:25]wFMCommunicate OK [21:51:25]SAM_PROTO_SignData done [21:51:25]FM_MakeSignedData done [21:51:25]CreateOFDProtocolMessage [21:51:25]wFMCommunicate request_size=4 [21:51:25]MH_SAM_APDU [21:51:25]CAPDU: 80 11 00 00 [21:51:25]Write to MH i2c: E2 08 00 79 0D 80 11 00 00 00 00 00 00 00 [21:51:25]Write i2c OK [21:51:25]MH_I2C_Read... [21:51:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:51:25]Read from MH i2c: E2 [21:51:25]MH_I2C_Read... [21:51:25]Read from MH i2c: E2 17 00 [21:51:25]MH_I2C_Read... [21:51:25]Read from MH i2c: E2 17 00 79 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 4F [21:51:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:51:25]wFMCommunicate OK [21:51:25]CreateOFDProtocolMessage done [21:51:25]OFDSenderStorePacket 28768 [21:51:25]StoreOFDPacket docnum=28768 [21:51:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 6B C2 07 01 89 D3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 DD AC 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 60 70 00 00 35 04 06 00 A7 79 4A 86 53 DD 9E 76 83 4B 0A AE 7B 2D [21:51:25]CheckFolder [21:51:25]dirname=/storage/ofd_packets [21:51:25]CheckFolder done [21:51:25]ProducePacketName [21:51:25]name=ofd_packets/00028768 [21:51:25]NVStorageSaveData ofd_packets/00028768 [21:51:25]File name is /storage/ofd_packets/00028768 [21:51:25]Write 301 bytes [21:51:25]NVStorageSaveData done [21:51:25]OFDSenderStorePacket done [21:51:25]KKMCreateOFDPacket done [21:51:25]NVStorageSaveData kkm_last_timestamp [21:51:25]File name is /storage/kkm_last_timestamp [21:51:25]Write 4 bytes [21:51:25]NVStorageSaveData done [21:51:25]ExternCall_PrintAddStr [21:51:25]wPrintStart [21:51:25]Write to MH i2c: 01 00 00 7A 0D 87 [21:51:25]Write i2c OK [21:51:25]MH_I2C_Read... [21:51:25]Read from MH i2c: 01 [21:51:25]MH_I2C_Read... [21:51:25]Read from MH i2c: 01 07 00 [21:51:25]MH_I2C_Read... [21:51:25]Read from MH i2c: 01 07 00 7A 0D 00 00 00 00 00 FF 0F 9C [21:51:25]RasterBufferAndPrint [21:51:25]line Счет N : (1)347112 [21:51:25]line ИНН: 02508201610067 [21:51:25]line Контрольно-Кассовый Чек [21:51:25]line ПРОДАЖА [21:51:25]line ТРК (МРК, ГНК) : 42 [21:51:25]line Товар: 2710124130 [21:51:25]line Аи-92-К-5 [21:51:25]line 7.780 * 64.30 [21:51:25]line = 500.25 [21:51:25]line НДС 12% НСП 1% [21:51:25]line > о реализуемом товаре [21:51:25]line ОКРУГЛЕНИЕ: -0.25 [21:51:25]line ИТОГО: 500.00 [21:51:25]line Внесено: 500.00 [21:51:25]line СДАЧА: 0.00 [21:51:25]line НСП 1% : 4.43 [21:51:25]line НДС 12% : 53.12 [21:51:25]line Наличными: 500.00 [21:51:25]line Безнал.: 0.00 [21:51:25]line Место: АЗС № 108 "Партнер Нефть" [21:51:25]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [21:51:25]line СНО: Общий режим [21:51:25]line Чек 42 12.04.2024 21:51 [21:51:25]line Смена: 114 ФФД: 1.0 [21:51:25]line ЗНМ: 0300000027 [21:51:25]line РНМ: 0000138879044617 [21:51:25]line Версия ККМ: 001 [21:51:25]line ФМ: 0000000000963154 [21:51:25]line ФД: 28768 [21:51:25]line ФПД: 184139383198685 [21:51:25]line 1/tax-web-control/client/api/v1/ticket?date=20240412T215125&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28768&fm=184139383198685&tin=02508201610067®Number=0000138879044617&sum=50000 [21:51:26]OFD Sender: Processing packet 28768 [packets to send 8, broken 7] [21:51:26]ProducePacketName [21:51:26]name=ofd_packets/00028768 [21:51:26]OFD Sender: To server: pG, [21:51:26]CommunicateWithHost lk.salyk.kg:30040 [21:51:26]ConnectInit lk.salyk.kg [21:51:26]written 0, free lines is 4095 [21:51:26]Connected sock=10 [21:51:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 6B C2 07 01 89 D3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 DD AC 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 60 70 00 00 35 04 06 00 A7 79 4A 86 53 DD 9E 76 83 4B 0A AE 7B 2D [21:51:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 F5 8E 47 00 49 A1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 60 70 00 00 F4 03 04 00 86 57 19 66 B6 04 01 00 00 24 0D 3F 98 CB 97 7C FB [21:51:26]CommunicateWithHost err = 0 [21:51:26]CheckOFDResponse [21:51:26]1017 (14) - 77093643461234 [21:51:26]1041 (16) - 0000000000963154 [21:51:26]1040 (4) - 28768 [21:51:26]1012 (4) - 12.04.2024 15:47 [21:51:26]1206 (1) - 0 [21:51:26]OFD Sender: Remove packet 28768 [21:51:26]ProducePacketName [21:51:26]name=ofd_packets/00028768 [21:51:26]NVStorageDeleteData [21:51:26]Write to MH i2c: 01 00 00 A4 0D B1 [21:51:26]Write i2c OK [21:51:26]MH_I2C_Read... [21:51:26]Read from MH i2c: 01 [21:51:26]MH_I2C_Read... [21:51:26]Read from MH i2c: 01 07 00 [21:51:26]MH_I2C_Read... [21:51:26]Read from MH i2c: 01 07 00 A4 0D 00 00 00 00 00 CA 0C 8E [21:51:26]RasterBufferAndPrint [21:51:26]line [21:51:26]line [21:51:26]line [21:51:26]line [21:51:26]line [21:51:26]written 0, free lines is 3280 [21:51:26]MH_Cut [21:51:26]Write to MH i2c: D1 01 00 AB 0D 01 8A [21:51:26]Write i2c OK [21:51:26]MH_I2C_Read... [21:51:26]Read from MH i2c: D1 [21:51:26]MH_I2C_Read... [21:51:26]Read from MH i2c: D1 01 00 [21:51:26]MH_I2C_Read... [21:51:26]Read from MH i2c: D1 01 00 AB 0D 00 89 [21:51:26]Write to MH i2c: 01 00 00 AC 0D B9 [21:51:26]Write i2c OK [21:51:26]MH_I2C_Read... [21:51:26]OFD Sender: No OFD packet to send [21:51:27]*** Cut start [21:51:27]*** Partial cut [21:51:27]*** CUTSNS_PIN = 1 [21:51:27]*** CUTSNS_PIN = 0 [21:51:27]*** Brake cut motor [21:51:27]Read from MH i2c: 01 [21:51:27]MH_I2C_Read... [21:51:27]*** Stop cut motor [21:51:27]*** Cut end [21:51:27]Read from MH i2c: 01 07 00 [21:51:27]MH_I2C_Read... [21:51:27]Read from MH i2c: 01 07 00 AC 0D 00 00 00 00 00 FF 0F CE [21:51:27]process_action close_receipt done [21:51:27]requested_data is exist [21:51:27]produce_requested_data [21:51:27]requested_item fm.sn is exist - process it [21:51:27]wFMCommunicate request_size=4 [21:51:27]MH_SAM_APDU [21:51:27]CAPDU: 80 11 00 00 [21:51:27]Write to MH i2c: E2 08 00 AD 0D 80 11 00 00 00 00 00 00 34 [21:51:27]Write i2c OK [21:51:27]MH_I2C_Read... [21:51:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:51:28]Read from MH i2c: E2 [21:51:28]MH_I2C_Read... [21:51:28]Read from MH i2c: E2 17 00 [21:51:28]MH_I2C_Read... [21:51:28]Read from MH i2c: E2 17 00 AD 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 83 [21:51:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:51:28]wFMCommunicate OK [21:51:28]requested_item fd.num is exist - process it [21:51:28]SAM_PROTO_GetFieldsCounters [21:51:28]wFMCommunicate request_size=4 [21:51:28]MH_SAM_APDU [21:51:28]CAPDU: 80 13 00 00 [21:51:28]Write to MH i2c: E2 08 00 AE 0D 80 13 00 00 00 00 00 00 37 [21:51:28]Write i2c OK [21:51:28]MH_I2C_Read... [21:51:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:51:28]Read from MH i2c: E2 [21:51:28]MH_I2C_Read... [21:51:28]Read from MH i2c: E2 62 00 [21:51:28]MH_I2C_Read... [21:51:28]Read from MH i2c: E2 62 00 AE 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 60 70 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 35 [21:51:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 60 70 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 [21:51:28]wFMCommunicate OK [21:51:28]SAM_PROTO_GetFieldsCounters done [21:51:28]requested_item shift.num is exist - process it [21:51:28]requested_item shift.opened is exist - process it [21:51:28]req_shift_opened [21:51:28]FM_GetShiftState [21:51:28]SAM_PROTO_GetShiftState [21:51:28]wFMCommunicate request_size=4 [21:51:28]MH_SAM_APDU [21:51:28]CAPDU: 80 13 01 00 [21:51:28]Write to MH i2c: E2 08 00 AF 0D 80 13 01 00 00 00 00 00 39 [21:51:28]Write i2c OK [21:51:28]MH_I2C_Read... [21:51:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:51:28]Read from MH i2c: E2 [21:51:28]MH_I2C_Read... [21:51:28]Read from MH i2c: E2 0E 00 [21:51:28]MH_I2C_Read... [21:51:28]Read from MH i2c: E2 0E 00 AF 0D 00 09 00 01 17 88 19 66 00 00 00 00 90 00 63 [21:51:28]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [21:51:28]wFMCommunicate OK [21:51:28]SAM_PROTO_GetShiftState done [21:51:28]FM_GetShiftState done [21:51:28]req_shift_opened done [21:51:28]requested_item shift.open_date is exist - process it [21:51:28]req_shift_open_date [21:51:28]req_shift_open_date done [21:51:28]produce_requested_data done [21:51:28]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28768,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271} [21:51:28]process_action_free close_receipt [21:51:28]json_value_free [21:51:28]json_value_free done [21:51:28]process_json_proto returns [21:51:28]Send response to host [21:51:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28768,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271}}} [21:51:28]free response buf [21:51:28]execute_script done [21:51:28]execute_script returns [21:51:28]free content buf [21:51:28]Sock 7.Close socket [21:51:28]Sock 7.Thread stoped [21:51:31]OFD Sender: No OFD packet to send [21:51:36]OFD Sender: No OFD packet to send [21:51:41]OFD Sender: No OFD packet to send [21:51:46]OFD Sender: No OFD packet to send [21:51:51]OFD Sender: No OFD packet to send [21:51:56]OFD Sender: No OFD packet to send [21:52:01]OFD Sender: No OFD packet to send [21:52:06]OFD Sender: No OFD packet to send [21:52:11]OFD Sender: No OFD packet to send [21:52:16]OFD Sender: No OFD packet to send [21:52:21]OFD Sender: No OFD packet to send [21:52:26]OFD Sender: No OFD packet to send [21:52:31]OFD Sender: No OFD packet to send [21:52:36]OFD Sender: No OFD packet to send [21:52:41]OFD Sender: No OFD packet to send [21:52:46]OFD Sender: No OFD packet to send [21:52:51]OFD Sender: No OFD packet to send [21:52:56]OFD Sender: No OFD packet to send [21:53:01]OFD Sender: No OFD packet to send [21:53:06]OFD Sender: No OFD packet to send [21:53:11]OFD Sender: No OFD packet to send [21:53:16]OFD Sender: No OFD packet to send [21:53:21]OFD Sender: No OFD packet to send [21:53:26]OFD Sender: No OFD packet to send [21:53:31]OFD Sender: No OFD packet to send [21:53:36]OFD Sender: No OFD packet to send [21:53:41]OFD Sender: No OFD packet to send [21:53:46]OFD Sender: No OFD packet to send [21:53:51]OFD Sender: No OFD packet to send [21:53:56]OFD Sender: No OFD packet to send [21:54:01]OFD Sender: No OFD packet to send [21:54:06]OFD Sender: No OFD packet to send [21:54:11]OFD Sender: No OFD packet to send [21:54:16]OFD Sender: No OFD packet to send [21:54:21]OFD Sender: No OFD packet to send [21:54:26]OFD Sender: No OFD packet to send [21:54:31]OFD Sender: No OFD packet to send [21:54:36]OFD Sender: No OFD packet to send [21:54:41]OFD Sender: No OFD packet to send [21:54:46]OFD Sender: No OFD packet to send [21:54:51]OFD Sender: No OFD packet to send [21:54:56]OFD Sender: No OFD packet to send [21:55:02]OFD Sender: No OFD packet to send [21:55:06]accept exits with 9 [21:55:06]New connection [21:55:06]New thread 3066928484 created [21:55:06]Thread 3066785124 joined [21:55:06]Waiting for new connection... [21:55:06] Sock 9.Parse request [21:55:06]Sock 9.Check first char [21:55:06]Sock 9.First char is OK [21:55:06]request: POST /json_proto HTTP/1.0 [21:55:06]Method: POST [21:55:06]URL: /json_proto [21:55:06]Method is POST - this is cgi request [21:55:06]url: /json_proto [21:55:06]query_string will be loaded in cgi processing [21:55:06]execute_cgi json_proto POST (null) [21:55:06]execute_cgi path=json_proto method=POST [21:55:06]POST find Content-Length [21:55:06]Host: 172.17.33.3:8080 [21:55:06]Content-Length: 840 [21:55:06]Content-Type: application/json [21:55:06] [21:55:06]POST finish read [21:55:06]Found Content-Length = 840 [21:55:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347113", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 4.670, "sum" : 300.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.28 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:55:06]execute_script... [21:55: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)347113", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 4.670, "sum" : 300.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.28 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:55:06]POST & json_proto [21:55:06]process_json_proto [21:55:06]json parsed OK: [21:55:06]protocol is kg_v1.0 [21:55:06]action value=close_receipt [21:55:06]process_action close_receipt [21:55:06]cmd_close_receipt [21:55:06]MH_GetDate [21:55:06]Write to MH i2c: F0 00 00 B0 0D AC [21:55:06]Write i2c OK [21:55:06]MH_I2C_Read... [21:55:06]Read from MH i2c: F0 [21:55:06]MH_I2C_Read... [21:55:06]Read from MH i2c: F0 09 00 [21:55:06]MH_I2C_Read... [21:55:06]Read from MH i2c: F0 09 00 B0 0D 00 BB AD 19 66 23 5B 8F 65 0E [21:55:06]GetLastDocTimeStamp 1712958685 [21:55:06]current date 1712958907 [21:55:06]FM_GetShiftState [21:55:06]SAM_PROTO_GetShiftState [21:55:06]wFMCommunicate request_size=4 [21:55:06]MH_SAM_APDU [21:55:06]CAPDU: 80 13 01 00 [21:55:06]Write to MH i2c: E2 08 00 B1 0D 80 13 01 00 00 00 00 00 3B [21:55:06]Write i2c OK [21:55:06]MH_I2C_Read... [21:55:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:55:06]Read from MH i2c: E2 [21:55:06]MH_I2C_Read... [21:55:06]Read from MH i2c: E2 0E 00 [21:55:06]MH_I2C_Read... [21:55:06]Read from MH i2c: E2 0E 00 B1 0D 00 09 00 01 17 88 19 66 00 00 00 00 90 00 65 [21:55:06]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [21:55:06]wFMCommunicate OK [21:55:06]SAM_PROTO_GetShiftState done [21:55:06]FM_GetShiftState done [21:55:06]opened in 1712949271 [21:55:06]opened+sec_in_day 1713035671 [21:55:06]quantity*price = 30028 [21:55:06]sum+1 = 30029 [21:55:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.28 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 0.00 Безнал.: 300.28 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 43 12.04.2024 21:55 Смена: 114 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 28769 ФПД: 177990739702907 1/tax-web-control/client/api/v1/ticket?date=20240412T215507&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28769&fm=177990739702907&tin=02508201610067®Number=0000138879044617&sum=30028 [21:55:07]StoreToDocumentArchive [21:55:07]shift 114 fd 28769 [21:55:07]save to /storage/0114/doc_00028769 [21:55:07]save last doc name /storage/0114/doc_00028769 to /storage/kkm_last_doc_name [21:55:07]save OK [21:55:07]Clear old archive folders... [21:55:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:55:07]tlvbuf is 011C14E0 [21:55:07]SAM_PROTO_ClearQueue [21:55:07]wFMCommunicate request_size=4 [21:55:07]MH_SAM_APDU [21:55:07]CAPDU: 80 09 00 00 [21:55:07]Write to MH i2c: E2 08 00 BE 0D 80 09 00 00 00 00 00 00 3D [21:55:07]Write i2c OK [21:55:07]MH_I2C_Read... [21:55:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:55:07]Read from MH i2c: E2 [21:55:07]MH_I2C_Read... [21:55:07]Read from MH i2c: E2 03 00 [21:55:07]MH_I2C_Read... [21:55:07]Read from MH i2c: E2 03 00 BE 0D 00 90 00 3F [21:55:07]RAPDU: 90 00 [21:55:07]wFMCommunicate OK [21:55:07]SAM_PROTO_ClearQueue done [21:55:07]KKMCreateOFDPacket [21:55:07]OFDProtocolAddRootSTLVToBuf [21:55:07]FM_MakeSignedData [21:55:07]FM_MakeSignedData [21:55:07]SAM_PROTO_SignData [21:55:07]wFMCommunicate request_size=4 [21:55:07]MH_SAM_APDU [21:55:07]CAPDU: 80 0D 01 02 [21:55:07]Write to MH i2c: E2 08 00 BF 0D 80 0D 01 02 00 00 00 00 45 [21:55:07]Write i2c OK [21:55:07]MH_I2C_Read... [21:55:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:55:07]Read from MH i2c: E2 [21:55:07]MH_I2C_Read... [21:55:07]Read from MH i2c: E2 03 00 [21:55:07]MH_I2C_Read... [21:55:07]Read from MH i2c: E2 03 00 BF 0D 00 90 00 40 [21:55:07]RAPDU: 90 00 [21:55:07]wFMCommunicate OK [21:55:07]wFMCommunicate request_size=255 [21:55:07]MH_SAM_APDU [21:55:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3E 12 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 BB AD 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 61 70 00 00 35 04 06 00 A1 [21:55:07]Write to MH i2c: E2 02 01 C0 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3E 12 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 BB AD 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 61 70 00 00 35 04 06 00 A1 00 00 B8 [21:55:07]Write i2c OK [21:55:07]MH_I2C_Read... [21:55:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:55:07]Read from MH i2c: E2 [21:55:07]MH_I2C_Read... [21:55:07]Read from MH i2c: E2 03 00 [21:55:07]MH_I2C_Read... [21:55:07]Read from MH i2c: E2 03 00 C0 0D 00 90 00 41 [21:55:07]RAPDU: 90 00 [21:55:07]wFMCommunicate OK [21:55:07]wFMCommunicate request_size=10 [21:55:07]MH_SAM_APDU [21:55:07]CAPDU: 80 0D 02 02 05 E1 B2 D0 34 7B [21:55:07]Write to MH i2c: E2 0D 00 C1 0D 80 0D 02 02 05 00 E1 B2 D0 34 7B 00 00 64 [21:55:07]Write i2c OK [21:55:07]MH_I2C_Read... [21:55:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:55:07]Read from MH i2c: E2 [21:55:07]MH_I2C_Read... [21:55:07]Read from MH i2c: E2 03 00 [21:55:07]MH_I2C_Read... [21:55:07]Read from MH i2c: E2 03 00 C1 0D 00 90 00 42 [21:55:07]RAPDU: 90 00 [21:55:07]wFMCommunicate OK [21:55:07]wFMCommunicate request_size=4 [21:55:07]MH_SAM_APDU [21:55:07]CAPDU: 80 0D 03 02 [21:55:07]Write to MH i2c: E2 08 00 C2 0D 80 0D 03 02 00 00 00 00 4A [21:55:07]Write i2c OK [21:55:07]MH_I2C_Read... [21:55:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:55:08]Read from MH i2c: E2 [21:55:08]MH_I2C_Read... [21:55:08]Read from MH i2c: E2 0B 00 [21:55:08]MH_I2C_Read... [21:55:08]Read from MH i2c: E2 0B 00 C2 0D 00 1F DC CE 4C 14 6B D3 FC 90 00 AE [21:55:08]RAPDU: 1F DC CE 4C 14 6B D3 FC 90 00 [21:55:08]wFMCommunicate OK [21:55:08]SAM_PROTO_SignData done [21:55:08]FM_MakeSignedData done [21:55:08]CreateOFDProtocolMessage [21:55:08]wFMCommunicate request_size=4 [21:55:08]MH_SAM_APDU [21:55:08]CAPDU: 80 11 00 00 [21:55:08]Write to MH i2c: E2 08 00 C3 0D 80 11 00 00 00 00 00 00 4A [21:55:08]Write i2c OK [21:55:08]MH_I2C_Read... [21:55:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:55:08]Read from MH i2c: E2 [21:55:08]MH_I2C_Read... [21:55:08]Read from MH i2c: E2 17 00 [21:55:08]MH_I2C_Read... [21:55:08]Read from MH i2c: E2 17 00 C3 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 99 [21:55:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:55:08]wFMCommunicate OK [21:55:08]CreateOFDProtocolMessage done [21:55:08]OFDSenderStorePacket 28769 [21:55:08]StoreOFDPacket docnum=28769 [21:55:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 8C 19 07 01 69 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3E 12 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 BB AD 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 61 70 00 00 35 04 06 00 A1 E1 B2 D0 34 7B 1F DC CE 4C 14 6B D3 FC [21:55:08]CheckFolder [21:55:08]dirname=/storage/ofd_packets [21:55:08]CheckFolder done [21:55:08]ProducePacketName [21:55:08]name=ofd_packets/00028769 [21:55:08]NVStorageSaveData ofd_packets/00028769 [21:55:08]File name is /storage/ofd_packets/00028769 [21:55:08]Write 301 bytes [21:55:08]NVStorageSaveData done [21:55:08]OFDSenderStorePacket done [21:55:08]KKMCreateOFDPacket done [21:55:08]NVStorageSaveData kkm_last_timestamp [21:55:08]File name is /storage/kkm_last_timestamp [21:55:08]Write 4 bytes [21:55:08]NVStorageSaveData done [21:55:08]ExternCall_PrintAddStr [21:55:08]wPrintStart [21:55:08]Write to MH i2c: 01 00 00 C4 0D D1 [21:55:08]Write i2c OK [21:55:08]MH_I2C_Read... [21:55:08]Read from MH i2c: 01 [21:55:08]MH_I2C_Read... [21:55:08]Read from MH i2c: 01 07 00 [21:55:08]MH_I2C_Read... [21:55:08]Read from MH i2c: 01 07 00 C4 0D 00 00 00 00 00 FF 0F E6 [21:55:08]RasterBufferAndPrint [21:55:08]line Счет N : (1)347113 [21:55:08]line ИНН: 02508201610067 [21:55:08]line Контрольно-Кассовый Чек [21:55:08]line ПРОДАЖА [21:55:08]line ТРК (МРК, ГНК) : 32 [21:55:08]line Товар: 2710124130 [21:55:08]line Аи-92-К-5 [21:55:08]line 4.670 * 64.30 [21:55:08]line = 300.28 [21:55:08]line НДС 12% НСП 1% [21:55:08]line > о реализуемом товаре [21:55:08]line ИТОГО: 300.28 [21:55:08]line НСП 1% : 2.66 [21:55:08]line НДС 12% : 31.89 [21:55:08]line Наличными: 0.00 [21:55:08]line Безнал.: 300.28 [21:55:08]line Место: АЗС № 108 "Партнер Нефть" [21:55:08]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [21:55:08]line СНО: Общий режим [21:55:08]line Чек 43 12.04.2024 21:55 [21:55:08]line Смена: 114 ФФД: 1.0 [21:55:08]line ЗНМ: 0300000027 [21:55:08]line РНМ: 0000138879044617 [21:55:08]line Версия ККМ: 001 [21:55:08]line Платежная система: АКБ Кыргызстан [21:55:08]line ФМ: 0000000000963154 [21:55:08]line ФД: 28769 [21:55:08]line ФПД: 177990739702907 [21:55:08]line 1/tax-web-control/client/api/v1/ticket?date=20240412T215507&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28769&fm=177990739702907&tin=02508201610067®Number=0000138879044617&sum=30028 [21:55:08]OFD Sender: Processing packet 28769 [packets to send 8, broken 7] [21:55:08]ProducePacketName [21:55:08]name=ofd_packets/00028769 [21:55:08]OFD Sender: To server: pG, [21:55:08]CommunicateWithHost lk.salyk.kg:30040 [21:55:08]ConnectInit lk.salyk.kg [21:55:08]written 0, free lines is 4095 [21:55:08]Connected sock=10 [21:55:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 8C 19 07 01 69 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3E 12 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 BB AD 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 61 70 00 00 35 04 06 00 A1 E1 B2 D0 34 7B 1F DC CE 4C 14 6B D3 FC [21:55:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 7C 5D 47 00 3B 3E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 61 70 00 00 F4 03 04 00 64 58 19 66 B6 04 01 00 00 B6 67 B8 C9 09 FD FE 5E [21:55:08]CommunicateWithHost err = 0 [21:55:08]CheckOFDResponse [21:55:08]1017 (14) - 77093643461234 [21:55:08]1041 (16) - 0000000000963154 [21:55:08]1040 (4) - 28769 [21:55:08]1012 (4) - 12.04.2024 15:51 [21:55:08]1206 (1) - 0 [21:55:08]OFD Sender: Remove packet 28769 [21:55:08]ProducePacketName [21:55:08]name=ofd_packets/00028769 [21:55:08]NVStorageDeleteData [21:55:08]Write to MH i2c: 01 00 00 ED 0D FA [21:55:08]Write i2c OK [21:55:08]MH_I2C_Read... [21:55:08]Read from MH i2c: 01 [21:55:08]MH_I2C_Read... [21:55:08]Read from MH i2c: 01 07 00 [21:55:08]MH_I2C_Read... [21:55:08]Read from MH i2c: 01 07 00 ED 0D 00 00 00 00 00 E1 0C EE [21:55:08]RasterBufferAndPrint [21:55:08]line [21:55:08]line [21:55:08]line [21:55:08]line [21:55:08]line [21:55:08]written 0, free lines is 3303 [21:55:08]MH_Cut [21:55:08]Write to MH i2c: D1 01 00 F4 0D 01 D3 [21:55:08]Write i2c OK [21:55:08]MH_I2C_Read... [21:55:08]Read from MH i2c: D1 [21:55:08]MH_I2C_Read... [21:55:08]Read from MH i2c: D1 01 00 [21:55:08]MH_I2C_Read... [21:55:08]Read from MH i2c: D1 01 00 F4 0D 00 D2 [21:55:08]Write to MH i2c: 01 00 00 F5 0D 02 [21:55:08]Write i2c OK [21:55:08]MH_I2C_Read... [21:55:09]OFD Sender: No OFD packet to send [21:55:09]*** Cut start [21:55:09]*** Partial cut [21:55:09]*** CUTSNS_PIN = 1 [21:55:09]*** CUTSNS_PIN = 0 [21:55:09]*** Brake cut motor [21:55:10]Read from MH i2c: 01 [21:55:10]MH_I2C_Read... [21:55:10]*** Stop cut motor [21:55:10]*** Cut end [21:55:10]Read from MH i2c: 01 07 00 [21:55:10]MH_I2C_Read... [21:55:10]Read from MH i2c: 01 07 00 F5 0D 00 00 00 00 00 FF 0F 17 [21:55:10]process_action close_receipt done [21:55:10]requested_data is exist [21:55:10]produce_requested_data [21:55:10]requested_item fm.sn is exist - process it [21:55:10]wFMCommunicate request_size=4 [21:55:10]MH_SAM_APDU [21:55:10]CAPDU: 80 11 00 00 [21:55:10]Write to MH i2c: E2 08 00 F6 0D 80 11 00 00 00 00 00 00 7D [21:55:10]Write i2c OK [21:55:10]MH_I2C_Read... [21:55:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:55:10]Read from MH i2c: E2 [21:55:10]MH_I2C_Read... [21:55:10]Read from MH i2c: E2 17 00 [21:55:10]MH_I2C_Read... [21:55:10]Read from MH i2c: E2 17 00 F6 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 CC [21:55:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:55:10]wFMCommunicate OK [21:55:10]requested_item fd.num is exist - process it [21:55:10]SAM_PROTO_GetFieldsCounters [21:55:10]wFMCommunicate request_size=4 [21:55:10]MH_SAM_APDU [21:55:10]CAPDU: 80 13 00 00 [21:55:10]Write to MH i2c: E2 08 00 F7 0D 80 13 00 00 00 00 00 00 80 [21:55:10]Write i2c OK [21:55:10]MH_I2C_Read... [21:55:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:55:10]Read from MH i2c: E2 [21:55:10]MH_I2C_Read... [21:55:10]Read from MH i2c: E2 62 00 [21:55:10]MH_I2C_Read... [21:55:10]Read from MH i2c: E2 62 00 F7 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 61 70 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 82 [21:55:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 61 70 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 [21:55:10]wFMCommunicate OK [21:55:10]SAM_PROTO_GetFieldsCounters done [21:55:10]requested_item shift.num is exist - process it [21:55:10]requested_item shift.opened is exist - process it [21:55:10]req_shift_opened [21:55:10]FM_GetShiftState [21:55:10]SAM_PROTO_GetShiftState [21:55:10]wFMCommunicate request_size=4 [21:55:10]MH_SAM_APDU [21:55:10]CAPDU: 80 13 01 00 [21:55:10]Write to MH i2c: E2 08 00 F8 0D 80 13 01 00 00 00 00 00 82 [21:55:10]Write i2c OK [21:55:10]MH_I2C_Read... [21:55:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:55:10]Read from MH i2c: E2 [21:55:10]MH_I2C_Read... [21:55:10]Read from MH i2c: E2 0E 00 [21:55:10]MH_I2C_Read... [21:55:10]Read from MH i2c: E2 0E 00 F8 0D 00 09 00 01 17 88 19 66 00 00 00 00 90 00 AC [21:55:10]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [21:55:10]wFMCommunicate OK [21:55:10]SAM_PROTO_GetShiftState done [21:55:10]FM_GetShiftState done [21:55:10]req_shift_opened done [21:55:10]requested_item shift.open_date is exist - process it [21:55:10]req_shift_open_date [21:55:10]req_shift_open_date done [21:55:10]produce_requested_data done [21:55:10]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28769,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271} [21:55:10]process_action_free close_receipt [21:55:10]json_value_free [21:55:10]json_value_free done [21:55:10]process_json_proto returns [21:55:10]Send response to host [21:55:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28769,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271}}} [21:55:10]free response buf [21:55:10]execute_script done [21:55:10]execute_script returns [21:55:10]free content buf [21:55:10]Sock 9.Close socket [21:55:10]Sock 9.Thread stoped [21:55:10]accept exits with 7 [21:55:10]New connection [21:55:10]New thread 3066785124 created [21:55:10]Thread 3066928484 joined [21:55:10]Waiting for new connection... [21:55:10] Sock 7.Parse request [21:55:10]Sock 7.Check first char [21:55:10]Sock 7.First char is OK [21:55:10]request: POST /json_proto HTTP/1.0 [21:55:10]Method: POST [21:55:10]URL: /json_proto [21:55:10]Method is POST - this is cgi request [21:55:10]url: /json_proto [21:55:10]query_string will be loaded in cgi processing [21:55:10]execute_cgi json_proto POST (null) [21:55:10]execute_cgi path=json_proto method=POST [21:55:10]POST find Content-Length [21:55:10]Host: 172.17.33.3:8080 [21:55:10]Content-Length: 677 [21:55:10]Content-Type: application/json [21:55:10] [21:55:10]POST finish read [21:55:10]Found Content-Length = 677 [21:55:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347114", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 1.560, "sum" : 100.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:55:10]execute_script... [21:55: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)347114", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 1.560, "sum" : 100.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:55:10]POST & json_proto [21:55:10]process_json_proto [21:55:10]json parsed OK: [21:55:10]protocol is kg_v1.0 [21:55:10]action value=close_receipt [21:55:10]process_action close_receipt [21:55:10]cmd_close_receipt [21:55:10]MH_GetDate [21:55:10]Write to MH i2c: F0 00 00 F9 0D F5 [21:55:10]Write i2c OK [21:55:10]MH_I2C_Read... [21:55:10]Read from MH i2c: F0 [21:55:10]MH_I2C_Read... [21:55:10]Read from MH i2c: F0 09 00 [21:55:10]MH_I2C_Read... [21:55:10]Read from MH i2c: F0 09 00 F9 0D 00 C0 AD 19 66 23 5B 8F 65 5C [21:55:10]GetLastDocTimeStamp 1712958907 [21:55:10]current date 1712958912 [21:55:10]FM_GetShiftState [21:55:10]SAM_PROTO_GetShiftState [21:55:10]wFMCommunicate request_size=4 [21:55:10]MH_SAM_APDU [21:55:10]CAPDU: 80 13 01 00 [21:55:10]Write to MH i2c: E2 08 00 FA 0D 80 13 01 00 00 00 00 00 84 [21:55:10]Write i2c OK [21:55:10]MH_I2C_Read... [21:55:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:55:10]Read from MH i2c: E2 [21:55:10]MH_I2C_Read... [21:55:10]Read from MH i2c: E2 0E 00 [21:55:10]MH_I2C_Read... [21:55:10]Read from MH i2c: E2 0E 00 FA 0D 00 09 00 01 17 88 19 66 00 00 00 00 90 00 AE [21:55:10]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [21:55:10]wFMCommunicate OK [21:55:10]SAM_PROTO_GetShiftState done [21:55:10]FM_GetShiftState done [21:55:10]opened in 1712949271 [21:55:10]opened+sec_in_day 1713035671 [21:55:10]quantity*price = 10030 [21:55:10]sum+1 = 10032 [21:55:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 100.00 Внесено: 100.00 СДАЧА: 0.00 НСП 1% : 0.89 НДС 12% : 10.65 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 44 12.04.2024 21:55 Смена: 114 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28770 ФПД: 6193334939152 1/tax-web-control/client/api/v1/ticket?date=20240412T215512&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28770&fm=6193334939152&tin=02508201610067®Number=0000138879044617&sum=10000 [21:55:12]StoreToDocumentArchive [21:55:12]shift 114 fd 28770 [21:55:12]save to /storage/0114/doc_00028770 [21:55:12]save last doc name /storage/0114/doc_00028770 to /storage/kkm_last_doc_name [21:55:12]save OK [21:55:12]Clear old archive folders... [21:55:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:55:12]tlvbuf is 012246F0 [21:55:12]SAM_PROTO_ClearQueue [21:55:12]wFMCommunicate request_size=4 [21:55:12]MH_SAM_APDU [21:55:12]CAPDU: 80 09 00 00 [21:55:12]Write to MH i2c: E2 08 00 07 0E 80 09 00 00 00 00 00 00 87 [21:55:12]Write i2c OK [21:55:12]MH_I2C_Read... [21:55:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:55:12]Read from MH i2c: E2 [21:55:12]MH_I2C_Read... [21:55:12]Read from MH i2c: E2 03 00 [21:55:12]MH_I2C_Read... [21:55:12]Read from MH i2c: E2 03 00 07 0E 00 90 00 89 [21:55:12]RAPDU: 90 00 [21:55:12]wFMCommunicate OK [21:55:12]SAM_PROTO_ClearQueue done [21:55:12]KKMCreateOFDPacket [21:55:12]OFDProtocolAddRootSTLVToBuf [21:55:12]FM_MakeSignedData [21:55:12]FM_MakeSignedData [21:55:12]SAM_PROTO_SignData [21:55:12]wFMCommunicate request_size=4 [21:55:12]MH_SAM_APDU [21:55:12]CAPDU: 80 0D 01 02 [21:55:12]Write to MH i2c: E2 08 00 08 0E 80 0D 01 02 00 00 00 00 8F [21:55:12]Write i2c OK [21:55:12]MH_I2C_Read... [21:55:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:55:12]Read from MH i2c: E2 [21:55:12]MH_I2C_Read... [21:55:12]Read from MH i2c: E2 03 00 [21:55:12]MH_I2C_Read... [21:55:12]Read from MH i2c: E2 03 00 08 0E 00 90 00 8A [21:55:12]RAPDU: 90 00 [21:55:12]wFMCommunicate OK [21:55:12]wFMCommunicate request_size=255 [21:55:12]MH_SAM_APDU [21:55:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 18 06 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 2F 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 C0 AD 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 62 70 00 00 35 04 06 00 05 [21:55:12]Write to MH i2c: E2 02 01 09 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 18 06 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 2F 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 C0 AD 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 62 70 00 00 35 04 06 00 05 00 00 B6 [21:55:12]Write i2c OK [21:55:12]MH_I2C_Read... [21:55:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:55:12]Read from MH i2c: E2 [21:55:12]MH_I2C_Read... [21:55:12]Read from MH i2c: E2 03 00 [21:55:12]MH_I2C_Read... [21:55:12]Read from MH i2c: E2 03 00 09 0E 00 90 00 8B [21:55:12]RAPDU: 90 00 [21:55:12]wFMCommunicate OK [21:55:12]wFMCommunicate request_size=10 [21:55:12]MH_SAM_APDU [21:55:12]CAPDU: 80 0D 02 02 05 A1 FF 87 6E 10 [21:55:12]Write to MH i2c: E2 0D 00 0A 0E 80 0D 02 02 05 00 A1 FF 87 6E 10 00 00 41 [21:55:12]Write i2c OK [21:55:12]MH_I2C_Read... [21:55:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:55:12]Read from MH i2c: E2 [21:55:12]MH_I2C_Read... [21:55:12]Read from MH i2c: E2 03 00 [21:55:12]MH_I2C_Read... [21:55:12]Read from MH i2c: E2 03 00 0A 0E 00 90 00 8C [21:55:12]RAPDU: 90 00 [21:55:12]wFMCommunicate OK [21:55:12]wFMCommunicate request_size=4 [21:55:12]MH_SAM_APDU [21:55:12]CAPDU: 80 0D 03 02 [21:55:12]Write to MH i2c: E2 08 00 0B 0E 80 0D 03 02 00 00 00 00 94 [21:55:12]Write i2c OK [21:55:12]MH_I2C_Read... [21:55:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:55:12]Read from MH i2c: E2 [21:55:12]MH_I2C_Read... [21:55:12]Read from MH i2c: E2 0B 00 [21:55:12]MH_I2C_Read... [21:55:12]Read from MH i2c: E2 0B 00 0B 0E 00 11 D3 DF E9 AF D3 FF 48 90 00 0A [21:55:12]RAPDU: 11 D3 DF E9 AF D3 FF 48 90 00 [21:55:12]wFMCommunicate OK [21:55:12]SAM_PROTO_SignData done [21:55:12]FM_MakeSignedData done [21:55:12]CreateOFDProtocolMessage [21:55:12]wFMCommunicate request_size=4 [21:55:12]MH_SAM_APDU [21:55:12]CAPDU: 80 11 00 00 [21:55:12]Write to MH i2c: E2 08 00 0C 0E 80 11 00 00 00 00 00 00 94 [21:55:12]Write i2c OK [21:55:12]MH_I2C_Read... [21:55:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:55:12]Read from MH i2c: E2 [21:55:12]MH_I2C_Read... [21:55:12]Read from MH i2c: E2 17 00 [21:55:12]MH_I2C_Read... [21:55:12]Read from MH i2c: E2 17 00 0C 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 E3 [21:55:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:55:12]wFMCommunicate OK [21:55:12]CreateOFDProtocolMessage done [21:55:12]OFDSenderStorePacket 28770 [21:55:12]StoreOFDPacket docnum=28770 [21:55:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 03 00 07 01 4C F8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 18 06 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 2F 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 C0 AD 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 62 70 00 00 35 04 06 00 05 A1 FF 87 6E 10 11 D3 DF E9 AF D3 FF 48 [21:55:12]CheckFolder [21:55:12]dirname=/storage/ofd_packets [21:55:12]CheckFolder done [21:55:12]ProducePacketName [21:55:12]name=ofd_packets/00028770 [21:55:12]NVStorageSaveData ofd_packets/00028770 [21:55:12]File name is /storage/ofd_packets/00028770 [21:55:12]Write 301 bytes [21:55:12]NVStorageSaveData done [21:55:12]OFDSenderStorePacket done [21:55:12]KKMCreateOFDPacket done [21:55:12]NVStorageSaveData kkm_last_timestamp [21:55:12]File name is /storage/kkm_last_timestamp [21:55:12]Write 4 bytes [21:55:12]NVStorageSaveData done [21:55:12]ExternCall_PrintAddStr [21:55:12]wPrintStart [21:55:12]Write to MH i2c: 01 00 00 0D 0E 1B [21:55:12]Write i2c OK [21:55:12]MH_I2C_Read... [21:55:12]Read from MH i2c: 01 [21:55:12]MH_I2C_Read... [21:55:12]Read from MH i2c: 01 07 00 [21:55:12]MH_I2C_Read... [21:55:12]Read from MH i2c: 01 07 00 0D 0E 00 00 00 00 00 FF 0F 30 [21:55:12]RasterBufferAndPrint [21:55:12]line Счет N : (1)347114 [21:55:12]line ИНН: 02508201610067 [21:55:12]line Контрольно-Кассовый Чек [21:55:12]line ПРОДАЖА [21:55:12]line ТРК (МРК, ГНК) : 32 [21:55:12]line Товар: 2710124130 [21:55:12]line Аи-92-К-5 [21:55:12]line 1.560 * 64.30 [21:55:12]line = 100.31 [21:55:12]line НДС 12% НСП 1% [21:55:12]line > о реализуемом товаре [21:55:12]line ОКРУГЛЕНИЕ: -0.31 [21:55:12]line ИТОГО: 100.00 [21:55:13]line Внесено: 100.00 [21:55:13]line СДАЧА: 0.00 [21:55:13]line НСП 1% : 0.89 [21:55:13]line НДС 12% : 10.65 [21:55:13]line Наличными: 100.00 [21:55:13]line Безнал.: 0.00 [21:55:13]line Место: АЗС № 108 "Партнер Нефть" [21:55:13]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [21:55:13]line СНО: Общий режим [21:55:13]line Чек 44 12.04.2024 21:55 [21:55:13]line Смена: 114 ФФД: 1.0 [21:55:13]line ЗНМ: 0300000027 [21:55:13]line РНМ: 0000138879044617 [21:55:13]line Версия ККМ: 001 [21:55:13]line ФМ: 0000000000963154 [21:55:13]line ФД: 28770 [21:55:13]line ФПД: 6193334939152 [21:55:13]line 1/tax-web-control/client/api/v1/ticket?date=20240412T215512&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28770&fm=6193334939152&tin=02508201610067®Number=0000138879044617&sum=10000 [21:55:13]OFD Sender: Processing packet 28770 [packets to send 8, broken 7] [21:55:13]ProducePacketName [21:55:13]name=ofd_packets/00028770 [21:55:13]OFD Sender: To server: pG, [21:55:13]CommunicateWithHost lk.salyk.kg:30040 [21:55:13]ConnectInit lk.salyk.kg [21:55:13]written 0, free lines is 4095 [21:55:13]Connected sock=10 [21:55:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 03 00 07 01 4C F8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 18 06 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 2F 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 C0 AD 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 62 70 00 00 35 04 06 00 05 A1 FF 87 6E 10 11 D3 DF E9 AF D3 FF 48 [21:55:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 55 6A 47 00 5D D8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 62 70 00 00 F4 03 04 00 69 58 19 66 B6 04 01 00 00 BB 29 95 ED 81 CC EC D0 [21:55:13]CommunicateWithHost err = 0 [21:55:13]CheckOFDResponse [21:55:13]1017 (14) - 77093643461234 [21:55:13]1041 (16) - 0000000000963154 [21:55:13]1040 (4) - 28770 [21:55:13]1012 (4) - 12.04.2024 15:51 [21:55:13]1206 (1) - 0 [21:55:13]OFD Sender: Remove packet 28770 [21:55:13]ProducePacketName [21:55:13]name=ofd_packets/00028770 [21:55:13]NVStorageDeleteData [21:55:13]Write to MH i2c: 01 00 00 37 0E 45 [21:55:13]Write i2c OK [21:55:13]MH_I2C_Read... [21:55:13]Read from MH i2c: 01 [21:55:13]MH_I2C_Read... [21:55:13]Read from MH i2c: 01 07 00 [21:55:13]MH_I2C_Read... [21:55:13]Read from MH i2c: 01 07 00 37 0E 00 00 00 00 00 D1 0C 29 [21:55:13]RasterBufferAndPrint [21:55:13]line [21:55:13]line [21:55:13]line [21:55:13]line [21:55:13]line [21:55:13]written 0, free lines is 3290 [21:55:13]MH_Cut [21:55:13]Write to MH i2c: D1 01 00 3E 0E 01 1E [21:55:13]Write i2c OK [21:55:13]MH_I2C_Read... [21:55:13]Read from MH i2c: D1 [21:55:13]MH_I2C_Read... [21:55:13]Read from MH i2c: D1 01 00 [21:55:13]MH_I2C_Read... [21:55:13]Read from MH i2c: D1 01 00 3E 0E 00 1D [21:55:13]Write to MH i2c: 01 00 00 3F 0E 4D [21:55:13]Write i2c OK [21:55:13]MH_I2C_Read... [21:55:14]OFD Sender: No OFD packet to send [21:55:14]*** Cut start [21:55:14]*** Partial cut [21:55:14]*** CUTSNS_PIN = 1 [21:55:14]*** CUTSNS_PIN = 0 [21:55:14]*** Brake cut motor [21:55:15]Read from MH i2c: 01 [21:55:15]MH_I2C_Read... [21:55:15]*** Stop cut motor [21:55:15]*** Cut end [21:55:15]Read from MH i2c: 01 07 00 [21:55:15]MH_I2C_Read... [21:55:15]Read from MH i2c: 01 07 00 3F 0E 00 00 00 00 00 FF 0F 62 [21:55:15]process_action close_receipt done [21:55:15]requested_data is exist [21:55:15]produce_requested_data [21:55:15]requested_item fm.sn is exist - process it [21:55:15]wFMCommunicate request_size=4 [21:55:15]MH_SAM_APDU [21:55:15]CAPDU: 80 11 00 00 [21:55:15]Write to MH i2c: E2 08 00 40 0E 80 11 00 00 00 00 00 00 C8 [21:55:15]Write i2c OK [21:55:15]MH_I2C_Read... [21:55:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:55:15]Read from MH i2c: E2 [21:55:15]MH_I2C_Read... [21:55:15]Read from MH i2c: E2 17 00 [21:55:15]MH_I2C_Read... [21:55:15]Read from MH i2c: E2 17 00 40 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 17 [21:55:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:55:15]wFMCommunicate OK [21:55:15]requested_item fd.num is exist - process it [21:55:15]SAM_PROTO_GetFieldsCounters [21:55:15]wFMCommunicate request_size=4 [21:55:15]MH_SAM_APDU [21:55:15]CAPDU: 80 13 00 00 [21:55:15]Write to MH i2c: E2 08 00 41 0E 80 13 00 00 00 00 00 00 CB [21:55:15]Write i2c OK [21:55:15]MH_I2C_Read... [21:55:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:55:15]Read from MH i2c: E2 [21:55:15]MH_I2C_Read... [21:55:15]Read from MH i2c: E2 62 00 [21:55:15]MH_I2C_Read... [21:55:15]Read from MH i2c: E2 62 00 41 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 62 70 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 D1 [21:55:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 62 70 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 [21:55:15]wFMCommunicate OK [21:55:15]SAM_PROTO_GetFieldsCounters done [21:55:15]requested_item shift.num is exist - process it [21:55:15]requested_item shift.opened is exist - process it [21:55:15]req_shift_opened [21:55:15]FM_GetShiftState [21:55:15]SAM_PROTO_GetShiftState [21:55:15]wFMCommunicate request_size=4 [21:55:15]MH_SAM_APDU [21:55:15]CAPDU: 80 13 01 00 [21:55:15]Write to MH i2c: E2 08 00 42 0E 80 13 01 00 00 00 00 00 CD [21:55:15]Write i2c OK [21:55:15]MH_I2C_Read... [21:55:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:55:15]Read from MH i2c: E2 [21:55:15]MH_I2C_Read... [21:55:15]Read from MH i2c: E2 0E 00 [21:55:15]MH_I2C_Read... [21:55:15]Read from MH i2c: E2 0E 00 42 0E 00 09 00 01 17 88 19 66 00 00 00 00 90 00 F7 [21:55:15]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [21:55:15]wFMCommunicate OK [21:55:15]SAM_PROTO_GetShiftState done [21:55:15]FM_GetShiftState done [21:55:15]req_shift_opened done [21:55:15]requested_item shift.open_date is exist - process it [21:55:15]req_shift_open_date [21:55:15]req_shift_open_date done [21:55:15]produce_requested_data done [21:55:15]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28770,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271} [21:55:15]process_action_free close_receipt [21:55:15]json_value_free [21:55:15]json_value_free done [21:55:15]process_json_proto returns [21:55:15]Send response to host [21:55:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28770,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271}}} [21:55:15]free response buf [21:55:15]execute_script done [21:55:15]execute_script returns [21:55:15]free content buf [21:55:15]Sock 7.Close socket [21:55:15]Sock 7.Thread stoped [21:55:19]OFD Sender: No OFD packet to send [21:55:24]OFD Sender: No OFD packet to send [21:55:29]OFD Sender: No OFD packet to send [21:55:34]OFD Sender: No OFD packet to send [21:55:39]OFD Sender: No OFD packet to send [21:55:44]OFD Sender: No OFD packet to send [21:55:49]OFD Sender: No OFD packet to send [21:55:54]OFD Sender: No OFD packet to send [21:55:59]OFD Sender: No OFD packet to send [21:56:04]OFD Sender: No OFD packet to send [21:56:09]OFD Sender: No OFD packet to send [21:56:14]OFD Sender: No OFD packet to send [21:56:19]OFD Sender: No OFD packet to send [21:56:24]OFD Sender: No OFD packet to send [21:56:29]OFD Sender: No OFD packet to send [21:56:34]OFD Sender: No OFD packet to send [21:56:39]OFD Sender: No OFD packet to send [21:56:44]OFD Sender: No OFD packet to send [21:56:49]OFD Sender: No OFD packet to send [21:56:54]OFD Sender: No OFD packet to send [21:56:59]OFD Sender: No OFD packet to send [21:57:04]OFD Sender: No OFD packet to send [21:57:09]OFD Sender: No OFD packet to send [21:57:14]OFD Sender: No OFD packet to send [21:57:19]OFD Sender: No OFD packet to send [21:57:24]OFD Sender: No OFD packet to send [21:57:29]OFD Sender: No OFD packet to send [21:57:34]OFD Sender: No OFD packet to send [21:57:39]OFD Sender: No OFD packet to send [21:57:44]OFD Sender: No OFD packet to send [21:57:49]OFD Sender: No OFD packet to send [21:57:54]OFD Sender: No OFD packet to send [21:57:59]OFD Sender: No OFD packet to send [21:58:04]OFD Sender: No OFD packet to send [21:58:09]OFD Sender: No OFD packet to send [21:58:14]OFD Sender: No OFD packet to send [21:58:19]OFD Sender: No OFD packet to send [21:58:24]OFD Sender: No OFD packet to send [21:58:29]OFD Sender: No OFD packet to send [21:58:34]OFD Sender: No OFD packet to send [21:58:39]OFD Sender: No OFD packet to send [21:58:44]OFD Sender: No OFD packet to send [21:58:49]OFD Sender: No OFD packet to send [21:58:54]OFD Sender: No OFD packet to send [21:58:59]OFD Sender: No OFD packet to send [21:59:04]OFD Sender: No OFD packet to send [21:59:09]OFD Sender: No OFD packet to send [21:59:14]OFD Sender: No OFD packet to send [21:59:19]OFD Sender: No OFD packet to send [21:59:24]OFD Sender: No OFD packet to send [21:59:29]OFD Sender: No OFD packet to send [21:59:34]OFD Sender: No OFD packet to send [21:59:39]OFD Sender: No OFD packet to send [21:59:44]OFD Sender: No OFD packet to send [21:59:49]OFD Sender: No OFD packet to send [21:59:54]OFD Sender: No OFD packet to send [21:59:59]OFD Sender: No OFD packet to send [22:00:02]accept exits with 9 [22:00:02]New connection [22:00:02]New thread 3066928484 created [22:00:02]Thread 3066785124 joined [22:00:02]Waiting for new connection... [22:00:02] Sock 9.Parse request [22:00:02]Sock 9.Check first char [22:00:02]Sock 9.First char is OK [22:00:02]request: POST /json_proto HTTP/1.0 [22:00:02]Method: POST [22:00:02]URL: /json_proto [22:00:02]Method is POST - this is cgi request [22:00:02]url: /json_proto [22:00:02]query_string will be loaded in cgi processing [22:00:02]execute_cgi json_proto POST (null) [22:00:02]execute_cgi path=json_proto method=POST [22:00:02]POST find Content-Length [22:00:02]Host: 172.17.33.3:8080 [22:00:02]Content-Length: 640 [22:00:02]Content-Type: application/json [22:00:02] [22:00:02]POST finish read [22:00:02]Found Content-Length = 640 [22:00:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347115", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.50, "quantity" : 10.000, "sum" : 725.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 725.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:00:02]execute_script... [22:00:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347115", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.50, "quantity" : 10.000, "sum" : 725.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 725.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:00:02]POST & json_proto [22:00:02]process_json_proto [22:00:02]json parsed OK: [22:00:02]protocol is kg_v1.0 [22:00:02]action value=close_receipt [22:00:02]process_action close_receipt [22:00:02]cmd_close_receipt [22:00:02]MH_GetDate [22:00:02]Write to MH i2c: F0 00 00 43 0E 40 [22:00:02]Write i2c OK [22:00:02]MH_I2C_Read... [22:00:02]Read from MH i2c: F0 [22:00:02]MH_I2C_Read... [22:00:02]Read from MH i2c: F0 09 00 [22:00:02]MH_I2C_Read... [22:00:02]Read from MH i2c: F0 09 00 43 0E 00 E3 AE 19 66 23 5B 8F 65 CB [22:00:02]GetLastDocTimeStamp 1712958912 [22:00:02]current date 1712959203 [22:00:02]FM_GetShiftState [22:00:02]SAM_PROTO_GetShiftState [22:00:02]wFMCommunicate request_size=4 [22:00:02]MH_SAM_APDU [22:00:02]CAPDU: 80 13 01 00 [22:00:02]Write to MH i2c: E2 08 00 44 0E 80 13 01 00 00 00 00 00 CF [22:00:02]Write i2c OK [22:00:02]MH_I2C_Read... [22:00:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:00:02]Read from MH i2c: E2 [22:00:02]MH_I2C_Read... [22:00:02]Read from MH i2c: E2 0E 00 [22:00:02]MH_I2C_Read... [22:00:02]Read from MH i2c: E2 0E 00 44 0E 00 09 00 01 17 88 19 66 00 00 00 00 90 00 F9 [22:00:02]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [22:00:02]wFMCommunicate OK [22:00:02]SAM_PROTO_GetShiftState done [22:00:02]FM_GetShiftState done [22:00:02]opened in 1712949271 [22:00:02]opened+sec_in_day 1713035671 [22:00:02]quantity*price = 72500 [22:00:02]sum+1 = 72501 [22:00:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 725.00 НСП 1% : 6.42 НДС 12% : 76.99 Наличными: 725.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 45 12.04.2024 22:00 Смена: 114 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28771 ФПД: 11484633061517 1/tax-web-control/client/api/v1/ticket?date=20240412T220003&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28771&fm=11484633061517&tin=02508201610067®Number=0000138879044617&sum=72500 [22:00:03]StoreToDocumentArchive [22:00:03]shift 114 fd 28771 [22:00:03]save to /storage/0114/doc_00028771 [22:00:03]save last doc name /storage/0114/doc_00028771 to /storage/kkm_last_doc_name [22:00:03]save OK [22:00:03]Clear old archive folders... [22:00:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:00:03]tlvbuf is 011BF290 [22:00:03]SAM_PROTO_ClearQueue [22:00:03]wFMCommunicate request_size=4 [22:00:03]MH_SAM_APDU [22:00:03]CAPDU: 80 09 00 00 [22:00:03]Write to MH i2c: E2 08 00 51 0E 80 09 00 00 00 00 00 00 D1 [22:00:03]Write i2c OK [22:00:03]MH_I2C_Read... [22:00:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:00:03]Read from MH i2c: E2 [22:00:03]MH_I2C_Read... [22:00:03]Read from MH i2c: E2 03 00 [22:00:03]MH_I2C_Read... [22:00:03]Read from MH i2c: E2 03 00 51 0E 00 90 00 D3 [22:00:03]RAPDU: 90 00 [22:00:03]wFMCommunicate OK [22:00:03]SAM_PROTO_ClearQueue done [22:00:03]KKMCreateOFDPacket [22:00:03]OFDProtocolAddRootSTLVToBuf [22:00:03]FM_MakeSignedData [22:00:03]FM_MakeSignedData [22:00:03]SAM_PROTO_SignData [22:00:03]wFMCommunicate request_size=4 [22:00:03]MH_SAM_APDU [22:00:03]CAPDU: 80 0D 01 02 [22:00:03]Write to MH i2c: E2 08 00 52 0E 80 0D 01 02 00 00 00 00 D9 [22:00:03]Write i2c OK [22:00:03]MH_I2C_Read... [22:00:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:00:03]Read from MH i2c: E2 [22:00:03]MH_I2C_Read... [22:00:03]Read from MH i2c: E2 03 00 [22:00:03]MH_I2C_Read... [22:00:03]Read from MH i2c: E2 03 00 52 0E 00 90 00 D4 [22:00:03]RAPDU: 90 00 [22:00:03]wFMCommunicate OK [22:00:03]wFMCommunicate request_size=255 [22:00:03]MH_SAM_APDU [22:00: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 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 34 1B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 1B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 1E 00 00 00 00 07 04 06 00 34 1B 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 E3 AE 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 63 70 00 00 35 04 06 00 0A [22:00:03]Write to MH i2c: E2 02 01 53 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 34 1B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 1B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 1E 00 00 00 00 07 04 06 00 34 1B 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 E3 AE 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 63 70 00 00 35 04 06 00 0A 00 00 DA [22:00:03]Write i2c OK [22:00:03]MH_I2C_Read... [22:00:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:00:03]Read from MH i2c: E2 [22:00:03]MH_I2C_Read... [22:00:04]Read from MH i2c: E2 03 00 [22:00:04]MH_I2C_Read... [22:00:04]Read from MH i2c: E2 03 00 53 0E 00 90 00 D5 [22:00:04]RAPDU: 90 00 [22:00:04]wFMCommunicate OK [22:00:04]wFMCommunicate request_size=10 [22:00:04]MH_SAM_APDU [22:00:04]CAPDU: 80 0D 02 02 05 71 F9 79 58 8D [22:00:04]Write to MH i2c: E2 0D 00 54 0E 80 0D 02 02 05 00 71 F9 79 58 8D 00 00 AE [22:00:04]Write i2c OK [22:00:04]MH_I2C_Read... [22:00:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:00:04]Read from MH i2c: E2 [22:00:04]MH_I2C_Read... [22:00:04]Read from MH i2c: E2 03 00 [22:00:04]MH_I2C_Read... [22:00:04]Read from MH i2c: E2 03 00 54 0E 00 90 00 D6 [22:00:04]RAPDU: 90 00 [22:00:04]wFMCommunicate OK [22:00:04]wFMCommunicate request_size=4 [22:00:04]MH_SAM_APDU [22:00:04]CAPDU: 80 0D 03 02 [22:00:04]Write to MH i2c: E2 08 00 55 0E 80 0D 03 02 00 00 00 00 DE [22:00:04]Write i2c OK [22:00:04]MH_I2C_Read... [22:00:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:00:04]Read from MH i2c: E2 [22:00:04]MH_I2C_Read... [22:00:04]Read from MH i2c: E2 0B 00 [22:00:04]MH_I2C_Read... [22:00:04]Read from MH i2c: E2 0B 00 55 0E 00 9D D3 90 F0 2E 06 9A B9 90 00 56 [22:00:04]RAPDU: 9D D3 90 F0 2E 06 9A B9 90 00 [22:00:04]wFMCommunicate OK [22:00:04]SAM_PROTO_SignData done [22:00:04]FM_MakeSignedData done [22:00:04]CreateOFDProtocolMessage [22:00:04]wFMCommunicate request_size=4 [22:00:04]MH_SAM_APDU [22:00:04]CAPDU: 80 11 00 00 [22:00:04]Write to MH i2c: E2 08 00 56 0E 80 11 00 00 00 00 00 00 DE [22:00:04]Write i2c OK [22:00:04]MH_I2C_Read... [22:00:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:00:04]Read from MH i2c: E2 [22:00:04]MH_I2C_Read... [22:00:04]Read from MH i2c: E2 17 00 [22:00:04]MH_I2C_Read... [22:00:04]Read from MH i2c: E2 17 00 56 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 2D [22:00:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [22:00:04]wFMCommunicate OK [22:00:04]CreateOFDProtocolMessage done [22:00:04]OFDSenderStorePacket 28771 [22:00:04]StoreOFDPacket docnum=28771 [22:00:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 D8 50 07 01 2A 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 34 1B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 1B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 1E 00 00 00 00 07 04 06 00 34 1B 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 E3 AE 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 63 70 00 00 35 04 06 00 0A 71 F9 79 58 8D 9D D3 90 F0 2E 06 9A B9 [22:00:04]CheckFolder [22:00:04]dirname=/storage/ofd_packets [22:00:04]CheckFolder done [22:00:04]ProducePacketName [22:00:04]name=ofd_packets/00028771 [22:00:04]NVStorageSaveData ofd_packets/00028771 [22:00:04]File name is /storage/ofd_packets/00028771 [22:00:04]Write 301 bytes [22:00:04]NVStorageSaveData done [22:00:04]OFDSenderStorePacket done [22:00:04]KKMCreateOFDPacket done [22:00:04]NVStorageSaveData kkm_last_timestamp [22:00:04]File name is /storage/kkm_last_timestamp [22:00:04]Write 4 bytes [22:00:04]NVStorageSaveData done [22:00:04]ExternCall_PrintAddStr [22:00:04]wPrintStart [22:00:04]Write to MH i2c: 01 00 00 57 0E 65 [22:00:04]Write i2c OK [22:00:04]MH_I2C_Read... [22:00:04]Read from MH i2c: 01 [22:00:04]MH_I2C_Read... [22:00:04]Read from MH i2c: 01 07 00 [22:00:04]MH_I2C_Read... [22:00:04]Read from MH i2c: 01 07 00 57 0E 00 00 00 00 00 FF 0F 7A [22:00:04]RasterBufferAndPrint [22:00:04]line Счет N : (1)347115 [22:00:04]line ИНН: 02508201610067 [22:00:04]line Контрольно-Кассовый Чек [22:00:04]line ПРОДАЖА [22:00:04]line ТРК (МРК, ГНК) : 33 [22:00:04]line Товар: 2710124500 [22:00:04]line Аи-95-К-5 [22:00:04]line 10.000 * 72.50 [22:00:04]line = 725.00 [22:00:04]line НДС 12% НСП 1% [22:00:04]line > о реализуемом товаре [22:00:04]line ИТОГО: 725.00 [22:00:04]line НСП 1% : 6.42 [22:00:04]line НДС 12% : 76.99 [22:00:04]line Наличными: 725.00 [22:00:04]line Безнал.: 0.00 [22:00:04]line Место: АЗС № 108 "Партнер Нефть" [22:00:04]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [22:00:04]line СНО: Общий режим [22:00:04]line Чек 45 12.04.2024 22:00 [22:00:04]line Смена: 114 ФФД: 1.0 [22:00:04]line ЗНМ: 0300000027 [22:00:04]line РНМ: 0000138879044617 [22:00:04]line Версия ККМ: 001 [22:00:04]line ФМ: 0000000000963154 [22:00:04]line ФД: 28771 [22:00:04]line ФПД: 11484633061517 [22:00:04]line 1/tax-web-control/client/api/v1/ticket?date=20240412T220003&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28771&fm=11484633061517&tin=02508201610067®Number=0000138879044617&sum=72500 [22:00:04]OFD Sender: Processing packet 28771 [packets to send 8, broken 7] [22:00:04]ProducePacketName [22:00:04]name=ofd_packets/00028771 [22:00:04]OFD Sender: To server: pG, [22:00:04]CommunicateWithHost lk.salyk.kg:30040 [22:00:04]ConnectInit lk.salyk.kg [22:00:04]written 0, free lines is 4095 [22:00:04]Connected sock=10 [22:00:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 D8 50 07 01 2A 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 34 1B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 1B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 1E 00 00 00 00 07 04 06 00 34 1B 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 E3 AE 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 63 70 00 00 35 04 06 00 0A 71 F9 79 58 8D 9D D3 90 F0 2E 06 9A B9 [22:00:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 79 AE 47 00 9A 94 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 63 70 00 00 F4 03 04 00 8C 59 19 66 B6 04 01 00 00 3B 88 81 C9 3A 66 16 4B [22:00:04]CommunicateWithHost err = 0 [22:00:04]CheckOFDResponse [22:00:04]1017 (14) - 77093643461234 [22:00:04]1041 (16) - 0000000000963154 [22:00:04]1040 (4) - 28771 [22:00:04]1012 (4) - 12.04.2024 15:55 [22:00:04]1206 (1) - 0 [22:00:04]OFD Sender: Remove packet 28771 [22:00:04]ProducePacketName [22:00:04]name=ofd_packets/00028771 [22:00:04]NVStorageDeleteData [22:00:04]Write to MH i2c: 01 00 00 7E 0E 8C [22:00:04]Write i2c OK [22:00:04]MH_I2C_Read... [22:00:04]Read from MH i2c: 01 [22:00:04]MH_I2C_Read... [22:00:04]Read from MH i2c: 01 07 00 [22:00:04]MH_I2C_Read... [22:00:04]Read from MH i2c: 01 07 00 7E 0E 00 00 00 00 00 09 0D A9 [22:00:04]RasterBufferAndPrint [22:00:04]line [22:00:04]line [22:00:04]line [22:00:04]line [22:00:04]line [22:00:04]written 0, free lines is 3342 [22:00:04]MH_Cut [22:00:04]Write to MH i2c: D1 01 00 85 0E 01 65 [22:00:04]Write i2c OK [22:00:04]MH_I2C_Read... [22:00:04]Read from MH i2c: D1 [22:00:04]MH_I2C_Read... [22:00:04]Read from MH i2c: D1 01 00 [22:00:04]MH_I2C_Read... [22:00:04]Read from MH i2c: D1 01 00 85 0E 00 64 [22:00:04]Write to MH i2c: 01 00 00 86 0E 94 [22:00:04]Write i2c OK [22:00:04]MH_I2C_Read... [22:00:05]OFD Sender: No OFD packet to send [22:00:05]*** Cut start [22:00:05]*** Partial cut [22:00:05]*** CUTSNS_PIN = 1 [22:00:05]*** CUTSNS_PIN = 0 [22:00:05]*** Brake cut motor [22:00:06]Read from MH i2c: 01 [22:00:06]MH_I2C_Read... [22:00:06]*** Stop cut motor [22:00:06]*** Cut end [22:00:06]Read from MH i2c: 01 07 00 [22:00:06]MH_I2C_Read... [22:00:06]Read from MH i2c: 01 07 00 86 0E 00 00 00 00 00 FF 0F A9 [22:00:06]process_action close_receipt done [22:00:06]requested_data is exist [22:00:06]produce_requested_data [22:00:06]requested_item fm.sn is exist - process it [22:00:06]wFMCommunicate request_size=4 [22:00:06]MH_SAM_APDU [22:00:06]CAPDU: 80 11 00 00 [22:00:06]Write to MH i2c: E2 08 00 87 0E 80 11 00 00 00 00 00 00 0F [22:00:06]Write i2c OK [22:00:06]MH_I2C_Read... [22:00:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:00:06]Read from MH i2c: E2 [22:00:06]MH_I2C_Read... [22:00:06]Read from MH i2c: E2 17 00 [22:00:06]MH_I2C_Read... [22:00:06]Read from MH i2c: E2 17 00 87 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 5E [22:00:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [22:00:06]wFMCommunicate OK [22:00:06]requested_item fd.num is exist - process it [22:00:06]SAM_PROTO_GetFieldsCounters [22:00:06]wFMCommunicate request_size=4 [22:00:06]MH_SAM_APDU [22:00:06]CAPDU: 80 13 00 00 [22:00:06]Write to MH i2c: E2 08 00 88 0E 80 13 00 00 00 00 00 00 12 [22:00:06]Write i2c OK [22:00:06]MH_I2C_Read... [22:00:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:00:06]Read from MH i2c: E2 [22:00:06]MH_I2C_Read... [22:00:06]Read from MH i2c: E2 62 00 [22:00:06]MH_I2C_Read... [22:00:06]Read from MH i2c: E2 62 00 88 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 63 70 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 1C [22:00:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 63 70 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 [22:00:06]wFMCommunicate OK [22:00:06]SAM_PROTO_GetFieldsCounters done [22:00:06]requested_item shift.num is exist - process it [22:00:06]requested_item shift.opened is exist - process it [22:00:06]req_shift_opened [22:00:06]FM_GetShiftState [22:00:06]SAM_PROTO_GetShiftState [22:00:06]wFMCommunicate request_size=4 [22:00:06]MH_SAM_APDU [22:00:06]CAPDU: 80 13 01 00 [22:00:06]Write to MH i2c: E2 08 00 89 0E 80 13 01 00 00 00 00 00 14 [22:00:06]Write i2c OK [22:00:06]MH_I2C_Read... [22:00:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:00:06]Read from MH i2c: E2 [22:00:06]MH_I2C_Read... [22:00:06]Read from MH i2c: E2 0E 00 [22:00:06]MH_I2C_Read... [22:00:06]Read from MH i2c: E2 0E 00 89 0E 00 09 00 01 17 88 19 66 00 00 00 00 90 00 3E [22:00:06]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [22:00:06]wFMCommunicate OK [22:00:06]SAM_PROTO_GetShiftState done [22:00:06]FM_GetShiftState done [22:00:06]req_shift_opened done [22:00:06]requested_item shift.open_date is exist - process it [22:00:06]req_shift_open_date [22:00:06]req_shift_open_date done [22:00:06]produce_requested_data done [22:00:06]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28771,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271} [22:00:06]process_action_free close_receipt [22:00:06]json_value_free [22:00:06]json_value_free done [22:00:06]process_json_proto returns [22:00:06]Send response to host [22:00:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28771,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271}}} [22:00:06]free response buf [22:00:06]execute_script done [22:00:06]execute_script returns [22:00:06]free content buf [22:00:06]Sock 9.Close socket [22:00:06]Sock 9.Thread stoped [22:00:10]OFD Sender: No OFD packet to send [22:00:15]OFD Sender: No OFD packet to send [22:00:20]OFD Sender: No OFD packet to send [22:00:25]OFD Sender: No OFD packet to send [22:00:30]OFD Sender: No OFD packet to send [22:00:35]OFD Sender: No OFD packet to send [22:00:40]OFD Sender: No OFD packet to send [22:00:45]OFD Sender: No OFD packet to send [22:00:50]OFD Sender: No OFD packet to send [22:00:55]OFD Sender: No OFD packet to send [22:01:00]OFD Sender: No OFD packet to send [22:01:05]OFD Sender: No OFD packet to send [22:01:10]OFD Sender: No OFD packet to send [22:01:15]OFD Sender: No OFD packet to send [22:01:20]OFD Sender: No OFD packet to send [22:01:25]OFD Sender: No OFD packet to send [22:01:30]OFD Sender: No OFD packet to send [22:01:35]OFD Sender: No OFD packet to send [22:01:40]OFD Sender: No OFD packet to send [22:01:45]OFD Sender: No OFD packet to send [22:01:50]OFD Sender: No OFD packet to send [22:01:55]OFD Sender: No OFD packet to send [22:02:00]OFD Sender: No OFD packet to send [22:02:05]OFD Sender: No OFD packet to send [22:02:10]OFD Sender: No OFD packet to send [22:02:15]OFD Sender: No OFD packet to send [22:02:20]OFD Sender: No OFD packet to send [22:02:25]OFD Sender: No OFD packet to send [22:02:30]OFD Sender: No OFD packet to send [22:02:35]OFD Sender: No OFD packet to send [22:02:40]OFD Sender: No OFD packet to send [22:02:45]OFD Sender: No OFD packet to send [22:02:50]OFD Sender: No OFD packet to send [22:02:55]OFD Sender: No OFD packet to send [22:03:00]OFD Sender: No OFD packet to send [22:03:05]OFD Sender: No OFD packet to send [22:03:10]OFD Sender: No OFD packet to send [22:03:15]OFD Sender: No OFD packet to send [22:03:20]OFD Sender: No OFD packet to send [22:03:25]OFD Sender: No OFD packet to send [22:03:30]OFD Sender: No OFD packet to send [22:03:35]OFD Sender: No OFD packet to send [22:03:40]OFD Sender: No OFD packet to send [22:03:45]OFD Sender: No OFD packet to send [22:03:50]OFD Sender: No OFD packet to send [22:03:55]OFD Sender: No OFD packet to send [22:04:00]OFD Sender: No OFD packet to send [22:04:05]OFD Sender: No OFD packet to send [22:04:10]OFD Sender: No OFD packet to send [22:04:15]OFD Sender: No OFD packet to send [22:04:20]OFD Sender: No OFD packet to send [22:04:25]OFD Sender: No OFD packet to send [22:04:30]OFD Sender: No OFD packet to send [22:04:35]OFD Sender: No OFD packet to send [22:04:40]OFD Sender: No OFD packet to send [22:04:45]OFD Sender: No OFD packet to send [22:04:50]OFD Sender: No OFD packet to send [22:04:55]OFD Sender: No OFD packet to send [22:05:00]OFD Sender: No OFD packet to send [22:05:05]OFD Sender: No OFD packet to send [22:05:10]OFD Sender: No OFD packet to send [22:05:15]OFD Sender: No OFD packet to send [22:05:20]OFD Sender: No OFD packet to send [22:05:25]OFD Sender: No OFD packet to send [22:05:30]OFD Sender: No OFD packet to send [22:05:35]OFD Sender: No OFD packet to send [22:05:40]OFD Sender: No OFD packet to send [22:05:45]OFD Sender: No OFD packet to send [22:05:50]OFD Sender: No OFD packet to send [22:05:55]OFD Sender: No OFD packet to send [22:06:00]OFD Sender: No OFD packet to send [22:06:05]OFD Sender: No OFD packet to send [22:06:10]OFD Sender: No OFD packet to send [22:06:15]OFD Sender: No OFD packet to send [22:06:20]OFD Sender: No OFD packet to send [22:06:25]OFD Sender: No OFD packet to send [22:06:30]OFD Sender: No OFD packet to send [22:06:33]accept exits with 7 [22:06:33]New connection [22:06:33]New thread 3066785124 created [22:06:33]Thread 3066928484 joined [22:06:33]Waiting for new connection... [22:06:33] Sock 7.Parse request [22:06:33]Sock 7.Check first char [22:06:33]Sock 7.First char is OK [22:06:33]request: POST /json_proto HTTP/1.0 [22:06:33]Method: POST [22:06:33]URL: /json_proto [22:06:33]Method is POST - this is cgi request [22:06:33]url: /json_proto [22:06:33]query_string will be loaded in cgi processing [22:06:33]execute_cgi json_proto POST (null) [22:06:33]execute_cgi path=json_proto method=POST [22:06:33]POST find Content-Length [22:06:33]Host: 172.17.33.3:8080 [22:06:33]Content-Length: 685 [22:06:33]Content-Type: application/json [22:06:33] [22:06:33]POST finish read [22:06:33]Found Content-Length = 685 [22:06:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347116", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 30.400, "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" ] } } [22:06:33]execute_script... [22:06:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347116", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 30.400, "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" ] } } [22:06:33]POST & json_proto [22:06:33]process_json_proto [22:06:33]json parsed OK: [22:06:33]protocol is kg_v1.0 [22:06:33]action value=close_receipt [22:06:33]process_action close_receipt [22:06:33]cmd_close_receipt [22:06:33]MH_GetDate [22:06:33]Write to MH i2c: F0 00 00 8A 0E 87 [22:06:33]Write i2c OK [22:06:33]MH_I2C_Read... [22:06:33]Read from MH i2c: F0 [22:06:33]MH_I2C_Read... [22:06:33]Read from MH i2c: F0 09 00 [22:06:33]MH_I2C_Read... [22:06:33]Read from MH i2c: F0 09 00 8A 0E 00 6A B0 19 66 23 5B 8F 65 9B [22:06:33]GetLastDocTimeStamp 1712959203 [22:06:33]current date 1712959594 [22:06:33]FM_GetShiftState [22:06:33]SAM_PROTO_GetShiftState [22:06:33]wFMCommunicate request_size=4 [22:06:33]MH_SAM_APDU [22:06:33]CAPDU: 80 13 01 00 [22:06:33]Write to MH i2c: E2 08 00 8B 0E 80 13 01 00 00 00 00 00 16 [22:06:33]Write i2c OK [22:06:33]MH_I2C_Read... [22:06:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:06:33]Read from MH i2c: E2 [22:06:33]MH_I2C_Read... [22:06:33]Read from MH i2c: E2 0E 00 [22:06:33]MH_I2C_Read... [22:06:33]Read from MH i2c: E2 0E 00 8B 0E 00 09 00 01 17 88 19 66 00 00 00 00 90 00 40 [22:06:33]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [22:06:33]wFMCommunicate OK [22:06:33]SAM_PROTO_GetShiftState done [22:06:33]FM_GetShiftState done [22:06:33]opened in 1712949271 [22:06:33]opened+sec_in_day 1713035671 [22:06:33]quantity*price = 100016 [22:06:33]sum+1 = 100017 [22:06:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 46 12.04.2024 22:06 Смена: 114 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28772 ФПД: 36003823239079 1/tax-web-control/client/api/v1/ticket?date=20240412T220634&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28772&fm=36003823239079&tin=02508201610067®Number=0000138879044617&sum=100000 [22:06:34]StoreToDocumentArchive [22:06:34]shift 114 fd 28772 [22:06:34]save to /storage/0114/doc_00028772 [22:06:34]save last doc name /storage/0114/doc_00028772 to /storage/kkm_last_doc_name [22:06:34]save OK [22:06:34]Clear old archive folders... [22:06:34]ProcessDocumentItem done err = 0, tmpTLVsize=250 [22:06:34]tlvbuf is 01212E80 [22:06:34]SAM_PROTO_ClearQueue [22:06:34]wFMCommunicate request_size=4 [22:06:34]MH_SAM_APDU [22:06:34]CAPDU: 80 09 00 00 [22:06:34]Write to MH i2c: E2 08 00 98 0E 80 09 00 00 00 00 00 00 18 [22:06:34]Write i2c OK [22:06:34]MH_I2C_Read... [22:06:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:06:34]Read from MH i2c: E2 [22:06:34]MH_I2C_Read... [22:06:34]Read from MH i2c: E2 03 00 [22:06:34]MH_I2C_Read... [22:06:34]Read from MH i2c: E2 03 00 98 0E 00 90 00 1A [22:06:34]RAPDU: 90 00 [22:06:34]wFMCommunicate OK [22:06:34]SAM_PROTO_ClearQueue done [22:06:34]KKMCreateOFDPacket [22:06:34]OFDProtocolAddRootSTLVToBuf [22:06:34]FM_MakeSignedData [22:06:34]FM_MakeSignedData [22:06:34]SAM_PROTO_SignData [22:06:34]wFMCommunicate request_size=4 [22:06:34]MH_SAM_APDU [22:06:34]CAPDU: 80 0D 01 02 [22:06:34]Write to MH i2c: E2 08 00 99 0E 80 0D 01 02 00 00 00 00 20 [22:06:34]Write i2c OK [22:06:34]MH_I2C_Read... [22:06:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:06:34]Read from MH i2c: E2 [22:06:34]MH_I2C_Read... [22:06:34]Read from MH i2c: E2 03 00 [22:06:34]MH_I2C_Read... [22:06:34]Read from MH i2c: E2 03 00 99 0E 00 90 00 1B [22:06:34]RAPDU: 90 00 [22:06:34]wFMCommunicate OK [22:06:34]wFMCommunicate request_size=255 [22:06:34]MH_SAM_APDU [22:06:34]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 DA 0C 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 2E 00 00 00 F4 03 04 00 6A B0 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 64 70 00 00 35 04 06 00 20 BE [22:06:34]Write to MH i2c: E2 02 01 9A 0E 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 DA 0C 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 2E 00 00 00 F4 03 04 00 6A B0 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 64 70 00 00 35 04 06 00 20 BE 00 00 A1 [22:06:34]Write i2c OK [22:06:34]MH_I2C_Read... [22:06:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:06:34]Read from MH i2c: E2 [22:06:34]MH_I2C_Read... [22:06:34]Read from MH i2c: E2 03 00 [22:06:34]MH_I2C_Read... [22:06:34]Read from MH i2c: E2 03 00 9A 0E 00 90 00 1C [22:06:34]RAPDU: 90 00 [22:06:34]wFMCommunicate OK [22:06:34]wFMCommunicate request_size=9 [22:06:34]MH_SAM_APDU [22:06:34]CAPDU: 80 0D 02 02 04 CB 18 3F A7 [22:06:34]Write to MH i2c: E2 0C 00 9B 0E 80 0D 02 02 04 00 CB 18 3F A7 00 00 F4 [22:06:34]Write i2c OK [22:06:34]MH_I2C_Read... [22:06:34]Read from MH i2c: E2 [22:06:34]MH_I2C_Read... [22:06:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:06:34]Read from MH i2c: E2 03 00 [22:06:34]MH_I2C_Read... [22:06:34]Read from MH i2c: E2 03 00 9B 0E 00 90 00 1D [22:06:34]RAPDU: 90 00 [22:06:34]wFMCommunicate OK [22:06:34]wFMCommunicate request_size=4 [22:06:34]MH_SAM_APDU [22:06:34]CAPDU: 80 0D 03 02 [22:06:34]Write to MH i2c: E2 08 00 9C 0E 80 0D 03 02 00 00 00 00 25 [22:06:34]Write i2c OK [22:06:34]MH_I2C_Read... [22:06:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:06:34]Read from MH i2c: E2 [22:06:34]MH_I2C_Read... [22:06:34]Read from MH i2c: E2 0B 00 [22:06:34]MH_I2C_Read... [22:06:34]Read from MH i2c: E2 0B 00 9C 0E 00 69 C3 C4 91 CB 8C A2 0B 90 00 AB [22:06:34]RAPDU: 69 C3 C4 91 CB 8C A2 0B 90 00 [22:06:34]wFMCommunicate OK [22:06:34]SAM_PROTO_SignData done [22:06:34]FM_MakeSignedData done [22:06:34]CreateOFDProtocolMessage [22:06:34]wFMCommunicate request_size=4 [22:06:34]MH_SAM_APDU [22:06:34]CAPDU: 80 11 00 00 [22:06:34]Write to MH i2c: E2 08 00 9D 0E 80 11 00 00 00 00 00 00 25 [22:06:34]Write i2c OK [22:06:34]MH_I2C_Read... [22:06:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:06:34]Read from MH i2c: E2 [22:06:34]MH_I2C_Read... [22:06:34]Read from MH i2c: E2 17 00 [22:06:34]MH_I2C_Read... [22:06:34]Read from MH i2c: E2 17 00 9D 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 74 [22:06:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [22:06:34]wFMCommunicate OK [22:06:34]CreateOFDProtocolMessage done [22:06:34]OFDSenderStorePacket 28772 [22:06:34]StoreOFDPacket docnum=28772 [22:06:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 16 A5 06 01 42 F1 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 DA 0C 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 2E 00 00 00 F4 03 04 00 6A B0 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 64 70 00 00 35 04 06 00 20 BE CB 18 3F A7 69 C3 C4 91 CB 8C A2 0B [22:06:34]CheckFolder [22:06:34]dirname=/storage/ofd_packets [22:06:34]CheckFolder done [22:06:34]ProducePacketName [22:06:34]name=ofd_packets/00028772 [22:06:34]NVStorageSaveData ofd_packets/00028772 [22:06:34]File name is /storage/ofd_packets/00028772 [22:06:34]Write 300 bytes [22:06:34]NVStorageSaveData done [22:06:34]OFDSenderStorePacket done [22:06:34]KKMCreateOFDPacket done [22:06:34]NVStorageSaveData kkm_last_timestamp [22:06:34]File name is /storage/kkm_last_timestamp [22:06:34]Write 4 bytes [22:06:34]NVStorageSaveData done [22:06:34]ExternCall_PrintAddStr [22:06:34]wPrintStart [22:06:34]Write to MH i2c: 01 00 00 9E 0E AC [22:06:34]OFD Sender: Processing packet 28772 [packets to send 8, broken 7] [22:06:34]ProducePacketName [22:06:34]name=ofd_packets/00028772 [22:06:34]OFD Sender: To server: pG, [22:06:34]CommunicateWithHost lk.salyk.kg:30040 [22:06:34]ConnectInit lk.salyk.kg [22:06:34]Write i2c OK [22:06:34]MH_I2C_Read... [22:06:34]Read from MH i2c: 01 [22:06:34]MH_I2C_Read... [22:06:34]Read from MH i2c: 01 07 00 [22:06:34]MH_I2C_Read... [22:06:34]Read from MH i2c: 01 07 00 9E 0E 00 00 00 00 00 FF 0F C1 [22:06:34]RasterBufferAndPrint [22:06:34]line Счет N : (1)347116 [22:06:34]line ИНН: 02508201610067 [22:06:34]line Контрольно-Кассовый Чек [22:06:34]line ПРОДАЖА [22:06:34]line ТРК (МРК, ГНК) : 71 [22:06:34]line Товар: 2711129700 [22:06:34]line ГАЗ-К-5 [22:06:34]line 30.400 * 32.90 [22:06:34]line = 1000.16 [22:06:34]line НДС 12% НСП 1% [22:06:34]line > о реализуемом товаре [22:06:34]line ОКРУГЛЕНИЕ: -0.16 [22:06:34]line ИТОГО: 1000.00 [22:06:34]line Внесено: 1000.00 [22:06:34]line СДАЧА: 0.00 [22:06:34]line НСП 1% : 8.85 [22:06:34]line НДС 12% : 106.21 [22:06:34]line Наличными: 1000.00 [22:06:34]line Безнал.: 0.00 [22:06:34]line Место: АЗС № 108 "Партнер Нефть" [22:06:34]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [22:06:34]line СНО: Общий режим [22:06:34]line Чек 46 12.04.2024 22:06 [22:06:34]line Смена: 114 ФФД: 1.0 [22:06:34]line ЗНМ: 0300000027 [22:06:34]line РНМ: 0000138879044617 [22:06:35]line Версия ККМ: 001 [22:06:35]line ФМ: 0000000000963154 [22:06:35]line ФД: 28772 [22:06:35]line ФПД: 36003823239079 [22:06:35]line 1/tax-web-control/client/api/v1/ticket?date=20240412T220634&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28772&fm=36003823239079&tin=02508201610067®Number=0000138879044617&sum=100000 [22:06:35]Connected sock=10 [22:06:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 16 A5 06 01 42 F1 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 DA 0C 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 2E 00 00 00 F4 03 04 00 6A B0 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 64 70 00 00 35 04 06 00 20 BE CB 18 3F A7 69 C3 C4 91 CB 8C A2 0B [22:06:35]written 0, free lines is 4095 [22:06:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 99 FA 47 00 F5 42 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 64 70 00 00 F4 03 04 00 13 5B 19 66 B6 04 01 00 00 8E 4A 7F CC 34 B1 D5 DA [22:06:35]CommunicateWithHost err = 0 [22:06:35]CheckOFDResponse [22:06:35]1017 (14) - 77093643461234 [22:06:35]1041 (16) - 0000000000963154 [22:06:35]1040 (4) - 28772 [22:06:35]1012 (4) - 12.04.2024 16:02 [22:06:35]1206 (1) - 0 [22:06:35]OFD Sender: Remove packet 28772 [22:06:35]ProducePacketName [22:06:35]name=ofd_packets/00028772 [22:06:35]NVStorageDeleteData [22:06:35]Write to MH i2c: 01 00 00 C8 0E D6 [22:06:35]Write i2c OK [22:06:35]MH_I2C_Read... [22:06:35]Read from MH i2c: 01 [22:06:35]MH_I2C_Read... [22:06:35]Read from MH i2c: 01 07 00 [22:06:35]MH_I2C_Read... [22:06:35]Read from MH i2c: 01 07 00 C8 0E 00 00 00 00 00 C1 0C AA [22:06:35]RasterBufferAndPrint [22:06:35]line [22:06:35]line [22:06:35]line [22:06:35]line [22:06:35]line [22:06:35]written 0, free lines is 3269 [22:06:35]MH_Cut [22:06:35]Write to MH i2c: D1 01 00 CF 0E 01 AF [22:06:35]Write i2c OK [22:06:35]MH_I2C_Read... [22:06:35]Read from MH i2c: D1 [22:06:35]MH_I2C_Read... [22:06:35]Read from MH i2c: D1 01 00 [22:06:35]MH_I2C_Read... [22:06:35]Read from MH i2c: D1 01 00 CF 0E 00 AE [22:06:35]Write to MH i2c: 01 00 00 D0 0E DE [22:06:35]Write i2c OK [22:06:35]MH_I2C_Read... [22:06:35]OFD Sender: No OFD packet to send [22:06:36]*** Cut start [22:06:36]*** Partial cut [22:06:36]*** CUTSNS_PIN = 1 [22:06:36]*** CUTSNS_PIN = 0 [22:06:36]*** Brake cut motor [22:06:36]Read from MH i2c: 01 [22:06:36]MH_I2C_Read... [22:06:36]*** Stop cut motor [22:06:36]*** Cut end [22:06:36]Read from MH i2c: 01 07 00 [22:06:36]MH_I2C_Read... [22:06:36]Read from MH i2c: 01 07 00 D0 0E 00 00 00 00 00 FF 0F F3 [22:06:36]process_action close_receipt done [22:06:36]requested_data is exist [22:06:36]produce_requested_data [22:06:36]requested_item fm.sn is exist - process it [22:06:36]wFMCommunicate request_size=4 [22:06:36]MH_SAM_APDU [22:06:36]CAPDU: 80 11 00 00 [22:06:36]Write to MH i2c: E2 08 00 D1 0E 80 11 00 00 00 00 00 00 59 [22:06:36]Write i2c OK [22:06:36]MH_I2C_Read... [22:06:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:06:37]Read from MH i2c: E2 [22:06:37]MH_I2C_Read... [22:06:37]Read from MH i2c: E2 17 00 [22:06:37]MH_I2C_Read... [22:06:37]Read from MH i2c: E2 17 00 D1 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 A8 [22:06:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [22:06:37]wFMCommunicate OK [22:06:37]requested_item fd.num is exist - process it [22:06:37]SAM_PROTO_GetFieldsCounters [22:06:37]wFMCommunicate request_size=4 [22:06:37]MH_SAM_APDU [22:06:37]CAPDU: 80 13 00 00 [22:06:37]Write to MH i2c: E2 08 00 D2 0E 80 13 00 00 00 00 00 00 5C [22:06:37]Write i2c OK [22:06:37]MH_I2C_Read... [22:06:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:06:37]Read from MH i2c: E2 [22:06:37]MH_I2C_Read... [22:06:37]Read from MH i2c: E2 62 00 [22:06:37]MH_I2C_Read... [22:06:37]Read from MH i2c: E2 62 00 D2 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 64 70 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 6A [22:06:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 64 70 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 [22:06:37]wFMCommunicate OK [22:06:37]SAM_PROTO_GetFieldsCounters done [22:06:37]requested_item shift.num is exist - process it [22:06:37]requested_item shift.opened is exist - process it [22:06:37]req_shift_opened [22:06:37]FM_GetShiftState [22:06:37]SAM_PROTO_GetShiftState [22:06:37]wFMCommunicate request_size=4 [22:06:37]MH_SAM_APDU [22:06:37]CAPDU: 80 13 01 00 [22:06:37]Write to MH i2c: E2 08 00 D3 0E 80 13 01 00 00 00 00 00 5E [22:06:37]Write i2c OK [22:06:37]MH_I2C_Read... [22:06:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:06:37]Read from MH i2c: E2 [22:06:37]MH_I2C_Read... [22:06:37]Read from MH i2c: E2 0E 00 [22:06:37]MH_I2C_Read... [22:06:37]Read from MH i2c: E2 0E 00 D3 0E 00 09 00 01 17 88 19 66 00 00 00 00 90 00 88 [22:06:37]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [22:06:37]wFMCommunicate OK [22:06:37]SAM_PROTO_GetShiftState done [22:06:37]FM_GetShiftState done [22:06:37]req_shift_opened done [22:06:37]requested_item shift.open_date is exist - process it [22:06:37]req_shift_open_date [22:06:37]req_shift_open_date done [22:06:37]produce_requested_data done [22:06:37]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28772,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271} [22:06:37]process_action_free close_receipt [22:06:37]json_value_free [22:06:37]json_value_free done [22:06:37]process_json_proto returns [22:06:37]Send response to host [22:06:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28772,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271}}} [22:06:37]free response buf [22:06:37]execute_script done [22:06:37]execute_script returns [22:06:37]free content buf [22:06:37]Sock 7.Close socket [22:06:37]Sock 7.Thread stoped [22:06:40]OFD Sender: No OFD packet to send [22:06:45]OFD Sender: No OFD packet to send [22:06:50]OFD Sender: No OFD packet to send [22:06:55]OFD Sender: No OFD packet to send [22:07:00]OFD Sender: No OFD packet to send [22:07:05]OFD Sender: No OFD packet to send [22:07:10]OFD Sender: No OFD packet to send [22:07:15]OFD Sender: No OFD packet to send [22:07:20]OFD Sender: No OFD packet to send [22:07:25]OFD Sender: No OFD packet to send [22:07:30]OFD Sender: No OFD packet to send [22:07:35]OFD Sender: No OFD packet to send [22:07:40]OFD Sender: No OFD packet to send [22:07:45]OFD Sender: No OFD packet to send [22:07:50]OFD Sender: No OFD packet to send [22:07:55]OFD Sender: No OFD packet to send [22:08:00]OFD Sender: No OFD packet to send [22:08:05]OFD Sender: No OFD packet to send [22:08:10]OFD Sender: No OFD packet to send [22:08:15]OFD Sender: No OFD packet to send [22:08:20]OFD Sender: No OFD packet to send [22:08:25]OFD Sender: No OFD packet to send [22:08:30]OFD Sender: No OFD packet to send [22:08:35]OFD Sender: No OFD packet to send [22:08:40]OFD Sender: No OFD packet to send [22:08:45]OFD Sender: No OFD packet to send [22:08:50]OFD Sender: No OFD packet to send [22:08:55]OFD Sender: No OFD packet to send [22:09:00]OFD Sender: No OFD packet to send [22:09:05]OFD Sender: No OFD packet to send [22:09:10]OFD Sender: No OFD packet to send [22:09:15]OFD Sender: No OFD packet to send [22:09:20]OFD Sender: No OFD packet to send [22:09:25]OFD Sender: No OFD packet to send [22:09:30]OFD Sender: No OFD packet to send [22:09:35]OFD Sender: No OFD packet to send [22:09:40]OFD Sender: No OFD packet to send [22:09:45]OFD Sender: No OFD packet to send [22:09:50]OFD Sender: No OFD packet to send [22:09:55]OFD Sender: No OFD packet to send [22:10:00]OFD Sender: No OFD packet to send [22:10:05]OFD Sender: No OFD packet to send [22:10:10]OFD Sender: No OFD packet to send [22:10:15]OFD Sender: No OFD packet to send [22:10:20]OFD Sender: No OFD packet to send [22:10:25]OFD Sender: No OFD packet to send [22:10:30]OFD Sender: No OFD packet to send [22:10:35]OFD Sender: No OFD packet to send [22:10:40]OFD Sender: No OFD packet to send [22:10:45]OFD Sender: No OFD packet to send [22:10:50]OFD Sender: No OFD packet to send [22:10:55]OFD Sender: No OFD packet to send [22:11:00]OFD Sender: No OFD packet to send [22:11:05]OFD Sender: No OFD packet to send [22:11:10]OFD Sender: No OFD packet to send [22:11:15]OFD Sender: No OFD packet to send [22:11:20]OFD Sender: No OFD packet to send [22:11:25]OFD Sender: No OFD packet to send [22:11:30]OFD Sender: No OFD packet to send [22:11:35]OFD Sender: No OFD packet to send [22:11:40]OFD Sender: No OFD packet to send [22:11:45]OFD Sender: No OFD packet to send [22:11:50]OFD Sender: No OFD packet to send [22:11:55]OFD Sender: No OFD packet to send [22:12:00]OFD Sender: No OFD packet to send [22:12:05]OFD Sender: No OFD packet to send [22:12:10]OFD Sender: No OFD packet to send [22:12:15]OFD Sender: No OFD packet to send [22:12:20]OFD Sender: No OFD packet to send [22:12:25]OFD Sender: No OFD packet to send [22:12:31]OFD Sender: No OFD packet to send [22:12:36]OFD Sender: No OFD packet to send [22:12:41]OFD Sender: No OFD packet to send [22:12:46]OFD Sender: No OFD packet to send [22:12:50]accept exits with 9 [22:12:50]New connection [22:12:50]New thread 3066928484 created [22:12:50]Thread 3066785124 joined [22:12:50]Waiting for new connection... [22:12:50] Sock 9.Parse request [22:12:50]Sock 9.Check first char [22:12:50]Sock 9.First char is OK [22:12:50]request: POST /json_proto HTTP/1.0 [22:12:50]Method: POST [22:12:50]URL: /json_proto [22:12:50]Method is POST - this is cgi request [22:12:50]url: /json_proto [22:12:50]query_string will be loaded in cgi processing [22:12:50]execute_cgi json_proto POST (null) [22:12:50]execute_cgi path=json_proto method=POST [22:12:50]POST find Content-Length [22:12:50]Host: 172.17.33.3:8080 [22:12:50]Content-Length: 670 [22:12:50]Content-Type: application/json [22:12:50] [22:12:50]POST finish read [22:12:50]Found Content-Length = 670 [22:12:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347117", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 3.070, "sum" : 200.47, "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" ] } } [22:12:50]execute_script... [22:12: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)347117", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 3.070, "sum" : 200.47, "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" ] } } [22:12:50]POST & json_proto [22:12:50]process_json_proto [22:12:50]json parsed OK: [22:12:50]protocol is kg_v1.0 [22:12:50]action value=close_receipt [22:12:50]process_action close_receipt [22:12:50]cmd_close_receipt [22:12:50]MH_GetDate [22:12:50]Write to MH i2c: F0 00 00 D4 0E D1 [22:12:50]Write i2c OK [22:12:50]MH_I2C_Read... [22:12:50]Read from MH i2c: F0 [22:12:50]MH_I2C_Read... [22:12:50]Read from MH i2c: F0 09 00 [22:12:50]MH_I2C_Read... [22:12:50]Read from MH i2c: F0 09 00 D4 0E 00 E4 B1 19 66 23 5B 8F 65 60 [22:12:50]GetLastDocTimeStamp 1712959594 [22:12:50]current date 1712959972 [22:12:50]FM_GetShiftState [22:12:50]SAM_PROTO_GetShiftState [22:12:50]wFMCommunicate request_size=4 [22:12:50]MH_SAM_APDU [22:12:50]CAPDU: 80 13 01 00 [22:12:50]Write to MH i2c: E2 08 00 D5 0E 80 13 01 00 00 00 00 00 60 [22:12:50]Write i2c OK [22:12:50]MH_I2C_Read... [22:12:51]OFD Sender: No OFD packet to send [22:12:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:12:51]Read from MH i2c: E2 [22:12:51]MH_I2C_Read... [22:12:51]Read from MH i2c: E2 0E 00 [22:12:51]MH_I2C_Read... [22:12:51]Read from MH i2c: E2 0E 00 D5 0E 00 09 00 01 17 88 19 66 00 00 00 00 90 00 8A [22:12:51]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [22:12:51]wFMCommunicate OK [22:12:51]SAM_PROTO_GetShiftState done [22:12:51]FM_GetShiftState done [22:12:51]opened in 1712949271 [22:12:51]opened+sec_in_day 1713035671 [22:12:51]quantity*price = 20047 [22:12:51]sum+1 = 20048 [22:12:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.29 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 47 12.04.2024 22:12 Смена: 114 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28773 ФПД: 255716171880450 1/tax-web-control/client/api/v1/ticket?date=20240412T221252&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28773&fm=255716171880450&tin=02508201610067®Number=0000138879044617&sum=20000 [22:12:52]StoreToDocumentArchive [22:12:52]shift 114 fd 28773 [22:12:52]save to /storage/0114/doc_00028773 [22:12:52]save last doc name /storage/0114/doc_00028773 to /storage/kkm_last_doc_name [22:12:52]save OK [22:12:52]Clear old archive folders... [22:12:52]ProcessDocumentItem done err = 0, tmpTLVsize=252 [22:12:52]tlvbuf is 011BF090 [22:12:52]SAM_PROTO_ClearQueue [22:12:52]wFMCommunicate request_size=4 [22:12:52]MH_SAM_APDU [22:12:52]CAPDU: 80 09 00 00 [22:12:52]Write to MH i2c: E2 08 00 E2 0E 80 09 00 00 00 00 00 00 62 [22:12:52]Write i2c OK [22:12:52]MH_I2C_Read... [22:12:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:12:52]Read from MH i2c: E2 [22:12:52]MH_I2C_Read... [22:12:52]Read from MH i2c: E2 03 00 [22:12:52]MH_I2C_Read... [22:12:52]Read from MH i2c: E2 03 00 E2 0E 00 90 00 64 [22:12:52]RAPDU: 90 00 [22:12:52]wFMCommunicate OK [22:12:52]SAM_PROTO_ClearQueue done [22:12:52]KKMCreateOFDPacket [22:12:52]OFDProtocolAddRootSTLVToBuf [22:12:52]FM_MakeSignedData [22:12:52]FM_MakeSignedData [22:12:52]SAM_PROTO_SignData [22:12:52]wFMCommunicate request_size=4 [22:12:52]MH_SAM_APDU [22:12:52]CAPDU: 80 0D 01 02 [22:12:52]Write to MH i2c: E2 08 00 E3 0E 80 0D 01 02 00 00 00 00 6A [22:12:52]Write i2c OK [22:12:52]MH_I2C_Read... [22:12:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:12:52]Read from MH i2c: E2 [22:12:52]MH_I2C_Read... [22:12:52]Read from MH i2c: E2 03 00 [22:12:52]MH_I2C_Read... [22:12:52]Read from MH i2c: E2 03 00 E3 0E 00 90 00 65 [22:12:52]RAPDU: 90 00 [22:12:52]wFMCommunicate OK [22:12:52]wFMCommunicate request_size=255 [22:12:52]MH_SAM_APDU [22:12:52]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FE 0B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 4F 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 51 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 E4 B1 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 65 70 00 00 35 04 06 00 [22:12:52]Write to MH i2c: E2 02 01 E4 0E 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FE 0B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 4F 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 51 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 E4 B1 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 65 70 00 00 35 04 06 00 00 00 EC [22:12:52]Write i2c OK [22:12:52]MH_I2C_Read... [22:12:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:12:52]Read from MH i2c: E2 [22:12:52]MH_I2C_Read... [22:12:52]Read from MH i2c: E2 03 00 [22:12:52]MH_I2C_Read... [22:12:52]Read from MH i2c: E2 03 00 E4 0E 00 90 00 66 [22:12:52]RAPDU: 90 00 [22:12:52]wFMCommunicate OK [22:12:52]wFMCommunicate request_size=11 [22:12:52]MH_SAM_APDU [22:12:52]CAPDU: 80 0D 02 02 06 E8 92 8F 96 98 02 [22:12:52]Write to MH i2c: E2 0E 00 E5 0E 80 0D 02 02 06 00 E8 92 8F 96 98 02 00 00 B2 [22:12:52]Write i2c OK [22:12:52]MH_I2C_Read... [22:12:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:12:52]Read from MH i2c: E2 [22:12:52]MH_I2C_Read... [22:12:52]Read from MH i2c: E2 03 00 [22:12:52]MH_I2C_Read... [22:12:52]Read from MH i2c: E2 03 00 E5 0E 00 90 00 67 [22:12:52]RAPDU: 90 00 [22:12:52]wFMCommunicate OK [22:12:52]wFMCommunicate request_size=4 [22:12:52]MH_SAM_APDU [22:12:52]CAPDU: 80 0D 03 02 [22:12:52]Write to MH i2c: E2 08 00 E6 0E 80 0D 03 02 00 00 00 00 6F [22:12:52]Write i2c OK [22:12:52]MH_I2C_Read... [22:12:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:12:52]Read from MH i2c: E2 [22:12:52]MH_I2C_Read... [22:12:52]Read from MH i2c: E2 0B 00 [22:12:52]MH_I2C_Read... [22:12:52]Read from MH i2c: E2 0B 00 E6 0E 00 D3 62 B1 D3 14 BA 84 13 90 00 8E [22:12:52]RAPDU: D3 62 B1 D3 14 BA 84 13 90 00 [22:12:52]wFMCommunicate OK [22:12:52]SAM_PROTO_SignData done [22:12:52]FM_MakeSignedData done [22:12:52]CreateOFDProtocolMessage [22:12:52]wFMCommunicate request_size=4 [22:12:52]MH_SAM_APDU [22:12:52]CAPDU: 80 11 00 00 [22:12:52]Write to MH i2c: E2 08 00 E7 0E 80 11 00 00 00 00 00 00 6F [22:12:52]Write i2c OK [22:12:52]MH_I2C_Read... [22:12:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:12:52]Read from MH i2c: E2 [22:12:52]MH_I2C_Read... [22:12:52]Read from MH i2c: E2 17 00 [22:12:52]MH_I2C_Read... [22:12:52]Read from MH i2c: E2 17 00 E7 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 BE [22:12:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [22:12:52]wFMCommunicate OK [22:12:52]CreateOFDProtocolMessage done [22:12:52]OFDSenderStorePacket 28773 [22:12:52]StoreOFDPacket docnum=28773 [22:12:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 6A 54 08 01 87 81 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FE 0B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 4F 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 51 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 E4 B1 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 65 70 00 00 35 04 06 00 E8 92 8F 96 98 02 D3 62 B1 D3 14 BA 84 13 [22:12:52]CheckFolder [22:12:52]dirname=/storage/ofd_packets [22:12:52]CheckFolder done [22:12:52]ProducePacketName [22:12:52]name=ofd_packets/00028773 [22:12:52]NVStorageSaveData ofd_packets/00028773 [22:12:52]File name is /storage/ofd_packets/00028773 [22:12:52]Write 302 bytes [22:12:52]NVStorageSaveData done [22:12:52]OFDSenderStorePacket done [22:12:52]KKMCreateOFDPacket done [22:12:52]NVStorageSaveData kkm_last_timestamp [22:12:52]File name is /storage/kkm_last_timestamp [22:12:52]Write 4 bytes [22:12:52]NVStorageSaveData done [22:12:52]ExternCall_PrintAddStr [22:12:52]wPrintStart [22:12:52]Write to MH i2c: 01 00 00 E8 0E F6 [22:12:52]Write i2c OK [22:12:52]MH_I2C_Read... [22:12:52]Read from MH i2c: 01 [22:12:52]MH_I2C_Read... [22:12:52]Read from MH i2c: 01 07 00 [22:12:52]MH_I2C_Read... [22:12:52]Read from MH i2c: 01 07 00 E8 0E 00 00 00 00 00 FF 0F 0B [22:12:52]RasterBufferAndPrint [22:12:52]line Счет N : (1)347117 [22:12:52]line ИНН: 02508201610067 [22:12:52]line Контрольно-Кассовый Чек [22:12:52]line ПРОДАЖА [22:12:52]line ТРК (МРК, ГНК) : 41 [22:12:52]line Товар: 2710124130 [22:12:52]line SUPER-92-К-5 [22:12:52]line 3.070 * 65.30 [22:12:52]line = 200.47 [22:12:52]line НДС 12% НСП 1% [22:12:52]line > о реализуемом товаре [22:12:52]line ОКРУГЛЕНИЕ: -0.47 [22:12:52]line ИТОГО: 200.00 [22:12:52]line Внесено: 200.00 [22:12:52]line СДАЧА: 0.00 [22:12:52]line НСП 1% : 1.77 [22:12:52]line НДС 12% : 21.29 [22:12:52]line Наличными: 200.00 [22:12:52]line Безнал.: 0.00 [22:12:52]line Место: АЗС № 108 "Партнер Нефть" [22:12:52]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [22:12:52]line СНО: Общий режим [22:12:52]line Чек 47 12.04.2024 22:12 [22:12:52]line Смена: 114 ФФД: 1.0 [22:12:52]line ЗНМ: 0300000027 [22:12:52]line РНМ: 0000138879044617 [22:12:52]line Версия ККМ: 001 [22:12:52]line ФМ: 0000000000963154 [22:12:52]line ФД: 28773 [22:12:52]line ФПД: 255716171880450 [22:12:52]line 1/tax-web-control/client/api/v1/ticket?date=20240412T221252&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28773&fm=255716171880450&tin=02508201610067®Number=0000138879044617&sum=20000 [22:12:52]OFD Sender: Processing packet 28773 [packets to send 8, broken 7] [22:12:52]ProducePacketName [22:12:52]name=ofd_packets/00028773 [22:12:52]OFD Sender: To server: pG, [22:12:52]CommunicateWithHost lk.salyk.kg:30040 [22:12:52]ConnectInit lk.salyk.kg [22:12:52]written 0, free lines is 4095 [22:12:53]Connected sock=10 [22:12:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 6A 54 08 01 87 81 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FE 0B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 4F 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 51 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 E4 B1 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 65 70 00 00 35 04 06 00 E8 92 8F 96 98 02 D3 62 B1 D3 14 BA 84 13 [22:12:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 E8 84 47 00 9C 35 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 65 70 00 00 F4 03 04 00 8D 5C 19 66 B6 04 01 00 00 BE D0 6B 7C 24 E3 1E 0C [22:12:53]CommunicateWithHost err = 0 [22:12:53]CheckOFDResponse [22:12:53]1017 (14) - 77093643461234 [22:12:53]1041 (16) - 0000000000963154 [22:12:53]1040 (4) - 28773 [22:12:53]1012 (4) - 12.04.2024 16:08 [22:12:53]1206 (1) - 0 [22:12:53]OFD Sender: Remove packet 28773 [22:12:53]ProducePacketName [22:12:53]name=ofd_packets/00028773 [22:12:53]NVStorageDeleteData [22:12:53]Write to MH i2c: 01 00 00 12 0F 21 [22:12:53]Write i2c OK [22:12:53]MH_I2C_Read... [22:12:53]Read from MH i2c: 01 [22:12:53]MH_I2C_Read... [22:12:53]Read from MH i2c: 01 07 00 [22:12:53]MH_I2C_Read... [22:12:53]Read from MH i2c: 01 07 00 12 0F 00 00 00 00 00 C8 0C FC [22:12:53]RasterBufferAndPrint [22:12:53]line [22:12:53]line [22:12:53]line [22:12:53]line [22:12:53]line [22:12:53]written 0, free lines is 3276 [22:12:53]MH_Cut [22:12:53]Write to MH i2c: D1 01 00 19 0F 01 FA [22:12:53]Write i2c OK [22:12:53]MH_I2C_Read... [22:12:53]Read from MH i2c: D1 [22:12:53]MH_I2C_Read... [22:12:53]Read from MH i2c: D1 01 00 [22:12:53]MH_I2C_Read... [22:12:53]Read from MH i2c: D1 01 00 19 0F 00 F9 [22:12:53]Write to MH i2c: 01 00 00 1A 0F 29 [22:12:53]Write i2c OK [22:12:53]MH_I2C_Read... [22:12:53]OFD Sender: No OFD packet to send [22:12:54]*** Cut start [22:12:54]*** Partial cut [22:12:54]*** CUTSNS_PIN = 1 [22:12:54]*** CUTSNS_PIN = 0 [22:12:54]*** Brake cut motor [22:12:54]Read from MH i2c: 01 [22:12:54]MH_I2C_Read... [22:12:54]*** Stop cut motor [22:12:54]*** Cut end [22:12:54]Read from MH i2c: 01 07 00 [22:12:54]MH_I2C_Read... [22:12:54]Read from MH i2c: 01 07 00 1A 0F 00 00 00 00 00 FF 0F 3E [22:12:54]process_action close_receipt done [22:12:54]requested_data is exist [22:12:54]produce_requested_data [22:12:54]requested_item fm.sn is exist - process it [22:12:54]wFMCommunicate request_size=4 [22:12:54]MH_SAM_APDU [22:12:54]CAPDU: 80 11 00 00 [22:12:54]Write to MH i2c: E2 08 00 1B 0F 80 11 00 00 00 00 00 00 A4 [22:12:54]Write i2c OK [22:12:54]MH_I2C_Read... [22:12:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:12:54]Read from MH i2c: E2 [22:12:54]MH_I2C_Read... [22:12:54]Read from MH i2c: E2 17 00 [22:12:54]MH_I2C_Read... [22:12:54]Read from MH i2c: E2 17 00 1B 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 F3 [22:12:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [22:12:54]wFMCommunicate OK [22:12:54]requested_item fd.num is exist - process it [22:12:54]SAM_PROTO_GetFieldsCounters [22:12:54]wFMCommunicate request_size=4 [22:12:54]MH_SAM_APDU [22:12:54]CAPDU: 80 13 00 00 [22:12:54]Write to MH i2c: E2 08 00 1C 0F 80 13 00 00 00 00 00 00 A7 [22:12:54]Write i2c OK [22:12:54]MH_I2C_Read... [22:12:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:12:55]Read from MH i2c: E2 [22:12:55]MH_I2C_Read... [22:12:55]Read from MH i2c: E2 62 00 [22:12:55]MH_I2C_Read... [22:12:55]Read from MH i2c: E2 62 00 1C 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 65 70 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 B9 [22:12:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 65 70 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 [22:12:55]wFMCommunicate OK [22:12:55]SAM_PROTO_GetFieldsCounters done [22:12:55]requested_item shift.num is exist - process it [22:12:55]requested_item shift.opened is exist - process it [22:12:55]req_shift_opened [22:12:55]FM_GetShiftState [22:12:55]SAM_PROTO_GetShiftState [22:12:55]wFMCommunicate request_size=4 [22:12:55]MH_SAM_APDU [22:12:55]CAPDU: 80 13 01 00 [22:12:55]Write to MH i2c: E2 08 00 1D 0F 80 13 01 00 00 00 00 00 A9 [22:12:55]Write i2c OK [22:12:55]MH_I2C_Read... [22:12:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:12:55]Read from MH i2c: E2 [22:12:55]MH_I2C_Read... [22:12:55]Read from MH i2c: E2 0E 00 [22:12:55]MH_I2C_Read... [22:12:55]Read from MH i2c: E2 0E 00 1D 0F 00 09 00 01 17 88 19 66 00 00 00 00 90 00 D3 [22:12:55]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [22:12:55]wFMCommunicate OK [22:12:55]SAM_PROTO_GetShiftState done [22:12:55]FM_GetShiftState done [22:12:55]req_shift_opened done [22:12:55]requested_item shift.open_date is exist - process it [22:12:55]req_shift_open_date [22:12:55]req_shift_open_date done [22:12:55]produce_requested_data done [22:12:55]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28773,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271} [22:12:55]process_action_free close_receipt [22:12:55]json_value_free [22:12:55]json_value_free done [22:12:55]process_json_proto returns [22:12:55]Send response to host [22:12:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28773,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271}}} [22:12:55]free response buf [22:12:55]execute_script done [22:12:55]execute_script returns [22:12:55]free content buf [22:12:55]Sock 9.Close socket [22:12:55]Sock 9.Thread stoped [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:51]accept exits with 7 [22:17:51]New connection [22:17:51]New thread 3066785124 created [22:17:51]Thread 3066928484 joined [22:17:51]Waiting for new connection... [22:17:51] Sock 7.Parse request [22:17:51]Sock 7.Check first char [22:17:51]Sock 7.First char is OK [22:17:51]request: POST /json_proto HTTP/1.0 [22:17:51]Method: POST [22:17:51]URL: /json_proto [22:17:51]Method is POST - this is cgi request [22:17:51]url: /json_proto [22:17:51]query_string will be loaded in cgi processing [22:17:51]execute_cgi json_proto POST (null) [22:17:51]execute_cgi path=json_proto method=POST [22:17:51]POST find Content-Length [22:17:51]Host: 172.17.33.3:8080 [22:17:51]Content-Length: 840 [22:17:51]Content-Type: application/json [22:17:51] [22:17:51]POST finish read [22:17:51]Found Content-Length = 840 [22:17:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347118", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 13.820, "sum" : 1000.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:17:51]execute_script... [22:17: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)347118", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 13.820, "sum" : 1000.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:17:51]POST & json_proto [22:17:51]process_json_proto [22:17:51]json parsed OK: [22:17:51]protocol is kg_v1.0 [22:17:51]action value=close_receipt [22:17:51]process_action close_receipt [22:17:51]cmd_close_receipt [22:17:51]MH_GetDate [22:17:51]Write to MH i2c: F0 00 00 1E 0F 1C [22:17:51]Write i2c OK [22:17:51]MH_I2C_Read... [22:17:51]Read from MH i2c: F0 [22:17:51]MH_I2C_Read... [22:17:51]Read from MH i2c: F0 09 00 [22:17:51]MH_I2C_Read... [22:17:51]Read from MH i2c: F0 09 00 1E 0F 00 11 B3 19 66 23 5B 8F 65 DA [22:17:51]GetLastDocTimeStamp 1712959972 [22:17:51]current date 1712960273 [22:17:51]FM_GetShiftState [22:17:51]SAM_PROTO_GetShiftState [22:17:51]wFMCommunicate request_size=4 [22:17:51]MH_SAM_APDU [22:17:51]CAPDU: 80 13 01 00 [22:17:51]Write to MH i2c: E2 08 00 1F 0F 80 13 01 00 00 00 00 00 AB [22:17:51]Write i2c OK [22:17:51]MH_I2C_Read... [22:17:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:17:51]Read from MH i2c: E2 [22:17:51]MH_I2C_Read... [22:17:51]Read from MH i2c: E2 0E 00 [22:17:51]MH_I2C_Read... [22:17:51]Read from MH i2c: E2 0E 00 1F 0F 00 09 00 01 17 88 19 66 00 00 00 00 90 00 D5 [22:17:51]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [22:17:51]wFMCommunicate OK [22:17:51]SAM_PROTO_GetShiftState done [22:17:51]FM_GetShiftState done [22:17:51]opened in 1712949271 [22:17:51]opened+sec_in_day 1713035671 [22:17:51]quantity*price = 100056 [22:17:51]sum+1 = 100058 [22:17:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.57 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.57 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 48 12.04.2024 22:17 Смена: 114 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 28774 ФПД: 6126768801356 1/tax-web-control/client/api/v1/ticket?date=20240412T221753&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28774&fm=6126768801356&tin=02508201610067®Number=0000138879044617&sum=100057 [22:17:53]StoreToDocumentArchive [22:17:53]shift 114 fd 28774 [22:17:53]save to /storage/0114/doc_00028774 [22:17:53]save last doc name /storage/0114/doc_00028774 to /storage/kkm_last_doc_name [22:17:53]save OK [22:17:53]Clear old archive folders... [22:17:53]ProcessDocumentItem done err = 0, tmpTLVsize=248 [22:17:53]tlvbuf is 011BEF80 [22:17:53]SAM_PROTO_ClearQueue [22:17:53]wFMCommunicate request_size=4 [22:17:53]MH_SAM_APDU [22:17:53]CAPDU: 80 09 00 00 [22:17:53]Write to MH i2c: E2 08 00 2C 0F 80 09 00 00 00 00 00 00 AD [22:17:53]Write i2c OK [22:17:53]MH_I2C_Read... [22:17:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:17:53]Read from MH i2c: E2 [22:17:53]MH_I2C_Read... [22:17:53]Read from MH i2c: E2 03 00 [22:17:53]MH_I2C_Read... [22:17:53]Read from MH i2c: E2 03 00 2C 0F 00 90 00 AF [22:17:53]RAPDU: 90 00 [22:17:53]wFMCommunicate OK [22:17:53]SAM_PROTO_ClearQueue done [22:17:53]KKMCreateOFDPacket [22:17:53]OFDProtocolAddRootSTLVToBuf [22:17:53]FM_MakeSignedData [22:17:53]FM_MakeSignedData [22:17:53]SAM_PROTO_SignData [22:17:53]wFMCommunicate request_size=4 [22:17:53]MH_SAM_APDU [22:17:53]CAPDU: 80 0D 01 02 [22:17:53]Write to MH i2c: E2 08 00 2D 0F 80 0D 01 02 00 00 00 00 B5 [22:17:53]Write i2c OK [22:17:53]MH_I2C_Read... [22:17:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:17:53]Read from MH i2c: E2 [22:17:53]MH_I2C_Read... [22:17:53]Read from MH i2c: E2 03 00 [22:17:53]MH_I2C_Read... [22:17:53]Read from MH i2c: E2 03 00 2D 0F 00 90 00 B0 [22:17:53]RAPDU: 90 00 [22:17:53]wFMCommunicate OK [22:17:53]wFMCommunicate request_size=255 [22:17:53]MH_SAM_APDU [22:17:53]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FC 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D9 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D9 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 D9 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 11 B3 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 66 70 00 00 35 04 06 00 05 92 7F E0 [22:17:53]Write to MH i2c: E2 02 01 2E 0F 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 35 FF 03 08 00 03 FC 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D9 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D9 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 D9 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 11 B3 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 66 70 00 00 35 04 06 00 05 92 7F E0 00 00 B7 [22:17:53]Write i2c OK [22:17:53]MH_I2C_Read... [22:17:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:17:53]Read from MH i2c: E2 [22:17:53]MH_I2C_Read... [22:17:53]Read from MH i2c: E2 03 00 [22:17:53]MH_I2C_Read... [22:17:53]Read from MH i2c: E2 03 00 2E 0F 00 90 00 B1 [22:17:53]RAPDU: 90 00 [22:17:53]wFMCommunicate OK [22:17:53]wFMCommunicate request_size=7 [22:17:53]MH_SAM_APDU [22:17:53]CAPDU: 80 0D 02 02 02 C6 4C [22:17:53]Write to MH i2c: E2 0A 00 2F 0F 80 0D 02 02 02 00 C6 4C 00 00 CE [22:17:53]Write i2c OK [22:17:53]MH_I2C_Read... [22:17:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:17:53]Read from MH i2c: E2 [22:17:53]MH_I2C_Read... [22:17:53]Read from MH i2c: E2 03 00 [22:17:53]MH_I2C_Read... [22:17:53]Read from MH i2c: E2 03 00 2F 0F 00 90 00 B2 [22:17:53]RAPDU: 90 00 [22:17:53]wFMCommunicate OK [22:17:53]wFMCommunicate request_size=4 [22:17:53]MH_SAM_APDU [22:17:53]CAPDU: 80 0D 03 02 [22:17:53]Write to MH i2c: E2 08 00 30 0F 80 0D 03 02 00 00 00 00 BA [22:17:53]Write i2c OK [22:17:53]MH_I2C_Read... [22:17:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:17:53]Read from MH i2c: E2 [22:17:53]MH_I2C_Read... [22:17:53]Read from MH i2c: E2 0B 00 [22:17:53]MH_I2C_Read... [22:17:53]Read from MH i2c: E2 0B 00 30 0F 00 FC D8 5F E9 77 DE EE 08 90 00 22 [22:17:53]RAPDU: FC D8 5F E9 77 DE EE 08 90 00 [22:17:53]wFMCommunicate OK [22:17:53]SAM_PROTO_SignData done [22:17:53]FM_MakeSignedData done [22:17:53]CreateOFDProtocolMessage [22:17:53]wFMCommunicate request_size=4 [22:17:53]MH_SAM_APDU [22:17:53]CAPDU: 80 11 00 00 [22:17:53]Write to MH i2c: E2 08 00 31 0F 80 11 00 00 00 00 00 00 BA [22:17:53]Write i2c OK [22:17:53]MH_I2C_Read... [22:17:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:17:53]Read from MH i2c: E2 [22:17:53]MH_I2C_Read... [22:17:53]Read from MH i2c: E2 17 00 [22:17:53]MH_I2C_Read... [22:17:53]Read from MH i2c: E2 17 00 31 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 09 [22:17:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [22:17:53]wFMCommunicate OK [22:17:53]CreateOFDProtocolMessage done [22:17:53]OFDSenderStorePacket 28774 [22:17:53]StoreOFDPacket docnum=28774 [22:17:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 DC 2F 04 01 AC 92 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FC 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D9 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D9 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 D9 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 11 B3 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 66 70 00 00 35 04 06 00 05 92 7F E0 C6 4C FC D8 5F E9 77 DE EE 08 [22:17:53]CheckFolder [22:17:53]dirname=/storage/ofd_packets [22:17:53]CheckFolder done [22:17:53]ProducePacketName [22:17:53]name=ofd_packets/00028774 [22:17:53]NVStorageSaveData ofd_packets/00028774 [22:17:53]File name is /storage/ofd_packets/00028774 [22:17:53]Write 298 bytes [22:17:53]NVStorageSaveData done [22:17:53]OFDSenderStorePacket done [22:17:53]KKMCreateOFDPacket done [22:17:53]NVStorageSaveData kkm_last_timestamp [22:17:53]File name is /storage/kkm_last_timestamp [22:17:53]Write 4 bytes [22:17:53]NVStorageSaveData done [22:17:53]ExternCall_PrintAddStr [22:17:53]wPrintStart [22:17:53]Write to MH i2c: 01 00 00 32 0F 41 [22:17:53]Write i2c OK [22:17:53]MH_I2C_Read... [22:17:53]Read from MH i2c: 01 [22:17:53]MH_I2C_Read... [22:17:53]Read from MH i2c: 01 07 00 [22:17:53]MH_I2C_Read... [22:17:53]Read from MH i2c: 01 07 00 32 0F 00 00 00 00 00 FF 0F 56 [22:17:53]RasterBufferAndPrint [22:17:53]line Счет N : (1)347118 [22:17:53]line ИНН: 02508201610067 [22:17:53]line Контрольно-Кассовый Чек [22:17:53]line ПРОДАЖА [22:17:53]line ТРК (МРК, ГНК) : 11 [22:17:53]line Товар: 2710194210 [22:17:53]line ДТ-К-5 [22:17:53]line 13.820 * 72.40 [22:17:53]line = 1000.57 [22:17:53]line НДС 12% НСП 1% [22:17:53]line > о реализуемом товаре [22:17:53]line ИТОГО: 1000.57 [22:17:53]line НСП 1% : 8.85 [22:17:53]line НДС 12% : 106.25 [22:17:53]line Наличными: 0.00 [22:17:53]line Безнал.: 1000.57 [22:17:53]line Место: АЗС № 108 "Партнер Нефть" [22:17:53]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [22:17:53]line СНО: Общий режим [22:17:53]line Чек 48 12.04.2024 22:17 [22:17:53]line Смена: 114 ФФД: 1.0 [22:17:53]line ЗНМ: 0300000027 [22:17:53]line РНМ: 0000138879044617 [22:17:53]line Версия ККМ: 001 [22:17:53]line Платежная система: АКБ Кыргызстан [22:17:53]line ФМ: 0000000000963154 [22:17:53]line ФД: 28774 [22:17:53]line ФПД: 6126768801356 [22:17:53]line 1/tax-web-control/client/api/v1/ticket?date=20240412T221753&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28774&fm=6126768801356&tin=02508201610067®Number=0000138879044617&sum=100057 [22:17:53]OFD Sender: Processing packet 28774 [packets to send 8, broken 7] [22:17:53]ProducePacketName [22:17:53]name=ofd_packets/00028774 [22:17:53]OFD Sender: To server: pG, [22:17:53]CommunicateWithHost lk.salyk.kg:30040 [22:17:53]ConnectInit lk.salyk.kg [22:17:53]written 0, free lines is 4095 [22:17:53]Connected sock=10 [22:17:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 DC 2F 04 01 AC 92 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FC 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D9 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D9 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 D9 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 11 B3 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 66 70 00 00 35 04 06 00 05 92 7F E0 C6 4C FC D8 5F E9 77 DE EE 08 [22:17:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 1B 8D 47 00 7F 37 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 66 70 00 00 F4 03 04 00 BA 5D 19 66 B6 04 01 00 00 D7 C9 49 FF D6 0C 7F 4C [22:17:54]CommunicateWithHost err = 0 [22:17:54]CheckOFDResponse [22:17:54]1017 (14) - 77093643461234 [22:17:54]1041 (16) - 0000000000963154 [22:17:54]1040 (4) - 28774 [22:17:54]1012 (4) - 12.04.2024 16:13 [22:17:54]1206 (1) - 0 [22:17:54]OFD Sender: Remove packet 28774 [22:17:54]ProducePacketName [22:17:54]name=ofd_packets/00028774 [22:17:54]NVStorageDeleteData [22:17:54]Write to MH i2c: 01 00 00 5B 0F 6A [22:17:54]Write i2c OK [22:17:54]MH_I2C_Read... [22:17:54]Read from MH i2c: 01 [22:17:54]MH_I2C_Read... [22:17:54]Read from MH i2c: 01 07 00 [22:17:54]MH_I2C_Read... [22:17:54]Read from MH i2c: 01 07 00 5B 0F 00 00 00 00 00 E8 0C 65 [22:17:54]RasterBufferAndPrint [22:17:54]line [22:17:54]line [22:17:54]line [22:17:54]line [22:17:54]line [22:17:54]written 0, free lines is 3310 [22:17:54]MH_Cut [22:17:54]Write to MH i2c: D1 01 00 62 0F 01 43 [22:17:54]Write i2c OK [22:17:54]MH_I2C_Read... [22:17:54]Read from MH i2c: D1 [22:17:54]MH_I2C_Read... [22:17:54]Read from MH i2c: D1 01 00 [22:17:54]MH_I2C_Read... [22:17:54]Read from MH i2c: D1 01 00 62 0F 00 42 [22:17:54]Write to MH i2c: 01 00 00 63 0F 72 [22:17:54]Write i2c OK [22:17:54]MH_I2C_Read... [22:17:54]OFD Sender: No OFD packet to send [22:17:55]*** Cut start [22:17:55]*** Partial cut [22:17:55]*** CUTSNS_PIN = 1 [22:17:55]*** CUTSNS_PIN = 0 [22:17:55]*** Brake cut motor [22:17:55]Read from MH i2c: 01 [22:17:55]MH_I2C_Read... [22:17:55]*** Stop cut motor [22:17:55]*** Cut end [22:17:55]Read from MH i2c: 01 07 00 [22:17:55]MH_I2C_Read... [22:17:55]Read from MH i2c: 01 07 00 63 0F 00 00 00 00 00 FF 0F 87 [22:17:55]process_action close_receipt done [22:17:55]requested_data is exist [22:17:55]produce_requested_data [22:17:55]requested_item fm.sn is exist - process it [22:17:55]wFMCommunicate request_size=4 [22:17:55]MH_SAM_APDU [22:17:55]CAPDU: 80 11 00 00 [22:17:55]Write to MH i2c: E2 08 00 64 0F 80 11 00 00 00 00 00 00 ED [22:17:55]Write i2c OK [22:17:55]MH_I2C_Read... [22:17:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:17:55]Read from MH i2c: E2 [22:17:55]MH_I2C_Read... [22:17:55]Read from MH i2c: E2 17 00 [22:17:55]MH_I2C_Read... [22:17:55]Read from MH i2c: E2 17 00 64 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 3C [22:17:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [22:17:55]wFMCommunicate OK [22:17:55]requested_item fd.num is exist - process it [22:17:55]SAM_PROTO_GetFieldsCounters [22:17:55]wFMCommunicate request_size=4 [22:17:55]MH_SAM_APDU [22:17:55]CAPDU: 80 13 00 00 [22:17:55]Write to MH i2c: E2 08 00 65 0F 80 13 00 00 00 00 00 00 F0 [22:17:55]Write i2c OK [22:17:55]MH_I2C_Read... [22:17:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:17:55]Read from MH i2c: E2 [22:17:55]MH_I2C_Read... [22:17:55]Read from MH i2c: E2 62 00 [22:17:55]MH_I2C_Read... [22:17:55]Read from MH i2c: E2 62 00 65 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 66 70 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 06 [22:17:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 66 70 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 [22:17:55]wFMCommunicate OK [22:17:55]SAM_PROTO_GetFieldsCounters done [22:17:55]requested_item shift.num is exist - process it [22:17:55]requested_item shift.opened is exist - process it [22:17:55]req_shift_opened [22:17:55]FM_GetShiftState [22:17:55]SAM_PROTO_GetShiftState [22:17:55]wFMCommunicate request_size=4 [22:17:55]MH_SAM_APDU [22:17:55]CAPDU: 80 13 01 00 [22:17:55]Write to MH i2c: E2 08 00 66 0F 80 13 01 00 00 00 00 00 F2 [22:17:55]Write i2c OK [22:17:55]MH_I2C_Read... [22:17:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:17:56]Read from MH i2c: E2 [22:17:56]MH_I2C_Read... [22:17:56]Read from MH i2c: E2 0E 00 [22:17:56]MH_I2C_Read... [22:17:56]Read from MH i2c: E2 0E 00 66 0F 00 09 00 01 17 88 19 66 00 00 00 00 90 00 1C [22:17:56]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [22:17:56]wFMCommunicate OK [22:17:56]SAM_PROTO_GetShiftState done [22:17:56]FM_GetShiftState done [22:17:56]req_shift_opened done [22:17:56]requested_item shift.open_date is exist - process it [22:17:56]req_shift_open_date [22:17:56]req_shift_open_date done [22:17:56]produce_requested_data done [22:17:56]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28774,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271} [22:17:56]process_action_free close_receipt [22:17:56]json_value_free [22:17:56]json_value_free done [22:17:56]process_json_proto returns [22:17:56]Send response to host [22:17:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28774,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271}}} [22:17:56]free response buf [22:17:56]execute_script done [22:17:56]execute_script returns [22:17:56]free content buf [22:17:56]Sock 7.Close socket [22:17:56]Sock 7.Thread stoped [22:17:59]OFD Sender: No OFD packet to send [22:18:04]OFD Sender: No OFD packet to send [22:18:09]OFD Sender: No OFD packet to send [22:18:14]OFD Sender: No OFD packet to send [22:18:19]OFD Sender: No OFD packet to send [22:18:24]OFD Sender: No OFD packet to send [22:18:29]OFD Sender: No OFD packet to send [22:18:34]OFD Sender: No OFD packet to send [22:18:39]OFD Sender: No OFD packet to send [22:18:44]OFD Sender: No OFD packet to send [22:18:49]OFD Sender: No OFD packet to send [22:18:54]OFD Sender: No OFD packet to send [22:18:59]OFD Sender: No OFD packet to send [22:19:04]OFD Sender: No OFD packet to send [22:19:09]OFD Sender: No OFD packet to send [22:19:14]OFD Sender: No OFD packet to send [22:19:19]OFD Sender: No OFD packet to send [22:19:24]OFD Sender: No OFD packet to send [22:19:29]OFD Sender: No OFD packet to send [22:19:34]OFD Sender: No OFD packet to send [22:19:39]OFD Sender: No OFD packet to send [22:19:44]OFD Sender: No OFD packet to send [22:19:49]OFD Sender: No OFD packet to send [22:19:54]OFD Sender: No OFD packet to send [22:19:59]OFD Sender: No OFD packet to send [22:20:04]OFD Sender: No OFD packet to send [22:20:09]OFD Sender: No OFD packet to send [22:20:14]OFD Sender: No OFD packet to send [22:20:19]OFD Sender: No OFD packet to send [22:20:24]OFD Sender: No OFD packet to send [22:20:29]OFD Sender: No OFD packet to send [22:20:34]OFD Sender: No OFD packet to send [22:20:39]OFD Sender: No OFD packet to send [22:20:44]OFD Sender: No OFD packet to send [22:20:49]OFD Sender: No OFD packet to send [22:20:54]OFD Sender: No OFD packet to send [22:20:59]OFD Sender: No OFD packet to send [22:21:04]OFD Sender: No OFD packet to send [22:21:09]OFD Sender: No OFD packet to send [22:21:14]OFD Sender: No OFD packet to send [22:21:19]OFD Sender: No OFD packet to send [22:21:24]OFD Sender: No OFD packet to send [22:21:29]OFD Sender: No OFD packet to send [22:21:34]OFD Sender: No OFD packet to send [22:21:39]OFD Sender: No OFD packet to send [22:21:44]OFD Sender: No OFD packet to send [22:21:49]OFD Sender: No OFD packet to send [22:21:54]OFD Sender: No OFD packet to send [22:21:59]OFD Sender: No OFD packet to send [22:22:04]OFD Sender: No OFD packet to send [22:22:09]OFD Sender: No OFD packet to send [22:22:14]OFD Sender: No OFD packet to send [22:22:19]OFD Sender: No OFD packet to send [22:22:24]OFD Sender: No OFD packet to send [22:22:29]OFD Sender: No OFD packet to send [22:22:34]OFD Sender: No OFD packet to send [22:22:39]OFD Sender: No OFD packet to send [22:22:44]OFD Sender: No OFD packet to send [22:22:49]OFD Sender: No OFD packet to send [22:22:54]OFD Sender: No OFD packet to send [22:22:59]OFD Sender: No OFD packet to send [22:23:04]OFD Sender: No OFD packet to send [22:23:09]OFD Sender: No OFD packet to send [22:23:14]OFD Sender: No OFD packet to send [22:23:18]accept exits with 9 [22:23:18]New connection [22:23:18]New thread 3066928484 created [22:23:18]Thread 3066785124 joined [22:23:18]Waiting for new connection... [22:23:18] Sock 9.Parse request [22:23:18]Sock 9.Check first char [22:23:18]Sock 9.First char is OK [22:23:18]request: POST /json_proto HTTP/1.0 [22:23:18]Method: POST [22:23:18]URL: /json_proto [22:23:18]Method is POST - this is cgi request [22:23:18]url: /json_proto [22:23:18]query_string will be loaded in cgi processing [22:23:18]execute_cgi json_proto POST (null) [22:23:18]execute_cgi path=json_proto method=POST [22:23:18]POST find Content-Length [22:23:18]Host: 172.17.33.3:8080 [22:23:18]Content-Length: 798 [22:23:18]Content-Type: application/json [22:23:18] [22:23:18]POST finish read [22:23:18]Found Content-Length = 798 [22:23:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347119", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 7.660, "sum" : 500.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.20 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:23:18]execute_script... [22:23: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)347119", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 7.660, "sum" : 500.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.20 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:23:18]POST & json_proto [22:23:18]process_json_proto [22:23:18]json parsed OK: [22:23:18]protocol is kg_v1.0 [22:23:18]action value=close_receipt [22:23:18]process_action close_receipt [22:23:18]cmd_close_receipt [22:23:18]MH_GetDate [22:23:18]Write to MH i2c: F0 00 00 67 0F 65 [22:23:18]Write i2c OK [22:23:18]MH_I2C_Read... [22:23:18]Read from MH i2c: F0 [22:23:18]MH_I2C_Read... [22:23:18]Read from MH i2c: F0 09 00 [22:23:18]MH_I2C_Read... [22:23:18]Read from MH i2c: F0 09 00 67 0F 00 58 B4 19 66 23 5B 8F 65 6B [22:23:18]GetLastDocTimeStamp 1712960273 [22:23:18]current date 1712960600 [22:23:18]FM_GetShiftState [22:23:18]SAM_PROTO_GetShiftState [22:23:18]wFMCommunicate request_size=4 [22:23:18]MH_SAM_APDU [22:23:18]CAPDU: 80 13 01 00 [22:23:18]Write to MH i2c: E2 08 00 68 0F 80 13 01 00 00 00 00 00 F4 [22:23:18]Write i2c OK [22:23:18]MH_I2C_Read... [22:23:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:23:18]Read from MH i2c: E2 [22:23:18]MH_I2C_Read... [22:23:18]Read from MH i2c: E2 0E 00 [22:23:18]MH_I2C_Read... [22:23:18]Read from MH i2c: E2 0E 00 68 0F 00 09 00 01 17 88 19 66 00 00 00 00 90 00 1E [22:23:18]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [22:23:18]wFMCommunicate OK [22:23:18]SAM_PROTO_GetShiftState done [22:23:18]FM_GetShiftState done [22:23:18]opened in 1712949271 [22:23:18]opened+sec_in_day 1713035671 [22:23:18]quantity*price = 50019 [22:23:18]sum+1 = 50021 [22:23:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.20 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 0.00 Безнал.: 500.20 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 49 12.04.2024 22:23 Смена: 114 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 28775 ФПД: 196018832379618 1/tax-web-control/client/api/v1/ticket?date=20240412T222320&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28775&fm=196018832379618&tin=02508201610067®Number=0000138879044617&sum=50020 [22:23:19]StoreToDocumentArchive [22:23:19]shift 114 fd 28775 [22:23:19]save to /storage/0114/doc_00028775 [22:23:19]save last doc name /storage/0114/doc_00028775 to /storage/kkm_last_doc_name [22:23:19]save OK [22:23:19]Clear old archive folders... [22:23:19]ProcessDocumentItem done err = 0, tmpTLVsize=252 [22:23:19]tlvbuf is 011B3CF0 [22:23:19]SAM_PROTO_ClearQueue [22:23:19]wFMCommunicate request_size=4 [22:23:19]MH_SAM_APDU [22:23:19]CAPDU: 80 09 00 00 [22:23:19]Write to MH i2c: E2 08 00 75 0F 80 09 00 00 00 00 00 00 F6 [22:23:19]Write i2c OK [22:23:19]MH_I2C_Read... [22:23:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:23:19]Read from MH i2c: E2 [22:23:19]MH_I2C_Read... [22:23:19]Read from MH i2c: E2 03 00 [22:23:19]MH_I2C_Read... [22:23:19]Read from MH i2c: E2 03 00 75 0F 00 90 00 F8 [22:23:19]RAPDU: 90 00 [22:23:19]wFMCommunicate OK [22:23:19]SAM_PROTO_ClearQueue done [22:23:19]KKMCreateOFDPacket [22:23:19]OFDProtocolAddRootSTLVToBuf [22:23:19]FM_MakeSignedData [22:23:19]FM_MakeSignedData [22:23:19]SAM_PROTO_SignData [22:23:19]wFMCommunicate request_size=4 [22:23:19]MH_SAM_APDU [22:23:19]CAPDU: 80 0D 01 02 [22:23:19]Write to MH i2c: E2 08 00 76 0F 80 0D 01 02 00 00 00 00 FE [22:23:19]Write i2c OK [22:23:19]MH_I2C_Read... [22:23:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:23:19]Read from MH i2c: E2 [22:23:19]MH_I2C_Read... [22:23:19]Read from MH i2c: E2 03 00 [22:23:19]MH_I2C_Read... [22:23:19]Read from MH i2c: E2 03 00 76 0F 00 90 00 F9 [22:23:19]RAPDU: 90 00 [22:23:19]wFMCommunicate OK [22:23:19]wFMCommunicate request_size=255 [22:23:19]MH_SAM_APDU [22:23:19]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 1D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 64 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 64 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 58 B4 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 67 70 00 00 35 04 06 00 [22:23:19]Write to MH i2c: E2 02 01 77 0F 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 1D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 64 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 64 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 58 B4 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 67 70 00 00 35 04 06 00 00 00 7D [22:23:19]Write i2c OK [22:23:19]MH_I2C_Read... [22:23:19]OFD Sender: No OFD packet to send [22:23:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:23:20]Read from MH i2c: E2 [22:23:20]MH_I2C_Read... [22:23:20]Read from MH i2c: E2 03 00 [22:23:20]MH_I2C_Read... [22:23:20]Read from MH i2c: E2 03 00 77 0F 00 90 00 FA [22:23:20]RAPDU: 90 00 [22:23:20]wFMCommunicate OK [22:23:20]wFMCommunicate request_size=11 [22:23:20]MH_SAM_APDU [22:23:20]CAPDU: 80 0D 02 02 06 B2 47 30 DF 8E E2 [22:23:20]Write to MH i2c: E2 0E 00 78 0F 80 0D 02 02 06 00 B2 47 30 DF 8E E2 00 00 85 [22:23:20]Write i2c OK [22:23:20]MH_I2C_Read... [22:23:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:23:20]Read from MH i2c: E2 [22:23:20]MH_I2C_Read... [22:23:20]Read from MH i2c: E2 03 00 [22:23:20]MH_I2C_Read... [22:23:20]Read from MH i2c: E2 03 00 78 0F 00 90 00 FB [22:23:20]RAPDU: 90 00 [22:23:20]wFMCommunicate OK [22:23:20]wFMCommunicate request_size=4 [22:23:20]MH_SAM_APDU [22:23:20]CAPDU: 80 0D 03 02 [22:23:20]Write to MH i2c: E2 08 00 79 0F 80 0D 03 02 00 00 00 00 03 [22:23:20]Write i2c OK [22:23:20]MH_I2C_Read... [22:23:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:23:20]Read from MH i2c: E2 [22:23:20]MH_I2C_Read... [22:23:20]Read from MH i2c: E2 0B 00 [22:23:20]MH_I2C_Read... [22:23:20]Read from MH i2c: E2 0B 00 79 0F 00 95 33 28 B5 92 B3 D2 18 90 00 D8 [22:23:20]RAPDU: 95 33 28 B5 92 B3 D2 18 90 00 [22:23:20]wFMCommunicate OK [22:23:20]SAM_PROTO_SignData done [22:23:20]FM_MakeSignedData done [22:23:20]CreateOFDProtocolMessage [22:23:20]wFMCommunicate request_size=4 [22:23:20]MH_SAM_APDU [22:23:20]CAPDU: 80 11 00 00 [22:23:20]Write to MH i2c: E2 08 00 7A 0F 80 11 00 00 00 00 00 00 03 [22:23:20]Write i2c OK [22:23:20]MH_I2C_Read... [22:23:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:23:20]Read from MH i2c: E2 [22:23:20]MH_I2C_Read... [22:23:20]Read from MH i2c: E2 17 00 [22:23:20]MH_I2C_Read... [22:23:20]Read from MH i2c: E2 17 00 7A 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 52 [22:23:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [22:23:20]wFMCommunicate OK [22:23:20]CreateOFDProtocolMessage done [22:23:20]OFDSenderStorePacket 28775 [22:23:20]StoreOFDPacket docnum=28775 [22:23:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 5D 55 08 01 4A 0C 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 1D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 64 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 64 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 58 B4 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 67 70 00 00 35 04 06 00 B2 47 30 DF 8E E2 95 33 28 B5 92 B3 D2 18 [22:23:20]CheckFolder [22:23:20]dirname=/storage/ofd_packets [22:23:20]CheckFolder done [22:23:20]ProducePacketName [22:23:20]name=ofd_packets/00028775 [22:23:20]NVStorageSaveData ofd_packets/00028775 [22:23:20]File name is /storage/ofd_packets/00028775 [22:23:20]Write 302 bytes [22:23:20]NVStorageSaveData done [22:23:20]OFDSenderStorePacket done [22:23:20]KKMCreateOFDPacket done [22:23:20]NVStorageSaveData kkm_last_timestamp [22:23:20]File name is /storage/kkm_last_timestamp [22:23:20]Write 4 bytes [22:23:20]NVStorageSaveData done [22:23:20]ExternCall_PrintAddStr [22:23:20]wPrintStart [22:23:20]Write to MH i2c: 01 00 00 7B 0F 8A [22:23:20]Write i2c OK [22:23:20]MH_I2C_Read... [22:23:20]Read from MH i2c: 01 [22:23:20]MH_I2C_Read... [22:23:20]Read from MH i2c: 01 07 00 [22:23:20]MH_I2C_Read... [22:23:20]Read from MH i2c: 01 07 00 7B 0F 00 00 00 00 00 FF 0F 9F [22:23:20]RasterBufferAndPrint [22:23:20]line Счет N : (1)347119 [22:23:20]line ИНН: 02508201610067 [22:23:20]line Контрольно-Кассовый Чек [22:23:20]line ПРОДАЖА [22:23:20]line ТРК (МРК, ГНК) : 31 [22:23:20]line Товар: 2710124130 [22:23:20]line SUPER-92-К-5 [22:23:20]line 7.660 * 65.30 [22:23:20]line = 500.20 [22:23:20]line НДС 12% НСП 1% [22:23:20]line > о реализуемом товаре [22:23:20]line ИТОГО: 500.20 [22:23:20]line НСП 1% : 4.43 [22:23:20]line НДС 12% : 53.12 [22:23:20]line Наличными: 0.00 [22:23:20]line Безнал.: 500.20 [22:23:20]line Место: АЗС № 108 "Партнер Нефть" [22:23:20]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [22:23:20]line СНО: Общий режим [22:23:20]line Чек 49 12.04.2024 22:23 [22:23:20]line Смена: 114 ФФД: 1.0 [22:23:20]line ЗНМ: 0300000027 [22:23:20]line РНМ: 0000138879044617 [22:23:20]line Версия ККМ: 001 [22:23:20]line Платежная система: О! деньги [22:23:20]line ФМ: 0000000000963154 [22:23:20]line ФД: 28775 [22:23:20]line ФПД: 196018832379618 [22:23:20]line 1/tax-web-control/client/api/v1/ticket?date=20240412T222320&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28775&fm=196018832379618&tin=02508201610067®Number=0000138879044617&sum=50020 [22:23:20]OFD Sender: Processing packet 28775 [packets to send 8, broken 7] [22:23:20]ProducePacketName [22:23:20]name=ofd_packets/00028775 [22:23:20]OFD Sender: To server: pG, [22:23:20]CommunicateWithHost lk.salyk.kg:30040 [22:23:20]ConnectInit lk.salyk.kg [22:23:20]written 0, free lines is 4095 [22:23:20]Connected sock=10 [22:23:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 5D 55 08 01 4A 0C 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 1D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 64 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 64 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 58 B4 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 67 70 00 00 35 04 06 00 B2 47 30 DF 8E E2 95 33 28 B5 92 B3 D2 18 [22:23:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 44 21 47 00 F9 A9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 67 70 00 00 F4 03 04 00 01 5F 19 66 B6 04 01 00 00 00 B4 BB 94 87 AA 3B 59 [22:23:20]CommunicateWithHost err = 0 [22:23:20]CheckOFDResponse [22:23:20]1017 (14) - 77093643461234 [22:23:20]1041 (16) - 0000000000963154 [22:23:20]1040 (4) - 28775 [22:23:20]1012 (4) - 12.04.2024 16:19 [22:23:20]1206 (1) - 0 [22:23:20]OFD Sender: Remove packet 28775 [22:23:20]ProducePacketName [22:23:20]name=ofd_packets/00028775 [22:23:20]NVStorageDeleteData [22:23:21]Write to MH i2c: 01 00 00 A4 0F B3 [22:23:21]Write i2c OK [22:23:21]MH_I2C_Read... [22:23:21]Read from MH i2c: 01 [22:23:21]MH_I2C_Read... [22:23:21]Read from MH i2c: 01 07 00 [22:23:21]MH_I2C_Read... [22:23:21]Read from MH i2c: 01 07 00 A4 0F 00 00 00 00 00 E4 0C AA [22:23:21]RasterBufferAndPrint [22:23:21]line [22:23:21]line [22:23:21]line [22:23:21]line [22:23:21]line [22:23:21]written 0, free lines is 3306 [22:23:21]MH_Cut [22:23:21]Write to MH i2c: D1 01 00 AB 0F 01 8C [22:23:21]Write i2c OK [22:23:21]MH_I2C_Read... [22:23:21]Read from MH i2c: D1 [22:23:21]MH_I2C_Read... [22:23:21]Read from MH i2c: D1 01 00 [22:23:21]MH_I2C_Read... [22:23:21]Read from MH i2c: D1 01 00 AB 0F 00 8B [22:23:21]Write to MH i2c: 01 00 00 AC 0F BB [22:23:21]Write i2c OK [22:23:21]MH_I2C_Read... [22:23:21]OFD Sender: No OFD packet to send [22:23:21]*** Cut start [22:23:21]*** Partial cut [22:23:21]*** CUTSNS_PIN = 1 [22:23:21]*** CUTSNS_PIN = 0 [22:23:22]*** Brake cut motor [22:23:22]Read from MH i2c: 01 [22:23:22]MH_I2C_Read... [22:23:22]*** Stop cut motor [22:23:22]*** Cut end [22:23:22]Read from MH i2c: 01 07 00 [22:23:22]MH_I2C_Read... [22:23:22]Read from MH i2c: 01 07 00 AC 0F 00 00 00 00 00 FF 0F D0 [22:23:22]process_action close_receipt done [22:23:22]requested_data is exist [22:23:22]produce_requested_data [22:23:22]requested_item fm.sn is exist - process it [22:23:22]wFMCommunicate request_size=4 [22:23:22]MH_SAM_APDU [22:23:22]CAPDU: 80 11 00 00 [22:23:22]Write to MH i2c: E2 08 00 AD 0F 80 11 00 00 00 00 00 00 36 [22:23:22]Write i2c OK [22:23:22]MH_I2C_Read... [22:23:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:23:22]Read from MH i2c: E2 [22:23:22]MH_I2C_Read... [22:23:22]Read from MH i2c: E2 17 00 [22:23:22]MH_I2C_Read... [22:23:22]Read from MH i2c: E2 17 00 AD 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 85 [22:23:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [22:23:22]wFMCommunicate OK [22:23:22]requested_item fd.num is exist - process it [22:23:22]SAM_PROTO_GetFieldsCounters [22:23:22]wFMCommunicate request_size=4 [22:23:22]MH_SAM_APDU [22:23:22]CAPDU: 80 13 00 00 [22:23:22]Write to MH i2c: E2 08 00 AE 0F 80 13 00 00 00 00 00 00 39 [22:23:22]Write i2c OK [22:23:22]MH_I2C_Read... [22:23:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:23:22]Read from MH i2c: E2 [22:23:22]MH_I2C_Read... [22:23:22]Read from MH i2c: E2 62 00 [22:23:22]MH_I2C_Read... [22:23:22]Read from MH i2c: E2 62 00 AE 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 67 70 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 53 [22:23:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 67 70 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 [22:23:22]wFMCommunicate OK [22:23:22]SAM_PROTO_GetFieldsCounters done [22:23:22]requested_item shift.num is exist - process it [22:23:22]requested_item shift.opened is exist - process it [22:23:22]req_shift_opened [22:23:22]FM_GetShiftState [22:23:22]SAM_PROTO_GetShiftState [22:23:22]wFMCommunicate request_size=4 [22:23:22]MH_SAM_APDU [22:23:22]CAPDU: 80 13 01 00 [22:23:22]Write to MH i2c: E2 08 00 AF 0F 80 13 01 00 00 00 00 00 3B [22:23:22]Write i2c OK [22:23:22]MH_I2C_Read... [22:23:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:23:22]Read from MH i2c: E2 [22:23:22]MH_I2C_Read... [22:23:22]Read from MH i2c: E2 0E 00 [22:23:22]MH_I2C_Read... [22:23:22]Read from MH i2c: E2 0E 00 AF 0F 00 09 00 01 17 88 19 66 00 00 00 00 90 00 65 [22:23:22]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [22:23:22]wFMCommunicate OK [22:23:22]SAM_PROTO_GetShiftState done [22:23:22]FM_GetShiftState done [22:23:22]req_shift_opened done [22:23:22]requested_item shift.open_date is exist - process it [22:23:22]req_shift_open_date [22:23:22]req_shift_open_date done [22:23:22]produce_requested_data done [22:23:22]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28775,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271} [22:23:22]process_action_free close_receipt [22:23:22]json_value_free [22:23:22]json_value_free done [22:23:22]process_json_proto returns [22:23:22]Send response to host [22:23:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28775,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271}}} [22:23:22]free response buf [22:23:22]execute_script done [22:23:22]execute_script returns [22:23:22]free content buf [22:23:22]Sock 9.Close socket [22:23:22]Sock 9.Thread stoped [22:23:26]OFD Sender: No OFD packet to send [22:23:31]OFD Sender: No OFD packet to send [22:23:36]OFD Sender: No OFD packet to send [22:23:41]OFD Sender: No OFD packet to send [22:23:46]OFD Sender: No OFD packet to send [22:23:51]OFD Sender: No OFD packet to send [22:23:56]OFD Sender: No OFD packet to send [22:24:01]OFD Sender: No OFD packet to send [22:24:06]OFD Sender: No OFD packet to send [22:24:11]OFD Sender: No OFD packet to send [22:24:16]OFD Sender: No OFD packet to send [22:24:21]OFD Sender: No OFD packet to send [22:24:26]OFD Sender: No OFD packet to send [22:24:31]OFD Sender: No OFD packet to send [22:24:36]OFD Sender: No OFD packet to send [22:24:41]OFD Sender: No OFD packet to send [22:24:46]OFD Sender: No OFD packet to send [22:24:51]OFD Sender: No OFD packet to send [22:24:56]OFD Sender: No OFD packet to send [22:25:01]OFD Sender: No OFD packet to send [22:25:06]OFD Sender: No OFD packet to send [22:25:11]OFD Sender: No OFD packet to send [22:25:16]OFD Sender: No OFD packet to send [22:25:21]OFD Sender: No OFD packet to send [22:25:26]OFD Sender: No OFD packet to send [22:25:31]OFD Sender: No OFD packet to send [22:25:36]OFD Sender: No OFD packet to send [22:25:41]OFD Sender: No OFD packet to send [22:25:46]OFD Sender: No OFD packet to send [22:25:51]OFD Sender: No OFD packet to send [22:25:56]OFD Sender: No OFD packet to send [22:26:01]OFD Sender: No OFD packet to send [22:26:06]OFD Sender: No OFD packet to send [22:26:11]OFD Sender: No OFD packet to send [22:26:16]OFD Sender: No OFD packet to send [22:26:21]OFD Sender: No OFD packet to send [22:26:26]OFD Sender: No OFD packet to send [22:26:29]accept exits with 7 [22:26:29]New connection [22:26:29]New thread 3066785124 created [22:26:29]Thread 3066928484 joined [22:26:29]Waiting for new connection... [22:26:29] Sock 7.Parse request [22:26:29]Sock 7.Check first char [22:26:29]Sock 7.First char is OK [22:26:29]request: POST /json_proto HTTP/1.0 [22:26:29]Method: POST [22:26:29]URL: /json_proto [22:26:29]Method is POST - this is cgi request [22:26:29]url: /json_proto [22:26:29]query_string will be loaded in cgi processing [22:26:29]execute_cgi json_proto POST (null) [22:26:29]execute_cgi path=json_proto method=POST [22:26:29]POST find Content-Length [22:26:29]Host: 172.17.33.3:8080 [22:26:29]Content-Length: 819 [22:26:29]Content-Type: application/json [22:26:29] [22:26:29]POST finish read [22:26:29]Found Content-Length = 819 [22:26:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347120", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 15.560, "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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:26:29]execute_script... [22:26: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)347120", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 15.560, "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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:26:29]POST & json_proto [22:26:29]process_json_proto [22:26:29]json parsed OK: [22:26:29]protocol is kg_v1.0 [22:26:29]action value=close_receipt [22:26:29]process_action close_receipt [22:26:29]cmd_close_receipt [22:26:29]MH_GetDate [22:26:29]Write to MH i2c: F0 00 00 B0 0F AE [22:26:29]Write i2c OK [22:26:29]MH_I2C_Read... [22:26:29]Read from MH i2c: F0 [22:26:29]MH_I2C_Read... [22:26:29]Read from MH i2c: F0 09 00 [22:26:29]MH_I2C_Read... [22:26:29]Read from MH i2c: F0 09 00 B0 0F 00 17 B5 19 66 23 5B 8F 65 74 [22:26:29]GetLastDocTimeStamp 1712960600 [22:26:29]current date 1712960791 [22:26:29]FM_GetShiftState [22:26:29]SAM_PROTO_GetShiftState [22:26:29]wFMCommunicate request_size=4 [22:26:29]MH_SAM_APDU [22:26:29]CAPDU: 80 13 01 00 [22:26:29]Write to MH i2c: E2 08 00 B1 0F 80 13 01 00 00 00 00 00 3D [22:26:29]Write i2c OK [22:26:29]MH_I2C_Read... [22:26:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:26:29]Read from MH i2c: E2 [22:26:29]MH_I2C_Read... [22:26:29]Read from MH i2c: E2 0E 00 [22:26:29]MH_I2C_Read... [22:26:29]Read from MH i2c: E2 0E 00 B1 0F 00 09 00 01 17 88 19 66 00 00 00 00 90 00 67 [22:26:29]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [22:26:29]wFMCommunicate OK [22:26:29]SAM_PROTO_GetShiftState done [22:26:29]FM_GetShiftState done [22:26:29]opened in 1712949271 [22:26:29]opened+sec_in_day 1713035671 [22:26:29]quantity*price = 100050 [22:26:29]sum+1 = 100052 [22:26:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 50 12.04.2024 22:26 Смена: 114 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000963154 ФД: 28776 ФПД: 184231645709158 1/tax-web-control/client/api/v1/ticket?date=20240412T222631&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28776&fm=184231645709158&tin=02508201610067®Number=0000138879044617&sum=100051 [22:26:30]StoreToDocumentArchive [22:26:30]shift 114 fd 28776 [22:26:30]save to /storage/0114/doc_00028776 [22:26:30]save last doc name /storage/0114/doc_00028776 to /storage/kkm_last_doc_name [22:26:30]save OK [22:26:30]Clear old archive folders... [22:26:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:26:30]tlvbuf is 01212160 [22:26:30]SAM_PROTO_ClearQueue [22:26:30]wFMCommunicate request_size=4 [22:26:30]MH_SAM_APDU [22:26:30]CAPDU: 80 09 00 00 [22:26:30]Write to MH i2c: E2 08 00 BE 0F 80 09 00 00 00 00 00 00 3F [22:26:30]Write i2c OK [22:26:30]MH_I2C_Read... [22:26:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:26:30]Read from MH i2c: E2 [22:26:30]MH_I2C_Read... [22:26:30]Read from MH i2c: E2 03 00 [22:26:30]MH_I2C_Read... [22:26:30]Read from MH i2c: E2 03 00 BE 0F 00 90 00 41 [22:26:30]RAPDU: 90 00 [22:26:30]wFMCommunicate OK [22:26:30]SAM_PROTO_ClearQueue done [22:26:30]KKMCreateOFDPacket [22:26:30]OFDProtocolAddRootSTLVToBuf [22:26:30]FM_MakeSignedData [22:26:30]FM_MakeSignedData [22:26:30]SAM_PROTO_SignData [22:26:30]wFMCommunicate request_size=4 [22:26:30]MH_SAM_APDU [22:26:30]CAPDU: 80 0D 01 02 [22:26:30]Write to MH i2c: E2 08 00 BF 0F 80 0D 01 02 00 00 00 00 47 [22:26:30]Write i2c OK [22:26:30]MH_I2C_Read... [22:26:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:26:30]Read from MH i2c: E2 [22:26:30]MH_I2C_Read... [22:26:30]Read from MH i2c: E2 03 00 [22:26:30]MH_I2C_Read... [22:26:30]Read from MH i2c: E2 03 00 BF 0F 00 90 00 42 [22:26:30]RAPDU: 90 00 [22:26:30]wFMCommunicate OK [22:26:30]wFMCommunicate request_size=255 [22:26:30]MH_SAM_APDU [22:26:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 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 32 00 00 00 F4 03 04 00 17 B5 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 68 70 00 00 35 04 06 00 A7 [22:26:30]Write to MH i2c: E2 02 01 C0 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 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 32 00 00 00 F4 03 04 00 17 B5 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 68 70 00 00 35 04 06 00 A7 00 00 47 [22:26:30]Write i2c OK [22:26:30]MH_I2C_Read... [22:26:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:26:31]Read from MH i2c: E2 [22:26:31]MH_I2C_Read... [22:26:31]Read from MH i2c: E2 03 00 [22:26:31]MH_I2C_Read... [22:26:31]Read from MH i2c: E2 03 00 C0 0F 00 90 00 43 [22:26:31]RAPDU: 90 00 [22:26:31]wFMCommunicate OK [22:26:31]wFMCommunicate request_size=10 [22:26:31]MH_SAM_APDU [22:26:31]CAPDU: 80 0D 02 02 05 8E C5 CC 83 66 [22:26:31]Write to MH i2c: E2 0D 00 C1 0F 80 0D 02 02 05 00 8E C5 CC 83 66 00 00 5C [22:26:31]Write i2c OK [22:26:31]MH_I2C_Read... [22:26:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:26:31]Read from MH i2c: E2 [22:26:31]MH_I2C_Read... [22:26:31]Read from MH i2c: E2 03 00 [22:26:31]MH_I2C_Read... [22:26:31]Read from MH i2c: E2 03 00 C1 0F 00 90 00 44 [22:26:31]RAPDU: 90 00 [22:26:31]wFMCommunicate OK [22:26:31]wFMCommunicate request_size=4 [22:26:31]MH_SAM_APDU [22:26:31]CAPDU: 80 0D 03 02 [22:26:31]Write to MH i2c: E2 08 00 C2 0F 80 0D 03 02 00 00 00 00 4C [22:26:31]Write i2c OK [22:26:31]MH_I2C_Read... [22:26:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:26:31]Read from MH i2c: E2 [22:26:31]MH_I2C_Read... [22:26:31]Read from MH i2c: E2 0B 00 [22:26:31]MH_I2C_Read... [22:26:31]Read from MH i2c: E2 0B 00 C2 0F 00 18 20 4B DB 58 59 8E 27 90 00 11 [22:26:31]RAPDU: 18 20 4B DB 58 59 8E 27 90 00 [22:26:31]wFMCommunicate OK [22:26:31]SAM_PROTO_SignData done [22:26:31]FM_MakeSignedData done [22:26:31]CreateOFDProtocolMessage [22:26:31]wFMCommunicate request_size=4 [22:26:31]MH_SAM_APDU [22:26:31]CAPDU: 80 11 00 00 [22:26:31]Write to MH i2c: E2 08 00 C3 0F 80 11 00 00 00 00 00 00 4C [22:26:31]Write i2c OK [22:26:31]MH_I2C_Read... [22:26:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:26:31]Read from MH i2c: E2 [22:26:31]MH_I2C_Read... [22:26:31]Read from MH i2c: E2 17 00 [22:26:31]MH_I2C_Read... [22:26:31]Read from MH i2c: E2 17 00 C3 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 9B [22:26:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [22:26:31]wFMCommunicate OK [22:26:31]CreateOFDProtocolMessage done [22:26:31]OFDSenderStorePacket 28776 [22:26:31]StoreOFDPacket docnum=28776 [22:26:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 A3 F6 07 01 CB F7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 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 32 00 00 00 F4 03 04 00 17 B5 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 68 70 00 00 35 04 06 00 A7 8E C5 CC 83 66 18 20 4B DB 58 59 8E 27 [22:26:31]CheckFolder [22:26:31]dirname=/storage/ofd_packets [22:26:31]CheckFolder done [22:26:31]ProducePacketName [22:26:31]name=ofd_packets/00028776 [22:26:31]NVStorageSaveData ofd_packets/00028776 [22:26:31]File name is /storage/ofd_packets/00028776 [22:26:31]Write 301 bytes [22:26:31]NVStorageSaveData done [22:26:31]OFDSenderStorePacket done [22:26:31]KKMCreateOFDPacket done [22:26:31]NVStorageSaveData kkm_last_timestamp [22:26:31]File name is /storage/kkm_last_timestamp [22:26:31]Write 4 bytes [22:26:31]NVStorageSaveData done [22:26:31]ExternCall_PrintAddStr [22:26:31]wPrintStart [22:26:31]Write to MH i2c: 01 00 00 C4 0F D3 [22:26:31]Write i2c OK [22:26:31]MH_I2C_Read... [22:26:31]Read from MH i2c: 01 [22:26:31]MH_I2C_Read... [22:26:31]Read from MH i2c: 01 07 00 [22:26:31]MH_I2C_Read... [22:26:31]Read from MH i2c: 01 07 00 C4 0F 00 00 00 00 00 FF 0F E8 [22:26:31]RasterBufferAndPrint [22:26:31]line Счет N : (1)347120 [22:26:31]line ИНН: 02508201610067 [22:26:31]line Контрольно-Кассовый Чек [22:26:31]line ПРОДАЖА [22:26:31]line ТРК (МРК, ГНК) : 32 [22:26:31]line Товар: 2710124130 [22:26:31]line Аи-92-К-5 [22:26:31]line 15.560 * 64.30 [22:26:31]line = 1000.51 [22:26:31]line НДС 12% НСП 1% [22:26:31]line > о реализуемом товаре [22:26:31]line ИТОГО: 1000.51 [22:26:31]line НСП 1% : 8.85 [22:26:31]line НДС 12% : 106.25 [22:26:31]line Наличными: 0.00 [22:26:31]line Безнал.: 1000.51 [22:26:31]line Место: АЗС № 108 "Партнер Нефть" [22:26:31]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [22:26:31]line СНО: Общий режим [22:26:31]line Чек 50 12.04.2024 22:26 [22:26:31]line Смена: 114 ФФД: 1.0 [22:26:31]line ЗНМ: 0300000027 [22:26:31]line РНМ: 0000138879044617 [22:26:31]line Версия ККМ: 001 [22:26:31]line Платежная система: Бакай Банк [22:26:31]line ФМ: 0000000000963154 [22:26:31]line ФД: 28776 [22:26:31]line ФПД: 184231645709158 [22:26:31]line 1/tax-web-control/client/api/v1/ticket?date=20240412T222631&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28776&fm=184231645709158&tin=02508201610067®Number=0000138879044617&sum=100051 [22:26:31]OFD Sender: Processing packet 28776 [packets to send 8, broken 7] [22:26:31]ProducePacketName [22:26:31]name=ofd_packets/00028776 [22:26:31]OFD Sender: To server: pG, [22:26:31]CommunicateWithHost lk.salyk.kg:30040 [22:26:31]ConnectInit lk.salyk.kg [22:26:31]written 0, free lines is 4095 [22:26:31]Connected sock=10 [22:26:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 A3 F6 07 01 CB F7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 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 32 00 00 00 F4 03 04 00 17 B5 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 68 70 00 00 35 04 06 00 A7 8E C5 CC 83 66 18 20 4B DB 58 59 8E 27 [22:26:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 D3 C4 47 00 CB B3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 68 70 00 00 F4 03 04 00 C0 5F 19 66 B6 04 01 00 00 84 6E 30 F0 86 4F DE 4D [22:26:31]CommunicateWithHost err = 0 [22:26:31]CheckOFDResponse [22:26:31]1017 (14) - 77093643461234 [22:26:31]1041 (16) - 0000000000963154 [22:26:31]1040 (4) - 28776 [22:26:31]1012 (4) - 12.04.2024 16:22 [22:26:31]1206 (1) - 0 [22:26:31]OFD Sender: Remove packet 28776 [22:26:31]ProducePacketName [22:26:31]name=ofd_packets/00028776 [22:26:31]NVStorageDeleteData [22:26:32]Write to MH i2c: 01 00 00 ED 0F FC [22:26:32]Write i2c OK [22:26:32]MH_I2C_Read... [22:26:32]Read from MH i2c: 01 [22:26:32]MH_I2C_Read... [22:26:32]Read from MH i2c: 01 07 00 [22:26:32]MH_I2C_Read... [22:26:32]Read from MH i2c: 01 07 00 ED 0F 00 00 00 00 00 E8 0C F7 [22:26:32]RasterBufferAndPrint [22:26:32]line [22:26:32]line [22:26:32]line [22:26:32]line [22:26:32]line [22:26:32]written 0, free lines is 3309 [22:26:32]MH_Cut [22:26:32]Write to MH i2c: D1 01 00 F4 0F 01 D5 [22:26:32]Write i2c OK [22:26:32]MH_I2C_Read... [22:26:32]Read from MH i2c: D1 [22:26:32]MH_I2C_Read... [22:26:32]Read from MH i2c: D1 01 00 [22:26:32]MH_I2C_Read... [22:26:32]Read from MH i2c: D1 01 00 F4 0F 00 D4 [22:26:32]Write to MH i2c: 01 00 00 F5 0F 04 [22:26:32]Write i2c OK [22:26:32]MH_I2C_Read... [22:26:32]OFD Sender: No OFD packet to send [22:26:32]*** Cut start [22:26:32]*** Partial cut [22:26:32]*** CUTSNS_PIN = 1 [22:26:33]*** CUTSNS_PIN = 0 [22:26:33]*** Brake cut motor [22:26:33]Read from MH i2c: 01 [22:26:33]MH_I2C_Read... [22:26:33]*** Stop cut motor [22:26:33]*** Cut end [22:26:33]Read from MH i2c: 01 07 00 [22:26:33]MH_I2C_Read... [22:26:33]Read from MH i2c: 01 07 00 F5 0F 00 00 00 00 00 FF 0F 19 [22:26:33]process_action close_receipt done [22:26:33]requested_data is exist [22:26:33]produce_requested_data [22:26:33]requested_item fm.sn is exist - process it [22:26:33]wFMCommunicate request_size=4 [22:26:33]MH_SAM_APDU [22:26:33]CAPDU: 80 11 00 00 [22:26:33]Write to MH i2c: E2 08 00 F6 0F 80 11 00 00 00 00 00 00 7F [22:26:33]Write i2c OK [22:26:33]MH_I2C_Read... [22:26:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:26:33]Read from MH i2c: E2 [22:26:33]MH_I2C_Read... [22:26:33]Read from MH i2c: E2 17 00 [22:26:33]MH_I2C_Read... [22:26:33]Read from MH i2c: E2 17 00 F6 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 CE [22:26:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [22:26:33]wFMCommunicate OK [22:26:33]requested_item fd.num is exist - process it [22:26:33]SAM_PROTO_GetFieldsCounters [22:26:33]wFMCommunicate request_size=4 [22:26:33]MH_SAM_APDU [22:26:33]CAPDU: 80 13 00 00 [22:26:33]Write to MH i2c: E2 08 00 F7 0F 80 13 00 00 00 00 00 00 82 [22:26:33]Write i2c OK [22:26:33]MH_I2C_Read... [22:26:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:26:33]Read from MH i2c: E2 [22:26:33]MH_I2C_Read... [22:26:33]Read from MH i2c: E2 62 00 [22:26:33]MH_I2C_Read... [22:26:33]Read from MH i2c: E2 62 00 F7 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 68 70 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 A0 [22:26:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 68 70 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 [22:26:33]wFMCommunicate OK [22:26:33]SAM_PROTO_GetFieldsCounters done [22:26:33]requested_item shift.num is exist - process it [22:26:33]requested_item shift.opened is exist - process it [22:26:33]req_shift_opened [22:26:33]FM_GetShiftState [22:26:33]SAM_PROTO_GetShiftState [22:26:33]wFMCommunicate request_size=4 [22:26:33]MH_SAM_APDU [22:26:33]CAPDU: 80 13 01 00 [22:26:33]Write to MH i2c: E2 08 00 F8 0F 80 13 01 00 00 00 00 00 84 [22:26:33]Write i2c OK [22:26:33]MH_I2C_Read... [22:26:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:26:33]Read from MH i2c: E2 [22:26:33]MH_I2C_Read... [22:26:33]Read from MH i2c: E2 0E 00 [22:26:33]MH_I2C_Read... [22:26:33]Read from MH i2c: E2 0E 00 F8 0F 00 09 00 01 17 88 19 66 00 00 00 00 90 00 AE [22:26:33]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [22:26:33]wFMCommunicate OK [22:26:33]SAM_PROTO_GetShiftState done [22:26:33]FM_GetShiftState done [22:26:33]req_shift_opened done [22:26:33]requested_item shift.open_date is exist - process it [22:26:33]req_shift_open_date [22:26:33]req_shift_open_date done [22:26:33]produce_requested_data done [22:26:33]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28776,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271} [22:26:33]process_action_free close_receipt [22:26:33]json_value_free [22:26:33]json_value_free done [22:26:33]process_json_proto returns [22:26:33]Send response to host [22:26:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28776,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271}}} [22:26:33]free response buf [22:26:33]execute_script done [22:26:33]execute_script returns [22:26:33]free content buf [22:26:33]Sock 7.Close socket [22:26:33]Sock 7.Thread stoped [22:26:37]OFD Sender: No OFD packet to send [22:26:42]OFD Sender: No OFD packet to send [22:26:47]OFD Sender: No OFD packet to send [22:26:52]OFD Sender: No OFD packet to send [22:26:57]OFD Sender: No OFD packet to send [22:27:02]OFD Sender: No OFD packet to send [22:27:07]OFD Sender: No OFD packet to send [22:27:12]OFD Sender: No OFD packet to send [22:27:17]OFD Sender: No OFD packet to send [22:27:22]OFD Sender: No OFD packet to send [22:27:27]OFD Sender: No OFD packet to send [22:27:32]OFD Sender: No OFD packet to send [22:27:37]OFD Sender: No OFD packet to send [22:27:42]OFD Sender: No OFD packet to send [22:27:47]OFD Sender: No OFD packet to send [22:27:52]OFD Sender: No OFD packet to send [22:27:57]OFD Sender: No OFD packet to send [22:28:02]OFD Sender: No OFD packet to send [22:28:07]OFD Sender: No OFD packet to send [22:28:12]OFD Sender: No OFD packet to send [22:28:17]OFD Sender: No OFD packet to send [22:28:22]OFD Sender: No OFD packet to send [22:28:27]OFD Sender: No OFD packet to send [22:28:32]OFD Sender: No OFD packet to send [22:28:37]OFD Sender: No OFD packet to send [22:28:42]OFD Sender: No OFD packet to send [22:28:47]OFD Sender: No OFD packet to send [22:28:52]OFD Sender: No OFD packet to send [22:28:57]OFD Sender: No OFD packet to send [22:29:02]OFD Sender: No OFD packet to send [22:29:07]OFD Sender: No OFD packet to send [22:29:12]OFD Sender: No OFD packet to send [22:29:17]OFD Sender: No OFD packet to send [22:29:22]OFD Sender: No OFD packet to send [22:29:27]OFD Sender: No OFD packet to send [22:29:32]OFD Sender: No OFD packet to send [22:29:37]OFD Sender: No OFD packet to send [22:29:42]OFD Sender: No OFD packet to send [22:29:46]accept exits with 9 [22:29:46]New connection [22:29:46]New thread 3066928484 created [22:29:46]Thread 3066785124 joined [22:29:46]Waiting for new connection... [22:29:46] Sock 9.Parse request [22:29:46]Sock 9.Check first char [22:29:46]Sock 9.First char is OK [22:29:46]request: POST /json_proto HTTP/1.0 [22:29:46]Method: POST [22:29:46]URL: /json_proto [22:29:46]Method is POST - this is cgi request [22:29:46]url: /json_proto [22:29:46]query_string will be loaded in cgi processing [22:29:46]execute_cgi json_proto POST (null) [22:29:46]execute_cgi path=json_proto method=POST [22:29:46]POST find Content-Length [22:29:46]Host: 172.17.33.3:8080 [22:29:46]Content-Length: 679 [22:29:46]Content-Type: application/json [22:29:46] [22:29:46]POST finish read [22:29:46]Found Content-Length = 679 [22:29:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347121", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 55.250, "sum" : 4000.10, "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" ] } } [22:29:46]execute_script... [22:29: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)347121", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 55.250, "sum" : 4000.10, "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" ] } } [22:29:46]POST & json_proto [22:29:46]process_json_proto [22:29:46]json parsed OK: [22:29:46]protocol is kg_v1.0 [22:29:46]action value=close_receipt [22:29:46]process_action close_receipt [22:29:46]cmd_close_receipt [22:29:46]MH_GetDate [22:29:46]Write to MH i2c: F0 00 00 F9 0F F7 [22:29:46]Write i2c OK [22:29:46]MH_I2C_Read... [22:29:46]Read from MH i2c: F0 [22:29:46]MH_I2C_Read... [22:29:46]Read from MH i2c: F0 09 00 [22:29:46]MH_I2C_Read... [22:29:46]Read from MH i2c: F0 09 00 F9 0F 00 DB B5 19 66 23 5B 8F 65 81 [22:29:46]GetLastDocTimeStamp 1712960791 [22:29:46]current date 1712960987 [22:29:46]FM_GetShiftState [22:29:46]SAM_PROTO_GetShiftState [22:29:46]wFMCommunicate request_size=4 [22:29:46]MH_SAM_APDU [22:29:46]CAPDU: 80 13 01 00 [22:29:46]Write to MH i2c: E2 08 00 FA 0F 80 13 01 00 00 00 00 00 86 [22:29:46]Write i2c OK [22:29:46]MH_I2C_Read... [22:29:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:29:46]Read from MH i2c: E2 [22:29:46]MH_I2C_Read... [22:29:46]Read from MH i2c: E2 0E 00 [22:29:46]MH_I2C_Read... [22:29:46]Read from MH i2c: E2 0E 00 FA 0F 00 09 00 01 17 88 19 66 00 00 00 00 90 00 B0 [22:29:46]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [22:29:46]wFMCommunicate OK [22:29:46]SAM_PROTO_GetShiftState done [22:29:46]FM_GetShiftState done [22:29:46]opened in 1712949271 [22:29:46]opened+sec_in_day 1713035671 [22:29:46]quantity*price = 400010 [22:29:46]sum+1 = 400011 [22:29:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 4000.00 Внесено: 4000.00 СДАЧА: 0.00 НСП 1% : 35.40 НДС 12% : 424.79 Наличными: 4000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 51 12.04.2024 22:29 Смена: 114 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28777 ФПД: 260565837947394 1/tax-web-control/client/api/v1/ticket?date=20240412T222947&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28777&fm=260565837947394&tin=02508201610067®Number=0000138879044617&sum=400000 [22:29:47]StoreToDocumentArchive [22:29:47]shift 114 fd 28777 [22:29:47]save to /storage/0114/doc_00028777 [22:29:47]save last doc name /storage/0114/doc_00028777 to /storage/kkm_last_doc_name [22:29:47]save OK [22:29:47]Clear old archive folders... [22:29:47]ProcessDocumentItem done err = 0, tmpTLVsize=248 [22:29:47]tlvbuf is B6F4F300 [22:29:47]SAM_PROTO_ClearQueue [22:29:47]wFMCommunicate request_size=4 [22:29:47]MH_SAM_APDU [22:29:47]CAPDU: 80 09 00 00 [22:29:47]Write to MH i2c: E2 08 00 07 10 80 09 00 00 00 00 00 00 89 [22:29:47]Write i2c OK [22:29:47]MH_I2C_Read... [22:29:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:29:47]Read from MH i2c: E2 [22:29:47]MH_I2C_Read... [22:29:47]Read from MH i2c: E2 03 00 [22:29:47]MH_I2C_Read... [22:29:47]Read from MH i2c: E2 03 00 07 10 00 90 00 8B [22:29:47]RAPDU: 90 00 [22:29:47]wFMCommunicate OK [22:29:47]SAM_PROTO_ClearQueue done [22:29:47]KKMCreateOFDPacket [22:29:47]OFDProtocolAddRootSTLVToBuf [22:29:47]FM_MakeSignedData [22:29:47]FM_MakeSignedData [22:29:47]SAM_PROTO_SignData [22:29:47]wFMCommunicate request_size=4 [22:29:47]MH_SAM_APDU [22:29:47]CAPDU: 80 0D 01 02 [22:29:47]Write to MH i2c: E2 08 00 08 10 80 0D 01 02 00 00 00 00 91 [22:29:47]Write i2c OK [22:29:47]MH_I2C_Read... [22:29:47]OFD Sender: No OFD packet to send [22:29:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:29:47]Read from MH i2c: E2 [22:29:47]MH_I2C_Read... [22:29:47]Read from MH i2c: E2 03 00 [22:29:47]MH_I2C_Read... [22:29:47]Read from MH i2c: E2 03 00 08 10 00 90 00 8C [22:29:47]RAPDU: 90 00 [22:29:47]wFMCommunicate OK [22:29:47]wFMCommunicate request_size=255 [22:29:47]MH_SAM_APDU [22:29:47]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D2 D7 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 8A 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF A5 00 00 00 00 07 04 06 00 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 33 00 00 00 F4 03 04 00 DB B5 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 69 70 00 00 35 04 06 00 EC FB B6 36 [22:29:47]Write to MH i2c: E2 02 01 09 10 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D2 D7 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 8A 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF A5 00 00 00 00 07 04 06 00 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 33 00 00 00 F4 03 04 00 DB B5 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 69 70 00 00 35 04 06 00 EC FB B6 36 00 00 D7 [22:29:47]Write i2c OK [22:29:47]MH_I2C_Read... [22:29:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:29:48]Read from MH i2c: E2 [22:29:48]MH_I2C_Read... [22:29:48]Read from MH i2c: E2 03 00 [22:29:48]MH_I2C_Read... [22:29:48]Read from MH i2c: E2 03 00 09 10 00 90 00 8D [22:29:48]RAPDU: 90 00 [22:29:48]wFMCommunicate OK [22:29:48]wFMCommunicate request_size=7 [22:29:48]MH_SAM_APDU [22:29:48]CAPDU: 80 0D 02 02 02 22 02 [22:29:48]Write to MH i2c: E2 0A 00 0A 10 80 0D 02 02 02 00 22 02 00 00 BC [22:29:48]Write i2c OK [22:29:48]MH_I2C_Read... [22:29:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:29:48]Read from MH i2c: E2 [22:29:48]MH_I2C_Read... [22:29:48]Read from MH i2c: E2 03 00 [22:29:48]MH_I2C_Read... [22:29:48]Read from MH i2c: E2 03 00 0A 10 00 90 00 8E [22:29:48]RAPDU: 90 00 [22:29:48]wFMCommunicate OK [22:29:48]wFMCommunicate request_size=4 [22:29:48]MH_SAM_APDU [22:29:48]CAPDU: 80 0D 03 02 [22:29:48]Write to MH i2c: E2 08 00 0B 10 80 0D 03 02 00 00 00 00 96 [22:29:48]Write i2c OK [22:29:48]MH_I2C_Read... [22:29:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:29:48]Read from MH i2c: E2 [22:29:48]MH_I2C_Read... [22:29:48]Read from MH i2c: E2 0B 00 [22:29:48]MH_I2C_Read... [22:29:48]Read from MH i2c: E2 0B 00 0B 10 00 A3 59 58 59 AC A1 C7 D7 90 00 2F [22:29:48]RAPDU: A3 59 58 59 AC A1 C7 D7 90 00 [22:29:48]wFMCommunicate OK [22:29:48]SAM_PROTO_SignData done [22:29:48]FM_MakeSignedData done [22:29:48]CreateOFDProtocolMessage [22:29:48]wFMCommunicate request_size=4 [22:29:48]MH_SAM_APDU [22:29:48]CAPDU: 80 11 00 00 [22:29:48]Write to MH i2c: E2 08 00 0C 10 80 11 00 00 00 00 00 00 96 [22:29:48]Write i2c OK [22:29:48]MH_I2C_Read... [22:29:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:29:48]Read from MH i2c: E2 [22:29:48]MH_I2C_Read... [22:29:48]Read from MH i2c: E2 17 00 [22:29:48]MH_I2C_Read... [22:29:48]Read from MH i2c: E2 17 00 0C 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 E5 [22:29:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [22:29:48]wFMCommunicate OK [22:29:48]CreateOFDProtocolMessage done [22:29:48]OFDSenderStorePacket 28777 [22:29:48]StoreOFDPacket docnum=28777 [22:29:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 D6 2C 04 01 55 DC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D2 D7 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 8A 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF A5 00 00 00 00 07 04 06 00 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 33 00 00 00 F4 03 04 00 DB B5 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 69 70 00 00 35 04 06 00 EC FB B6 36 22 02 A3 59 58 59 AC A1 C7 D7 [22:29:48]CheckFolder [22:29:48]dirname=/storage/ofd_packets [22:29:48]CheckFolder done [22:29:48]ProducePacketName [22:29:48]name=ofd_packets/00028777 [22:29:48]NVStorageSaveData ofd_packets/00028777 [22:29:48]File name is /storage/ofd_packets/00028777 [22:29:48]Write 298 bytes [22:29:48]NVStorageSaveData done [22:29:48]OFDSenderStorePacket done [22:29:48]KKMCreateOFDPacket done [22:29:48]NVStorageSaveData kkm_last_timestamp [22:29:48]File name is /storage/kkm_last_timestamp [22:29:48]Write 4 bytes [22:29:48]NVStorageSaveData done [22:29:48]ExternCall_PrintAddStr [22:29:48]wPrintStart [22:29:48]Write to MH i2c: 01 00 00 0D 10 1D [22:29:48]Write i2c OK [22:29:48]MH_I2C_Read... [22:29:48]Read from MH i2c: 01 [22:29:48]MH_I2C_Read... [22:29:48]Read from MH i2c: 01 07 00 [22:29:48]MH_I2C_Read... [22:29:48]Read from MH i2c: 01 07 00 0D 10 00 00 00 00 00 FF 0F 32 [22:29:48]RasterBufferAndPrint [22:29:48]line Счет N : (1)347121 [22:29:48]line ИНН: 02508201610067 [22:29:48]line Контрольно-Кассовый Чек [22:29:48]line ПРОДАЖА [22:29:48]line ТРК (МРК, ГНК) : 21 [22:29:48]line Товар: 2710194210 [22:29:48]line ДТ-К-5 [22:29:48]line 55.250 * 72.40 [22:29:48]line = 4000.10 [22:29:48]line НДС 12% НСП 1% [22:29:48]line > о реализуемом товаре [22:29:48]line ОКРУГЛЕНИЕ: -0.10 [22:29:48]line ИТОГО: 4000.00 [22:29:48]line Внесено: 4000.00 [22:29:48]line СДАЧА: 0.00 [22:29:48]line НСП 1% : 35.40 [22:29:48]line НДС 12% : 424.79 [22:29:48]line Наличными: 4000.00 [22:29:48]line Безнал.: 0.00 [22:29:48]line Место: АЗС № 108 "Партнер Нефть" [22:29:48]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [22:29:48]line СНО: Общий режим [22:29:48]line Чек 51 12.04.2024 22:29 [22:29:48]line Смена: 114 ФФД: 1.0 [22:29:48]line ЗНМ: 0300000027 [22:29:48]line РНМ: 0000138879044617 [22:29:48]line Версия ККМ: 001 [22:29:48]line ФМ: 0000000000963154 [22:29:48]line ФД: 28777 [22:29:48]line ФПД: 260565837947394 [22:29:48]line 1/tax-web-control/client/api/v1/ticket?date=20240412T222947&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28777&fm=260565837947394&tin=02508201610067®Number=0000138879044617&sum=400000 [22:29:48]OFD Sender: Processing packet 28777 [packets to send 8, broken 7] [22:29:48]ProducePacketName [22:29:48]name=ofd_packets/00028777 [22:29:48]OFD Sender: To server: pG, [22:29:48]CommunicateWithHost lk.salyk.kg:30040 [22:29:48]ConnectInit lk.salyk.kg [22:29:48]written 0, free lines is 4095 [22:29:48]Connected sock=10 [22:29:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 D6 2C 04 01 55 DC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D2 D7 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 8A 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF A5 00 00 00 00 07 04 06 00 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 33 00 00 00 F4 03 04 00 DB B5 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 69 70 00 00 35 04 06 00 EC FB B6 36 22 02 A3 59 58 59 AC A1 C7 D7 [22:29:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 F5 82 47 00 71 CC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 69 70 00 00 F4 03 04 00 84 60 19 66 B6 04 01 00 00 ED 88 D6 0A EC 97 CE 42 [22:29:48]CommunicateWithHost err = 0 [22:29:48]CheckOFDResponse [22:29:48]1017 (14) - 77093643461234 [22:29:48]1041 (16) - 0000000000963154 [22:29:48]1040 (4) - 28777 [22:29:48]1012 (4) - 12.04.2024 16:25 [22:29:48]1206 (1) - 0 [22:29:48]OFD Sender: Remove packet 28777 [22:29:48]ProducePacketName [22:29:48]name=ofd_packets/00028777 [22:29:48]NVStorageDeleteData [22:29:48]Write to MH i2c: 01 00 00 37 10 47 [22:29:48]Write i2c OK [22:29:48]MH_I2C_Read... [22:29:48]Read from MH i2c: 01 [22:29:48]MH_I2C_Read... [22:29:48]Read from MH i2c: 01 07 00 [22:29:48]MH_I2C_Read... [22:29:48]Read from MH i2c: 01 07 00 37 10 00 00 00 00 00 C9 0C 23 [22:29:48]RasterBufferAndPrint [22:29:48]line [22:29:48]line [22:29:48]line [22:29:48]line [22:29:48]line [22:29:48]written 0, free lines is 3278 [22:29:48]MH_Cut [22:29:48]Write to MH i2c: D1 01 00 3E 10 01 20 [22:29:48]Write i2c OK [22:29:48]MH_I2C_Read... [22:29:48]Read from MH i2c: D1 [22:29:48]MH_I2C_Read... [22:29:48]Read from MH i2c: D1 01 00 [22:29:48]MH_I2C_Read... [22:29:48]Read from MH i2c: D1 01 00 3E 10 00 1F [22:29:48]Write to MH i2c: 01 00 00 3F 10 4F [22:29:48]Write i2c OK [22:29:48]MH_I2C_Read... [22:29:49]OFD Sender: No OFD packet to send [22:29:49]*** Cut start [22:29:49]*** Partial cut [22:29:49]*** CUTSNS_PIN = 1 [22:29:49]*** CUTSNS_PIN = 0 [22:29:50]*** Brake cut motor [22:29:50]Read from MH i2c: 01 [22:29:50]MH_I2C_Read... [22:29:50]*** Stop cut motor [22:29:50]*** Cut end [22:29:50]Read from MH i2c: 01 07 00 [22:29:50]MH_I2C_Read... [22:29:50]Read from MH i2c: 01 07 00 3F 10 00 00 00 00 00 FF 0F 64 [22:29:50]process_action close_receipt done [22:29:50]requested_data is exist [22:29:50]produce_requested_data [22:29:50]requested_item fm.sn is exist - process it [22:29:50]wFMCommunicate request_size=4 [22:29:50]MH_SAM_APDU [22:29:50]CAPDU: 80 11 00 00 [22:29:50]Write to MH i2c: E2 08 00 40 10 80 11 00 00 00 00 00 00 CA [22:29:50]Write i2c OK [22:29:50]MH_I2C_Read... [22:29:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:29:50]Read from MH i2c: E2 [22:29:50]MH_I2C_Read... [22:29:50]Read from MH i2c: E2 17 00 [22:29:50]MH_I2C_Read... [22:29:50]Read from MH i2c: E2 17 00 40 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 19 [22:29:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [22:29:50]wFMCommunicate OK [22:29:50]requested_item fd.num is exist - process it [22:29:50]SAM_PROTO_GetFieldsCounters [22:29:50]wFMCommunicate request_size=4 [22:29:50]MH_SAM_APDU [22:29:50]CAPDU: 80 13 00 00 [22:29:50]Write to MH i2c: E2 08 00 41 10 80 13 00 00 00 00 00 00 CD [22:29:50]Write i2c OK [22:29:50]MH_I2C_Read... [22:29:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:29:50]Read from MH i2c: E2 [22:29:50]MH_I2C_Read... [22:29:50]Read from MH i2c: E2 62 00 [22:29:50]MH_I2C_Read... [22:29:50]Read from MH i2c: E2 62 00 41 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 69 70 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 EF [22:29:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 69 70 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 [22:29:50]wFMCommunicate OK [22:29:50]SAM_PROTO_GetFieldsCounters done [22:29:50]requested_item shift.num is exist - process it [22:29:50]requested_item shift.opened is exist - process it [22:29:50]req_shift_opened [22:29:50]FM_GetShiftState [22:29:50]SAM_PROTO_GetShiftState [22:29:50]wFMCommunicate request_size=4 [22:29:50]MH_SAM_APDU [22:29:50]CAPDU: 80 13 01 00 [22:29:50]Write to MH i2c: E2 08 00 42 10 80 13 01 00 00 00 00 00 CF [22:29:50]Write i2c OK [22:29:50]MH_I2C_Read... [22:29:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:29:50]Read from MH i2c: E2 [22:29:50]MH_I2C_Read... [22:29:50]Read from MH i2c: E2 0E 00 [22:29:50]MH_I2C_Read... [22:29:50]Read from MH i2c: E2 0E 00 42 10 00 09 00 01 17 88 19 66 00 00 00 00 90 00 F9 [22:29:50]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [22:29:50]wFMCommunicate OK [22:29:50]SAM_PROTO_GetShiftState done [22:29:50]FM_GetShiftState done [22:29:50]req_shift_opened done [22:29:50]requested_item shift.open_date is exist - process it [22:29:50]req_shift_open_date [22:29:50]req_shift_open_date done [22:29:50]produce_requested_data done [22:29:50]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28777,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271} [22:29:50]process_action_free close_receipt [22:29:50]json_value_free [22:29:50]json_value_free done [22:29:50]process_json_proto returns [22:29:50]Send response to host [22:29:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28777,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271}}} [22:29:50]free response buf [22:29:50]execute_script done [22:29:50]execute_script returns [22:29:50]free content buf [22:29:50]Sock 9.Close socket [22:29:50]Sock 9.Thread stoped [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:10]accept exits with 7 [22:30:10]New connection [22:30:10]New thread 3066785124 created [22:30:10]Thread 3066928484 joined [22:30:10]Waiting for new connection... [22:30:10] Sock 7.Parse request [22:30:10]Sock 7.Check first char [22:30:10]Sock 7.First char is OK [22:30:10]request: POST /json_proto HTTP/1.0 [22:30:10]Method: POST [22:30:10]URL: /json_proto [22:30:10]Method is POST - this is cgi request [22:30:10]url: /json_proto [22:30:10]query_string will be loaded in cgi processing [22:30:10]execute_cgi json_proto POST (null) [22:30:10]execute_cgi path=json_proto method=POST [22:30:10]POST find Content-Length [22:30:10]Host: 172.17.33.3:8080 [22:30:10]Content-Length: 735 [22:30:10]Content-Type: application/json [22:30:10] [22:30:10]POST finish read [22:30:10]Found Content-Length = 735 [22:30:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 28777, "base_FM": "0000000000963154", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347121", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 55.250, "sum" : 4000.10, "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" ] } } [22:30:10]execute_script... [22:30:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 28777, "base_FM": "0000000000963154", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347121", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 55.250, "sum" : 4000.10, "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" ] } } [22:30:10]POST & json_proto [22:30:10]process_json_proto [22:30:10]json parsed OK: [22:30:10]protocol is kg_v1.0 [22:30:10]action value=close_receipt [22:30:10]process_action close_receipt [22:30:10]cmd_close_receipt [22:30:10]MH_GetDate [22:30:10]Write to MH i2c: F0 00 00 43 10 42 [22:30:10]Write i2c OK [22:30:10]MH_I2C_Read... [22:30:10]Read from MH i2c: F0 [22:30:10]MH_I2C_Read... [22:30:10]Read from MH i2c: F0 09 00 [22:30:10]MH_I2C_Read... [22:30:10]Read from MH i2c: F0 09 00 43 10 00 F4 B5 19 66 23 5B 8F 65 E5 [22:30:10]GetLastDocTimeStamp 1712960987 [22:30:10]current date 1712961012 [22:30:10]FM_GetShiftState [22:30:10]SAM_PROTO_GetShiftState [22:30:10]wFMCommunicate request_size=4 [22:30:10]MH_SAM_APDU [22:30:10]CAPDU: 80 13 01 00 [22:30:10]Write to MH i2c: E2 08 00 44 10 80 13 01 00 00 00 00 00 D1 [22:30:10]Write i2c OK [22:30:10]MH_I2C_Read... [22:30:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:30:10]Read from MH i2c: E2 [22:30:10]MH_I2C_Read... [22:30:10]Read from MH i2c: E2 0E 00 [22:30:10]MH_I2C_Read... [22:30:10]Read from MH i2c: E2 0E 00 44 10 00 09 00 01 17 88 19 66 00 00 00 00 90 00 FB [22:30:10]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [22:30:10]wFMCommunicate OK [22:30:10]SAM_PROTO_GetShiftState done [22:30:10]FM_GetShiftState done [22:30:10]opened in 1712949271 [22:30:10]opened+sec_in_day 1713035671 [22:30:10]quantity*price = 400010 [22:30:10]sum+1 = 400011 [22:30:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 4000.00 НСП 1% : 35.40 НДС 12% : 424.79 Наличными: 4000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 52 12.04.2024 22:30 Смена: 114 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФД осн.: 28777 ФМ осн.: 0000000000963154 ФМ: 0000000000963154 ФД: 28778 ФПД: 110735546672717 1/tax-web-control/client/api/v1/ticket?date=20240412T223012&type=2&operation_type=1&fn_number=0000000000963154&fd_number=28778&fm=110735546672717&tin=02508201610067®Number=0000138879044617&sum=400000 [22:30:12]StoreToDocumentArchive [22:30:12]shift 114 fd 28778 [22:30:12]save to /storage/0114/doc_00028778 [22:30:12]save last doc name /storage/0114/doc_00028778 to /storage/kkm_last_doc_name [22:30:12]save OK [22:30:12]Clear old archive folders... [22:30:12]ProcessDocumentItem done err = 0, tmpTLVsize=276 [22:30:12]tlvbuf is 011BE650 [22:30:12]SAM_PROTO_ClearQueue [22:30:12]wFMCommunicate request_size=4 [22:30:12]MH_SAM_APDU [22:30:12]CAPDU: 80 09 00 00 [22:30:12]Write to MH i2c: E2 08 00 53 10 80 09 00 00 00 00 00 00 D5 [22:30:12]Write i2c OK [22:30:12]MH_I2C_Read... [22:30:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:30:12]Read from MH i2c: E2 [22:30:12]MH_I2C_Read... [22:30:12]Read from MH i2c: E2 03 00 [22:30:12]MH_I2C_Read... [22:30:12]Read from MH i2c: E2 03 00 53 10 00 90 00 D7 [22:30:12]RAPDU: 90 00 [22:30:12]wFMCommunicate OK [22:30:12]SAM_PROTO_ClearQueue done [22:30:12]KKMCreateOFDPacket [22:30:12]OFDProtocolAddRootSTLVToBuf [22:30:12]FM_MakeSignedData [22:30:12]FM_MakeSignedData [22:30:12]SAM_PROTO_SignData [22:30:12]wFMCommunicate request_size=4 [22:30:12]MH_SAM_APDU [22:30:12]CAPDU: 80 0D 01 02 [22:30:12]Write to MH i2c: E2 08 00 54 10 80 0D 01 02 00 00 00 00 DD [22:30:12]Write i2c OK [22:30:12]MH_I2C_Read... [22:30:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:30:12]Read from MH i2c: E2 [22:30:12]MH_I2C_Read... [22:30:12]Read from MH i2c: E2 03 00 [22:30:12]MH_I2C_Read... [22:30:12]Read from MH i2c: E2 03 00 54 10 00 90 00 D8 [22:30:12]RAPDU: 90 00 [22:30:12]wFMCommunicate OK [22:30:12]wFMCommunicate request_size=255 [22:30:12]MH_SAM_APDU [22:30:12]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D2 D7 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 8A 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF A5 00 00 00 00 07 04 06 00 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 34 00 00 00 F4 03 04 00 F4 B5 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 27 04 04 00 69 70 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 11 04 10 00 30 30 30 30 [22:30:12]Write to MH i2c: E2 02 01 55 10 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D2 D7 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 8A 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF A5 00 00 00 00 07 04 06 00 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 34 00 00 00 F4 03 04 00 F4 B5 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 27 04 04 00 69 70 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 11 04 10 00 30 30 30 30 00 00 5C [22:30:12]Write i2c OK [22:30:12]MH_I2C_Read... [22:30:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:30:12]Read from MH i2c: E2 [22:30:12]MH_I2C_Read... [22:30:12]Read from MH i2c: E2 03 00 [22:30:12]MH_I2C_Read... [22:30:12]Read from MH i2c: E2 03 00 55 10 00 90 00 D9 [22:30:12]RAPDU: 90 00 [22:30:12]wFMCommunicate OK [22:30:12]wFMCommunicate request_size=35 [22:30:12]MH_SAM_APDU [22:30:12]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6A 70 00 00 35 04 06 00 64 B6 A0 EC 66 4D [22:30:12]Write to MH i2c: E2 26 00 56 10 80 0D 02 02 1E 00 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6A 70 00 00 35 04 06 00 64 B6 A0 EC 66 4D 00 00 02 [22:30:12]Write i2c OK [22:30:12]MH_I2C_Read... [22:30:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:30:12]Read from MH i2c: E2 [22:30:12]MH_I2C_Read... [22:30:12]Read from MH i2c: E2 03 00 [22:30:12]MH_I2C_Read... [22:30:12]Read from MH i2c: E2 03 00 56 10 00 90 00 DA [22:30:12]RAPDU: 90 00 [22:30:12]wFMCommunicate OK [22:30:12]wFMCommunicate request_size=4 [22:30:12]MH_SAM_APDU [22:30:12]CAPDU: 80 0D 03 02 [22:30:12]Write to MH i2c: E2 08 00 57 10 80 0D 03 02 00 00 00 00 E2 [22:30:12]Write i2c OK [22:30:12]MH_I2C_Read... [22:30:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:30:12]Read from MH i2c: E2 [22:30:12]MH_I2C_Read... [22:30:12]Read from MH i2c: E2 0B 00 [22:30:12]MH_I2C_Read... [22:30:12]Read from MH i2c: E2 0B 00 57 10 00 62 78 E1 06 E6 CF 95 3B 90 00 29 [22:30:12]RAPDU: 62 78 E1 06 E6 CF 95 3B 90 00 [22:30:12]wFMCommunicate OK [22:30:12]SAM_PROTO_SignData done [22:30:12]FM_MakeSignedData done [22:30:12]CreateOFDProtocolMessage [22:30:12]wFMCommunicate request_size=4 [22:30:12]MH_SAM_APDU [22:30:12]CAPDU: 80 11 00 00 [22:30:12]Write to MH i2c: E2 08 00 58 10 80 11 00 00 00 00 00 00 E2 [22:30:12]Write i2c OK [22:30:12]MH_I2C_Read... [22:30:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:30:12]Read from MH i2c: E2 [22:30:12]MH_I2C_Read... [22:30:12]Read from MH i2c: E2 17 00 [22:30:12]MH_I2C_Read... [22:30:12]Read from MH i2c: E2 17 00 58 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 31 [22:30:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [22:30:12]wFMCommunicate OK [22:30:12]CreateOFDProtocolMessage done [22:30:12]OFDSenderStorePacket 28778 [22:30:12]StoreOFDPacket docnum=28778 [22:30:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 28 01 00 00 AD 62 20 01 84 16 5A 03 01 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D2 D7 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 8A 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF A5 00 00 00 00 07 04 06 00 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 34 00 00 00 F4 03 04 00 F4 B5 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 27 04 04 00 69 70 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6A 70 00 00 35 04 06 00 64 B6 A0 EC 66 4D 62 78 E1 06 E6 CF 95 3B [22:30:12]CheckFolder [22:30:12]dirname=/storage/ofd_packets [22:30:12]CheckFolder done [22:30:12]ProducePacketName [22:30:12]name=ofd_packets/00028778 [22:30:12]NVStorageSaveData ofd_packets/00028778 [22:30:12]File name is /storage/ofd_packets/00028778 [22:30:12]Write 326 bytes [22:30:12]NVStorageSaveData done [22:30:12]OFDSenderStorePacket done [22:30:12]KKMCreateOFDPacket done [22:30:12]NVStorageSaveData kkm_last_timestamp [22:30:12]File name is /storage/kkm_last_timestamp [22:30:12]Write 4 bytes [22:30:12]NVStorageSaveData done [22:30:12]ExternCall_PrintAddStr [22:30:12]wPrintStart [22:30:12]Write to MH i2c: 01 00 00 59 10 69 [22:30:12]Write i2c OK [22:30:12]MH_I2C_Read... [22:30:12]Read from MH i2c: 01 [22:30:12]MH_I2C_Read... [22:30:12]Read from MH i2c: 01 07 00 [22:30:12]MH_I2C_Read... [22:30:12]Read from MH i2c: 01 07 00 59 10 00 00 00 00 00 FF 0F 7E [22:30:12]RasterBufferAndPrint [22:30:12]line Счет N : (1)347121 [22:30:12]line ИНН: 02508201610067 [22:30:12]line Контрольно-Кассовый Чек [22:30:12]line ВОЗВРАТ ПРОДАЖИ [22:30:12]line ТРК (МРК, ГНК) : 21 [22:30:12]line Товар: 2710194210 [22:30:12]line ДТ-К-5 [22:30:12]line 55.250 * 72.40 [22:30:12]line = 4000.10 [22:30:12]line НДС 12% НСП 1% [22:30:12]line > о реализуемом товаре [22:30:12]line ОКРУГЛЕНИЕ: -0.10 [22:30:12]line ИТОГО: 4000.00 [22:30:12]line НСП 1% : 35.40 [22:30:12]line НДС 12% : 424.79 [22:30:12]line Наличными: 4000.00 [22:30:12]line Безнал.: 0.00 [22:30:12]line Место: АЗС № 108 "Партнер Нефть" [22:30:12]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [22:30:12]line СНО: Общий режим [22:30:12]line Чек 52 12.04.2024 22:30 [22:30:12]line Смена: 114 ФФД: 1.0 [22:30:12]line ЗНМ: 0300000027 [22:30:12]line РНМ: 0000138879044617 [22:30:12]line Версия ККМ: 001 [22:30:12]line ФД осн.: 28777 [22:30:12]line ФМ осн.: 0000000000963154 [22:30:12]line ФМ: 0000000000963154 [22:30:12]line ФД: 28778 [22:30:12]line ФПД: 110735546672717 [22:30:12]line 1/tax-web-control/client/api/v1/ticket?date=20240412T223012&type=2&operation_type=1&fn_number=0000000000963154&fd_number=28778&fm=110735546672717&tin=02508201610067®Number=0000138879044617&sum=400000 [22:30:12]OFD Sender: Processing packet 28778 [packets to send 8, broken 7] [22:30:12]ProducePacketName [22:30:12]name=ofd_packets/00028778 [22:30:12]OFD Sender: To server: pG, [22:30:12]CommunicateWithHost lk.salyk.kg:30040 [22:30:12]ConnectInit lk.salyk.kg [22:30:12]written 0, free lines is 4095 [22:30:13]Connected sock=10 [22:30:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 28 01 00 00 AD 62 20 01 84 16 5A 03 01 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D2 D7 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 8A 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF A5 00 00 00 00 07 04 06 00 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 34 00 00 00 F4 03 04 00 F4 B5 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 27 04 04 00 69 70 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6A 70 00 00 35 04 06 00 64 B6 A0 EC 66 4D 62 78 E1 06 E6 CF 95 3B [22:30:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 CD 67 47 00 93 16 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6A 70 00 00 F4 03 04 00 9D 60 19 66 B6 04 01 00 00 6B 54 85 38 04 74 7E 5D [22:30:13]CommunicateWithHost err = 0 [22:30:13]CheckOFDResponse [22:30:13]1017 (14) - 77093643461234 [22:30:13]1041 (16) - 0000000000963154 [22:30:13]1040 (4) - 28778 [22:30:13]1012 (4) - 12.04.2024 16:26 [22:30:13]1206 (1) - 0 [22:30:13]OFD Sender: Remove packet 28778 [22:30:13]ProducePacketName [22:30:13]name=ofd_packets/00028778 [22:30:13]NVStorageDeleteData [22:30:13]Write to MH i2c: 01 00 00 83 10 93 [22:30:13]Write i2c OK [22:30:13]MH_I2C_Read... [22:30:13]Read from MH i2c: 01 [22:30:13]MH_I2C_Read... [22:30:13]Read from MH i2c: 01 07 00 [22:30:13]MH_I2C_Read... [22:30:13]Read from MH i2c: 01 07 00 83 10 00 00 00 00 00 D3 0C 79 [22:30:13]RasterBufferAndPrint [22:30:13]line [22:30:13]line [22:30:13]line [22:30:13]line [22:30:13]line [22:30:13]written 0, free lines is 3289 [22:30:13]MH_Cut [22:30:13]Write to MH i2c: D1 01 00 8A 10 01 6C [22:30:13]Write i2c OK [22:30:13]MH_I2C_Read... [22:30:13]Read from MH i2c: D1 [22:30:13]MH_I2C_Read... [22:30:13]Read from MH i2c: D1 01 00 [22:30:13]MH_I2C_Read... [22:30:13]Read from MH i2c: D1 01 00 8A 10 00 6B [22:30:13]Write to MH i2c: 01 00 00 8B 10 9B [22:30:13]Write i2c OK [22:30:13]MH_I2C_Read... [22:30:13]OFD Sender: No OFD packet to send [22:30:14]*** Cut start [22:30:14]*** Partial cut [22:30:14]*** CUTSNS_PIN = 1 [22:30:14]*** CUTSNS_PIN = 0 [22:30:14]*** Brake cut motor [22:30:14]Read from MH i2c: 01 [22:30:14]MH_I2C_Read... [22:30:14]*** Stop cut motor [22:30:14]*** Cut end [22:30:14]Read from MH i2c: 01 07 00 [22:30:14]MH_I2C_Read... [22:30:14]Read from MH i2c: 01 07 00 8B 10 00 00 00 00 00 FF 0F B0 [22:30:14]process_action close_receipt done [22:30:14]requested_data is exist [22:30:14]produce_requested_data [22:30:14]requested_item fm.sn is exist - process it [22:30:14]wFMCommunicate request_size=4 [22:30:14]MH_SAM_APDU [22:30:14]CAPDU: 80 11 00 00 [22:30:14]Write to MH i2c: E2 08 00 8C 10 80 11 00 00 00 00 00 00 16 [22:30:14]Write i2c OK [22:30:14]MH_I2C_Read... [22:30:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:30:14]Read from MH i2c: E2 [22:30:14]MH_I2C_Read... [22:30:14]Read from MH i2c: E2 17 00 [22:30:14]MH_I2C_Read... [22:30:14]Read from MH i2c: E2 17 00 8C 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 65 [22:30:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [22:30:14]wFMCommunicate OK [22:30:14]requested_item fd.num is exist - process it [22:30:14]SAM_PROTO_GetFieldsCounters [22:30:14]wFMCommunicate request_size=4 [22:30:14]MH_SAM_APDU [22:30:14]CAPDU: 80 13 00 00 [22:30:14]Write to MH i2c: E2 08 00 8D 10 80 13 00 00 00 00 00 00 19 [22:30:14]Write i2c OK [22:30:14]MH_I2C_Read... [22:30:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:30:15]Read from MH i2c: E2 [22:30:15]MH_I2C_Read... [22:30:15]Read from MH i2c: E2 62 00 [22:30:15]MH_I2C_Read... [22:30:15]Read from MH i2c: E2 62 00 8D 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 6A 70 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 3F [22:30:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 6A 70 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 [22:30:15]wFMCommunicate OK [22:30:15]SAM_PROTO_GetFieldsCounters done [22:30:15]requested_item shift.num is exist - process it [22:30:15]requested_item shift.opened is exist - process it [22:30:15]req_shift_opened [22:30:15]FM_GetShiftState [22:30:15]SAM_PROTO_GetShiftState [22:30:15]wFMCommunicate request_size=4 [22:30:15]MH_SAM_APDU [22:30:15]CAPDU: 80 13 01 00 [22:30:15]Write to MH i2c: E2 08 00 8E 10 80 13 01 00 00 00 00 00 1B [22:30:15]Write i2c OK [22:30:15]MH_I2C_Read... [22:30:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:30:15]Read from MH i2c: E2 [22:30:15]MH_I2C_Read... [22:30:15]Read from MH i2c: E2 0E 00 [22:30:15]MH_I2C_Read... [22:30:15]Read from MH i2c: E2 0E 00 8E 10 00 09 00 01 17 88 19 66 00 00 00 00 90 00 45 [22:30:15]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [22:30:15]wFMCommunicate OK [22:30:15]SAM_PROTO_GetShiftState done [22:30:15]FM_GetShiftState done [22:30:15]req_shift_opened done [22:30:15]requested_item shift.open_date is exist - process it [22:30:15]req_shift_open_date [22:30:15]req_shift_open_date done [22:30:15]produce_requested_data done [22:30:15]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28778,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271} [22:30:15]process_action_free close_receipt [22:30:15]json_value_free [22:30:15]json_value_free done [22:30:15]process_json_proto returns [22:30:15]Send response to host [22:30:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28778,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271}}} [22:30:15]free response buf [22:30:15]execute_script done [22:30:15]execute_script returns [22:30:15]free content buf [22:30:15]Sock 7.Close socket [22:30:15]Sock 7.Thread stoped [22:30:18]OFD Sender: No OFD packet to send [22:30:23]OFD Sender: No OFD packet to send [22:30:28]OFD Sender: No OFD packet to send [22:30:33]OFD Sender: No OFD packet to send [22:30:38]OFD Sender: No OFD packet to send [22:30:43]OFD Sender: No OFD packet to send [22:30:48]OFD Sender: No OFD packet to send [22:30:53]OFD Sender: No OFD packet to send [22:30:58]OFD Sender: No OFD packet to send [22:31:03]OFD Sender: No OFD packet to send [22:31:05]int [22:31:05]Write to MH i2c: 01 00 00 8F 10 9F [22:31:05]*** FLAG_PRN_KEY set [22:31:05]Write i2c OK [22:31:05]MH_I2C_Read... [22:31:05]Read from MH i2c: 01 [22:31:05]MH_I2C_Read... [22:31:05]Read from MH i2c: 01 07 00 [22:31:05]MH_I2C_Read... [22:31:05]Read from MH i2c: 01 07 00 8F 10 00 08 00 00 00 FF 0F BC [22:31:05]state=0 [22:31:05]Key pressed [22:31:05]Feed [22:31:05]Write to MH i2c: D8 00 00 90 10 77 [22:31:05]Write i2c OK [22:31:05]MH_I2C_Read... [22:31:05]Read from MH i2c: D8 [22:31:05]MH_I2C_Read... [22:31:05]Read from MH i2c: D8 01 00 [22:31:05]MH_I2C_Read... [22:31:05]Read from MH i2c: D8 01 00 90 10 00 78 [22:31:05]int [22:31:05]Write to MH i2c: 01 00 00 91 10 A1 [22:31:05]Write i2c OK [22:31:05]MH_I2C_Read... [22:31:05]Read from MH i2c: 01 [22:31:05]MH_I2C_Read... [22:31:05]Read from MH i2c: 01 07 00 [22:31:05]MH_I2C_Read... [22:31:05]Read from MH i2c: 01 07 00 91 10 00 48 00 00 00 3C 00 2C [22:31:05]state=2 [22:31:05]Key pressed [22:31:06]int [22:31:06]Write to MH i2c: 01 00 00 92 10 A2 [22:31:06]*** FLAG_PRN_KEY reset [22:31:06]Write i2c OK [22:31:06]MH_I2C_Read... [22:31:06]Read from MH i2c: 01 [22:31:06]MH_I2C_Read... [22:31:06]Read from MH i2c: 01 07 00 [22:31:06]MH_I2C_Read... [22:31:06]Read from MH i2c: 01 07 00 92 10 00 00 00 00 00 F9 0F B1 [22:31:06]state=2 [22:31:06]Stop feed [22:31:06]int [22:31:06]Write to MH i2c: 01 00 00 93 10 A3 [22:31:06]*** FLAG_PRN_KEY set [22:31:06]Write i2c OK [22:31:06]MH_I2C_Read... [22:31:06]Read from MH i2c: 01 [22:31:06]MH_I2C_Read... [22:31:06]Read from MH i2c: 01 07 00 [22:31:06]MH_I2C_Read... [22:31:06]Read from MH i2c: 01 07 00 93 10 00 08 00 00 00 FF 0F C0 [22:31:06]state=0 [22:31:06]Key pressed [22:31:06]Feed [22:31:06]Write to MH i2c: D8 00 00 94 10 7B [22:31:06]Write i2c OK [22:31:06]MH_I2C_Read... [22:31:06]Read from MH i2c: D8 [22:31:06]MH_I2C_Read... [22:31:06]Read from MH i2c: D8 01 00 [22:31:06]MH_I2C_Read... [22:31:06]Read from MH i2c: D8 01 00 94 10 00 7C [22:31:06]int [22:31:06]Write to MH i2c: 01 00 00 95 10 A5 [22:31:06]Write i2c OK [22:31:06]MH_I2C_Read... [22:31:06]Read from MH i2c: 01 [22:31:06]MH_I2C_Read... [22:31:06]Read from MH i2c: 01 07 00 [22:31:06]MH_I2C_Read... [22:31:06]Read from MH i2c: 01 07 00 95 10 00 48 00 00 00 3C 00 30 [22:31:06]state=2 [22:31:06]Key pressed [22:31:06]int [22:31:06]Write to MH i2c: 01 00 00 96 10 A6 [22:31:06]*** FLAG_PRN_KEY reset [22:31:06]Write i2c OK [22:31:06]MH_I2C_Read... [22:31:06]Read from MH i2c: 01 [22:31:06]MH_I2C_Read... [22:31:06]Read from MH i2c: 01 07 00 [22:31:06]MH_I2C_Read... [22:31:06]Read from MH i2c: 01 07 00 96 10 00 00 00 00 00 F5 0F B1 [22:31:06]state=2 [22:31:06]Stop feed [22:31:08]OFD Sender: No OFD packet to send [22:31:13]OFD Sender: No OFD packet to send [22:31:18]OFD Sender: No OFD packet to send [22:31:23]accept exits with 9 [22:31:23]New connection [22:31:23]New thread 3066928484 created [22:31:23]Thread 3066785124 joined [22:31:23]Waiting for new connection... [22:31:23] Sock 9.Parse request [22:31:23]Sock 9.Check first char [22:31:23]Sock 9.First char is OK [22:31:23]request: POST /json_proto HTTP/1.0 [22:31:23]Method: POST [22:31:23]URL: /json_proto [22:31:23]Method is POST - this is cgi request [22:31:23]url: /json_proto [22:31:23]query_string will be loaded in cgi processing [22:31:23]execute_cgi json_proto POST (null) [22:31:23]execute_cgi path=json_proto method=POST [22:31:23]POST find Content-Length [22:31:23]Host: 172.17.33.3:8080 [22:31:23]Content-Length: 1190 [22:31:23]Content-Type: application/json [22:31:23] [22:31:23]POST finish read [22:31:23]Found Content-Length = 1190 [22:31:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0440\u044B\u0431\u0430\u0435\u0432 \u042D. \u000A\u0421\u0447\u0435\u0442 N : (1)347122\u000A12.04.2024 22:13\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 23.180 x 72.40\u000A\u0418\u0422\u041E\u0413: 1678.23\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3792853;3792848\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:31:23]execute_script... [22:31:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0440\u044B\u0431\u0430\u0435\u0432 \u042D. \u000A\u0421\u0447\u0435\u0442 N : (1)347122\u000A12.04.2024 22:13\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 23.180 x 72.40\u000A\u0418\u0422\u041E\u0413: 1678.23\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3792853;3792848\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:31:23]POST & json_proto [22:31:23]process_json_proto [22:31:23]json parsed OK: [22:31:23]protocol is kg_v1.0 [22:31:23]action value=print_text [22:31:23]process_action print_text [22:31:23]cmd_print_text [22:31:23]ExternCall_PrintAddStr [22:31:23]wPrintStart [22:31:23]Write to MH i2c: 01 00 00 97 10 A7 [22:31:23]Write i2c OK [22:31:23]MH_I2C_Read... [22:31:23]Read from MH i2c: 01 [22:31:23]MH_I2C_Read... [22:31:23]Read from MH i2c: 01 07 00 [22:31:23]MH_I2C_Read... [22:31:23]Read from MH i2c: 01 07 00 97 10 00 00 00 00 00 FF 0F BC [22:31:23]RasterBufferAndPrint [22:31:23]line *****ТОВАРНЫЙ ЧЕК***** [22:31:23]line АЗС 108 [22:31:23]line Партнер нефть [22:31:23]line 02508201610067 [22:31:23]line Кассир : Сарыбаев Э. [22:31:23]line Счет N : (1)347122 [22:31:23]line 12.04.2024 22:13 [22:31:23]line ПРОДАЖА [22:31:23]line ТРК (МРК, ГНК): 11 [22:31:23]line Вид ГСМ : 2710194210 [22:31:23]line ДТ-К-5 [22:31:23]line 23.180 x 72.40 [22:31:23]line ИТОГ: 1678.23 [22:31:23]line Тип оплаты: Талоны: Партнер нефть [22:31:23]line 3792853;3792848 [22:31:23]line ______________________ [22:31:23]line (подпись) [22:31:23]written 0, free lines is 4095 [22:31:23]Write to MH i2c: 01 00 00 AB 10 BB [22:31:23]Write i2c OK [22:31:23]MH_I2C_Read... [22:31:23]Read from MH i2c: 01 [22:31:23]MH_I2C_Read... [22:31:23]Read from MH i2c: 01 07 00 [22:31:23]MH_I2C_Read... [22:31:23]Read from MH i2c: 01 07 00 AB 10 00 00 00 00 00 1A 0E EA [22:31:23]RasterBufferAndPrint [22:31:23]line [22:31:23]line [22:31:23]line [22:31:23]line [22:31:23]line [22:31:23]written 0, free lines is 3611 [22:31:23]MH_Cut [22:31:23]Write to MH i2c: D1 01 00 B2 10 01 94 [22:31:23]Write i2c OK [22:31:23]MH_I2C_Read... [22:31:23]Read from MH i2c: D1 [22:31:23]MH_I2C_Read... [22:31:23]Read from MH i2c: D1 01 00 [22:31:23]MH_I2C_Read... [22:31:23]Read from MH i2c: D1 01 00 B2 10 00 93 [22:31:23]Write to MH i2c: 01 00 00 B3 10 C3 [22:31:23]Write i2c OK [22:31:23]MH_I2C_Read... [22:31:23]*** Cut start [22:31:23]*** Partial cut [22:31:23]*** CUTSNS_PIN = 1 [22:31:23]OFD Sender: No OFD packet to send [22:31:23]*** CUTSNS_PIN = 0 [22:31:24]*** Brake cut motor [22:31:24]Read from MH i2c: 01 [22:31:24]MH_I2C_Read... [22:31:24]*** Stop cut motor [22:31:24]*** Cut end [22:31:24]Read from MH i2c: 01 07 00 [22:31:24]MH_I2C_Read... [22:31:24]Read from MH i2c: 01 07 00 B3 10 00 00 00 00 00 FF 0F D8 [22:31:24]process_action print_text done [22:31:24]requested_data is exist [22:31:24]produce_requested_data [22:31:24]requested_item fm.sn is exist - process it [22:31:24]wFMCommunicate request_size=4 [22:31:24]MH_SAM_APDU [22:31:24]CAPDU: 80 11 00 00 [22:31:24]Write to MH i2c: E2 08 00 B4 10 80 11 00 00 00 00 00 00 3E [22:31:24]Write i2c OK [22:31:24]MH_I2C_Read... [22:31:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:31:24]Read from MH i2c: E2 [22:31:24]MH_I2C_Read... [22:31:24]Read from MH i2c: E2 17 00 [22:31:24]MH_I2C_Read... [22:31:24]Read from MH i2c: E2 17 00 B4 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 8D [22:31:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [22:31:24]wFMCommunicate OK [22:31:24]requested_item fd.num is exist - process it [22:31:24]SAM_PROTO_GetFieldsCounters [22:31:24]wFMCommunicate request_size=4 [22:31:24]MH_SAM_APDU [22:31:24]CAPDU: 80 13 00 00 [22:31:24]Write to MH i2c: E2 08 00 B5 10 80 13 00 00 00 00 00 00 41 [22:31:24]Write i2c OK [22:31:24]MH_I2C_Read... [22:31:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:31:24]Read from MH i2c: E2 [22:31:24]MH_I2C_Read... [22:31:24]Read from MH i2c: E2 62 00 [22:31:24]MH_I2C_Read... [22:31:24]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 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 6A 70 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 67 [22:31:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 6A 70 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 [22:31:24]wFMCommunicate OK [22:31:24]SAM_PROTO_GetFieldsCounters done [22:31:24]requested_item shift.num is exist - process it [22:31:24]requested_item shift.opened is exist - process it [22:31:24]req_shift_opened [22:31:24]FM_GetShiftState [22:31:24]SAM_PROTO_GetShiftState [22:31:24]wFMCommunicate request_size=4 [22:31:24]MH_SAM_APDU [22:31:24]CAPDU: 80 13 01 00 [22:31:24]Write to MH i2c: E2 08 00 B6 10 80 13 01 00 00 00 00 00 43 [22:31:24]Write i2c OK [22:31:24]MH_I2C_Read... [22:31:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:31:24]Read from MH i2c: E2 [22:31:24]MH_I2C_Read... [22:31:24]Read from MH i2c: E2 0E 00 [22:31:24]MH_I2C_Read... [22:31:24]Read from MH i2c: E2 0E 00 B6 10 00 09 00 01 17 88 19 66 00 00 00 00 90 00 6D [22:31:24]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [22:31:24]wFMCommunicate OK [22:31:24]SAM_PROTO_GetShiftState done [22:31:24]FM_GetShiftState done [22:31:24]req_shift_opened done [22:31:24]requested_item shift.open_date is exist - process it [22:31:24]req_shift_open_date [22:31:24]req_shift_open_date done [22:31:24]produce_requested_data done [22:31:24]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28778,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271} [22:31:24]process_action_free print_text [22:31:24]json_value_free [22:31:24]json_value_free done [22:31:24]process_json_proto returns [22:31:24]Send response to host [22:31:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28778,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271}}} [22:31:24]free response buf [22:31:24]execute_script done [22:31:24]execute_script returns [22:31:24]free content buf [22:31:24]Sock 9.Close socket [22:31:24]Sock 9.Thread stoped [22:31:28]OFD Sender: No OFD packet to send [22:31:33]OFD Sender: No OFD packet to send [22:31:38]OFD Sender: No OFD packet to send [22:31:43]OFD Sender: No OFD packet to send [22:31:48]OFD Sender: No OFD packet to send [22:31:53]OFD Sender: No OFD packet to send [22:31:58]int [22:31:58]Write to MH i2c: 01 00 00 B7 10 C7 [22:31:58]*** FLAG_PRN_KEY set [22:31:58]Write i2c OK [22:31:58]MH_I2C_Read... [22:31:58]Read from MH i2c: 01 [22:31:58]MH_I2C_Read... [22:31:58]Read from MH i2c: 01 07 00 [22:31:58]MH_I2C_Read... [22:31:58]Read from MH i2c: 01 07 00 B7 10 00 08 00 00 00 FF 0F E4 [22:31:58]state=0 [22:31:58]Key pressed [22:31:58]Feed [22:31:58]Write to MH i2c: D8 00 00 B8 10 9F [22:31:58]Write i2c OK [22:31:58]MH_I2C_Read... [22:31:58]Read from MH i2c: D8 [22:31:58]MH_I2C_Read... [22:31:58]Read from MH i2c: D8 01 00 [22:31:58]MH_I2C_Read... [22:31:58]Read from MH i2c: D8 01 00 B8 10 00 A0 [22:31:58]int [22:31:58]Write to MH i2c: 01 00 00 B9 10 C9 [22:31:58]Write i2c OK [22:31:58]MH_I2C_Read... [22:31:58]Read from MH i2c: 01 [22:31:58]MH_I2C_Read... [22:31:58]Read from MH i2c: 01 07 00 [22:31:58]MH_I2C_Read... [22:31:58]Read from MH i2c: 01 07 00 B9 10 00 48 00 00 00 3C 00 54 [22:31:58]state=2 [22:31:58]Key pressed [22:31:58]int [22:31:58]Write to MH i2c: 01 00 00 BA 10 CA [22:31:58]*** FLAG_PRN_KEY reset [22:31:58]Write i2c OK [22:31:58]MH_I2C_Read... [22:31:58]Read from MH i2c: 01 [22:31:58]MH_I2C_Read... [22:31:58]Read from MH i2c: 01 07 00 [22:31:58]MH_I2C_Read... [22:31:58]Read from MH i2c: 01 07 00 BA 10 00 00 00 00 00 F6 0F D6 [22:31:58]state=2 [22:31:58]Stop feed [22:31:58]int [22:31:58]Write to MH i2c: 01 00 00 BB 10 CB [22:31:58]*** FLAG_PRN_KEY set [22:31:58]Write i2c OK [22:31:58]MH_I2C_Read... [22:31:58]Read from MH i2c: 01 [22:31:58]MH_I2C_Read... [22:31:58]Read from MH i2c: 01 07 00 [22:31:58]MH_I2C_Read... [22:31:58]Read from MH i2c: 01 07 00 BB 10 00 08 00 00 00 FF 0F E8 [22:31:58]state=0 [22:31:58]Key pressed [22:31:58]Feed [22:31:58]Write to MH i2c: D8 00 00 BC 10 A3 [22:31:58]Write i2c OK [22:31:58]MH_I2C_Read... [22:31:58]Read from MH i2c: D8 [22:31:58]MH_I2C_Read... [22:31:58]Read from MH i2c: D8 01 00 [22:31:58]MH_I2C_Read... [22:31:58]Read from MH i2c: D8 01 00 BC 10 00 A4 [22:31:58]int [22:31:58]Write to MH i2c: 01 00 00 BD 10 CD [22:31:58]Write i2c OK [22:31:58]MH_I2C_Read... [22:31:58]Read from MH i2c: 01 [22:31:58]MH_I2C_Read... [22:31:58]Read from MH i2c: 01 07 00 [22:31:58]MH_I2C_Read... [22:31:58]Read from MH i2c: 01 07 00 BD 10 00 48 00 00 00 3C 00 58 [22:31:58]state=2 [22:31:58]Key pressed [22:31:58]int [22:31:58]Write to MH i2c: 01 00 00 BE 10 CE [22:31:58]*** FLAG_PRN_KEY reset [22:31:58]Write i2c OK [22:31:58]MH_I2C_Read... [22:31:58]Read from MH i2c: 01 [22:31:58]MH_I2C_Read... [22:31:58]Read from MH i2c: 01 07 00 [22:31:58]MH_I2C_Read... [22:31:58]Read from MH i2c: 01 07 00 BE 10 00 00 00 00 00 F6 0F DA [22:31:58]state=2 [22:31:58]Stop feed [22:31:58]OFD Sender: No OFD packet to send [22:31:58]int [22:31:58]Write to MH i2c: 01 00 00 BF 10 CF [22:31:58]*** FLAG_PRN_KEY set [22:31:58]Write i2c OK [22:31:58]MH_I2C_Read... [22:31:58]Read from MH i2c: 01 [22:31:58]MH_I2C_Read... [22:31:58]Read from MH i2c: 01 07 00 [22:31:58]MH_I2C_Read... [22:31:58]Read from MH i2c: 01 07 00 BF 10 00 08 00 00 00 FF 0F EC [22:31:58]state=0 [22:31:58]Key pressed [22:31:58]Feed [22:31:58]Write to MH i2c: D8 00 00 C0 10 A7 [22:31:58]Write i2c OK [22:31:58]MH_I2C_Read... [22:31:58]Read from MH i2c: D8 [22:31:58]MH_I2C_Read... [22:31:58]Read from MH i2c: D8 01 00 [22:31:58]MH_I2C_Read... [22:31:58]Read from MH i2c: D8 01 00 C0 10 00 A8 [22:31:58]int [22:31:58]Write to MH i2c: 01 00 00 C1 10 D1 [22:31:58]Write i2c OK [22:31:58]MH_I2C_Read... [22:31:58]Read from MH i2c: 01 [22:31:58]MH_I2C_Read... [22:31:58]Read from MH i2c: 01 07 00 [22:31:58]MH_I2C_Read... [22:31:58]Read from MH i2c: 01 07 00 C1 10 00 48 00 00 00 3C 00 5C [22:31:58]state=2 [22:31:58]Key pressed [22:31:59]int [22:31:59]Write to MH i2c: 01 00 00 C2 10 D2 [22:31:59]*** FLAG_PRN_KEY reset [22:31:59]Write i2c OK [22:31:59]MH_I2C_Read... [22:31:59]Read from MH i2c: 01 [22:31:59]MH_I2C_Read... [22:31:59]Read from MH i2c: 01 07 00 [22:31:59]MH_I2C_Read... [22:31:59]Read from MH i2c: 01 07 00 C2 10 00 00 00 00 00 F6 0F DE [22:31:59]state=2 [22:31:59]Stop feed [22:31:59]int [22:31:59]Write to MH i2c: 01 00 00 C3 10 D3 [22:31:59]*** FLAG_PRN_KEY set [22:31:59]Write i2c OK [22:31:59]MH_I2C_Read... [22:31:59]Read from MH i2c: 01 [22:31:59]MH_I2C_Read... [22:31:59]Read from MH i2c: 01 07 00 [22:31:59]MH_I2C_Read... [22:31:59]Read from MH i2c: 01 07 00 C3 10 00 08 00 00 00 FF 0F F0 [22:31:59]state=0 [22:31:59]Key pressed [22:31:59]Feed [22:31:59]Write to MH i2c: D8 00 00 C4 10 AB [22:31:59]Write i2c OK [22:31:59]MH_I2C_Read... [22:31:59]Read from MH i2c: D8 [22:31:59]MH_I2C_Read... [22:31:59]Read from MH i2c: D8 01 00 [22:31:59]MH_I2C_Read... [22:31:59]Read from MH i2c: D8 01 00 C4 10 00 AC [22:31:59]int [22:31:59]Write to MH i2c: 01 00 00 C5 10 D5 [22:31:59]Write i2c OK [22:31:59]MH_I2C_Read... [22:31:59]Read from MH i2c: 01 [22:31:59]MH_I2C_Read... [22:31:59]Read from MH i2c: 01 07 00 [22:31:59]MH_I2C_Read... [22:31:59]Read from MH i2c: 01 07 00 C5 10 00 48 00 00 00 3C 00 60 [22:31:59]state=2 [22:31:59]Key pressed [22:31:59]int [22:31:59]Write to MH i2c: 01 00 00 C6 10 D6 [22:31:59]*** FLAG_PRN_KEY reset [22:31:59]Write i2c OK [22:31:59]MH_I2C_Read... [22:31:59]Read from MH i2c: 01 [22:31:59]MH_I2C_Read... [22:31:59]Read from MH i2c: 01 07 00 [22:31:59]MH_I2C_Read... [22:31:59]Read from MH i2c: 01 07 00 C6 10 00 00 00 00 00 F6 0F E2 [22:31:59]state=2 [22:31:59]Stop feed [22:32:03]OFD Sender: No OFD packet to send [22:32:08]OFD Sender: No OFD packet to send [22:32:13]OFD Sender: No OFD packet to send [22:32:18]OFD Sender: No OFD packet to send [22:32:23]accept exits with 7 [22:32:23]New connection [22:32:23]New thread 3066785124 created [22:32:23]Thread 3066928484 joined [22:32:23]Waiting for new connection... [22:32:23] Sock 7.Parse request [22:32:23]Sock 7.Check first char [22:32:23]Sock 7.First char is OK [22:32:23]request: POST /json_proto HTTP/1.0 [22:32:23]Method: POST [22:32:23]URL: /json_proto [22:32:23]Method is POST - this is cgi request [22:32:23]url: /json_proto [22:32:23]query_string will be loaded in cgi processing [22:32:23]execute_cgi json_proto POST (null) [22:32:23]execute_cgi path=json_proto method=POST [22:32:23]POST find Content-Length [22:32:23]Host: 172.17.33.3:8080 [22:32:23]Content-Length: 1192 [22:32:23]Content-Type: application/json [22:32:23] [22:32:23]POST finish read [22:32:23]Found Content-Length = 1192 [22:32:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0440\u044B\u0431\u0430\u0435\u0432 \u042D. \u000A\u0421\u0447\u0435\u0442 N : (1)347123\u000A12.04.2024 22:14\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.000 x 72.40\u000A\u0418\u0422\u041E\u0413: 1448.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A43345\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:32:23]execute_script... [22:32:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0440\u044B\u0431\u0430\u0435\u0432 \u042D. \u000A\u0421\u0447\u0435\u0442 N : (1)347123\u000A12.04.2024 22:14\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.000 x 72.40\u000A\u0418\u0422\u041E\u0413: 1448.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A43345\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:32:23]POST & json_proto [22:32:23]process_json_proto [22:32:23]json parsed OK: [22:32:23]protocol is kg_v1.0 [22:32:23]action value=print_text [22:32:23]process_action print_text [22:32:23]cmd_print_text [22:32:23]ExternCall_PrintAddStr [22:32:23]wPrintStart [22:32:23]Write to MH i2c: 01 00 00 C7 10 D7 [22:32:23]Write i2c OK [22:32:23]MH_I2C_Read... [22:32:23]Read from MH i2c: 01 [22:32:23]MH_I2C_Read... [22:32:23]Read from MH i2c: 01 07 00 [22:32:23]MH_I2C_Read... [22:32:23]Read from MH i2c: 01 07 00 C7 10 00 00 00 00 00 FF 0F EC [22:32:23]RasterBufferAndPrint [22:32:23]line *****ТОВАРНЫЙ ЧЕК***** [22:32:23]line АЗС 108 [22:32:23]line Партнер нефть [22:32:23]line 02508201610067 [22:32:23]line Кассир : Сарыбаев Э. [22:32:23]line Счет N : (1)347123 [22:32:23]line 12.04.2024 22:14 [22:32:23]line ПРОДАЖА [22:32:23]line ТРК (МРК, ГНК): 11 [22:32:23]line Вид ГСМ : 2710194210 [22:32:23]line ДТ-К-5 [22:32:23]line 20.000 x 72.40 [22:32:23]line ИТОГ: 1448.00 [22:32:23]line Тип оплаты: Талоны: Топливная Карта [22:32:23]line 43345 [22:32:23]line ______________________ [22:32:23]line (подпись) [22:32:23]written 0, free lines is 4095 [22:32:23]Write to MH i2c: 01 00 00 DB 10 EB [22:32:23]Write i2c OK [22:32:23]MH_I2C_Read... [22:32:23]Read from MH i2c: 01 [22:32:23]MH_I2C_Read... [22:32:23]Read from MH i2c: 01 07 00 [22:32:23]MH_I2C_Read... [22:32:23]Read from MH i2c: 01 07 00 DB 10 00 00 00 00 00 12 0E 12 [22:32:23]RasterBufferAndPrint [22:32:23]line [22:32:23]line [22:32:23]line [22:32:23]line [22:32:23]line [22:32:23]written 0, free lines is 3604 [22:32:23]MH_Cut [22:32:23]Write to MH i2c: D1 01 00 E2 10 01 C4 [22:32:23]Write i2c OK [22:32:23]MH_I2C_Read... [22:32:23]Read from MH i2c: D1 [22:32:23]MH_I2C_Read... [22:32:23]Read from MH i2c: D1 01 00 [22:32:23]MH_I2C_Read... [22:32:23]Read from MH i2c: D1 01 00 E2 10 00 C3 [22:32:23]Write to MH i2c: 01 00 00 E3 10 F3 [22:32:23]Write i2c OK [22:32:23]MH_I2C_Read... [22:32:23]*** Cut start [22:32:23]*** Partial cut [22:32:23]*** CUTSNS_PIN = 1 [22:32:23]*** CUTSNS_PIN = 0 [22:32:23]OFD Sender: No OFD packet to send [22:32:24]*** Brake cut motor [22:32:24]Read from MH i2c: 01 [22:32:24]MH_I2C_Read... [22:32:24]*** Stop cut motor [22:32:24]*** Cut end [22:32:24]Read from MH i2c: 01 07 00 [22:32:24]MH_I2C_Read... [22:32:24]Read from MH i2c: 01 07 00 E3 10 00 00 00 00 00 FF 0F 08 [22:32:24]process_action print_text done [22:32:24]requested_data is exist [22:32:24]produce_requested_data [22:32:24]requested_item fm.sn is exist - process it [22:32:24]wFMCommunicate request_size=4 [22:32:24]MH_SAM_APDU [22:32:24]CAPDU: 80 11 00 00 [22:32:24]Write to MH i2c: E2 08 00 E4 10 80 11 00 00 00 00 00 00 6E [22:32:24]Write i2c OK [22:32:24]MH_I2C_Read... [22:32:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:32:24]Read from MH i2c: E2 [22:32:24]MH_I2C_Read... [22:32:24]Read from MH i2c: E2 17 00 [22:32:24]MH_I2C_Read... [22:32:24]Read from MH i2c: E2 17 00 E4 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 BD [22:32:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [22:32:24]wFMCommunicate OK [22:32:24]requested_item fd.num is exist - process it [22:32:24]SAM_PROTO_GetFieldsCounters [22:32:24]wFMCommunicate request_size=4 [22:32:24]MH_SAM_APDU [22:32:24]CAPDU: 80 13 00 00 [22:32:24]Write to MH i2c: E2 08 00 E5 10 80 13 00 00 00 00 00 00 71 [22:32:24]Write i2c OK [22:32:24]MH_I2C_Read... [22:32:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:32:24]Read from MH i2c: E2 [22:32:24]MH_I2C_Read... [22:32:24]Read from MH i2c: E2 62 00 [22:32:24]MH_I2C_Read... [22:32:24]Read from MH i2c: E2 62 00 E5 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 6A 70 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 97 [22:32:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 6A 70 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 [22:32:24]wFMCommunicate OK [22:32:24]SAM_PROTO_GetFieldsCounters done [22:32:24]requested_item shift.num is exist - process it [22:32:24]requested_item shift.opened is exist - process it [22:32:24]req_shift_opened [22:32:24]FM_GetShiftState [22:32:24]SAM_PROTO_GetShiftState [22:32:24]wFMCommunicate request_size=4 [22:32:24]MH_SAM_APDU [22:32:24]CAPDU: 80 13 01 00 [22:32:24]Write to MH i2c: E2 08 00 E6 10 80 13 01 00 00 00 00 00 73 [22:32:24]Write i2c OK [22:32:24]MH_I2C_Read... [22:32:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:32:24]Read from MH i2c: E2 [22:32:24]MH_I2C_Read... [22:32:24]Read from MH i2c: E2 0E 00 [22:32:24]MH_I2C_Read... [22:32:24]Read from MH i2c: E2 0E 00 E6 10 00 09 00 01 17 88 19 66 00 00 00 00 90 00 9D [22:32:24]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [22:32:24]wFMCommunicate OK [22:32:24]SAM_PROTO_GetShiftState done [22:32:24]FM_GetShiftState done [22:32:24]req_shift_opened done [22:32:24]requested_item shift.open_date is exist - process it [22:32:24]req_shift_open_date [22:32:24]req_shift_open_date done [22:32:24]produce_requested_data done [22:32:24]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28778,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271} [22:32:24]process_action_free print_text [22:32:24]json_value_free [22:32:24]json_value_free done [22:32:24]process_json_proto returns [22:32:24]Send response to host [22:32:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28778,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271}}} [22:32:24]free response buf [22:32:24]execute_script done [22:32:24]execute_script returns [22:32:24]free content buf [22:32:24]Sock 7.Close socket [22:32:24]Sock 7.Thread stoped [22:32:28]OFD Sender: No OFD packet to send [22:32:33]OFD Sender: No OFD packet to send [22:32:38]OFD Sender: No OFD packet to send [22:32:43]OFD Sender: No OFD packet to send [22:32:48]OFD Sender: No OFD packet to send [22:32:53]OFD Sender: No OFD packet to send [22:32:58]OFD Sender: No OFD packet to send [22:33:03]OFD Sender: No OFD packet to send [22:33:08]OFD Sender: No OFD packet to send [22:33:13]OFD Sender: No OFD packet to send [22:33:18]OFD Sender: No OFD packet to send [22:33:19]accept exits with 9 [22:33:19]New connection [22:33:19]New thread 3066928484 created [22:33:19]Thread 3066785124 joined [22:33:19]Waiting for new connection... [22:33:19] Sock 9.Parse request [22:33:19]Sock 9.Check first char [22:33:19]Sock 9.First char is OK [22:33:19]request: POST /json_proto HTTP/1.0 [22:33:19]Method: POST [22:33:19]URL: /json_proto [22:33:19]Method is POST - this is cgi request [22:33:19]url: /json_proto [22:33:19]query_string will be loaded in cgi processing [22:33:19]execute_cgi json_proto POST (null) [22:33:19]execute_cgi path=json_proto method=POST [22:33:19]POST find Content-Length [22:33:19]Host: 172.17.33.3:8080 [22:33:19]Content-Length: 675 [22:33:19]Content-Type: application/json [22:33:19] [22:33:19]POST finish read [22:33:19]Found Content-Length = 675 [22:33:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347125", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 12.080, "sum" : 874.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 874.00, "total" : 874.00, "payments": [ { "type": 0, "sum" : 874.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:33:19]execute_script... [22:33: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)347125", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 12.080, "sum" : 874.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 874.00, "total" : 874.00, "payments": [ { "type": 0, "sum" : 874.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:33:19]POST & json_proto [22:33:19]process_json_proto [22:33:19]json parsed OK: [22:33:19]protocol is kg_v1.0 [22:33:19]action value=close_receipt [22:33:19]process_action close_receipt [22:33:19]cmd_close_receipt [22:33:19]MH_GetDate [22:33:19]Write to MH i2c: F0 00 00 E7 10 E6 [22:33:19]Write i2c OK [22:33:19]MH_I2C_Read... [22:33:19]Read from MH i2c: F0 [22:33:19]MH_I2C_Read... [22:33:19]Read from MH i2c: F0 09 00 [22:33:19]MH_I2C_Read... [22:33:19]Read from MH i2c: F0 09 00 E7 10 00 B0 B6 19 66 23 5B 8F 65 46 [22:33:19]GetLastDocTimeStamp 1712961012 [22:33:19]current date 1712961200 [22:33:19]FM_GetShiftState [22:33:19]SAM_PROTO_GetShiftState [22:33:19]wFMCommunicate request_size=4 [22:33:19]MH_SAM_APDU [22:33:19]CAPDU: 80 13 01 00 [22:33:19]Write to MH i2c: E2 08 00 E8 10 80 13 01 00 00 00 00 00 75 [22:33:19]Write i2c OK [22:33:19]MH_I2C_Read... [22:33:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:33:19]Read from MH i2c: E2 [22:33:19]MH_I2C_Read... [22:33:19]Read from MH i2c: E2 0E 00 [22:33:19]MH_I2C_Read... [22:33:19]Read from MH i2c: E2 0E 00 E8 10 00 09 00 01 17 88 19 66 00 00 00 00 90 00 9F [22:33:19]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [22:33:19]wFMCommunicate OK [22:33:19]SAM_PROTO_GetShiftState done [22:33:19]FM_GetShiftState done [22:33:19]opened in 1712949271 [22:33:19]opened+sec_in_day 1713035671 [22:33:19]quantity*price = 87459 [22:33:19]sum+1 = 87460 [22:33:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 874.00 Внесено: 874.00 СДАЧА: 0.00 НСП 1% : 7.74 НДС 12% : 92.88 Наличными: 874.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 53 12.04.2024 22:33 Смена: 114 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28779 ФПД: 42125275426175 1/tax-web-control/client/api/v1/ticket?date=20240412T223320&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28779&fm=42125275426175&tin=02508201610067®Number=0000138879044617&sum=87400 [22:33:20]StoreToDocumentArchive [22:33:20]shift 114 fd 28779 [22:33:20]save to /storage/0114/doc_00028779 [22:33:20]save last doc name /storage/0114/doc_00028779 to /storage/kkm_last_doc_name [22:33:20]save OK [22:33:20]Clear old archive folders... [22:33:20]ProcessDocumentItem done err = 0, tmpTLVsize=248 [22:33:20]tlvbuf is 011DC420 [22:33:20]SAM_PROTO_ClearQueue [22:33:20]wFMCommunicate request_size=4 [22:33:20]MH_SAM_APDU [22:33:20]CAPDU: 80 09 00 00 [22:33:20]Write to MH i2c: E2 08 00 F5 10 80 09 00 00 00 00 00 00 77 [22:33:20]Write i2c OK [22:33:20]MH_I2C_Read... [22:33:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:33:20]Read from MH i2c: E2 [22:33:20]MH_I2C_Read... [22:33:20]Read from MH i2c: E2 03 00 [22:33:20]MH_I2C_Read... [22:33:20]Read from MH i2c: E2 03 00 F5 10 00 90 00 79 [22:33:20]RAPDU: 90 00 [22:33:20]wFMCommunicate OK [22:33:20]SAM_PROTO_ClearQueue done [22:33:20]KKMCreateOFDPacket [22:33:20]OFDProtocolAddRootSTLVToBuf [22:33:20]FM_MakeSignedData [22:33:20]FM_MakeSignedData [22:33:20]SAM_PROTO_SignData [22:33:20]wFMCommunicate request_size=4 [22:33:20]MH_SAM_APDU [22:33:20]CAPDU: 80 0D 01 02 [22:33:20]Write to MH i2c: E2 08 00 F6 10 80 0D 01 02 00 00 00 00 7F [22:33:20]Write i2c OK [22:33:20]MH_I2C_Read... [22:33:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:33:20]Read from MH i2c: E2 [22:33:20]MH_I2C_Read... [22:33:20]Read from MH i2c: E2 03 00 [22:33:20]MH_I2C_Read... [22:33:20]Read from MH i2c: E2 03 00 F6 10 00 90 00 7A [22:33:20]RAPDU: 90 00 [22:33:20]wFMCommunicate OK [22:33:20]wFMCommunicate request_size=255 [22:33:20]MH_SAM_APDU [22:33: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 35 FF 03 08 00 03 30 2F 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 A3 55 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 55 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 06 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 24 00 00 00 00 07 04 06 00 68 55 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 B0 B6 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6B 70 00 00 35 04 06 00 26 50 0E 13 [22:33:20]Write to MH i2c: E2 02 01 F7 10 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 2F 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 A3 55 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 55 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 06 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 24 00 00 00 00 07 04 06 00 68 55 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 B0 B6 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6B 70 00 00 35 04 06 00 26 50 0E 13 00 00 A4 [22:33:20]Write i2c OK [22:33:20]MH_I2C_Read... [22:33:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:33:20]Read from MH i2c: E2 [22:33:20]MH_I2C_Read... [22:33:20]Read from MH i2c: E2 03 00 [22:33:20]MH_I2C_Read... [22:33:20]Read from MH i2c: E2 03 00 F7 10 00 90 00 7B [22:33:20]RAPDU: 90 00 [22:33:20]wFMCommunicate OK [22:33:20]wFMCommunicate request_size=7 [22:33:20]MH_SAM_APDU [22:33:20]CAPDU: 80 0D 02 02 02 ED 7F [22:33:20]Write to MH i2c: E2 0A 00 F8 10 80 0D 02 02 02 00 ED 7F 00 00 F2 [22:33:20]Write i2c OK [22:33:20]MH_I2C_Read... [22:33:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:33:20]Read from MH i2c: E2 [22:33:20]MH_I2C_Read... [22:33:20]Read from MH i2c: E2 03 00 [22:33:20]MH_I2C_Read... [22:33:20]Read from MH i2c: E2 03 00 F8 10 00 90 00 7C [22:33:20]RAPDU: 90 00 [22:33:20]wFMCommunicate OK [22:33:20]wFMCommunicate request_size=4 [22:33:20]MH_SAM_APDU [22:33:20]CAPDU: 80 0D 03 02 [22:33:20]Write to MH i2c: E2 08 00 F9 10 80 0D 03 02 00 00 00 00 84 [22:33:20]Write i2c OK [22:33:20]MH_I2C_Read... [22:33:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:33:20]Read from MH i2c: E2 [22:33:20]MH_I2C_Read... [22:33:20]Read from MH i2c: E2 0B 00 [22:33:20]MH_I2C_Read... [22:33:20]Read from MH i2c: E2 0B 00 F9 10 00 2C 32 C0 80 7F ED FC 28 90 00 B3 [22:33:20]RAPDU: 2C 32 C0 80 7F ED FC 28 90 00 [22:33:20]wFMCommunicate OK [22:33:20]SAM_PROTO_SignData done [22:33:20]FM_MakeSignedData done [22:33:20]CreateOFDProtocolMessage [22:33:20]wFMCommunicate request_size=4 [22:33:20]MH_SAM_APDU [22:33:20]CAPDU: 80 11 00 00 [22:33:20]Write to MH i2c: E2 08 00 FA 10 80 11 00 00 00 00 00 00 84 [22:33:20]Write i2c OK [22:33:20]MH_I2C_Read... [22:33:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:33:21]Read from MH i2c: E2 [22:33:21]MH_I2C_Read... [22:33:21]Read from MH i2c: E2 17 00 [22:33:21]MH_I2C_Read... [22:33:21]Read from MH i2c: E2 17 00 FA 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D3 [22:33:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [22:33:21]wFMCommunicate OK [22:33:21]CreateOFDProtocolMessage done [22:33:21]OFDSenderStorePacket 28779 [22:33:21]StoreOFDPacket docnum=28779 [22:33:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 0D A8 04 01 94 B3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 2F 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 A3 55 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 55 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 06 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 24 00 00 00 00 07 04 06 00 68 55 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 B0 B6 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6B 70 00 00 35 04 06 00 26 50 0E 13 ED 7F 2C 32 C0 80 7F ED FC 28 [22:33:21]CheckFolder [22:33:21]dirname=/storage/ofd_packets [22:33:21]CheckFolder done [22:33:21]ProducePacketName [22:33:21]name=ofd_packets/00028779 [22:33:21]NVStorageSaveData ofd_packets/00028779 [22:33:21]File name is /storage/ofd_packets/00028779 [22:33:21]Write 298 bytes [22:33:21]NVStorageSaveData done [22:33:21]OFDSenderStorePacket done [22:33:21]KKMCreateOFDPacket done [22:33:21]NVStorageSaveData kkm_last_timestamp [22:33:21]File name is /storage/kkm_last_timestamp [22:33:21]Write 4 bytes [22:33:21]NVStorageSaveData done [22:33:21]ExternCall_PrintAddStr [22:33:21]wPrintStart [22:33:21]Write to MH i2c: 01 00 00 FB 10 0B [22:33:21]Write i2c OK [22:33:21]MH_I2C_Read... [22:33:21]Read from MH i2c: 01 [22:33:21]MH_I2C_Read... [22:33:21]Read from MH i2c: 01 07 00 [22:33:21]MH_I2C_Read... [22:33:21]Read from MH i2c: 01 07 00 FB 10 00 00 00 00 00 FF 0F 20 [22:33:21]RasterBufferAndPrint [22:33:21]line Счет N : (1)347125 [22:33:21]line ИНН: 02508201610067 [22:33:21]line Контрольно-Кассовый Чек [22:33:21]line ПРОДАЖА [22:33:21]line ТРК (МРК, ГНК) : 11 [22:33:21]line Товар: 2710194210 [22:33:21]line ДТ-К-5 [22:33:21]line 12.080 * 72.40 [22:33:21]line = 874.59 [22:33:21]line НДС 12% НСП 1% [22:33:21]line > о реализуемом товаре [22:33:21]line ОКРУГЛЕНИЕ: -0.59 [22:33:21]line ИТОГО: 874.00 [22:33:21]line Внесено: 874.00 [22:33:21]line СДАЧА: 0.00 [22:33:21]line НСП 1% : 7.74 [22:33:21]line НДС 12% : 92.88 [22:33:21]line Наличными: 874.00 [22:33:21]line Безнал.: 0.00 [22:33:21]line Место: АЗС № 108 "Партнер Нефть" [22:33:21]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [22:33:21]line СНО: Общий режим [22:33:21]line Чек 53 12.04.2024 22:33 [22:33:21]line Смена: 114 ФФД: 1.0 [22:33:21]line ЗНМ: 0300000027 [22:33:21]line РНМ: 0000138879044617 [22:33:21]line Версия ККМ: 001 [22:33:21]line ФМ: 0000000000963154 [22:33:21]line ФД: 28779 [22:33:21]line ФПД: 42125275426175 [22:33:21]line 1/tax-web-control/client/api/v1/ticket?date=20240412T223320&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28779&fm=42125275426175&tin=02508201610067®Number=0000138879044617&sum=87400 [22:33:21]OFD Sender: Processing packet 28779 [packets to send 8, broken 7] [22:33:21]ProducePacketName [22:33:21]name=ofd_packets/00028779 [22:33:21]OFD Sender: To server: pG, [22:33:21]CommunicateWithHost lk.salyk.kg:30040 [22:33:21]ConnectInit lk.salyk.kg [22:33:21]written 0, free lines is 4095 [22:33:21]Connected sock=7 [22:33:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 0D A8 04 01 94 B3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 2F 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 A3 55 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 55 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 06 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 24 00 00 00 00 07 04 06 00 68 55 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 B0 B6 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6B 70 00 00 35 04 06 00 26 50 0E 13 ED 7F 2C 32 C0 80 7F ED FC 28 [22:33:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 FF 3F 47 00 AC 72 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6B 70 00 00 F4 03 04 00 59 61 19 66 B6 04 01 00 00 E8 91 8B 40 2D 35 D1 F6 [22:33:21]CommunicateWithHost err = 0 [22:33:21]CheckOFDResponse [22:33:21]1017 (14) - 77093643461234 [22:33:21]1041 (16) - 0000000000963154 [22:33:21]1040 (4) - 28779 [22:33:21]1012 (4) - 12.04.2024 16:29 [22:33:21]1206 (1) - 0 [22:33:21]OFD Sender: Remove packet 28779 [22:33:21]ProducePacketName [22:33:21]name=ofd_packets/00028779 [22:33:21]NVStorageDeleteData [22:33:21]Write to MH i2c: 01 00 00 25 11 36 [22:33:21]Write i2c OK [22:33:21]MH_I2C_Read... [22:33:21]Read from MH i2c: 01 [22:33:21]MH_I2C_Read... [22:33:21]Read from MH i2c: 01 07 00 [22:33:21]MH_I2C_Read... [22:33:21]Read from MH i2c: 01 07 00 25 11 00 00 00 00 00 C8 0C 11 [22:33:21]RasterBufferAndPrint [22:33:21]line [22:33:21]line [22:33:21]line [22:33:21]line [22:33:21]line [22:33:21]written 0, free lines is 3278 [22:33:21]MH_Cut [22:33:21]Write to MH i2c: D1 01 00 2C 11 01 0F [22:33:21]Write i2c OK [22:33:21]MH_I2C_Read... [22:33:21]Read from MH i2c: D1 [22:33:21]MH_I2C_Read... [22:33:21]Read from MH i2c: D1 01 00 [22:33:21]MH_I2C_Read... [22:33:21]Read from MH i2c: D1 01 00 2C 11 00 0E [22:33:21]Write to MH i2c: 01 00 00 2D 11 3E [22:33:21]Write i2c OK [22:33:21]MH_I2C_Read... [22:33:22]OFD Sender: No OFD packet to send [22:33:22]*** Cut start [22:33:22]*** Partial cut [22:33:22]*** CUTSNS_PIN = 1 [22:33:22]*** CUTSNS_PIN = 0 [22:33:22]*** Brake cut motor [22:33:23]Read from MH i2c: 01 [22:33:23]MH_I2C_Read... [22:33:23]*** Stop cut motor [22:33:23]*** Cut end [22:33:23]Read from MH i2c: 01 07 00 [22:33:23]MH_I2C_Read... [22:33:23]Read from MH i2c: 01 07 00 2D 11 00 00 00 00 00 FF 0F 53 [22:33:23]process_action close_receipt done [22:33:23]requested_data is exist [22:33:23]produce_requested_data [22:33:23]requested_item fm.sn is exist - process it [22:33:23]wFMCommunicate request_size=4 [22:33:23]MH_SAM_APDU [22:33:23]CAPDU: 80 11 00 00 [22:33:23]Write to MH i2c: E2 08 00 2E 11 80 11 00 00 00 00 00 00 B9 [22:33:23]Write i2c OK [22:33:23]MH_I2C_Read... [22:33:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:33:23]Read from MH i2c: E2 [22:33:23]MH_I2C_Read... [22:33:23]Read from MH i2c: E2 17 00 [22:33:23]MH_I2C_Read... [22:33:23]Read from MH i2c: E2 17 00 2E 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 08 [22:33:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [22:33:23]wFMCommunicate OK [22:33:23]requested_item fd.num is exist - process it [22:33:23]SAM_PROTO_GetFieldsCounters [22:33:23]wFMCommunicate request_size=4 [22:33:23]MH_SAM_APDU [22:33:23]CAPDU: 80 13 00 00 [22:33:23]Write to MH i2c: E2 08 00 2F 11 80 13 00 00 00 00 00 00 BC [22:33:23]Write i2c OK [22:33:23]MH_I2C_Read... [22:33:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:33:23]Read from MH i2c: E2 [22:33:23]MH_I2C_Read... [22:33:23]Read from MH i2c: E2 62 00 [22:33:23]MH_I2C_Read... [22:33:23]Read from MH i2c: E2 62 00 2F 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 6B 70 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 E6 [22:33:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 6B 70 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 [22:33:23]wFMCommunicate OK [22:33:23]SAM_PROTO_GetFieldsCounters done [22:33:23]requested_item shift.num is exist - process it [22:33:23]requested_item shift.opened is exist - process it [22:33:23]req_shift_opened [22:33:23]FM_GetShiftState [22:33:23]SAM_PROTO_GetShiftState [22:33:23]wFMCommunicate request_size=4 [22:33:23]MH_SAM_APDU [22:33:23]CAPDU: 80 13 01 00 [22:33:23]Write to MH i2c: E2 08 00 30 11 80 13 01 00 00 00 00 00 BE [22:33:23]Write i2c OK [22:33:23]MH_I2C_Read... [22:33:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:33:23]Read from MH i2c: E2 [22:33:23]MH_I2C_Read... [22:33:23]Read from MH i2c: E2 0E 00 [22:33:23]MH_I2C_Read... [22:33:23]Read from MH i2c: E2 0E 00 30 11 00 09 00 01 17 88 19 66 00 00 00 00 90 00 E8 [22:33:23]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [22:33:23]wFMCommunicate OK [22:33:23]SAM_PROTO_GetShiftState done [22:33:23]FM_GetShiftState done [22:33:23]req_shift_opened done [22:33:23]requested_item shift.open_date is exist - process it [22:33:23]req_shift_open_date [22:33:23]req_shift_open_date done [22:33:23]produce_requested_data done [22:33:23]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28779,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271} [22:33:23]process_action_free close_receipt [22:33:23]json_value_free [22:33:23]json_value_free done [22:33:23]process_json_proto returns [22:33:23]Send response to host [22:33:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28779,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271}}} [22:33:23]free response buf [22:33:23]execute_script done [22:33:23]execute_script returns [22:33:23]free content buf [22:33:23]Sock 9.Close socket [22:33:23]Sock 9.Thread stoped [22:33:27]OFD Sender: No OFD packet to send [22:33:32]OFD Sender: No OFD packet to send [22:33:37]OFD Sender: No OFD packet to send [22:33:42]OFD Sender: No OFD packet to send [22:33:47]OFD Sender: No OFD packet to send [22:33:52]OFD Sender: No OFD packet to send [22:33:57]OFD Sender: No OFD packet to send [22:34:02]OFD Sender: No OFD packet to send [22:34:07]OFD Sender: No OFD packet to send [22:34:12]OFD Sender: No OFD packet to send [22:34:17]OFD Sender: No OFD packet to send [22:34:22]OFD Sender: No OFD packet to send [22:34:27]OFD Sender: No OFD packet to send [22:34:32]OFD Sender: No OFD packet to send [22:34:37]OFD Sender: No OFD packet to send [22:34:42]OFD Sender: No OFD packet to send [22:34:47]OFD Sender: No OFD packet to send [22:34:52]OFD Sender: No OFD packet to send [22:34:57]OFD Sender: No OFD packet to send [22:35:02]OFD Sender: No OFD packet to send [22:35:07]OFD Sender: No OFD packet to send [22:35:12]OFD Sender: No OFD packet to send [22:35:17]OFD Sender: No OFD packet to send [22:35:22]OFD Sender: No OFD packet to send [22:35:27]OFD Sender: No OFD packet to send [22:35:32]OFD Sender: No OFD packet to send [22:35:37]OFD Sender: No OFD packet to send [22:35:42]OFD Sender: No OFD packet to send [22:35:47]OFD Sender: No OFD packet to send [22:35:52]OFD Sender: No OFD packet to send [22:35:57]OFD Sender: No OFD packet to send [22:36:02]OFD Sender: No OFD packet to send [22:36:07]OFD Sender: No OFD packet to send [22:36:12]OFD Sender: No OFD packet to send [22:36:17]OFD Sender: No OFD packet to send [22:36:22]OFD Sender: No OFD packet to send [22:36:27]OFD Sender: No OFD packet to send [22:36:32]OFD Sender: No OFD packet to send [22:36:37]OFD Sender: No OFD packet to send [22:36:42]OFD Sender: No OFD packet to send [22:36:47]OFD Sender: No OFD packet to send [22:36:52]OFD Sender: No OFD packet to send [22:36:57]OFD Sender: No OFD packet to send [22:37:02]OFD Sender: No OFD packet to send [22:37:07]OFD Sender: No OFD packet to send [22:37:12]OFD Sender: No OFD packet to send [22:37:17]OFD Sender: No OFD packet to send [22:37:22]OFD Sender: No OFD packet to send [22:37:27]OFD Sender: No OFD packet to send [22:37:32]OFD Sender: No OFD packet to send [22:37:37]OFD Sender: No OFD packet to send [22:37:42]OFD Sender: No OFD packet to send [22:37:47]OFD Sender: No OFD packet to send [22:37:52]OFD Sender: No OFD packet to send [22:37:57]OFD Sender: No OFD packet to send [22:38:02]OFD Sender: No OFD packet to send [22:38:07]OFD Sender: No OFD packet to send [22:38:12]OFD Sender: No OFD packet to send [22:38:17]OFD Sender: No OFD packet to send [22:38:22]OFD Sender: No OFD packet to send [22:38:27]OFD Sender: No OFD packet to send [22:38:32]OFD Sender: No OFD packet to send [22:38:37]OFD Sender: No OFD packet to send [22:38:42]OFD Sender: No OFD packet to send [22:38:47]OFD Sender: No OFD packet to send [22:38:52]OFD Sender: No OFD packet to send [22:38:57]OFD Sender: No OFD packet to send [22:39:02]OFD Sender: No OFD packet to send [22:39:07]OFD Sender: No OFD packet to send [22:39:12]OFD Sender: No OFD packet to send [22:39:17]OFD Sender: No OFD packet to send [22:39:22]OFD Sender: No OFD packet to send [22:39:27]OFD Sender: No OFD packet to send [22:39:32]OFD Sender: No OFD packet to send [22:39:37]OFD Sender: No OFD packet to send [22:39:42]OFD Sender: No OFD packet to send [22:39:47]OFD Sender: No OFD packet to send [22:39:52]OFD Sender: No OFD packet to send [22:39:57]OFD Sender: No OFD packet to send [22:40:02]OFD Sender: No OFD packet to send [22:40:07]OFD Sender: No OFD packet to send [22:40:12]OFD Sender: No OFD packet to send [22:40:17]OFD Sender: No OFD packet to send [22:40:22]OFD Sender: No OFD packet to send [22:40:27]OFD Sender: No OFD packet to send [22:40:32]OFD Sender: No OFD packet to send [22:40:37]OFD Sender: No OFD packet to send [22:40:42]OFD Sender: No OFD packet to send [22:40:47]OFD Sender: No OFD packet to send [22:40:52]OFD Sender: No OFD packet to send [22:40:57]OFD Sender: No OFD packet to send [22:41:02]OFD Sender: No OFD packet to send [22:41:02]accept exits with 10 [22:41:02]New connection [22:41:02]New thread 3066785124 created [22:41:02]Thread 3066928484 joined [22:41:02]Waiting for new connection... [22:41:02] Sock 10.Parse request [22:41:02]Sock 10.Check first char [22:41:02]Sock 10.First char is OK [22:41:02]request: POST /json_proto HTTP/1.0 [22:41:02]Method: POST [22:41:02]URL: /json_proto [22:41:02]Method is POST - this is cgi request [22:41:02]url: /json_proto [22:41:02]query_string will be loaded in cgi processing [22:41:02]execute_cgi json_proto POST (null) [22:41:02]execute_cgi path=json_proto method=POST [22:41:02]POST find Content-Length [22:41:02]Host: 172.17.33.3:8080 [22:41:02]Content-Length: 843 [22:41:02]Content-Type: application/json [22:41:02] [22:41:02]POST finish read [22:41:02]Found Content-Length = 843 [22:41:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347124", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 276.250, "sum" : 20000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 20000.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:41:02]execute_script... [22:41: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)347124", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 276.250, "sum" : 20000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 20000.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:41:02]POST & json_proto [22:41:02]process_json_proto [22:41:02]json parsed OK: [22:41:02]protocol is kg_v1.0 [22:41:02]action value=close_receipt [22:41:02]process_action close_receipt [22:41:02]cmd_close_receipt [22:41:02]MH_GetDate [22:41:02]Write to MH i2c: F0 00 00 31 11 31 [22:41:02]Write i2c OK [22:41:02]MH_I2C_Read... [22:41:02]Read from MH i2c: F0 [22:41:02]MH_I2C_Read... [22:41:02]Read from MH i2c: F0 09 00 [22:41:02]MH_I2C_Read... [22:41:02]Read from MH i2c: F0 09 00 31 11 00 80 B8 19 66 23 5B 8F 65 63 [22:41:02]GetLastDocTimeStamp 1712961200 [22:41:02]current date 1712961664 [22:41:02]FM_GetShiftState [22:41:02]SAM_PROTO_GetShiftState [22:41:02]wFMCommunicate request_size=4 [22:41:02]MH_SAM_APDU [22:41:02]CAPDU: 80 13 01 00 [22:41:02]Write to MH i2c: E2 08 00 32 11 80 13 01 00 00 00 00 00 C0 [22:41:02]Write i2c OK [22:41:02]MH_I2C_Read... [22:41:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:41:02]Read from MH i2c: E2 [22:41:02]MH_I2C_Read... [22:41:02]Read from MH i2c: E2 0E 00 [22:41:02]MH_I2C_Read... [22:41:02]Read from MH i2c: E2 0E 00 32 11 00 09 00 01 17 88 19 66 00 00 00 00 90 00 EA [22:41:02]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [22:41:02]wFMCommunicate OK [22:41:02]SAM_PROTO_GetShiftState done [22:41:02]FM_GetShiftState done [22:41:02]opened in 1712949271 [22:41:02]opened+sec_in_day 1713035671 [22:41:02]quantity*price = 2000050 [22:41:02]sum+1 = 2000051 [22:41:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 20000.50 НСП 1% : 177.00 НДС 12% : 2123.95 Наличными: 0.00 Безнал.: 20000.50 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 54 12.04.2024 22:41 Смена: 114 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 28780 ФПД: 181823489697705 1/tax-web-control/client/api/v1/ticket?date=20240412T224104&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28780&fm=181823489697705&tin=02508201610067®Number=0000138879044617&sum=2000050 [22:41:03]StoreToDocumentArchive [22:41:03]shift 114 fd 28780 [22:41:03]save to /storage/0114/doc_00028780 [22:41:03]save last doc name /storage/0114/doc_00028780 to /storage/kkm_last_doc_name [22:41:03]save OK [22:41:03]Clear old archive folders... [22:41:03]ProcessDocumentItem done err = 0, tmpTLVsize=248 [22:41:03]tlvbuf is 011DC310 [22:41:03]SAM_PROTO_ClearQueue [22:41:03]wFMCommunicate request_size=4 [22:41:03]MH_SAM_APDU [22:41:03]CAPDU: 80 09 00 00 [22:41:03]Write to MH i2c: E2 08 00 3F 11 80 09 00 00 00 00 00 00 C2 [22:41:03]Write i2c OK [22:41:03]MH_I2C_Read... [22:41:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:41:03]Read from MH i2c: E2 [22:41:03]MH_I2C_Read... [22:41:03]Read from MH i2c: E2 03 00 [22:41:03]MH_I2C_Read... [22:41:03]Read from MH i2c: E2 03 00 3F 11 00 90 00 C4 [22:41:03]RAPDU: 90 00 [22:41:03]wFMCommunicate OK [22:41:03]SAM_PROTO_ClearQueue done [22:41:03]KKMCreateOFDPacket [22:41:03]OFDProtocolAddRootSTLVToBuf [22:41:03]FM_MakeSignedData [22:41:03]FM_MakeSignedData [22:41:03]SAM_PROTO_SignData [22:41:03]wFMCommunicate request_size=4 [22:41:03]MH_SAM_APDU [22:41:03]CAPDU: 80 0D 01 02 [22:41:03]Write to MH i2c: E2 08 00 40 11 80 0D 01 02 00 00 00 00 CA [22:41:03]Write i2c OK [22:41:03]MH_I2C_Read... [22:41:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:41:03]Read from MH i2c: E2 [22:41:03]MH_I2C_Read... [22:41:03]Read from MH i2c: E2 03 00 [22:41:03]MH_I2C_Read... [22:41:03]Read from MH i2c: E2 03 00 40 11 00 90 00 C5 [22:41:03]RAPDU: 90 00 [22:41:03]wFMCommunicate OK [22:41:03]wFMCommunicate request_size=255 [22:41:03]MH_SAM_APDU [22:41: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 35 FF 03 08 00 03 1A 37 04 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 B2 84 1E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B2 84 1E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 45 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 3D 03 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B2 84 1E 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 80 B8 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6C 70 00 00 35 04 06 00 A5 5E 14 83 [22:41:03]Write to MH i2c: E2 02 01 41 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 35 FF 03 08 00 03 1A 37 04 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 B2 84 1E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B2 84 1E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 45 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 3D 03 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B2 84 1E 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 80 B8 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6C 70 00 00 35 04 06 00 A5 5E 14 83 00 00 22 [22:41:03]Write i2c OK [22:41:03]MH_I2C_Read... [22:41:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:41:04]Read from MH i2c: E2 [22:41:04]MH_I2C_Read... [22:41:04]Read from MH i2c: E2 03 00 [22:41:04]MH_I2C_Read... [22:41:04]Read from MH i2c: E2 03 00 41 11 00 90 00 C6 [22:41:04]RAPDU: 90 00 [22:41:04]wFMCommunicate OK [22:41:04]wFMCommunicate request_size=7 [22:41:04]MH_SAM_APDU [22:41:04]CAPDU: 80 0D 02 02 02 E7 A9 [22:41:04]Write to MH i2c: E2 0A 00 42 11 80 0D 02 02 02 00 E7 A9 00 00 61 [22:41:04]Write i2c OK [22:41:04]MH_I2C_Read... [22:41:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:41:04]Read from MH i2c: E2 [22:41:04]MH_I2C_Read... [22:41:04]Read from MH i2c: E2 03 00 [22:41:04]MH_I2C_Read... [22:41:04]Read from MH i2c: E2 03 00 42 11 00 90 00 C7 [22:41:04]RAPDU: 90 00 [22:41:04]wFMCommunicate OK [22:41:04]wFMCommunicate request_size=4 [22:41:04]MH_SAM_APDU [22:41:04]CAPDU: 80 0D 03 02 [22:41:04]Write to MH i2c: E2 08 00 43 11 80 0D 03 02 00 00 00 00 CF [22:41:04]Write i2c OK [22:41:04]MH_I2C_Read... [22:41:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:41:04]Read from MH i2c: E2 [22:41:04]MH_I2C_Read... [22:41:04]Read from MH i2c: E2 0B 00 [22:41:04]MH_I2C_Read... [22:41:04]Read from MH i2c: E2 0B 00 43 11 00 C3 8E 4E B6 15 9D 8D C0 90 00 24 [22:41:04]RAPDU: C3 8E 4E B6 15 9D 8D C0 90 00 [22:41:04]wFMCommunicate OK [22:41:04]SAM_PROTO_SignData done [22:41:04]FM_MakeSignedData done [22:41:04]CreateOFDProtocolMessage [22:41:04]wFMCommunicate request_size=4 [22:41:04]MH_SAM_APDU [22:41:04]CAPDU: 80 11 00 00 [22:41:04]Write to MH i2c: E2 08 00 44 11 80 11 00 00 00 00 00 00 CF [22:41:04]Write i2c OK [22:41:04]MH_I2C_Read... [22:41:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:41:04]Read from MH i2c: E2 [22:41:04]MH_I2C_Read... [22:41:04]Read from MH i2c: E2 17 00 [22:41:04]MH_I2C_Read... [22:41:04]Read from MH i2c: E2 17 00 44 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 1E [22:41:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [22:41:04]wFMCommunicate OK [22:41:04]CreateOFDProtocolMessage done [22:41:04]OFDSenderStorePacket 28780 [22:41:04]StoreOFDPacket docnum=28780 [22:41:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 9B FB 04 01 4B 04 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1A 37 04 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 B2 84 1E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B2 84 1E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 45 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 3D 03 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B2 84 1E 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 80 B8 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6C 70 00 00 35 04 06 00 A5 5E 14 83 E7 A9 C3 8E 4E B6 15 9D 8D C0 [22:41:04]CheckFolder [22:41:04]dirname=/storage/ofd_packets [22:41:04]CheckFolder done [22:41:04]ProducePacketName [22:41:04]name=ofd_packets/00028780 [22:41:04]NVStorageSaveData ofd_packets/00028780 [22:41:04]File name is /storage/ofd_packets/00028780 [22:41:04]Write 298 bytes [22:41:04]NVStorageSaveData done [22:41:04]OFDSenderStorePacket done [22:41:04]KKMCreateOFDPacket done [22:41:04]NVStorageSaveData kkm_last_timestamp [22:41:04]File name is /storage/kkm_last_timestamp [22:41:04]Write 4 bytes [22:41:04]NVStorageSaveData done [22:41:04]ExternCall_PrintAddStr [22:41:04]wPrintStart [22:41:04]Write to MH i2c: 01 00 00 45 11 56 [22:41:04]Write i2c OK [22:41:04]MH_I2C_Read... [22:41:04]Read from MH i2c: 01 [22:41:04]MH_I2C_Read... [22:41:04]Read from MH i2c: 01 07 00 [22:41:04]MH_I2C_Read... [22:41:04]Read from MH i2c: 01 07 00 45 11 00 00 00 00 00 FF 0F 6B [22:41:04]RasterBufferAndPrint [22:41:04]line Счет N : (1)347124 [22:41:04]line ИНН: 02508201610067 [22:41:04]line Контрольно-Кассовый Чек [22:41:04]line ПРОДАЖА [22:41:04]line ТРК (МРК, ГНК) : 61 [22:41:04]line Товар: 2710194210 [22:41:04]line ДТ-К-5 [22:41:04]line 276.250 * 72.40 [22:41:04]line = 20000.50 [22:41:04]line НДС 12% НСП 1% [22:41:04]line > о реализуемом товаре [22:41:04]line ИТОГО: 20000.50 [22:41:04]line НСП 1% : 177.00 [22:41:04]line НДС 12% : 2123.95 [22:41:04]line Наличными: 0.00 [22:41:04]line Безнал.: 20000.50 [22:41:04]line Место: АЗС № 108 "Партнер Нефть" [22:41:04]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [22:41:04]line СНО: Общий режим [22:41:04]line Чек 54 12.04.2024 22:41 [22:41:04]line Смена: 114 ФФД: 1.0 [22:41:04]line ЗНМ: 0300000027 [22:41:04]line РНМ: 0000138879044617 [22:41:04]line Версия ККМ: 001 [22:41:04]line Платежная система: АКБ Кыргызстан [22:41:04]line ФМ: 0000000000963154 [22:41:04]line ФД: 28780 [22:41:04]line ФПД: 181823489697705 [22:41:04]line 1/tax-web-control/client/api/v1/ticket?date=20240412T224104&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28780&fm=181823489697705&tin=02508201610067®Number=0000138879044617&sum=2000050 [22:41:04]OFD Sender: Processing packet 28780 [packets to send 8, broken 7] [22:41:04]ProducePacketName [22:41:04]name=ofd_packets/00028780 [22:41:04]OFD Sender: To server: pG, [22:41:04]CommunicateWithHost lk.salyk.kg:30040 [22:41:04]ConnectInit lk.salyk.kg [22:41:04]written 0, free lines is 4095 [22:41:04]Connected sock=9 [22:41:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 9B FB 04 01 4B 04 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1A 37 04 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 B2 84 1E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B2 84 1E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 45 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 3D 03 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B2 84 1E 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 80 B8 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6C 70 00 00 35 04 06 00 A5 5E 14 83 E7 A9 C3 8E 4E B6 15 9D 8D C0 [22:41:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 79 58 47 00 8D E9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6C 70 00 00 F4 03 04 00 29 63 19 66 B6 04 01 00 00 CB 62 C8 D4 64 46 92 6A [22:41:04]CommunicateWithHost err = 0 [22:41:04]CheckOFDResponse [22:41:04]1017 (14) - 77093643461234 [22:41:04]1041 (16) - 0000000000963154 [22:41:04]1040 (4) - 28780 [22:41:04]1012 (4) - 12.04.2024 16:36 [22:41:04]1206 (1) - 0 [22:41:04]OFD Sender: Remove packet 28780 [22:41:04]ProducePacketName [22:41:04]name=ofd_packets/00028780 [22:41:04]NVStorageDeleteData [22:41:05]Write to MH i2c: 01 00 00 6E 11 7F [22:41:05]Write i2c OK [22:41:05]MH_I2C_Read... [22:41:05]Read from MH i2c: 01 [22:41:05]MH_I2C_Read... [22:41:05]Read from MH i2c: 01 07 00 [22:41:05]MH_I2C_Read... [22:41:05]Read from MH i2c: 01 07 00 6E 11 00 00 00 00 00 EC 0C 7E [22:41:05]RasterBufferAndPrint [22:41:05]line [22:41:05]line [22:41:05]line [22:41:05]line [22:41:05]line [22:41:05]written 0, free lines is 3312 [22:41:05]MH_Cut [22:41:05]Write to MH i2c: D1 01 00 75 11 01 58 [22:41:05]Write i2c OK [22:41:05]MH_I2C_Read... [22:41:05]Read from MH i2c: D1 [22:41:05]MH_I2C_Read... [22:41:05]Read from MH i2c: D1 01 00 [22:41:05]MH_I2C_Read... [22:41:05]Read from MH i2c: D1 01 00 75 11 00 57 [22:41:05]Write to MH i2c: 01 00 00 76 11 87 [22:41:05]Write i2c OK [22:41:05]MH_I2C_Read... [22:41:05]OFD Sender: No OFD packet to send [22:41:05]*** Cut start [22:41:05]*** Partial cut [22:41:05]*** CUTSNS_PIN = 1 [22:41:05]*** CUTSNS_PIN = 0 [22:41:06]*** Brake cut motor [22:41:06]Read from MH i2c: 01 [22:41:06]MH_I2C_Read... [22:41:06]*** Stop cut motor [22:41:06]*** Cut end [22:41:06]Read from MH i2c: 01 07 00 [22:41:06]MH_I2C_Read... [22:41:06]Read from MH i2c: 01 07 00 76 11 00 00 00 00 00 FF 0F 9C [22:41:06]process_action close_receipt done [22:41:06]requested_data is exist [22:41:06]produce_requested_data [22:41:06]requested_item fm.sn is exist - process it [22:41:06]wFMCommunicate request_size=4 [22:41:06]MH_SAM_APDU [22:41:06]CAPDU: 80 11 00 00 [22:41:06]Write to MH i2c: E2 08 00 77 11 80 11 00 00 00 00 00 00 02 [22:41:06]Write i2c OK [22:41:06]MH_I2C_Read... [22:41:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:41:06]Read from MH i2c: E2 [22:41:06]MH_I2C_Read... [22:41:06]Read from MH i2c: E2 17 00 [22:41:06]MH_I2C_Read... [22:41:06]Read from MH i2c: E2 17 00 77 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 51 [22:41:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [22:41:06]wFMCommunicate OK [22:41:06]requested_item fd.num is exist - process it [22:41:06]SAM_PROTO_GetFieldsCounters [22:41:06]wFMCommunicate request_size=4 [22:41:06]MH_SAM_APDU [22:41:06]CAPDU: 80 13 00 00 [22:41:06]Write to MH i2c: E2 08 00 78 11 80 13 00 00 00 00 00 00 05 [22:41:06]Write i2c OK [22:41:06]MH_I2C_Read... [22:41:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:41:06]Read from MH i2c: E2 [22:41:06]MH_I2C_Read... [22:41:06]Read from MH i2c: E2 62 00 [22:41:06]MH_I2C_Read... [22:41:06]Read from MH i2c: E2 62 00 78 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 6C 70 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 33 [22:41:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 6C 70 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 [22:41:06]wFMCommunicate OK [22:41:06]SAM_PROTO_GetFieldsCounters done [22:41:06]requested_item shift.num is exist - process it [22:41:06]requested_item shift.opened is exist - process it [22:41:06]req_shift_opened [22:41:06]FM_GetShiftState [22:41:06]SAM_PROTO_GetShiftState [22:41:06]wFMCommunicate request_size=4 [22:41:06]MH_SAM_APDU [22:41:06]CAPDU: 80 13 01 00 [22:41:06]Write to MH i2c: E2 08 00 79 11 80 13 01 00 00 00 00 00 07 [22:41:06]Write i2c OK [22:41:06]MH_I2C_Read... [22:41:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:41:06]Read from MH i2c: E2 [22:41:06]MH_I2C_Read... [22:41:06]Read from MH i2c: E2 0E 00 [22:41:06]MH_I2C_Read... [22:41:06]Read from MH i2c: E2 0E 00 79 11 00 09 00 01 17 88 19 66 00 00 00 00 90 00 31 [22:41:06]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [22:41:06]wFMCommunicate OK [22:41:06]SAM_PROTO_GetShiftState done [22:41:06]FM_GetShiftState done [22:41:06]req_shift_opened done [22:41:06]requested_item shift.open_date is exist - process it [22:41:06]req_shift_open_date [22:41:06]req_shift_open_date done [22:41:06]produce_requested_data done [22:41:06]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28780,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271} [22:41:06]process_action_free close_receipt [22:41:06]json_value_free [22:41:06]json_value_free done [22:41:06]process_json_proto returns [22:41:06]Send response to host [22:41:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28780,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271}}} [22:41:06]free response buf [22:41:06]execute_script done [22:41:06]execute_script returns [22:41:06]free content buf [22:41:06]Sock 10.Close socket [22:41:06]Sock 10.Thread stoped [22:41:10]OFD Sender: No OFD packet to send [22:41:15]OFD Sender: No OFD packet to send [22:41:20]OFD Sender: No OFD packet to send [22:41:25]OFD Sender: No OFD packet to send [22:41:30]OFD Sender: No OFD packet to send [22:41:35]OFD Sender: No OFD packet to send [22:41:40]OFD Sender: No OFD packet to send [22:41:45]OFD Sender: No OFD packet to send [22:41:50]OFD Sender: No OFD packet to send [22:41:55]OFD Sender: No OFD packet to send [22:42:00]OFD Sender: No OFD packet to send [22:42:05]OFD Sender: No OFD packet to send [22:42:10]OFD Sender: No OFD packet to send [22:42:15]OFD Sender: No OFD packet to send [22:42:20]OFD Sender: No OFD packet to send [22:42:25]OFD Sender: No OFD packet to send [22:42:30]OFD Sender: No OFD packet to send [22:42:35]OFD Sender: No OFD packet to send [22:42:40]OFD Sender: No OFD packet to send [22:42:45]OFD Sender: No OFD packet to send [22:42:50]OFD Sender: No OFD packet to send [22:42:55]OFD Sender: No OFD packet to send [22:43:00]OFD Sender: No OFD packet to send [22:43:05]OFD Sender: No OFD packet to send [22:43:10]OFD Sender: No OFD packet to send [22:43:15]OFD Sender: No OFD packet to send [22:43:20]OFD Sender: No OFD packet to send [22:43:25]OFD Sender: No OFD packet to send [22:43:30]OFD Sender: No OFD packet to send [22:43:35]OFD Sender: No OFD packet to send [22:43:40]OFD Sender: No OFD packet to send [22:43:45]OFD Sender: No OFD packet to send [22:43:50]OFD Sender: No OFD packet to send [22:43:55]OFD Sender: No OFD packet to send [22:44:00]OFD Sender: No OFD packet to send [22:44:05]OFD Sender: No OFD packet to send [22:44:10]OFD Sender: No OFD packet to send [22:44:15]OFD Sender: No OFD packet to send [22:44:20]OFD Sender: No OFD packet to send [22:44:25]OFD Sender: No OFD packet to send [22:44:30]OFD Sender: No OFD packet to send [22:44:35]OFD Sender: No OFD packet to send [22:44:40]OFD Sender: No OFD packet to send [22:44:45]OFD Sender: No OFD packet to send [22:44:50]OFD Sender: No OFD packet to send [22:44:55]OFD Sender: No OFD packet to send [22:45:00]OFD Sender: No OFD packet to send [22:45:05]OFD Sender: No OFD packet to send [22:45:10]OFD Sender: No OFD packet to send [22:45:15]OFD Sender: No OFD packet to send [22:45:20]OFD Sender: No OFD packet to send [22:45:25]OFD Sender: No OFD packet to send [22:45:30]OFD Sender: No OFD packet to send [22:45:35]OFD Sender: No OFD packet to send [22:45:40]OFD Sender: No OFD packet to send [22:45:45]OFD Sender: No OFD packet to send [22:45:50]OFD Sender: No OFD packet to send [22:45:55]OFD Sender: No OFD packet to send [22:46:00]OFD Sender: No OFD packet to send [22:46:05]OFD Sender: No OFD packet to send [22:46:10]OFD Sender: No OFD packet to send [22:46:15]OFD Sender: No OFD packet to send [22:46:20]OFD Sender: No OFD packet to send [22:46:24]accept exits with 7 [22:46:24]New connection [22:46:24]New thread 3066928484 created [22:46:24]Thread 3066785124 joined [22:46:24]Waiting for new connection... [22:46:24] Sock 7.Parse request [22:46:24]Sock 7.Check first char [22:46:24]Sock 7.First char is OK [22:46:24]request: POST /json_proto HTTP/1.0 [22:46:24]Method: POST [22:46:24]URL: /json_proto [22:46:24]Method is POST - this is cgi request [22:46:24]url: /json_proto [22:46:24]query_string will be loaded in cgi processing [22:46:24]execute_cgi json_proto POST (null) [22:46:24]execute_cgi path=json_proto method=POST [22:46:24]POST find Content-Length [22:46:24]Host: 172.17.33.3:8080 [22:46:24]Content-Length: 811 [22:46:24]Content-Type: application/json [22:46:24] [22:46:24]POST finish read [22:46:24]Found Content-Length = 811 [22:46:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347127", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 30.400, "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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:46:24]execute_script... [22:46: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)347127", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 30.400, "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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:46:24]POST & json_proto [22:46:24]process_json_proto [22:46:24]json parsed OK: [22:46:24]protocol is kg_v1.0 [22:46:24]action value=close_receipt [22:46:24]process_action close_receipt [22:46:24]cmd_close_receipt [22:46:24]MH_GetDate [22:46:24]Write to MH i2c: F0 00 00 7A 11 7A [22:46:24]Write i2c OK [22:46:24]MH_I2C_Read... [22:46:24]Read from MH i2c: F0 [22:46:24]MH_I2C_Read... [22:46:24]Read from MH i2c: F0 09 00 [22:46:24]MH_I2C_Read... [22:46:24]Read from MH i2c: F0 09 00 7A 11 00 C2 B9 19 66 23 5B 8F 65 EF [22:46:24]GetLastDocTimeStamp 1712961664 [22:46:24]current date 1712961986 [22:46:24]FM_GetShiftState [22:46:24]SAM_PROTO_GetShiftState [22:46:24]wFMCommunicate request_size=4 [22:46:24]MH_SAM_APDU [22:46:24]CAPDU: 80 13 01 00 [22:46:24]Write to MH i2c: E2 08 00 7B 11 80 13 01 00 00 00 00 00 09 [22:46:24]Write i2c OK [22:46:24]MH_I2C_Read... [22:46:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:46:24]Read from MH i2c: E2 [22:46:24]MH_I2C_Read... [22:46:24]Read from MH i2c: E2 0E 00 [22:46:24]MH_I2C_Read... [22:46:24]Read from MH i2c: E2 0E 00 7B 11 00 09 00 01 17 88 19 66 00 00 00 00 90 00 33 [22:46:24]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [22:46:24]wFMCommunicate OK [22:46:24]SAM_PROTO_GetShiftState done [22:46:24]FM_GetShiftState done [22:46:24]opened in 1712949271 [22:46:24]opened+sec_in_day 1713035671 [22:46:24]quantity*price = 100016 [22:46:24]sum+1 = 100017 [22:46:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 55 12.04.2024 22:46 Смена: 114 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 28781 ФПД: 115918153138905 1/tax-web-control/client/api/v1/ticket?date=20240412T224626&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28781&fm=115918153138905&tin=02508201610067®Number=0000138879044617&sum=100016 [22:46:26]StoreToDocumentArchive [22:46:26]shift 114 fd 28781 [22:46:26]save to /storage/0114/doc_00028781 [22:46:26]save last doc name /storage/0114/doc_00028781 to /storage/kkm_last_doc_name [22:46:26]save OK [22:46:26]Clear old archive folders... [22:46:26]ProcessDocumentItem done err = 0, tmpTLVsize=250 [22:46:26]tlvbuf is 011C15E0 [22:46:26]SAM_PROTO_ClearQueue [22:46:26]wFMCommunicate request_size=4 [22:46:26]MH_SAM_APDU [22:46:26]CAPDU: 80 09 00 00 [22:46:26]Write to MH i2c: E2 08 00 88 11 80 09 00 00 00 00 00 00 0B [22:46:26]Write i2c OK [22:46:26]MH_I2C_Read... [22:46:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:46:26]Read from MH i2c: E2 [22:46:26]MH_I2C_Read... [22:46:26]Read from MH i2c: E2 03 00 [22:46:26]MH_I2C_Read... [22:46:26]Read from MH i2c: E2 03 00 88 11 00 90 00 0D [22:46:26]RAPDU: 90 00 [22:46:26]wFMCommunicate OK [22:46:26]SAM_PROTO_ClearQueue done [22:46:26]KKMCreateOFDPacket [22:46:26]OFDProtocolAddRootSTLVToBuf [22:46:26]FM_MakeSignedData [22:46:26]FM_MakeSignedData [22:46:26]SAM_PROTO_SignData [22:46:26]wFMCommunicate request_size=4 [22:46:26]MH_SAM_APDU [22:46:26]CAPDU: 80 0D 01 02 [22:46:26]Write to MH i2c: E2 08 00 89 11 80 0D 01 02 00 00 00 00 13 [22:46:26]Write i2c OK [22:46:26]MH_I2C_Read... [22:46:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:46:26]Read from MH i2c: E2 [22:46:26]MH_I2C_Read... [22:46:26]Read from MH i2c: E2 03 00 [22:46:26]MH_I2C_Read... [22:46:26]Read from MH i2c: E2 03 00 89 11 00 90 00 0E [22:46:26]RAPDU: 90 00 [22:46:26]wFMCommunicate OK [22:46:26]wFMCommunicate request_size=255 [22:46:26]MH_SAM_APDU [22:46:26]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 DA 0C 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 37 00 00 00 F4 03 04 00 C2 B9 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6D 70 00 00 35 04 06 00 69 6D [22:46:26]Write to MH i2c: E2 02 01 8A 11 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 DA 0C 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 37 00 00 00 F4 03 04 00 C2 B9 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6D 70 00 00 35 04 06 00 69 6D 00 00 1F [22:46:26]Write i2c OK [22:46:26]MH_I2C_Read... [22:46:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:46:26]Read from MH i2c: E2 [22:46:26]MH_I2C_Read... [22:46:26]Read from MH i2c: E2 03 00 [22:46:26]MH_I2C_Read... [22:46:26]Read from MH i2c: E2 03 00 8A 11 00 90 00 0F [22:46:26]RAPDU: 90 00 [22:46:26]wFMCommunicate OK [22:46:26]wFMCommunicate request_size=9 [22:46:26]MH_SAM_APDU [22:46:26]CAPDU: 80 0D 02 02 04 4C 57 42 D9 [22:46:26]Write to MH i2c: E2 0C 00 8B 11 80 0D 02 02 04 00 4C 57 42 D9 00 00 DC [22:46:26]Write i2c OK [22:46:26]MH_I2C_Read... [22:46:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:46:26]Read from MH i2c: E2 [22:46:26]MH_I2C_Read... [22:46:26]Read from MH i2c: E2 03 00 [22:46:26]MH_I2C_Read... [22:46:26]Read from MH i2c: E2 03 00 8B 11 00 90 00 10 [22:46:26]RAPDU: 90 00 [22:46:26]wFMCommunicate OK [22:46:26]wFMCommunicate request_size=4 [22:46:26]MH_SAM_APDU [22:46:26]CAPDU: 80 0D 03 02 [22:46:26]Write to MH i2c: E2 08 00 8C 11 80 0D 03 02 00 00 00 00 18 [22:46:26]Write i2c OK [22:46:26]MH_I2C_Read... [22:46:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:46:26]Read from MH i2c: E2 [22:46:26]MH_I2C_Read... [22:46:26]Read from MH i2c: E2 0B 00 [22:46:26]MH_I2C_Read... [22:46:26]Read from MH i2c: E2 0B 00 8C 11 00 36 C9 47 9C 1A 80 D5 14 90 00 7E [22:46:26]RAPDU: 36 C9 47 9C 1A 80 D5 14 90 00 [22:46:26]wFMCommunicate OK [22:46:26]SAM_PROTO_SignData done [22:46:26]FM_MakeSignedData done [22:46:26]CreateOFDProtocolMessage [22:46:26]wFMCommunicate request_size=4 [22:46:26]MH_SAM_APDU [22:46:26]CAPDU: 80 11 00 00 [22:46:26]Write to MH i2c: E2 08 00 8D 11 80 11 00 00 00 00 00 00 18 [22:46:26]Write i2c OK [22:46:26]MH_I2C_Read... [22:46:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:46:26]Read from MH i2c: E2 [22:46:26]MH_I2C_Read... [22:46:26]Read from MH i2c: E2 17 00 [22:46:26]MH_I2C_Read... [22:46:26]Read from MH i2c: E2 17 00 8D 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 67 [22:46:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [22:46:26]wFMCommunicate OK [22:46:26]CreateOFDProtocolMessage done [22:46:26]OFDSenderStorePacket 28781 [22:46:26]StoreOFDPacket docnum=28781 [22:46:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 2D 3E 06 01 FC C7 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 DA 0C 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 37 00 00 00 F4 03 04 00 C2 B9 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6D 70 00 00 35 04 06 00 69 6D 4C 57 42 D9 36 C9 47 9C 1A 80 D5 14 [22:46:26]CheckFolder [22:46:26]dirname=/storage/ofd_packets [22:46:26]CheckFolder done [22:46:26]ProducePacketName [22:46:26]name=ofd_packets/00028781 [22:46:26]NVStorageSaveData ofd_packets/00028781 [22:46:26]File name is /storage/ofd_packets/00028781 [22:46:26]Write 300 bytes [22:46:26]NVStorageSaveData done [22:46:26]OFDSenderStorePacket done [22:46:26]KKMCreateOFDPacket done [22:46:26]NVStorageSaveData kkm_last_timestamp [22:46:26]File name is /storage/kkm_last_timestamp [22:46:26]Write 4 bytes [22:46:26]NVStorageSaveData done [22:46:26]ExternCall_PrintAddStr [22:46:26]wPrintStart [22:46:26]Write to MH i2c: 01 00 00 8E 11 9F [22:46:26]Write i2c OK [22:46:26]MH_I2C_Read... [22:46:26]Read from MH i2c: 01 [22:46:26]MH_I2C_Read... [22:46:26]Read from MH i2c: 01 07 00 [22:46:26]MH_I2C_Read... [22:46:26]Read from MH i2c: 01 07 00 8E 11 00 00 00 00 00 FF 0F B4 [22:46:26]RasterBufferAndPrint [22:46:26]line Счет N : (1)347127 [22:46:26]line ИНН: 02508201610067 [22:46:26]line Контрольно-Кассовый Чек [22:46:26]line ПРОДАЖА [22:46:26]line ТРК (МРК, ГНК) : 71 [22:46:26]line Товар: 2711129700 [22:46:26]line ГАЗ-К-5 [22:46:26]line 30.400 * 32.90 [22:46:26]line = 1000.16 [22:46:26]line НДС 12% НСП 1% [22:46:26]line > о реализуемом товаре [22:46:26]line ИТОГО: 1000.16 [22:46:26]line НСП 1% : 8.85 [22:46:26]line НДС 12% : 106.21 [22:46:26]line Наличными: 0.00 [22:46:26]line Безнал.: 1000.16 [22:46:26]line Место: АЗС № 108 "Партнер Нефть" [22:46:26]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [22:46:26]line СНО: Общий режим [22:46:26]line Чек 55 12.04.2024 22:46 [22:46:26]line Смена: 114 ФФД: 1.0 [22:46:26]line ЗНМ: 0300000027 [22:46:26]line РНМ: 0000138879044617 [22:46:26]line Версия ККМ: 001 [22:46:26]line Платежная система: О! деньги [22:46:26]line ФМ: 0000000000963154 [22:46:26]line ФД: 28781 [22:46:26]line ФПД: 115918153138905 [22:46:26]line 1/tax-web-control/client/api/v1/ticket?date=20240412T224626&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28781&fm=115918153138905&tin=02508201610067®Number=0000138879044617&sum=100016 [22:46:26]OFD Sender: Processing packet 28781 [packets to send 8, broken 7] [22:46:26]ProducePacketName [22:46:26]name=ofd_packets/00028781 [22:46:26]OFD Sender: To server: pG, [22:46:26]CommunicateWithHost lk.salyk.kg:30040 [22:46:26]ConnectInit lk.salyk.kg [22:46:26]written 0, free lines is 4095 [22:46:27]Connected sock=9 [22:46:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 2D 3E 06 01 FC C7 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 DA 0C 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 37 00 00 00 F4 03 04 00 C2 B9 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6D 70 00 00 35 04 06 00 69 6D 4C 57 42 D9 36 C9 47 9C 1A 80 D5 14 [22:46:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 C1 DC 47 00 EE 9E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6D 70 00 00 F4 03 04 00 6B 64 19 66 B6 04 01 00 00 4E 46 DF DF 54 71 A2 19 [22:46:27]CommunicateWithHost err = 0 [22:46:27]CheckOFDResponse [22:46:27]1017 (14) - 77093643461234 [22:46:27]1041 (16) - 0000000000963154 [22:46:27]1040 (4) - 28781 [22:46:27]1012 (4) - 12.04.2024 16:42 [22:46:27]1206 (1) - 0 [22:46:27]OFD Sender: Remove packet 28781 [22:46:27]ProducePacketName [22:46:27]name=ofd_packets/00028781 [22:46:27]NVStorageDeleteData [22:46:27]Write to MH i2c: 01 00 00 B7 11 C8 [22:46:27]Write i2c OK [22:46:27]MH_I2C_Read... [22:46:27]Read from MH i2c: 01 [22:46:27]MH_I2C_Read... [22:46:27]Read from MH i2c: 01 07 00 [22:46:27]MH_I2C_Read... [22:46:27]Read from MH i2c: 01 07 00 B7 11 00 00 00 00 00 D2 0C AD [22:46:27]RasterBufferAndPrint [22:46:27]line [22:46:27]line [22:46:27]line [22:46:27]line [22:46:27]line [22:46:27]written 0, free lines is 3288 [22:46:27]MH_Cut [22:46:27]Write to MH i2c: D1 01 00 BE 11 01 A1 [22:46:27]Write i2c OK [22:46:27]MH_I2C_Read... [22:46:27]Read from MH i2c: D1 [22:46:27]MH_I2C_Read... [22:46:27]Read from MH i2c: D1 01 00 [22:46:27]MH_I2C_Read... [22:46:27]Read from MH i2c: D1 01 00 BE 11 00 A0 [22:46:27]Write to MH i2c: 01 00 00 BF 11 D0 [22:46:27]Write i2c OK [22:46:27]MH_I2C_Read... [22:46:27]OFD Sender: No OFD packet to send [22:46:28]*** Cut start [22:46:28]*** Partial cut [22:46:28]*** CUTSNS_PIN = 1 [22:46:28]*** CUTSNS_PIN = 0 [22:46:28]*** Brake cut motor [22:46:28]Read from MH i2c: 01 [22:46:28]MH_I2C_Read... [22:46:28]*** Stop cut motor [22:46:28]*** Cut end [22:46:28]Read from MH i2c: 01 07 00 [22:46:28]MH_I2C_Read... [22:46:28]Read from MH i2c: 01 07 00 BF 11 00 00 00 00 00 FF 0F E5 [22:46:28]process_action close_receipt done [22:46:28]requested_data is exist [22:46:28]produce_requested_data [22:46:28]requested_item fm.sn is exist - process it [22:46:28]wFMCommunicate request_size=4 [22:46:28]MH_SAM_APDU [22:46:28]CAPDU: 80 11 00 00 [22:46:28]Write to MH i2c: E2 08 00 C0 11 80 11 00 00 00 00 00 00 4B [22:46:28]Write i2c OK [22:46:28]MH_I2C_Read... [22:46:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:46:28]Read from MH i2c: E2 [22:46:28]MH_I2C_Read... [22:46:28]Read from MH i2c: E2 17 00 [22:46:28]MH_I2C_Read... [22:46:28]Read from MH i2c: E2 17 00 C0 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 9A [22:46:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [22:46:28]wFMCommunicate OK [22:46:28]requested_item fd.num is exist - process it [22:46:28]SAM_PROTO_GetFieldsCounters [22:46:28]wFMCommunicate request_size=4 [22:46:28]MH_SAM_APDU [22:46:28]CAPDU: 80 13 00 00 [22:46:28]Write to MH i2c: E2 08 00 C1 11 80 13 00 00 00 00 00 00 4E [22:46:28]Write i2c OK [22:46:28]MH_I2C_Read... [22:46:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:46:29]Read from MH i2c: E2 [22:46:29]MH_I2C_Read... [22:46:29]Read from MH i2c: E2 62 00 [22:46:29]MH_I2C_Read... [22:46:29]Read from MH i2c: E2 62 00 C1 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 6D 70 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 80 [22:46:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 6D 70 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 [22:46:29]wFMCommunicate OK [22:46:29]SAM_PROTO_GetFieldsCounters done [22:46:29]requested_item shift.num is exist - process it [22:46:29]requested_item shift.opened is exist - process it [22:46:29]req_shift_opened [22:46:29]FM_GetShiftState [22:46:29]SAM_PROTO_GetShiftState [22:46:29]wFMCommunicate request_size=4 [22:46:29]MH_SAM_APDU [22:46:29]CAPDU: 80 13 01 00 [22:46:29]Write to MH i2c: E2 08 00 C2 11 80 13 01 00 00 00 00 00 50 [22:46:29]Write i2c OK [22:46:29]MH_I2C_Read... [22:46:29]Read from MH i2c: E2 [22:46:29]MH_I2C_Read... [22:46:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:46:29]Read from MH i2c: E2 0E 00 [22:46:29]MH_I2C_Read... [22:46:29]Read from MH i2c: E2 0E 00 C2 11 00 09 00 01 17 88 19 66 00 00 00 00 90 00 7A [22:46:29]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [22:46:29]wFMCommunicate OK [22:46:29]SAM_PROTO_GetShiftState done [22:46:29]FM_GetShiftState done [22:46:29]req_shift_opened done [22:46:29]requested_item shift.open_date is exist - process it [22:46:29]req_shift_open_date [22:46:29]req_shift_open_date done [22:46:29]produce_requested_data done [22:46:29]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28781,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271} [22:46:29]process_action_free close_receipt [22:46:29]json_value_free [22:46:29]json_value_free done [22:46:29]process_json_proto returns [22:46:29]Send response to host [22:46:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28781,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271}}} [22:46:29]free response buf [22:46:29]execute_script done [22:46:29]execute_script returns [22:46:29]free content buf [22:46:29]Sock 7.Close socket [22:46:29]Sock 7.Thread stoped [22:46:29]accept exits with 10 [22:46:29]New connection [22:46:29]New thread 3066785124 created [22:46:29]Thread 3066928484 joined [22:46:29]Waiting for new connection... [22:46:29] Sock 10.Parse request [22:46:29]Sock 10.Check first char [22:46:29]Sock 10.First char is OK [22:46:29]request: POST /json_proto HTTP/1.0 [22:46:29]Method: POST [22:46:29]URL: /json_proto [22:46:29]Method is POST - this is cgi request [22:46:29]url: /json_proto [22:46:29]query_string will be loaded in cgi processing [22:46:29]execute_cgi json_proto POST (null) [22:46:29]execute_cgi path=json_proto method=POST [22:46:29]POST find Content-Length [22:46:29]Host: 172.17.33.3:8080 [22:46:29]Content-Length: 833 [22:46:29]Content-Type: application/json [22:46:29] [22:46:29]POST finish read [22:46:29]Found Content-Length = 833 [22:46:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347128", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 7.660, "sum" : 500.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.20 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:46:29]execute_script... [22:46: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)347128", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 7.660, "sum" : 500.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.20 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:46:29]POST & json_proto [22:46:29]process_json_proto [22:46:29]json parsed OK: [22:46:29]protocol is kg_v1.0 [22:46:29]action value=close_receipt [22:46:29]process_action close_receipt [22:46:29]cmd_close_receipt [22:46:29]MH_GetDate [22:46:29]Write to MH i2c: F0 00 00 C3 11 C3 [22:46:29]Write i2c OK [22:46:29]MH_I2C_Read... [22:46:29]Read from MH i2c: F0 [22:46:29]MH_I2C_Read... [22:46:29]Read from MH i2c: F0 09 00 [22:46:29]MH_I2C_Read... [22:46:29]Read from MH i2c: F0 09 00 C3 11 00 C7 B9 19 66 23 5B 8F 65 3D [22:46:29]GetLastDocTimeStamp 1712961986 [22:46:29]current date 1712961991 [22:46:29]FM_GetShiftState [22:46:29]SAM_PROTO_GetShiftState [22:46:29]wFMCommunicate request_size=4 [22:46:29]MH_SAM_APDU [22:46:29]CAPDU: 80 13 01 00 [22:46:29]Write to MH i2c: E2 08 00 C4 11 80 13 01 00 00 00 00 00 52 [22:46:29]Write i2c OK [22:46:29]MH_I2C_Read... [22:46:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:46:29]Read from MH i2c: E2 [22:46:29]MH_I2C_Read... [22:46:29]Read from MH i2c: E2 0E 00 [22:46:29]MH_I2C_Read... [22:46:29]Read from MH i2c: E2 0E 00 C4 11 00 09 00 01 17 88 19 66 00 00 00 00 90 00 7C [22:46:29]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [22:46:29]wFMCommunicate OK [22:46:29]SAM_PROTO_GetShiftState done [22:46:29]FM_GetShiftState done [22:46:29]opened in 1712949271 [22:46:29]opened+sec_in_day 1713035671 [22:46:29]quantity*price = 50019 [22:46:29]sum+1 = 50021 [22:46:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.20 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 0.00 Безнал.: 500.20 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 56 12.04.2024 22:46 Смена: 114 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 28782 ФПД: 76807995429086 1/tax-web-control/client/api/v1/ticket?date=20240412T224631&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28782&fm=76807995429086&tin=02508201610067®Number=0000138879044617&sum=50020 [22:46:31]StoreToDocumentArchive [22:46:31]shift 114 fd 28782 [22:46:31]save to /storage/0114/doc_00028782 [22:46:31]save last doc name /storage/0114/doc_00028782 to /storage/kkm_last_doc_name [22:46:31]save OK [22:46:31]Clear old archive folders... [22:46:31]ProcessDocumentItem done err = 0, tmpTLVsize=252 [22:46:31]tlvbuf is 011FE140 [22:46:31]SAM_PROTO_ClearQueue [22:46:31]wFMCommunicate request_size=4 [22:46:31]MH_SAM_APDU [22:46:31]CAPDU: 80 09 00 00 [22:46:31]Write to MH i2c: E2 08 00 D1 11 80 09 00 00 00 00 00 00 54 [22:46:31]Write i2c OK [22:46:31]MH_I2C_Read... [22:46:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:46:31]Read from MH i2c: E2 [22:46:31]MH_I2C_Read... [22:46:31]Read from MH i2c: E2 03 00 [22:46:31]MH_I2C_Read... [22:46:31]Read from MH i2c: E2 03 00 D1 11 00 90 00 56 [22:46:31]RAPDU: 90 00 [22:46:31]wFMCommunicate OK [22:46:31]SAM_PROTO_ClearQueue done [22:46:31]KKMCreateOFDPacket [22:46:31]OFDProtocolAddRootSTLVToBuf [22:46:31]FM_MakeSignedData [22:46:31]FM_MakeSignedData [22:46:31]SAM_PROTO_SignData [22:46:31]wFMCommunicate request_size=4 [22:46:31]MH_SAM_APDU [22:46:31]CAPDU: 80 0D 01 02 [22:46:31]Write to MH i2c: E2 08 00 D2 11 80 0D 01 02 00 00 00 00 5C [22:46:31]Write i2c OK [22:46:31]MH_I2C_Read... [22:46:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:46:31]Read from MH i2c: E2 [22:46:31]MH_I2C_Read... [22:46:31]Read from MH i2c: E2 03 00 [22:46:31]MH_I2C_Read... [22:46:31]Read from MH i2c: E2 03 00 D2 11 00 90 00 57 [22:46:31]RAPDU: 90 00 [22:46:31]wFMCommunicate OK [22:46:31]wFMCommunicate request_size=255 [22:46:31]MH_SAM_APDU [22:46:31]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 1D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 64 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 64 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 C7 B9 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6E 70 00 00 35 04 06 00 [22:46:31]Write to MH i2c: E2 02 01 D3 11 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 1D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 64 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 64 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 C7 B9 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6E 70 00 00 35 04 06 00 00 00 5D [22:46:31]Write i2c OK [22:46:31]MH_I2C_Read... [22:46:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:46:31]Read from MH i2c: E2 [22:46:31]MH_I2C_Read... [22:46:31]Read from MH i2c: E2 03 00 [22:46:31]MH_I2C_Read... [22:46:31]Read from MH i2c: E2 03 00 D3 11 00 90 00 58 [22:46:31]RAPDU: 90 00 [22:46:31]wFMCommunicate OK [22:46:31]wFMCommunicate request_size=11 [22:46:31]MH_SAM_APDU [22:46:31]CAPDU: 80 0D 02 02 06 45 DB 41 48 90 DE [22:46:31]Write to MH i2c: E2 0E 00 D4 11 80 0D 02 02 06 00 45 DB 41 48 90 DE 00 00 82 [22:46:31]Write i2c OK [22:46:31]MH_I2C_Read... [22:46:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:46:31]Read from MH i2c: E2 [22:46:31]MH_I2C_Read... [22:46:31]Read from MH i2c: E2 03 00 [22:46:31]MH_I2C_Read... [22:46:31]Read from MH i2c: E2 03 00 D4 11 00 90 00 59 [22:46:31]RAPDU: 90 00 [22:46:31]wFMCommunicate OK [22:46:31]wFMCommunicate request_size=4 [22:46:31]MH_SAM_APDU [22:46:31]CAPDU: 80 0D 03 02 [22:46:31]Write to MH i2c: E2 08 00 D5 11 80 0D 03 02 00 00 00 00 61 [22:46:31]Write i2c OK [22:46:31]MH_I2C_Read... [22:46:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:46:31]Read from MH i2c: E2 [22:46:31]MH_I2C_Read... [22:46:31]Read from MH i2c: E2 0B 00 [22:46:31]MH_I2C_Read... [22:46:31]Read from MH i2c: E2 0B 00 D5 11 00 B2 8E EF 6E E0 42 98 1A 90 00 D3 [22:46:31]RAPDU: B2 8E EF 6E E0 42 98 1A 90 00 [22:46:31]wFMCommunicate OK [22:46:31]SAM_PROTO_SignData done [22:46:31]FM_MakeSignedData done [22:46:31]CreateOFDProtocolMessage [22:46:31]wFMCommunicate request_size=4 [22:46:31]MH_SAM_APDU [22:46:31]CAPDU: 80 11 00 00 [22:46:31]Write to MH i2c: E2 08 00 D6 11 80 11 00 00 00 00 00 00 61 [22:46:31]Write i2c OK [22:46:31]MH_I2C_Read... [22:46:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:46:31]Read from MH i2c: E2 [22:46:31]MH_I2C_Read... [22:46:31]Read from MH i2c: E2 17 00 [22:46:31]MH_I2C_Read... [22:46:31]Read from MH i2c: E2 17 00 D6 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 B0 [22:46:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [22:46:31]wFMCommunicate OK [22:46:31]CreateOFDProtocolMessage done [22:46:31]OFDSenderStorePacket 28782 [22:46:31]StoreOFDPacket docnum=28782 [22:46:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 65 49 08 01 DB 95 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 1D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 64 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 64 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 C7 B9 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6E 70 00 00 35 04 06 00 45 DB 41 48 90 DE B2 8E EF 6E E0 42 98 1A [22:46:31]CheckFolder [22:46:31]dirname=/storage/ofd_packets [22:46:31]CheckFolder done [22:46:31]ProducePacketName [22:46:31]name=ofd_packets/00028782 [22:46:31]NVStorageSaveData ofd_packets/00028782 [22:46:31]File name is /storage/ofd_packets/00028782 [22:46:31]Write 302 bytes [22:46:31]NVStorageSaveData done [22:46:31]OFDSenderStorePacket done [22:46:31]KKMCreateOFDPacket done [22:46:31]NVStorageSaveData kkm_last_timestamp [22:46:31]File name is /storage/kkm_last_timestamp [22:46:31]Write 4 bytes [22:46:31]NVStorageSaveData done [22:46:31]ExternCall_PrintAddStr [22:46:31]wPrintStart [22:46:31]Write to MH i2c: 01 00 00 D7 11 E8 [22:46:31]Write i2c OK [22:46:31]MH_I2C_Read... [22:46:31]Read from MH i2c: 01 [22:46:31]MH_I2C_Read... [22:46:31]Read from MH i2c: 01 07 00 [22:46:31]MH_I2C_Read... [22:46:31]Read from MH i2c: 01 07 00 D7 11 00 00 00 00 00 FF 0F FD [22:46:31]RasterBufferAndPrint [22:46:31]line Счет N : (1)347128 [22:46:31]line ИНН: 02508201610067 [22:46:31]line Контрольно-Кассовый Чек [22:46:31]line ПРОДАЖА [22:46:31]line ТРК (МРК, ГНК) : 41 [22:46:31]line Товар: 2710124130 [22:46:31]line SUPER-92-К-5 [22:46:31]line 7.660 * 65.30 [22:46:31]line = 500.20 [22:46:31]line НДС 12% НСП 1% [22:46:31]line > о реализуемом товаре [22:46:31]line ИТОГО: 500.20 [22:46:31]line НСП 1% : 4.43 [22:46:31]line НДС 12% : 53.12 [22:46:31]line Наличными: 0.00 [22:46:31]line Безнал.: 500.20 [22:46:31]line Место: АЗС № 108 "Партнер Нефть" [22:46:31]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [22:46:31]line СНО: Общий режим [22:46:31]line Чек 56 12.04.2024 22:46 [22:46:31]line Смена: 114 ФФД: 1.0 [22:46:31]line ЗНМ: 0300000027 [22:46:31]line РНМ: 0000138879044617 [22:46:31]line Версия ККМ: 001 [22:46:31]line Платежная система: АКБ Кыргызстан [22:46:31]line ФМ: 0000000000963154 [22:46:31]line ФД: 28782 [22:46:31]line ФПД: 76807995429086 [22:46:31]line 1/tax-web-control/client/api/v1/ticket?date=20240412T224631&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28782&fm=76807995429086&tin=02508201610067®Number=0000138879044617&sum=50020 [22:46:31]written 0, free lines is 4095 [22:46:31]OFD Sender: Processing packet 28782 [packets to send 8, broken 7] [22:46:31]ProducePacketName [22:46:31]name=ofd_packets/00028782 [22:46:31]OFD Sender: To server: pG, [22:46:31]CommunicateWithHost lk.salyk.kg:30040 [22:46:31]ConnectInit lk.salyk.kg [22:46:31]Connected sock=9 [22:46:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 65 49 08 01 DB 95 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 1D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 64 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 64 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 C7 B9 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6E 70 00 00 35 04 06 00 45 DB 41 48 90 DE B2 8E EF 6E E0 42 98 1A [22:46:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 6F 77 47 00 D3 7D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6E 70 00 00 F4 03 04 00 70 64 19 66 B6 04 01 00 00 62 52 94 B3 E3 B7 B6 50 [22:46:31]CommunicateWithHost err = 0 [22:46:31]CheckOFDResponse [22:46:31]1017 (14) - 77093643461234 [22:46:31]1041 (16) - 0000000000963154 [22:46:31]1040 (4) - 28782 [22:46:31]1012 (4) - 12.04.2024 16:42 [22:46:31]1206 (1) - 0 [22:46:31]OFD Sender: Remove packet 28782 [22:46:31]ProducePacketName [22:46:31]name=ofd_packets/00028782 [22:46:31]NVStorageDeleteData [22:46:32]Write to MH i2c: 01 00 00 00 12 12 [22:46:32]Write i2c OK [22:46:32]MH_I2C_Read... [22:46:32]Read from MH i2c: 01 [22:46:32]MH_I2C_Read... [22:46:32]Read from MH i2c: 01 07 00 [22:46:32]MH_I2C_Read... [22:46:32]Read from MH i2c: 01 07 00 00 12 00 00 00 00 00 F0 0C 15 [22:46:32]RasterBufferAndPrint [22:46:32]line [22:46:32]line [22:46:32]line [22:46:32]line [22:46:32]line [22:46:32]written 0, free lines is 3325 [22:46:32]MH_Cut [22:46:32]Write to MH i2c: D1 01 00 07 12 01 EB [22:46:32]Write i2c OK [22:46:32]MH_I2C_Read... [22:46:32]Read from MH i2c: D1 [22:46:32]MH_I2C_Read... [22:46:32]Read from MH i2c: D1 01 00 [22:46:32]MH_I2C_Read... [22:46:32]Read from MH i2c: D1 01 00 07 12 00 EA [22:46:32]Write to MH i2c: 01 00 00 08 12 1A [22:46:32]Write i2c OK [22:46:32]MH_I2C_Read... [22:46:32]OFD Sender: No OFD packet to send [22:46:32]*** Cut start [22:46:32]*** Partial cut [22:46:32]*** CUTSNS_PIN = 1 [22:46:32]*** CUTSNS_PIN = 0 [22:46:33]*** Brake cut motor [22:46:33]Read from MH i2c: 01 [22:46:33]MH_I2C_Read... [22:46:33]*** Stop cut motor [22:46:33]*** Cut end [22:46:33]Read from MH i2c: 01 07 00 [22:46:33]MH_I2C_Read... [22:46:33]Read from MH i2c: 01 07 00 08 12 00 00 00 00 00 FF 0F 2F [22:46:33]process_action close_receipt done [22:46:33]requested_data is exist [22:46:33]produce_requested_data [22:46:33]requested_item fm.sn is exist - process it [22:46:33]wFMCommunicate request_size=4 [22:46:33]MH_SAM_APDU [22:46:33]CAPDU: 80 11 00 00 [22:46:33]Write to MH i2c: E2 08 00 09 12 80 11 00 00 00 00 00 00 95 [22:46:33]Write i2c OK [22:46:33]MH_I2C_Read... [22:46:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:46:33]Read from MH i2c: E2 [22:46:33]MH_I2C_Read... [22:46:33]Read from MH i2c: E2 17 00 [22:46:33]MH_I2C_Read... [22:46:33]Read from MH i2c: E2 17 00 09 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 E4 [22:46:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [22:46:33]wFMCommunicate OK [22:46:33]requested_item fd.num is exist - process it [22:46:33]SAM_PROTO_GetFieldsCounters [22:46:33]wFMCommunicate request_size=4 [22:46:33]MH_SAM_APDU [22:46:33]CAPDU: 80 13 00 00 [22:46:33]Write to MH i2c: E2 08 00 0A 12 80 13 00 00 00 00 00 00 98 [22:46:33]Write i2c OK [22:46:33]MH_I2C_Read... [22:46:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:46:33]Read from MH i2c: E2 [22:46:33]MH_I2C_Read... [22:46:33]Read from MH i2c: E2 62 00 [22:46:33]MH_I2C_Read... [22:46:33]Read from MH i2c: E2 62 00 0A 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 6E 70 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 CE [22:46:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 6E 70 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 [22:46:33]wFMCommunicate OK [22:46:33]SAM_PROTO_GetFieldsCounters done [22:46:33]requested_item shift.num is exist - process it [22:46:33]requested_item shift.opened is exist - process it [22:46:33]req_shift_opened [22:46:33]FM_GetShiftState [22:46:33]SAM_PROTO_GetShiftState [22:46:33]wFMCommunicate request_size=4 [22:46:33]MH_SAM_APDU [22:46:33]CAPDU: 80 13 01 00 [22:46:33]Write to MH i2c: E2 08 00 0B 12 80 13 01 00 00 00 00 00 9A [22:46:33]Write i2c OK [22:46:33]MH_I2C_Read... [22:46:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:46:33]Read from MH i2c: E2 [22:46:33]MH_I2C_Read... [22:46:33]Read from MH i2c: E2 0E 00 [22:46:33]MH_I2C_Read... [22:46:33]Read from MH i2c: E2 0E 00 0B 12 00 09 00 01 17 88 19 66 00 00 00 00 90 00 C4 [22:46:33]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [22:46:33]wFMCommunicate OK [22:46:33]SAM_PROTO_GetShiftState done [22:46:33]FM_GetShiftState done [22:46:33]req_shift_opened done [22:46:33]requested_item shift.open_date is exist - process it [22:46:33]req_shift_open_date [22:46:33]req_shift_open_date done [22:46:33]produce_requested_data done [22:46:33]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28782,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271} [22:46:33]process_action_free close_receipt [22:46:33]json_value_free [22:46:33]json_value_free done [22:46:33]process_json_proto returns [22:46:33]Send response to host [22:46:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28782,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271}}} [22:46:33]free response buf [22:46:33]execute_script done [22:46:33]execute_script returns [22:46:33]free content buf [22:46:33]Sock 10.Close socket [22:46:33]Sock 10.Thread stoped [22:46:37]OFD Sender: No OFD packet to send [22:46:42]OFD Sender: No OFD packet to send [22:46:47]OFD Sender: No OFD packet to send [22:46:52]OFD Sender: No OFD packet to send [22:46:57]OFD Sender: No OFD packet to send [22:47:02]OFD Sender: No OFD packet to send [22:47:07]OFD Sender: No OFD packet to send [22:47:12]OFD Sender: No OFD packet to send [22:47:17]OFD Sender: No OFD packet to send [22:47:22]OFD Sender: No OFD packet to send [22:47:27]OFD Sender: No OFD packet to send [22:47:32]OFD Sender: No OFD packet to send [22:47:37]OFD Sender: No OFD packet to send [22:47:42]OFD Sender: No OFD packet to send [22:47:47]OFD Sender: No OFD packet to send [22:47:52]OFD Sender: No OFD packet to send [22:47:57]OFD Sender: No OFD packet to send [22:48:02]OFD Sender: No OFD packet to send [22:48:07]OFD Sender: No OFD packet to send [22:48:12]OFD Sender: No OFD packet to send [22:48:17]OFD Sender: No OFD packet to send [22:48:22]OFD Sender: No OFD packet to send [22:48:27]OFD Sender: No OFD packet to send [22:48:32]OFD Sender: No OFD packet to send [22:48:37]OFD Sender: No OFD packet to send [22:48:42]OFD Sender: No OFD packet to send [22:48:47]OFD Sender: No OFD packet to send [22:48:52]OFD Sender: No OFD packet to send [22:48:57]OFD Sender: No OFD packet to send [22:49:02]OFD Sender: No OFD packet to send [22:49:07]OFD Sender: No OFD packet to send [22:49:12]OFD Sender: No OFD packet to send [22:49:17]OFD Sender: No OFD packet to send [22:49:22]OFD Sender: No OFD packet to send [22:49:27]OFD Sender: No OFD packet to send [22:49:32]OFD Sender: No OFD packet to send [22:49:37]OFD Sender: No OFD packet to send [22:49:42]OFD Sender: No OFD packet to send [22:49:47]OFD Sender: No OFD packet to send [22:49:52]OFD Sender: No OFD packet to send [22:49:57]OFD Sender: No OFD packet to send [22:50:02]OFD Sender: No OFD packet to send [22:50:07]OFD Sender: No OFD packet to send [22:50:12]OFD Sender: No OFD packet to send [22:50:17]OFD Sender: No OFD packet to send [22:50:22]OFD Sender: No OFD packet to send [22:50:27]OFD Sender: No OFD packet to send [22:50:32]OFD Sender: No OFD packet to send [22:50:37]OFD Sender: No OFD packet to send [22:50:42]OFD Sender: No OFD packet to send [22:50:47]OFD Sender: No OFD packet to send [22:50:48]accept exits with 7 [22:50:48]New connection [22:50:48]New thread 3066928484 created [22:50:48]Thread 3066785124 joined [22:50:48]Waiting for new connection... [22:50:48] Sock 7.Parse request [22:50:48]Sock 7.Check first char [22:50:48]Sock 7.First char is OK [22:50:48]request: POST /json_proto HTTP/1.0 [22:50:48]Method: POST [22:50:48]URL: /json_proto [22:50:48]Method is POST - this is cgi request [22:50:48]url: /json_proto [22:50:48]query_string will be loaded in cgi processing [22:50:48]execute_cgi json_proto POST (null) [22:50:48]execute_cgi path=json_proto method=POST [22:50:48]POST find Content-Length [22:50:48]Host: 172.17.33.3:8080 [22:50:48]Content-Length: 840 [22:50:48]Content-Type: application/json [22:50:48] [22:50:48]POST finish read [22:50:48]Found Content-Length = 840 [22:50:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347129", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 5.450, "sum" : 350.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 350.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:50:48]execute_script... [22:50:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347129", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 5.450, "sum" : 350.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 350.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:50:48]POST & json_proto [22:50:48]process_json_proto [22:50:48]json parsed OK: [22:50:48]protocol is kg_v1.0 [22:50:48]action value=close_receipt [22:50:48]process_action close_receipt [22:50:48]cmd_close_receipt [22:50:48]MH_GetDate [22:50:48]Write to MH i2c: F0 00 00 0C 12 0D [22:50:48]Write i2c OK [22:50:48]MH_I2C_Read... [22:50:48]Read from MH i2c: F0 [22:50:48]MH_I2C_Read... [22:50:48]Read from MH i2c: F0 09 00 [22:50:48]MH_I2C_Read... [22:50:48]Read from MH i2c: F0 09 00 0C 12 00 CA BA 19 66 23 5B 8F 65 8B [22:50:48]GetLastDocTimeStamp 1712961991 [22:50:48]current date 1712962250 [22:50:48]FM_GetShiftState [22:50:48]SAM_PROTO_GetShiftState [22:50:48]wFMCommunicate request_size=4 [22:50:48]MH_SAM_APDU [22:50:48]CAPDU: 80 13 01 00 [22:50:48]Write to MH i2c: E2 08 00 0D 12 80 13 01 00 00 00 00 00 9C [22:50:48]Write i2c OK [22:50:48]MH_I2C_Read... [22:50:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:50:48]Read from MH i2c: E2 [22:50:48]MH_I2C_Read... [22:50:48]Read from MH i2c: E2 0E 00 [22:50:48]MH_I2C_Read... [22:50:48]Read from MH i2c: E2 0E 00 0D 12 00 09 00 01 17 88 19 66 00 00 00 00 90 00 C6 [22:50:48]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [22:50:48]wFMCommunicate OK [22:50:48]SAM_PROTO_GetShiftState done [22:50:48]FM_GetShiftState done [22:50:48]opened in 1712949271 [22:50:48]opened+sec_in_day 1713035671 [22:50:48]quantity*price = 35043 [22:50:48]sum+1 = 35045 [22:50:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 350.44 НСП 1% : 3.10 НДС 12% : 37.21 Наличными: 0.00 Безнал.: 350.44 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 57 12.04.2024 22:50 Смена: 114 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 28783 ФПД: 200420005039464 1/tax-web-control/client/api/v1/ticket?date=20240412T225050&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28783&fm=200420005039464&tin=02508201610067®Number=0000138879044617&sum=35044 [22:50:49]StoreToDocumentArchive [22:50:49]shift 114 fd 28783 [22:50:49]save to /storage/0114/doc_00028783 [22:50:49]save last doc name /storage/0114/doc_00028783 to /storage/kkm_last_doc_name [22:50:49]save OK [22:50:49]Clear old archive folders... [22:50:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:50:49]tlvbuf is 011C1C50 [22:50:49]SAM_PROTO_ClearQueue [22:50:49]wFMCommunicate request_size=4 [22:50:49]MH_SAM_APDU [22:50:49]CAPDU: 80 09 00 00 [22:50:49]Write to MH i2c: E2 08 00 1A 12 80 09 00 00 00 00 00 00 9E [22:50:49]Write i2c OK [22:50:49]MH_I2C_Read... [22:50:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:50:49]Read from MH i2c: E2 [22:50:49]MH_I2C_Read... [22:50:49]Read from MH i2c: E2 03 00 [22:50:49]MH_I2C_Read... [22:50:49]Read from MH i2c: E2 03 00 1A 12 00 90 00 A0 [22:50:49]RAPDU: 90 00 [22:50:49]wFMCommunicate OK [22:50:49]SAM_PROTO_ClearQueue done [22:50:49]KKMCreateOFDPacket [22:50:49]OFDProtocolAddRootSTLVToBuf [22:50:49]FM_MakeSignedData [22:50:49]FM_MakeSignedData [22:50:49]SAM_PROTO_SignData [22:50:49]wFMCommunicate request_size=4 [22:50:49]MH_SAM_APDU [22:50:49]CAPDU: 80 0D 01 02 [22:50:49]Write to MH i2c: E2 08 00 1B 12 80 0D 01 02 00 00 00 00 A6 [22:50:49]Write i2c OK [22:50:49]MH_I2C_Read... [22:50:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:50:49]Read from MH i2c: E2 [22:50:49]MH_I2C_Read... [22:50:49]Read from MH i2c: E2 03 00 [22:50:49]MH_I2C_Read... [22:50:49]Read from MH i2c: E2 03 00 1B 12 00 90 00 A1 [22:50:49]RAPDU: 90 00 [22:50:49]wFMCommunicate OK [22:50:49]wFMCommunicate request_size=255 [22:50:49]MH_SAM_APDU [22:50:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4A 15 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 E4 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 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 89 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E4 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 CA BA 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6F 70 00 00 35 04 06 00 B6 [22:50:49]Write to MH i2c: E2 02 01 1C 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4A 15 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 E4 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 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 89 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E4 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 CA BA 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6F 70 00 00 35 04 06 00 B6 00 00 B8 [22:50:49]Write i2c OK [22:50:49]MH_I2C_Read... [22:50:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:50:50]Read from MH i2c: E2 [22:50:50]MH_I2C_Read... [22:50:50]Read from MH i2c: E2 03 00 [22:50:50]MH_I2C_Read... [22:50:50]Read from MH i2c: E2 03 00 1C 12 00 90 00 A2 [22:50:50]RAPDU: 90 00 [22:50:50]wFMCommunicate OK [22:50:50]wFMCommunicate request_size=10 [22:50:50]MH_SAM_APDU [22:50:50]CAPDU: 80 0D 02 02 05 47 EB 34 CD 68 [22:50:50]Write to MH i2c: E2 0D 00 1D 12 80 0D 02 02 05 00 47 EB 34 CD 68 00 00 4E [22:50:50]Write i2c OK [22:50:50]MH_I2C_Read... [22:50:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:50:50]Read from MH i2c: E2 [22:50:50]MH_I2C_Read... [22:50:50]Read from MH i2c: E2 03 00 [22:50:50]MH_I2C_Read... [22:50:50]Read from MH i2c: E2 03 00 1D 12 00 90 00 A3 [22:50:50]RAPDU: 90 00 [22:50:50]wFMCommunicate OK [22:50:50]wFMCommunicate request_size=4 [22:50:50]MH_SAM_APDU [22:50:50]CAPDU: 80 0D 03 02 [22:50:50]Write to MH i2c: E2 08 00 1E 12 80 0D 03 02 00 00 00 00 AB [22:50:50]Write i2c OK [22:50:50]MH_I2C_Read... [22:50:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:50:50]Read from MH i2c: E2 [22:50:50]MH_I2C_Read... [22:50:50]Read from MH i2c: E2 0B 00 [22:50:50]MH_I2C_Read... [22:50:50]Read from MH i2c: E2 0B 00 1E 12 00 9D C8 CA 0F 6D 72 2A 0A 90 00 FD [22:50:50]RAPDU: 9D C8 CA 0F 6D 72 2A 0A 90 00 [22:50:50]wFMCommunicate OK [22:50:50]SAM_PROTO_SignData done [22:50:50]FM_MakeSignedData done [22:50:50]CreateOFDProtocolMessage [22:50:50]wFMCommunicate request_size=4 [22:50:50]MH_SAM_APDU [22:50:50]CAPDU: 80 11 00 00 [22:50:50]Write to MH i2c: E2 08 00 1F 12 80 11 00 00 00 00 00 00 AB [22:50:50]Write i2c OK [22:50:50]MH_I2C_Read... [22:50:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:50:50]Read from MH i2c: E2 [22:50:50]MH_I2C_Read... [22:50:50]Read from MH i2c: E2 17 00 [22:50:50]MH_I2C_Read... [22:50:50]Read from MH i2c: E2 17 00 1F 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 FA [22:50:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [22:50:50]wFMCommunicate OK [22:50:50]CreateOFDProtocolMessage done [22:50:50]OFDSenderStorePacket 28783 [22:50:50]StoreOFDPacket docnum=28783 [22:50:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 9E 8A 07 01 8B 6B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4A 15 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 E4 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 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 89 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E4 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 CA BA 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6F 70 00 00 35 04 06 00 B6 47 EB 34 CD 68 9D C8 CA 0F 6D 72 2A 0A [22:50:50]CheckFolder [22:50:50]dirname=/storage/ofd_packets [22:50:50]CheckFolder done [22:50:50]ProducePacketName [22:50:50]name=ofd_packets/00028783 [22:50:50]NVStorageSaveData ofd_packets/00028783 [22:50:50]File name is /storage/ofd_packets/00028783 [22:50:50]Write 301 bytes [22:50:50]NVStorageSaveData done [22:50:50]OFDSenderStorePacket done [22:50:50]KKMCreateOFDPacket done [22:50:50]NVStorageSaveData kkm_last_timestamp [22:50:50]File name is /storage/kkm_last_timestamp [22:50:50]Write 4 bytes [22:50:50]NVStorageSaveData done [22:50:50]ExternCall_PrintAddStr [22:50:50]wPrintStart [22:50:50]Write to MH i2c: 01 00 00 20 12 32 [22:50:50]Write i2c OK [22:50:50]MH_I2C_Read... [22:50:50]Read from MH i2c: 01 [22:50:50]MH_I2C_Read... [22:50:50]Read from MH i2c: 01 07 00 [22:50:50]MH_I2C_Read... [22:50:50]Read from MH i2c: 01 07 00 20 12 00 00 00 00 00 FF 0F 47 [22:50:50]RasterBufferAndPrint [22:50:50]line Счет N : (1)347129 [22:50:50]line ИНН: 02508201610067 [22:50:50]line Контрольно-Кассовый Чек [22:50:50]line ПРОДАЖА [22:50:50]line ТРК (МРК, ГНК) : 42 [22:50:50]line Товар: 2710124130 [22:50:50]line Аи-92-К-5 [22:50:50]line 5.450 * 64.30 [22:50:50]line = 350.44 [22:50:50]line НДС 12% НСП 1% [22:50:50]line > о реализуемом товаре [22:50:50]line ИТОГО: 350.44 [22:50:50]line НСП 1% : 3.10 [22:50:50]line НДС 12% : 37.21 [22:50:50]line Наличными: 0.00 [22:50:50]line Безнал.: 350.44 [22:50:50]line Место: АЗС № 108 "Партнер Нефть" [22:50:50]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [22:50:50]line СНО: Общий режим [22:50:50]line Чек 57 12.04.2024 22:50 [22:50:50]line Смена: 114 ФФД: 1.0 [22:50:50]line ЗНМ: 0300000027 [22:50:50]line РНМ: 0000138879044617 [22:50:50]line Версия ККМ: 001 [22:50:50]line Платежная система: АКБ Кыргызстан [22:50:50]line ФМ: 0000000000963154 [22:50:50]line ФД: 28783 [22:50:50]line ФПД: 200420005039464 [22:50:50]line 1/tax-web-control/client/api/v1/ticket?date=20240412T225050&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28783&fm=200420005039464&tin=02508201610067®Number=0000138879044617&sum=35044 [22:50:50]OFD Sender: Processing packet 28783 [packets to send 8, broken 7] [22:50:50]ProducePacketName [22:50:50]name=ofd_packets/00028783 [22:50:50]OFD Sender: To server: pG, [22:50:50]CommunicateWithHost lk.salyk.kg:30040 [22:50:50]ConnectInit lk.salyk.kg [22:50:50]written 0, free lines is 4095 [22:50:50]Connected sock=10 [22:50:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 9E 8A 07 01 8B 6B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4A 15 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 E4 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 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 89 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E4 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 CA BA 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6F 70 00 00 35 04 06 00 B6 47 EB 34 CD 68 9D C8 CA 0F 6D 72 2A 0A [22:50:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 1D F0 47 00 C5 01 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6F 70 00 00 F4 03 04 00 73 65 19 66 B6 04 01 00 00 F3 7F 55 A9 E5 B1 A8 A4 [22:50:50]CommunicateWithHost err = 0 [22:50:50]CheckOFDResponse [22:50:50]1017 (14) - 77093643461234 [22:50:50]1041 (16) - 0000000000963154 [22:50:50]1040 (4) - 28783 [22:50:50]1012 (4) - 12.04.2024 16:46 [22:50:50]1206 (1) - 0 [22:50:50]OFD Sender: Remove packet 28783 [22:50:50]ProducePacketName [22:50:50]name=ofd_packets/00028783 [22:50:50]NVStorageDeleteData [22:50:51]Write to MH i2c: 01 00 00 49 12 5B [22:50:51]Write i2c OK [22:50:51]MH_I2C_Read... [22:50:51]Read from MH i2c: 01 [22:50:51]MH_I2C_Read... [22:50:51]Read from MH i2c: 01 07 00 [22:50:51]MH_I2C_Read... [22:50:51]Read from MH i2c: 01 07 00 49 12 00 00 00 00 00 EF 0C 5D [22:50:51]RasterBufferAndPrint [22:50:51]line [22:50:51]line [22:50:51]line [22:50:51]line [22:50:51]line [22:50:51]written 0, free lines is 3317 [22:50:51]MH_Cut [22:50:51]Write to MH i2c: D1 01 00 50 12 01 34 [22:50:51]Write i2c OK [22:50:51]MH_I2C_Read... [22:50:51]Read from MH i2c: D1 [22:50:51]MH_I2C_Read... [22:50:51]Read from MH i2c: D1 01 00 [22:50:51]MH_I2C_Read... [22:50:51]Read from MH i2c: D1 01 00 50 12 00 33 [22:50:51]Write to MH i2c: 01 00 00 51 12 63 [22:50:51]Write i2c OK [22:50:51]MH_I2C_Read... [22:50:51]OFD Sender: No OFD packet to send [22:50:51]*** Cut start [22:50:51]*** Partial cut [22:50:51]*** CUTSNS_PIN = 1 [22:50:51]*** CUTSNS_PIN = 0 [22:50:52]*** Brake cut motor [22:50:52]Read from MH i2c: 01 [22:50:52]MH_I2C_Read... [22:50:52]*** Stop cut motor [22:50:52]*** Cut end [22:50:52]Read from MH i2c: 01 07 00 [22:50:52]MH_I2C_Read... [22:50:52]Read from MH i2c: 01 07 00 51 12 00 00 00 00 00 FF 0F 78 [22:50:52]process_action close_receipt done [22:50:52]requested_data is exist [22:50:52]produce_requested_data [22:50:52]requested_item fm.sn is exist - process it [22:50:52]wFMCommunicate request_size=4 [22:50:52]MH_SAM_APDU [22:50:52]CAPDU: 80 11 00 00 [22:50:52]Write to MH i2c: E2 08 00 52 12 80 11 00 00 00 00 00 00 DE [22:50:52]Write i2c OK [22:50:52]MH_I2C_Read... [22:50:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:50:52]Read from MH i2c: E2 [22:50:52]MH_I2C_Read... [22:50:52]Read from MH i2c: E2 17 00 [22:50:52]MH_I2C_Read... [22:50:52]Read from MH i2c: E2 17 00 52 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 2D [22:50:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [22:50:52]wFMCommunicate OK [22:50:52]requested_item fd.num is exist - process it [22:50:52]SAM_PROTO_GetFieldsCounters [22:50:52]wFMCommunicate request_size=4 [22:50:52]MH_SAM_APDU [22:50:52]CAPDU: 80 13 00 00 [22:50:52]Write to MH i2c: E2 08 00 53 12 80 13 00 00 00 00 00 00 E1 [22:50:52]Write i2c OK [22:50:52]MH_I2C_Read... [22:50:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:50:52]Read from MH i2c: E2 [22:50:52]MH_I2C_Read... [22:50:52]Read from MH i2c: E2 62 00 [22:50:52]MH_I2C_Read... [22:50:52]Read from MH i2c: E2 62 00 53 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 6F 70 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 1B [22:50:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 6F 70 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 [22:50:52]wFMCommunicate OK [22:50:52]SAM_PROTO_GetFieldsCounters done [22:50:52]requested_item shift.num is exist - process it [22:50:52]requested_item shift.opened is exist - process it [22:50:52]req_shift_opened [22:50:52]FM_GetShiftState [22:50:52]SAM_PROTO_GetShiftState [22:50:52]wFMCommunicate request_size=4 [22:50:52]MH_SAM_APDU [22:50:52]CAPDU: 80 13 01 00 [22:50:52]Write to MH i2c: E2 08 00 54 12 80 13 01 00 00 00 00 00 E3 [22:50:52]Write i2c OK [22:50:52]MH_I2C_Read... [22:50:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:50:52]Read from MH i2c: E2 [22:50:52]MH_I2C_Read... [22:50:52]Read from MH i2c: E2 0E 00 [22:50:52]MH_I2C_Read... [22:50:52]Read from MH i2c: E2 0E 00 54 12 00 09 00 01 17 88 19 66 00 00 00 00 90 00 0D [22:50:52]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [22:50:52]wFMCommunicate OK [22:50:52]SAM_PROTO_GetShiftState done [22:50:52]FM_GetShiftState done [22:50:52]req_shift_opened done [22:50:52]requested_item shift.open_date is exist - process it [22:50:52]req_shift_open_date [22:50:52]req_shift_open_date done [22:50:52]produce_requested_data done [22:50:52]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28783,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271} [22:50:52]process_action_free close_receipt [22:50:52]json_value_free [22:50:52]json_value_free done [22:50:52]process_json_proto returns [22:50:52]Send response to host [22:50:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28783,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271}}} [22:50:52]free response buf [22:50:52]execute_script done [22:50:52]execute_script returns [22:50:52]free content buf [22:50:52]Sock 7.Close socket [22:50:52]Sock 7.Thread stoped [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:20]accept exits with 9 [22:56:20]New connection [22:56:20]New thread 3066785124 created [22:56:20]Thread 3066928484 joined [22:56:20]Waiting for new connection... [22:56:20] Sock 9.Parse request [22:56:20]Sock 9.Check first char [22:56:20]Sock 9.First char is OK [22:56:20]request: POST /json_proto HTTP/1.0 [22:56:20]Method: POST [22:56:20]URL: /json_proto [22:56:20]Method is POST - this is cgi request [22:56:20]url: /json_proto [22:56:20]query_string will be loaded in cgi processing [22:56:20]execute_cgi json_proto POST (null) [22:56:20]execute_cgi path=json_proto method=POST [22:56:20]POST find Content-Length [22:56:20]Host: 172.17.33.3:8080 [22:56:20]Content-Length: 805 [22:56:20]Content-Type: application/json [22:56:20] [22:56:20]POST finish read [22:56:20]Found Content-Length = 805 [22:56:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347130", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 27.630, "sum" : 2000.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:56:20]execute_script... [22:56:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347130", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 27.630, "sum" : 2000.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:56:20]POST & json_proto [22:56:20]process_json_proto [22:56:20]json parsed OK: [22:56:20]protocol is kg_v1.0 [22:56:20]action value=close_receipt [22:56:20]process_action close_receipt [22:56:20]cmd_close_receipt [22:56:20]MH_GetDate [22:56:20]Write to MH i2c: F0 00 00 55 12 56 [22:56:20]Write i2c OK [22:56:20]MH_I2C_Read... [22:56:20]Read from MH i2c: F0 [22:56:20]MH_I2C_Read... [22:56:20]Read from MH i2c: F0 09 00 [22:56:20]MH_I2C_Read... [22:56:20]Read from MH i2c: F0 09 00 55 12 00 16 BC 19 66 23 5B 8F 65 22 [22:56:20]GetLastDocTimeStamp 1712962250 [22:56:20]current date 1712962582 [22:56:20]FM_GetShiftState [22:56:20]SAM_PROTO_GetShiftState [22:56:20]wFMCommunicate request_size=4 [22:56:20]MH_SAM_APDU [22:56:20]CAPDU: 80 13 01 00 [22:56:20]Write to MH i2c: E2 08 00 56 12 80 13 01 00 00 00 00 00 E5 [22:56:20]Write i2c OK [22:56:20]MH_I2C_Read... [22:56:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:56:20]Read from MH i2c: E2 [22:56:20]MH_I2C_Read... [22:56:20]Read from MH i2c: E2 0E 00 [22:56:20]MH_I2C_Read... [22:56:20]Read from MH i2c: E2 0E 00 56 12 00 09 00 01 17 88 19 66 00 00 00 00 90 00 0F [22:56:20]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [22:56:20]wFMCommunicate OK [22:56:20]SAM_PROTO_GetShiftState done [22:56:20]FM_GetShiftState done [22:56:20]opened in 1712949271 [22:56:20]opened+sec_in_day 1713035671 [22:56:20]quantity*price = 200041 [22:56:20]sum+1 = 200042 [22:56:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.41 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 0.00 Безнал.: 2000.41 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 58 12.04.2024 22:56 Смена: 114 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 28784 ФПД: 11362670285914 1/tax-web-control/client/api/v1/ticket?date=20240412T225622&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28784&fm=11362670285914&tin=02508201610067®Number=0000138879044617&sum=200041 [22:56:21]StoreToDocumentArchive [22:56:21]shift 114 fd 28784 [22:56:21]save to /storage/0114/doc_00028784 [22:56:21]save last doc name /storage/0114/doc_00028784 to /storage/kkm_last_doc_name [22:56:21]save OK [22:56:21]Clear old archive folders... [22:56:21]ProcessDocumentItem done err = 0, tmpTLVsize=248 [22:56:21]tlvbuf is 01206300 [22:56:21]SAM_PROTO_ClearQueue [22:56:21]wFMCommunicate request_size=4 [22:56:21]MH_SAM_APDU [22:56:21]CAPDU: 80 09 00 00 [22:56:21]Write to MH i2c: E2 08 00 63 12 80 09 00 00 00 00 00 00 E7 [22:56:21]Write i2c OK [22:56:21]MH_I2C_Read... [22:56:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:56:21]Read from MH i2c: E2 [22:56:21]MH_I2C_Read... [22:56:21]Read from MH i2c: E2 03 00 [22:56:21]MH_I2C_Read... [22:56:21]Read from MH i2c: E2 03 00 63 12 00 90 00 E9 [22:56:21]RAPDU: 90 00 [22:56:21]wFMCommunicate OK [22:56:21]SAM_PROTO_ClearQueue done [22:56:21]KKMCreateOFDPacket [22:56:21]OFDProtocolAddRootSTLVToBuf [22:56:21]FM_MakeSignedData [22:56:21]FM_MakeSignedData [22:56:21]SAM_PROTO_SignData [22:56:21]wFMCommunicate request_size=4 [22:56:21]MH_SAM_APDU [22:56:21]CAPDU: 80 0D 01 02 [22:56:21]Write to MH i2c: E2 08 00 64 12 80 0D 01 02 00 00 00 00 EF [22:56:21]Write i2c OK [22:56:21]MH_I2C_Read... [22:56:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:56:21]Read from MH i2c: E2 [22:56:21]MH_I2C_Read... [22:56:21]Read from MH i2c: E2 03 00 [22:56:21]MH_I2C_Read... [22:56:21]Read from MH i2c: E2 03 00 64 12 00 90 00 EA [22:56:21]RAPDU: 90 00 [22:56:21]wFMCommunicate OK [22:56:21]wFMCommunicate request_size=255 [22:56:21]MH_SAM_APDU [22:56: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 35 FF 03 08 00 03 EE 6B 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 69 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 69 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 16 BC 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 70 70 00 00 35 04 06 00 0A 55 93 ED [22:56:21]Write to MH i2c: E2 02 01 65 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 35 FF 03 08 00 03 EE 6B 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 69 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 69 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 16 BC 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 70 70 00 00 35 04 06 00 0A 55 93 ED 00 00 8A [22:56:21]Write i2c OK [22:56:21]MH_I2C_Read... [22:56:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:56:22]Read from MH i2c: E2 [22:56:22]MH_I2C_Read... [22:56:22]Read from MH i2c: E2 03 00 [22:56:22]MH_I2C_Read... [22:56:22]Read from MH i2c: E2 03 00 65 12 00 90 00 EB [22:56:22]RAPDU: 90 00 [22:56:22]wFMCommunicate OK [22:56:22]wFMCommunicate request_size=7 [22:56:22]MH_SAM_APDU [22:56:22]CAPDU: 80 0D 02 02 02 14 5A [22:56:22]Write to MH i2c: E2 0A 00 66 12 80 0D 02 02 02 00 14 5A 00 00 64 [22:56:22]Write i2c OK [22:56:22]MH_I2C_Read... [22:56:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:56:22]Read from MH i2c: E2 [22:56:22]MH_I2C_Read... [22:56:22]Read from MH i2c: E2 03 00 [22:56:22]MH_I2C_Read... [22:56:22]Read from MH i2c: E2 03 00 66 12 00 90 00 EC [22:56:22]RAPDU: 90 00 [22:56:22]wFMCommunicate OK [22:56:22]wFMCommunicate request_size=4 [22:56:22]MH_SAM_APDU [22:56:22]CAPDU: 80 0D 03 02 [22:56:22]Write to MH i2c: E2 08 00 67 12 80 0D 03 02 00 00 00 00 F4 [22:56:22]Write i2c OK [22:56:22]MH_I2C_Read... [22:56:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:56:22]Read from MH i2c: E2 [22:56:22]MH_I2C_Read... [22:56:22]Read from MH i2c: E2 0B 00 [22:56:22]MH_I2C_Read... [22:56:22]Read from MH i2c: E2 0B 00 67 12 00 31 42 12 CB D0 BD E5 72 90 00 29 [22:56:22]RAPDU: 31 42 12 CB D0 BD E5 72 90 00 [22:56:22]wFMCommunicate OK [22:56:22]SAM_PROTO_SignData done [22:56:22]FM_MakeSignedData done [22:56:22]CreateOFDProtocolMessage [22:56:22]wFMCommunicate request_size=4 [22:56:22]MH_SAM_APDU [22:56:22]CAPDU: 80 11 00 00 [22:56:22]Write to MH i2c: E2 08 00 68 12 80 11 00 00 00 00 00 00 F4 [22:56:22]Write i2c OK [22:56:22]MH_I2C_Read... [22:56:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:56:22]Read from MH i2c: E2 [22:56:22]MH_I2C_Read... [22:56:22]Read from MH i2c: E2 17 00 [22:56:22]MH_I2C_Read... [22:56:22]Read from MH i2c: E2 17 00 68 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 43 [22:56:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [22:56:22]wFMCommunicate OK [22:56:22]CreateOFDProtocolMessage done [22:56:22]OFDSenderStorePacket 28784 [22:56:22]StoreOFDPacket docnum=28784 [22:56:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 A9 BE 04 01 78 C7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EE 6B 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 69 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 69 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 16 BC 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 70 70 00 00 35 04 06 00 0A 55 93 ED 14 5A 31 42 12 CB D0 BD E5 72 [22:56:22]CheckFolder [22:56:22]dirname=/storage/ofd_packets [22:56:22]CheckFolder done [22:56:22]ProducePacketName [22:56:22]name=ofd_packets/00028784 [22:56:22]NVStorageSaveData ofd_packets/00028784 [22:56:22]File name is /storage/ofd_packets/00028784 [22:56:22]Write 298 bytes [22:56:22]NVStorageSaveData done [22:56:22]OFDSenderStorePacket done [22:56:22]KKMCreateOFDPacket done [22:56:22]NVStorageSaveData kkm_last_timestamp [22:56:22]File name is /storage/kkm_last_timestamp [22:56:22]Write 4 bytes [22:56:22]NVStorageSaveData done [22:56:22]ExternCall_PrintAddStr [22:56:22]wPrintStart [22:56:22]Write to MH i2c: 01 00 00 69 12 7B [22:56:22]Write i2c OK [22:56:22]MH_I2C_Read... [22:56:22]Read from MH i2c: 01 [22:56:22]MH_I2C_Read... [22:56:22]Read from MH i2c: 01 07 00 [22:56:22]MH_I2C_Read... [22:56:22]Read from MH i2c: 01 07 00 69 12 00 00 00 00 00 FF 0F 90 [22:56:22]RasterBufferAndPrint [22:56:22]line Счет N : (1)347130 [22:56:22]line ИНН: 02508201610067 [22:56:22]line Контрольно-Кассовый Чек [22:56:22]line ПРОДАЖА [22:56:22]line ТРК (МРК, ГНК) : 11 [22:56:22]line Товар: 2710194210 [22:56:22]line ДТ-К-5 [22:56:22]line 27.630 * 72.40 [22:56:22]line = 2000.41 [22:56:22]line НДС 12% НСП 1% [22:56:22]line > о реализуемом товаре [22:56:22]line ИТОГО: 2000.41 [22:56:22]line НСП 1% : 17.70 [22:56:22]line НДС 12% : 212.43 [22:56:22]line Наличными: 0.00 [22:56:22]line Безнал.: 2000.41 [22:56:22]line Место: АЗС № 108 "Партнер Нефть" [22:56:22]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [22:56:22]line СНО: Общий режим [22:56:22]line Чек 58 12.04.2024 22:56 [22:56:22]line Смена: 114 ФФД: 1.0 [22:56:22]line ЗНМ: 0300000027 [22:56:22]line РНМ: 0000138879044617 [22:56:22]line Версия ККМ: 001 [22:56:22]line Платежная система: О! деньги [22:56:22]line ФМ: 0000000000963154 [22:56:22]line ФД: 28784 [22:56:22]line ФПД: 11362670285914 [22:56:22]line 1/tax-web-control/client/api/v1/ticket?date=20240412T225622&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28784&fm=11362670285914&tin=02508201610067®Number=0000138879044617&sum=200041 [22:56:22]OFD Sender: Processing packet 28784 [packets to send 8, broken 7] [22:56:22]ProducePacketName [22:56:22]name=ofd_packets/00028784 [22:56:22]OFD Sender: To server: pG, [22:56:22]CommunicateWithHost lk.salyk.kg:30040 [22:56:22]ConnectInit lk.salyk.kg [22:56:22]written 0, free lines is 4095 [22:56:22]Connected sock=10 [22:56:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 A9 BE 04 01 78 C7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EE 6B 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 69 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 69 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 16 BC 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 70 70 00 00 35 04 06 00 0A 55 93 ED 14 5A 31 42 12 CB D0 BD E5 72 [22:56:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 74 2B 47 00 54 E5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 70 70 00 00 F4 03 04 00 BF 66 19 66 B6 04 01 00 00 DF BC D7 9C A5 2C EE 64 [22:56:22]CommunicateWithHost err = 0 [22:56:22]CheckOFDResponse [22:56:22]1017 (14) - 77093643461234 [22:56:22]1041 (16) - 0000000000963154 [22:56:22]1040 (4) - 28784 [22:56:22]1012 (4) - 12.04.2024 16:52 [22:56:22]1206 (1) - 0 [22:56:22]OFD Sender: Remove packet 28784 [22:56:22]ProducePacketName [22:56:22]name=ofd_packets/00028784 [22:56:22]NVStorageDeleteData [22:56:23]Write to MH i2c: 01 00 00 92 12 A4 [22:56:23]Write i2c OK [22:56:23]MH_I2C_Read... [22:56:23]Read from MH i2c: 01 [22:56:23]MH_I2C_Read... [22:56:23]Read from MH i2c: 01 07 00 [22:56:23]MH_I2C_Read... [22:56:23]Read from MH i2c: 01 07 00 92 12 00 00 00 00 00 E7 0C 9E [22:56:23]RasterBufferAndPrint [22:56:23]line [22:56:23]line [22:56:23]line [22:56:23]line [22:56:23]line [22:56:23]written 0, free lines is 3309 [22:56:23]MH_Cut [22:56:23]Write to MH i2c: D1 01 00 99 12 01 7D [22:56:23]Write i2c OK [22:56:23]MH_I2C_Read... [22:56:23]Read from MH i2c: D1 [22:56:23]MH_I2C_Read... [22:56:23]Read from MH i2c: D1 01 00 [22:56:23]MH_I2C_Read... [22:56:23]Read from MH i2c: D1 01 00 99 12 00 7C [22:56:23]Write to MH i2c: 01 00 00 9A 12 AC [22:56:23]Write i2c OK [22:56:23]MH_I2C_Read... [22:56:23]OFD Sender: No OFD packet to send [22:56:23]*** Cut start [22:56:23]*** Partial cut [22:56:23]*** CUTSNS_PIN = 1 [22:56:23]*** CUTSNS_PIN = 0 [22:56:24]*** Brake cut motor [22:56:24]Read from MH i2c: 01 [22:56:24]MH_I2C_Read... [22:56:24]*** Stop cut motor [22:56:24]*** Cut end [22:56:24]Read from MH i2c: 01 07 00 [22:56:24]MH_I2C_Read... [22:56:24]Read from MH i2c: 01 07 00 9A 12 00 00 00 00 00 FF 0F C1 [22:56:24]process_action close_receipt done [22:56:24]requested_data is exist [22:56:24]produce_requested_data [22:56:24]requested_item fm.sn is exist - process it [22:56:24]wFMCommunicate request_size=4 [22:56:24]MH_SAM_APDU [22:56:24]CAPDU: 80 11 00 00 [22:56:24]Write to MH i2c: E2 08 00 9B 12 80 11 00 00 00 00 00 00 27 [22:56:24]Write i2c OK [22:56:24]MH_I2C_Read... [22:56:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:56:24]Read from MH i2c: E2 [22:56:24]MH_I2C_Read... [22:56:24]Read from MH i2c: E2 17 00 [22:56:24]MH_I2C_Read... [22:56:24]Read from MH i2c: E2 17 00 9B 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 76 [22:56:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [22:56:24]wFMCommunicate OK [22:56:24]requested_item fd.num is exist - process it [22:56:24]SAM_PROTO_GetFieldsCounters [22:56:24]wFMCommunicate request_size=4 [22:56:24]MH_SAM_APDU [22:56:24]CAPDU: 80 13 00 00 [22:56:24]Write to MH i2c: E2 08 00 9C 12 80 13 00 00 00 00 00 00 2A [22:56:24]Write i2c OK [22:56:24]MH_I2C_Read... [22:56:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:56:24]Read from MH i2c: E2 [22:56:24]MH_I2C_Read... [22:56:24]Read from MH i2c: E2 62 00 [22:56:24]MH_I2C_Read... [22:56:24]Read from MH i2c: E2 62 00 9C 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 70 70 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 68 [22:56:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 70 70 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 [22:56:24]wFMCommunicate OK [22:56:24]SAM_PROTO_GetFieldsCounters done [22:56:24]requested_item shift.num is exist - process it [22:56:24]requested_item shift.opened is exist - process it [22:56:24]req_shift_opened [22:56:24]FM_GetShiftState [22:56:24]SAM_PROTO_GetShiftState [22:56:24]wFMCommunicate request_size=4 [22:56:24]MH_SAM_APDU [22:56:24]CAPDU: 80 13 01 00 [22:56:24]Write to MH i2c: E2 08 00 9D 12 80 13 01 00 00 00 00 00 2C [22:56:24]Write i2c OK [22:56:24]MH_I2C_Read... [22:56:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:56:24]Read from MH i2c: E2 [22:56:24]MH_I2C_Read... [22:56:24]Read from MH i2c: E2 0E 00 [22:56:24]MH_I2C_Read... [22:56:24]Read from MH i2c: E2 0E 00 9D 12 00 09 00 01 17 88 19 66 00 00 00 00 90 00 56 [22:56:24]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [22:56:24]wFMCommunicate OK [22:56:24]SAM_PROTO_GetShiftState done [22:56:24]FM_GetShiftState done [22:56:24]req_shift_opened done [22:56:24]requested_item shift.open_date is exist - process it [22:56:24]req_shift_open_date [22:56:24]req_shift_open_date done [22:56:24]produce_requested_data done [22:56:24]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28784,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271} [22:56:24]process_action_free close_receipt [22:56:24]json_value_free [22:56:24]json_value_free done [22:56:24]process_json_proto returns [22:56:24]Send response to host [22:56:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28784,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271}}} [22:56:24]free response buf [22:56:24]execute_script done [22:56:24]execute_script returns [22:56:24]free content buf [22:56:24]Sock 9.Close socket [22:56:24]Sock 9.Thread stoped [22:56:28]OFD Sender: No OFD packet to send [22:56:33]OFD Sender: No OFD packet to send [22:56:38]OFD Sender: No OFD packet to send [22:56:43]OFD Sender: No OFD packet to send [22:56:48]OFD Sender: No OFD packet to send [22:56:53]OFD Sender: No OFD packet to send [22:56:58]OFD Sender: No OFD packet to send [22:57:03]OFD Sender: No OFD packet to send [22:57:08]OFD Sender: No OFD packet to send [22:57:13]OFD Sender: No OFD packet to send [22:57:18]OFD Sender: No OFD packet to send [22:57:23]OFD Sender: No OFD packet to send [22:57:28]OFD Sender: No OFD packet to send [22:57:33]OFD Sender: No OFD packet to send [22:57:38]OFD Sender: No OFD packet to send [22:57:43]OFD Sender: No OFD packet to send [22:57:48]OFD Sender: No OFD packet to send [22:57:53]OFD Sender: No OFD packet to send [22:57:58]OFD Sender: No OFD packet to send [22:58:03]OFD Sender: No OFD packet to send [22:58:08]OFD Sender: No OFD packet to send [22:58:13]OFD Sender: No OFD packet to send [22:58:18]OFD Sender: No OFD packet to send [22:58:23]OFD Sender: No OFD packet to send [22:58:28]OFD Sender: No OFD packet to send [22:58:33]OFD Sender: No OFD packet to send [22:58:38]OFD Sender: No OFD packet to send [22:58:43]OFD Sender: No OFD packet to send [22:58:48]OFD Sender: No OFD packet to send [22:58:53]OFD Sender: No OFD packet to send [22:58:58]OFD Sender: No OFD packet to send [22:59:03]OFD Sender: No OFD packet to send [22:59:08]OFD Sender: No OFD packet to send [22:59:13]OFD Sender: No OFD packet to send [22:59:18]OFD Sender: No OFD packet to send [22:59:23]OFD Sender: No OFD packet to send [22:59:28]OFD Sender: No OFD packet to send [22:59:33]OFD Sender: No OFD packet to send [22:59:38]OFD Sender: No OFD packet to send [22:59:43]OFD Sender: No OFD packet to send [22:59:48]OFD Sender: No OFD packet to send [22:59:53]OFD Sender: No OFD packet to send [22:59:58]OFD Sender: No OFD packet to send [23:00:03]OFD Sender: No OFD packet to send [23:00:08]OFD Sender: No OFD packet to send [23:00:13]OFD Sender: No OFD packet to send [23:00:18]OFD Sender: No OFD packet to send [23:00:23]OFD Sender: No OFD packet to send [23:00:28]OFD Sender: No OFD packet to send [23:00:33]OFD Sender: No OFD packet to send [23:00:38]OFD Sender: No OFD packet to send [23:00:43]OFD Sender: No OFD packet to send [23:00:48]OFD Sender: No OFD packet to send [23:00:53]OFD Sender: No OFD packet to send [23:00:58]OFD Sender: No OFD packet to send [23:01:03]OFD Sender: No OFD packet to send [23:01:08]OFD Sender: No OFD packet to send [23:01:13]OFD Sender: No OFD packet to send [23:01:18]OFD Sender: No OFD packet to send [23:01:23]OFD Sender: No OFD packet to send [23:01:28]OFD Sender: No OFD packet to send [23:01:33]OFD Sender: No OFD packet to send [23:01:38]OFD Sender: No OFD packet to send [23:01:43]OFD Sender: No OFD packet to send [23:01:48]OFD Sender: No OFD packet to send [23:01:53]OFD Sender: No OFD packet to send [23:01:58]OFD Sender: No OFD packet to send [23:02:03]OFD Sender: No OFD packet to send [23:02:08]OFD Sender: No OFD packet to send [23:02:13]OFD Sender: No OFD packet to send [23:02:18]OFD Sender: No OFD packet to send [23:02:23]OFD Sender: No OFD packet to send [23:02:28]OFD Sender: No OFD packet to send [23:02:33]OFD Sender: No OFD packet to send [23:02:38]OFD Sender: No OFD packet to send [23:02:43]OFD Sender: No OFD packet to send [23:02:48]OFD Sender: No OFD packet to send [23:02:53]OFD Sender: No OFD packet to send [23:02:58]OFD Sender: No OFD packet to send [23:03:03]OFD Sender: No OFD packet to send [23:03:08]OFD Sender: No OFD packet to send [23:03:13]OFD Sender: No OFD packet to send [23:03:18]OFD Sender: No OFD packet to send [23:03:23]OFD Sender: No OFD packet to send [23:03:28]OFD Sender: No OFD packet to send [23:03:33]OFD Sender: No OFD packet to send [23:03:38]OFD Sender: No OFD packet to send [23:03:43]OFD Sender: No OFD packet to send [23:03:48]OFD Sender: No OFD packet to send [23:03:53]OFD Sender: No OFD packet to send [23:03:58]OFD Sender: No OFD packet to send [23:04:03]OFD Sender: No OFD packet to send [23:04:08]OFD Sender: No OFD packet to send [23:04:13]OFD Sender: No OFD packet to send [23:04:18]OFD Sender: No OFD packet to send [23:04:23]OFD Sender: No OFD packet to send [23:04:28]OFD Sender: No OFD packet to send [23:04:33]OFD Sender: No OFD packet to send [23:04:38]OFD Sender: No OFD packet to send [23:04:43]OFD Sender: No OFD packet to send [23:04:48]OFD Sender: No OFD packet to send [23:04:53]OFD Sender: No OFD packet to send [23:04:58]OFD Sender: No OFD packet to send [23:05:03]OFD Sender: No OFD packet to send [23:05:08]OFD Sender: No OFD packet to send [23:05:13]OFD Sender: No OFD packet to send [23:05:18]OFD Sender: No OFD packet to send [23:05:23]OFD Sender: No OFD packet to send [23:05:28]OFD Sender: No OFD packet to send [23:05:33]OFD Sender: No OFD packet to send [23:05:38]OFD Sender: No OFD packet to send [23:05:43]OFD Sender: No OFD packet to send [23:05:48]OFD Sender: No OFD packet to send [23:05:51]accept exits with 7 [23:05:51]New connection [23:05:51]New thread 3066928484 created [23:05:51]Thread 3066785124 joined [23:05:51]Waiting for new connection... [23:05:51] Sock 7.Parse request [23:05:51]Sock 7.Check first char [23:05:51]Sock 7.First char is OK [23:05:51]request: POST /json_proto HTTP/1.0 [23:05:51]Method: POST [23:05:51]URL: /json_proto [23:05:51]Method is POST - this is cgi request [23:05:51]url: /json_proto [23:05:51]query_string will be loaded in cgi processing [23:05:51]execute_cgi json_proto POST (null) [23:05:51]execute_cgi path=json_proto method=POST [23:05:51]POST find Content-Length [23:05:51]Host: 172.17.33.3:8080 [23:05:51]Content-Length: 840 [23:05:51]Content-Type: application/json [23:05:51] [23:05:51]POST finish read [23:05:51]Found Content-Length = 840 [23:05:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347131", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 13.820, "sum" : 1000.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:05:51]execute_script... [23: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)347131", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 13.820, "sum" : 1000.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:05:51]POST & json_proto [23:05:51]process_json_proto [23:05:51]json parsed OK: [23:05:51]protocol is kg_v1.0 [23:05:51]action value=close_receipt [23:05:51]process_action close_receipt [23:05:51]cmd_close_receipt [23:05:51]MH_GetDate [23:05:51]Write to MH i2c: F0 00 00 9E 12 9F [23:05:51]Write i2c OK [23:05:51]MH_I2C_Read... [23:05:51]Read from MH i2c: F0 [23:05:51]MH_I2C_Read... [23:05:51]Read from MH i2c: F0 09 00 [23:05:51]MH_I2C_Read... [23:05:51]Read from MH i2c: F0 09 00 9E 12 00 51 BE 19 66 23 5B 8F 65 A8 [23:05:51]GetLastDocTimeStamp 1712962582 [23:05:51]current date 1712963153 [23:05:51]FM_GetShiftState [23:05:51]SAM_PROTO_GetShiftState [23:05:51]wFMCommunicate request_size=4 [23:05:51]MH_SAM_APDU [23:05:51]CAPDU: 80 13 01 00 [23:05:51]Write to MH i2c: E2 08 00 9F 12 80 13 01 00 00 00 00 00 2E [23:05:51]Write i2c OK [23:05:51]MH_I2C_Read... [23:05:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:05:52]Read from MH i2c: E2 [23:05:52]MH_I2C_Read... [23:05:52]Read from MH i2c: E2 0E 00 [23:05:52]MH_I2C_Read... [23:05:52]Read from MH i2c: E2 0E 00 9F 12 00 09 00 01 17 88 19 66 00 00 00 00 90 00 58 [23:05:52]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [23:05:52]wFMCommunicate OK [23:05:52]SAM_PROTO_GetShiftState done [23:05:52]FM_GetShiftState done [23:05:52]opened in 1712949271 [23:05:52]opened+sec_in_day 1713035671 [23:05:52]quantity*price = 100056 [23:05:52]sum+1 = 100058 [23:05:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.57 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.57 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 59 12.04.2024 23:05 Смена: 114 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 28785 ФПД: 172717107516518 1/tax-web-control/client/api/v1/ticket?date=20240412T230553&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28785&fm=172717107516518&tin=02508201610067®Number=0000138879044617&sum=100057 [23:05:53]StoreToDocumentArchive [23:05:53]shift 114 fd 28785 [23:05:53]save to /storage/0114/doc_00028785 [23:05:53]save last doc name /storage/0114/doc_00028785 to /storage/kkm_last_doc_name [23:05:53]save OK [23:05:53]Clear old archive folders... [23:05:53]ProcessDocumentItem done err = 0, tmpTLVsize=248 [23:05:53]tlvbuf is 011DC550 [23:05:53]SAM_PROTO_ClearQueue [23:05:53]wFMCommunicate request_size=4 [23:05:53]MH_SAM_APDU [23:05:53]CAPDU: 80 09 00 00 [23:05:53]Write to MH i2c: E2 08 00 AC 12 80 09 00 00 00 00 00 00 30 [23:05:53]Write i2c OK [23:05:53]MH_I2C_Read... [23:05:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:05:53]Read from MH i2c: E2 [23:05:53]MH_I2C_Read... [23:05:53]Read from MH i2c: E2 03 00 [23:05:53]MH_I2C_Read... [23:05:53]Read from MH i2c: E2 03 00 AC 12 00 90 00 32 [23:05:53]RAPDU: 90 00 [23:05:53]wFMCommunicate OK [23:05:53]SAM_PROTO_ClearQueue done [23:05:53]KKMCreateOFDPacket [23:05:53]OFDProtocolAddRootSTLVToBuf [23:05:53]FM_MakeSignedData [23:05:53]FM_MakeSignedData [23:05:53]SAM_PROTO_SignData [23:05:53]wFMCommunicate request_size=4 [23:05:53]MH_SAM_APDU [23:05:53]CAPDU: 80 0D 01 02 [23:05:53]Write to MH i2c: E2 08 00 AD 12 80 0D 01 02 00 00 00 00 38 [23:05:53]Write i2c OK [23:05:53]MH_I2C_Read... [23:05:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:05:53]Read from MH i2c: E2 [23:05:53]MH_I2C_Read... [23:05:53]Read from MH i2c: E2 03 00 [23:05:53]MH_I2C_Read... [23:05:53]Read from MH i2c: E2 03 00 AD 12 00 90 00 33 [23:05:53]RAPDU: 90 00 [23:05:53]wFMCommunicate OK [23:05:53]wFMCommunicate request_size=255 [23:05:53]MH_SAM_APDU [23:05:53]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FC 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D9 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D9 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 D9 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 51 BE 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 71 70 00 00 35 04 06 00 9D 15 D5 D7 [23:05:53]Write to MH i2c: E2 02 01 AE 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 35 FF 03 08 00 03 FC 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D9 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D9 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 D9 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 51 BE 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 71 70 00 00 35 04 06 00 9D 15 D5 D7 00 00 03 [23:05:53]Write i2c OK [23:05:53]MH_I2C_Read... [23:05:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:05:53]Read from MH i2c: E2 [23:05:53]MH_I2C_Read... [23:05:53]Read from MH i2c: E2 03 00 [23:05:53]MH_I2C_Read... [23:05:53]Read from MH i2c: E2 03 00 AE 12 00 90 00 34 [23:05:53]RAPDU: 90 00 [23:05:53]wFMCommunicate OK [23:05:53]wFMCommunicate request_size=7 [23:05:53]MH_SAM_APDU [23:05:53]CAPDU: 80 0D 02 02 02 14 66 [23:05:53]Write to MH i2c: E2 0A 00 AF 12 80 0D 02 02 02 00 14 66 00 00 B9 [23:05:53]Write i2c OK [23:05:53]MH_I2C_Read... [23:05:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:05:53]Read from MH i2c: E2 [23:05:53]MH_I2C_Read... [23:05:53]Read from MH i2c: E2 03 00 [23:05:53]MH_I2C_Read... [23:05:53]Read from MH i2c: E2 03 00 AF 12 00 90 00 35 [23:05:53]RAPDU: 90 00 [23:05:53]wFMCommunicate OK [23:05:53]wFMCommunicate request_size=4 [23:05:53]MH_SAM_APDU [23:05:53]CAPDU: 80 0D 03 02 [23:05:53]Write to MH i2c: E2 08 00 B0 12 80 0D 03 02 00 00 00 00 3D [23:05:53]Write i2c OK [23:05:53]MH_I2C_Read... [23:05:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:05:53]Read from MH i2c: E2 [23:05:53]MH_I2C_Read... [23:05:53]Read from MH i2c: E2 0B 00 [23:05:53]MH_I2C_Read... [23:05:53]Read from MH i2c: E2 0B 00 B0 12 00 FD 9B E6 C3 71 F0 DE 40 90 00 FE [23:05:53]RAPDU: FD 9B E6 C3 71 F0 DE 40 90 00 [23:05:53]wFMCommunicate OK [23:05:53]SAM_PROTO_SignData done [23:05:53]FM_MakeSignedData done [23:05:53]CreateOFDProtocolMessage [23:05:53]wFMCommunicate request_size=4 [23:05:53]MH_SAM_APDU [23:05:53]CAPDU: 80 11 00 00 [23:05:53]Write to MH i2c: E2 08 00 B1 12 80 11 00 00 00 00 00 00 3D [23:05:53]Write i2c OK [23:05:53]MH_I2C_Read... [23:05:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:05:53]Read from MH i2c: E2 [23:05:53]MH_I2C_Read... [23:05:53]Read from MH i2c: E2 17 00 [23:05:53]MH_I2C_Read... [23:05:53]Read from MH i2c: E2 17 00 B1 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 8C [23:05:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [23:05:53]wFMCommunicate OK [23:05:53]CreateOFDProtocolMessage done [23:05:53]OFDSenderStorePacket 28785 [23:05:53]StoreOFDPacket docnum=28785 [23:05:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 60 C9 04 01 E5 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 35 FF 03 08 00 03 FC 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D9 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D9 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 D9 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 51 BE 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 71 70 00 00 35 04 06 00 9D 15 D5 D7 14 66 FD 9B E6 C3 71 F0 DE 40 [23:05:53]CheckFolder [23:05:53]dirname=/storage/ofd_packets [23:05:53]CheckFolder done [23:05:53]ProducePacketName [23:05:53]name=ofd_packets/00028785 [23:05:53]NVStorageSaveData ofd_packets/00028785 [23:05:53]File name is /storage/ofd_packets/00028785 [23:05:53]Write 298 bytes [23:05:53]NVStorageSaveData done [23:05:53]OFDSenderStorePacket done [23:05:53]KKMCreateOFDPacket done [23:05:53]NVStorageSaveData kkm_last_timestamp [23:05:53]File name is /storage/kkm_last_timestamp [23:05:53]Write 4 bytes [23:05:53]NVStorageSaveData done [23:05:53]ExternCall_PrintAddStr [23:05:53]wPrintStart [23:05:53]Write to MH i2c: 01 00 00 B2 12 C4 [23:05:53]Write i2c OK [23:05:53]MH_I2C_Read... [23:05:53]Read from MH i2c: 01 [23:05:53]MH_I2C_Read... [23:05:53]Read from MH i2c: 01 07 00 [23:05:53]MH_I2C_Read... [23:05:53]Read from MH i2c: 01 07 00 B2 12 00 00 00 00 00 FF 0F D9 [23:05:53]RasterBufferAndPrint [23:05:53]line Счет N : (1)347131 [23:05:53]line ИНН: 02508201610067 [23:05:53]line Контрольно-Кассовый Чек [23:05:53]line ПРОДАЖА [23:05:53]line ТРК (МРК, ГНК) : 11 [23:05:53]line Товар: 2710194210 [23:05:53]line ДТ-К-5 [23:05:53]line 13.820 * 72.40 [23:05:53]line = 1000.57 [23:05:53]line НДС 12% НСП 1% [23:05:53]line > о реализуемом товаре [23:05:53]line ИТОГО: 1000.57 [23:05:53]line НСП 1% : 8.85 [23:05:53]line НДС 12% : 106.25 [23:05:53]line Наличными: 0.00 [23:05:53]line Безнал.: 1000.57 [23:05:53]line Место: АЗС № 108 "Партнер Нефть" [23:05:53]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [23:05:53]line СНО: Общий режим [23:05:53]line Чек 59 12.04.2024 23:05 [23:05:53]line Смена: 114 ФФД: 1.0 [23:05:53]line ЗНМ: 0300000027 [23:05:53]line РНМ: 0000138879044617 [23:05:53]line Версия ККМ: 001 [23:05:53]line Платежная система: АКБ Кыргызстан [23:05:53]line ФМ: 0000000000963154 [23:05:53]line ФД: 28785 [23:05:53]line ФПД: 172717107516518 [23:05:53]line 1/tax-web-control/client/api/v1/ticket?date=20240412T230553&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28785&fm=172717107516518&tin=02508201610067®Number=0000138879044617&sum=100057 [23:05:53]OFD Sender: Processing packet 28785 [packets to send 8, broken 7] [23:05:53]ProducePacketName [23:05:53]name=ofd_packets/00028785 [23:05:53]OFD Sender: To server: pG, [23:05:53]CommunicateWithHost lk.salyk.kg:30040 [23:05:53]ConnectInit lk.salyk.kg [23:05:53]written 0, free lines is 4095 [23:05:54]Connected sock=10 [23:05:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 60 C9 04 01 E5 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 35 FF 03 08 00 03 FC 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D9 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D9 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 D9 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 51 BE 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 71 70 00 00 35 04 06 00 9D 15 D5 D7 14 66 FD 9B E6 C3 71 F0 DE 40 [23:05:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 8B 6C 47 00 0A CF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 71 70 00 00 F4 03 04 00 FA 68 19 66 B6 04 01 00 00 AD CD 82 97 9E 80 6F B1 [23:05:54]CommunicateWithHost err = 0 [23:05:54]CheckOFDResponse [23:05:54]1017 (14) - 77093643461234 [23:05:54]1041 (16) - 0000000000963154 [23:05:54]1040 (4) - 28785 [23:05:54]1012 (4) - 12.04.2024 17:01 [23:05:54]1206 (1) - 0 [23:05:54]OFD Sender: Remove packet 28785 [23:05:54]ProducePacketName [23:05:54]name=ofd_packets/00028785 [23:05:54]NVStorageDeleteData [23:05:54]Write to MH i2c: 01 00 00 DB 12 ED [23:05:54]Write i2c OK [23:05:54]MH_I2C_Read... [23:05:54]Read from MH i2c: 01 [23:05:54]MH_I2C_Read... [23:05:54]Read from MH i2c: 01 07 00 [23:05:54]MH_I2C_Read... [23:05:54]Read from MH i2c: 01 07 00 DB 12 00 00 00 00 00 D6 0C D6 [23:05:54]RasterBufferAndPrint [23:05:54]line [23:05:54]line [23:05:54]line [23:05:54]line [23:05:54]line [23:05:54]written 0, free lines is 3292 [23:05:54]MH_Cut [23:05:54]Write to MH i2c: D1 01 00 E2 12 01 C6 [23:05:54]Write i2c OK [23:05:54]MH_I2C_Read... [23:05:54]Read from MH i2c: D1 [23:05:54]MH_I2C_Read... [23:05:54]Read from MH i2c: D1 01 00 [23:05:54]MH_I2C_Read... [23:05:54]Read from MH i2c: D1 01 00 E2 12 00 C5 [23:05:54]Write to MH i2c: 01 00 00 E3 12 F5 [23:05:54]Write i2c OK [23:05:54]MH_I2C_Read... [23:05:54]OFD Sender: No OFD packet to send [23:05:55]*** Cut start [23:05:55]*** Partial cut [23:05:55]*** CUTSNS_PIN = 1 [23:05:55]*** CUTSNS_PIN = 0 [23:05:55]*** Brake cut motor [23:05:55]Read from MH i2c: 01 [23:05:55]MH_I2C_Read... [23:05:55]*** Stop cut motor [23:05:55]*** Cut end [23:05:55]Read from MH i2c: 01 07 00 [23:05:55]MH_I2C_Read... [23:05:55]Read from MH i2c: 01 07 00 E3 12 00 00 00 00 00 FF 0F 0A [23:05:55]process_action close_receipt done [23:05:55]requested_data is exist [23:05:55]produce_requested_data [23:05:55]requested_item fm.sn is exist - process it [23:05:55]wFMCommunicate request_size=4 [23:05:55]MH_SAM_APDU [23:05:55]CAPDU: 80 11 00 00 [23:05:55]Write to MH i2c: E2 08 00 E4 12 80 11 00 00 00 00 00 00 70 [23:05:55]Write i2c OK [23:05:55]MH_I2C_Read... [23:05:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:05:55]Read from MH i2c: E2 [23:05:55]MH_I2C_Read... [23:05:55]Read from MH i2c: E2 17 00 [23:05:55]MH_I2C_Read... [23:05:55]Read from MH i2c: E2 17 00 E4 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 BF [23:05:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [23:05:55]wFMCommunicate OK [23:05:55]requested_item fd.num is exist - process it [23:05:55]SAM_PROTO_GetFieldsCounters [23:05:55]wFMCommunicate request_size=4 [23:05:55]MH_SAM_APDU [23:05:55]CAPDU: 80 13 00 00 [23:05:55]Write to MH i2c: E2 08 00 E5 12 80 13 00 00 00 00 00 00 73 [23:05:55]Write i2c OK [23:05:55]MH_I2C_Read... [23:05:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:05:56]Read from MH i2c: E2 [23:05:56]MH_I2C_Read... [23:05:56]Read from MH i2c: E2 62 00 [23:05:56]MH_I2C_Read... [23:05:56]Read from MH i2c: E2 62 00 E5 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 71 70 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 B5 [23:05:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 71 70 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 [23:05:56]wFMCommunicate OK [23:05:56]SAM_PROTO_GetFieldsCounters done [23:05:56]requested_item shift.num is exist - process it [23:05:56]requested_item shift.opened is exist - process it [23:05:56]req_shift_opened [23:05:56]FM_GetShiftState [23:05:56]SAM_PROTO_GetShiftState [23:05:56]wFMCommunicate request_size=4 [23:05:56]MH_SAM_APDU [23:05:56]CAPDU: 80 13 01 00 [23:05:56]Write to MH i2c: E2 08 00 E6 12 80 13 01 00 00 00 00 00 75 [23:05:56]Write i2c OK [23:05:56]MH_I2C_Read... [23:05:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:05:56]Read from MH i2c: E2 [23:05:56]MH_I2C_Read... [23:05:56]Read from MH i2c: E2 0E 00 [23:05:56]MH_I2C_Read... [23:05:56]Read from MH i2c: E2 0E 00 E6 12 00 09 00 01 17 88 19 66 00 00 00 00 90 00 9F [23:05:56]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [23:05:56]wFMCommunicate OK [23:05:56]SAM_PROTO_GetShiftState done [23:05:56]FM_GetShiftState done [23:05:56]req_shift_opened done [23:05:56]requested_item shift.open_date is exist - process it [23:05:56]req_shift_open_date [23:05:56]req_shift_open_date done [23:05:56]produce_requested_data done [23:05:56]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28785,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271} [23:05:56]process_action_free close_receipt [23:05:56]json_value_free [23:05:56]json_value_free done [23:05:56]process_json_proto returns [23:05:56]Send response to host [23:05:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28785,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271}}} [23:05:56]free response buf [23:05:56]execute_script done [23:05:56]execute_script returns [23:05:56]free content buf [23:05:56]Sock 7.Close socket [23:05:56]Sock 7.Thread stoped [23:05:59]OFD Sender: No OFD packet to send [23:06:04]OFD Sender: No OFD packet to send [23:06:09]OFD Sender: No OFD packet to send [23:06:14]OFD Sender: No OFD packet to send [23:06:19]OFD Sender: No OFD packet to send [23:06:24]OFD Sender: No OFD packet to send [23:06:29]OFD Sender: No OFD packet to send [23:06:34]OFD Sender: No OFD packet to send [23:06:39]OFD Sender: No OFD packet to send [23:06:44]OFD Sender: No OFD packet to send [23:06:49]OFD Sender: No OFD packet to send [23:06:54]OFD Sender: No OFD packet to send [23:06:59]OFD Sender: No OFD packet to send [23:07:04]OFD Sender: No OFD packet to send [23:07:07]accept exits with 9 [23:07:07]New connection [23:07:07]New thread 3066785124 created [23:07:07]Thread 3066928484 joined [23:07:07]Waiting for new connection... [23:07:07] Sock 9.Parse request [23:07:07]Sock 9.Check first char [23:07:07]Sock 9.First char is OK [23:07:07]request: POST /json_proto HTTP/1.0 [23:07:07]Method: POST [23:07:07]URL: /json_proto [23:07:07]Method is POST - this is cgi request [23:07:07]url: /json_proto [23:07:07]query_string will be loaded in cgi processing [23:07:07]execute_cgi json_proto POST (null) [23:07:07]execute_cgi path=json_proto method=POST [23:07:07]POST find Content-Length [23:07:07]Host: 172.17.33.3:8080 [23:07:07]Content-Length: 840 [23:07:07]Content-Type: application/json [23:07:07] [23:07:07]POST finish read [23:07:07]Found Content-Length = 840 [23:07:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347132", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 20.720, "sum" : 1500.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1500.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:07:07]execute_script... [23:07: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)347132", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 20.720, "sum" : 1500.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1500.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:07:07]POST & json_proto [23:07:07]process_json_proto [23:07:07]json parsed OK: [23:07:07]protocol is kg_v1.0 [23:07:07]action value=close_receipt [23:07:07]process_action close_receipt [23:07:07]cmd_close_receipt [23:07:07]MH_GetDate [23:07:07]Write to MH i2c: F0 00 00 E7 12 E8 [23:07:07]Write i2c OK [23:07:07]MH_I2C_Read... [23:07:07]Read from MH i2c: F0 [23:07:07]MH_I2C_Read... [23:07:07]Read from MH i2c: F0 09 00 [23:07:07]MH_I2C_Read... [23:07:07]Read from MH i2c: F0 09 00 E7 12 00 9C BE 19 66 23 5B 8F 65 3C [23:07:07]GetLastDocTimeStamp 1712963153 [23:07:07]current date 1712963228 [23:07:07]FM_GetShiftState [23:07:07]SAM_PROTO_GetShiftState [23:07:07]wFMCommunicate request_size=4 [23:07:07]MH_SAM_APDU [23:07:07]CAPDU: 80 13 01 00 [23:07:07]Write to MH i2c: E2 08 00 E8 12 80 13 01 00 00 00 00 00 77 [23:07:07]Write i2c OK [23:07:07]MH_I2C_Read... [23:07:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:07:07]Read from MH i2c: E2 [23:07:07]MH_I2C_Read... [23:07:07]Read from MH i2c: E2 0E 00 [23:07:07]MH_I2C_Read... [23:07:07]Read from MH i2c: E2 0E 00 E8 12 00 09 00 01 17 88 19 66 00 00 00 00 90 00 A1 [23:07:07]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [23:07:07]wFMCommunicate OK [23:07:07]SAM_PROTO_GetShiftState done [23:07:07]FM_GetShiftState done [23:07:07]opened in 1712949271 [23:07:07]opened+sec_in_day 1713035671 [23:07:07]quantity*price = 150012 [23:07:07]sum+1 = 150014 [23:07:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.13 НСП 1% : 13.27 НДС 12% : 159.31 Наличными: 0.00 Безнал.: 1500.13 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 60 12.04.2024 23:07 Смена: 114 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 28786 ФПД: 121135713243515 1/tax-web-control/client/api/v1/ticket?date=20240412T230708&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28786&fm=121135713243515&tin=02508201610067®Number=0000138879044617&sum=150013 [23:07:08]StoreToDocumentArchive [23:07:08]shift 114 fd 28786 [23:07:08]save to /storage/0114/doc_00028786 [23:07:08]save last doc name /storage/0114/doc_00028786 to /storage/kkm_last_doc_name [23:07:08]save OK [23:07:08]Clear old archive folders... [23:07:08]ProcessDocumentItem done err = 0, tmpTLVsize=248 [23:07:08]tlvbuf is 011A7C40 [23:07:08]SAM_PROTO_ClearQueue [23:07:08]wFMCommunicate request_size=4 [23:07:08]MH_SAM_APDU [23:07:08]CAPDU: 80 09 00 00 [23:07:08]Write to MH i2c: E2 08 00 F5 12 80 09 00 00 00 00 00 00 79 [23:07:08]Write i2c OK [23:07:08]MH_I2C_Read... [23:07:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:07:08]Read from MH i2c: E2 [23:07:08]MH_I2C_Read... [23:07:08]Read from MH i2c: E2 03 00 [23:07:08]MH_I2C_Read... [23:07:08]Read from MH i2c: E2 03 00 F5 12 00 90 00 7B [23:07:08]RAPDU: 90 00 [23:07:08]wFMCommunicate OK [23:07:08]SAM_PROTO_ClearQueue done [23:07:08]KKMCreateOFDPacket [23:07:08]OFDProtocolAddRootSTLVToBuf [23:07:08]FM_MakeSignedData [23:07:08]FM_MakeSignedData [23:07:08]SAM_PROTO_SignData [23:07:08]wFMCommunicate request_size=4 [23:07:08]MH_SAM_APDU [23:07:08]CAPDU: 80 0D 01 02 [23:07:08]Write to MH i2c: E2 08 00 F6 12 80 0D 01 02 00 00 00 00 81 [23:07:08]Write i2c OK [23:07:08]MH_I2C_Read... [23:07:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:07:08]Read from MH i2c: E2 [23:07:08]MH_I2C_Read... [23:07:08]Read from MH i2c: E2 03 00 [23:07:08]MH_I2C_Read... [23:07:08]Read from MH i2c: E2 03 00 F6 12 00 90 00 7C [23:07:08]RAPDU: 90 00 [23:07:08]wFMCommunicate OK [23:07:08]wFMCommunicate request_size=255 [23:07:08]MH_SAM_APDU [23:07: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 35 FF 03 08 00 03 F0 50 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 FD 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FD 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FD 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 9C BE 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 72 70 00 00 35 04 06 00 6E 2C 1B 28 [23:07:08]Write to MH i2c: E2 02 01 F7 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 35 FF 03 08 00 03 F0 50 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 FD 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FD 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FD 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 9C BE 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 72 70 00 00 35 04 06 00 6E 2C 1B 28 00 00 6A [23:07:08]Write i2c OK [23:07:08]MH_I2C_Read... [23:07:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:07:08]Read from MH i2c: E2 [23:07:08]MH_I2C_Read... [23:07:08]Read from MH i2c: E2 03 00 [23:07:08]MH_I2C_Read... [23:07:08]Read from MH i2c: E2 03 00 F7 12 00 90 00 7D [23:07:08]RAPDU: 90 00 [23:07:08]wFMCommunicate OK [23:07:08]wFMCommunicate request_size=7 [23:07:08]MH_SAM_APDU [23:07:08]CAPDU: 80 0D 02 02 02 51 7B [23:07:08]Write to MH i2c: E2 0A 00 F8 12 80 0D 02 02 02 00 51 7B 00 00 54 [23:07:08]Write i2c OK [23:07:08]MH_I2C_Read... [23:07:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:07:08]Read from MH i2c: E2 [23:07:08]MH_I2C_Read... [23:07:08]Read from MH i2c: E2 03 00 [23:07:08]MH_I2C_Read... [23:07:08]Read from MH i2c: E2 03 00 F8 12 00 90 00 7E [23:07:08]RAPDU: 90 00 [23:07:08]wFMCommunicate OK [23:07:08]wFMCommunicate request_size=4 [23:07:08]MH_SAM_APDU [23:07:08]CAPDU: 80 0D 03 02 [23:07:08]Write to MH i2c: E2 08 00 F9 12 80 0D 03 02 00 00 00 00 86 [23:07:08]Write i2c OK [23:07:08]MH_I2C_Read... [23:07:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:07:08]Read from MH i2c: E2 [23:07:08]MH_I2C_Read... [23:07:08]Read from MH i2c: E2 0B 00 [23:07:08]MH_I2C_Read... [23:07:08]Read from MH i2c: E2 0B 00 F9 12 00 D8 40 0E 16 84 A5 F3 64 90 00 43 [23:07:08]RAPDU: D8 40 0E 16 84 A5 F3 64 90 00 [23:07:08]wFMCommunicate OK [23:07:08]SAM_PROTO_SignData done [23:07:08]FM_MakeSignedData done [23:07:08]CreateOFDProtocolMessage [23:07:08]wFMCommunicate request_size=4 [23:07:08]MH_SAM_APDU [23:07:08]CAPDU: 80 11 00 00 [23:07:08]Write to MH i2c: E2 08 00 FA 12 80 11 00 00 00 00 00 00 86 [23:07:08]Write i2c OK [23:07:08]MH_I2C_Read... [23:07:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:07:08]Read from MH i2c: E2 [23:07:08]MH_I2C_Read... [23:07:08]Read from MH i2c: E2 17 00 [23:07:08]MH_I2C_Read... [23:07:08]Read from MH i2c: E2 17 00 FA 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D5 [23:07:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [23:07:08]wFMCommunicate OK [23:07:08]CreateOFDProtocolMessage done [23:07:08]OFDSenderStorePacket 28786 [23:07:08]StoreOFDPacket docnum=28786 [23:07:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 F8 43 04 01 4D 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 35 FF 03 08 00 03 F0 50 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 FD 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FD 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FD 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 9C BE 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 72 70 00 00 35 04 06 00 6E 2C 1B 28 51 7B D8 40 0E 16 84 A5 F3 64 [23:07:08]CheckFolder [23:07:08]dirname=/storage/ofd_packets [23:07:08]CheckFolder done [23:07:08]ProducePacketName [23:07:08]name=ofd_packets/00028786 [23:07:08]NVStorageSaveData ofd_packets/00028786 [23:07:08]File name is /storage/ofd_packets/00028786 [23:07:08]Write 298 bytes [23:07:08]NVStorageSaveData done [23:07:08]OFDSenderStorePacket done [23:07:08]KKMCreateOFDPacket done [23:07:08]NVStorageSaveData kkm_last_timestamp [23:07:08]File name is /storage/kkm_last_timestamp [23:07:08]Write 4 bytes [23:07:08]NVStorageSaveData done [23:07:08]ExternCall_PrintAddStr [23:07:08]wPrintStart [23:07:08]Write to MH i2c: 01 00 00 FB 12 0D [23:07:08]Write i2c OK [23:07:08]MH_I2C_Read... [23:07:08]Read from MH i2c: 01 [23:07:08]MH_I2C_Read... [23:07:08]Read from MH i2c: 01 07 00 [23:07:08]MH_I2C_Read... [23:07:08]Read from MH i2c: 01 07 00 FB 12 00 00 00 00 00 FF 0F 22 [23:07:08]RasterBufferAndPrint [23:07:08]line Счет N : (1)347132 [23:07:08]line ИНН: 02508201610067 [23:07:08]line Контрольно-Кассовый Чек [23:07:08]line ПРОДАЖА [23:07:08]line ТРК (МРК, ГНК) : 21 [23:07:08]line Товар: 2710194210 [23:07:08]line ДТ-К-5 [23:07:08]line 20.720 * 72.40 [23:07:08]line = 1500.13 [23:07:08]line НДС 12% НСП 1% [23:07:08]line > о реализуемом товаре [23:07:08]line ИТОГО: 1500.13 [23:07:08]line НСП 1% : 13.27 [23:07:08]line НДС 12% : 159.31 [23:07:08]line Наличными: 0.00 [23:07:08]line Безнал.: 1500.13 [23:07:08]line Место: АЗС № 108 "Партнер Нефть" [23:07:08]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [23:07:08]line СНО: Общий режим [23:07:08]line Чек 60 12.04.2024 23:07 [23:07:08]line Смена: 114 ФФД: 1.0 [23:07:08]line ЗНМ: 0300000027 [23:07:08]line РНМ: 0000138879044617 [23:07:08]line Версия ККМ: 001 [23:07:08]line Платежная система: АКБ Кыргызстан [23:07:08]line ФМ: 0000000000963154 [23:07:08]line ФД: 28786 [23:07:09]line ФПД: 121135713243515 [23:07:09]line 1/tax-web-control/client/api/v1/ticket?date=20240412T230708&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28786&fm=121135713243515&tin=02508201610067®Number=0000138879044617&sum=150013 [23:07:09]OFD Sender: Processing packet 28786 [packets to send 8, broken 7] [23:07:09]ProducePacketName [23:07:09]name=ofd_packets/00028786 [23:07:09]OFD Sender: To server: pG, [23:07:09]CommunicateWithHost lk.salyk.kg:30040 [23:07:09]ConnectInit lk.salyk.kg [23:07:09]written 0, free lines is 4095 [23:07:09]Connected sock=10 [23:07:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 F8 43 04 01 4D 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 35 FF 03 08 00 03 F0 50 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 FD 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FD 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FD 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 9C BE 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 72 70 00 00 35 04 06 00 6E 2C 1B 28 51 7B D8 40 0E 16 84 A5 F3 64 [23:07:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 30 7E 47 00 02 FE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 72 70 00 00 F4 03 04 00 45 69 19 66 B6 04 01 00 00 E3 D4 A0 57 55 76 27 BE [23:07:09]CommunicateWithHost err = 0 [23:07:09]CheckOFDResponse [23:07:09]1017 (14) - 77093643461234 [23:07:09]1041 (16) - 0000000000963154 [23:07:09]1040 (4) - 28786 [23:07:09]1012 (4) - 12.04.2024 17:03 [23:07:09]1206 (1) - 0 [23:07:09]OFD Sender: Remove packet 28786 [23:07:09]ProducePacketName [23:07:09]name=ofd_packets/00028786 [23:07:09]NVStorageDeleteData [23:07:09]Write to MH i2c: 01 00 00 24 13 37 [23:07:09]Write i2c OK [23:07:09]MH_I2C_Read... [23:07:09]Read from MH i2c: 01 [23:07:09]MH_I2C_Read... [23:07:09]Read from MH i2c: 01 07 00 [23:07:09]MH_I2C_Read... [23:07:09]Read from MH i2c: 01 07 00 24 13 00 00 00 00 00 DC 0C 26 [23:07:09]RasterBufferAndPrint [23:07:09]line [23:07:09]line [23:07:09]line [23:07:09]line [23:07:09]line [23:07:09]written 0, free lines is 3298 [23:07:09]MH_Cut [23:07:09]Write to MH i2c: D1 01 00 2B 13 01 10 [23:07:09]Write i2c OK [23:07:09]MH_I2C_Read... [23:07:09]Read from MH i2c: D1 [23:07:09]MH_I2C_Read... [23:07:09]Read from MH i2c: D1 01 00 [23:07:09]MH_I2C_Read... [23:07:09]Read from MH i2c: D1 01 00 2B 13 00 0F [23:07:09]Write to MH i2c: 01 00 00 2C 13 3F [23:07:09]Write i2c OK [23:07:09]MH_I2C_Read... [23:07:09]OFD Sender: No OFD packet to send [23:07:10]*** Cut start [23:07:10]*** Partial cut [23:07:10]*** CUTSNS_PIN = 1 [23:07:10]*** CUTSNS_PIN = 0 [23:07:10]*** Brake cut motor [23:07:10]Read from MH i2c: 01 [23:07:11]MH_I2C_Read... [23:07:11]*** Stop cut motor [23:07:11]*** Cut end [23:07:11]Read from MH i2c: 01 07 00 [23:07:11]MH_I2C_Read... [23:07:11]Read from MH i2c: 01 07 00 2C 13 00 00 00 00 00 FF 0F 54 [23:07:11]process_action close_receipt done [23:07:11]requested_data is exist [23:07:11]produce_requested_data [23:07:11]requested_item fm.sn is exist - process it [23:07:11]wFMCommunicate request_size=4 [23:07:11]MH_SAM_APDU [23:07:11]CAPDU: 80 11 00 00 [23:07:11]Write to MH i2c: E2 08 00 2D 13 80 11 00 00 00 00 00 00 BA [23:07:11]Write i2c OK [23:07:11]MH_I2C_Read... [23:07:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:07:11]Read from MH i2c: E2 [23:07:11]MH_I2C_Read... [23:07:11]Read from MH i2c: E2 17 00 [23:07:11]MH_I2C_Read... [23:07:11]Read from MH i2c: E2 17 00 2D 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 09 [23:07:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [23:07:11]wFMCommunicate OK [23:07:11]requested_item fd.num is exist - process it [23:07:11]SAM_PROTO_GetFieldsCounters [23:07:11]wFMCommunicate request_size=4 [23:07:11]MH_SAM_APDU [23:07:11]CAPDU: 80 13 00 00 [23:07:11]Write to MH i2c: E2 08 00 2E 13 80 13 00 00 00 00 00 00 BD [23:07:11]Write i2c OK [23:07:11]MH_I2C_Read... [23:07:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:07:11]Read from MH i2c: E2 [23:07:11]MH_I2C_Read... [23:07:11]Read from MH i2c: E2 62 00 [23:07:11]MH_I2C_Read... [23:07:11]Read from MH i2c: E2 62 00 2E 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 72 70 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 03 [23:07:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 72 70 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 [23:07:11]wFMCommunicate OK [23:07:11]SAM_PROTO_GetFieldsCounters done [23:07:11]requested_item shift.num is exist - process it [23:07:11]requested_item shift.opened is exist - process it [23:07:11]req_shift_opened [23:07:11]FM_GetShiftState [23:07:11]SAM_PROTO_GetShiftState [23:07:11]wFMCommunicate request_size=4 [23:07:11]MH_SAM_APDU [23:07:11]CAPDU: 80 13 01 00 [23:07:11]Write to MH i2c: E2 08 00 2F 13 80 13 01 00 00 00 00 00 BF [23:07:11]Write i2c OK [23:07:11]MH_I2C_Read... [23:07:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:07:11]Read from MH i2c: E2 [23:07:11]MH_I2C_Read... [23:07:11]Read from MH i2c: E2 0E 00 [23:07:11]MH_I2C_Read... [23:07:11]Read from MH i2c: E2 0E 00 2F 13 00 09 00 01 17 88 19 66 00 00 00 00 90 00 E9 [23:07:11]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [23:07:11]wFMCommunicate OK [23:07:11]SAM_PROTO_GetShiftState done [23:07:11]FM_GetShiftState done [23:07:11]req_shift_opened done [23:07:11]requested_item shift.open_date is exist - process it [23:07:11]req_shift_open_date [23:07:11]req_shift_open_date done [23:07:11]produce_requested_data done [23:07:11]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28786,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271} [23:07:11]process_action_free close_receipt [23:07:11]json_value_free [23:07:11]json_value_free done [23:07:11]process_json_proto returns [23:07:11]Send response to host [23:07:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28786,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271}}} [23:07:11]free response buf [23:07:11]execute_script done [23:07:11]execute_script returns [23:07:11]free content buf [23:07:11]Sock 9.Close socket [23:07:11]Sock 9.Thread stoped [23:07:11]accept exits with 7 [23:07:11]New connection [23:07:11]New thread 3066928484 created [23:07:11]Thread 3066785124 joined [23:07:11]Waiting for new connection... [23:07:11] Sock 7.Parse request [23:07:11]Sock 7.Check first char [23:07:11]Sock 7.First char is OK [23:07:11]request: POST /json_proto HTTP/1.0 [23:07:11]Method: POST [23:07:11]URL: /json_proto [23:07:11]Method is POST - this is cgi request [23:07:11]url: /json_proto [23:07:11]query_string will be loaded in cgi processing [23:07:11]execute_cgi json_proto POST (null) [23:07:11]execute_cgi path=json_proto method=POST [23:07:11]POST find Content-Length [23:07:11]Host: 172.17.33.3:8080 [23:07:11]Content-Length: 679 [23:07:11]Content-Type: application/json [23:07:11] [23:07:11]POST finish read [23:07:11]Found Content-Length = 679 [23:07:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347133", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 13.820, "sum" : 1000.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:07:11]execute_script... [23:07: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)347133", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 13.820, "sum" : 1000.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:07:11]POST & json_proto [23:07:11]process_json_proto [23:07:11]json parsed OK: [23:07:11]protocol is kg_v1.0 [23:07:11]action value=close_receipt [23:07:11]process_action close_receipt [23:07:11]cmd_close_receipt [23:07:11]MH_GetDate [23:07:11]Write to MH i2c: F0 00 00 30 13 32 [23:07:11]Write i2c OK [23:07:11]MH_I2C_Read... [23:07:11]Read from MH i2c: F0 [23:07:11]MH_I2C_Read... [23:07:11]Read from MH i2c: F0 09 00 [23:07:11]MH_I2C_Read... [23:07:11]Read from MH i2c: F0 09 00 30 13 00 A1 BE 19 66 23 5B 8F 65 8B [23:07:11]GetLastDocTimeStamp 1712963228 [23:07:11]current date 1712963233 [23:07:11]FM_GetShiftState [23:07:11]SAM_PROTO_GetShiftState [23:07:11]wFMCommunicate request_size=4 [23:07:11]MH_SAM_APDU [23:07:11]CAPDU: 80 13 01 00 [23:07:11]Write to MH i2c: E2 08 00 31 13 80 13 01 00 00 00 00 00 C1 [23:07:11]Write i2c OK [23:07:11]MH_I2C_Read... [23:07:11]Read from MH i2c: E2 [23:07:11]MH_I2C_Read... [23:07:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:07:11]Read from MH i2c: E2 0E 00 [23:07:11]MH_I2C_Read... [23:07:11]Read from MH i2c: E2 0E 00 31 13 00 09 00 01 17 88 19 66 00 00 00 00 90 00 EB [23:07:11]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [23:07:11]wFMCommunicate OK [23:07:11]SAM_PROTO_GetShiftState done [23:07:11]FM_GetShiftState done [23:07:11]opened in 1712949271 [23:07:11]opened+sec_in_day 1713035671 [23:07:11]quantity*price = 100056 [23:07:11]sum+1 = 100058 [23:07:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 61 12.04.2024 23:07 Смена: 114 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28787 ФПД: 212162140045727 1/tax-web-control/client/api/v1/ticket?date=20240412T230713&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28787&fm=212162140045727&tin=02508201610067®Number=0000138879044617&sum=100000 [23:07:13]StoreToDocumentArchive [23:07:13]shift 114 fd 28787 [23:07:13]save to /storage/0114/doc_00028787 [23:07:13]save last doc name /storage/0114/doc_00028787 to /storage/kkm_last_doc_name [23:07:13]save OK [23:07:13]Clear old archive folders... [23:07:13]ProcessDocumentItem done err = 0, tmpTLVsize=248 [23:07:13]tlvbuf is 011C60C0 [23:07:13]SAM_PROTO_ClearQueue [23:07:13]wFMCommunicate request_size=4 [23:07:13]MH_SAM_APDU [23:07:13]CAPDU: 80 09 00 00 [23:07:13]Write to MH i2c: E2 08 00 3E 13 80 09 00 00 00 00 00 00 C3 [23:07:13]Write i2c OK [23:07:13]MH_I2C_Read... [23:07:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:07:13]Read from MH i2c: E2 [23:07:13]MH_I2C_Read... [23:07:13]Read from MH i2c: E2 03 00 [23:07:13]MH_I2C_Read... [23:07:13]Read from MH i2c: E2 03 00 3E 13 00 90 00 C5 [23:07:13]RAPDU: 90 00 [23:07:13]wFMCommunicate OK [23:07:13]SAM_PROTO_ClearQueue done [23:07:13]KKMCreateOFDPacket [23:07:13]OFDProtocolAddRootSTLVToBuf [23:07:13]FM_MakeSignedData [23:07:13]FM_MakeSignedData [23:07:13]SAM_PROTO_SignData [23:07:13]wFMCommunicate request_size=4 [23:07:13]MH_SAM_APDU [23:07:13]CAPDU: 80 0D 01 02 [23:07:13]Write to MH i2c: E2 08 00 3F 13 80 0D 01 02 00 00 00 00 CB [23:07:13]Write i2c OK [23:07:13]MH_I2C_Read... [23:07:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:07:13]Read from MH i2c: E2 [23:07:13]MH_I2C_Read... [23:07:13]Read from MH i2c: E2 03 00 [23:07:13]MH_I2C_Read... [23:07:13]Read from MH i2c: E2 03 00 3F 13 00 90 00 C6 [23:07:13]RAPDU: 90 00 [23:07:13]wFMCommunicate OK [23:07:13]wFMCommunicate request_size=255 [23:07:13]MH_SAM_APDU [23:07: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 35 FF 03 08 00 03 FC 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D9 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 3D 00 00 00 F4 03 04 00 A1 BE 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 73 70 00 00 35 04 06 00 C0 F5 D8 FE [23:07:13]Write to MH i2c: E2 02 01 40 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 35 FF 03 08 00 03 FC 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D9 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 3D 00 00 00 F4 03 04 00 A1 BE 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 73 70 00 00 35 04 06 00 C0 F5 D8 FE 00 00 A5 [23:07:13]Write i2c OK [23:07:13]MH_I2C_Read... [23:07:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:07:13]Read from MH i2c: E2 [23:07:13]MH_I2C_Read... [23:07:13]Read from MH i2c: E2 03 00 [23:07:13]MH_I2C_Read... [23:07:13]Read from MH i2c: E2 03 00 40 13 00 90 00 C7 [23:07:13]RAPDU: 90 00 [23:07:13]wFMCommunicate OK [23:07:13]wFMCommunicate request_size=7 [23:07:13]MH_SAM_APDU [23:07:13]CAPDU: 80 0D 02 02 02 01 9F [23:07:13]Write to MH i2c: E2 0A 00 41 13 80 0D 02 02 02 00 01 9F 00 00 72 [23:07:13]Write i2c OK [23:07:13]MH_I2C_Read... [23:07:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:07:13]Read from MH i2c: E2 [23:07:13]MH_I2C_Read... [23:07:13]Read from MH i2c: E2 03 00 [23:07:13]MH_I2C_Read... [23:07:13]Read from MH i2c: E2 03 00 41 13 00 90 00 C8 [23:07:13]RAPDU: 90 00 [23:07:13]wFMCommunicate OK [23:07:13]wFMCommunicate request_size=4 [23:07:13]MH_SAM_APDU [23:07:13]CAPDU: 80 0D 03 02 [23:07:13]Write to MH i2c: E2 08 00 42 13 80 0D 03 02 00 00 00 00 D0 [23:07:13]Write i2c OK [23:07:13]MH_I2C_Read... [23:07:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:07:13]Read from MH i2c: E2 [23:07:13]MH_I2C_Read... [23:07:13]Read from MH i2c: E2 0B 00 [23:07:13]MH_I2C_Read... [23:07:13]Read from MH i2c: E2 0B 00 42 13 00 A8 81 90 03 7B F2 E4 30 90 00 0E [23:07:13]RAPDU: A8 81 90 03 7B F2 E4 30 90 00 [23:07:13]wFMCommunicate OK [23:07:13]SAM_PROTO_SignData done [23:07:13]FM_MakeSignedData done [23:07:13]CreateOFDProtocolMessage [23:07:13]wFMCommunicate request_size=4 [23:07:13]MH_SAM_APDU [23:07:13]CAPDU: 80 11 00 00 [23:07:13]Write to MH i2c: E2 08 00 43 13 80 11 00 00 00 00 00 00 D0 [23:07:13]Write i2c OK [23:07:13]MH_I2C_Read... [23:07:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:07:13]Read from MH i2c: E2 [23:07:13]MH_I2C_Read... [23:07:13]Read from MH i2c: E2 17 00 [23:07:13]MH_I2C_Read... [23:07:13]Read from MH i2c: E2 17 00 43 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 1F [23:07:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [23:07:13]wFMCommunicate OK [23:07:13]CreateOFDProtocolMessage done [23:07:13]OFDSenderStorePacket 28787 [23:07:13]StoreOFDPacket docnum=28787 [23:07:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 18 88 04 01 54 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 35 FF 03 08 00 03 FC 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D9 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 3D 00 00 00 F4 03 04 00 A1 BE 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 73 70 00 00 35 04 06 00 C0 F5 D8 FE 01 9F A8 81 90 03 7B F2 E4 30 [23:07:13]CheckFolder [23:07:13]dirname=/storage/ofd_packets [23:07:13]CheckFolder done [23:07:13]ProducePacketName [23:07:13]name=ofd_packets/00028787 [23:07:13]NVStorageSaveData ofd_packets/00028787 [23:07:13]File name is /storage/ofd_packets/00028787 [23:07:13]Write 298 bytes [23:07:13]NVStorageSaveData done [23:07:13]OFDSenderStorePacket done [23:07:13]KKMCreateOFDPacket done [23:07:13]NVStorageSaveData kkm_last_timestamp [23:07:13]File name is /storage/kkm_last_timestamp [23:07:13]Write 4 bytes [23:07:13]NVStorageSaveData done [23:07:13]ExternCall_PrintAddStr [23:07:13]wPrintStart [23:07:13]Write to MH i2c: 01 00 00 44 13 57 [23:07:13]Write i2c OK [23:07:13]MH_I2C_Read... [23:07:13]Read from MH i2c: 01 [23:07:13]MH_I2C_Read... [23:07:13]Read from MH i2c: 01 07 00 [23:07:13]MH_I2C_Read... [23:07:13]Read from MH i2c: 01 07 00 44 13 00 00 00 00 00 FF 0F 6C [23:07:13]RasterBufferAndPrint [23:07:13]line Счет N : (1)347133 [23:07:13]line ИНН: 02508201610067 [23:07:13]line Контрольно-Кассовый Чек [23:07:13]line ПРОДАЖА [23:07:13]line ТРК (МРК, ГНК) : 21 [23:07:13]line Товар: 2710194210 [23:07:13]line ДТ-К-5 [23:07:13]line 13.820 * 72.40 [23:07:13]line = 1000.57 [23:07:13]line НДС 12% НСП 1% [23:07:13]line > о реализуемом товаре [23:07:13]line ОКРУГЛЕНИЕ: -0.57 [23:07:13]line ИТОГО: 1000.00 [23:07:13]line Внесено: 1000.00 [23:07:13]line СДАЧА: 0.00 [23:07:13]line НСП 1% : 8.85 [23:07:13]line НДС 12% : 106.25 [23:07:13]line Наличными: 1000.00 [23:07:13]line Безнал.: 0.00 [23:07:13]line Место: АЗС № 108 "Партнер Нефть" [23:07:13]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [23:07:13]line СНО: Общий режим [23:07:13]line Чек 61 12.04.2024 23:07 [23:07:13]line Смена: 114 ФФД: 1.0 [23:07:13]line ЗНМ: 0300000027 [23:07:13]line РНМ: 0000138879044617 [23:07:13]line Версия ККМ: 001 [23:07:13]line ФМ: 0000000000963154 [23:07:13]line ФД: 28787 [23:07:13]line ФПД: 212162140045727 [23:07:13]line 1/tax-web-control/client/api/v1/ticket?date=20240412T230713&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28787&fm=212162140045727&tin=02508201610067®Number=0000138879044617&sum=100000 [23:07:13]OFD Sender: Processing packet 28787 [packets to send 8, broken 7] [23:07:13]ProducePacketName [23:07:13]name=ofd_packets/00028787 [23:07:13]OFD Sender: To server: pG, [23:07:13]CommunicateWithHost lk.salyk.kg:30040 [23:07:13]ConnectInit lk.salyk.kg [23:07:13]written 0, free lines is 4095 [23:07:14]Connected sock=10 [23:07:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 18 88 04 01 54 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 35 FF 03 08 00 03 FC 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D9 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 3D 00 00 00 F4 03 04 00 A1 BE 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 73 70 00 00 35 04 06 00 C0 F5 D8 FE 01 9F A8 81 90 03 7B F2 E4 30 [23:07:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 E8 66 47 00 C3 FF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 73 70 00 00 F4 03 04 00 4A 69 19 66 B6 04 01 00 00 06 4A 90 69 AA C4 ED 7D [23:07:14]CommunicateWithHost err = 0 [23:07:14]CheckOFDResponse [23:07:14]1017 (14) - 77093643461234 [23:07:14]1041 (16) - 0000000000963154 [23:07:14]1040 (4) - 28787 [23:07:14]1012 (4) - 12.04.2024 17:03 [23:07:14]1206 (1) - 0 [23:07:14]OFD Sender: Remove packet 28787 [23:07:14]ProducePacketName [23:07:14]name=ofd_packets/00028787 [23:07:14]NVStorageDeleteData [23:07:14]Write to MH i2c: 01 00 00 6E 13 81 [23:07:14]Write i2c OK [23:07:14]MH_I2C_Read... [23:07:14]Read from MH i2c: 01 [23:07:14]MH_I2C_Read... [23:07:14]Read from MH i2c: 01 07 00 [23:07:14]MH_I2C_Read... [23:07:14]Read from MH i2c: 01 07 00 6E 13 00 00 00 00 00 DA 0C 6E [23:07:14]RasterBufferAndPrint [23:07:14]line [23:07:14]line [23:07:14]line [23:07:14]line [23:07:14]line [23:07:14]written 0, free lines is 3301 [23:07:14]MH_Cut [23:07:14]Write to MH i2c: D1 01 00 75 13 01 5A [23:07:14]Write i2c OK [23:07:14]MH_I2C_Read... [23:07:14]Read from MH i2c: D1 [23:07:14]MH_I2C_Read... [23:07:14]Read from MH i2c: D1 01 00 [23:07:14]MH_I2C_Read... [23:07:14]Read from MH i2c: D1 01 00 75 13 00 59 [23:07:14]Write to MH i2c: 01 00 00 76 13 89 [23:07:14]Write i2c OK [23:07:14]MH_I2C_Read... [23:07:14]OFD Sender: No OFD packet to send [23:07:15]*** Cut start [23:07:15]*** Partial cut [23:07:15]*** CUTSNS_PIN = 1 [23:07:15]*** CUTSNS_PIN = 0 [23:07:15]*** Brake cut motor [23:07:15]Read from MH i2c: 01 [23:07:15]MH_I2C_Read... [23:07:15]*** Stop cut motor [23:07:15]*** Cut end [23:07:15]Read from MH i2c: 01 07 00 [23:07:15]MH_I2C_Read... [23:07:15]Read from MH i2c: 01 07 00 76 13 00 00 00 00 00 FF 0F 9E [23:07:15]process_action close_receipt done [23:07:15]requested_data is exist [23:07:15]produce_requested_data [23:07:15]requested_item fm.sn is exist - process it [23:07:15]wFMCommunicate request_size=4 [23:07:15]MH_SAM_APDU [23:07:15]CAPDU: 80 11 00 00 [23:07:15]Write to MH i2c: E2 08 00 77 13 80 11 00 00 00 00 00 00 04 [23:07:15]Write i2c OK [23:07:15]MH_I2C_Read... [23:07:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:07:15]Read from MH i2c: E2 [23:07:15]MH_I2C_Read... [23:07:15]Read from MH i2c: E2 17 00 [23:07:15]MH_I2C_Read... [23:07:15]Read from MH i2c: E2 17 00 77 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 53 [23:07:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [23:07:15]wFMCommunicate OK [23:07:15]requested_item fd.num is exist - process it [23:07:15]SAM_PROTO_GetFieldsCounters [23:07:15]wFMCommunicate request_size=4 [23:07:15]MH_SAM_APDU [23:07:15]CAPDU: 80 13 00 00 [23:07:15]Write to MH i2c: E2 08 00 78 13 80 13 00 00 00 00 00 00 07 [23:07:15]Write i2c OK [23:07:15]MH_I2C_Read... [23:07:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:07:15]Read from MH i2c: E2 [23:07:15]MH_I2C_Read... [23:07:15]Read from MH i2c: E2 62 00 [23:07:15]MH_I2C_Read... [23:07:15]Read from MH i2c: E2 62 00 78 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 73 70 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 51 [23:07:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 73 70 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 [23:07:16]wFMCommunicate OK [23:07:16]SAM_PROTO_GetFieldsCounters done [23:07:16]requested_item shift.num is exist - process it [23:07:16]requested_item shift.opened is exist - process it [23:07:16]req_shift_opened [23:07:16]FM_GetShiftState [23:07:16]SAM_PROTO_GetShiftState [23:07:16]wFMCommunicate request_size=4 [23:07:16]MH_SAM_APDU [23:07:16]CAPDU: 80 13 01 00 [23:07:16]Write to MH i2c: E2 08 00 79 13 80 13 01 00 00 00 00 00 09 [23:07:16]Write i2c OK [23:07:16]MH_I2C_Read... [23:07:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:07:16]Read from MH i2c: E2 [23:07:16]MH_I2C_Read... [23:07:16]Read from MH i2c: E2 0E 00 [23:07:16]MH_I2C_Read... [23:07:16]Read from MH i2c: E2 0E 00 79 13 00 09 00 01 17 88 19 66 00 00 00 00 90 00 33 [23:07:16]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [23:07:16]wFMCommunicate OK [23:07:16]SAM_PROTO_GetShiftState done [23:07:16]FM_GetShiftState done [23:07:16]req_shift_opened done [23:07:16]requested_item shift.open_date is exist - process it [23:07:16]req_shift_open_date [23:07:16]req_shift_open_date done [23:07:16]produce_requested_data done [23:07:16]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28787,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271} [23:07:16]process_action_free close_receipt [23:07:16]json_value_free [23:07:16]json_value_free done [23:07:16]process_json_proto returns [23:07:16]Send response to host [23:07:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28787,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271}}} [23:07:16]free response buf [23:07:16]execute_script done [23:07:16]execute_script returns [23:07:16]free content buf [23:07:16]Sock 7.Close socket [23:07:16]Sock 7.Thread stoped [23:07:19]OFD Sender: No OFD packet to send [23:07:24]OFD Sender: No OFD packet to send [23:07:29]OFD Sender: No OFD packet to send [23:07:34]OFD Sender: No OFD packet to send [23:07:39]OFD Sender: No OFD packet to send [23:07:44]OFD Sender: No OFD packet to send [23:07:49]OFD Sender: No OFD packet to send [23:07:54]OFD Sender: No OFD packet to send [23:07:59]OFD Sender: No OFD packet to send [23:08:04]OFD Sender: No OFD packet to send [23:08:09]OFD Sender: No OFD packet to send [23:08:14]OFD Sender: No OFD packet to send [23:08:19]OFD Sender: No OFD packet to send [23:08:24]OFD Sender: No OFD packet to send [23:08:29]OFD Sender: No OFD packet to send [23:08:34]OFD Sender: No OFD packet to send [23:08:39]OFD Sender: No OFD packet to send [23:08:44]OFD Sender: No OFD packet to send [23:08:49]OFD Sender: No OFD packet to send [23:08:54]OFD Sender: No OFD packet to send [23:08:59]OFD Sender: No OFD packet to send [23:09:04]OFD Sender: No OFD packet to send [23:09:09]OFD Sender: No OFD packet to send [23:09:14]OFD Sender: No OFD packet to send [23:09:19]OFD Sender: No OFD packet to send [23:09:24]OFD Sender: No OFD packet to send [23:09:29]OFD Sender: No OFD packet to send [23:09:34]OFD Sender: No OFD packet to send [23:09:39]OFD Sender: No OFD packet to send [23:09:44]OFD Sender: No OFD packet to send [23:09:49]OFD Sender: No OFD packet to send [23:09:54]OFD Sender: No OFD packet to send [23:09:59]OFD Sender: No OFD packet to send [23:10:04]OFD Sender: No OFD packet to send [23:10:09]OFD Sender: No OFD packet to send [23:10:14]OFD Sender: No OFD packet to send [23:10:19]OFD Sender: No OFD packet to send [23:10:24]OFD Sender: No OFD packet to send [23:10:29]OFD Sender: No OFD packet to send [23:10:34]OFD Sender: No OFD packet to send [23:10:39]OFD Sender: No OFD packet to send [23:10:44]OFD Sender: No OFD packet to send [23:10:49]OFD Sender: No OFD packet to send [23:10:54]OFD Sender: No OFD packet to send [23:10:59]OFD Sender: No OFD packet to send [23:11:04]OFD Sender: No OFD packet to send [23:11:09]OFD Sender: No OFD packet to send [23:11:14]OFD Sender: No OFD packet to send [23:11:19]OFD Sender: No OFD packet to send [23:11:24]OFD Sender: No OFD packet to send [23:11:29]OFD Sender: No OFD packet to send [23:11:34]OFD Sender: No OFD packet to send [23:11:39]OFD Sender: No OFD packet to send [23:11:44]OFD Sender: No OFD packet to send [23:11:49]OFD Sender: No OFD packet to send [23:11:54]OFD Sender: No OFD packet to send [23:12:00]OFD Sender: No OFD packet to send [23:12:05]OFD Sender: No OFD packet to send [23:12:10]OFD Sender: No OFD packet to send [23:12:15]OFD Sender: No OFD packet to send [23:12:20]OFD Sender: No OFD packet to send [23:12:25]OFD Sender: No OFD packet to send [23:12:30]OFD Sender: No OFD packet to send [23:12:35]OFD Sender: No OFD packet to send [23:12:40]OFD Sender: No OFD packet to send [23:12:45]OFD Sender: No OFD packet to send [23:12:50]OFD Sender: No OFD packet to send [23:12:55]OFD Sender: No OFD packet to send [23:13:00]OFD Sender: No OFD packet to send [23:13:05]OFD Sender: No OFD packet to send [23:13:10]OFD Sender: No OFD packet to send [23:13:15]OFD Sender: No OFD packet to send [23:13:20]OFD Sender: No OFD packet to send [23:13:25]OFD Sender: No OFD packet to send [23:13:30]OFD Sender: No OFD packet to send [23:13:35]OFD Sender: No OFD packet to send [23:13:40]OFD Sender: No OFD packet to send [23:13:45]OFD Sender: No OFD packet to send [23:13:50]OFD Sender: No OFD packet to send [23:13:55]OFD Sender: No OFD packet to send [23:14:00]OFD Sender: No OFD packet to send [23:14:05]OFD Sender: No OFD packet to send [23:14:10]OFD Sender: No OFD packet to send [23:14:15]OFD Sender: No OFD packet to send [23:14:20]OFD Sender: No OFD packet to send [23:14:25]OFD Sender: No OFD packet to send [23:14:30]OFD Sender: No OFD packet to send [23:14:35]OFD Sender: No OFD packet to send [23:14:40]OFD Sender: No OFD packet to send [23:14:45]OFD Sender: No OFD packet to send [23:14:50]OFD Sender: No OFD packet to send [23:14:55]OFD Sender: No OFD packet to send [23:15:00]OFD Sender: No OFD packet to send [23:15:05]OFD Sender: No OFD packet to send [23:15:10]OFD Sender: No OFD packet to send [23:15:15]OFD Sender: No OFD packet to send [23:15:20]OFD Sender: No OFD packet to send [23:15:25]OFD Sender: No OFD packet to send [23:15:30]OFD Sender: No OFD packet to send [23:15:35]OFD Sender: No OFD packet to send [23:15:40]OFD Sender: No OFD packet to send [23:15:45]OFD Sender: No OFD packet to send [23:15:50]OFD Sender: No OFD packet to send [23:15:55]OFD Sender: No OFD packet to send [23:16:00]OFD Sender: No OFD packet to send [23:16:05]OFD Sender: No OFD packet to send [23:16:10]OFD Sender: No OFD packet to send [23:16:15]OFD Sender: No OFD packet to send [23:16:20]OFD Sender: No OFD packet to send [23:16:25]OFD Sender: No OFD packet to send [23:16:30]OFD Sender: No OFD packet to send [23:16:35]OFD Sender: No OFD packet to send [23:16:40]OFD Sender: No OFD packet to send [23:16:45]OFD Sender: No OFD packet to send [23:16:50]OFD Sender: No OFD packet to send [23:16:55]OFD Sender: No OFD packet to send [23:17:00]OFD Sender: No OFD packet to send [23:17:05]OFD Sender: No OFD packet to send [23:17:10]OFD Sender: No OFD packet to send [23:17:15]OFD Sender: No OFD packet to send [23:17:20]OFD Sender: No OFD packet to send [23:17:25]OFD Sender: No OFD packet to send [23:17:30]OFD Sender: No OFD packet to send [23:17:35]OFD Sender: No OFD packet to send [23:17:40]OFD Sender: No OFD packet to send [23:17:45]OFD Sender: No OFD packet to send [23:17:50]OFD Sender: No OFD packet to send [23:17:55]OFD Sender: No OFD packet to send [23:18:00]OFD Sender: No OFD packet to send [23:18:05]OFD Sender: No OFD packet to send [23:18:10]OFD Sender: No OFD packet to send [23:18:15]OFD Sender: No OFD packet to send [23:18:20]OFD Sender: No OFD packet to send [23:18:25]OFD Sender: No OFD packet to send [23:18:30]OFD Sender: No OFD packet to send [23:18:31]accept exits with 9 [23:18:31]New connection [23:18:31]New thread 3066785124 created [23:18:31]Thread 3066928484 joined [23:18:31]Waiting for new connection... [23:18:31] Sock 9.Parse request [23:18:31]Sock 9.Check first char [23:18:31]Sock 9.First char is OK [23:18:31]request: POST /json_proto HTTP/1.0 [23:18:31]Method: POST [23:18:31]URL: /json_proto [23:18:31]Method is POST - this is cgi request [23:18:31]url: /json_proto [23:18:31]query_string will be loaded in cgi processing [23:18:31]execute_cgi json_proto POST (null) [23:18:31]execute_cgi path=json_proto method=POST [23:18:31]POST find Content-Length [23:18:31]Host: 172.17.33.3:8080 [23:18:31]Content-Length: 1183 [23:18:31]Content-Type: application/json [23:18:31] [23:18:31]POST finish read [23:18:31]Found Content-Length = 1183 [23:18:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0440\u044B\u0431\u0430\u0435\u0432 \u042D. \u000A\u0421\u0447\u0435\u0442 N : (1)347134\u000A12.04.2024 23:00\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 13\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 6.080 x 64.30\u000A\u0418\u0422\u041E\u0413: 390.94\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3858972\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:18:31]execute_script... [23:18:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0440\u044B\u0431\u0430\u0435\u0432 \u042D. \u000A\u0421\u0447\u0435\u0442 N : (1)347134\u000A12.04.2024 23:00\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 13\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 6.080 x 64.30\u000A\u0418\u0422\u041E\u0413: 390.94\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3858972\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:18:31]POST & json_proto [23:18:31]process_json_proto [23:18:31]json parsed OK: [23:18:31]protocol is kg_v1.0 [23:18:31]action value=print_text [23:18:31]process_action print_text [23:18:31]cmd_print_text [23:18:31]ExternCall_PrintAddStr [23:18:31]wPrintStart [23:18:31]Write to MH i2c: 01 00 00 7A 13 8D [23:18:31]Write i2c OK [23:18:31]MH_I2C_Read... [23:18:31]Read from MH i2c: 01 [23:18:31]MH_I2C_Read... [23:18:31]Read from MH i2c: 01 07 00 [23:18:31]MH_I2C_Read... [23:18:31]Read from MH i2c: 01 07 00 7A 13 00 00 00 00 00 FF 0F A2 [23:18:31]RasterBufferAndPrint [23:18:31]line *****ТОВАРНЫЙ ЧЕК***** [23:18:31]line АЗС 108 [23:18:31]line Партнер нефть [23:18:31]line 02508201610067 [23:18:31]line Кассир : Сарыбаев Э. [23:18:31]line Счет N : (1)347134 [23:18:31]line 12.04.2024 23:00 [23:18:31]line ПРОДАЖА [23:18:31]line ТРК (МРК, ГНК): 13 [23:18:31]line Вид ГСМ : 2710124130 [23:18:31]line Аи-92-К-5 [23:18:31]line 6.080 x 64.30 [23:18:31]line ИТОГ: 390.94 [23:18:31]line Тип оплаты: Талоны: Партнер нефть [23:18:31]line 3858972 [23:18:31]line ______________________ [23:18:31]line (подпись) [23:18:31]written 0, free lines is 4095 [23:18:31]Write to MH i2c: 01 00 00 8E 13 A1 [23:18:31]Write i2c OK [23:18:31]MH_I2C_Read... [23:18:31]Read from MH i2c: 01 [23:18:31]MH_I2C_Read... [23:18:31]Read from MH i2c: 01 07 00 [23:18:31]MH_I2C_Read... [23:18:31]Read from MH i2c: 01 07 00 8E 13 00 00 00 00 00 12 0E C8 [23:18:31]RasterBufferAndPrint [23:18:31]line [23:18:31]line [23:18:31]line [23:18:31]line [23:18:31]line [23:18:31]written 0, free lines is 3604 [23:18:31]MH_Cut [23:18:31]Write to MH i2c: D1 01 00 95 13 01 7A [23:18:31]Write i2c OK [23:18:31]MH_I2C_Read... [23:18:31]Read from MH i2c: D1 [23:18:31]MH_I2C_Read... [23:18:31]Read from MH i2c: D1 01 00 [23:18:31]MH_I2C_Read... [23:18:31]Read from MH i2c: D1 01 00 95 13 00 79 [23:18:31]Write to MH i2c: 01 00 00 96 13 A9 [23:18:31]Write i2c OK [23:18:31]MH_I2C_Read... [23:18:32]*** Cut start [23:18:32]*** Partial cut [23:18:32]*** CUTSNS_PIN = 1 [23:18:32]*** CUTSNS_PIN = 0 [23:18:32]*** Brake cut motor [23:18:32]Read from MH i2c: 01 [23:18:32]MH_I2C_Read... [23:18:32]*** Stop cut motor [23:18:32]*** Cut end [23:18:32]Read from MH i2c: 01 07 00 [23:18:32]MH_I2C_Read... [23:18:32]Read from MH i2c: 01 07 00 96 13 00 00 00 00 00 FF 0F BE [23:18:32]process_action print_text done [23:18:32]requested_data is exist [23:18:32]produce_requested_data [23:18:32]requested_item fm.sn is exist - process it [23:18:32]wFMCommunicate request_size=4 [23:18:32]MH_SAM_APDU [23:18:32]CAPDU: 80 11 00 00 [23:18:32]Write to MH i2c: E2 08 00 97 13 80 11 00 00 00 00 00 00 24 [23:18:32]Write i2c OK [23:18:32]MH_I2C_Read... [23:18:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:18:32]Read from MH i2c: E2 [23:18:32]MH_I2C_Read... [23:18:32]Read from MH i2c: E2 17 00 [23:18:32]MH_I2C_Read... [23:18:32]Read from MH i2c: E2 17 00 97 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 73 [23:18:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [23:18:32]wFMCommunicate OK [23:18:32]requested_item fd.num is exist - process it [23:18:32]SAM_PROTO_GetFieldsCounters [23:18:32]wFMCommunicate request_size=4 [23:18:32]MH_SAM_APDU [23:18:32]CAPDU: 80 13 00 00 [23:18:32]Write to MH i2c: E2 08 00 98 13 80 13 00 00 00 00 00 00 27 [23:18:32]Write i2c OK [23:18:32]MH_I2C_Read... [23:18:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:18:32]Read from MH i2c: E2 [23:18:32]MH_I2C_Read... [23:18:32]Read from MH i2c: E2 62 00 [23:18:32]MH_I2C_Read... [23:18:32]Read from MH i2c: E2 62 00 98 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 73 70 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 71 [23:18:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 73 70 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 [23:18:32]wFMCommunicate OK [23:18:32]SAM_PROTO_GetFieldsCounters done [23:18:32]requested_item shift.num is exist - process it [23:18:32]requested_item shift.opened is exist - process it [23:18:32]req_shift_opened [23:18:32]FM_GetShiftState [23:18:32]SAM_PROTO_GetShiftState [23:18:32]wFMCommunicate request_size=4 [23:18:32]MH_SAM_APDU [23:18:32]CAPDU: 80 13 01 00 [23:18:32]Write to MH i2c: E2 08 00 99 13 80 13 01 00 00 00 00 00 29 [23:18:32]Write i2c OK [23:18:32]MH_I2C_Read... [23:18:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:18:32]Read from MH i2c: E2 [23:18:32]MH_I2C_Read... [23:18:32]Read from MH i2c: E2 0E 00 [23:18:32]MH_I2C_Read... [23:18:32]Read from MH i2c: E2 0E 00 99 13 00 09 00 01 17 88 19 66 00 00 00 00 90 00 53 [23:18:32]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [23:18:32]wFMCommunicate OK [23:18:32]SAM_PROTO_GetShiftState done [23:18:32]FM_GetShiftState done [23:18:32]req_shift_opened done [23:18:32]requested_item shift.open_date is exist - process it [23:18:32]req_shift_open_date [23:18:32]req_shift_open_date done [23:18:32]produce_requested_data done [23:18:32]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28787,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271} [23:18:32]process_action_free print_text [23:18:32]json_value_free [23:18:32]json_value_free done [23:18:32]process_json_proto returns [23:18:32]Send response to host [23:18:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28787,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271}}} [23:18:32]free response buf [23:18:32]execute_script done [23:18:32]execute_script returns [23:18:32]free content buf [23:18:32]Sock 9.Close socket [23:18:32]Sock 9.Thread stoped [23:18:35]OFD Sender: No OFD packet to send [23:18:40]OFD Sender: No OFD packet to send [23:18:45]OFD Sender: No OFD packet to send [23:18:50]OFD Sender: No OFD packet to send [23:18:55]OFD Sender: No OFD packet to send [23:19:00]OFD Sender: No OFD packet to send [23:19:05]OFD Sender: No OFD packet to send [23:19:10]OFD Sender: No OFD packet to send [23:19:15]OFD Sender: No OFD packet to send [23:19:20]OFD Sender: No OFD packet to send [23:19:25]OFD Sender: No OFD packet to send [23:19:30]OFD Sender: No OFD packet to send [23:19:35]OFD Sender: No OFD packet to send [23:19:40]OFD Sender: No OFD packet to send [23:19:45]OFD Sender: No OFD packet to send [23:19:50]OFD Sender: No OFD packet to send [23:19:55]OFD Sender: No OFD packet to send [23:20:00]OFD Sender: No OFD packet to send [23:20:05]OFD Sender: No OFD packet to send [23:20:10]OFD Sender: No OFD packet to send [23:20:15]OFD Sender: No OFD packet to send [23:20:20]OFD Sender: No OFD packet to send [23:20:25]OFD Sender: No OFD packet to send [23:20:30]OFD Sender: No OFD packet to send [23:20:35]OFD Sender: No OFD packet to send [23:20:40]OFD Sender: No OFD packet to send [23:20:45]OFD Sender: No OFD packet to send [23:20:50]OFD Sender: No OFD packet to send [23:20:55]OFD Sender: No OFD packet to send [23:21:00]OFD Sender: No OFD packet to send [23:21:05]OFD Sender: No OFD packet to send [23:21:10]OFD Sender: No OFD packet to send [23:21:15]OFD Sender: No OFD packet to send [23:21:20]OFD Sender: No OFD packet to send [23:21:25]OFD Sender: No OFD packet to send [23:21:30]OFD Sender: No OFD packet to send [23:21:35]OFD Sender: No OFD packet to send [23:21:40]OFD Sender: No OFD packet to send [23:21:45]OFD Sender: No OFD packet to send [23:21:50]OFD Sender: No OFD packet to send [23:21:55]OFD Sender: No OFD packet to send [23:22:00]OFD Sender: No OFD packet to send [23:22:05]OFD Sender: No OFD packet to send [23:22:10]OFD Sender: No OFD packet to send [23:22:15]OFD Sender: No OFD packet to send [23:22:20]OFD Sender: No OFD packet to send [23:22:25]OFD Sender: No OFD packet to send [23:22:30]OFD Sender: No OFD packet to send [23:22:35]OFD Sender: No OFD packet to send [23:22:40]OFD Sender: No OFD packet to send [23:22:45]OFD Sender: No OFD packet to send [23:22:50]OFD Sender: No OFD packet to send [23:22:55]OFD Sender: No OFD packet to send [23:23:00]OFD Sender: No OFD packet to send [23:23:05]OFD Sender: No OFD packet to send [23:23:10]OFD Sender: No OFD packet to send [23:23:15]OFD Sender: No OFD packet to send [23:23:20]OFD Sender: No OFD packet to send [23:23:25]OFD Sender: No OFD packet to send [23:23:30]OFD Sender: No OFD packet to send [23:23:35]OFD Sender: No OFD packet to send [23:23:40]OFD Sender: No OFD packet to send [23:23:45]OFD Sender: No OFD packet to send [23:23:50]OFD Sender: No OFD packet to send [23:23:55]OFD Sender: No OFD packet to send [23:24:00]OFD Sender: No OFD packet to send [23:24:05]OFD Sender: No OFD packet to send [23:24:10]OFD Sender: No OFD packet to send [23:24:15]OFD Sender: No OFD packet to send [23:24:20]OFD Sender: No OFD packet to send [23:24:25]OFD Sender: No OFD packet to send [23:24:30]OFD Sender: No OFD packet to send [23:24:35]OFD Sender: No OFD packet to send [23:24:40]OFD Sender: No OFD packet to send [23:24:45]OFD Sender: No OFD packet to send [23:24:50]OFD Sender: No OFD packet to send [23:24:55]OFD Sender: No OFD packet to send [23:25:00]OFD Sender: No OFD packet to send [23:25:05]OFD Sender: No OFD packet to send [23:25:10]OFD Sender: No OFD packet to send [23:25:15]OFD Sender: No OFD packet to send [23:25:20]OFD Sender: No OFD packet to send [23:25:25]OFD Sender: No OFD packet to send [23:25:30]OFD Sender: No OFD packet to send [23:25:35]OFD Sender: No OFD packet to send [23:25:40]OFD Sender: No OFD packet to send [23:25:45]OFD Sender: No OFD packet to send [23:25:50]OFD Sender: No OFD packet to send [23:25:55]OFD Sender: No OFD packet to send [23:26:00]OFD Sender: No OFD packet to send [23:26:05]OFD Sender: No OFD packet to send [23:26:10]OFD Sender: No OFD packet to send [23:26:15]OFD Sender: No OFD packet to send [23:26:20]OFD Sender: No OFD packet to send [23:26:25]OFD Sender: No OFD packet to send [23:26:30]OFD Sender: No OFD packet to send [23:26:35]OFD Sender: No OFD packet to send [23:26:40]OFD Sender: No OFD packet to send [23:26:45]OFD Sender: No OFD packet to send [23:26:50]OFD Sender: No OFD packet to send [23:26:55]OFD Sender: No OFD packet to send [23:27:00]OFD Sender: No OFD packet to send [23:27:05]OFD Sender: No OFD packet to send [23:27:10]OFD Sender: No OFD packet to send [23:27:15]OFD Sender: No OFD packet to send [23:27:20]OFD Sender: No OFD packet to send [23:27:25]OFD Sender: No OFD packet to send [23:27:30]OFD Sender: No OFD packet to send [23:27:35]OFD Sender: No OFD packet to send [23:27:40]OFD Sender: No OFD packet to send [23:27:45]OFD Sender: No OFD packet to send [23:27:50]OFD Sender: No OFD packet to send [23:27:55]OFD Sender: No OFD packet to send [23:28:00]OFD Sender: No OFD packet to send [23:28:05]OFD Sender: No OFD packet to send [23:28:10]OFD Sender: No OFD packet to send [23:28:15]OFD Sender: No OFD packet to send [23:28:20]OFD Sender: No OFD packet to send [23:28:25]OFD Sender: No OFD packet to send [23:28:30]OFD Sender: No OFD packet to send [23:28:35]OFD Sender: No OFD packet to send [23:28:40]OFD Sender: No OFD packet to send [23:28:45]OFD Sender: No OFD packet to send [23:28:50]OFD Sender: No OFD packet to send [23:28:55]OFD Sender: No OFD packet to send [23:29:00]OFD Sender: No OFD packet to send [23:29:05]OFD Sender: No OFD packet to send [23:29:10]OFD Sender: No OFD packet to send [23:29:15]OFD Sender: No OFD packet to send [23:29:20]OFD Sender: No OFD packet to send [23:29:25]OFD Sender: No OFD packet to send [23:29:30]OFD Sender: No OFD packet to send [23:29:35]OFD Sender: No OFD packet to send [23:29:40]OFD Sender: No OFD packet to send [23:29:45]OFD Sender: No OFD packet to send [23:29:50]OFD Sender: No OFD packet to send [23:29:55]OFD Sender: No OFD packet to send [23:30:00]OFD Sender: No OFD packet to send [23:30:05]OFD Sender: No OFD packet to send [23:30:10]OFD Sender: No OFD packet to send [23:30:15]OFD Sender: No OFD packet to send [23:30:20]OFD Sender: No OFD packet to send [23:30:25]OFD Sender: No OFD packet to send [23:30:30]OFD Sender: No OFD packet to send [23:30:35]OFD Sender: No OFD packet to send [23:30:40]OFD Sender: No OFD packet to send [23:30:45]OFD Sender: No OFD packet to send [23:30:50]OFD Sender: No OFD packet to send [23:30:55]OFD Sender: No OFD packet to send [23:31:00]OFD Sender: No OFD packet to send [23:31:05]OFD Sender: No OFD packet to send [23:31:10]OFD Sender: No OFD packet to send [23:31:15]OFD Sender: No OFD packet to send [23:31:20]OFD Sender: No OFD packet to send [23:31:25]OFD Sender: No OFD packet to send [23:31:30]OFD Sender: No OFD packet to send [23:31:35]OFD Sender: No OFD packet to send [23:31:40]OFD Sender: No OFD packet to send [23:31:45]OFD Sender: No OFD packet to send [23:31:50]OFD Sender: No OFD packet to send [23:31:55]OFD Sender: No OFD packet to send [23:32:00]OFD Sender: No OFD packet to send [23:32:05]OFD Sender: No OFD packet to send [23:32:10]OFD Sender: No OFD packet to send [23:32:15]OFD Sender: No OFD packet to send [23:32:20]OFD Sender: No OFD packet to send [23:32:23]int [23:32:23]Write to MH i2c: 01 00 00 9A 13 AD [23:32:23]*** FLAG_PRN_KEY set [23:32:23]Write i2c OK [23:32:23]MH_I2C_Read... [23:32:23]Read from MH i2c: 01 [23:32:23]MH_I2C_Read... [23:32:23]Read from MH i2c: 01 07 00 [23:32:23]MH_I2C_Read... [23:32:23]Read from MH i2c: 01 07 00 9A 13 00 08 00 00 00 FF 0F CA [23:32:23]state=0 [23:32:23]Key pressed [23:32:23]Feed [23:32:23]Write to MH i2c: D8 00 00 9B 13 85 [23:32:23]Write i2c OK [23:32:23]MH_I2C_Read... [23:32:23]Read from MH i2c: D8 [23:32:23]MH_I2C_Read... [23:32:23]Read from MH i2c: D8 01 00 [23:32:23]MH_I2C_Read... [23:32:23]Read from MH i2c: D8 01 00 9B 13 00 86 [23:32:23]int [23:32:23]Write to MH i2c: 01 00 00 9C 13 AF [23:32:23]Write i2c OK [23:32:23]MH_I2C_Read... [23:32:23]Read from MH i2c: 01 [23:32:23]MH_I2C_Read... [23:32:23]Read from MH i2c: 01 07 00 [23:32:23]MH_I2C_Read... [23:32:23]Read from MH i2c: 01 07 00 9C 13 00 48 00 00 00 3C 00 3A [23:32:23]state=2 [23:32:23]Key pressed [23:32:23]int [23:32:23]Write to MH i2c: 01 00 00 9D 13 B0 [23:32:23]*** FLAG_PRN_KEY reset [23:32:23]Write i2c OK [23:32:23]MH_I2C_Read... [23:32:23]Read from MH i2c: 01 [23:32:23]MH_I2C_Read... [23:32:23]Read from MH i2c: 01 07 00 [23:32:23]MH_I2C_Read... [23:32:23]Read from MH i2c: 01 07 00 9D 13 00 00 00 00 00 F7 0F BD [23:32:23]state=2 [23:32:23]Stop feed [23:32:25]OFD Sender: No OFD packet to send [23:32:30]OFD Sender: No OFD packet to send [23:32:35]OFD Sender: No OFD packet to send [23:32:40]OFD Sender: No OFD packet to send [23:32:46]OFD Sender: No OFD packet to send [23:32:51]OFD Sender: No OFD packet to send [23:32:56]OFD Sender: No OFD packet to send [23:33:01]OFD Sender: No OFD packet to send [23:33:06]OFD Sender: No OFD packet to send [23:33:11]OFD Sender: No OFD packet to send [23:33:16]OFD Sender: No OFD packet to send [23:33:21]OFD Sender: No OFD packet to send [23:33:26]OFD Sender: No OFD packet to send [23:33:31]OFD Sender: No OFD packet to send [23:33:36]OFD Sender: No OFD packet to send [23:33:41]OFD Sender: No OFD packet to send [23:33:46]OFD Sender: No OFD packet to send [23:33:51]OFD Sender: No OFD packet to send [23:33:56]OFD Sender: No OFD packet to send [23:34:01]OFD Sender: No OFD packet to send [23:34:06]OFD Sender: No OFD packet to send [23:34:11]OFD Sender: No OFD packet to send [23:34:16]OFD Sender: No OFD packet to send [23:34:21]OFD Sender: No OFD packet to send [23:34:26]OFD Sender: No OFD packet to send [23:34:31]OFD Sender: No OFD packet to send [23:34:36]OFD Sender: No OFD packet to send [23:34:41]OFD Sender: No OFD packet to send [23:34:46]OFD Sender: No OFD packet to send [23:34:51]OFD Sender: No OFD packet to send [23:34:56]OFD Sender: No OFD packet to send [23:35:01]OFD Sender: No OFD packet to send [23:35:06]OFD Sender: No OFD packet to send [23:35:11]OFD Sender: No OFD packet to send [23:35:16]OFD Sender: No OFD packet to send [23:35:21]OFD Sender: No OFD packet to send [23:35:26]OFD Sender: No OFD packet to send [23:35:31]OFD Sender: No OFD packet to send [23:35:36]OFD Sender: No OFD packet to send [23:35:41]OFD Sender: No OFD packet to send [23:35:46]OFD Sender: No OFD packet to send [23:35:51]OFD Sender: No OFD packet to send [23:35:56]OFD Sender: No OFD packet to send [23:35:57]accept exits with 7 [23:35:57]New connection [23:35:57]New thread 3066928484 created [23:35:57]Thread 3066785124 joined [23:35:57]Waiting for new connection... [23:35:57] Sock 7.Parse request [23:35:57]Sock 7.Check first char [23:35:57]Sock 7.First char is OK [23:35:57]request: POST /json_proto HTTP/1.0 [23:35:57]Method: POST [23:35:57]URL: /json_proto [23:35:57]Method is POST - this is cgi request [23:35:57]url: /json_proto [23:35:57]query_string will be loaded in cgi processing [23:35:57]execute_cgi json_proto POST (null) [23:35:57]execute_cgi path=json_proto method=POST [23:35:57]POST find Content-Length [23:35:57]Host: 172.17.33.3:8080 [23:35:57]Content-Length: 677 [23:35:57]Content-Type: application/json [23:35:57] [23:35:57]POST finish read [23:35:57]Found Content-Length = 677 [23:35:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347136", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 7.780, "sum" : 500.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:35:57]execute_script... [23:35: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)347136", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 7.780, "sum" : 500.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:35:57]POST & json_proto [23:35:57]process_json_proto [23:35:57]json parsed OK: [23:35:57]protocol is kg_v1.0 [23:35:57]action value=close_receipt [23:35:57]process_action close_receipt [23:35:57]cmd_close_receipt [23:35:57]MH_GetDate [23:35:57]Write to MH i2c: F0 00 00 9E 13 A0 [23:35:57]Write i2c OK [23:35:57]MH_I2C_Read... [23:35:57]Read from MH i2c: F0 [23:35:57]MH_I2C_Read... [23:35:57]Read from MH i2c: F0 09 00 [23:35:57]MH_I2C_Read... [23:35:57]Read from MH i2c: F0 09 00 9E 13 00 5F C5 19 66 23 5B 8F 65 BE [23:35:57]GetLastDocTimeStamp 1712963233 [23:35:57]current date 1712964959 [23:35:57]FM_GetShiftState [23:35:57]SAM_PROTO_GetShiftState [23:35:57]wFMCommunicate request_size=4 [23:35:57]MH_SAM_APDU [23:35:57]CAPDU: 80 13 01 00 [23:35:57]Write to MH i2c: E2 08 00 9F 13 80 13 01 00 00 00 00 00 2F [23:35:57]Write i2c OK [23:35:57]MH_I2C_Read... [23:35:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:35:57]Read from MH i2c: E2 [23:35:57]MH_I2C_Read... [23:35:57]Read from MH i2c: E2 0E 00 [23:35:57]MH_I2C_Read... [23:35:57]Read from MH i2c: E2 0E 00 9F 13 00 09 00 01 17 88 19 66 00 00 00 00 90 00 59 [23:35:57]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [23:35:57]wFMCommunicate OK [23:35:57]SAM_PROTO_GetShiftState done [23:35:57]FM_GetShiftState done [23:35:57]opened in 1712949271 [23:35:57]opened+sec_in_day 1713035671 [23:35:57]quantity*price = 50025 [23:35:57]sum+1 = 50026 [23:35:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 62 12.04.2024 23:35 Смена: 114 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28788 ФПД: 216382353356538 1/tax-web-control/client/api/v1/ticket?date=20240412T233559&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28788&fm=216382353356538&tin=02508201610067®Number=0000138879044617&sum=50000 [23:35:58]StoreToDocumentArchive [23:35:58]shift 114 fd 28788 [23:35:58]save to /storage/0114/doc_00028788 [23:35:58]save last doc name /storage/0114/doc_00028788 to /storage/kkm_last_doc_name [23:35:58]save OK [23:35:58]Clear old archive folders... [23:35:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:35:58]tlvbuf is B6EBBE60 [23:35:58]SAM_PROTO_ClearQueue [23:35:58]wFMCommunicate request_size=4 [23:35:58]MH_SAM_APDU [23:35:58]CAPDU: 80 09 00 00 [23:35:58]Write to MH i2c: E2 08 00 AC 13 80 09 00 00 00 00 00 00 31 [23:35:58]Write i2c OK [23:35:58]MH_I2C_Read... [23:35:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:35:58]Read from MH i2c: E2 [23:35:58]MH_I2C_Read... [23:35:58]Read from MH i2c: E2 03 00 [23:35:58]MH_I2C_Read... [23:35:58]Read from MH i2c: E2 03 00 AC 13 00 90 00 33 [23:35:58]RAPDU: 90 00 [23:35:58]wFMCommunicate OK [23:35:58]SAM_PROTO_ClearQueue done [23:35:58]KKMCreateOFDPacket [23:35:58]OFDProtocolAddRootSTLVToBuf [23:35:58]FM_MakeSignedData [23:35:58]FM_MakeSignedData [23:35:58]SAM_PROTO_SignData [23:35:58]wFMCommunicate request_size=4 [23:35:58]MH_SAM_APDU [23:35:58]CAPDU: 80 0D 01 02 [23:35:58]Write to MH i2c: E2 08 00 AD 13 80 0D 01 02 00 00 00 00 39 [23:35:58]Write i2c OK [23:35:58]MH_I2C_Read... [23:35:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:35:58]Read from MH i2c: E2 [23:35:58]MH_I2C_Read... [23:35:58]Read from MH i2c: E2 03 00 [23:35:58]MH_I2C_Read... [23:35:58]Read from MH i2c: E2 03 00 AD 13 00 90 00 34 [23:35:58]RAPDU: 90 00 [23:35:58]wFMCommunicate OK [23:35:58]wFMCommunicate request_size=255 [23:35:58]MH_SAM_APDU [23:35:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 5F C5 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 74 70 00 00 35 04 06 00 C4 [23:35:58]Write to MH i2c: E2 02 01 AE 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 5F C5 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 74 70 00 00 35 04 06 00 C4 00 00 F6 [23:35:58]Write i2c OK [23:35:58]MH_I2C_Read... [23:35:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:35:58]Read from MH i2c: E2 [23:35:58]MH_I2C_Read... [23:35:58]Read from MH i2c: E2 03 00 [23:35:58]MH_I2C_Read... [23:35:58]Read from MH i2c: E2 03 00 AE 13 00 90 00 35 [23:35:58]RAPDU: 90 00 [23:35:58]wFMCommunicate OK [23:35:58]wFMCommunicate request_size=10 [23:35:58]MH_SAM_APDU [23:35:58]CAPDU: 80 0D 02 02 05 CC 71 4E B6 FA [23:35:58]Write to MH i2c: E2 0D 00 AF 13 80 0D 02 02 05 00 CC 71 4E B6 FA 00 00 81 [23:35:58]Write i2c OK [23:35:58]MH_I2C_Read... [23:35:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:35:58]Read from MH i2c: E2 [23:35:58]MH_I2C_Read... [23:35:58]Read from MH i2c: E2 03 00 [23:35:58]MH_I2C_Read... [23:35:58]Read from MH i2c: E2 03 00 AF 13 00 90 00 36 [23:35:58]RAPDU: 90 00 [23:35:58]wFMCommunicate OK [23:35:58]wFMCommunicate request_size=4 [23:35:58]MH_SAM_APDU [23:35:58]CAPDU: 80 0D 03 02 [23:35:58]Write to MH i2c: E2 08 00 B0 13 80 0D 03 02 00 00 00 00 3E [23:35:58]Write i2c OK [23:35:58]MH_I2C_Read... [23:35:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:35:59]Read from MH i2c: E2 [23:35:59]MH_I2C_Read... [23:35:59]Read from MH i2c: E2 0B 00 [23:35:59]MH_I2C_Read... [23:35:59]Read from MH i2c: E2 0B 00 B0 13 00 1C F0 B0 4B E6 07 48 AA 90 00 25 [23:35:59]RAPDU: 1C F0 B0 4B E6 07 48 AA 90 00 [23:35:59]wFMCommunicate OK [23:35:59]SAM_PROTO_SignData done [23:35:59]FM_MakeSignedData done [23:35:59]CreateOFDProtocolMessage [23:35:59]wFMCommunicate request_size=4 [23:35:59]MH_SAM_APDU [23:35:59]CAPDU: 80 11 00 00 [23:35:59]Write to MH i2c: E2 08 00 B1 13 80 11 00 00 00 00 00 00 3E [23:35:59]Write i2c OK [23:35:59]MH_I2C_Read... [23:35:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:35:59]Read from MH i2c: E2 [23:35:59]MH_I2C_Read... [23:35:59]Read from MH i2c: E2 17 00 [23:35:59]MH_I2C_Read... [23:35:59]Read from MH i2c: E2 17 00 B1 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 8D [23:35:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [23:35:59]wFMCommunicate OK [23:35:59]CreateOFDProtocolMessage done [23:35:59]OFDSenderStorePacket 28788 [23:35:59]StoreOFDPacket docnum=28788 [23:35:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 EC 7F 07 01 B4 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 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 5F C5 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 74 70 00 00 35 04 06 00 C4 CC 71 4E B6 FA 1C F0 B0 4B E6 07 48 AA [23:35:59]CheckFolder [23:35:59]dirname=/storage/ofd_packets [23:35:59]CheckFolder done [23:35:59]ProducePacketName [23:35:59]name=ofd_packets/00028788 [23:35:59]NVStorageSaveData ofd_packets/00028788 [23:35:59]File name is /storage/ofd_packets/00028788 [23:35:59]Write 301 bytes [23:35:59]NVStorageSaveData done [23:35:59]OFDSenderStorePacket done [23:35:59]KKMCreateOFDPacket done [23:35:59]NVStorageSaveData kkm_last_timestamp [23:35:59]File name is /storage/kkm_last_timestamp [23:35:59]Write 4 bytes [23:35:59]NVStorageSaveData done [23:35:59]ExternCall_PrintAddStr [23:35:59]wPrintStart [23:35:59]Write to MH i2c: 01 00 00 B2 13 C5 [23:35:59]Write i2c OK [23:35:59]MH_I2C_Read... [23:35:59]Read from MH i2c: 01 [23:35:59]MH_I2C_Read... [23:35:59]Read from MH i2c: 01 07 00 [23:35:59]MH_I2C_Read... [23:35:59]Read from MH i2c: 01 07 00 B2 13 00 00 00 00 00 FF 0F DA [23:35:59]RasterBufferAndPrint [23:35:59]line Счет N : (1)347136 [23:35:59]line ИНН: 02508201610067 [23:35:59]line Контрольно-Кассовый Чек [23:35:59]line ПРОДАЖА [23:35:59]line ТРК (МРК, ГНК) : 42 [23:35:59]line Товар: 2710124130 [23:35:59]line Аи-92-К-5 [23:35:59]line 7.780 * 64.30 [23:35:59]line = 500.25 [23:35:59]line НДС 12% НСП 1% [23:35:59]line > о реализуемом товаре [23:35:59]line ОКРУГЛЕНИЕ: -0.25 [23:35:59]line ИТОГО: 500.00 [23:35:59]line Внесено: 500.00 [23:35:59]line СДАЧА: 0.00 [23:35:59]line НСП 1% : 4.43 [23:35:59]line НДС 12% : 53.12 [23:35:59]line Наличными: 500.00 [23:35:59]line Безнал.: 0.00 [23:35:59]line Место: АЗС № 108 "Партнер Нефть" [23:35:59]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [23:35:59]line СНО: Общий режим [23:35:59]line Чек 62 12.04.2024 23:35 [23:35:59]line Смена: 114 ФФД: 1.0 [23:35:59]line ЗНМ: 0300000027 [23:35:59]line РНМ: 0000138879044617 [23:35:59]line Версия ККМ: 001 [23:35:59]line ФМ: 0000000000963154 [23:35:59]line ФД: 28788 [23:35:59]line ФПД: 216382353356538 [23:35:59]line 1/tax-web-control/client/api/v1/ticket?date=20240412T233559&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28788&fm=216382353356538&tin=02508201610067®Number=0000138879044617&sum=50000 [23:35:59]OFD Sender: Processing packet 28788 [packets to send 8, broken 7] [23:35:59]ProducePacketName [23:35:59]name=ofd_packets/00028788 [23:35:59]OFD Sender: To server: pG, [23:35:59]CommunicateWithHost lk.salyk.kg:30040 [23:35:59]ConnectInit lk.salyk.kg [23:35:59]written 0, free lines is 4095 [23:35:59]Connected sock=10 [23:35:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 EC 7F 07 01 B4 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 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 5F C5 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 74 70 00 00 35 04 06 00 C4 CC 71 4E B6 FA 1C F0 B0 4B E6 07 48 AA [23:35:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 08 A7 47 00 B4 09 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 74 70 00 00 F4 03 04 00 07 70 19 66 B6 04 01 00 00 AA 99 C5 34 5C 8D 3B DE [23:35:59]CommunicateWithHost err = 0 [23:35:59]CheckOFDResponse [23:35:59]1017 (14) - 77093643461234 [23:35:59]1041 (16) - 0000000000963154 [23:35:59]1040 (4) - 28788 [23:35:59]1012 (4) - 12.04.2024 17:31 [23:35:59]1206 (1) - 0 [23:35:59]OFD Sender: Remove packet 28788 [23:35:59]ProducePacketName [23:35:59]name=ofd_packets/00028788 [23:35:59]NVStorageDeleteData [23:35:59]Write to MH i2c: 01 00 00 DC 13 EF [23:35:59]Write i2c OK [23:35:59]MH_I2C_Read... [23:35:59]Read from MH i2c: 01 [23:35:59]MH_I2C_Read... [23:35:59]Read from MH i2c: 01 07 00 [23:35:59]MH_I2C_Read... [23:35:59]Read from MH i2c: 01 07 00 DC 13 00 00 00 00 00 CE 0C D0 [23:35:59]RasterBufferAndPrint [23:35:59]line [23:35:59]line [23:35:59]line [23:35:59]line [23:35:59]line [23:35:59]written 0, free lines is 3284 [23:35:59]MH_Cut [23:35:59]Write to MH i2c: D1 01 00 E3 13 01 C8 [23:35:59]Write i2c OK [23:35:59]MH_I2C_Read... [23:35:59]Read from MH i2c: D1 [23:35:59]MH_I2C_Read... [23:35:59]Read from MH i2c: D1 01 00 [23:35:59]MH_I2C_Read... [23:35:59]Read from MH i2c: D1 01 00 E3 13 00 C7 [23:35:59]Write to MH i2c: 01 00 00 E4 13 F7 [23:35:59]Write i2c OK [23:35:59]MH_I2C_Read... [23:36:00]OFD Sender: No OFD packet to send [23:36:00]*** Cut start [23:36:00]*** Partial cut [23:36:00]*** CUTSNS_PIN = 1 [23:36:00]*** CUTSNS_PIN = 0 [23:36:00]*** Brake cut motor [23:36:01]Read from MH i2c: 01 [23:36:01]MH_I2C_Read... [23:36:01]*** Stop cut motor [23:36:01]*** Cut end [23:36:01]Read from MH i2c: 01 07 00 [23:36:01]MH_I2C_Read... [23:36:01]Read from MH i2c: 01 07 00 E4 13 00 00 00 00 00 FF 0F 0C [23:36:01]process_action close_receipt done [23:36:01]requested_data is exist [23:36:01]produce_requested_data [23:36:01]requested_item fm.sn is exist - process it [23:36:01]wFMCommunicate request_size=4 [23:36:01]MH_SAM_APDU [23:36:01]CAPDU: 80 11 00 00 [23:36:01]Write to MH i2c: E2 08 00 E5 13 80 11 00 00 00 00 00 00 72 [23:36:01]Write i2c OK [23:36:01]MH_I2C_Read... [23:36:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:36:01]Read from MH i2c: E2 [23:36:01]MH_I2C_Read... [23:36:01]Read from MH i2c: E2 17 00 [23:36:01]MH_I2C_Read... [23:36:01]Read from MH i2c: E2 17 00 E5 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 C1 [23:36:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [23:36:01]wFMCommunicate OK [23:36:01]requested_item fd.num is exist - process it [23:36:01]SAM_PROTO_GetFieldsCounters [23:36:01]wFMCommunicate request_size=4 [23:36:01]MH_SAM_APDU [23:36:01]CAPDU: 80 13 00 00 [23:36:01]Write to MH i2c: E2 08 00 E6 13 80 13 00 00 00 00 00 00 75 [23:36:01]Write i2c OK [23:36:01]MH_I2C_Read... [23:36:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:36:01]Read from MH i2c: E2 [23:36:01]MH_I2C_Read... [23:36:01]Read from MH i2c: E2 62 00 [23:36:01]MH_I2C_Read... [23:36:01]Read from MH i2c: E2 62 00 E6 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 74 70 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 C3 [23:36:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 74 70 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 [23:36:01]wFMCommunicate OK [23:36:01]SAM_PROTO_GetFieldsCounters done [23:36:01]requested_item shift.num is exist - process it [23:36:01]requested_item shift.opened is exist - process it [23:36:01]req_shift_opened [23:36:01]FM_GetShiftState [23:36:01]SAM_PROTO_GetShiftState [23:36:01]wFMCommunicate request_size=4 [23:36:01]MH_SAM_APDU [23:36:01]CAPDU: 80 13 01 00 [23:36:01]Write to MH i2c: E2 08 00 E7 13 80 13 01 00 00 00 00 00 77 [23:36:01]Write i2c OK [23:36:01]MH_I2C_Read... [23:36:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:36:01]Read from MH i2c: E2 [23:36:01]MH_I2C_Read... [23:36:01]Read from MH i2c: E2 0E 00 [23:36:01]MH_I2C_Read... [23:36:01]Read from MH i2c: E2 0E 00 E7 13 00 09 00 01 17 88 19 66 00 00 00 00 90 00 A1 [23:36:01]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [23:36:01]wFMCommunicate OK [23:36:01]SAM_PROTO_GetShiftState done [23:36:01]FM_GetShiftState done [23:36:01]req_shift_opened done [23:36:01]requested_item shift.open_date is exist - process it [23:36:01]req_shift_open_date [23:36:01]req_shift_open_date done [23:36:01]produce_requested_data done [23:36:01]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28788,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271} [23:36:01]process_action_free close_receipt [23:36:01]json_value_free [23:36:01]json_value_free done [23:36:01]process_json_proto returns [23:36:01]Send response to host [23:36:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28788,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271}}} [23:36:01]free response buf [23:36:01]execute_script done [23:36:01]execute_script returns [23:36:01]free content buf [23:36:01]Sock 7.Close socket [23:36:01]Sock 7.Thread stoped [23:36:05]OFD Sender: No OFD packet to send [23:36:05]accept exits with 9 [23:36:05]New connection [23:36:05]New thread 3066785124 created [23:36:05]Thread 3066928484 joined [23:36:05]Waiting for new connection... [23:36:05] Sock 9.Parse request [23:36:05]Sock 9.Check first char [23:36:05]Sock 9.First char is OK [23:36:05]request: POST /json_proto HTTP/1.0 [23:36:05]Method: POST [23:36:05]URL: /json_proto [23:36:05]Method is POST - this is cgi request [23:36:05]url: /json_proto [23:36:05]query_string will be loaded in cgi processing [23:36:05]execute_cgi json_proto POST (null) [23:36:05]execute_cgi path=json_proto method=POST [23:36:05]POST find Content-Length [23:36:05]Host: 172.17.33.3:8080 [23:36:05]Content-Length: 677 [23:36:05]Content-Type: application/json [23:36:05] [23:36:05]POST finish read [23:36:05]Found Content-Length = 677 [23:36:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347135", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 5.760, "sum" : 370.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 370.00, "total" : 370.00, "payments": [ { "type": 0, "sum" : 370.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:36:05]execute_script... [23:36: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)347135", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 5.760, "sum" : 370.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 370.00, "total" : 370.00, "payments": [ { "type": 0, "sum" : 370.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:36:05]POST & json_proto [23:36:05]process_json_proto [23:36:05]json parsed OK: [23:36:05]protocol is kg_v1.0 [23:36:05]action value=close_receipt [23:36:05]process_action close_receipt [23:36:05]cmd_close_receipt [23:36:05]MH_GetDate [23:36:05]Write to MH i2c: F0 00 00 E8 13 EA [23:36:05]Write i2c OK [23:36:05]MH_I2C_Read... [23:36:05]Read from MH i2c: F0 [23:36:05]MH_I2C_Read... [23:36:05]Read from MH i2c: F0 09 00 [23:36:05]MH_I2C_Read... [23:36:05]Read from MH i2c: F0 09 00 E8 13 00 67 C5 19 66 23 5B 8F 65 10 [23:36:05]GetLastDocTimeStamp 1712964959 [23:36:05]current date 1712964967 [23:36:05]FM_GetShiftState [23:36:05]SAM_PROTO_GetShiftState [23:36:05]wFMCommunicate request_size=4 [23:36:05]MH_SAM_APDU [23:36:05]CAPDU: 80 13 01 00 [23:36:05]Write to MH i2c: E2 08 00 E9 13 80 13 01 00 00 00 00 00 79 [23:36:05]Write i2c OK [23:36:05]MH_I2C_Read... [23:36:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:36:05]Read from MH i2c: E2 [23:36:05]MH_I2C_Read... [23:36:05]Read from MH i2c: E2 0E 00 [23:36:05]MH_I2C_Read... [23:36:05]Read from MH i2c: E2 0E 00 E9 13 00 09 00 01 17 88 19 66 00 00 00 00 90 00 A3 [23:36:05]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [23:36:05]wFMCommunicate OK [23:36:05]SAM_PROTO_GetShiftState done [23:36:05]FM_GetShiftState done [23:36:05]opened in 1712949271 [23:36:05]opened+sec_in_day 1713035671 [23:36:05]quantity*price = 37036 [23:36:05]sum+1 = 37038 [23:36:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 370.00 Внесено: 370.00 СДАЧА: 0.00 НСП 1% : 3.28 НДС 12% : 39.33 Наличными: 370.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 63 12.04.2024 23:36 Смена: 114 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28789 ФПД: 152160813575815 1/tax-web-control/client/api/v1/ticket?date=20240412T233607&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28789&fm=152160813575815&tin=02508201610067®Number=0000138879044617&sum=37000 [23:36:06]StoreToDocumentArchive [23:36:06]shift 114 fd 28789 [23:36:06]save to /storage/0114/doc_00028789 [23:36:06]save last doc name /storage/0114/doc_00028789 to /storage/kkm_last_doc_name [23:36:06]save OK [23:36:06]Clear old archive folders... [23:36:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:36:06]tlvbuf is 011E7B00 [23:36:06]SAM_PROTO_ClearQueue [23:36:06]wFMCommunicate request_size=4 [23:36:06]MH_SAM_APDU [23:36:06]CAPDU: 80 09 00 00 [23:36:06]Write to MH i2c: E2 08 00 F6 13 80 09 00 00 00 00 00 00 7B [23:36:06]Write i2c OK [23:36:06]MH_I2C_Read... [23:36:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:36:07]Read from MH i2c: E2 [23:36:07]MH_I2C_Read... [23:36:07]Read from MH i2c: E2 03 00 [23:36:07]MH_I2C_Read... [23:36:07]Read from MH i2c: E2 03 00 F6 13 00 90 00 7D [23:36:07]RAPDU: 90 00 [23:36:07]wFMCommunicate OK [23:36:07]SAM_PROTO_ClearQueue done [23:36:07]KKMCreateOFDPacket [23:36:07]OFDProtocolAddRootSTLVToBuf [23:36:07]FM_MakeSignedData [23:36:07]FM_MakeSignedData [23:36:07]SAM_PROTO_SignData [23:36:07]wFMCommunicate request_size=4 [23:36:07]MH_SAM_APDU [23:36:07]CAPDU: 80 0D 01 02 [23:36:07]Write to MH i2c: E2 08 00 F7 13 80 0D 01 02 00 00 00 00 83 [23:36:07]Write i2c OK [23:36:07]MH_I2C_Read... [23:36:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:36:07]Read from MH i2c: E2 [23:36:07]MH_I2C_Read... [23:36:07]Read from MH i2c: E2 03 00 [23:36:07]MH_I2C_Read... [23:36:07]Read from MH i2c: E2 03 00 F7 13 00 90 00 7E [23:36:07]RAPDU: 90 00 [23:36:07]wFMCommunicate OK [23:36:07]wFMCommunicate request_size=255 [23:36:07]MH_SAM_APDU [23:36:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 80 16 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 AD 90 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D 0F 00 00 00 00 07 04 06 00 88 90 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 67 C5 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 75 70 00 00 35 04 06 00 8A [23:36:07]Write to MH i2c: E2 02 01 F8 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 80 16 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 AD 90 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D 0F 00 00 00 00 07 04 06 00 88 90 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 67 C5 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 75 70 00 00 35 04 06 00 8A 00 00 64 [23:36:07]Write i2c OK [23:36:07]MH_I2C_Read... [23:36:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:36:07]Read from MH i2c: E2 [23:36:07]MH_I2C_Read... [23:36:07]Read from MH i2c: E2 03 00 [23:36:07]MH_I2C_Read... [23:36:07]Read from MH i2c: E2 03 00 F8 13 00 90 00 7F [23:36:07]RAPDU: 90 00 [23:36:07]wFMCommunicate OK [23:36:07]wFMCommunicate request_size=10 [23:36:07]MH_SAM_APDU [23:36:07]CAPDU: 80 0D 02 02 05 63 B3 3D EE 87 [23:36:07]Write to MH i2c: E2 0D 00 F9 13 80 0D 02 02 05 00 63 B3 3D EE 87 00 00 58 [23:36:07]Write i2c OK [23:36:07]MH_I2C_Read... [23:36:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:36:07]Read from MH i2c: E2 [23:36:07]MH_I2C_Read... [23:36:07]Read from MH i2c: E2 03 00 [23:36:07]MH_I2C_Read... [23:36:07]Read from MH i2c: E2 03 00 F9 13 00 90 00 80 [23:36:07]RAPDU: 90 00 [23:36:07]wFMCommunicate OK [23:36:07]wFMCommunicate request_size=4 [23:36:07]MH_SAM_APDU [23:36:07]CAPDU: 80 0D 03 02 [23:36:07]Write to MH i2c: E2 08 00 FA 13 80 0D 03 02 00 00 00 00 88 [23:36:07]Write i2c OK [23:36:07]MH_I2C_Read... [23:36:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:36:07]Read from MH i2c: E2 [23:36:07]MH_I2C_Read... [23:36:07]Read from MH i2c: E2 0B 00 [23:36:07]MH_I2C_Read... [23:36:07]Read from MH i2c: E2 0B 00 FA 13 00 92 1D 81 CC 24 1D F2 76 90 00 2E [23:36:07]RAPDU: 92 1D 81 CC 24 1D F2 76 90 00 [23:36:07]wFMCommunicate OK [23:36:07]SAM_PROTO_SignData done [23:36:07]FM_MakeSignedData done [23:36:07]CreateOFDProtocolMessage [23:36:07]wFMCommunicate request_size=4 [23:36:07]MH_SAM_APDU [23:36:07]CAPDU: 80 11 00 00 [23:36:07]Write to MH i2c: E2 08 00 FB 13 80 11 00 00 00 00 00 00 88 [23:36:07]Write i2c OK [23:36:07]MH_I2C_Read... [23:36:07]Read from MH i2c: E2 [23:36:07]MH_I2C_Read... [23:36:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:36:07]Read from MH i2c: E2 17 00 [23:36:07]MH_I2C_Read... [23:36:07]Read from MH i2c: E2 17 00 FB 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D7 [23:36:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [23:36:07]wFMCommunicate OK [23:36:07]CreateOFDProtocolMessage done [23:36:07]OFDSenderStorePacket 28789 [23:36:07]StoreOFDPacket docnum=28789 [23:36:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 54 46 07 01 39 4D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 80 16 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 AD 90 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D 0F 00 00 00 00 07 04 06 00 88 90 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 67 C5 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 75 70 00 00 35 04 06 00 8A 63 B3 3D EE 87 92 1D 81 CC 24 1D F2 76 [23:36:07]CheckFolder [23:36:07]dirname=/storage/ofd_packets [23:36:07]CheckFolder done [23:36:07]ProducePacketName [23:36:07]name=ofd_packets/00028789 [23:36:07]NVStorageSaveData ofd_packets/00028789 [23:36:07]File name is /storage/ofd_packets/00028789 [23:36:07]Write 301 bytes [23:36:07]NVStorageSaveData done [23:36:07]OFDSenderStorePacket done [23:36:07]KKMCreateOFDPacket done [23:36:07]NVStorageSaveData kkm_last_timestamp [23:36:07]File name is /storage/kkm_last_timestamp [23:36:07]Write 4 bytes [23:36:07]NVStorageSaveData done [23:36:07]ExternCall_PrintAddStr [23:36:07]wPrintStart [23:36:07]Write to MH i2c: 01 00 00 FC 13 0F [23:36:07]Write i2c OK [23:36:07]MH_I2C_Read... [23:36:07]Read from MH i2c: 01 [23:36:07]MH_I2C_Read... [23:36:07]Read from MH i2c: 01 07 00 [23:36:07]MH_I2C_Read... [23:36:07]Read from MH i2c: 01 07 00 FC 13 00 00 00 00 00 FF 0F 24 [23:36:07]RasterBufferAndPrint [23:36:07]line Счет N : (1)347135 [23:36:07]line ИНН: 02508201610067 [23:36:07]line Контрольно-Кассовый Чек [23:36:07]line ПРОДАЖА [23:36:07]line ТРК (МРК, ГНК) : 32 [23:36:07]line Товар: 2710124130 [23:36:07]line Аи-92-К-5 [23:36:07]line 5.760 * 64.30 [23:36:07]line = 370.37 [23:36:07]line НДС 12% НСП 1% [23:36:07]line > о реализуемом товаре [23:36:07]line ОКРУГЛЕНИЕ: -0.37 [23:36:07]line ИТОГО: 370.00 [23:36:07]line Внесено: 370.00 [23:36:07]line СДАЧА: 0.00 [23:36:07]line НСП 1% : 3.28 [23:36:07]line НДС 12% : 39.33 [23:36:07]line Наличными: 370.00 [23:36:07]line Безнал.: 0.00 [23:36:07]line Место: АЗС № 108 "Партнер Нефть" [23:36:07]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [23:36:07]line СНО: Общий режим [23:36:07]line Чек 63 12.04.2024 23:36 [23:36:07]line Смена: 114 ФФД: 1.0 [23:36:07]line ЗНМ: 0300000027 [23:36:07]line РНМ: 0000138879044617 [23:36:07]line Версия ККМ: 001 [23:36:07]line ФМ: 0000000000963154 [23:36:07]line ФД: 28789 [23:36:07]line ФПД: 152160813575815 [23:36:07]line 1/tax-web-control/client/api/v1/ticket?date=20240412T233607&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28789&fm=152160813575815&tin=02508201610067®Number=0000138879044617&sum=37000 [23:36:07]OFD Sender: Processing packet 28789 [packets to send 8, broken 7] [23:36:07]ProducePacketName [23:36:07]name=ofd_packets/00028789 [23:36:07]OFD Sender: To server: pG, [23:36:07]CommunicateWithHost lk.salyk.kg:30040 [23:36:07]ConnectInit lk.salyk.kg [23:36:07]written 0, free lines is 4095 [23:36:07]Connected sock=10 [23:36:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 54 46 07 01 39 4D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 80 16 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 AD 90 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D 0F 00 00 00 00 07 04 06 00 88 90 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 67 C5 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 75 70 00 00 35 04 06 00 8A 63 B3 3D EE 87 92 1D 81 CC 24 1D F2 76 [23:36:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 4E 36 47 00 BF C7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 75 70 00 00 F4 03 04 00 10 70 19 66 B6 04 01 00 00 95 44 AC C7 4F AD E4 65 [23:36:07]CommunicateWithHost err = 0 [23:36:07]CheckOFDResponse [23:36:07]1017 (14) - 77093643461234 [23:36:07]1041 (16) - 0000000000963154 [23:36:07]1040 (4) - 28789 [23:36:07]1012 (4) - 12.04.2024 17:32 [23:36:07]1206 (1) - 0 [23:36:07]OFD Sender: Remove packet 28789 [23:36:07]ProducePacketName [23:36:07]name=ofd_packets/00028789 [23:36:07]NVStorageDeleteData [23:36:07]Write to MH i2c: 01 00 00 26 14 3A [23:36:07]Write i2c OK [23:36:07]MH_I2C_Read... [23:36:07]Read from MH i2c: 01 [23:36:08]MH_I2C_Read... [23:36:08]Read from MH i2c: 01 07 00 [23:36:08]MH_I2C_Read... [23:36:08]Read from MH i2c: 01 07 00 26 14 00 00 00 00 00 DC 0C 29 [23:36:08]RasterBufferAndPrint [23:36:08]line [23:36:08]line [23:36:08]line [23:36:08]line [23:36:08]line [23:36:08]written 0, free lines is 3304 [23:36:08]MH_Cut [23:36:08]Write to MH i2c: D1 01 00 2D 14 01 13 [23:36:08]Write i2c OK [23:36:08]MH_I2C_Read... [23:36:08]Read from MH i2c: D1 [23:36:08]MH_I2C_Read... [23:36:08]Read from MH i2c: D1 01 00 [23:36:08]MH_I2C_Read... [23:36:08]Read from MH i2c: D1 01 00 2D 14 00 12 [23:36:08]Write to MH i2c: 01 00 00 2E 14 42 [23:36:08]Write i2c OK [23:36:08]MH_I2C_Read... [23:36:08]OFD Sender: No OFD packet to send [23:36:08]*** Cut start [23:36:08]*** Partial cut [23:36:08]*** CUTSNS_PIN = 1 [23:36:08]*** CUTSNS_PIN = 0 [23:36:09]*** Brake cut motor [23:36:09]Read from MH i2c: 01 [23:36:09]MH_I2C_Read... [23:36:09]*** Stop cut motor [23:36:09]*** Cut end [23:36:09]Read from MH i2c: 01 07 00 [23:36:09]MH_I2C_Read... [23:36:09]Read from MH i2c: 01 07 00 2E 14 00 00 00 00 00 FF 0F 57 [23:36:09]process_action close_receipt done [23:36:09]requested_data is exist [23:36:09]produce_requested_data [23:36:09]requested_item fm.sn is exist - process it [23:36:09]wFMCommunicate request_size=4 [23:36:09]MH_SAM_APDU [23:36:09]CAPDU: 80 11 00 00 [23:36:09]Write to MH i2c: E2 08 00 2F 14 80 11 00 00 00 00 00 00 BD [23:36:09]Write i2c OK [23:36:09]MH_I2C_Read... [23:36:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:36:09]Read from MH i2c: E2 [23:36:09]MH_I2C_Read... [23:36:09]Read from MH i2c: E2 17 00 [23:36:09]MH_I2C_Read... [23:36:09]Read from MH i2c: E2 17 00 2F 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 0C [23:36:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [23:36:09]wFMCommunicate OK [23:36:09]requested_item fd.num is exist - process it [23:36:09]SAM_PROTO_GetFieldsCounters [23:36:09]wFMCommunicate request_size=4 [23:36:09]MH_SAM_APDU [23:36:09]CAPDU: 80 13 00 00 [23:36:09]Write to MH i2c: E2 08 00 30 14 80 13 00 00 00 00 00 00 C0 [23:36:09]Write i2c OK [23:36:09]MH_I2C_Read... [23:36:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:36:09]Read from MH i2c: E2 [23:36:09]MH_I2C_Read... [23:36:09]Read from MH i2c: E2 62 00 [23:36:09]MH_I2C_Read... [23:36:09]Read from MH i2c: E2 62 00 30 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 75 70 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 12 [23:36:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 75 70 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 [23:36:09]wFMCommunicate OK [23:36:09]SAM_PROTO_GetFieldsCounters done [23:36:09]requested_item shift.num is exist - process it [23:36:09]requested_item shift.opened is exist - process it [23:36:09]req_shift_opened [23:36:09]FM_GetShiftState [23:36:09]SAM_PROTO_GetShiftState [23:36:09]wFMCommunicate request_size=4 [23:36:09]MH_SAM_APDU [23:36:09]CAPDU: 80 13 01 00 [23:36:09]Write to MH i2c: E2 08 00 31 14 80 13 01 00 00 00 00 00 C2 [23:36:09]Write i2c OK [23:36:09]MH_I2C_Read... [23:36:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:36:09]Read from MH i2c: E2 [23:36:09]MH_I2C_Read... [23:36:09]Read from MH i2c: E2 0E 00 [23:36:09]MH_I2C_Read... [23:36:09]Read from MH i2c: E2 0E 00 31 14 00 09 00 01 17 88 19 66 00 00 00 00 90 00 EC [23:36:09]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [23:36:09]wFMCommunicate OK [23:36:09]SAM_PROTO_GetShiftState done [23:36:09]FM_GetShiftState done [23:36:09]req_shift_opened done [23:36:09]requested_item shift.open_date is exist - process it [23:36:09]req_shift_open_date [23:36:09]req_shift_open_date done [23:36:09]produce_requested_data done [23:36:09]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28789,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271} [23:36:09]process_action_free close_receipt [23:36:09]json_value_free [23:36:09]json_value_free done [23:36:09]process_json_proto returns [23:36:09]Send response to host [23:36:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28789,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271}}} [23:36:09]free response buf [23:36:09]execute_script done [23:36:09]execute_script returns [23:36:09]free content buf [23:36:09]Sock 9.Close socket [23:36:09]Sock 9.Thread stoped [23:36:13]OFD Sender: No OFD packet to send [23:36:18]OFD Sender: No OFD packet to send [23:36:23]OFD Sender: No OFD packet to send [23:36:23]int [23:36:23]Write to MH i2c: 01 00 00 32 14 46 [23:36:23]*** FLAG_PRN_PAP1 set [23:36:23]Write i2c OK [23:36:23]MH_I2C_Read... [23:36:23]Read from MH i2c: 01 [23:36:23]MH_I2C_Read... [23:36:23]Read from MH i2c: 01 07 00 [23:36:23]MH_I2C_Read... [23:36:23]Read from MH i2c: 01 07 00 32 14 00 01 00 00 00 FF 0F 5C [23:36:23]state=0 [23:36:23]No paper [23:36:23]int [23:36:23]Write to MH i2c: 01 00 00 33 14 47 [23:36:23]*** FLAG_PRN_PAP2 set [23:36:23]Write i2c OK [23:36:23]MH_I2C_Read... [23:36:23]Read from MH i2c: 01 [23:36:23]MH_I2C_Read... [23:36:23]Read from MH i2c: 01 07 00 [23:36:23]MH_I2C_Read... [23:36:23]Read from MH i2c: 01 07 00 33 14 00 03 00 00 00 FF 0F 5F [23:36:23]state=0 [23:36:23]No paper [23:36:23]Cover opened [23:36:23]int [23:36:23]Write to MH i2c: 01 00 00 34 14 48 [23:36:23]*** FLAG_PRN_PAP2 reset [23:36:23]Write i2c OK [23:36:23]MH_I2C_Read... [23:36:23]Read from MH i2c: 01 [23:36:23]MH_I2C_Read... [23:36:23]Read from MH i2c: 01 07 00 [23:36:23]MH_I2C_Read... [23:36:23]Read from MH i2c: 01 07 00 34 14 00 01 00 00 00 FF 0F 5E [23:36:23]state=3 [23:36:23]No paper [23:36:23]Cover closed [23:36:24]int [23:36:24]Write to MH i2c: 01 00 00 35 14 49 [23:36:24]*** FLAG_PRN_PAP2 set [23:36:24]Write i2c OK [23:36:24]MH_I2C_Read... [23:36:24]Read from MH i2c: 01 [23:36:24]MH_I2C_Read... [23:36:24]Read from MH i2c: 01 07 00 [23:36:24]MH_I2C_Read... [23:36:24]Read from MH i2c: 01 07 00 35 14 00 03 00 00 00 FF 0F 61 [23:36:24]state=0 [23:36:24]No paper [23:36:24]Cover opened [23:36:24]int [23:36:24]Write to MH i2c: 01 00 00 36 14 4A [23:36:24]*** FLAG_PRN_PAP2 reset [23:36:24]Write i2c OK [23:36:24]MH_I2C_Read... [23:36:24]Read from MH i2c: 01 [23:36:24]MH_I2C_Read... [23:36:24]Read from MH i2c: 01 07 00 [23:36:24]MH_I2C_Read... [23:36:24]Read from MH i2c: 01 07 00 36 14 00 01 00 00 00 FF 0F 60 [23:36:24]state=3 [23:36:24]No paper [23:36:24]Cover closed [23:36:24]int [23:36:24]Write to MH i2c: 01 00 00 37 14 4B [23:36:24]*** FLAG_PRN_PAP2 set [23:36:24]Write i2c OK [23:36:24]MH_I2C_Read... [23:36:24]Read from MH i2c: 01 [23:36:24]MH_I2C_Read... [23:36:24]Read from MH i2c: 01 07 00 [23:36:24]MH_I2C_Read... [23:36:24]Read from MH i2c: 01 07 00 37 14 00 03 00 00 00 FF 0F 63 [23:36:24]state=0 [23:36:24]No paper [23:36:24]Cover opened [23:36:28]OFD Sender: No OFD packet to send [23:36:29]Write to MH i2c: 01 00 00 38 14 4C [23:36:29]Write i2c OK [23:36:29]MH_I2C_Read... [23:36:29]Read from MH i2c: 01 [23:36:29]MH_I2C_Read... [23:36:29]Read from MH i2c: 01 07 00 [23:36:29]MH_I2C_Read... [23:36:29]Read from MH i2c: 01 07 00 38 14 00 03 00 00 00 FF 0F 64 [23:36:29]state=3 [23:36:29]No paper [23:36:29]Cover opened [23:36:33]OFD Sender: No OFD packet to send [23:36:34]Write to MH i2c: 01 00 00 39 14 4D [23:36:34]Write i2c OK [23:36:34]MH_I2C_Read... [23:36:34]Read from MH i2c: 01 [23:36:34]MH_I2C_Read... [23:36:34]Read from MH i2c: 01 07 00 [23:36:34]MH_I2C_Read... [23:36:34]Read from MH i2c: 01 07 00 39 14 00 03 00 00 00 FF 0F 65 [23:36:34]state=3 [23:36:34]No paper [23:36:34]Cover opened [23:36:36]int [23:36:36]Write to MH i2c: 01 00 00 3A 14 4E [23:36:36]*** FLAG_PRN_PAP2 reset [23:36:36]Write i2c OK [23:36:36]MH_I2C_Read... [23:36:36]Read from MH i2c: 01 [23:36:36]MH_I2C_Read... [23:36:36]Read from MH i2c: 01 07 00 [23:36:36]MH_I2C_Read... [23:36:36]Read from MH i2c: 01 07 00 3A 14 00 01 00 00 00 FF 0F 64 [23:36:36]state=3 [23:36:36]No paper [23:36:36]Cover closed [23:36:36]int [23:36:36]Write to MH i2c: 01 00 00 3B 14 4F [23:36:36]*** FLAG_PRN_PAP1 reset [23:36:36]Write i2c OK [23:36:36]MH_I2C_Read... [23:36:36]Read from MH i2c: 01 [23:36:36]MH_I2C_Read... [23:36:36]Read from MH i2c: 01 07 00 [23:36:36]MH_I2C_Read... [23:36:36]Read from MH i2c: 01 07 00 3B 14 00 00 00 00 00 FF 0F 64 [23:36:36]state=0 [23:36:38]OFD Sender: No OFD packet to send [23:36:43]OFD Sender: No OFD packet to send [23:36:48]OFD Sender: No OFD packet to send [23:36:53]OFD Sender: No OFD packet to send [23:36:58]OFD Sender: No OFD packet to send [23:37:03]OFD Sender: No OFD packet to send [23:37:08]OFD Sender: No OFD packet to send [23:37:13]OFD Sender: No OFD packet to send [23:37:18]OFD Sender: No OFD packet to send [23:37:23]OFD Sender: No OFD packet to send [23:37:28]OFD Sender: No OFD packet to send [23:37:33]OFD Sender: No OFD packet to send [23:37:38]OFD Sender: No OFD packet to send [23:37:43]OFD Sender: No OFD packet to send [23:37:48]OFD Sender: No OFD packet to send [23:37:53]OFD Sender: No OFD packet to send [23:37:58]OFD Sender: No OFD packet to send [23:38:03]OFD Sender: No OFD packet to send [23:38:08]OFD Sender: No OFD packet to send [23:38:13]OFD Sender: No OFD packet to send [23:38:18]OFD Sender: No OFD packet to send [23:38:23]OFD Sender: No OFD packet to send [23:38:28]OFD Sender: No OFD packet to send [23:38:33]OFD Sender: No OFD packet to send [23:38:38]OFD Sender: No OFD packet to send [23:38:43]OFD Sender: No OFD packet to send [23:38:48]OFD Sender: No OFD packet to send [23:38:53]OFD Sender: No OFD packet to send [23:38:58]OFD Sender: No OFD packet to send [23:39:03]OFD Sender: No OFD packet to send [23:39:08]OFD Sender: No OFD packet to send [23:39:13]OFD Sender: No OFD packet to send [23:39:18]OFD Sender: No OFD packet to send [23:39:23]OFD Sender: No OFD packet to send [23:39:28]OFD Sender: No OFD packet to send [23:39:33]OFD Sender: No OFD packet to send [23:39:38]OFD Sender: No OFD packet to send [23:39:43]OFD Sender: No OFD packet to send [23:39:48]OFD Sender: No OFD packet to send [23:39:53]OFD Sender: No OFD packet to send [23:39:58]OFD Sender: No OFD packet to send [23:40:03]OFD Sender: No OFD packet to send [23:40:08]OFD Sender: No OFD packet to send [23:40:13]OFD Sender: No OFD packet to send [23:40:18]OFD Sender: No OFD packet to send [23:40:23]OFD Sender: No OFD packet to send [23:40:28]OFD Sender: No OFD packet to send [23:40:33]OFD Sender: No OFD packet to send [23:40:38]OFD Sender: No OFD packet to send [23:40:43]OFD Sender: No OFD packet to send [23:40:48]OFD Sender: No OFD packet to send [23:40:53]OFD Sender: No OFD packet to send [23:40:58]OFD Sender: No OFD packet to send [23:41:03]OFD Sender: No OFD packet to send [23:41:08]OFD Sender: No OFD packet to send [23:41:13]OFD Sender: No OFD packet to send [23:41:18]OFD Sender: No OFD packet to send [23:41:23]OFD Sender: No OFD packet to send [23:41:28]OFD Sender: No OFD packet to send [23:41:33]OFD Sender: No OFD packet to send [23:41:38]OFD Sender: No OFD packet to send [23:41:43]OFD Sender: No OFD packet to send [23:41:48]OFD Sender: No OFD packet to send [23:41:53]OFD Sender: No OFD packet to send [23:41:58]OFD Sender: No OFD packet to send [23:42:03]OFD Sender: No OFD packet to send [23:42:08]OFD Sender: No OFD packet to send [23:42:13]OFD Sender: No OFD packet to send [23:42:18]OFD Sender: No OFD packet to send [23:42:23]OFD Sender: No OFD packet to send [23:42:28]OFD Sender: No OFD packet to send [23:42:33]OFD Sender: No OFD packet to send [23:42:38]OFD Sender: No OFD packet to send [23:42:43]OFD Sender: No OFD packet to send [23:42:48]OFD Sender: No OFD packet to send [23:42:53]OFD Sender: No OFD packet to send [23:42:58]OFD Sender: No OFD packet to send [23:43:03]OFD Sender: No OFD packet to send [23:43:07]int [23:43:07]Write to MH i2c: 01 00 00 3C 14 50 [23:43:07]*** FLAG_PRN_KEY set [23:43:07]Write i2c OK [23:43:07]MH_I2C_Read... [23:43:07]Read from MH i2c: 01 [23:43:07]MH_I2C_Read... [23:43:07]Read from MH i2c: 01 07 00 [23:43:07]MH_I2C_Read... [23:43:07]Read from MH i2c: 01 07 00 3C 14 00 08 00 00 00 FF 0F 6D [23:43:07]state=0 [23:43:07]Key pressed [23:43:07]Feed [23:43:07]Write to MH i2c: D8 00 00 3D 14 28 [23:43:07]Write i2c OK [23:43:07]MH_I2C_Read... [23:43:07]Read from MH i2c: D8 [23:43:07]MH_I2C_Read... [23:43:07]Read from MH i2c: D8 01 00 [23:43:07]MH_I2C_Read... [23:43:07]Read from MH i2c: D8 01 00 3D 14 00 29 [23:43:07]int [23:43:07]Write to MH i2c: 01 00 00 3E 14 52 [23:43:07]Write i2c OK [23:43:07]MH_I2C_Read... [23:43:07]Read from MH i2c: 01 [23:43:07]MH_I2C_Read... [23:43:07]Read from MH i2c: 01 07 00 [23:43:07]MH_I2C_Read... [23:43:07]Read from MH i2c: 01 07 00 3E 14 00 48 00 00 00 3C 00 DD [23:43:07]state=2 [23:43:07]Key pressed [23:43:07]int [23:43:07]Write to MH i2c: 01 00 00 3F 14 53 [23:43:07]*** FLAG_PRN_KEY reset [23:43:07]Write i2c OK [23:43:07]MH_I2C_Read... [23:43:07]Read from MH i2c: 01 [23:43:07]MH_I2C_Read... [23:43:07]Read from MH i2c: 01 07 00 [23:43:07]MH_I2C_Read... [23:43:07]Read from MH i2c: 01 07 00 3F 14 00 00 00 00 00 F6 0F 5F [23:43:07]state=2 [23:43:07]Stop feed [23:43:08]OFD Sender: No OFD packet to send [23:43:13]OFD Sender: No OFD packet to send [23:43:18]OFD Sender: No OFD packet to send [23:43:23]OFD Sender: No OFD packet to send [23:43:28]OFD Sender: No OFD packet to send [23:43:33]OFD Sender: No OFD packet to send [23:43:38]OFD Sender: No OFD packet to send [23:43:43]OFD Sender: No OFD packet to send [23:43:48]OFD Sender: No OFD packet to send [23:43:53]OFD Sender: No OFD packet to send [23:43:58]OFD Sender: No OFD packet to send [23:44:03]OFD Sender: No OFD packet to send [23:44:08]OFD Sender: No OFD packet to send [23:44:13]OFD Sender: No OFD packet to send [23:44:18]OFD Sender: No OFD packet to send [23:44:23]OFD Sender: No OFD packet to send [23:44:28]OFD Sender: No OFD packet to send [23:44:33]OFD Sender: No OFD packet to send [23:44:38]OFD Sender: No OFD packet to send [23:44:43]OFD Sender: No OFD packet to send [23:44:48]OFD Sender: No OFD packet to send [23:44:53]OFD Sender: No OFD packet to send [23:44:58]OFD Sender: No OFD packet to send [23:45:03]OFD Sender: No OFD packet to send [23:45:08]OFD Sender: No OFD packet to send [23:45:13]OFD Sender: No OFD packet to send [23:45:18]OFD Sender: No OFD packet to send [23:45:23]OFD Sender: No OFD packet to send [23:45:28]OFD Sender: No OFD packet to send [23:45:33]OFD Sender: No OFD packet to send [23:45:38]OFD Sender: No OFD packet to send [23:45:43]OFD Sender: No OFD packet to send [23:45:48]OFD Sender: No OFD packet to send [23:45:53]OFD Sender: No OFD packet to send [23:45:58]OFD Sender: No OFD packet to send [23:46:03]OFD Sender: No OFD packet to send [23:46:08]OFD Sender: No OFD packet to send [23:46:13]OFD Sender: No OFD packet to send [23:46:18]OFD Sender: No OFD packet to send [23:46:23]OFD Sender: No OFD packet to send [23:46:28]OFD Sender: No OFD packet to send [23:46:33]OFD Sender: No OFD packet to send [23:46:38]OFD Sender: No OFD packet to send [23:46:43]OFD Sender: No OFD packet to send [23:46:48]OFD Sender: No OFD packet to send [23:46:53]OFD Sender: No OFD packet to send [23:46:58]OFD Sender: No OFD packet to send [23:47:03]OFD Sender: No OFD packet to send [23:47:06]accept exits with 7 [23:47:06]New connection [23:47:06]New thread 3066928484 created [23:47:06]Thread 3066785124 joined [23:47:06]Waiting for new connection... [23:47:06] Sock 7.Parse request [23:47:06]Sock 7.Check first char [23:47:06]Sock 7.First char is OK [23:47:06]request: POST /json_proto HTTP/1.0 [23:47:06]Method: POST [23:47:06]URL: /json_proto [23:47:06]Method is POST - this is cgi request [23:47:06]url: /json_proto [23:47:06]query_string will be loaded in cgi processing [23:47:06]execute_cgi json_proto POST (null) [23:47:06]execute_cgi path=json_proto method=POST [23:47:06]POST find Content-Length [23:47:06]Host: 172.17.33.3:8080 [23:47:06]Content-Length: 844 [23:47:06]Content-Type: application/json [23:47:06] [23:47:06]POST finish read [23:47:06]Found Content-Length = 844 [23:47:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347137", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 12.160, "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" ] } } [23:47:06]execute_script... [23:47: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)347137", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 12.160, "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" ] } } [23:47:06]POST & json_proto [23:47:06]process_json_proto [23:47:06]json parsed OK: [23:47:06]protocol is kg_v1.0 [23:47:06]action value=close_receipt [23:47:06]process_action close_receipt [23:47:06]cmd_close_receipt [23:47:06]MH_GetDate [23:47:06]Write to MH i2c: F0 00 00 40 14 43 [23:47:06]Write i2c OK [23:47:06]MH_I2C_Read... [23:47:06]Read from MH i2c: F0 [23:47:06]MH_I2C_Read... [23:47:06]Read from MH i2c: F0 09 00 [23:47:06]MH_I2C_Read... [23:47:06]Read from MH i2c: F0 09 00 40 14 00 FC C7 19 66 23 5B 8F 65 00 [23:47:06]GetLastDocTimeStamp 1712964967 [23:47:06]current date 1712965628 [23:47:06]FM_GetShiftState [23:47:06]SAM_PROTO_GetShiftState [23:47:06]wFMCommunicate request_size=4 [23:47:06]MH_SAM_APDU [23:47:06]CAPDU: 80 13 01 00 [23:47:06]Write to MH i2c: E2 08 00 41 14 80 13 01 00 00 00 00 00 D2 [23:47:06]Write i2c OK [23:47:06]MH_I2C_Read... [23:47:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:47:06]Read from MH i2c: E2 [23:47:06]MH_I2C_Read... [23:47:06]Read from MH i2c: E2 0E 00 [23:47:06]MH_I2C_Read... [23:47:06]Read from MH i2c: E2 0E 00 41 14 00 09 00 01 17 88 19 66 00 00 00 00 90 00 FC [23:47:06]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [23:47:06]wFMCommunicate OK [23:47:06]SAM_PROTO_GetShiftState done [23:47:06]FM_GetShiftState done [23:47:06]opened in 1712949271 [23:47:06]opened+sec_in_day 1713035671 [23:47:06]quantity*price = 40006 [23:47:06]sum+1 = 40007 [23:47:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.06 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 0.00 Безнал.: 400.06 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 64 12.04.2024 23:47 Смена: 114 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 28790 ФПД: 130337093844385 1/tax-web-control/client/api/v1/ticket?date=20240412T234708&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28790&fm=130337093844385&tin=02508201610067®Number=0000138879044617&sum=40006 [23:47:07]StoreToDocumentArchive [23:47:07]shift 114 fd 28790 [23:47:07]save to /storage/0114/doc_00028790 [23:47:07]save last doc name /storage/0114/doc_00028790 to /storage/kkm_last_doc_name [23:47:07]save OK [23:47:07]Clear old archive folders... [23:47:07]ProcessDocumentItem done err = 0, tmpTLVsize=250 [23:47:07]tlvbuf is 01200060 [23:47:07]SAM_PROTO_ClearQueue [23:47:07]wFMCommunicate request_size=4 [23:47:07]MH_SAM_APDU [23:47:07]CAPDU: 80 09 00 00 [23:47:07]Write to MH i2c: E2 08 00 4E 14 80 09 00 00 00 00 00 00 D4 [23:47:07]Write i2c OK [23:47:07]MH_I2C_Read... [23:47:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:47:08]Read from MH i2c: E2 [23:47:08]MH_I2C_Read... [23:47:08]Read from MH i2c: E2 03 00 [23:47:08]MH_I2C_Read... [23:47:08]Read from MH i2c: E2 03 00 4E 14 00 90 00 D6 [23:47:08]RAPDU: 90 00 [23:47:08]wFMCommunicate OK [23:47:08]SAM_PROTO_ClearQueue done [23:47:08]KKMCreateOFDPacket [23:47:08]OFDProtocolAddRootSTLVToBuf [23:47:08]FM_MakeSignedData [23:47:08]FM_MakeSignedData [23:47:08]SAM_PROTO_SignData [23:47:08]wFMCommunicate request_size=4 [23:47:08]MH_SAM_APDU [23:47:08]CAPDU: 80 0D 01 02 [23:47:08]Write to MH i2c: E2 08 00 4F 14 80 0D 01 02 00 00 00 00 DC [23:47:08]Write i2c OK [23:47:08]MH_I2C_Read... [23:47:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:47:08]Read from MH i2c: E2 [23:47:08]MH_I2C_Read... [23:47:08]Read from MH i2c: E2 03 00 [23:47:08]MH_I2C_Read... [23:47:08]Read from MH i2c: E2 03 00 4F 14 00 90 00 D7 [23:47:08]RAPDU: 90 00 [23:47:08]wFMCommunicate OK [23:47:08]wFMCommunicate request_size=255 [23:47:08]MH_SAM_APDU [23:47:08]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 80 2F 00 00 00 00 00 37 04 06 00 DA 0C 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 40 00 00 00 F4 03 04 00 FC C7 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 76 70 00 00 35 04 06 00 76 8A [23:47:08]Write to MH i2c: E2 02 01 50 14 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 80 2F 00 00 00 00 00 37 04 06 00 DA 0C 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 40 00 00 00 F4 03 04 00 FC C7 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 76 70 00 00 35 04 06 00 76 8A 00 00 D3 [23:47:08]Write i2c OK [23:47:08]MH_I2C_Read... [23:47:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:47:08]Read from MH i2c: E2 [23:47:08]MH_I2C_Read... [23:47:08]Read from MH i2c: E2 03 00 [23:47:08]MH_I2C_Read... [23:47:08]Read from MH i2c: E2 03 00 50 14 00 90 00 D8 [23:47:08]RAPDU: 90 00 [23:47:08]wFMCommunicate OK [23:47:08]wFMCommunicate request_size=9 [23:47:08]MH_SAM_APDU [23:47:08]CAPDU: 80 0D 02 02 04 78 2D FD A1 [23:47:08]Write to MH i2c: E2 0C 00 51 14 80 0D 02 02 04 00 78 2D FD A1 00 00 2A [23:47:08]Write i2c OK [23:47:08]MH_I2C_Read... [23:47:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:47:08]Read from MH i2c: E2 [23:47:08]MH_I2C_Read... [23:47:08]Read from MH i2c: E2 03 00 [23:47:08]MH_I2C_Read... [23:47:08]Read from MH i2c: E2 03 00 51 14 00 90 00 D9 [23:47:08]RAPDU: 90 00 [23:47:08]wFMCommunicate OK [23:47:08]wFMCommunicate request_size=4 [23:47:08]MH_SAM_APDU [23:47:08]CAPDU: 80 0D 03 02 [23:47:08]Write to MH i2c: E2 08 00 52 14 80 0D 03 02 00 00 00 00 E1 [23:47:08]Write i2c OK [23:47:08]MH_I2C_Read... [23:47:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:47:08]Read from MH i2c: E2 [23:47:08]MH_I2C_Read... [23:47:08]Read from MH i2c: E2 0B 00 [23:47:08]MH_I2C_Read... [23:47:08]Read from MH i2c: E2 0B 00 52 14 00 0A CE D5 45 6F 6E 7A A4 90 00 CF [23:47:08]RAPDU: 0A CE D5 45 6F 6E 7A A4 90 00 [23:47:08]wFMCommunicate OK [23:47:08]SAM_PROTO_SignData done [23:47:08]FM_MakeSignedData done [23:47:08]CreateOFDProtocolMessage [23:47:08]wFMCommunicate request_size=4 [23:47:08]MH_SAM_APDU [23:47:08]CAPDU: 80 11 00 00 [23:47:08]Write to MH i2c: E2 08 00 53 14 80 11 00 00 00 00 00 00 E1 [23:47:08]Write i2c OK [23:47:08]MH_I2C_Read... [23:47:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:47:08]Read from MH i2c: E2 [23:47:08]MH_I2C_Read... [23:47:08]Read from MH i2c: E2 17 00 [23:47:08]MH_I2C_Read... [23:47:08]Read from MH i2c: E2 17 00 53 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 30 [23:47:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [23:47:08]wFMCommunicate OK [23:47:08]CreateOFDProtocolMessage done [23:47:08]OFDSenderStorePacket 28790 [23:47:08]StoreOFDPacket docnum=28790 [23:47:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 86 A9 06 01 8A 37 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 80 2F 00 00 00 00 00 37 04 06 00 DA 0C 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 40 00 00 00 F4 03 04 00 FC C7 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 76 70 00 00 35 04 06 00 76 8A 78 2D FD A1 0A CE D5 45 6F 6E 7A A4 [23:47:08]CheckFolder [23:47:08]dirname=/storage/ofd_packets [23:47:08]CheckFolder done [23:47:08]ProducePacketName [23:47:08]name=ofd_packets/00028790 [23:47:08]NVStorageSaveData ofd_packets/00028790 [23:47:08]File name is /storage/ofd_packets/00028790 [23:47:08]Write 300 bytes [23:47:08]NVStorageSaveData done [23:47:08]OFDSenderStorePacket done [23:47:08]KKMCreateOFDPacket done [23:47:08]NVStorageSaveData kkm_last_timestamp [23:47:08]File name is /storage/kkm_last_timestamp [23:47:08]Write 4 bytes [23:47:08]NVStorageSaveData done [23:47:08]ExternCall_PrintAddStr [23:47:08]wPrintStart [23:47:08]Write to MH i2c: 01 00 00 54 14 68 [23:47:08]Write i2c OK [23:47:08]MH_I2C_Read... [23:47:08]Read from MH i2c: 01 [23:47:08]MH_I2C_Read... [23:47:08]Read from MH i2c: 01 07 00 [23:47:08]MH_I2C_Read... [23:47:08]Read from MH i2c: 01 07 00 54 14 00 00 00 00 00 FF 0F 7D [23:47:08]RasterBufferAndPrint [23:47:08]line Счет N : (1)347137 [23:47:08]line ИНН: 02508201610067 [23:47:08]line Контрольно-Кассовый Чек [23:47:08]line ПРОДАЖА [23:47:08]line ТРК (МРК, ГНК) : 71 [23:47:08]line Товар: 2711129700 [23:47:08]line ГАЗ-К-5 [23:47:08]line 12.160 * 32.90 [23:47:08]line = 400.06 [23:47:08]line НДС 12% НСП 1% [23:47:08]line > о реализуемом товаре [23:47:08]line ИТОГО: 400.06 [23:47:08]line НСП 1% : 3.54 [23:47:08]line НДС 12% : 42.48 [23:47:08]line Наличными: 0.00 [23:47:08]line Безнал.: 400.06 [23:47:08]line Место: АЗС № 108 "Партнер Нефть" [23:47:08]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [23:47:08]line СНО: Общий режим [23:47:08]line Чек 64 12.04.2024 23:47 [23:47:08]line Смена: 114 ФФД: 1.0 [23:47:08]line ЗНМ: 0300000027 [23:47:08]line РНМ: 0000138879044617 [23:47:08]line Версия ККМ: 001 [23:47:08]line Платежная система: АКБ Кыргызстан [23:47:08]line ФМ: 0000000000963154 [23:47:08]line ФД: 28790 [23:47:08]line ФПД: 130337093844385 [23:47:08]line 1/tax-web-control/client/api/v1/ticket?date=20240412T234708&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28790&fm=130337093844385&tin=02508201610067®Number=0000138879044617&sum=40006 [23:47:08]OFD Sender: Processing packet 28790 [packets to send 8, broken 7] [23:47:08]ProducePacketName [23:47:08]name=ofd_packets/00028790 [23:47:08]OFD Sender: To server: pG, [23:47:08]CommunicateWithHost lk.salyk.kg:30040 [23:47:08]ConnectInit lk.salyk.kg [23:47:08]written 0, free lines is 4095 [23:47:08]Connected sock=10 [23:47:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 86 A9 06 01 8A 37 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 80 2F 00 00 00 00 00 37 04 06 00 DA 0C 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 40 00 00 00 F4 03 04 00 FC C7 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 76 70 00 00 35 04 06 00 76 8A 78 2D FD A1 0A CE D5 45 6F 6E 7A A4 [23:47:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 D6 F1 47 00 11 24 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 76 70 00 00 F4 03 04 00 A5 72 19 66 B6 04 01 00 00 8D 22 A6 FE DC 44 1C 56 [23:47:09]CommunicateWithHost err = 0 [23:47:09]CheckOFDResponse [23:47:09]1017 (14) - 77093643461234 [23:47:09]1041 (16) - 0000000000963154 [23:47:09]1040 (4) - 28790 [23:47:09]1012 (4) - 12.04.2024 17:43 [23:47:09]1206 (1) - 0 [23:47:09]OFD Sender: Remove packet 28790 [23:47:09]ProducePacketName [23:47:09]name=ofd_packets/00028790 [23:47:09]NVStorageDeleteData [23:47:09]Write to MH i2c: 01 00 00 7D 14 91 [23:47:09]Write i2c OK [23:47:09]MH_I2C_Read... [23:47:09]Read from MH i2c: 01 [23:47:09]MH_I2C_Read... [23:47:09]Read from MH i2c: 01 07 00 [23:47:09]MH_I2C_Read... [23:47:09]Read from MH i2c: 01 07 00 7D 14 00 00 00 00 00 DB 0C 7F [23:47:09]RasterBufferAndPrint [23:47:09]line [23:47:09]line [23:47:09]line [23:47:09]line [23:47:09]line [23:47:09]written 0, free lines is 3298 [23:47:09]MH_Cut [23:47:09]Write to MH i2c: D1 01 00 84 14 01 6A [23:47:09]Write i2c OK [23:47:09]MH_I2C_Read... [23:47:09]Read from MH i2c: D1 [23:47:09]MH_I2C_Read... [23:47:09]Read from MH i2c: D1 01 00 [23:47:09]MH_I2C_Read... [23:47:09]Read from MH i2c: D1 01 00 84 14 00 69 [23:47:09]Write to MH i2c: 01 00 00 85 14 99 [23:47:09]Write i2c OK [23:47:09]MH_I2C_Read... [23:47:09]OFD Sender: No OFD packet to send [23:47:10]*** Cut start [23:47:10]*** Partial cut [23:47:10]*** CUTSNS_PIN = 1 [23:47:10]*** CUTSNS_PIN = 0 [23:47:10]*** Brake cut motor [23:47:10]Read from MH i2c: 01 [23:47:10]MH_I2C_Read... [23:47:10]*** Stop cut motor [23:47:10]*** Cut end [23:47:10]Read from MH i2c: 01 07 00 [23:47:10]MH_I2C_Read... [23:47:10]Read from MH i2c: 01 07 00 85 14 00 00 00 00 00 FF 0F AE [23:47:10]process_action close_receipt done [23:47:10]requested_data is exist [23:47:10]produce_requested_data [23:47:10]requested_item fm.sn is exist - process it [23:47:10]wFMCommunicate request_size=4 [23:47:10]MH_SAM_APDU [23:47:10]CAPDU: 80 11 00 00 [23:47:10]Write to MH i2c: E2 08 00 86 14 80 11 00 00 00 00 00 00 14 [23:47:10]Write i2c OK [23:47:10]MH_I2C_Read... [23:47:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:47:10]Read from MH i2c: E2 [23:47:10]MH_I2C_Read... [23:47:10]Read from MH i2c: E2 17 00 [23:47:10]MH_I2C_Read... [23:47:10]Read from MH i2c: E2 17 00 86 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 63 [23:47:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [23:47:10]wFMCommunicate OK [23:47:10]requested_item fd.num is exist - process it [23:47:10]SAM_PROTO_GetFieldsCounters [23:47:10]wFMCommunicate request_size=4 [23:47:10]MH_SAM_APDU [23:47:10]CAPDU: 80 13 00 00 [23:47:10]Write to MH i2c: E2 08 00 87 14 80 13 00 00 00 00 00 00 17 [23:47:10]Write i2c OK [23:47:10]MH_I2C_Read... [23:47:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:47:10]Read from MH i2c: E2 [23:47:10]MH_I2C_Read... [23:47:10]Read from MH i2c: E2 62 00 [23:47:10]MH_I2C_Read... [23:47:10]Read from MH i2c: E2 62 00 87 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 76 70 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 6D [23:47:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 76 70 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 [23:47:10]wFMCommunicate OK [23:47:10]SAM_PROTO_GetFieldsCounters done [23:47:10]requested_item shift.num is exist - process it [23:47:10]requested_item shift.opened is exist - process it [23:47:10]req_shift_opened [23:47:10]FM_GetShiftState [23:47:10]SAM_PROTO_GetShiftState [23:47:10]wFMCommunicate request_size=4 [23:47:10]MH_SAM_APDU [23:47:10]CAPDU: 80 13 01 00 [23:47:10]Write to MH i2c: E2 08 00 88 14 80 13 01 00 00 00 00 00 19 [23:47:10]Write i2c OK [23:47:10]MH_I2C_Read... [23:47:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:47:10]Read from MH i2c: E2 [23:47:10]MH_I2C_Read... [23:47:10]Read from MH i2c: E2 0E 00 [23:47:10]MH_I2C_Read... [23:47:10]Read from MH i2c: E2 0E 00 88 14 00 09 00 01 17 88 19 66 00 00 00 00 90 00 43 [23:47:10]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [23:47:10]wFMCommunicate OK [23:47:10]SAM_PROTO_GetShiftState done [23:47:10]FM_GetShiftState done [23:47:10]req_shift_opened done [23:47:10]requested_item shift.open_date is exist - process it [23:47:10]req_shift_open_date [23:47:10]req_shift_open_date done [23:47:10]produce_requested_data done [23:47:10]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28790,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271} [23:47:10]process_action_free close_receipt [23:47:10]json_value_free [23:47:10]json_value_free done [23:47:10]process_json_proto returns [23:47:10]Send response to host [23:47:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28790,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271}}} [23:47:10]free response buf [23:47:10]execute_script done [23:47:10]execute_script returns [23:47:10]free content buf [23:47:10]Sock 7.Close socket [23:47:10]Sock 7.Thread stoped [23:47:14]OFD Sender: No OFD packet to send [23:47:19]OFD Sender: No OFD packet to send [23:47:24]OFD Sender: No OFD packet to send [23:47:29]OFD Sender: No OFD packet to send [23:47:34]OFD Sender: No OFD packet to send [23:47:39]OFD Sender: No OFD packet to send [23:47:44]OFD Sender: No OFD packet to send [23:47:49]OFD Sender: No OFD packet to send [23:47:54]OFD Sender: No OFD packet to send [23:47:59]OFD Sender: No OFD packet to send [23:48:04]OFD Sender: No OFD packet to send [23:48:09]OFD Sender: No OFD packet to send [23:48:14]OFD Sender: No OFD packet to send [23:48:19]OFD Sender: No OFD packet to send [23:48:24]OFD Sender: No OFD packet to send [23:48:29]OFD Sender: No OFD packet to send [23:48:34]OFD Sender: No OFD packet to send [23:48:39]OFD Sender: No OFD packet to send [23:48:44]OFD Sender: No OFD packet to send [23:48:49]OFD Sender: No OFD packet to send [23:48:54]OFD Sender: No OFD packet to send [23:48:59]OFD Sender: No OFD packet to send [23:49:04]OFD Sender: No OFD packet to send [23:49:09]OFD Sender: No OFD packet to send [23:49:14]OFD Sender: No OFD packet to send [23:49:19]OFD Sender: No OFD packet to send [23:49:24]OFD Sender: No OFD packet to send [23:49:29]OFD Sender: No OFD packet to send [23:49:34]OFD Sender: No OFD packet to send [23:49:39]OFD Sender: No OFD packet to send [23:49:44]OFD Sender: No OFD packet to send [23:49:49]OFD Sender: No OFD packet to send [23:49:54]OFD Sender: No OFD packet to send [23:49:59]OFD Sender: No OFD packet to send [23:50:04]OFD Sender: No OFD packet to send [23:50:09]OFD Sender: No OFD packet to send [23:50:14]OFD Sender: No OFD packet to send [23:50:19]OFD Sender: No OFD packet to send [23:50:24]OFD Sender: No OFD packet to send [23:50:29]OFD Sender: No OFD packet to send [23:50:34]OFD Sender: No OFD packet to send [23:50:39]OFD Sender: No OFD packet to send [23:50:44]OFD Sender: No OFD packet to send [23:50:49]OFD Sender: No OFD packet to send [23:50:54]OFD Sender: No OFD packet to send [23:50:59]OFD Sender: No OFD packet to send [23:51:04]OFD Sender: No OFD packet to send [23:51:09]OFD Sender: No OFD packet to send [23:51:14]OFD Sender: No OFD packet to send [23:51:19]OFD Sender: No OFD packet to send [23:51:24]OFD Sender: No OFD packet to send [23:51:29]OFD Sender: No OFD packet to send [23:51:34]OFD Sender: No OFD packet to send [23:51:39]OFD Sender: No OFD packet to send [23:51:44]OFD Sender: No OFD packet to send [23:51:49]OFD Sender: No OFD packet to send [23:51:54]OFD Sender: No OFD packet to send [23:51:59]OFD Sender: No OFD packet to send [23:52:04]OFD Sender: No OFD packet to send [23:52:09]OFD Sender: No OFD packet to send [23:52:14]OFD Sender: No OFD packet to send [23:52:19]OFD Sender: No OFD packet to send [23:52:24]OFD Sender: No OFD packet to send [23:52:29]OFD Sender: No OFD packet to send [23:52:34]OFD Sender: No OFD packet to send [23:52:39]OFD Sender: No OFD packet to send [23:52:44]OFD Sender: No OFD packet to send [23:52:49]OFD Sender: No OFD packet to send [23:52:54]OFD Sender: No OFD packet to send [23:52:59]OFD Sender: No OFD packet to send [23:53:04]OFD Sender: No OFD packet to send [23:53:09]OFD Sender: No OFD packet to send [23:53:14]OFD Sender: No OFD packet to send [23:53:19]OFD Sender: No OFD packet to send [23:53:24]OFD Sender: No OFD packet to send [23:53:29]OFD Sender: No OFD packet to send [23:53:34]OFD Sender: No OFD packet to send [23:53:39]OFD Sender: No OFD packet to send [23:53:44]OFD Sender: No OFD packet to send [23:53:49]OFD Sender: No OFD packet to send [23:53:54]OFD Sender: No OFD packet to send [23:53:59]OFD Sender: No OFD packet to send [23:54:04]OFD Sender: No OFD packet to send [23:54:09]OFD Sender: No OFD packet to send [23:54:14]OFD Sender: No OFD packet to send [23:54:19]OFD Sender: No OFD packet to send [23:54: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:05]OFD Sender: No OFD packet to send [23:55:10]OFD Sender: No OFD packet to send [23:55:15]OFD Sender: No OFD packet to send [23:55:20]OFD Sender: No OFD packet to send [23:55:25]OFD Sender: No OFD packet to send [23:55:30]OFD Sender: No OFD packet to send [23:55:35]OFD Sender: No OFD packet to send [23:55:40]OFD Sender: No OFD packet to send [23:55:45]OFD Sender: No OFD packet to send [23:55:50]OFD Sender: No OFD packet to send [23:55:55]OFD Sender: No OFD packet to send [23:56:00]OFD Sender: No OFD packet to send [23:56:05]OFD Sender: No OFD packet to send [23:56:10]OFD Sender: No OFD packet to send [23:56:15]OFD Sender: No OFD packet to send [23:56:20]OFD Sender: No OFD packet to send [23:56:25]OFD Sender: No OFD packet to send [23:56:30]OFD Sender: No OFD packet to send [23:56:35]OFD Sender: No OFD packet to send [23:56:40]OFD Sender: No OFD packet to send [23:56:45]OFD Sender: No OFD packet to send [23:56:50]OFD Sender: No OFD packet to send [23:56:55]OFD Sender: No OFD packet to send [23:57:00]OFD Sender: No OFD packet to send [23:57:05]OFD Sender: No OFD packet to send [23:57:10]OFD Sender: No OFD packet to send [23:57:15]OFD Sender: No OFD packet to send [23:57:20]OFD Sender: No OFD packet to send [23:57:25]OFD Sender: No OFD packet to send [23:57:30]OFD Sender: No OFD packet to send [23:57:35]OFD Sender: No OFD packet to send [23:57:40]OFD Sender: No OFD packet to send [23:57:45]OFD Sender: No OFD packet to send [23:57:50]OFD Sender: No OFD packet to send [23:57:55]OFD Sender: No OFD packet to send [23:57:58]accept exits with 9 [23:57:58]New connection [23:57:58]New thread 3066785124 created [23:57:58]Thread 3066928484 joined [23:57:58]Waiting for new connection... [23:57:58] Sock 9.Parse request [23:57:58]Sock 9.Check first char [23:57:58]Sock 9.First char is OK [23:57:58]request: POST /json_proto HTTP/1.0 [23:57:58]Method: POST [23:57:58]URL: /json_proto [23:57:58]Method is POST - this is cgi request [23:57:58]url: /json_proto [23:57:58]query_string will be loaded in cgi processing [23:57:58]execute_cgi json_proto POST (null) [23:57:58]execute_cgi path=json_proto method=POST [23:57:58]POST find Content-Length [23:57:58]Host: 172.17.33.3:8080 [23:57:58]Content-Length: 677 [23:57:58]Content-Type: application/json [23:57:58] [23:57:58]POST finish read [23:57:58]Found Content-Length = 677 [23:57:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347138", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.50, "quantity" : 6.900, "sum" : 500.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:57:58]execute_script... [23: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)347138", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.50, "quantity" : 6.900, "sum" : 500.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:57:58]POST & json_proto [23:57:58]process_json_proto [23:57:58]json parsed OK: [23:57:58]protocol is kg_v1.0 [23:57:58]action value=close_receipt [23:57:58]process_action close_receipt [23:57:58]cmd_close_receipt [23:57:58]MH_GetDate [23:57:58]Write to MH i2c: F0 00 00 89 14 8C [23:57:58]Write i2c OK [23:57:58]MH_I2C_Read... [23:57:58]Read from MH i2c: F0 [23:57:58]MH_I2C_Read... [23:57:58]Read from MH i2c: F0 09 00 [23:57:58]MH_I2C_Read... [23:57:58]Read from MH i2c: F0 09 00 89 14 00 88 CA 19 66 23 5B 8F 65 D8 [23:57:58]GetLastDocTimeStamp 1712965628 [23:57:58]current date 1712966280 [23:57:58]FM_GetShiftState [23:57:58]SAM_PROTO_GetShiftState [23:57:58]wFMCommunicate request_size=4 [23:57:58]MH_SAM_APDU [23:57:58]CAPDU: 80 13 01 00 [23:57:58]Write to MH i2c: E2 08 00 8A 14 80 13 01 00 00 00 00 00 1B [23:57:58]Write i2c OK [23:57:58]MH_I2C_Read... [23:57:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:57:58]Read from MH i2c: E2 [23:57:58]MH_I2C_Read... [23:57:58]Read from MH i2c: E2 0E 00 [23:57:58]MH_I2C_Read... [23:57:58]Read from MH i2c: E2 0E 00 8A 14 00 09 00 01 17 88 19 66 00 00 00 00 90 00 45 [23:57:58]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [23:57:58]wFMCommunicate OK [23:57:58]SAM_PROTO_GetShiftState done [23:57:58]FM_GetShiftState done [23:57:58]opened in 1712949271 [23:57:58]opened+sec_in_day 1713035671 [23:57:58]quantity*price = 50025 [23:57:58]sum+1 = 50026 [23:57:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 65 12.04.2024 23:58 Смена: 114 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28791 ФПД: 103142083894676 1/tax-web-control/client/api/v1/ticket?date=20240412T235800&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28791&fm=103142083894676&tin=02508201610067®Number=0000138879044617&sum=50000 [23:57:59]StoreToDocumentArchive [23:57:59]shift 114 fd 28791 [23:57:59]save to /storage/0114/doc_00028791 [23:57:59]save last doc name /storage/0114/doc_00028791 to /storage/kkm_last_doc_name [23:57:59]save OK [23:57:59]Clear old archive folders... [23:57:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:57:59]tlvbuf is 012000B0 [23:57:59]SAM_PROTO_ClearQueue [23:57:59]wFMCommunicate request_size=4 [23:57:59]MH_SAM_APDU [23:57:59]CAPDU: 80 09 00 00 [23:57:59]Write to MH i2c: E2 08 00 97 14 80 09 00 00 00 00 00 00 1D [23:57:59]Write i2c OK [23:57:59]MH_I2C_Read... [23:57:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:57:59]Read from MH i2c: E2 [23:57:59]MH_I2C_Read... [23:57:59]Read from MH i2c: E2 03 00 [23:57:59]MH_I2C_Read... [23:57:59]Read from MH i2c: E2 03 00 97 14 00 90 00 1F [23:57:59]RAPDU: 90 00 [23:57:59]wFMCommunicate OK [23:57:59]SAM_PROTO_ClearQueue done [23:57:59]KKMCreateOFDPacket [23:57:59]OFDProtocolAddRootSTLVToBuf [23:57:59]FM_MakeSignedData [23:57:59]FM_MakeSignedData [23:57:59]SAM_PROTO_SignData [23:57:59]wFMCommunicate request_size=4 [23:57:59]MH_SAM_APDU [23:57:59]CAPDU: 80 0D 01 02 [23:57:59]Write to MH i2c: E2 08 00 98 14 80 0D 01 02 00 00 00 00 25 [23:57:59]Write i2c OK [23:57:59]MH_I2C_Read... [23:57:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:57:59]Read from MH i2c: E2 [23:57:59]MH_I2C_Read... [23:57:59]Read from MH i2c: E2 03 00 [23:57:59]MH_I2C_Read... [23:57:59]Read from MH i2c: E2 03 00 98 14 00 90 00 20 [23:57:59]RAPDU: 90 00 [23:57:59]wFMCommunicate OK [23:57:59]wFMCommunicate request_size=255 [23:57:59]MH_SAM_APDU [23:57: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F4 1A 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 88 CA 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 77 70 00 00 35 04 06 00 5D [23:57:59]Write to MH i2c: E2 02 01 99 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 35 FF 03 08 00 03 F4 1A 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 88 CA 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 77 70 00 00 35 04 06 00 5D 00 00 76 [23:57:59]Write i2c OK [23:57:59]MH_I2C_Read... [23:57:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:57:59]Read from MH i2c: E2 [23:57:59]MH_I2C_Read... [23:57:59]Read from MH i2c: E2 03 00 [23:57:59]MH_I2C_Read... [23:57:59]Read from MH i2c: E2 03 00 99 14 00 90 00 21 [23:57:59]RAPDU: 90 00 [23:57:59]wFMCommunicate OK [23:57:59]wFMCommunicate request_size=10 [23:57:59]MH_SAM_APDU [23:57:59]CAPDU: 80 0D 02 02 05 CE A3 45 9D 94 [23:57:59]Write to MH i2c: E2 0D 00 9A 14 80 0D 02 02 05 00 CE A3 45 9D 94 00 00 19 [23:57:59]Write i2c OK [23:57:59]MH_I2C_Read... [23:57:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:58:00]Read from MH i2c: E2 [23:58:00]MH_I2C_Read... [23:58:00]Read from MH i2c: E2 03 00 [23:58:00]MH_I2C_Read... [23:58:00]Read from MH i2c: E2 03 00 9A 14 00 90 00 22 [23:58:00]RAPDU: 90 00 [23:58:00]wFMCommunicate OK [23:58:00]wFMCommunicate request_size=4 [23:58:00]MH_SAM_APDU [23:58:00]CAPDU: 80 0D 03 02 [23:58:00]Write to MH i2c: E2 08 00 9B 14 80 0D 03 02 00 00 00 00 2A [23:58:00]Write i2c OK [23:58:00]MH_I2C_Read... [23:58:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:58:00]Read from MH i2c: E2 [23:58:00]MH_I2C_Read... [23:58:00]Read from MH i2c: E2 0B 00 [23:58:00]MH_I2C_Read... [23:58:00]Read from MH i2c: E2 0B 00 9B 14 00 C9 52 01 C3 43 75 0F FD 90 00 CE [23:58:00]RAPDU: C9 52 01 C3 43 75 0F FD 90 00 [23:58:00]wFMCommunicate OK [23:58:00]SAM_PROTO_SignData done [23:58:00]FM_MakeSignedData done [23:58:00]CreateOFDProtocolMessage [23:58:00]wFMCommunicate request_size=4 [23:58:00]MH_SAM_APDU [23:58:00]CAPDU: 80 11 00 00 [23:58:00]Write to MH i2c: E2 08 00 9C 14 80 11 00 00 00 00 00 00 2A [23:58:00]Write i2c OK [23:58:00]MH_I2C_Read... [23:58:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:58:00]Read from MH i2c: E2 [23:58:00]MH_I2C_Read... [23:58:00]Read from MH i2c: E2 17 00 [23:58:00]MH_I2C_Read... [23:58:00]Read from MH i2c: E2 17 00 9C 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 79 [23:58:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [23:58:00]wFMCommunicate OK [23:58:00]CreateOFDProtocolMessage done [23:58:00]OFDSenderStorePacket 28791 [23:58:00]StoreOFDPacket docnum=28791 [23:58:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 BB F3 07 01 1B 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F4 1A 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 88 CA 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 77 70 00 00 35 04 06 00 5D CE A3 45 9D 94 C9 52 01 C3 43 75 0F FD [23:58:00]CheckFolder [23:58:00]dirname=/storage/ofd_packets [23:58:00]CheckFolder done [23:58:00]ProducePacketName [23:58:00]name=ofd_packets/00028791 [23:58:00]NVStorageSaveData ofd_packets/00028791 [23:58:00]File name is /storage/ofd_packets/00028791 [23:58:00]Write 301 bytes [23:58:00]NVStorageSaveData done [23:58:00]OFDSenderStorePacket done [23:58:00]KKMCreateOFDPacket done [23:58:00]NVStorageSaveData kkm_last_timestamp [23:58:00]File name is /storage/kkm_last_timestamp [23:58:00]Write 4 bytes [23:58:00]NVStorageSaveData done [23:58:00]ExternCall_PrintAddStr [23:58:00]wPrintStart [23:58:00]Write to MH i2c: 01 00 00 9D 14 B1 [23:58:00]Write i2c OK [23:58:00]MH_I2C_Read... [23:58:00]Read from MH i2c: 01 [23:58:00]MH_I2C_Read... [23:58:00]Read from MH i2c: 01 07 00 [23:58:00]MH_I2C_Read... [23:58:00]Read from MH i2c: 01 07 00 9D 14 00 00 00 00 00 FF 0F C6 [23:58:00]RasterBufferAndPrint [23:58:00]line Счет N : (1)347138 [23:58:00]line ИНН: 02508201610067 [23:58:00]line Контрольно-Кассовый Чек [23:58:00]line ПРОДАЖА [23:58:00]line ТРК (МРК, ГНК) : 43 [23:58:00]line Товар: 2710124500 [23:58:00]line Аи-95-К-5 [23:58:00]line 6.900 * 72.50 [23:58:00]line = 500.25 [23:58:00]line НДС 12% НСП 1% [23:58:00]line > о реализуемом товаре [23:58:00]line ОКРУГЛЕНИЕ: -0.25 [23:58:00]line ИТОГО: 500.00 [23:58:00]line Внесено: 500.00 [23:58:00]line СДАЧА: 0.00 [23:58:00]line НСП 1% : 4.43 [23:58:00]line НДС 12% : 53.12 [23:58:00]line Наличными: 500.00 [23:58:00]line Безнал.: 0.00 [23:58:00]line Место: АЗС № 108 "Партнер Нефть" [23:58:00]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [23:58:00]line СНО: Общий режим [23:58:00]line Чек 65 12.04.2024 23:58 [23:58:00]line Смена: 114 ФФД: 1.0 [23:58:00]line ЗНМ: 0300000027 [23:58:00]line РНМ: 0000138879044617 [23:58:00]line Версия ККМ: 001 [23:58:00]line ФМ: 0000000000963154 [23:58:00]line ФД: 28791 [23:58:00]line ФПД: 103142083894676 [23:58:00]line 1/tax-web-control/client/api/v1/ticket?date=20240412T235800&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28791&fm=103142083894676&tin=02508201610067®Number=0000138879044617&sum=50000 [23:58:00]OFD Sender: Processing packet 28791 [packets to send 8, broken 7] [23:58:00]ProducePacketName [23:58:00]name=ofd_packets/00028791 [23:58:00]OFD Sender: To server: pG, [23:58:00]CommunicateWithHost lk.salyk.kg:30040 [23:58:00]ConnectInit lk.salyk.kg [23:58:00]written 0, free lines is 4095 [23:58:00]Connected sock=11 [23:58:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 BB F3 07 01 1B 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F4 1A 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 88 CA 19 66 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 77 70 00 00 35 04 06 00 5D CE A3 45 9D 94 C9 52 01 C3 43 75 0F FD [23:58:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 45 BA 47 00 3E 30 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 77 70 00 00 F4 03 04 00 30 75 19 66 B6 04 01 00 00 9A D8 D1 5F DB 18 4E B2 [23:58:00]CommunicateWithHost err = 0 [23:58:00]CheckOFDResponse [23:58:00]1017 (14) - 77093643461234 [23:58:00]1041 (16) - 0000000000963154 [23:58:00]1040 (4) - 28791 [23:58:00]1012 (4) - 12.04.2024 17:53 [23:58:00]1206 (1) - 0 [23:58:00]OFD Sender: Remove packet 28791 [23:58:00]ProducePacketName [23:58:00]name=ofd_packets/00028791 [23:58:00]NVStorageDeleteData [23:58:00]Write to MH i2c: 01 00 00 C7 14 DB [23:58:00]Write i2c OK [23:58:00]MH_I2C_Read... [23:58:00]Read from MH i2c: 01 [23:58:00]MH_I2C_Read... [23:58:00]Read from MH i2c: 01 07 00 [23:58:00]MH_I2C_Read... [23:58:00]Read from MH i2c: 01 07 00 C7 14 00 00 00 00 00 BC 0C AA [23:58:00]RasterBufferAndPrint [23:58:00]line [23:58:00]line [23:58:00]line [23:58:00]line [23:58:00]line [23:58:00]written 0, free lines is 3265 [23:58:00]MH_Cut [23:58:00]Write to MH i2c: D1 01 00 CE 14 01 B4 [23:58:00]Write i2c OK [23:58:00]MH_I2C_Read... [23:58:00]Read from MH i2c: D1 [23:58:00]MH_I2C_Read... [23:58:00]Read from MH i2c: D1 01 00 [23:58:00]MH_I2C_Read... [23:58:00]Read from MH i2c: D1 01 00 CE 14 00 B3 [23:58:00]Write to MH i2c: 01 00 00 CF 14 E3 [23:58:00]Write i2c OK [23:58:00]MH_I2C_Read... [23:58:01]OFD Sender: No OFD packet to send [23:58:01]*** Cut start [23:58:01]*** Partial cut [23:58:01]*** CUTSNS_PIN = 1 [23:58:01]*** CUTSNS_PIN = 0 [23:58:01]*** Brake cut motor [23:58:02]Read from MH i2c: 01 [23:58:02]MH_I2C_Read... [23:58:02]*** Stop cut motor [23:58:02]*** Cut end [23:58:02]Read from MH i2c: 01 07 00 [23:58:02]MH_I2C_Read... [23:58:02]Read from MH i2c: 01 07 00 CF 14 00 00 00 00 00 FF 0F F8 [23:58:02]process_action close_receipt done [23:58:02]requested_data is exist [23:58:02]produce_requested_data [23:58:02]requested_item fm.sn is exist - process it [23:58:02]wFMCommunicate request_size=4 [23:58:02]MH_SAM_APDU [23:58:02]CAPDU: 80 11 00 00 [23:58:02]Write to MH i2c: E2 08 00 D0 14 80 11 00 00 00 00 00 00 5E [23:58:02]Write i2c OK [23:58:02]MH_I2C_Read... [23:58:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:58:02]Read from MH i2c: E2 [23:58:02]MH_I2C_Read... [23:58:02]Read from MH i2c: E2 17 00 [23:58:02]MH_I2C_Read... [23:58:02]Read from MH i2c: E2 17 00 D0 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 AD [23:58:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [23:58:02]wFMCommunicate OK [23:58:02]requested_item fd.num is exist - process it [23:58:02]SAM_PROTO_GetFieldsCounters [23:58:02]wFMCommunicate request_size=4 [23:58:02]MH_SAM_APDU [23:58:02]CAPDU: 80 13 00 00 [23:58:02]Write to MH i2c: E2 08 00 D1 14 80 13 00 00 00 00 00 00 61 [23:58:02]Write i2c OK [23:58:02]MH_I2C_Read... [23:58:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:58:02]Read from MH i2c: E2 [23:58:02]MH_I2C_Read... [23:58:02]Read from MH i2c: E2 62 00 [23:58:02]MH_I2C_Read... [23:58:02]Read from MH i2c: E2 62 00 D1 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 77 70 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 BB [23:58:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 77 70 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 [23:58:02]wFMCommunicate OK [23:58:02]SAM_PROTO_GetFieldsCounters done [23:58:02]requested_item shift.num is exist - process it [23:58:02]requested_item shift.opened is exist - process it [23:58:02]req_shift_opened [23:58:02]FM_GetShiftState [23:58:02]SAM_PROTO_GetShiftState [23:58:02]wFMCommunicate request_size=4 [23:58:02]MH_SAM_APDU [23:58:02]CAPDU: 80 13 01 00 [23:58:02]Write to MH i2c: E2 08 00 D2 14 80 13 01 00 00 00 00 00 63 [23:58:02]Write i2c OK [23:58:02]MH_I2C_Read... [23:58:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:58:02]Read from MH i2c: E2 [23:58:02]MH_I2C_Read... [23:58:02]Read from MH i2c: E2 0E 00 [23:58:02]MH_I2C_Read... [23:58:02]Read from MH i2c: E2 0E 00 D2 14 00 09 00 01 17 88 19 66 00 00 00 00 90 00 8D [23:58:02]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [23:58:02]wFMCommunicate OK [23:58:02]SAM_PROTO_GetShiftState done [23:58:02]FM_GetShiftState done [23:58:02]req_shift_opened done [23:58:02]requested_item shift.open_date is exist - process it [23:58:02]req_shift_open_date [23:58:02]req_shift_open_date done [23:58:02]produce_requested_data done [23:58:02]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28791,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271} [23:58:02]process_action_free close_receipt [23:58:02]json_value_free [23:58:02]json_value_free done [23:58:02]process_json_proto returns [23:58:02]Send response to host [23:58:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28791,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271}}} [23:58:02]free response buf [23:58:02]execute_script done [23:58:02]execute_script returns [23:58:02]free content buf [23:58:02]Sock 9.Close socket [23:58:02]Sock 9.Thread stoped [23:58:06]OFD Sender: No OFD packet to send [23:58:11]OFD Sender: No OFD packet to send [23:58:16]OFD Sender: No OFD packet to send [23:58:21]OFD Sender: No OFD packet to send [23:58:26]OFD Sender: No OFD packet to send [23:58:31]OFD Sender: No OFD packet to send [23:58:36]OFD Sender: No OFD packet to send [23:58:41]OFD Sender: No OFD packet to send [23:58:46]OFD Sender: No OFD packet to send [23:58:51]OFD Sender: No OFD packet to send [23:58:56]OFD Sender: No OFD packet to send [23:59:01]OFD Sender: No OFD packet to send [23:59:06]OFD Sender: No OFD packet to send [23:59:11]OFD Sender: No OFD packet to send [23:59:16]OFD Sender: No OFD packet to send [23:59:21]OFD Sender: No OFD packet to send [23:59:26]OFD Sender: No OFD packet to send [23:59:31]OFD Sender: No OFD packet to send [23:59:36]OFD Sender: No OFD packet to send [23:59:41]OFD Sender: No OFD packet to send [23:59:46]OFD Sender: No OFD packet to send [23:59:51]OFD Sender: No OFD packet to send [23:59:56]OFD Sender: No OFD packet to send [00:00:01]OFD Sender: No OFD packet to send [00:00:06]OFD Sender: No OFD packet to send [00:00:11]OFD Sender: No OFD packet to send [00:00:16]OFD Sender: No OFD packet to send [00:00:21]OFD Sender: No OFD packet to send [00:00:26]OFD Sender: No OFD packet to send [00:00:31]OFD Sender: No OFD packet to send [00:00:36]OFD Sender: No OFD packet to send [00:00:41]OFD Sender: No OFD packet to send [00:00:46]OFD Sender: No OFD packet to send [00:00:51]OFD Sender: No OFD packet to send [00:00:56]OFD Sender: No OFD packet to send [00:01:01]OFD Sender: No OFD packet to send [00:01:06]OFD Sender: No OFD packet to send [00:01:11]OFD Sender: No OFD packet to send [00:01:16]OFD Sender: No OFD packet to send [00:01:21]OFD Sender: No OFD packet to send [00:01:26]OFD Sender: No OFD packet to send [00:01:31]OFD Sender: No OFD packet to send [00:01:36]OFD Sender: No OFD packet to send [00:01:41]OFD Sender: No OFD packet to send [00:01:46]OFD Sender: No OFD packet to send [00:01:51]OFD Sender: No OFD packet to send [00:01:56]OFD Sender: No OFD packet to send [00:02:01]OFD Sender: No OFD packet to send [00:02:06]OFD Sender: No OFD packet to send [00:02:11]OFD Sender: No OFD packet to send [00:02:16]OFD Sender: No OFD packet to send [00:02:21]OFD Sender: No OFD packet to send [00:02:26]OFD Sender: No OFD packet to send [00:02:31]OFD Sender: No OFD packet to send [00:02:36]OFD Sender: No OFD packet to send [00:02:41]OFD Sender: No OFD packet to send [00:02:46]OFD Sender: No OFD packet to send [00:02:51]OFD Sender: No OFD packet to send [00:02:56]OFD Sender: No OFD packet to send [00:03:01]OFD Sender: No OFD packet to send [00:03:06]OFD Sender: No OFD packet to send [00:03:11]OFD Sender: No OFD packet to send [00:03:16]OFD Sender: No OFD packet to send [00:03:21]OFD Sender: No OFD packet to send [00:03:26]OFD Sender: No OFD packet to send [00:03:31]OFD Sender: No OFD packet to send [00:03:36]OFD Sender: No OFD packet to send [00:03:41]OFD Sender: No OFD packet to send [00:03:46]OFD Sender: No OFD packet to send [00:03:51]OFD Sender: No OFD packet to send [00:03:56]OFD Sender: No OFD packet to send [00:03:58]int [00:03:58]Write to MH i2c: 01 00 00 D3 14 E7 [00:03:58]*** FLAG_PRN_KEY set [00:03:58]Write i2c OK [00:03:58]MH_I2C_Read... [00:03:58]Read from MH i2c: 01 [00:03:58]MH_I2C_Read... [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 D3 14 00 08 00 00 00 FF 0F 04 [00:03:58]state=0 [00:03:58]Key pressed [00:03:58]Feed [00:03:58]Write to MH i2c: D8 00 00 D4 14 BF [00:03:58]Write i2c OK [00:03:58]MH_I2C_Read... [00:03:58]Read from MH i2c: D8 [00:03:58]MH_I2C_Read... [00:03:58]Read from MH i2c: D8 01 00 [00:03:58]MH_I2C_Read... [00:03:58]Read from MH i2c: D8 01 00 D4 14 00 C0 [00:03:58]int [00:03:58]Write to MH i2c: 01 00 00 D5 14 E9 [00:03:58]Write i2c OK [00:03:58]MH_I2C_Read... [00:03:58]Read from MH i2c: 01 [00:03:58]MH_I2C_Read... [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 D5 14 00 48 00 00 00 3C 00 74 [00:03:58]state=2 [00:03:58]Key pressed [00:03:58]int [00:03:58]Write to MH i2c: 01 00 00 D6 14 EA [00:03:58]*** FLAG_PRN_KEY reset [00:03:58]Write i2c OK [00:03:58]MH_I2C_Read... [00:03:58]Read from MH i2c: 01 [00:03:58]MH_I2C_Read... [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 D6 14 00 00 00 00 00 F5 0F F5 [00:03:58]state=2 [00:03:58]Stop feed [00:03:58]int [00:03:58]Write to MH i2c: 01 00 00 D7 14 EB [00:03:58]*** FLAG_PRN_KEY set [00:03:58]Write i2c OK [00:03:58]MH_I2C_Read... [00:03:58]Read from MH i2c: 01 [00:03:58]MH_I2C_Read... [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 D7 14 00 08 00 00 00 FF 0F 08 [00:03:58]state=0 [00:03:58]Key pressed [00:03:58]Feed [00:03:58]Write to MH i2c: D8 00 00 D8 14 C3 [00:03:58]Write i2c OK [00:03:58]MH_I2C_Read... [00:03:58]Read from MH i2c: D8 [00:03:58]MH_I2C_Read... [00:03:58]Read from MH i2c: D8 01 00 [00:03:58]MH_I2C_Read... [00:03:58]Read from MH i2c: D8 01 00 D8 14 00 C4 [00:03:58]int [00:03:58]Write to MH i2c: 01 00 00 D9 14 ED [00:03:58]Write i2c OK [00:03:58]MH_I2C_Read... [00:03:58]Read from MH i2c: 01 [00:03:58]MH_I2C_Read... [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 D9 14 00 48 00 00 00 3C 00 78 [00:03:58]state=2 [00:03:58]Key pressed [00:03:58]int [00:03:58]Write to MH i2c: 01 00 00 DA 14 EE [00:03:58]*** FLAG_PRN_KEY reset [00:03:58]Write i2c OK [00:03:58]MH_I2C_Read... [00:03:58]Read from MH i2c: 01 [00:03:58]MH_I2C_Read... [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 DA 14 00 00 00 00 00 F6 0F FA [00:03:58]state=2 [00:03:58]Stop feed [00:03:58]int [00:03:58]Write to MH i2c: 01 00 00 DB 14 EF [00:03:58]*** FLAG_PRN_KEY set [00:03:58]Write i2c OK [00:03:58]MH_I2C_Read... [00:03:58]Read from MH i2c: 01 [00:03:58]MH_I2C_Read... [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 DB 14 00 08 00 00 00 FF 0F 0C [00:03:58]state=0 [00:03:58]Key pressed [00:03:58]Feed [00:03:58]Write to MH i2c: D8 00 00 DC 14 C7 [00:03:58]Write i2c OK [00:03:58]MH_I2C_Read... [00:03:58]Read from MH i2c: D8 [00:03:58]MH_I2C_Read... [00:03:58]Read from MH i2c: D8 01 00 [00:03:58]MH_I2C_Read... [00:03:58]Read from MH i2c: D8 01 00 DC 14 00 C8 [00:03:58]int [00:03:58]Write to MH i2c: 01 00 00 DD 14 F1 [00:03:58]Write i2c OK [00:03:58]MH_I2C_Read... [00:03:58]Read from MH i2c: 01 [00:03:58]MH_I2C_Read... [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 DD 14 00 48 00 00 00 3C 00 7C [00:03:58]state=2 [00:03:58]Key pressed [00:03:58]int [00:03:58]Write to MH i2c: 01 00 00 DE 14 F2 [00:03:58]*** FLAG_PRN_KEY reset [00:03:58]Write i2c OK [00:03:58]MH_I2C_Read... [00:03:58]Read from MH i2c: 01 [00:03:58]MH_I2C_Read... [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 DE 14 00 00 00 00 00 F6 0F FE [00:03:58]state=2 [00:03:58]Stop feed [00:03:58]int [00:03:58]Write to MH i2c: 01 00 00 DF 14 F3 [00:03:58]*** FLAG_PRN_KEY set [00:03:58]Write i2c OK [00:03:58]MH_I2C_Read... [00:03:58]Read from MH i2c: 01 [00:03:58]MH_I2C_Read... [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 DF 14 00 08 00 00 00 FF 0F 10 [00:03:58]state=0 [00:03:58]Key pressed [00:03:58]Feed [00:03:58]Write to MH i2c: D8 00 00 E0 14 CB [00:03:58]Write i2c OK [00:03:58]MH_I2C_Read... [00:03:58]Read from MH i2c: D8 [00:03:58]MH_I2C_Read... [00:03:58]Read from MH i2c: D8 01 00 [00:03:58]MH_I2C_Read... [00:03:58]Read from MH i2c: D8 01 00 E0 14 00 CC [00:03:59]int [00:03:59]Write to MH i2c: 01 00 00 E1 14 F5 [00:03:59]Write i2c OK [00:03:59]MH_I2C_Read... [00:03:59]Read from MH i2c: 01 [00:03:59]MH_I2C_Read... [00:03:59]Read from MH i2c: 01 07 00 [00:03:59]MH_I2C_Read... [00:03:59]Read from MH i2c: 01 07 00 E1 14 00 48 00 00 00 3C 00 80 [00:03:59]state=2 [00:03:59]Key pressed [00:03:59]int [00:03:59]Write to MH i2c: 01 00 00 E2 14 F6 [00:03:59]*** FLAG_PRN_KEY reset [00:03:59]Write i2c OK [00:03:59]MH_I2C_Read... [00:03:59]Read from MH i2c: 01 [00:03:59]MH_I2C_Read... [00:03:59]Read from MH i2c: 01 07 00 [00:03:59]MH_I2C_Read... [00:03:59]Read from MH i2c: 01 07 00 E2 14 00 00 00 00 00 F6 0F 02 [00:03:59]state=2 [00:03:59]Stop feed [00:04:01]OFD Sender: No OFD packet to send [00:04:06]OFD Sender: No OFD packet to send [00:04:11]OFD Sender: No OFD packet to send [00:04:16]OFD Sender: No OFD packet to send [00:04:20]accept exits with 7 [00:04:20]New connection [00:04:20]New thread 3066928484 created [00:04:20]Thread 3066785124 joined [00:04:20]Waiting for new connection... [00:04:20] Sock 7.Parse request [00:04:20]Sock 7.Check first char [00:04:20]Sock 7.First char is OK [00:04:20]request: POST /json_proto HTTP/1.0 [00:04:20]Method: POST [00:04:20]URL: /json_proto [00:04:20]Method is POST - this is cgi request [00:04:20]url: /json_proto [00:04:20]query_string will be loaded in cgi processing [00:04:20]execute_cgi json_proto POST (null) [00:04:20]execute_cgi path=json_proto method=POST [00:04:20]POST find Content-Length [00:04:20]Host: 172.17.33.3:8080 [00:04:20]Content-Length: 215 [00:04:20]Content-Type: application/json [00:04:20] [00:04:20]POST finish read [00:04:20]Found Content-Length = 215 [00:04:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:04:20]execute_script... [00:04:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:04:20]POST & json_proto [00:04:20]process_json_proto [00:04:20]json parsed OK: [00:04:20]protocol is kg_v1.0 [00:04:20]action value=get_value [00:04:20]process_action get_value [00:04:20]cmd_get_value [00:04:20]process_action get_value done [00:04:20]requested_data is exist [00:04:20]produce_requested_data [00:04:20]requested_item kkm.sn is exist - process it [00:04:20]requested_item kkm.ver is exist - process it [00:04:20]requested_item fm.sn is exist - process it [00:04:20]wFMCommunicate request_size=4 [00:04:20]MH_SAM_APDU [00:04:20]CAPDU: 80 11 00 00 [00:04:20]Write to MH i2c: E2 08 00 E3 14 80 11 00 00 00 00 00 00 71 [00:04:20]Write i2c OK [00:04:20]MH_I2C_Read... [00:04:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:04:20]Read from MH i2c: E2 [00:04:20]MH_I2C_Read... [00:04:20]Read from MH i2c: E2 17 00 [00:04:20]MH_I2C_Read... [00:04:20]Read from MH i2c: E2 17 00 E3 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 C0 [00:04:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [00:04:20]wFMCommunicate OK [00:04:20]requested_item fd.num is exist - process it [00:04:20]SAM_PROTO_GetFieldsCounters [00:04:20]wFMCommunicate request_size=4 [00:04:20]MH_SAM_APDU [00:04:20]CAPDU: 80 13 00 00 [00:04:20]Write to MH i2c: E2 08 00 E4 14 80 13 00 00 00 00 00 00 74 [00:04:20]Write i2c OK [00:04:20]MH_I2C_Read... [00:04:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:04:20]Read from MH i2c: E2 [00:04:20]MH_I2C_Read... [00:04:20]Read from MH i2c: E2 62 00 [00:04:20]MH_I2C_Read... [00:04:20]Read from MH i2c: E2 62 00 E4 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 77 70 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 CE [00:04:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 77 70 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 [00:04:20]wFMCommunicate OK [00:04:20]SAM_PROTO_GetFieldsCounters done [00:04:20]requested_item shift.num is exist - process it [00:04:20]requested_item shift.opened is exist - process it [00:04:20]req_shift_opened [00:04:20]FM_GetShiftState [00:04:20]SAM_PROTO_GetShiftState [00:04:20]wFMCommunicate request_size=4 [00:04:20]MH_SAM_APDU [00:04:20]CAPDU: 80 13 01 00 [00:04:20]Write to MH i2c: E2 08 00 E5 14 80 13 01 00 00 00 00 00 76 [00:04:20]Write i2c OK [00:04:20]MH_I2C_Read... [00:04:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:04:20]Read from MH i2c: E2 [00:04:20]MH_I2C_Read... [00:04:20]Read from MH i2c: E2 0E 00 [00:04:20]MH_I2C_Read... [00:04:20]Read from MH i2c: E2 0E 00 E5 14 00 09 00 01 17 88 19 66 00 00 00 00 90 00 A0 [00:04:20]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [00:04:20]wFMCommunicate OK [00:04:20]SAM_PROTO_GetShiftState done [00:04:20]FM_GetShiftState done [00:04:20]req_shift_opened done [00:04:20]requested_item shift.open_date is exist - process it [00:04:20]req_shift_open_date [00:04:20]req_shift_open_date done [00:04:20]produce_requested_data done [00:04:20]produce_requested_data return {"kkm.sn":"0300000027","kkm.ver":"001","fm.sn":"0000000000963154","fd.num":28791,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271} [00:04:20]process_action_free get_value [00:04:20]json_value_free [00:04:20]json_value_free done [00:04:20]process_json_proto returns [00:04:20]Send response to host [00:04:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000027","kkm.ver":"001","fm.sn":"0000000000963154","fd.num":28791,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271}}} [00:04:20]free response buf [00:04:20]execute_script done [00:04:20]execute_script returns [00:04:20]free content buf [00:04:20]Sock 7.Close socket [00:04:20]Sock 7.Thread stoped [00:04:20]accept exits with 9 [00:04:20]New connection [00:04:20]New thread 3066785124 created [00:04:20]Thread 3066928484 joined [00:04:20]Waiting for new connection... [00:04:20] Sock 9.Parse request [00:04:20]Sock 9.Check first char [00:04:20]Sock 9.First char is OK [00:04:20]request: POST /json_proto HTTP/1.0 [00:04:20]Method: POST [00:04:20]URL: /json_proto [00:04:20]Method is POST - this is cgi request [00:04:20]url: /json_proto [00:04:20]query_string will be loaded in cgi processing [00:04:20]execute_cgi json_proto POST (null) [00:04:20]execute_cgi path=json_proto method=POST [00:04:20]POST find Content-Length [00:04:20]Host: 172.17.33.3:8080 [00:04:20]Content-Length: 331 [00:04:20]Content-Type: application/json [00:04:20] [00:04:20]POST finish read [00:04:20]Found Content-Length = 331 [00:04:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:04:20]execute_script... [00:04: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:04:21]POST & json_proto [00:04:21]process_json_proto [00:04:21]json parsed OK: [00:04:21]protocol is kg_v1.0 [00:04:21]action value=get_value [00:04:21]process_action get_value [00:04:21]cmd_get_value [00:04:21]process_action get_value done [00:04:21]requested_data is exist [00:04:21]produce_requested_data [00:04:21]requested_item fm.sale.total is exist - process it [00:04:21]SAM_PROTO_GetFMData [00:04:21]wFMCommunicate request_size=4 [00:04:21]MH_SAM_APDU [00:04:21]CAPDU: 80 13 03 00 [00:04:21]Write to MH i2c: E2 08 00 E6 14 80 13 03 00 00 00 00 00 79 [00:04:21]Write i2c OK [00:04:21]MH_I2C_Read... [00:04:21]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:04:21]Read from MH i2c: E2 [00:04:21]MH_I2C_Read... [00:04:21]Read from MH i2c: E2 FD 00 [00:04:21]MH_I2C_Read... [00:04:21]Read from MH i2c: E2 FD 00 E6 14 00 C3 04 85 04 BF 04 6E 04 04 00 93 6F 00 00 69 04 A1 00 6F 04 04 00 38 6C 00 00 B1 04 04 00 60 A9 16 B0 70 04 04 00 48 3A 6C 70 72 04 04 00 18 6F AA 3F 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 54 0E B4 12 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 49 F8 8E 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 9C 00 6F 04 04 00 5B 03 00 00 B1 04 04 00 28 7A 97 0C 70 04 04 00 28 7A 97 0C 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 B0 5A 56 01 EF 03 09 00 F6 90 00 0F [00:04:21]RAPDU: C3 04 85 04 BF 04 6E 04 04 00 93 6F 00 00 69 04 A1 00 6F 04 04 00 38 6C 00 00 B1 04 04 00 60 A9 16 B0 70 04 04 00 48 3A 6C 70 72 04 04 00 18 6F AA 3F 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 54 0E B4 12 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 49 F8 8E 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 9C 00 6F 04 04 00 5B 03 00 00 B1 04 04 00 28 7A 97 0C 70 04 04 00 28 7A 97 0C 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 B0 5A 56 01 EF 03 09 00 F6 90 00 [00:04:21]wFMCommunicate OK [00:04:21]wFMCommunicate request_size=4 [00:04:21]MH_SAM_APDU [00:04:21]CAPDU: 80 17 00 00 [00:04:21]Write to MH i2c: E2 08 00 E7 14 80 17 00 00 00 00 00 00 7B [00:04:21]Write i2c OK [00:04:21]MH_I2C_Read... [00:04:21]OFD Sender: No OFD packet to send [00:04:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:21]Read from MH i2c: E2 [00:04:21]MH_I2C_Read... [00:04:21]Read from MH i2c: E2 FD 00 [00:04:21]MH_I2C_Read... [00:04:21]Read from MH i2c: E2 FD 00 E7 14 00 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 1F 87 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 FD [00:04:21]RAPDU: 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 1F 87 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:04:21]wFMCommunicate OK [00:04:21]wFMCommunicate request_size=4 [00:04:21]MH_SAM_APDU [00:04:21]CAPDU: 80 17 00 00 [00:04:21]Write to MH i2c: E2 08 00 E8 14 80 17 00 00 00 00 00 00 7C [00:04:21]Write i2c OK [00:04:21]MH_I2C_Read... [00:04:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:22]Read from MH i2c: E2 [00:04:22]MH_I2C_Read... [00:04:22]Read from MH i2c: E2 FD 00 [00:04:22]MH_I2C_Read... [00:04:22]Read from MH i2c: E2 FD 00 E8 14 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 9A [00:04:22]RAPDU: 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:04:22]wFMCommunicate OK [00:04:22]wFMCommunicate request_size=4 [00:04:22]MH_SAM_APDU [00:04:22]CAPDU: 80 17 00 00 [00:04:22]Write to MH i2c: E2 08 00 E9 14 80 17 00 00 00 00 00 00 7D [00:04:22]Write i2c OK [00:04:22]MH_I2C_Read... [00:04:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:22]Read from MH i2c: E2 [00:04:22]MH_I2C_Read... [00:04:22]Read from MH i2c: E2 FD 00 [00:04:22]MH_I2C_Read... [00:04:22]Read from MH i2c: E2 FD 00 E9 14 00 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 EF [00:04:22]RAPDU: 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:04:22]wFMCommunicate OK [00:04:22]wFMCommunicate request_size=4 [00:04:22]MH_SAM_APDU [00:04:22]CAPDU: 80 17 00 00 [00:04:22]Write to MH i2c: E2 08 00 EA 14 80 17 00 00 00 00 00 00 7E [00:04:22]Write i2c OK [00:04:22]MH_I2C_Read... [00:04:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 221! [00:04:22]Read from MH i2c: E2 [00:04:22]MH_I2C_Read... [00:04:22]Read from MH i2c: E2 E0 00 [00:04:22]MH_I2C_Read... [00:04:22]Read from MH i2c: E2 E0 00 EA 14 00 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 68 [00:04:22]RAPDU: 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:04:22]wFMCommunicate OK [00:04:22]SAM_PROTO_GetFMData done [00:04:22]requested_item fm.sale_refund.total is exist - process it [00:04:22]requested_item fm.buy.total is exist - process it [00:04:22]requested_item shift.sale.total is exist - process it [00:04:22]SAM_PROTO_GetShiftData [00:04:22]wFMCommunicate request_size=4 [00:04:22]MH_SAM_APDU [00:04:22]CAPDU: 80 13 02 00 [00:04:22]Write to MH i2c: E2 08 00 EB 14 80 13 02 00 00 00 00 00 7D [00:04:22]Write i2c OK [00:04:22]MH_I2C_Read... [00:04:22]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:04:22]Read from MH i2c: E2 [00:04:22]MH_I2C_Read... [00:04:22]Read from MH i2c: E2 FD 00 [00:04:22]MH_I2C_Read... [00:04:22]Read from MH i2c: E2 FD 00 EB 14 00 B9 04 AA 04 B5 04 6E 04 04 00 41 00 00 00 69 04 9C 00 6F 04 04 00 40 00 00 00 B1 04 03 00 87 AD 9A 70 04 03 00 D0 50 2A 72 04 03 00 B7 5C 70 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 6D 6D 10 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 72 5E 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 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 80 1A 06 70 04 03 00 80 1A 06 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 EF A5 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 1E [00:04:22]RAPDU: B9 04 AA 04 B5 04 6E 04 04 00 41 00 00 00 69 04 9C 00 6F 04 04 00 40 00 00 00 B1 04 03 00 87 AD 9A 70 04 03 00 D0 50 2A 72 04 03 00 B7 5C 70 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 6D 6D 10 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 72 5E 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 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 80 1A 06 70 04 03 00 80 1A 06 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 EF A5 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [00:04:23]wFMCommunicate OK [00:04:23]wFMCommunicate request_size=4 [00:04:23]MH_SAM_APDU [00:04:23]CAPDU: 80 17 00 00 [00:04:23]Write to MH i2c: E2 08 00 EC 14 80 17 00 00 00 00 00 00 80 [00:04:23]Write i2c OK [00:04:23]MH_I2C_Read... [00:04:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:23]Read from MH i2c: E2 [00:04:23]MH_I2C_Read... [00:04:23]Read from MH i2c: E2 FD 00 [00:04:23]MH_I2C_Read... [00:04:23]Read from MH i2c: E2 FD 00 EC 14 00 03 0B 00 F6 03 01 00 01 F7 03 02 00 D4 0D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 20 [00:04:23]RAPDU: 03 0B 00 F6 03 01 00 01 F7 03 02 00 D4 0D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:04:23]wFMCommunicate OK [00:04:23]wFMCommunicate request_size=4 [00:04:23]MH_SAM_APDU [00:04:23]CAPDU: 80 17 00 00 [00:04:23]Write to MH i2c: E2 08 00 ED 14 80 17 00 00 00 00 00 00 81 [00:04:23]Write i2c OK [00:04:23]MH_I2C_Read... [00:04:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:23]Read from MH i2c: E2 [00:04:23]MH_I2C_Read... [00:04:23]Read from MH i2c: E2 FD 00 [00:04:23]MH_I2C_Read... [00:04:23]Read from MH i2c: E2 FD 00 ED 14 00 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 A9 [00:04:23]RAPDU: 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:04:23]wFMCommunicate OK [00:04:23]wFMCommunicate request_size=4 [00:04:23]MH_SAM_APDU [00:04:23]CAPDU: 80 17 00 00 [00:04:23]Write to MH i2c: E2 08 00 EE 14 80 17 00 00 00 00 00 00 82 [00:04:23]Write i2c OK [00:04:23]MH_I2C_Read... [00:04:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:23]Read from MH i2c: E2 [00:04:23]MH_I2C_Read... [00:04:23]Read from MH i2c: E2 FD 00 [00:04:23]MH_I2C_Read... [00:04:23]Read from MH i2c: E2 FD 00 EE 14 00 EF 03 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 90 00 FA [00:04:23]RAPDU: EF 03 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 90 00 [00:04:23]wFMCommunicate OK [00:04:23]wFMCommunicate request_size=4 [00:04:23]MH_SAM_APDU [00:04:23]CAPDU: 80 17 00 00 [00:04:23]Write to MH i2c: E2 08 00 EF 14 80 17 00 00 00 00 00 00 83 [00:04:23]Write i2c OK [00:04:23]MH_I2C_Read... [00:04:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 211! [00:04:24]Read from MH i2c: E2 [00:04:24]MH_I2C_Read... [00:04:24]Read from MH i2c: E2 D6 00 [00:04:24]MH_I2C_Read... [00:04:24]Read from MH i2c: E2 D6 00 EF 14 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 65 [00:04:24]RAPDU: 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:04:24]wFMCommunicate OK [00:04:24]SAM_PROTO_GetShiftData done [00:04:24]requested_item shift.sale.total_cash is exist - process it [00:04:24]requested_item shift.sale_refund.total is exist - process it [00:04:24]requested_item shift.sale_refund.total_cash is exist - process it [00:04:24]requested_item shift.buy.total is exist - process it [00:04:24]requested_item shift.buy.total_cash is exist - process it [00:04:24]produce_requested_data done [00:04:24]produce_requested_data return {"fm.sale.total":29542751.68,"fm.sale_refund.total":2112538.00,"fm.buy.total":0.00,"shift.sale.total":101369.67,"shift.sale.total_cash":27732.00,"shift.sale_refund.total":4000.00,"shift.sale_refund.total_cash":4000.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:04:24]process_action_free get_value [00:04:24]json_value_free [00:04:24]json_value_free done [00:04:24]process_json_proto returns [00:04:24]Send response to host [00:04:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":29542751.68,"fm.sale_refund.total":2112538.00,"fm.buy.total":0.00,"shift.sale.total":101369.67,"shift.sale.total_cash":27732.00,"shift.sale_refund.total":4000.00,"shift.sale_refund.total_cash":4000.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:04:24]free response buf [00:04:24]execute_script done [00:04:24]execute_script returns [00:04:24]free content buf [00:04:24]Sock 9.Close socket [00:04:24]Sock 9.Thread stoped [00:04:24]accept exits with 7 [00:04:24]New connection [00:04:24]New thread 3066928484 created [00:04:24]Thread 3066785124 joined [00:04:24]Waiting for new connection... [00:04:24] Sock 7.Parse request [00:04:24]Sock 7.Check first char [00:04:24]Sock 7.First char is OK [00:04:24]request: POST /json_proto HTTP/1.0 [00:04:24]Method: POST [00:04:24]URL: /json_proto [00:04:24]Method is POST - this is cgi request [00:04:24]url: /json_proto [00:04:24]query_string will be loaded in cgi processing [00:04:24]execute_cgi json_proto POST (null) [00:04:24]execute_cgi path=json_proto method=POST [00:04:24]POST find Content-Length [00:04:24]Host: 172.17.33.3:8080 [00:04:24]Content-Length: 331 [00:04:24]Content-Type: application/json [00:04:24] [00:04:24]POST finish read [00:04:24]Found Content-Length = 331 [00:04:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:04:24]execute_script... [00:04:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:04:24]POST & json_proto [00:04:24]process_json_proto [00:04:24]json parsed OK: [00:04:24]protocol is kg_v1.0 [00:04:24]action value=get_value [00:04:24]process_action get_value [00:04:24]cmd_get_value [00:04:24]process_action get_value done [00:04:24]requested_data is exist [00:04:24]produce_requested_data [00:04:24]requested_item fm.sale.total is exist - process it [00:04:24]SAM_PROTO_GetFMData [00:04:24]wFMCommunicate request_size=4 [00:04:24]MH_SAM_APDU [00:04:24]CAPDU: 80 13 03 00 [00:04:24]Write to MH i2c: E2 08 00 F0 14 80 13 03 00 00 00 00 00 83 [00:04:24]Write i2c OK [00:04:24]MH_I2C_Read... [00:04:24]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:04:24]Read from MH i2c: E2 [00:04:24]MH_I2C_Read... [00:04:24]Read from MH i2c: E2 FD 00 [00:04:24]MH_I2C_Read... [00:04:24]Read from MH i2c: E2 FD 00 F0 14 00 C3 04 85 04 BF 04 6E 04 04 00 93 6F 00 00 69 04 A1 00 6F 04 04 00 38 6C 00 00 B1 04 04 00 60 A9 16 B0 70 04 04 00 48 3A 6C 70 72 04 04 00 18 6F AA 3F 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 54 0E B4 12 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 49 F8 8E 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 9C 00 6F 04 04 00 5B 03 00 00 B1 04 04 00 28 7A 97 0C 70 04 04 00 28 7A 97 0C 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 B0 5A 56 01 EF 03 09 00 F6 90 00 19 [00:04:24]RAPDU: C3 04 85 04 BF 04 6E 04 04 00 93 6F 00 00 69 04 A1 00 6F 04 04 00 38 6C 00 00 B1 04 04 00 60 A9 16 B0 70 04 04 00 48 3A 6C 70 72 04 04 00 18 6F AA 3F 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 54 0E B4 12 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 49 F8 8E 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 9C 00 6F 04 04 00 5B 03 00 00 B1 04 04 00 28 7A 97 0C 70 04 04 00 28 7A 97 0C 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 B0 5A 56 01 EF 03 09 00 F6 90 00 [00:04:24]wFMCommunicate OK [00:04:24]wFMCommunicate request_size=4 [00:04:24]MH_SAM_APDU [00:04:24]CAPDU: 80 17 00 00 [00:04:24]Write to MH i2c: E2 08 00 F1 14 80 17 00 00 00 00 00 00 85 [00:04:24]Write i2c OK [00:04:24]MH_I2C_Read... [00:04:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:24]Read from MH i2c: E2 [00:04:24]MH_I2C_Read... [00:04:24]Read from MH i2c: E2 FD 00 [00:04:24]MH_I2C_Read... [00:04:24]Read from MH i2c: E2 FD 00 F1 14 00 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 1F 87 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 07 [00:04:24]RAPDU: 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 1F 87 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:04:25]wFMCommunicate OK [00:04:25]wFMCommunicate request_size=4 [00:04:25]MH_SAM_APDU [00:04:25]CAPDU: 80 17 00 00 [00:04:25]Write to MH i2c: E2 08 00 F2 14 80 17 00 00 00 00 00 00 86 [00:04:25]Write i2c OK [00:04:25]MH_I2C_Read... [00:04:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:25]Read from MH i2c: E2 [00:04:25]MH_I2C_Read... [00:04:25]Read from MH i2c: E2 FD 00 [00:04:25]MH_I2C_Read... [00:04:25]Read from MH i2c: E2 FD 00 F2 14 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 A4 [00:04:25]RAPDU: 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:04:25]wFMCommunicate OK [00:04:25]wFMCommunicate request_size=4 [00:04:25]MH_SAM_APDU [00:04:25]CAPDU: 80 17 00 00 [00:04:25]Write to MH i2c: E2 08 00 F3 14 80 17 00 00 00 00 00 00 87 [00:04:25]Write i2c OK [00:04:25]MH_I2C_Read... [00:04:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:25]Read from MH i2c: E2 [00:04:25]MH_I2C_Read... [00:04:25]Read from MH i2c: E2 FD 00 [00:04:25]MH_I2C_Read... [00:04:25]Read from MH i2c: E2 FD 00 F3 14 00 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 F9 [00:04:25]RAPDU: 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:04:25]wFMCommunicate OK [00:04:25]wFMCommunicate request_size=4 [00:04:25]MH_SAM_APDU [00:04:25]CAPDU: 80 17 00 00 [00:04:25]Write to MH i2c: E2 08 00 F4 14 80 17 00 00 00 00 00 00 88 [00:04:25]Write i2c OK [00:04:25]MH_I2C_Read... [00:04:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 221! [00:04:25]Read from MH i2c: E2 [00:04:25]MH_I2C_Read... [00:04:25]Read from MH i2c: E2 E0 00 [00:04:25]MH_I2C_Read... [00:04:25]Read from MH i2c: E2 E0 00 F4 14 00 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 72 [00:04:26]RAPDU: 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:04:26]wFMCommunicate OK [00:04:26]SAM_PROTO_GetFMData done [00:04:26]requested_item fm.sale_refund.total is exist - process it [00:04:26]requested_item fm.buy.total is exist - process it [00:04:26]requested_item shift.sale.total is exist - process it [00:04:26]SAM_PROTO_GetShiftData [00:04:26]wFMCommunicate request_size=4 [00:04:26]MH_SAM_APDU [00:04:26]CAPDU: 80 13 02 00 [00:04:26]Write to MH i2c: E2 08 00 F5 14 80 13 02 00 00 00 00 00 87 [00:04:26]Write i2c OK [00:04:26]MH_I2C_Read... [00:04:26]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:04:26]Read from MH i2c: E2 [00:04:26]MH_I2C_Read... [00:04:26]Read from MH i2c: E2 FD 00 [00:04:26]MH_I2C_Read... [00:04:26]Read from MH i2c: E2 FD 00 F5 14 00 B9 04 AA 04 B5 04 6E 04 04 00 41 00 00 00 69 04 9C 00 6F 04 04 00 40 00 00 00 B1 04 03 00 87 AD 9A 70 04 03 00 D0 50 2A 72 04 03 00 B7 5C 70 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 6D 6D 10 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 72 5E 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 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 80 1A 06 70 04 03 00 80 1A 06 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 EF A5 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 28 [00:04:26]RAPDU: B9 04 AA 04 B5 04 6E 04 04 00 41 00 00 00 69 04 9C 00 6F 04 04 00 40 00 00 00 B1 04 03 00 87 AD 9A 70 04 03 00 D0 50 2A 72 04 03 00 B7 5C 70 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 6D 6D 10 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 72 5E 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 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 80 1A 06 70 04 03 00 80 1A 06 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 EF A5 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 OFD Sender: No OFD packet to send [00:04:26]EF 90 00 [00:04:26]wFMCommunicate OK [00:04:26]wFMCommunicate request_size=4 [00:04:26]MH_SAM_APDU [00:04:26]CAPDU: 80 17 00 00 [00:04:26]Write to MH i2c: E2 08 00 F6 14 80 17 00 00 00 00 00 00 8A [00:04:26]Write i2c OK [00:04:26]MH_I2C_Read... [00:04:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:27]Read from MH i2c: E2 [00:04:27]MH_I2C_Read... [00:04:27]Read from MH i2c: E2 FD 00 [00:04:27]MH_I2C_Read... [00:04:27]Read from MH i2c: E2 FD 00 F6 14 00 03 0B 00 F6 03 01 00 01 F7 03 02 00 D4 0D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 2A [00:04:27]RAPDU: 03 0B 00 F6 03 01 00 01 F7 03 02 00 D4 0D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:04:27]wFMCommunicate OK [00:04:27]wFMCommunicate request_size=4 [00:04:27]MH_SAM_APDU [00:04:27]CAPDU: 80 17 00 00 [00:04:27]Write to MH i2c: E2 08 00 F7 14 80 17 00 00 00 00 00 00 8B [00:04:27]Write i2c OK [00:04:27]MH_I2C_Read... [00:04:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:27]Read from MH i2c: E2 [00:04:27]MH_I2C_Read... [00:04:27]Read from MH i2c: E2 FD 00 [00:04:27]MH_I2C_Read... [00:04:27]Read from MH i2c: E2 FD 00 F7 14 00 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 B3 [00:04:27]RAPDU: 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:04:27]wFMCommunicate OK [00:04:27]wFMCommunicate request_size=4 [00:04:27]MH_SAM_APDU [00:04:27]CAPDU: 80 17 00 00 [00:04:27]Write to MH i2c: E2 08 00 F8 14 80 17 00 00 00 00 00 00 8C [00:04:27]Write i2c OK [00:04:27]MH_I2C_Read... [00:04:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:27]Read from MH i2c: E2 [00:04:27]MH_I2C_Read... [00:04:27]Read from MH i2c: E2 FD 00 [00:04:27]MH_I2C_Read... [00:04:27]Read from MH i2c: E2 FD 00 F8 14 00 EF 03 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 90 00 04 [00:04:27]RAPDU: EF 03 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 90 00 [00:04:28]wFMCommunicate OK [00:04:28]wFMCommunicate request_size=4 [00:04:28]MH_SAM_APDU [00:04:28]CAPDU: 80 17 00 00 [00:04:28]Write to MH i2c: E2 08 00 F9 14 80 17 00 00 00 00 00 00 8D [00:04:28]Write i2c OK [00:04:28]MH_I2C_Read... [00:04:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 211! [00:04:28]Read from MH i2c: E2 [00:04:28]MH_I2C_Read... [00:04:28]Read from MH i2c: E2 D6 00 [00:04:28]MH_I2C_Read... [00:04:28]Read from MH i2c: E2 D6 00 F9 14 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 6F [00:04:28]RAPDU: 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:04:28]wFMCommunicate OK [00:04:28]SAM_PROTO_GetShiftData done [00:04:28]requested_item shift.sale.total_cash is exist - process it [00:04:28]requested_item shift.sale_refund.total is exist - process it [00:04:28]requested_item shift.sale_refund.total_cash is exist - process it [00:04:28]requested_item shift.buy.total is exist - process it [00:04:28]requested_item shift.buy.total_cash is exist - process it [00:04:28]produce_requested_data done [00:04:28]produce_requested_data return {"fm.sale.total":29542751.68,"fm.sale_refund.total":2112538.00,"fm.buy.total":0.00,"shift.sale.total":101369.67,"shift.sale.total_cash":27732.00,"shift.sale_refund.total":4000.00,"shift.sale_refund.total_cash":4000.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:04:28]process_action_free get_value [00:04:28]json_value_free [00:04:28]json_value_free done [00:04:28]process_json_proto returns [00:04:28]Send response to host [00:04:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":29542751.68,"fm.sale_refund.total":2112538.00,"fm.buy.total":0.00,"shift.sale.total":101369.67,"shift.sale.total_cash":27732.00,"shift.sale_refund.total":4000.00,"shift.sale_refund.total_cash":4000.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:04:28]free response buf [00:04:28]execute_script done [00:04:28]execute_script returns [00:04:28]free content buf [00:04:28]Sock 7.Close socket [00:04:28]Sock 7.Thread stoped [00:04:28]accept exits with 9 [00:04:28]New connection [00:04:28]New thread 3066785124 created [00:04:28]Thread 3066928484 joined [00:04:28]Waiting for new connection... [00:04:28] Sock 9.Parse request [00:04:28]Sock 9.Check first char [00:04:28]Sock 9.First char is OK [00:04:28]request: POST /json_proto HTTP/1.0 [00:04:28]Method: POST [00:04:28]URL: /json_proto [00:04:28]Method is POST - this is cgi request [00:04:28]url: /json_proto [00:04:28]query_string will be loaded in cgi processing [00:04:28]execute_cgi json_proto POST (null) [00:04:28]execute_cgi path=json_proto method=POST [00:04:28]POST find Content-Length [00:04:28]Host: 172.17.33.3:8080 [00:04:28]Content-Length: 257 [00:04:28]Content-Type: application/json [00:04:28] [00:04:28]POST finish read [00:04:28]Found Content-Length = 257 [00:04:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0421\u0430\u0440\u044B\u0431\u0430\u0435\u0432 \u042D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:04:28]execute_script... [00:04:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0421\u0430\u0440\u044B\u0431\u0430\u0435\u0432 \u042D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:04:28]POST & json_proto [00:04:28]process_json_proto [00:04:28]json parsed OK: [00:04:28]protocol is kg_v1.0 [00:04:28]action value=x_report [00:04:28]process_action x_report [00:04:28]cmd_x_report [00:04:28]MH_GetDate [00:04:28]Write to MH i2c: F0 00 00 FA 14 FD [00:04:28]Write i2c OK [00:04:28]MH_I2C_Read... [00:04:28]Read from MH i2c: F0 [00:04:28]MH_I2C_Read... [00:04:28]Read from MH i2c: F0 09 00 [00:04:28]MH_I2C_Read... [00:04:28]Read from MH i2c: F0 09 00 FA 14 00 0E CC 19 66 23 5B 8F 65 D1 [00:04:28]GetLastDocTimeStamp 1712966280 [00:04:28]current date 1712966670 [00:04:28]FM_GetShiftState [00:04:28]SAM_PROTO_GetShiftState [00:04:28]wFMCommunicate request_size=4 [00:04:28]MH_SAM_APDU [00:04:28]CAPDU: 80 13 01 00 [00:04:28]Write to MH i2c: E2 08 00 FB 14 80 13 01 00 00 00 00 00 8C [00:04:28]Write i2c OK [00:04:28]MH_I2C_Read... [00:04:28]Read from MH i2c: E2 [00:04:28]MH_I2C_Read... [00:04:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:04:28]Read from MH i2c: E2 0E 00 [00:04:28]MH_I2C_Read... [00:04:28]Read from MH i2c: E2 0E 00 FB 14 00 09 00 01 17 88 19 66 00 00 00 00 90 00 B6 [00:04:28]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [00:04:28]wFMCommunicate OK [00:04:28]SAM_PROTO_GetShiftState done [00:04:28]FM_GetShiftState done [00:04:28]KKMCreateXReportDocument [00:04:28]Load OK [00:04:28]Malloc new data [00:04:28]MH_GetDate [00:04:28]Write to MH i2c: F0 00 00 FC 14 FF [00:04:28]Write i2c OK [00:04:28]MH_I2C_Read... [00:04:28]Read from MH i2c: F0 [00:04:28]MH_I2C_Read... [00:04:28]Read from MH i2c: F0 09 00 [00:04:28]MH_I2C_Read... [00:04:28]Read from MH i2c: F0 09 00 FC 14 00 0E CC 19 66 23 5B 8F 65 D3 [00:04:28]Malloc new data [00:04:28]Malloc new data [00:04:28]wFMCommunicate request_size=4 [00:04:28]MH_SAM_APDU [00:04:28]CAPDU: 80 11 00 00 [00:04:28]Write to MH i2c: E2 08 00 FD 14 80 11 00 00 00 00 00 00 8B [00:04:28]Write i2c OK [00:04:28]MH_I2C_Read... [00:04:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:04:28]Read from MH i2c: E2 [00:04:28]MH_I2C_Read... [00:04:28]Read from MH i2c: E2 17 00 [00:04:28]MH_I2C_Read... [00:04:28]Read from MH i2c: E2 17 00 FD 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 DA [00:04:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [00:04:28]wFMCommunicate OK [00:04:28]SAM_PROTO_GetFieldsCounters [00:04:28]wFMCommunicate request_size=4 [00:04:28]MH_SAM_APDU [00:04:28]CAPDU: 80 13 00 00 [00:04:28]Write to MH i2c: E2 08 00 FE 14 80 13 00 00 00 00 00 00 8E [00:04:28]Write i2c OK [00:04:28]MH_I2C_Read... [00:04:28]Read from MH i2c: E2 [00:04:28]MH_I2C_Read... [00:04:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:04:28]Read from MH i2c: E2 62 00 [00:04:28]MH_I2C_Read... [00:04:28]Read from MH i2c: E2 62 00 FE 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 77 70 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 E8 [00:04:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 77 70 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 [00:04:28]wFMCommunicate OK [00:04:28]SAM_PROTO_GetFieldsCounters done [00:04:28]Malloc new data [00:04:28]Malloc new data [00:04:28]Malloc new data [00:04:28]KKMCreateXReportDocument OK [00:04:28]KKMSetXReportData OK [00:04:28]KKMPrepareXReportFMData [00:04:28]SAM_PROTO_GetShiftData [00:04:28]wFMCommunicate request_size=4 [00:04:28]MH_SAM_APDU [00:04:28]CAPDU: 80 13 02 00 [00:04:28]Write to MH i2c: E2 08 00 FF 14 80 13 02 00 00 00 00 00 91 [00:04:28]Write i2c OK [00:04:28]MH_I2C_Read... [00:04:29]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:04:29]Read from MH i2c: E2 [00:04:29]MH_I2C_Read... [00:04:29]Read from MH i2c: E2 FD 00 [00:04:29]MH_I2C_Read... [00:04:29]Read from MH i2c: E2 FD 00 FF 14 00 B9 04 AA 04 B5 04 6E 04 04 00 41 00 00 00 69 04 9C 00 6F 04 04 00 40 00 00 00 B1 04 03 00 87 AD 9A 70 04 03 00 D0 50 2A 72 04 03 00 B7 5C 70 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 6D 6D 10 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 72 5E 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 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 80 1A 06 70 04 03 00 80 1A 06 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 EF A5 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 32 [00:04:29]RAPDU: B9 04 AA 04 B5 04 6E 04 04 00 41 00 00 00 69 04 9C 00 6F 04 04 00 40 00 00 00 B1 04 03 00 87 AD 9A 70 04 03 00 D0 50 2A 72 04 03 00 B7 5C 70 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 6D 6D 10 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 72 5E 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 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 80 1A 06 70 04 03 00 80 1A 06 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 EF A5 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [00:04:29]wFMCommunicate OK [00:04:29]wFMCommunicate request_size=4 [00:04:29]MH_SAM_APDU [00:04:29]CAPDU: 80 17 00 00 [00:04:29]Write to MH i2c: E2 08 00 00 15 80 17 00 00 00 00 00 00 95 [00:04:29]Write i2c OK [00:04:29]MH_I2C_Read... [00:04:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:29]Read from MH i2c: E2 [00:04:29]MH_I2C_Read... [00:04:29]Read from MH i2c: E2 FD 00 [00:04:29]MH_I2C_Read... [00:04:29]Read from MH i2c: E2 FD 00 00 15 00 03 0B 00 F6 03 01 00 01 F7 03 02 00 D4 0D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 35 [00:04:29]RAPDU: 03 0B 00 F6 03 01 00 01 F7 03 02 00 D4 0D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:04:29]wFMCommunicate OK [00:04:29]wFMCommunicate request_size=4 [00:04:29]MH_SAM_APDU [00:04:29]CAPDU: 80 17 00 00 [00:04:29]Write to MH i2c: E2 08 00 01 15 80 17 00 00 00 00 00 00 96 [00:04:29]Write i2c OK [00:04:29]MH_I2C_Read... [00:04:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:30]Read from MH i2c: E2 [00:04:30]MH_I2C_Read... [00:04:30]Read from MH i2c: E2 FD 00 [00:04:30]MH_I2C_Read... [00:04:30]Read from MH i2c: E2 FD 00 01 15 00 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 BE [00:04:30]RAPDU: 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:04:30]wFMCommunicate OK [00:04:30]wFMCommunicate request_size=4 [00:04:30]MH_SAM_APDU [00:04:30]CAPDU: 80 17 00 00 [00:04:30]Write to MH i2c: E2 08 00 02 15 80 17 00 00 00 00 00 00 97 [00:04:30]Write i2c OK [00:04:30]MH_I2C_Read... [00:04:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:30]Read from MH i2c: E2 [00:04:30]MH_I2C_Read... [00:04:30]Read from MH i2c: E2 FD 00 [00:04:30]MH_I2C_Read... [00:04:30]Read from MH i2c: E2 FD 00 02 15 00 EF 03 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 90 00 0F [00:04:30]RAPDU: EF 03 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 90 00 [00:04:30]wFMCommunicate OK [00:04:30]wFMCommunicate request_size=4 [00:04:30]MH_SAM_APDU [00:04:30]CAPDU: 80 17 00 00 [00:04:30]Write to MH i2c: E2 08 00 03 15 80 17 00 00 00 00 00 00 98 [00:04:30]Write i2c OK [00:04:30]MH_I2C_Read... [00:04:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 211! [00:04:31]Read from MH i2c: E2 [00:04:31]MH_I2C_Read... [00:04:31]Read from MH i2c: E2 D6 00 [00:04:31]MH_I2C_Read... [00:04:31]Read from MH i2c: E2 D6 00 03 15 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 7A [00:04:31]RAPDU: 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:04:31]wFMCommunicate OK [00:04:31]SAM_PROTO_GetShiftData done [00:04:31]1194 (1205) - счетчики итогов смены [00:04:31] 1134 (4) - 65 - количество чеков со всеми признаками расчетов [00:04:31] 1129 (156) - счетчики операций «приход» [00:04:31] 1135 (4) - 64 - количество чеков по признаку расчетов [00:04:31] 1201 (3) - 101369.67 - общая итоговая сумма в чеках [00:04:31] 1136 (3) - 27732.00 - итоговая сумма в чеках наличными [00:04:31] 1138 (3) - 73637.67 - итоговая сумма в чеках безналичными [00:04:31] 1024 (123) - суммы налогов [00:04:31] 1006 (9) - суммы НДС [00:04:31] 1010 (1) - 0% - код ставки НДС [00:04:31] 1011 (0) - 0.00 - сумма НДС по ставке [00:04:31] 1006 (12) - суммы НДС [00:04:31] 1010 (1) - 12% - код ставки НДС [00:04:31] 1011 (3) - 10765.89 - сумма НДС по ставке [00:04:31] 1007 (9) - суммы НСП [00:04:31] 1014 (1) - 0% - код ставки НСП [00:04:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:31] 1007 (12) - суммы НСП [00:04:31] 1014 (1) - 1% - код ставки НСП [00:04:31] 1015 (3) - 897.14 - сумма НСП по ставке [00:04:31] 1007 (9) - суммы НСП [00:04:31] 1014 (1) - 2% - код ставки НСП [00:04:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:31] 1007 (9) - суммы НСП [00:04:31] 1014 (1) - 3% - код ставки НСП [00:04:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:31] 1007 (9) - суммы НСП [00:04:31] 1014 (1) - 5% - код ставки НСП [00:04:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:31] 1007 (9) - суммы НСП [00:04:31] 1014 (1) - 0,50% - код ставки НСП [00:04:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:31] 1007 (9) - суммы НСП [00:04:31] 1014 (1) - 1,50% - код ставки НСП [00:04:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:31] 1130 (151) - счетчики операций «возврат прихода» [00:04:31] 1135 (4) - 1 - количество чеков по признаку расчетов [00:04:31] 1201 (3) - 4000.00 - общая итоговая сумма в чеках [00:04:31] 1136 (3) - 4000.00 - итоговая сумма в чеках наличными [00:04:31] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:04:31] 1024 (121) - суммы налогов [00:04:31] 1006 (9) - суммы НДС [00:04:31] 1010 (1) - 0% - код ставки НДС [00:04:31] 1011 (0) - 0.00 - сумма НДС по ставке [00:04:31] 1006 (11) - суммы НДС [00:04:31] 1010 (1) - 12% - код ставки НДС [00:04:31] 1011 (2) - 424.79 - сумма НДС по ставке [00:04:31] 1007 (9) - суммы НСП [00:04:31] 1014 (1) - 0% - код ставки НСП [00:04:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:31] 1007 (11) - суммы НСП [00:04:31] 1014 (1) - 1% - код ставки НСП [00:04:31] 1015 (2) - 35.40 - сумма НСП по ставке [00:04:31] 1007 (9) - суммы НСП [00:04:31] 1014 (1) - 2% - код ставки НСП [00:04:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:31] 1007 (9) - суммы НСП [00:04:31] 1014 (1) - 3% - код ставки НСП [00:04:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:31] 1007 (9) - суммы НСП [00:04:31] 1014 (1) - 5% - код ставки НСП [00:04:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:31] 1007 (9) - суммы НСП [00:04:31] 1014 (1) - 0,50% - код ставки НСП [00:04:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:31] 1007 (9) - суммы НСП [00:04:31] 1014 (1) - 1,50% - код ставки НСП [00:04:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:31] 1131 (141) - счетчики операций «расход» [00:04:31] 1135 (4) - 0 - количество чеков по признаку расчетов [00:04:31] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:04:31] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:04:31] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:04:31] 1024 (117) - суммы налогов [00:04:31] 1006 (9) - суммы НДС [00:04:31] 1010 (1) - 0% - код ставки НДС [00:04:31] 1011 (0) - 0.00 - сумма НДС по ставке [00:04:31] 1006 (9) - суммы НДС [00:04:31] 1010 (1) - 12% - код ставки НДС [00:04:31] 1011 (0) - 0.00 - сумма НДС по ставке [00:04:31] 1007 (9) - суммы НСП [00:04:31] 1014 (1) - 0% - код ставки НСП [00:04:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:31] 1007 (9) - суммы НСП [00:04:31] 1014 (1) - 1% - код ставки НСП [00:04:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:31] 1007 (9) - суммы НСП [00:04:31] 1014 (1) - 2% - код ставки НСП [00:04:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:31] 1007 (9) - суммы НСП [00:04:31] 1014 (1) - 3% - код ставки НСП [00:04:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:31] 1007 (9) - суммы НСП [00:04:31] 1014 (1) - 5% - код ставки НСП [00:04:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:31] 1007 (9) - суммы НСП [00:04:31] 1014 (1) - 0,50% - код ставки НСП [00:04:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:31] 1007 (9) - суммы НСП [00:04:31] 1014 (1) - 1,50% - код ставки НСП [00:04:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:31] 1132 (141) - счетчики операций «возврат расхода» [00:04:31] 1135 (4) - 0 - количество чеков по признаку расчетов [00:04:31] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:04:31] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:04:31] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:04:31] 1024 (117) - суммы налогов [00:04:31] 1006 (9) - суммы НДС [00:04:31] 1010 (1) - 0% - код ставки НДС [00:04:31] 1011 (0) - 0.00 - сумма НДС по ставке [00:04:31] 1006 (9) - суммы НДС [00:04:31] 1010 (1) - 12% - код ставки НДС [00:04:31] 1011 (0) - 0.00 - сумма НДС по ставке [00:04:31] 1007 (9) - суммы НСП [00:04:31] 1014 (1) - 0% - код ставки НСП [00:04:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:31] 1007 (9) - суммы НСП [00:04:31] 1014 (1) - 1% - код ставки НСП [00:04:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:31] 1007 (9) - суммы НСП [00:04:31] 1014 (1) - 2% - код ставки НСП [00:04:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:31] 1007 (9) - суммы НСП [00:04:31] 1014 (1) - 3% - код ставки НСП [00:04:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:31] 1007 (9) - суммы НСП [00:04:31] 1014 (1) - 5% - код ставки НСП [00:04:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:31] 1007 (9) - суммы НСП [00:04:31] 1014 (1) - 0,50% - код ставки НСП [00:04:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:31] 1007 (9) - суммы НСП [00:04:31] 1014 (1) - 1,50% - код ставки НСП [00:04:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:31] 1133 (588) - - счетчики коррекции - не используются [00:04:31]SetTLVBufToDocument [00:04:31]Processing tag 1194 (04AA) [00:04:31]Load OK [00:04:31]SetTLVBufToDocument [00:04:31]Processing tag 1134 (046E) [00:04:31]Malloc new data [00:04:31]Processing tag 1129 (0469) [00:04:31]Load OK [00:04:31]SetTLVBufToDocument [00:04:31]Processing tag 1135 (046F) [00:04:31]Malloc new data [00:04:31]Processing tag 1201 (04B1) [00:04:31]Malloc new data [00:04:31]Processing tag 1136 (0470) [00:04:31]Malloc new data [00:04:31]Processing tag 1138 (0472) [00:04:31]Malloc new data [00:04:31]Processing tag 1024 (0400) [00:04:31]Load OK [00:04:31]SetTLVBufToDocument [00:04:31]Processing tag 1006 (03EE) [00:04:31]Load OK [00:04:31]SetTLVBufToDocument [00:04:31]Processing tag 1010 (03F2) [00:04:31]Malloc new data [00:04:31]Processing tag 1011 (03F3) [00:04:31]Malloc new data [00:04:31]SetTLVBufToDocument err=0 [00:04:31]Processing tag 1006 (03EE) [00:04:31]Load OK [00:04:31]SetTLVBufToDocument [00:04:31]Processing tag 1010 (03F2) [00:04:31]Malloc new data [00:04:31]Processing tag 1011 (03F3) [00:04:31]Malloc new data [00:04:31]SetTLVBufToDocument err=0 [00:04:31]Processing tag 1007 (03EF) [00:04:31]Load OK [00:04:31]SetTLVBufToDocument [00:04:31]Processing tag 1014 (03F6) [00:04:31]Malloc new data [00:04:31]Processing tag 1015 (03F7) [00:04:31]Malloc new data [00:04:31]SetTLVBufToDocument err=0 [00:04:31]Processing tag 1007 (03EF) [00:04:31]Load OK [00:04:31]SetTLVBufToDocument [00:04:31]Processing tag 1014 (03F6) [00:04:31]Malloc new data [00:04:31]Processing tag 1015 (03F7) [00:04:31]Malloc new data [00:04:31]SetTLVBufToDocument err=0 [00:04:31]Processing tag 1007 (03EF) [00:04:31]Load OK [00:04:31]SetTLVBufToDocument [00:04:31]Processing tag 1014 (03F6) [00:04:31]Malloc new data [00:04:31]Processing tag 1015 (03F7) [00:04:31]Malloc new data [00:04:31]SetTLVBufToDocument err=0 [00:04:31]Processing tag 1007 (03EF) [00:04:31]Load OK [00:04:31]SetTLVBufToDocument [00:04:31]Processing tag 1014 (03F6) [00:04:31]Malloc new data [00:04:31]Processing tag 1015 (03F7) [00:04:31]Malloc new data [00:04:31]SetTLVBufToDocument err=0 [00:04:31]Processing tag 1007 (03EF) [00:04:31]Load OK [00:04:31]SetTLVBufToDocument [00:04:31]Processing tag 1014 (03F6) [00:04:31]Malloc new data [00:04:31]Processing tag 1015 (03F7) [00:04:31]Malloc new data [00:04:31]SetTLVBufToDocument err=0 [00:04:31]Processing tag 1007 (03EF) [00:04:31]Load OK [00:04:31]SetTLVBufToDocument [00:04:31]Processing tag 1014 (03F6) [00:04:31]Malloc new data [00:04:31]Processing tag 1015 (03F7) [00:04:31]Malloc new data [00:04:31]SetTLVBufToDocument err=0 [00:04:31]Processing tag 1007 (03EF) [00:04:31]Load OK [00:04:31]SetTLVBufToDocument [00:04:31]Processing tag 1014 (03F6) [00:04:31]Malloc new data [00:04:31]Processing tag 1015 (03F7) [00:04:31]Malloc new data [00:04:31]SetTLVBufToDocument err=0 [00:04:31]SetTLVBufToDocument err=0 [00:04:31]SetTLVBufToDocument err=0 [00:04:31]Processing tag 1130 (046A) [00:04:31]Load OK [00:04:31]SetTLVBufToDocument [00:04:31]Processing tag 1135 (046F) [00:04:31]Malloc new data [00:04:31]Processing tag 1201 (04B1) [00:04:31]Malloc new data [00:04:31]Processing tag 1136 (0470) [00:04:31]Malloc new data [00:04:31]Processing tag 1138 (0472) [00:04:31]Malloc new data [00:04:31]Processing tag 1024 (0400) [00:04:31]Load OK [00:04:31]SetTLVBufToDocument [00:04:31]Processing tag 1006 (03EE) [00:04:31]Load OK [00:04:31]SetTLVBufToDocument [00:04:31]Processing tag 1010 (03F2) [00:04:31]Malloc new data [00:04:31]Processing tag 1011 (03F3) [00:04:31]Malloc new data [00:04:31]SetTLVBufToDocument err=0 [00:04:31]Processing tag 1006 (03EE) [00:04:31]Load OK [00:04:31]SetTLVBufToDocument [00:04:31]Processing tag 1010 (03F2) [00:04:31]Malloc new data [00:04:31]Processing tag 1011 (03F3) [00:04:31]Malloc new data [00:04:31]SetTLVBufToDocument err=0 [00:04:31]Processing tag 1007 (03EF) [00:04:31]Load OK [00:04:31]SetTLVBufToDocument [00:04:31]Processing tag 1014 (03F6) [00:04:31]Malloc new data [00:04:31]Processing tag 1015 (03F7) [00:04:31]Malloc new data [00:04:31]SetTLVBufToDocument err=0 [00:04:31]Processing tag 1007 (03EF) [00:04:31]Load OK [00:04:31]SetTLVBufToDocument [00:04:31]Processing tag 1014 (03F6) [00:04:31]Malloc new data [00:04:31]Processing tag 1015 (03F7) [00:04:31]Malloc new data [00:04:31]SetTLVBufToDocument err=0 [00:04:31]Processing tag 1007 (03EF) [00:04:31]Load OK [00:04:31]SetTLVBufToDocument [00:04:31]Processing tag 1014 (03F6) [00:04:31]Malloc new data [00:04:31]Processing tag 1015 (03F7) [00:04:31]Malloc new data [00:04:31]SetTLVBufToDocument err=0 [00:04:31]Processing tag 1007 (03EF) [00:04:31]Load OK [00:04:31]SetTLVBufToDocument [00:04:31]Processing tag 1014 (03F6) [00:04:31]Malloc new data [00:04:31]Processing tag 1015 (03F7) [00:04:31]Malloc new data [00:04:31]SetTLVBufToDocument err=0 [00:04:31]Processing tag 1007 (03EF) [00:04:31]Load OK [00:04:31]SetTLVBufToDocument [00:04:31]Processing tag 1014 (03F6) [00:04:31]Malloc new data [00:04:32]Processing tag 1015 (03F7) [00:04:32]Malloc new data [00:04:32]SetTLVBufToDocument err=0 [00:04:32]Processing tag 1007 (03EF) [00:04:32]Load OK [00:04:32]SetTLVBufToDocument [00:04:32]Processing tag 1014 (03F6) [00:04:32]Malloc new data [00:04:32]Processing tag 1015 (03F7) [00:04:32]Malloc new data [00:04:32]SetTLVBufToDocument err=0 [00:04:32]Processing tag 1007 (03EF) [00:04:32]Load OK [00:04:32]SetTLVBufToDocument [00:04:32]Processing tag 1014 (03F6) [00:04:32]Malloc new data [00:04:32]Processing tag 1015 (03F7) [00:04:32]Malloc new data [00:04:32]SetTLVBufToDocument err=0 [00:04:32]SetTLVBufToDocument err=0 [00:04:32]SetTLVBufToDocument err=0 [00:04:32]Processing tag 1131 (046B) [00:04:32]Load OK [00:04:32]SetTLVBufToDocument [00:04:32]Processing tag 1135 (046F) [00:04:32]Malloc new data [00:04:32]Processing tag 1201 (04B1) [00:04:32]Malloc new data [00:04:32]Processing tag 1136 (0470) [00:04:32]Malloc new data [00:04:32]Processing tag 1138 (0472) [00:04:32]Malloc new data [00:04:32]Processing tag 1024 (0400) [00:04:32]Load OK [00:04:32]SetTLVBufToDocument [00:04:32]Processing tag 1006 (03EE) [00:04:32]Load OK [00:04:32]SetTLVBufToDocument [00:04:32]Processing tag 1010 (03F2) [00:04:32]Malloc new data [00:04:32]Processing tag 1011 (03F3) [00:04:32]Malloc new data [00:04:32]SetTLVBufToDocument err=0 [00:04:32]Processing tag 1006 (03EE) [00:04:32]Load OK [00:04:32]SetTLVBufToDocument [00:04:32]Processing tag 1010 (03F2) [00:04:32]Malloc new data [00:04:32]Processing tag 1011 (03F3) [00:04:32]Malloc new data [00:04:32]SetTLVBufToDocument err=0 [00:04:32]Processing tag 1007 (03EF) [00:04:32]Load OK [00:04:32]SetTLVBufToDocument [00:04:32]Processing tag 1014 (03F6) [00:04:32]Malloc new data [00:04:32]Processing tag 1015 (03F7) [00:04:32]Malloc new data [00:04:32]SetTLVBufToDocument err=0 [00:04:32]Processing tag 1007 (03EF) [00:04:32]Load OK [00:04:32]SetTLVBufToDocument [00:04:32]Processing tag 1014 (03F6) [00:04:32]Malloc new data [00:04:32]Processing tag 1015 (03F7) [00:04:32]Malloc new data [00:04:32]SetTLVBufToDocument err=0 [00:04:32]Processing tag 1007 (03EF) [00:04:32]Load OK [00:04:32]SetTLVBufToDocument [00:04:32]Processing tag 1014 (03F6) [00:04:32]Malloc new data [00:04:32]Processing tag 1015 (03F7) [00:04:32]Malloc new data [00:04:32]SetTLVBufToDocument err=0 [00:04:32]Processing tag 1007 (03EF) [00:04:32]Load OK [00:04:32]SetTLVBufToDocument [00:04:32]Processing tag 1014 (03F6) [00:04:32]Malloc new data [00:04:32]Processing tag 1015 (03F7) [00:04:32]Malloc new data [00:04:32]SetTLVBufToDocument err=0 [00:04:32]Processing tag 1007 (03EF) [00:04:32]Load OK [00:04:32]SetTLVBufToDocument [00:04:32]Processing tag 1014 (03F6) [00:04:32]Malloc new data [00:04:32]OFD Sender: No OFD packet to send [00:04:32]Processing tag 1015 (03F7) [00:04:32]Malloc new data [00:04:32]SetTLVBufToDocument err=0 [00:04:32]Processing tag 1007 (03EF) [00:04:32]Load OK [00:04:32]SetTLVBufToDocument [00:04:32]Processing tag 1014 (03F6) [00:04:32]Malloc new data [00:04:32]Processing tag 1015 (03F7) [00:04:32]Malloc new data [00:04:32]SetTLVBufToDocument err=0 [00:04:32]Processing tag 1007 (03EF) [00:04:32]Load OK [00:04:32]SetTLVBufToDocument [00:04:32]Processing tag 1014 (03F6) [00:04:32]Malloc new data [00:04:32]Processing tag 1015 (03F7) [00:04:32]Malloc new data [00:04:32]SetTLVBufToDocument err=0 [00:04:32]SetTLVBufToDocument err=0 [00:04:32]SetTLVBufToDocument err=0 [00:04:32]Processing tag 1132 (046C) [00:04:32]Load OK [00:04:32]SetTLVBufToDocument [00:04:32]Processing tag 1135 (046F) [00:04:32]Malloc new data [00:04:32]Processing tag 1201 (04B1) [00:04:32]Malloc new data [00:04:32]Processing tag 1136 (0470) [00:04:32]Malloc new data [00:04:32]Processing tag 1138 (0472) [00:04:32]Malloc new data [00:04:32]Processing tag 1024 (0400) [00:04:32]Load OK [00:04:32]SetTLVBufToDocument [00:04:32]Processing tag 1006 (03EE) [00:04:32]Load OK [00:04:32]SetTLVBufToDocument [00:04:32]Processing tag 1010 (03F2) [00:04:32]Malloc new data [00:04:32]Processing tag 1011 (03F3) [00:04:32]Malloc new data [00:04:32]SetTLVBufToDocument err=0 [00:04:32]Processing tag 1006 (03EE) [00:04:32]Load OK [00:04:32]SetTLVBufToDocument [00:04:32]Processing tag 1010 (03F2) [00:04:32]Malloc new data [00:04:32]Processing tag 1011 (03F3) [00:04:32]Malloc new data [00:04:32]SetTLVBufToDocument err=0 [00:04:32]Processing tag 1007 (03EF) [00:04:32]Load OK [00:04:32]SetTLVBufToDocument [00:04:32]Processing tag 1014 (03F6) [00:04:32]Malloc new data [00:04:32]Processing tag 1015 (03F7) [00:04:32]Malloc new data [00:04:32]SetTLVBufToDocument err=0 [00:04:32]Processing tag 1007 (03EF) [00:04:32]Load OK [00:04:32]SetTLVBufToDocument [00:04:32]Processing tag 1014 (03F6) [00:04:32]Malloc new data [00:04:32]Processing tag 1015 (03F7) [00:04:32]Malloc new data [00:04:32]SetTLVBufToDocument err=0 [00:04:32]Processing tag 1007 (03EF) [00:04:32]Load OK [00:04:32]SetTLVBufToDocument [00:04:32]Processing tag 1014 (03F6) [00:04:32]Malloc new data [00:04:32]Processing tag 1015 (03F7) [00:04:32]Malloc new data [00:04:32]SetTLVBufToDocument err=0 [00:04:32]Processing tag 1007 (03EF) [00:04:32]Load OK [00:04:32]SetTLVBufToDocument [00:04:32]Processing tag 1014 (03F6) [00:04:32]Malloc new data [00:04:32]Processing tag 1015 (03F7) [00:04:32]Malloc new data [00:04:32]SetTLVBufToDocument err=0 [00:04:32]Processing tag 1007 (03EF) [00:04:32]Load OK [00:04:32]SetTLVBufToDocument [00:04:32]Processing tag 1014 (03F6) [00:04:32]Malloc new data [00:04:32]Processing tag 1015 (03F7) [00:04:32]Malloc new data [00:04:32]SetTLVBufToDocument err=0 [00:04:32]Processing tag 1007 (03EF) [00:04:32]Load OK [00:04:32]SetTLVBufToDocument [00:04:32]Processing tag 1014 (03F6) [00:04:32]Malloc new data [00:04:32]Processing tag 1015 (03F7) [00:04:32]Malloc new data [00:04:32]SetTLVBufToDocument err=0 [00:04:32]Processing tag 1007 (03EF) [00:04:32]Load OK [00:04:32]SetTLVBufToDocument [00:04:32]Processing tag 1014 (03F6) [00:04:32]Malloc new data [00:04:32]Processing tag 1015 (03F7) [00:04:32]Malloc new data [00:04:32]SetTLVBufToDocument err=0 [00:04:32]SetTLVBufToDocument err=0 [00:04:32]SetTLVBufToDocument err=0 [00:04:32]Processing tag 1133 (046D) [00:04:32]Malloc new data [00:04:32]SetTLVBufToDocument err=0 [00:04:32]SetTLVBufToDocument err=0 [00:04:32]Malloc new data [00:04:32]SAM_PROTO_GetFMData [00:04:32]wFMCommunicate request_size=4 [00:04:32]MH_SAM_APDU [00:04:32]CAPDU: 80 13 03 00 [00:04:32]Write to MH i2c: E2 08 00 04 15 80 13 03 00 00 00 00 00 98 [00:04:32]Write i2c OK [00:04:32]MH_I2C_Read... [00:04:32]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:04:32]Read from MH i2c: E2 [00:04:32]MH_I2C_Read... [00:04:32]Read from MH i2c: E2 FD 00 [00:04:32]MH_I2C_Read... [00:04:32]Read from MH i2c: E2 FD 00 04 15 00 C3 04 85 04 BF 04 6E 04 04 00 93 6F 00 00 69 04 A1 00 6F 04 04 00 38 6C 00 00 B1 04 04 00 60 A9 16 B0 70 04 04 00 48 3A 6C 70 72 04 04 00 18 6F AA 3F 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 54 0E B4 12 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 49 F8 8E 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 9C 00 6F 04 04 00 5B 03 00 00 B1 04 04 00 28 7A 97 0C 70 04 04 00 28 7A 97 0C 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 B0 5A 56 01 EF 03 09 00 F6 90 00 2E [00:04:33]RAPDU: C3 04 85 04 BF 04 6E 04 04 00 93 6F 00 00 69 04 A1 00 6F 04 04 00 38 6C 00 00 B1 04 04 00 60 A9 16 B0 70 04 04 00 48 3A 6C 70 72 04 04 00 18 6F AA 3F 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 54 0E B4 12 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 49 F8 8E 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 9C 00 6F 04 04 00 5B 03 00 00 B1 04 04 00 28 7A 97 0C 70 04 04 00 28 7A 97 0C 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 B0 5A 56 01 EF 03 09 00 F6 90 00 [00:04:33]wFMCommunicate OK [00:04:33]wFMCommunicate request_size=4 [00:04:33]MH_SAM_APDU [00:04:33]CAPDU: 80 17 00 00 [00:04:33]Write to MH i2c: E2 08 00 05 15 80 17 00 00 00 00 00 00 9A [00:04:33]Write i2c OK [00:04:33]MH_I2C_Read... [00:04:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:33]Read from MH i2c: E2 [00:04:33]MH_I2C_Read... [00:04:33]Read from MH i2c: E2 FD 00 [00:04:33]MH_I2C_Read... [00:04:33]Read from MH i2c: E2 FD 00 05 15 00 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 1F 87 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 1C [00:04:33]RAPDU: 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 1F 87 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:04:33]wFMCommunicate OK [00:04:33]wFMCommunicate request_size=4 [00:04:33]MH_SAM_APDU [00:04:33]CAPDU: 80 17 00 00 [00:04:33]Write to MH i2c: E2 08 00 06 15 80 17 00 00 00 00 00 00 9B [00:04:33]Write i2c OK [00:04:33]MH_I2C_Read... [00:04:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:33]Read from MH i2c: E2 [00:04:33]MH_I2C_Read... [00:04:33]Read from MH i2c: E2 FD 00 [00:04:33]MH_I2C_Read... [00:04:33]Read from MH i2c: E2 FD 00 06 15 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 B9 [00:04:34]RAPDU: 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:04:34]wFMCommunicate OK [00:04:34]wFMCommunicate request_size=4 [00:04:34]MH_SAM_APDU [00:04:34]CAPDU: 80 17 00 00 [00:04:34]Write to MH i2c: E2 08 00 07 15 80 17 00 00 00 00 00 00 9C [00:04:34]Write i2c OK [00:04:34]MH_I2C_Read... [00:04:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:34]Read from MH i2c: E2 [00:04:34]MH_I2C_Read... [00:04:34]Read from MH i2c: E2 FD 00 [00:04:34]MH_I2C_Read... [00:04:34]Read from MH i2c: E2 FD 00 07 15 00 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 0E [00:04:34]RAPDU: 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:04:34]wFMCommunicate OK [00:04:34]wFMCommunicate request_size=4 [00:04:34]MH_SAM_APDU [00:04:34]CAPDU: 80 17 00 00 [00:04:34]Write to MH i2c: E2 08 00 08 15 80 17 00 00 00 00 00 00 9D [00:04:34]Write i2c OK [00:04:34]MH_I2C_Read... [00:04:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 221! [00:04:34]Read from MH i2c: E2 [00:04:34]MH_I2C_Read... [00:04:34]Read from MH i2c: E2 E0 00 [00:04:34]MH_I2C_Read... [00:04:34]Read from MH i2c: E2 E0 00 08 15 00 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 87 [00:04:35]RAPDU: 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:04:35]wFMCommunicate OK [00:04:35]SAM_PROTO_GetFMData done [00:04:35]FM_GetFMData:85 04 BF 04 6E 04 04 00 93 6F 00 00 69 04 A1 00 6F 04 04 00 38 6C 00 00 B1 04 04 00 60 A9 16 B0 70 04 04 00 48 3A 6C 70 72 04 04 00 18 6F AA 3F 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 54 0E B4 12 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 49 F8 8E 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 9C 00 6F 04 04 00 5B 03 00 00 B1 04 04 00 28 7A 97 0C 70 04 04 00 28 7A 97 0C 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 B0 5A 56 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 1F 87 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:04:35]oper:6F 04 04 00 38 6C 00 00 B1 04 04 00 60 A9 16 B0 70 04 04 00 48 3A 6C 70 72 04 04 00 18 6F AA 3F 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 54 0E B4 12 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 49 F8 8E 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:04:35]total:60 A9 16 B0 [00:04:35]Malloc new data [00:04:35]oper:6F 04 04 00 5B 03 00 00 B1 04 04 00 28 7A 97 0C 70 04 04 00 28 7A 97 0C 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 B0 5A 56 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 1F 87 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:04:35]total:28 7A 97 0C [00:04:35]Malloc new data [00:04:35]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:04:36]total: [00:04:36]Malloc new data [00:04:36]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:04:36]total: [00:04:36]Malloc new data [00:04:36]KKMPrepareXReportFMData err=0 [00:04:36]Х отчет ИНН: 02508201610067 Кассир: Сарыбаев Э. 13.04.2024 00:04 Смена: 10 РНМ: 0000138879044617 ЗНМ: 0300000027 СНО: Общий режим Всего чеков: 65 ИТОГИ ПРИХОД Чеков: 64 Общий итог: 101369.67 Итого наличными: 27732.00 Итого безнал.: 73637.67 НДС 0% : 0.00 НДС 12% : 10765.89 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 897.14 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 1 Общий итог: 4000.00 Итого наличными: 4000.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 424.79 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 35.40 ИТОГИ РАСХОД Чеков: 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 Нал. в кассе: 23732.00 НС Приход: 29542751.68 НС Возвр.Прихода: 2112538.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000963154 [00:04:36]StoreToDocumentArchive [00:04:36]MH_GetDate [00:04:36]Write to MH i2c: F0 00 00 09 15 0D [00:04:36]Write i2c OK [00:04:36]MH_I2C_Read... [00:04:36]Read from MH i2c: F0 [00:04:36]MH_I2C_Read... [00:04:36]Read from MH i2c: F0 09 00 [00:04:36]MH_I2C_Read... [00:04:36]Read from MH i2c: F0 09 00 09 15 00 16 CC 19 66 23 5B 8F 65 E9 [00:04:36]shift 10 fd 1712966678 [00:04:36]Create dir for shift 0010 [00:04:36]save to /storage/0010/doc_1712966678 [00:04:36]save last doc name /storage/0010/doc_1712966678 to /storage/kkm_last_doc_name [00:04:36]save OK [00:04:36]Clear old archive folders... [00:04:36]NVStorageSaveData kkm_last_timestamp [00:04:36]File name is /storage/kkm_last_timestamp [00:04:36]Write 4 bytes [00:04:36]NVStorageSaveData done [00:04:36]ExternCall_PrintAddStr [00:04:36]wPrintStart [00:04:36]Write to MH i2c: 01 00 00 0A 15 1F [00:04:36]Write i2c OK [00:04:36]MH_I2C_Read... [00:04:36]Read from MH i2c: 01 [00:04:36]MH_I2C_Read... [00:04:36]Read from MH i2c: 01 07 00 [00:04:36]MH_I2C_Read... [00:04:36]Read from MH i2c: 01 07 00 0A 15 00 00 00 00 00 FF 0F 34 [00:04:36]RasterBufferAndPrint [00:04:36]line Х отчет [00:04:36]line ИНН: 02508201610067 [00:04:36]line Кассир: Сарыбаев Э. [00:04:36]line 13.04.2024 00:04 [00:04:36]line Смена: 10 [00:04:36]line РНМ: 0000138879044617 [00:04:36]line ЗНМ: 0300000027 [00:04:36]line СНО: Общий режим [00:04:36]line Всего чеков: 65 [00:04:36]line ИТОГИ ПРИХОД [00:04:36]line Чеков: 64 [00:04:36]line Общий итог: 101369.67 [00:04:36]line Итого наличными: 27732.00 [00:04:36]line Итого безнал.: 73637.67 [00:04:36]line НДС 0% : 0.00 [00:04:36]line НДС 12% : 10765.89 [00:04:36]line НСП 0% : 0.00 [00:04:36]line НСП 1,50% : 0.00 [00:04:36]line НСП 0,50% : 0.00 [00:04:36]line НСП 5% : 0.00 [00:04:36]line НСП 3% : 0.00 [00:04:36]line НСП 2% : 0.00 [00:04:36]line НСП 1% : 897.14 [00:04:36]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:04:36]line Чеков: 1 [00:04:36]line Общий итог: 4000.00 [00:04:36]line Итого наличными: 4000.00 [00:04:36]line Итого безнал.: 0.00 [00:04:36]line НДС 0% : 0.00 [00:04:36]line НДС 12% : 424.79 [00:04:36]line НСП 0% : 0.00 [00:04:36]line НСП 1,50% : 0.00 [00:04:36]line НСП 0,50% : 0.00 [00:04:36]line НСП 5% : 0.00 [00:04:36]line НСП 3% : 0.00 [00:04:36]line НСП 2% : 0.00 [00:04:36]line НСП 1% : 35.40 [00:04:36]line ИТОГИ РАСХОД [00:04:36]line Чеков: 0 [00:04:36]line Общий итог: 0.00 [00:04:36]line Итого наличными: 0.00 [00:04:36]line Итого безнал.: 0.00 [00:04:36]line НДС 0% : 0.00 [00:04:36]line НДС 12% : 0.00 [00:04:36]line НСП 0% : 0.00 [00:04:36]line НСП 1,50% : 0.00 [00:04:36]line НСП 0,50% : 0.00 [00:04:36]line НСП 5% : 0.00 [00:04:36]line НСП 3% : 0.00 [00:04:36]line НСП 2% : 0.00 [00:04:36]line НСП 1% : 0.00 [00:04:36]line ИТОГИ ВОЗВРАТ РАСХОДА [00:04:36]line Чеков: 0 [00:04:36]line Общий итог: 0.00 [00:04:36]line Итого наличными: 0.00 [00:04:36]line Итого безнал.: 0.00 [00:04:36]line НДС 0% : 0.00 [00:04:36]line НДС 12% : 0.00 [00:04:36]line НСП 0% : 0.00 [00:04:36]line НСП 1,50% : 0.00 [00:04:36]line НСП 0,50% : 0.00 [00:04:36]line НСП 5% : 0.00 [00:04:36]line НСП 3% : 0.00 [00:04:36]line НСП 2% : 0.00 [00:04:36]line НСП 1% : 0.00 [00:04:36]line Сумма внесений: 0.00 [00:04:36]line Сумма выплат: 0.00 [00:04:36]line Нал. в кассе: 23732.00 [00:04:36]line НС Приход: 29542751.68 [00:04:36]line НС Возвр.Прихода: 2112538.00 [00:04:36]line НС Расход: 0.00 [00:04:36]line НС Возвр.Расхода: 0.00 [00:04:36]line ФМ: 0000000000963154 [00:04:36]written 0, free lines is 4095 [00:04:37]Write to MH i2c: 01 00 00 55 15 6A [00:04:37]Write i2c OK [00:04:37]MH_I2C_Read... [00:04:37]Read from MH i2c: 01 [00:04:37]MH_I2C_Read... [00:04:37]Read from MH i2c: 01 07 00 [00:04:37]MH_I2C_Read... [00:04:37]Read from MH i2c: 01 07 00 55 15 00 00 00 00 00 8E 0A 09 [00:04:37]RasterBufferAndPrint [00:04:37]line [00:04:37]line [00:04:37]line [00:04:37]line [00:04:37]line [00:04:37]written 0, free lines is 2731 [00:04:37]MH_Cut [00:04:37]Write to MH i2c: D1 01 00 5C 15 01 43 [00:04:37]Write i2c OK [00:04:37]MH_I2C_Read... [00:04:37]Read from MH i2c: D1 [00:04:37]MH_I2C_Read... [00:04:37]Read from MH i2c: D1 01 00 [00:04:37]MH_I2C_Read... [00:04:37]Read from MH i2c: D1 01 00 5C 15 00 42 [00:04:37]Write to MH i2c: 01 00 00 5D 15 72 [00:04:37]Write i2c OK [00:04:37]MH_I2C_Read... [00:04:37]OFD Sender: No OFD packet to send [00:04:38]*** Cut start [00:04:38]*** Partial cut [00:04:38]*** CUTSNS_PIN = 1 [00:04:38]*** CUTSNS_PIN = 0 [00:04:38]*** Brake cut motor [00:04:38]Read from MH i2c: 01 [00:04:38]MH_I2C_Read... [00:04:38]*** Stop cut motor [00:04:38]*** Cut end [00:04:38]Read from MH i2c: 01 07 00 [00:04:38]MH_I2C_Read... [00:04:38]Read from MH i2c: 01 07 00 5D 15 00 00 00 00 00 FF 0F 87 [00:04:38]process_action x_report done [00:04:38]requested_data is exist [00:04:38]produce_requested_data [00:04:38]requested_item fd.num is exist - process it [00:04:38]SAM_PROTO_GetFieldsCounters [00:04:38]wFMCommunicate request_size=4 [00:04:38]MH_SAM_APDU [00:04:38]CAPDU: 80 13 00 00 [00:04:38]Write to MH i2c: E2 08 00 5E 15 80 13 00 00 00 00 00 00 EF [00:04:38]Write i2c OK [00:04:38]MH_I2C_Read... [00:04:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:04:38]Read from MH i2c: E2 [00:04:38]MH_I2C_Read... [00:04:38]Read from MH i2c: E2 62 00 [00:04:38]MH_I2C_Read... [00:04:38]Read from MH i2c: E2 62 00 5E 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 77 70 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 49 [00:04:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 77 70 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 [00:04:39]wFMCommunicate OK [00:04:39]SAM_PROTO_GetFieldsCounters done [00:04:39]requested_item shift.num is exist - process it [00:04:39]requested_item shift.opened is exist - process it [00:04:39]req_shift_opened [00:04:39]FM_GetShiftState [00:04:39]SAM_PROTO_GetShiftState [00:04:39]wFMCommunicate request_size=4 [00:04:39]MH_SAM_APDU [00:04:39]CAPDU: 80 13 01 00 [00:04:39]Write to MH i2c: E2 08 00 5F 15 80 13 01 00 00 00 00 00 F1 [00:04:39]Write i2c OK [00:04:39]MH_I2C_Read... [00:04:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:04:39]Read from MH i2c: E2 [00:04:39]MH_I2C_Read... [00:04:39]Read from MH i2c: E2 0E 00 [00:04:39]MH_I2C_Read... [00:04:39]Read from MH i2c: E2 0E 00 5F 15 00 09 00 01 17 88 19 66 00 00 00 00 90 00 1B [00:04:39]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [00:04:39]wFMCommunicate OK [00:04:39]SAM_PROTO_GetShiftState done [00:04:39]FM_GetShiftState done [00:04:39]req_shift_opened done [00:04:39]requested_item shift.open_date is exist - process it [00:04:39]req_shift_open_date [00:04:39]req_shift_open_date done [00:04:39]produce_requested_data done [00:04:39]produce_requested_data return {"fd.num":28791,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271} [00:04:39]process_action_free x_report [00:04:39]json_value_free [00:04:39]json_value_free done [00:04:39]process_json_proto returns [00:04:39]Send response to host [00:04:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":28791,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271}}} [00:04:39]free response buf [00:04:39]execute_script done [00:04:39]execute_script returns [00:04:39]free content buf [00:04:39]Sock 9.Close socket [00:04:39]Sock 9.Thread stoped [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:01]accept exits with 7 [00:05:01]New connection [00:05:01]New thread 3066928484 created [00:05:01]Thread 3066785124 joined [00:05:01]Waiting for new connection... [00:05:01] Sock 7.Parse request [00:05:01]Sock 7.Check first char [00:05:01]Sock 7.First char is OK [00:05:01]request: POST /json_proto HTTP/1.0 [00:05:01]Method: POST [00:05:01]URL: /json_proto [00:05:01]Method is POST - this is cgi request [00:05:01]url: /json_proto [00:05:01]query_string will be loaded in cgi processing [00:05:01]execute_cgi json_proto POST (null) [00:05:01]execute_cgi path=json_proto method=POST [00:05:01]POST find Content-Length [00:05:01]Host: 172.17.33.3:8080 [00:05:01]Content-Length: 215 [00:05:01]Content-Type: application/json [00:05:01] [00:05:01]POST finish read [00:05:01]Found Content-Length = 215 [00:05:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:05:01]execute_script... [00:05:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:05:01]POST & json_proto [00:05:01]process_json_proto [00:05:01]json parsed OK: [00:05:01]protocol is kg_v1.0 [00:05:01]action value=get_value [00:05:01]process_action get_value [00:05:01]cmd_get_value [00:05:01]process_action get_value done [00:05:01]requested_data is exist [00:05:01]produce_requested_data [00:05:01]requested_item kkm.sn is exist - process it [00:05:01]requested_item kkm.ver is exist - process it [00:05:01]requested_item fm.sn is exist - process it [00:05:01]wFMCommunicate request_size=4 [00:05:01]MH_SAM_APDU [00:05:01]CAPDU: 80 11 00 00 [00:05:01]Write to MH i2c: E2 08 00 60 15 80 11 00 00 00 00 00 00 EF [00:05:01]Write i2c OK [00:05:01]MH_I2C_Read... [00:05:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:05:01]Read from MH i2c: E2 [00:05:01]MH_I2C_Read... [00:05:01]Read from MH i2c: E2 17 00 [00:05:01]MH_I2C_Read... [00:05:01]Read from MH i2c: E2 17 00 60 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 3E [00:05:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [00:05:01]wFMCommunicate OK [00:05:01]requested_item fd.num is exist - process it [00:05:01]SAM_PROTO_GetFieldsCounters [00:05:01]wFMCommunicate request_size=4 [00:05:01]MH_SAM_APDU [00:05:01]CAPDU: 80 13 00 00 [00:05:01]Write to MH i2c: E2 08 00 61 15 80 13 00 00 00 00 00 00 F2 [00:05:01]Write i2c OK [00:05:01]MH_I2C_Read... [00:05:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:05:01]Read from MH i2c: E2 [00:05:01]MH_I2C_Read... [00:05:01]Read from MH i2c: E2 62 00 [00:05:01]MH_I2C_Read... [00:05: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 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 77 70 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 4C [00:05:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 77 70 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 [00:05:01]wFMCommunicate OK [00:05:01]SAM_PROTO_GetFieldsCounters done [00:05:01]requested_item shift.num is exist - process it [00:05:01]requested_item shift.opened is exist - process it [00:05:01]req_shift_opened [00:05:01]FM_GetShiftState [00:05:01]SAM_PROTO_GetShiftState [00:05:01]wFMCommunicate request_size=4 [00:05:01]MH_SAM_APDU [00:05:01]CAPDU: 80 13 01 00 [00:05:01]Write to MH i2c: E2 08 00 62 15 80 13 01 00 00 00 00 00 F4 [00:05:01]Write i2c OK [00:05:01]MH_I2C_Read... [00:05:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:05:01]Read from MH i2c: E2 [00:05:01]MH_I2C_Read... [00:05:01]Read from MH i2c: E2 0E 00 [00:05:01]MH_I2C_Read... [00:05:01]Read from MH i2c: E2 0E 00 62 15 00 09 00 01 17 88 19 66 00 00 00 00 90 00 1E [00:05:01]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [00:05:01]wFMCommunicate OK [00:05:01]SAM_PROTO_GetShiftState done [00:05:01]FM_GetShiftState done [00:05:01]req_shift_opened done [00:05:01]requested_item shift.open_date is exist - process it [00:05:01]req_shift_open_date [00:05:01]req_shift_open_date done [00:05:01]produce_requested_data done [00:05:01]produce_requested_data return {"kkm.sn":"0300000027","kkm.ver":"001","fm.sn":"0000000000963154","fd.num":28791,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271} [00:05:01]process_action_free get_value [00:05:01]json_value_free [00:05:01]json_value_free done [00:05:01]process_json_proto returns [00:05:01]Send response to host [00:05:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000027","kkm.ver":"001","fm.sn":"0000000000963154","fd.num":28791,"shift.num":114,"shift.opened":1,"shift.open_date":1712949271}}} [00:05:01]free response buf [00:05:01]execute_script done [00:05:01]execute_script returns [00:05:01]free content buf [00:05:01]Sock 7.Close socket [00:05:01]Sock 7.Thread stoped [00:05:01]accept exits with 9 [00:05:01]New connection [00:05:01]New thread 3066785124 created [00:05:01]Thread 3066928484 joined [00:05:01]Waiting for new connection... [00:05:01] Sock 9.Parse request [00:05:01]Sock 9.Check first char [00:05:01]Sock 9.First char is OK [00:05:01]request: POST /json_proto HTTP/1.0 [00:05:01]Method: POST [00:05:01]URL: /json_proto [00:05:01]Method is POST - this is cgi request [00:05:01]url: /json_proto [00:05:01]query_string will be loaded in cgi processing [00:05:01]execute_cgi json_proto POST (null) [00:05:01]execute_cgi path=json_proto method=POST [00:05:01]POST find Content-Length [00:05:01]Host: 172.17.33.3:8080 [00:05:01]Content-Length: 331 [00:05:01]Content-Type: application/json [00:05:01] [00:05:01]POST finish read [00:05:01]Found Content-Length = 331 [00:05:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:05:01]execute_script... [00:05:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:05:01]POST & json_proto [00:05:01]process_json_proto [00:05:01]json parsed OK: [00:05:01]protocol is kg_v1.0 [00:05:01]action value=get_value [00:05:01]process_action get_value [00:05:01]cmd_get_value [00:05:01]process_action get_value done [00:05:01]requested_data is exist [00:05:01]produce_requested_data [00:05:01]requested_item fm.sale.total is exist - process it [00:05:01]SAM_PROTO_GetFMData [00:05:01]wFMCommunicate request_size=4 [00:05:01]MH_SAM_APDU [00:05:01]CAPDU: 80 13 03 00 [00:05:01]Write to MH i2c: E2 08 00 63 15 80 13 03 00 00 00 00 00 F7 [00:05:01]Write i2c OK [00:05:01]MH_I2C_Read... [00:05:01]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:05:01]Read from MH i2c: E2 [00:05:01]MH_I2C_Read... [00:05:01]Read from MH i2c: E2 FD 00 [00:05:01]MH_I2C_Read... [00:05:01]Read from MH i2c: E2 FD 00 63 15 00 C3 04 85 04 BF 04 6E 04 04 00 93 6F 00 00 69 04 A1 00 6F 04 04 00 38 6C 00 00 B1 04 04 00 60 A9 16 B0 70 04 04 00 48 3A 6C 70 72 04 04 00 18 6F AA 3F 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 54 0E B4 12 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 49 F8 8E 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 9C 00 6F 04 04 00 5B 03 00 00 B1 04 04 00 28 7A 97 0C 70 04 04 00 28 7A 97 0C 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 B0 5A 56 01 EF 03 09 00 F6 90 00 8D [00:05:01]RAPDU: C3 04 85 04 BF 04 6E 04 04 00 93 6F 00 00 69 04 A1 00 6F 04 04 00 38 6C 00 00 B1 04 04 00 60 A9 16 B0 70 04 04 00 48 3A 6C 70 72 04 04 00 18 6F AA 3F 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 54 0E B4 12 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 49 F8 8E 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 9C 00 6F 04 04 00 5B 03 00 00 B1 04 04 00 28 7A 97 0C 70 04 04 00 28 7A 97 0C 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 B0 5A 56 01 EF 03 09 00 F6 90 00 [00:05:02]wFMCommunicate OK [00:05:02]wFMCommunicate request_size=4 [00:05:02]MH_SAM_APDU [00:05:02]CAPDU: 80 17 00 00 [00:05:02]Write to MH i2c: E2 08 00 64 15 80 17 00 00 00 00 00 00 F9 [00:05:02]Write i2c OK [00:05:02]MH_I2C_Read... [00:05:02]OFD Sender: No OFD packet to send [00:05:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:05:02]Read from MH i2c: E2 [00:05:02]MH_I2C_Read... [00:05:02]Read from MH i2c: E2 FD 00 [00:05:02]MH_I2C_Read... [00:05:02]Read from MH i2c: E2 FD 00 64 15 00 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 1F 87 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 7B [00:05:02]RAPDU: 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 1F 87 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:05:02]wFMCommunicate OK [00:05:02]wFMCommunicate request_size=4 [00:05:02]MH_SAM_APDU [00:05:02]CAPDU: 80 17 00 00 [00:05:02]Write to MH i2c: E2 08 00 65 15 80 17 00 00 00 00 00 00 FA [00:05:02]Write i2c OK [00:05:02]MH_I2C_Read... [00:05:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:05:02]Read from MH i2c: E2 [00:05:02]MH_I2C_Read... [00:05:02]Read from MH i2c: E2 FD 00 [00:05:02]MH_I2C_Read... [00:05:02]Read from MH i2c: E2 FD 00 65 15 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 18 [00:05:02]RAPDU: 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:05:02]wFMCommunicate OK [00:05:02]wFMCommunicate request_size=4 [00:05:02]MH_SAM_APDU [00:05:02]CAPDU: 80 17 00 00 [00:05:02]Write to MH i2c: E2 08 00 66 15 80 17 00 00 00 00 00 00 FB [00:05:02]Write i2c OK [00:05:02]MH_I2C_Read... [00:05:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:05:03]Read from MH i2c: E2 [00:05:03]MH_I2C_Read... [00:05:03]Read from MH i2c: E2 FD 00 [00:05:03]MH_I2C_Read... [00:05:03]Read from MH i2c: E2 FD 00 66 15 00 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 6D [00:05:03]RAPDU: 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:05:03]wFMCommunicate OK [00:05:03]wFMCommunicate request_size=4 [00:05:03]MH_SAM_APDU [00:05:03]CAPDU: 80 17 00 00 [00:05:03]Write to MH i2c: E2 08 00 67 15 80 17 00 00 00 00 00 00 FC [00:05:03]Write i2c OK [00:05:03]MH_I2C_Read... [00:05:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 221! [00:05:03]Read from MH i2c: E2 [00:05:03]MH_I2C_Read... [00:05:03]Read from MH i2c: E2 E0 00 [00:05:03]MH_I2C_Read... [00:05:03]Read from MH i2c: E2 E0 00 67 15 00 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 E6 [00:05:03]RAPDU: 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:05:03]wFMCommunicate OK [00:05:03]SAM_PROTO_GetFMData done [00:05:03]requested_item fm.sale_refund.total is exist - process it [00:05:03]requested_item fm.buy.total is exist - process it [00:05:03]requested_item shift.sale.total is exist - process it [00:05:03]SAM_PROTO_GetShiftData [00:05:03]wFMCommunicate request_size=4 [00:05:03]MH_SAM_APDU [00:05:03]CAPDU: 80 13 02 00 [00:05:03]Write to MH i2c: E2 08 00 68 15 80 13 02 00 00 00 00 00 FB [00:05:03]Write i2c OK [00:05:03]MH_I2C_Read... [00:05:04]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:05:04]Read from MH i2c: E2 [00:05:04]MH_I2C_Read... [00:05:04]Read from MH i2c: E2 FD 00 [00:05:04]MH_I2C_Read... [00:05:04]Read from MH i2c: E2 FD 00 68 15 00 B9 04 AA 04 B5 04 6E 04 04 00 41 00 00 00 69 04 9C 00 6F 04 04 00 40 00 00 00 B1 04 03 00 87 AD 9A 70 04 03 00 D0 50 2A 72 04 03 00 B7 5C 70 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 6D 6D 10 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 72 5E 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 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 80 1A 06 70 04 03 00 80 1A 06 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 EF A5 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 9C [00:05:04]RAPDU: B9 04 AA 04 B5 04 6E 04 04 00 41 00 00 00 69 04 9C 00 6F 04 04 00 40 00 00 00 B1 04 03 00 87 AD 9A 70 04 03 00 D0 50 2A 72 04 03 00 B7 5C 70 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 6D 6D 10 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 72 5E 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 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 80 1A 06 70 04 03 00 80 1A 06 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 EF A5 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [00:05:04]wFMCommunicate OK [00:05:04]wFMCommunicate request_size=4 [00:05:04]MH_SAM_APDU [00:05:04]CAPDU: 80 17 00 00 [00:05:04]Write to MH i2c: E2 08 00 69 15 80 17 00 00 00 00 00 00 FE [00:05:04]Write i2c OK [00:05:04]MH_I2C_Read... [00:05:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:05:04]Read from MH i2c: E2 [00:05:04]MH_I2C_Read... [00:05:04]Read from MH i2c: E2 FD 00 [00:05:04]MH_I2C_Read... [00:05:04]Read from MH i2c: E2 FD 00 69 15 00 03 0B 00 F6 03 01 00 01 F7 03 02 00 D4 0D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 9E [00:05:04]RAPDU: 03 0B 00 F6 03 01 00 01 F7 03 02 00 D4 0D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:05:04]wFMCommunicate OK [00:05:04]wFMCommunicate request_size=4 [00:05:04]MH_SAM_APDU [00:05:04]CAPDU: 80 17 00 00 [00:05:04]Write to MH i2c: E2 08 00 6A 15 80 17 00 00 00 00 00 00 FF [00:05:04]Write i2c OK [00:05:04]MH_I2C_Read... [00:05:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:05:05]Read from MH i2c: E2 [00:05:05]MH_I2C_Read... [00:05:05]Read from MH i2c: E2 FD 00 [00:05:05]MH_I2C_Read... [00:05:05]Read from MH i2c: E2 FD 00 6A 15 00 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 27 [00:05:05]RAPDU: 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:05:05]wFMCommunicate OK [00:05:05]wFMCommunicate request_size=4 [00:05:05]MH_SAM_APDU [00:05:05]CAPDU: 80 17 00 00 [00:05:05]Write to MH i2c: E2 08 00 6B 15 80 17 00 00 00 00 00 00 00 [00:05:05]Write i2c OK [00:05:05]MH_I2C_Read... [00:05:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:05:05]Read from MH i2c: E2 [00:05:05]MH_I2C_Read... [00:05:05]Read from MH i2c: E2 FD 00 [00:05:05]MH_I2C_Read... [00:05:05]Read from MH i2c: E2 FD 00 6B 15 00 EF 03 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 90 00 78 [00:05:05]RAPDU: EF 03 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 90 00 [00:05:05]wFMCommunicate OK [00:05:05]wFMCommunicate request_size=4 [00:05:05]MH_SAM_APDU [00:05:05]CAPDU: 80 17 00 00 [00:05:05]Write to MH i2c: E2 08 00 6C 15 80 17 00 00 00 00 00 00 01 [00:05:05]Write i2c OK [00:05:05]MH_I2C_Read... [00:05:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 211! [00:05:05]Read from MH i2c: E2 [00:05:05]MH_I2C_Read... [00:05:05]Read from MH i2c: E2 D6 00 [00:05:05]MH_I2C_Read... [00:05:05]Read from MH i2c: E2 D6 00 6C 15 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 E3 [00:05:06]RAPDU: 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:05:06]wFMCommunicate OK [00:05:06]SAM_PROTO_GetShiftData done [00:05:06]requested_item shift.sale.total_cash is exist - process it [00:05:06]requested_item shift.sale_refund.total is exist - process it [00:05:06]requested_item shift.sale_refund.total_cash is exist - process it [00:05:06]requested_item shift.buy.total is exist - process it [00:05:06]requested_item shift.buy.total_cash is exist - process it [00:05:06]produce_requested_data done [00:05:06]produce_requested_data return {"fm.sale.total":29542751.68,"fm.sale_refund.total":2112538.00,"fm.buy.total":0.00,"shift.sale.total":101369.67,"shift.sale.total_cash":27732.00,"shift.sale_refund.total":4000.00,"shift.sale_refund.total_cash":4000.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:05:06]process_action_free get_value [00:05:06]json_value_free [00:05:06]json_value_free done [00:05:06]process_json_proto returns [00:05:06]Send response to host [00:05:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":29542751.68,"fm.sale_refund.total":2112538.00,"fm.buy.total":0.00,"shift.sale.total":101369.67,"shift.sale.total_cash":27732.00,"shift.sale_refund.total":4000.00,"shift.sale_refund.total_cash":4000.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:05:06]free response buf [00:05:06]execute_script done [00:05:06]execute_script returns [00:05:06]free content buf [00:05:06]Sock 9.Close socket [00:05:06]Sock 9.Thread stoped [00:05:06]accept exits with 7 [00:05:06]New connection [00:05:06]New thread 3066928484 created [00:05:06]Thread 3066785124 joined [00:05:06]Waiting for new connection... [00:05:06] Sock 7.Parse request [00:05:06]Sock 7.Check first char [00:05:06]Sock 7.First char is OK [00:05:06]request: POST /json_proto HTTP/1.0 [00:05:06]Method: POST [00:05:06]URL: /json_proto [00:05:06]Method is POST - this is cgi request [00:05:06]url: /json_proto [00:05:06]query_string will be loaded in cgi processing [00:05:06]execute_cgi json_proto POST (null) [00:05:06]execute_cgi path=json_proto method=POST [00:05:06]POST find Content-Length [00:05:06]Host: 172.17.33.3:8080 [00:05:06]Content-Length: 331 [00:05:06]Content-Type: application/json [00:05:06] [00:05:06]POST finish read [00:05:06]Found Content-Length = 331 [00:05:06]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:05:06]execute_script... [00:05:06]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:05:06]POST & json_proto [00:05:06]process_json_proto [00:05:06]json parsed OK: [00:05:06]protocol is kg_v1.0 [00:05:06]action value=get_value [00:05:06]process_action get_value [00:05:06]cmd_get_value [00:05:06]process_action get_value done [00:05:06]requested_data is exist [00:05:06]produce_requested_data [00:05:06]requested_item fm.sale.total is exist - process it [00:05:06]SAM_PROTO_GetFMData [00:05:06]wFMCommunicate request_size=4 [00:05:06]MH_SAM_APDU [00:05:06]CAPDU: 80 13 03 00 [00:05:06]Write to MH i2c: E2 08 00 6D 15 80 13 03 00 00 00 00 00 01 [00:05:06]Write i2c OK [00:05:06]MH_I2C_Read... [00:05:06]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:05:06]Read from MH i2c: E2 [00:05:06]MH_I2C_Read... [00:05:06]Read from MH i2c: E2 FD 00 [00:05:06]MH_I2C_Read... [00:05:06]Read from MH i2c: E2 FD 00 6D 15 00 C3 04 85 04 BF 04 6E 04 04 00 93 6F 00 00 69 04 A1 00 6F 04 04 00 38 6C 00 00 B1 04 04 00 60 A9 16 B0 70 04 04 00 48 3A 6C 70 72 04 04 00 18 6F AA 3F 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 54 0E B4 12 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 49 F8 8E 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 9C 00 6F 04 04 00 5B 03 00 00 B1 04 04 00 28 7A 97 0C 70 04 04 00 28 7A 97 0C 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 B0 5A 56 01 EF 03 09 00 F6 90 00 97 [00:05:06]RAPDU: C3 04 85 04 BF 04 6E 04 04 00 93 6F 00 00 69 04 A1 00 6F 04 04 00 38 6C 00 00 B1 04 04 00 60 A9 16 B0 70 04 04 00 48 3A 6C 70 72 04 04 00 18 6F AA 3F 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 54 0E B4 12 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 49 F8 8E 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 9C 00 6F 04 04 00 5B 03 00 00 B1 04 04 00 28 7A 97 0C 70 04 04 00 28 7A 97 0C 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 B0 5A 56 01 EF 03 09 00 F6 90 00 [00:05:07]wFMCommunicate OK [00:05:07]wFMCommunicate request_size=4 [00:05:07]MH_SAM_APDU [00:05:07]CAPDU: 80 17 00 00 [00:05:07]Write to MH i2c: E2 08 00 6E 15 80 17 00 00 00 00 00 00 03 [00:05:07]Write i2c OK [00:05:07]MH_I2C_Read... [00:05:07]OFD Sender: No OFD packet to send [00:05:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:05:07]Read from MH i2c: E2 [00:05:07]MH_I2C_Read... [00:05:07]Read from MH i2c: E2 FD 00 [00:05:07]MH_I2C_Read... [00:05:07]Read from MH i2c: E2 FD 00 6E 15 00 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 1F 87 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 85 [00:05:07]RAPDU: 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 1F 87 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:05:07]wFMCommunicate OK [00:05:07]wFMCommunicate request_size=4 [00:05:07]MH_SAM_APDU [00:05:07]CAPDU: 80 17 00 00 [00:05:07]Write to MH i2c: E2 08 00 6F 15 80 17 00 00 00 00 00 00 04 [00:05:07]Write i2c OK [00:05:07]MH_I2C_Read... [00:05:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:05:07]Read from MH i2c: E2 [00:05:07]MH_I2C_Read... [00:05:07]Read from MH i2c: E2 FD 00 [00:05:07]MH_I2C_Read... [00:05:07]Read from MH i2c: E2 FD 00 6F 15 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 22 [00:05:07]RAPDU: 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:05:08]wFMCommunicate OK [00:05:08]wFMCommunicate request_size=4 [00:05:08]MH_SAM_APDU [00:05:08]CAPDU: 80 17 00 00 [00:05:08]Write to MH i2c: E2 08 00 70 15 80 17 00 00 00 00 00 00 05 [00:05:08]Write i2c OK [00:05:08]MH_I2C_Read... [00:05:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:05:08]Read from MH i2c: E2 [00:05:08]MH_I2C_Read... [00:05:08]Read from MH i2c: E2 FD 00 [00:05:08]MH_I2C_Read... [00:05:08]Read from MH i2c: E2 FD 00 70 15 00 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 77 [00:05:08]RAPDU: 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:05:08]wFMCommunicate OK [00:05:08]wFMCommunicate request_size=4 [00:05:08]MH_SAM_APDU [00:05:08]CAPDU: 80 17 00 00 [00:05:08]Write to MH i2c: E2 08 00 71 15 80 17 00 00 00 00 00 00 06 [00:05:08]Write i2c OK [00:05:08]MH_I2C_Read... [00:05:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 221! [00:05:08]Read from MH i2c: E2 [00:05:08]MH_I2C_Read... [00:05:08]Read from MH i2c: E2 E0 00 [00:05:08]MH_I2C_Read... [00:05:08]Read from MH i2c: E2 E0 00 71 15 00 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F0 [00:05:09]RAPDU: 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:05:09]wFMCommunicate OK [00:05:09]SAM_PROTO_GetFMData done [00:05:09]requested_item fm.sale_refund.total is exist - process it [00:05:09]requested_item fm.buy.total is exist - process it [00:05:09]requested_item shift.sale.total is exist - process it [00:05:09]SAM_PROTO_GetShiftData [00:05:09]wFMCommunicate request_size=4 [00:05:09]MH_SAM_APDU [00:05:09]CAPDU: 80 13 02 00 [00:05:09]Write to MH i2c: E2 08 00 72 15 80 13 02 00 00 00 00 00 05 [00:05:09]Write i2c OK [00:05:09]MH_I2C_Read... [00:05:09]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:05:09]Read from MH i2c: E2 [00:05:09]MH_I2C_Read... [00:05:09]Read from MH i2c: E2 FD 00 [00:05:09]MH_I2C_Read... [00:05:09]Read from MH i2c: E2 FD 00 72 15 00 B9 04 AA 04 B5 04 6E 04 04 00 41 00 00 00 69 04 9C 00 6F 04 04 00 40 00 00 00 B1 04 03 00 87 AD 9A 70 04 03 00 D0 50 2A 72 04 03 00 B7 5C 70 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 6D 6D 10 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 72 5E 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 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 80 1A 06 70 04 03 00 80 1A 06 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 EF A5 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 A6 [00:05:09]RAPDU: B9 04 AA 04 B5 04 6E 04 04 00 41 00 00 00 69 04 9C 00 6F 04 04 00 40 00 00 00 B1 04 03 00 87 AD 9A 70 04 03 00 D0 50 2A 72 04 03 00 B7 5C 70 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 6D 6D 10 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 72 5E 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 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 80 1A 06 70 04 03 00 80 1A 06 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 EF A5 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [00:05:09]wFMCommunicate OK [00:05:09]wFMCommunicate request_size=4 [00:05:09]MH_SAM_APDU [00:05:09]CAPDU: 80 17 00 00 [00:05:09]Write to MH i2c: E2 08 00 73 15 80 17 00 00 00 00 00 00 08 [00:05:09]Write i2c OK [00:05:09]MH_I2C_Read... [00:05:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:05:10]Read from MH i2c: E2 [00:05:10]MH_I2C_Read... [00:05:10]Read from MH i2c: E2 FD 00 [00:05:10]MH_I2C_Read... [00:05:10]Read from MH i2c: E2 FD 00 73 15 00 03 0B 00 F6 03 01 00 01 F7 03 02 00 D4 0D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 A8 [00:05:10]RAPDU: 03 0B 00 F6 03 01 00 01 F7 03 02 00 D4 0D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:05:10]wFMCommunicate OK [00:05:10]wFMCommunicate request_size=4 [00:05:10]MH_SAM_APDU [00:05:10]CAPDU: 80 17 00 00 [00:05:10]Write to MH i2c: E2 08 00 74 15 80 17 00 00 00 00 00 00 09 [00:05:10]Write i2c OK [00:05:10]MH_I2C_Read... [00:05:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:05:10]Read from MH i2c: E2 [00:05:10]MH_I2C_Read... [00:05:10]Read from MH i2c: E2 FD 00 [00:05:10]MH_I2C_Read... [00:05:10]Read from MH i2c: E2 FD 00 74 15 00 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 31 [00:05:10]RAPDU: 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:05:10]wFMCommunicate OK [00:05:10]wFMCommunicate request_size=4 [00:05:10]MH_SAM_APDU [00:05:10]CAPDU: 80 17 00 00 [00:05:10]Write to MH i2c: E2 08 00 75 15 80 17 00 00 00 00 00 00 0A [00:05:10]Write i2c OK [00:05:10]MH_I2C_Read... [00:05:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:05:11]Read from MH i2c: E2 [00:05:11]MH_I2C_Read... [00:05:11]Read from MH i2c: E2 FD 00 [00:05:11]MH_I2C_Read... [00:05:11]Read from MH i2c: E2 FD 00 75 15 00 EF 03 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 90 00 82 [00:05:11]RAPDU: EF 03 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 90 00 [00:05:11]wFMCommunicate OK [00:05:11]wFMCommunicate request_size=4 [00:05:11]MH_SAM_APDU [00:05:11]CAPDU: 80 17 00 00 [00:05:11]Write to MH i2c: E2 08 00 76 15 80 17 00 00 00 00 00 00 0B [00:05:11]Write i2c OK [00:05:11]MH_I2C_Read... [00:05:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 211! [00:05:11]Read from MH i2c: E2 [00:05:11]MH_I2C_Read... [00:05:11]Read from MH i2c: E2 D6 00 [00:05:11]MH_I2C_Read... [00:05:11]Read from MH i2c: E2 D6 00 76 15 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:05:11]RAPDU: 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:05:11]wFMCommunicate OK [00:05:11]SAM_PROTO_GetShiftData done [00:05:11]requested_item shift.sale.total_cash is exist - process it [00:05:11]requested_item shift.sale_refund.total is exist - process it [00:05:11]requested_item shift.sale_refund.total_cash is exist - process it [00:05:11]requested_item shift.buy.total is exist - process it [00:05:11]requested_item shift.buy.total_cash is exist - process it [00:05:11]produce_requested_data done [00:05:11]produce_requested_data return {"fm.sale.total":29542751.68,"fm.sale_refund.total":2112538.00,"fm.buy.total":0.00,"shift.sale.total":101369.67,"shift.sale.total_cash":27732.00,"shift.sale_refund.total":4000.00,"shift.sale_refund.total_cash":4000.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:05:11]process_action_free get_value [00:05:11]json_value_free [00:05:11]json_value_free done [00:05:11]process_json_proto returns [00:05:11]Send response to host [00:05:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":29542751.68,"fm.sale_refund.total":2112538.00,"fm.buy.total":0.00,"shift.sale.total":101369.67,"shift.sale.total_cash":27732.00,"shift.sale_refund.total":4000.00,"shift.sale_refund.total_cash":4000.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:05:11]free response buf [00:05:11]execute_script done [00:05:11]execute_script returns [00:05:11]free content buf [00:05:11]Sock 7.Close socket [00:05:11]Sock 7.Thread stoped [00:05:11]accept exits with 9 [00:05:11]New connection [00:05:11]New thread 3066785124 created [00:05:11]Thread 3066928484 joined [00:05:11]Waiting for new connection... [00:05:11] Sock 9.Parse request [00:05:11]Sock 9.Check first char [00:05:11]Sock 9.First char is OK [00:05:11]request: POST /json_proto HTTP/1.0 [00:05:11]Method: POST [00:05:11]URL: /json_proto [00:05:11]Method is POST - this is cgi request [00:05:11]url: /json_proto [00:05:12]query_string will be loaded in cgi processing [00:05:12]execute_cgi json_proto POST (null) [00:05:12]execute_cgi path=json_proto method=POST [00:05:12]POST find Content-Length [00:05:12]Host: 172.17.33.3:8080 [00:05:12]Content-Length: 260 [00:05:12]Content-Type: application/json [00:05:12] [00:05:12]POST finish read [00:05:12]Found Content-Length = 260 [00:05:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0421\u0430\u0440\u044B\u0431\u0430\u0435\u0432 \u042D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:05:12]execute_script... [00:05:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0421\u0430\u0440\u044B\u0431\u0430\u0435\u0432 \u042D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:05:12]POST & json_proto [00:05:12]process_json_proto [00:05:12]json parsed OK: [00:05:12]protocol is kg_v1.0 [00:05:12]action value=close_shift [00:05:12]process_action close_shift [00:05:12]cmd_close_shift [00:05:12]MH_GetDate [00:05:12]Write to MH i2c: F0 00 00 77 15 7B [00:05:12]Write i2c OK [00:05:12]MH_I2C_Read... [00:05:12]Read from MH i2c: F0 [00:05:12]MH_I2C_Read... [00:05:12]Read from MH i2c: F0 09 00 [00:05:12]MH_I2C_Read... [00:05:12]Read from MH i2c: F0 09 00 77 15 00 39 CC 19 66 23 5B 8F 65 7A [00:05:12]GetLastDocTimeStamp 1712966670 [00:05:12]current date 1712966713 [00:05:12]FM_GetShiftState [00:05:12]SAM_PROTO_GetShiftState [00:05:12]wFMCommunicate request_size=4 [00:05:12]MH_SAM_APDU [00:05:12]CAPDU: 80 13 01 00 [00:05:12]Write to MH i2c: E2 08 00 78 15 80 13 01 00 00 00 00 00 0A [00:05:12]Write i2c OK [00:05:12]MH_I2C_Read... [00:05:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:05:12]Read from MH i2c: E2 [00:05:12]MH_I2C_Read... [00:05:12]Read from MH i2c: E2 0E 00 [00:05:12]MH_I2C_Read... [00:05:12]Read from MH i2c: E2 0E 00 78 15 00 09 00 01 17 88 19 66 00 00 00 00 90 00 34 [00:05:12]RAPDU: 09 00 01 17 88 19 66 00 00 00 00 90 00 [00:05:12]wFMCommunicate OK [00:05:12]SAM_PROTO_GetShiftState done [00:05:12]FM_GetShiftState done [00:05:12]KKMCreateCloseShiftDocument [00:05:12]Load OK [00:05:12]Malloc new data [00:05:12]MH_GetDate [00:05:12]Write to MH i2c: F0 00 00 79 15 7D [00:05:12]Write i2c OK [00:05:12]MH_I2C_Read... [00:05:12]Read from MH i2c: F0 [00:05:12]MH_I2C_Read... [00:05:12]Read from MH i2c: F0 09 00 [00:05:12]MH_I2C_Read... [00:05:12]Read from MH i2c: F0 09 00 79 15 00 39 CC 19 66 23 5B 8F 65 7C [00:05:12]Malloc new data [00:05:12]Malloc new data [00:05:12]Malloc new data [00:05:12]Malloc new data [00:05:12]KKMCreateCloseShiftDocument OK [00:05:12]KKMSetCloseShiftData OK [00:05:12]ProcessDocumentItem done err = 0, tmpTLVsize=71 [00:05:12]tlvbuf is 01290BE0 [00:05:12]KKMLoadAndSignCloseShiftData [00:05:12]SAM_PROTO_ProcessDocument [00:05:12]wFMCommunicate request_size=9 [00:05:12]MH_SAM_APDU [00:05:12]CAPDU: 80 15 01 00 04 05 00 47 00 [00:05:12]Write to MH i2c: E2 0C 00 7A 15 80 15 01 00 04 00 05 00 47 00 00 00 62 [00:05:12]Write i2c OK [00:05:12]MH_I2C_Read... [00:05:12]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:05:12]Read from MH i2c: E2 [00:05:12]MH_I2C_Read... [00:05:12]Read from MH i2c: E2 03 00 [00:05:12]MH_I2C_Read... [00:05:12]Read from MH i2c: E2 03 00 7A 15 00 90 00 03 [00:05:12]RAPDU: 90 00 [00:05:12]wFMCommunicate OK [00:05:12]wFMCommunicate request_size=23 [00:05:12]MH_SAM_APDU [00:05:12]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:05:12]Write to MH i2c: E2 1A 00 7B 15 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 05 [00:05:12]OFD Sender: No OFD packet to send [00:05:12]Write i2c OK [00:05:12]MH_I2C_Read... [00:05:12]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:05:12]Read from MH i2c: E2 [00:05:12]MH_I2C_Read... [00:05:12]Read from MH i2c: E2 03 00 [00:05:12]MH_I2C_Read... [00:05:12]Read from MH i2c: E2 03 00 7B 15 00 90 00 04 [00:05:12]RAPDU: 90 00 [00:05:12]wFMCommunicate OK [00:05:12]wFMCommunicate request_size=30 [00:05:12]MH_SAM_APDU [00:05:12]CAPDU: 80 15 02 00 19 FD 03 15 00 D0 A1 D0 B0 D1 80 D1 8B D0 B1 D0 B0 D0 B5 D0 B2 20 D0 AD 2E 20 [00:05:12]Write to MH i2c: E2 21 00 7C 15 80 15 02 00 19 00 FD 03 15 00 D0 A1 D0 B0 D1 80 D1 8B D0 B1 D0 B0 D0 B5 D0 B2 20 D0 AD 2E 20 00 00 E9 [00:05:12]Write i2c OK [00:05:12]MH_I2C_Read... [00:05:12]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:05:12]Read from MH i2c: E2 [00:05:12]MH_I2C_Read... [00:05:12]Read from MH i2c: E2 03 00 [00:05:12]MH_I2C_Read... [00:05:12]Read from MH i2c: E2 03 00 7C 15 00 90 00 05 [00:05:12]RAPDU: 90 00 [00:05:12]wFMCommunicate OK [00:05:12]wFMCommunicate request_size=13 [00:05:12]MH_SAM_APDU [00:05:12]CAPDU: 80 15 02 00 08 F4 03 04 00 39 CC 19 66 [00:05:12]Write to MH i2c: E2 10 00 7D 15 80 15 02 00 08 00 F4 03 04 00 39 CC 19 66 00 00 A1 [00:05:12]Write i2c OK [00:05:12]MH_I2C_Read... [00:05:12]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:05:12]Read from MH i2c: E2 [00:05:12]MH_I2C_Read... [00:05:12]Read from MH i2c: E2 03 00 [00:05:12]MH_I2C_Read... [00:05:12]Read from MH i2c: E2 03 00 7D 15 00 90 00 06 [00:05:12]RAPDU: 90 00 [00:05:12]wFMCommunicate OK [00:05:12]wFMCommunicate request_size=25 [00:05:12]MH_SAM_APDU [00:05:12]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 [00:05:12]Write to MH i2c: E2 1C 00 7E 15 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 00 00 96 [00:05:12]Write i2c OK [00:05:12]MH_I2C_Read... [00:05:12]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:05:12]Read from MH i2c: E2 [00:05:12]MH_I2C_Read... [00:05:12]Read from MH i2c: E2 03 00 [00:05:12]MH_I2C_Read... [00:05:12]Read from MH i2c: E2 03 00 7E 15 00 90 00 07 [00:05:12]RAPDU: 90 00 [00:05:12]wFMCommunicate OK [00:05:12]wFMCommunicate request_size=4 [00:05:12]MH_SAM_APDU [00:05:12]CAPDU: 80 15 03 00 [00:05:12]Write to MH i2c: E2 08 00 7F 15 80 15 03 00 00 00 00 00 15 [00:05:12]Write i2c OK [00:05:12]MH_I2C_Read... [00:05:13]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [00:05:13]Read from MH i2c: E2 [00:05:13]MH_I2C_Read... [00:05:13]Read from MH i2c: E2 FD 00 [00:05:13]MH_I2C_Read... [00:05:13]Read from MH i2c: E2 FD 00 7F 15 00 FC 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 78 70 00 00 0E 04 04 00 72 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 43 00 00 00 AA 04 B5 04 6E 04 04 00 41 00 00 00 69 04 9C 00 6F 04 04 00 40 00 00 00 B1 04 03 00 87 AD 9A 70 04 03 00 D0 50 2A 72 04 03 00 B7 5C 70 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 6D 6D 10 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 72 5E 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 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 80 1A 06 90 00 7A [00:05:13]RAPDU: FC 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 78 70 00 00 0E 04 04 00 72 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 43 00 00 00 AA 04 B5 04 6E 04 04 00 41 00 00 00 69 04 9C 00 6F 04 04 00 40 00 00 00 B1 04 03 00 87 AD 9A 70 04 03 00 D0 50 2A 72 04 03 00 B7 5C 70 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 6D 6D 10 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 72 5E 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 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 80 1A 06 90 00 [00:05:13]wFMCommunicate OK [00:05:13]SAM_PROTO_ProcessDocument answer len = 1276 [00:05:13]SAM_PROTO_ProcessDocument remain to read = 1028 [00:05:13]wFMCommunicate request_size=4 [00:05:13]MH_SAM_APDU [00:05:13]CAPDU: 80 17 00 00 [00:05:13]Write to MH i2c: E2 08 00 80 15 80 17 00 00 00 00 00 00 15 [00:05:13]Write i2c OK [00:05:13]MH_I2C_Read... [00:05:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:05:13]Read from MH i2c: E2 [00:05:13]MH_I2C_Read... [00:05:13]Read from MH i2c: E2 FD 00 [00:05:13]MH_I2C_Read... [00:05:13]Read from MH i2c: E2 FD 00 80 15 00 70 04 03 00 80 1A 06 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 EF A5 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 D4 0D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 04 [00:05:13]RAPDU: 70 04 03 00 80 1A 06 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 EF A5 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 D4 0D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:05:14]wFMCommunicate OK [00:05:14]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:05:14]SAM_PROTO_ProcessDocument remain to read = 778 [00:05:14]wFMCommunicate request_size=4 [00:05:14]MH_SAM_APDU [00:05:14]CAPDU: 80 17 00 00 [00:05:14]Write to MH i2c: E2 08 00 81 15 80 17 00 00 00 00 00 00 16 [00:05:14]Write i2c OK [00:05:14]MH_I2C_Read... [00:05:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:05:14]Read from MH i2c: E2 [00:05:14]MH_I2C_Read... [00:05:14]Read from MH i2c: E2 FD 00 [00:05:14]MH_I2C_Read... [00:05:14]Read from MH i2c: E2 FD 00 81 15 00 04 F7 03 00 00 EF 03 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 90 00 7C [00:05:14]RAPDU: 04 F7 03 00 00 EF 03 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 90 00 [00:05:14]wFMCommunicate OK [00:05:14]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:05:14]SAM_PROTO_ProcessDocument remain to read = 528 [00:05:14]wFMCommunicate request_size=4 [00:05:14]MH_SAM_APDU [00:05:14]CAPDU: 80 17 00 00 [00:05:14]Write to MH i2c: E2 08 00 82 15 80 17 00 00 00 00 00 00 17 [00:05:14]Write i2c OK [00:05:14]MH_I2C_Read... [00:05:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:05:14]Read from MH i2c: E2 [00:05:14]MH_I2C_Read... [00:05:14]Read from MH i2c: E2 FD 00 [00:05:14]MH_I2C_Read... [00:05:14]Read from MH i2c: E2 FD 00 82 15 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 2A [00:05:15]RAPDU: 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:05:15]wFMCommunicate OK [00:05:15]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:05:15]SAM_PROTO_ProcessDocument remain to read = 278 [00:05:15]wFMCommunicate request_size=4 [00:05:15]MH_SAM_APDU [00:05:15]CAPDU: 80 17 00 00 [00:05:15]Write to MH i2c: E2 08 00 83 15 80 17 00 00 00 00 00 00 18 [00:05:15]Write i2c OK [00:05:15]MH_I2C_Read... [00:05:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:05:15]Read from MH i2c: E2 [00:05:15]MH_I2C_Read... [00:05:15]Read from MH i2c: E2 FD 00 [00:05:15]MH_I2C_Read... [00:05:15]Read from MH i2c: E2 FD 00 83 15 00 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 52 [00:05:15]RAPDU: 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:05:15]wFMCommunicate OK [00:05:15]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:05:15]SAM_PROTO_ProcessDocument remain to read = 28 [00:05:15]wFMCommunicate request_size=4 [00:05:15]MH_SAM_APDU [00:05:15]CAPDU: 80 17 00 00 [00:05:15]Write to MH i2c: E2 08 00 84 15 80 17 00 00 00 00 00 00 19 [00:05:15]Write i2c OK [00:05:15]MH_I2C_Read... [00:05:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 28! [00:05:16]Read from MH i2c: E2 [00:05:16]MH_I2C_Read... [00:05:16]Read from MH i2c: E2 1F 00 [00:05:16]MH_I2C_Read... [00:05:16]Read from MH i2c: E2 1F 00 84 15 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 35 F8 6C 80 39 5E 90 00 0C [00:05:16]RAPDU: 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 35 F8 6C 80 39 5E 90 00 [00:05:16]wFMCommunicate OK [00:05:16]SAM_PROTO_ProcessDocument received (without SW) 28 bytes [00:05:16]SAM_PROTO_ProcessDocument done [00:05:16]1209 (1) - 1.0 - номер версии ФФД [00:05:16]1041 (16) - 0000000000963154 - номер ФМ [00:05:16]1040 (4) - 28792 - номер ФД [00:05:16]1038 (4) - 114 - номер смены [00:05:16]1118 (4) - 65 - количество кассовых чеков за смену [00:05:16]1111 (4) - 67 - общее количество ФД за смену [00:05:16]1194 (1205) - счетчики итогов смены [00:05:16] 1134 (4) - 65 - количество чеков со всеми признаками расчетов [00:05:16] 1129 (156) - счетчики операций «приход» [00:05:16] 1135 (4) - 64 - количество чеков по признаку расчетов [00:05:16] 1201 (3) - 101369.67 - общая итоговая сумма в чеках [00:05:16] 1136 (3) - 27732.00 - итоговая сумма в чеках наличными [00:05:16] 1138 (3) - 73637.67 - итоговая сумма в чеках безналичными [00:05:16] 1024 (123) - суммы налогов [00:05:16] 1006 (9) - суммы НДС [00:05:16] 1010 (1) - 0% - код ставки НДС [00:05:16] 1011 (0) - 0.00 - сумма НДС по ставке [00:05:16] 1006 (12) - суммы НДС [00:05:16] 1010 (1) - 12% - код ставки НДС [00:05:16] 1011 (3) - 10765.89 - сумма НДС по ставке [00:05:16] 1007 (9) - суммы НСП [00:05:16] 1014 (1) - 0% - код ставки НСП [00:05:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:16] 1007 (12) - суммы НСП [00:05:16] 1014 (1) - 1% - код ставки НСП [00:05:16] 1015 (3) - 897.14 - сумма НСП по ставке [00:05:16] 1007 (9) - суммы НСП [00:05:16] 1014 (1) - 2% - код ставки НСП [00:05:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:16] 1007 (9) - суммы НСП [00:05:16] 1014 (1) - 3% - код ставки НСП [00:05:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:16] 1007 (9) - суммы НСП [00:05:16] 1014 (1) - 5% - код ставки НСП [00:05:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:16] 1007 (9) - суммы НСП [00:05:16] 1014 (1) - 0,50% - код ставки НСП [00:05:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:16] 1007 (9) - суммы НСП [00:05:16] 1014 (1) - 1,50% - код ставки НСП [00:05:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:16] 1130 (151) - счетчики операций «возврат прихода» [00:05:16] 1135 (4) - 1 - количество чеков по признаку расчетов [00:05:16] 1201 (3) - 4000.00 - общая итоговая сумма в чеках [00:05:16] 1136 (3) - 4000.00 - итоговая сумма в чеках наличными [00:05:16] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:05:16] 1024 (121) - суммы налогов [00:05:16] 1006 (9) - суммы НДС [00:05:16] 1010 (1) - 0% - код ставки НДС [00:05:16] 1011 (0) - 0.00 - сумма НДС по ставке [00:05:16] 1006 (11) - суммы НДС [00:05:16] 1010 (1) - 12% - код ставки НДС [00:05:16] 1011 (2) - 424.79 - сумма НДС по ставке [00:05:16] 1007 (9) - суммы НСП [00:05:16] 1014 (1) - 0% - код ставки НСП [00:05:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:16] 1007 (11) - суммы НСП [00:05:16] 1014 (1) - 1% - код ставки НСП [00:05:16] 1015 (2) - 35.40 - сумма НСП по ставке [00:05:16] 1007 (9) - суммы НСП [00:05:16] 1014 (1) - 2% - код ставки НСП [00:05:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:16] 1007 (9) - суммы НСП [00:05:16] 1014 (1) - 3% - код ставки НСП [00:05:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:16] 1007 (9) - суммы НСП [00:05:16] 1014 (1) - 5% - код ставки НСП [00:05:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:16] 1007 (9) - суммы НСП [00:05:16] 1014 (1) - 0,50% - код ставки НСП [00:05:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:16] 1007 (9) - суммы НСП [00:05:16] 1014 (1) - 1,50% - код ставки НСП [00:05:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:16] 1131 (141) - счетчики операций «расход» [00:05:16] 1135 (4) - 0 - количество чеков по признаку расчетов [00:05:16] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:05:16] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:05:16] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:05:16] 1024 (117) - суммы налогов [00:05:16] 1006 (9) - суммы НДС [00:05:16] 1010 (1) - 0% - код ставки НДС [00:05:16] 1011 (0) - 0.00 - сумма НДС по ставке [00:05:16] 1006 (9) - суммы НДС [00:05:16] 1010 (1) - 12% - код ставки НДС [00:05:16] 1011 (0) - 0.00 - сумма НДС по ставке [00:05:16] 1007 (9) - суммы НСП [00:05:16] 1014 (1) - 0% - код ставки НСП [00:05:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:16] 1007 (9) - суммы НСП [00:05:16] 1014 (1) - 1% - код ставки НСП [00:05:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:16] 1007 (9) - суммы НСП [00:05:16] 1014 (1) - 2% - код ставки НСП [00:05:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:16] 1007 (9) - суммы НСП [00:05:16] 1014 (1) - 3% - код ставки НСП [00:05:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:16] 1007 (9) - суммы НСП [00:05:16] 1014 (1) - 5% - код ставки НСП [00:05:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:16] 1007 (9) - суммы НСП [00:05:16] 1014 (1) - 0,50% - код ставки НСП [00:05:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:16] 1007 (9) - суммы НСП [00:05:16] 1014 (1) - 1,50% - код ставки НСП [00:05:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:16] 1132 (141) - счетчики операций «возврат расхода» [00:05:16] 1135 (4) - 0 - количество чеков по признаку расчетов [00:05:16] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:05:16] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:05:16] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:05:16] 1024 (117) - суммы налогов [00:05:16] 1006 (9) - суммы НДС [00:05:16] 1010 (1) - 0% - код ставки НДС [00:05:16] 1011 (0) - 0.00 - сумма НДС по ставке [00:05:16] 1006 (9) - суммы НДС [00:05:16] 1010 (1) - 12% - код ставки НДС [00:05:16] 1011 (0) - 0.00 - сумма НДС по ставке [00:05:16] 1007 (9) - суммы НСП [00:05:16] 1014 (1) - 0% - код ставки НСП [00:05:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:16] 1007 (9) - суммы НСП [00:05:16] 1014 (1) - 1% - код ставки НСП [00:05:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:16] 1007 (9) - суммы НСП [00:05:16] 1014 (1) - 2% - код ставки НСП [00:05:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:16] 1007 (9) - суммы НСП [00:05:16] 1014 (1) - 3% - код ставки НСП [00:05:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:16] 1007 (9) - суммы НСП [00:05:16] 1014 (1) - 5% - код ставки НСП [00:05:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:16] 1007 (9) - суммы НСП [00:05:16] 1014 (1) - 0,50% - код ставки НСП [00:05:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:16] 1007 (9) - суммы НСП [00:05:16] 1014 (1) - 1,50% - код ставки НСП [00:05:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:16] 1133 (588) - - счетчики коррекции - не используются [00:05:16]1077 (6) - 59341088504158 - ФПД [00:05:16]SetTLVBufToDocument [00:05:16]Processing tag 1209 (04B9) [00:05:16]Malloc new data [00:05:16]Processing tag 1041 (0411) [00:05:16]Processing tag 1040 (0410) [00:05:16]Malloc new data [00:05:16]Processing tag 1038 (040E) [00:05:16]Malloc new data [00:05:16]Processing tag 1118 (045E) [00:05:16]Malloc new data [00:05:16]Processing tag 1111 (0457) [00:05:16]Malloc new data [00:05:16]Processing tag 1194 (04AA) [00:05:16]Load OK [00:05:16]SetTLVBufToDocument [00:05:16]Processing tag 1134 (046E) [00:05:16]Malloc new data [00:05:16]Processing tag 1129 (0469) [00:05:16]Load OK [00:05:16]SetTLVBufToDocument [00:05:16]Processing tag 1135 (046F) [00:05:16]Malloc new data [00:05:16]Processing tag 1201 (04B1) [00:05:16]Malloc new data [00:05:16]Processing tag 1136 (0470) [00:05:16]Malloc new data [00:05:16]Processing tag 1138 (0472) [00:05:16]Malloc new data [00:05:16]Processing tag 1024 (0400) [00:05:16]Load OK [00:05:16]SetTLVBufToDocument [00:05:16]Processing tag 1006 (03EE) [00:05:16]Load OK [00:05:16]SetTLVBufToDocument [00:05:16]Processing tag 1010 (03F2) [00:05:16]Malloc new data [00:05:16]Processing tag 1011 (03F3) [00:05:16]Malloc new data [00:05:16]SetTLVBufToDocument err=0 [00:05:16]Processing tag 1006 (03EE) [00:05:16]Load OK [00:05:16]SetTLVBufToDocument [00:05:16]Processing tag 1010 (03F2) [00:05:16]Malloc new data [00:05:16]Processing tag 1011 (03F3) [00:05:16]Malloc new data [00:05:16]SetTLVBufToDocument err=0 [00:05:16]Processing tag 1007 (03EF) [00:05:16]Load OK [00:05:16]SetTLVBufToDocument [00:05:16]Processing tag 1014 (03F6) [00:05:16]Malloc new data [00:05:16]Processing tag 1015 (03F7) [00:05:16]Malloc new data [00:05:16]SetTLVBufToDocument err=0 [00:05:16]Processing tag 1007 (03EF) [00:05:16]Load OK [00:05:16]SetTLVBufToDocument [00:05:16]Processing tag 1014 (03F6) [00:05:16]Malloc new data [00:05:16]Processing tag 1015 (03F7) [00:05:16]Malloc new data [00:05:16]SetTLVBufToDocument err=0 [00:05:16]Processing tag 1007 (03EF) [00:05:16]Load OK [00:05:16]SetTLVBufToDocument [00:05:16]Processing tag 1014 (03F6) [00:05:16]Malloc new data [00:05:16]Processing tag 1015 (03F7) [00:05:16]Malloc new data [00:05:16]SetTLVBufToDocument err=0 [00:05:16]Processing tag 1007 (03EF) [00:05:16]Load OK [00:05:16]SetTLVBufToDocument [00:05:16]Processing tag 1014 (03F6) [00:05:16]Malloc new data [00:05:16]Processing tag 1015 (03F7) [00:05:16]Malloc new data [00:05:16]SetTLVBufToDocument err=0 [00:05:16]Processing tag 1007 (03EF) [00:05:16]Load OK [00:05:16]SetTLVBufToDocument [00:05:16]Processing tag 1014 (03F6) [00:05:16]Malloc new data [00:05:16]Processing tag 1015 (03F7) [00:05:16]Malloc new data [00:05:16]SetTLVBufToDocument err=0 [00:05:16]Processing tag 1007 (03EF) [00:05:16]Load OK [00:05:16]SetTLVBufToDocument [00:05:16]Processing tag 1014 (03F6) [00:05:16]Malloc new data [00:05:16]Processing tag 1015 (03F7) [00:05:16]Malloc new data [00:05:16]SetTLVBufToDocument err=0 [00:05:16]Processing tag 1007 (03EF) [00:05:16]Load OK [00:05:16]SetTLVBufToDocument [00:05:16]Processing tag 1014 (03F6) [00:05:16]Malloc new data [00:05:16]Processing tag 1015 (03F7) [00:05:16]Malloc new data [00:05:16]SetTLVBufToDocument err=0 [00:05:16]SetTLVBufToDocument err=0 [00:05:16]SetTLVBufToDocument err=0 [00:05:16]Processing tag 1130 (046A) [00:05:16]Load OK [00:05:16]SetTLVBufToDocument [00:05:16]Processing tag 1135 (046F) [00:05:16]Malloc new data [00:05:16]Processing tag 1201 (04B1) [00:05:16]Malloc new data [00:05:16]Processing tag 1136 (0470) [00:05:16]Malloc new data [00:05:16]Processing tag 1138 (0472) [00:05:16]Malloc new data [00:05:16]Processing tag 1024 (0400) [00:05:16]Load OK [00:05:16]SetTLVBufToDocument [00:05:16]Processing tag 1006 (03EE) [00:05:16]Load OK [00:05:16]SetTLVBufToDocument [00:05:16]Processing tag 1010 (03F2) [00:05:16]Malloc new data [00:05:16]Processing tag 1011 (03F3) [00:05:16]Malloc new data [00:05:16]SetTLVBufToDocument err=0 [00:05:16]Processing tag 1006 (03EE) [00:05:16]Load OK [00:05:16]SetTLVBufToDocument [00:05:16]Processing tag 1010 (03F2) [00:05:16]Malloc new data [00:05:16]Processing tag 1011 (03F3) [00:05:16]Malloc new data [00:05:16]SetTLVBufToDocument err=0 [00:05:16]Processing tag 1007 (03EF) [00:05:16]Load OK [00:05:16]SetTLVBufToDocument [00:05:16]Processing tag 1014 (03F6) [00:05:16]Malloc new data [00:05:16]Processing tag 1015 (03F7) [00:05:16]Malloc new data [00:05:16]SetTLVBufToDocument err=0 [00:05:16]Processing tag 1007 (03EF) [00:05:16]Load OK [00:05:16]SetTLVBufToDocument [00:05:16]Processing tag 1014 (03F6) [00:05:16]Malloc new data [00:05:16]Processing tag 1015 (03F7) [00:05:16]Malloc new data [00:05:16]SetTLVBufToDocument err=0 [00:05:16]Processing tag 1007 (03EF) [00:05:16]Load OK [00:05:16]SetTLVBufToDocument [00:05:16]Processing tag 1014 (03F6) [00:05:16]Malloc new data [00:05:16]Processing tag 1015 (03F7) [00:05:16]Malloc new data [00:05:16]SetTLVBufToDocument err=0 [00:05:16]Processing tag 1007 (03EF) [00:05:16]Load OK [00:05:16]SetTLVBufToDocument [00:05:16]Processing tag 1014 (03F6) [00:05:16]Malloc new data [00:05:16]Processing tag 1015 (03F7) [00:05:16]Malloc new data [00:05:16]SetTLVBufToDocument err=0 [00:05:16]Processing tag 1007 (03EF) [00:05:16]Load OK [00:05:16]SetTLVBufToDocument [00:05:16]Processing tag 1014 (03F6) [00:05:16]Malloc new data [00:05:16]Processing tag 1015 (03F7) [00:05:16]Malloc new data [00:05:16]SetTLVBufToDocument err=0 [00:05:16]Processing tag 1007 (03EF) [00:05:16]Load OK [00:05:16]SetTLVBufToDocument [00:05:16]Processing tag 1014 (03F6) [00:05:16]Malloc new data [00:05:16]Processing tag 1015 (03F7) [00:05:16]Malloc new data [00:05:16]SetTLVBufToDocument err=0 [00:05:16]Processing tag 1007 (03EF) [00:05:16]Load OK [00:05:16]SetTLVBufToDocument [00:05:16]Processing tag 1014 (03F6) [00:05:16]Malloc new data [00:05:16]Processing tag 1015 (03F7) [00:05:16]Malloc new data [00:05:16]SetTLVBufToDocument err=0 [00:05:16]SetTLVBufToDocument err=0 [00:05:16]SetTLVBufToDocument err=0 [00:05:16]Processing tag 1131 (046B) [00:05:16]Load OK [00:05:16]SetTLVBufToDocument [00:05:16]Processing tag 1135 (046F) [00:05:16]Malloc new data [00:05:16]Processing tag 1201 (04B1) [00:05:17]Malloc new data [00:05:17]Processing tag 1136 (0470) [00:05:17]Malloc new data [00:05:17]Processing tag 1138 (0472) [00:05:17]Malloc new data [00:05:17]Processing tag 1024 (0400) [00:05:17]Load OK [00:05:17]SetTLVBufToDocument [00:05:17]Processing tag 1006 (03EE) [00:05:17]Load OK [00:05:17]SetTLVBufToDocument [00:05:17]Processing tag 1010 (03F2) [00:05:17]Malloc new data [00:05:17]Processing tag 1011 (03F3) [00:05:17]Malloc new data [00:05:17]SetTLVBufToDocument err=0 [00:05:17]Processing tag 1006 (03EE) [00:05:17]Load OK [00:05:17]SetTLVBufToDocument [00:05:17]Processing tag 1010 (03F2) [00:05:17]Malloc new data [00:05:17]Processing tag 1011 (03F3) [00:05:17]Malloc new data [00:05:17]SetTLVBufToDocument err=0 [00:05:17]Processing tag 1007 (03EF) [00:05:17]Load OK [00:05:17]SetTLVBufToDocument [00:05:17]Processing tag 1014 (03F6) [00:05:17]Malloc new data [00:05:17]Processing tag 1015 (03F7) [00:05:17]Malloc new data [00:05:17]SetTLVBufToDocument err=0 [00:05:17]Processing tag 1007 (03EF) [00:05:17]Load OK [00:05:17]SetTLVBufToDocument [00:05:17]Processing tag 1014 (03F6) [00:05:17]Malloc new data [00:05:17]Processing tag 1015 (03F7) [00:05:17]Malloc new data [00:05:17]SetTLVBufToDocument err=0 [00:05:17]Processing tag 1007 (03EF) [00:05:17]Load OK [00:05:17]SetTLVBufToDocument [00:05:17]Processing tag 1014 (03F6) [00:05:17]Malloc new data [00:05:17]Processing tag 1015 (03F7) [00:05:17]Malloc new data [00:05:17]SetTLVBufToDocument err=0 [00:05:17]Processing tag 1007 (03EF) [00:05:17]Load OK [00:05:17]SetTLVBufToDocument [00:05:17]Processing tag 1014 (03F6) [00:05:17]Malloc new data [00:05:17]Processing tag 1015 (03F7) [00:05:17]Malloc new data [00:05:17]SetTLVBufToDocument err=0 [00:05:17]Processing tag 1007 (03EF) [00:05:17]Load OK [00:05:17]SetTLVBufToDocument [00:05:17]Processing tag 1014 (03F6) [00:05:17]Malloc new data [00:05:17]Processing tag 1015 (03F7) [00:05:17]Malloc new data [00:05:17]SetTLVBufToDocument err=0 [00:05:17]Processing tag 1007 (03EF) [00:05:17]Load OK [00:05:17]SetTLVBufToDocument [00:05:17]Processing tag 1014 (03F6) [00:05:17]Malloc new data [00:05:17]Processing tag 1015 (03F7) [00:05:17]Malloc new data [00:05:17]SetTLVBufToDocument err=0 [00:05:17]Processing tag 1007 (03EF) [00:05:17]Load OK [00:05:17]SetTLVBufToDocument [00:05:17]Processing tag 1014 (03F6) [00:05:17]Malloc new data [00:05:17]Processing tag 1015 (03F7) [00:05:17]Malloc new data [00:05:17]SetTLVBufToDocument err=0 [00:05:17]SetTLVBufToDocument err=0 [00:05:17]SetTLVBufToDocument err=0 [00:05:17]Processing tag 1132 (046C) [00:05:17]Load OK [00:05:17]SetTLVBufToDocument [00:05:17]Processing tag 1135 (046F) [00:05:17]Malloc new data [00:05:17]Processing tag 1201 (04B1) [00:05:17]Malloc new data [00:05:17]Processing tag 1136 (0470) [00:05:17]Malloc new data [00:05:17]Processing tag 1138 (0472) [00:05:17]Malloc new data [00:05:17]Processing tag 1024 (0400) [00:05:17]Load OK [00:05:17]SetTLVBufToDocument [00:05:17]Processing tag 1006 (03EE) [00:05:17]Load OK [00:05:17]SetTLVBufToDocument [00:05:17]Processing tag 1010 (03F2) [00:05:17]Malloc new data [00:05:17]Processing tag 1011 (03F3) [00:05:17]Malloc new data [00:05:17]SetTLVBufToDocument err=0 [00:05:17]Processing tag 1006 (03EE) [00:05:17]Load OK [00:05:17]SetTLVBufToDocument [00:05:17]Processing tag 1010 (03F2) [00:05:17]Malloc new data [00:05:17]Processing tag 1011 (03F3) [00:05:17]Malloc new data [00:05:17]SetTLVBufToDocument err=0 [00:05:17]Processing tag 1007 (03EF) [00:05:17]Load OK [00:05:17]SetTLVBufToDocument [00:05:17]Processing tag 1014 (03F6) [00:05:17]Malloc new data [00:05:17]Processing tag 1015 (03F7) [00:05:17]Malloc new data [00:05:17]SetTLVBufToDocument err=0 [00:05:17]Processing tag 1007 (03EF) [00:05:17]Load OK [00:05:17]SetTLVBufToDocument [00:05:17]Processing tag 1014 (03F6) [00:05:17]Malloc new data [00:05:17]Processing tag 1015 (03F7) [00:05:17]Malloc new data [00:05:17]SetTLVBufToDocument err=0 [00:05:17]Processing tag 1007 (03EF) [00:05:17]Load OK [00:05:17]SetTLVBufToDocument [00:05:17]Processing tag 1014 (03F6) [00:05:17]Malloc new data [00:05:17]Processing tag 1015 (03F7) [00:05:17]Malloc new data [00:05:17]SetTLVBufToDocument err=0 [00:05:17]Processing tag 1007 (03EF) [00:05:17]Load OK [00:05:17]SetTLVBufToDocument [00:05:17]Processing tag 1014 (03F6) [00:05:17]Malloc new data [00:05:17]Processing tag 1015 (03F7) [00:05:17]Malloc new data [00:05:17]SetTLVBufToDocument err=0 [00:05:17]Processing tag 1007 (03EF) [00:05:17]Load OK [00:05:17]SetTLVBufToDocument [00:05:17]Processing tag 1014 (03F6) [00:05:17]Malloc new data [00:05:17]Processing tag 1015 (03F7) [00:05:17]Malloc new data [00:05:17]SetTLVBufToDocument err=0 [00:05:17]Processing tag 1007 (03EF) [00:05:17]Load OK [00:05:17]SetTLVBufToDocument [00:05:17]Processing tag 1014 (03F6) [00:05:17]Malloc new data [00:05:17]Processing tag 1015 (03F7) [00:05:17]Malloc new data [00:05:17]SetTLVBufToDocument err=0 [00:05:17]Processing tag 1007 (03EF) [00:05:17]Load OK [00:05:17]SetTLVBufToDocument [00:05:17]Processing tag 1014 (03F6) [00:05:17]Malloc new data [00:05:17]Processing tag 1015 (03F7) [00:05:17]Malloc new data [00:05:17]SetTLVBufToDocument err=0 [00:05:17]SetTLVBufToDocument err=0 [00:05:17]SetTLVBufToDocument err=0 [00:05:17]Processing tag 1133 (046D) [00:05:17]Malloc new data [00:05:17]SetTLVBufToDocument err=0 [00:05:17]Processing tag 1077 (0435) [00:05:17]Malloc new data [00:05:17]SetTLVBufToDocument err=0 [00:05:17]Malloc new data [00:05:17]SAM_PROTO_GetFMData [00:05:17]wFMCommunicate request_size=4 [00:05:17]MH_SAM_APDU [00:05:17]CAPDU: 80 13 03 00 [00:05:17]Write to MH i2c: E2 08 00 85 15 80 13 03 00 00 00 00 00 19 [00:05:17]Write i2c OK [00:05:17]MH_I2C_Read... [00:05:17]OFD Sender: No OFD packet to send [00:05:17]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:05:17]Read from MH i2c: E2 [00:05:17]MH_I2C_Read... [00:05:17]Read from MH i2c: E2 FD 00 [00:05:17]MH_I2C_Read... [00:05:17]Read from MH i2c: E2 FD 00 85 15 00 C3 04 85 04 BF 04 6E 04 04 00 93 6F 00 00 69 04 A1 00 6F 04 04 00 38 6C 00 00 B1 04 04 00 60 A9 16 B0 70 04 04 00 48 3A 6C 70 72 04 04 00 18 6F AA 3F 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 54 0E B4 12 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 49 F8 8E 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 9C 00 6F 04 04 00 5B 03 00 00 B1 04 04 00 28 7A 97 0C 70 04 04 00 28 7A 97 0C 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 B0 5A 56 01 EF 03 09 00 F6 90 00 AF [00:05:17]RAPDU: C3 04 85 04 BF 04 6E 04 04 00 93 6F 00 00 69 04 A1 00 6F 04 04 00 38 6C 00 00 B1 04 04 00 60 A9 16 B0 70 04 04 00 48 3A 6C 70 72 04 04 00 18 6F AA 3F 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 54 0E B4 12 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 49 F8 8E 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 9C 00 6F 04 04 00 5B 03 00 00 B1 04 04 00 28 7A 97 0C 70 04 04 00 28 7A 97 0C 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 B0 5A 56 01 EF 03 09 00 F6 90 00 [00:05:17]wFMCommunicate OK [00:05:17]wFMCommunicate request_size=4 [00:05:17]MH_SAM_APDU [00:05:17]CAPDU: 80 17 00 00 [00:05:17]Write to MH i2c: E2 08 00 86 15 80 17 00 00 00 00 00 00 1B [00:05:17]Write i2c OK [00:05:17]MH_I2C_Read... [00:05:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:05:18]Read from MH i2c: E2 [00:05:18]MH_I2C_Read... [00:05:18]Read from MH i2c: E2 FD 00 [00:05:18]MH_I2C_Read... [00:05:18]Read from MH i2c: E2 FD 00 86 15 00 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 1F 87 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 9D [00:05:18]RAPDU: 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 1F 87 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:05:18]wFMCommunicate OK [00:05:18]wFMCommunicate request_size=4 [00:05:18]MH_SAM_APDU [00:05:18]CAPDU: 80 17 00 00 [00:05:18]Write to MH i2c: E2 08 00 87 15 80 17 00 00 00 00 00 00 1C [00:05:18]Write i2c OK [00:05:18]MH_I2C_Read... [00:05:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:05:18]Read from MH i2c: E2 [00:05:18]MH_I2C_Read... [00:05:18]Read from MH i2c: E2 FD 00 [00:05:18]MH_I2C_Read... [00:05:18]Read from MH i2c: E2 FD 00 87 15 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 3A [00:05:19]RAPDU: 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:05:19]wFMCommunicate OK [00:05:19]wFMCommunicate request_size=4 [00:05:19]MH_SAM_APDU [00:05:19]CAPDU: 80 17 00 00 [00:05:19]Write to MH i2c: E2 08 00 88 15 80 17 00 00 00 00 00 00 1D [00:05:19]Write i2c OK [00:05:19]MH_I2C_Read... [00:05:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:05:19]Read from MH i2c: E2 [00:05:19]MH_I2C_Read... [00:05:19]Read from MH i2c: E2 FD 00 [00:05:19]MH_I2C_Read... [00:05:19]Read from MH i2c: E2 FD 00 88 15 00 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 8F [00:05:19]RAPDU: 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:05:19]wFMCommunicate OK [00:05:19]wFMCommunicate request_size=4 [00:05:19]MH_SAM_APDU [00:05:19]CAPDU: 80 17 00 00 [00:05:19]Write to MH i2c: E2 08 00 89 15 80 17 00 00 00 00 00 00 1E [00:05:20]Write i2c OK [00:05:20]MH_I2C_Read... [00:05:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 221! [00:05:20]Read from MH i2c: E2 [00:05:20]MH_I2C_Read... [00:05:20]Read from MH i2c: E2 E0 00 [00:05:20]MH_I2C_Read... [00:05:20]Read from MH i2c: E2 E0 00 89 15 00 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 08 [00:05:20]RAPDU: 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:05:20]wFMCommunicate OK [00:05:20]SAM_PROTO_GetFMData done [00:05:20]Malloc new data [00:05:20]Malloc new data [00:05:20]Malloc new data [00:05:20]Malloc new data [00:05:20]KKMLoadAndSignCloseShiftData err=0 [00:05:20]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Сарыбаев Э. 13.04.2024 00:05 Смена: 114 РНМ: 0000138879044617 ЗНМ: 0300000027 СНО: Общий режим Чеков за смену: 65 ФД за смену: 67 Всего чеков: 65 ИТОГИ ПРИХОД Чеков: 64 Общий итог: 101369.67 Итого наличными: 27732.00 Итого безнал.: 73637.67 НДС 0% : 0.00 НДС 12% : 10765.89 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 897.14 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 1 Общий итог: 4000.00 Итого наличными: 4000.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 424.79 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 35.40 ИТОГИ РАСХОД Чеков: 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 Нал. в кассе: 23732.00 НС Приход: 29542751.68 НС Возвр.Прихода: 2112538.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 28792 ФМ: 0000000000963154 ФПД: 59341088504158 [00:05:20]StoreToDocumentArchive [00:05:20]shift 114 fd 28792 [00:05:20]save to /storage/0114/doc_00028792 [00:05:20]save last doc name /storage/0114/doc_00028792 to /storage/kkm_last_doc_name [00:05:20]save OK [00:05:20]Clear old archive folders... [00:05:20]Remove dir /storage/0010 [00:05:20]opendir ok [00:05:20]file . [00:05:20]file .. [00:05:20]file doc_1712966678 [00:05:20]remove file /storage/0010/doc_1712966678 [00:05:20]remove dir /storage/0010 [00:05:20]NVStorageSaveData kkm_registers [00:05:20]File name is /storage/kkm_registers [00:05:20]Write 24 bytes [00:05:20]NVStorageSaveData done [00:05:20]NVStorageSaveData kkm_registers [00:05:20]File name is /storage/kkm_registers [00:05:20]Write 24 bytes [00:05:20]NVStorageSaveData done [00:05:20]ProcessDocumentItem done err = 0, tmpTLVsize=1386 [00:05:20]tlvbuf is 01322E70 [00:05:20]SAM_PROTO_ClearQueue [00:05:20]wFMCommunicate request_size=4 [00:05:20]MH_SAM_APDU [00:05:20]CAPDU: 80 09 00 00 [00:05:20]Write to MH i2c: E2 08 00 8A 15 80 09 00 00 00 00 00 00 11 [00:05:20]Write i2c OK [00:05:20]MH_I2C_Read... [00:05:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:05:20]Read from MH i2c: E2 [00:05:20]MH_I2C_Read... [00:05:20]Read from MH i2c: E2 03 00 [00:05:20]MH_I2C_Read... [00:05:20]Read from MH i2c: E2 03 00 8A 15 00 90 00 13 [00:05:20]RAPDU: 90 00 [00:05:20]wFMCommunicate OK [00:05:20]SAM_PROTO_ClearQueue done [00:05:20]KKMCreateOFDPacket [00:05:20]OFDProtocolAddRootSTLVToBuf [00:05:20]FM_MakeSignedData [00:05:20]FM_MakeSignedData [00:05:20]SAM_PROTO_SignData [00:05:20]wFMCommunicate request_size=4 [00:05:20]MH_SAM_APDU [00:05:20]CAPDU: 80 0D 01 02 [00:05:20]Write to MH i2c: E2 08 00 8B 15 80 0D 01 02 00 00 00 00 19 [00:05:20]Write i2c OK [00:05:20]MH_I2C_Read... [00:05:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:05:20]Read from MH i2c: E2 [00:05:20]MH_I2C_Read... [00:05:20]Read from MH i2c: E2 03 00 [00:05:20]MH_I2C_Read... [00:05:20]Read from MH i2c: E2 03 00 8B 15 00 90 00 14 [00:05:20]RAPDU: 90 00 [00:05:20]wFMCommunicate OK [00:05:20]wFMCommunicate request_size=255 [00:05:20]MH_SAM_APDU [00:05:20]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 15 00 D0 A1 D0 B0 D1 80 D1 8B D0 B1 D0 B0 D0 B5 D0 B2 20 D0 AD 2E 20 F4 03 04 00 39 CC 19 66 0E 04 04 00 72 00 00 00 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 5E 04 04 00 41 00 00 00 57 04 04 00 43 00 00 00 AA 04 DC 04 6E 04 04 00 41 00 00 00 69 04 A3 00 6F 04 04 00 40 00 00 00 B1 04 03 00 87 AD 9A 70 04 03 00 D0 50 2A 72 04 03 00 B7 5C 70 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 6D 6D 10 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 [00:05:21]Write to MH i2c: E2 02 01 8C 15 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 15 00 D0 A1 D0 B0 D1 80 D1 8B D0 B1 D0 B0 D0 B5 D0 B2 20 D0 AD 2E 20 F4 03 04 00 39 CC 19 66 0E 04 04 00 72 00 00 00 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 5E 04 04 00 41 00 00 00 57 04 04 00 43 00 00 00 AA 04 DC 04 6E 04 04 00 41 00 00 00 69 04 A3 00 6F 04 04 00 40 00 00 00 B1 04 03 00 87 AD 9A 70 04 03 00 D0 50 2A 72 04 03 00 B7 5C 70 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 6D 6D 10 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 00 00 BF [00:05:21]Write i2c OK [00:05:21]MH_I2C_Read... [00:05:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:05:21]Read from MH i2c: E2 [00:05:21]MH_I2C_Read... [00:05:21]Read from MH i2c: E2 03 00 [00:05:21]MH_I2C_Read... [00:05:21]Read from MH i2c: E2 03 00 8C 15 00 90 00 15 [00:05:21]RAPDU: 90 00 [00:05:21]wFMCommunicate OK [00:05:21]wFMCommunicate request_size=255 [00:05:21]MH_SAM_APDU [00:05:21]CAPDU: 80 0D 02 02 FA 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 72 5E 01 6A 04 9F 00 6F 04 04 00 01 00 00 00 B1 04 03 00 80 1A 06 70 04 03 00 80 1A 06 72 04 01 00 00 00 04 80 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 EF A5 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 D4 0D 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:05:21]Write to MH i2c: E2 02 01 8D 15 80 0D 02 02 FA 00 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 72 5E 01 6A 04 9F 00 6F 04 04 00 01 00 00 00 B1 04 03 00 80 1A 06 70 04 03 00 80 1A 06 72 04 01 00 00 00 04 80 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 EF A5 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 D4 0D 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 2E [00:05:21]Write i2c OK [00:05:21]MH_I2C_Read... [00:05:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:05:22]Read from MH i2c: E2 [00:05:22]MH_I2C_Read... [00:05:22]Read from MH i2c: E2 03 00 [00:05:22]MH_I2C_Read... [00:05:22]Read from MH i2c: E2 03 00 8D 15 00 90 00 16 [00:05:22]RAPDU: 90 00 [00:05:22]wFMCommunicate OK [00:05:22]wFMCommunicate request_size=255 [00:05:22]MH_SAM_APDU [00:05:22]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:05:22]Write to MH i2c: E2 02 01 8E 15 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 OFD Sender: No OFD packet to send [00:05:22]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 E0 [00:05:22]Write i2c OK [00:05:22]MH_I2C_Read... [00:05:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:05:22]Read from MH i2c: E2 [00:05:22]MH_I2C_Read... [00:05:22]Read from MH i2c: E2 03 00 [00:05:22]MH_I2C_Read... [00:05:22]Read from MH i2c: E2 03 00 8E 15 00 90 00 17 [00:05:22]RAPDU: 90 00 [00:05:22]wFMCommunicate OK [00:05:23]wFMCommunicate request_size=255 [00:05:23]MH_SAM_APDU [00:05:23]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:05:23]Write to MH i2c: E2 02 01 8F 15 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 E3 [00:05:23]Write i2c OK [00:05:23]MH_I2C_Read... [00:05:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:05:23]Read from MH i2c: E2 [00:05:23]MH_I2C_Read... [00:05:23]Read from MH i2c: E2 03 00 [00:05:23]MH_I2C_Read... [00:05:23]Read from MH i2c: E2 03 00 8F 15 00 90 00 18 [00:05:23]RAPDU: 90 00 [00:05:23]wFMCommunicate OK [00:05:23]wFMCommunicate request_size=255 [00:05:23]MH_SAM_APDU [00:05:23]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:05:23]Write to MH i2c: E2 02 01 90 15 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 A5 [00:05:24]Write i2c OK [00:05:24]MH_I2C_Read... [00:05:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:05:24]Read from MH i2c: E2 [00:05:24]MH_I2C_Read... [00:05:24]Read from MH i2c: E2 03 00 [00:05:24]MH_I2C_Read... [00:05:24]Read from MH i2c: E2 03 00 90 15 00 90 00 19 [00:05:24]RAPDU: 90 00 [00:05:24]wFMCommunicate OK [00:05:24]wFMCommunicate request_size=145 [00:05:24]MH_SAM_APDU [00:05:24]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 78 70 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 35 04 06 00 35 F8 6C 80 39 5E [00:05:24]Write to MH i2c: E2 94 00 91 15 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 78 70 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 35 04 06 00 35 F8 6C 80 39 5E 00 00 FC [00:05:24]Write i2c OK [00:05:24]MH_I2C_Read... [00:05:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:05:24]Read from MH i2c: E2 [00:05:24]MH_I2C_Read... [00:05:24]Read from MH i2c: E2 03 00 [00:05:24]MH_I2C_Read... [00:05:24]Read from MH i2c: E2 03 00 91 15 00 90 00 1A [00:05:24]RAPDU: 90 00 [00:05:24]wFMCommunicate OK [00:05:24]wFMCommunicate request_size=4 [00:05:24]MH_SAM_APDU [00:05:24]CAPDU: 80 0D 03 02 [00:05:24]Write to MH i2c: E2 08 00 92 15 80 0D 03 02 00 00 00 00 22 [00:05:24]Write i2c OK [00:05:24]MH_I2C_Read... [00:05:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:05:24]Read from MH i2c: E2 [00:05:24]MH_I2C_Read... [00:05:24]Read from MH i2c: E2 0B 00 [00:05:24]MH_I2C_Read... [00:05:24]Read from MH i2c: E2 0B 00 92 15 00 21 45 B5 F3 C5 9B C5 E9 90 00 3F [00:05:24]RAPDU: 21 45 B5 F3 C5 9B C5 E9 90 00 [00:05:25]wFMCommunicate OK [00:05:25]SAM_PROTO_SignData done [00:05:25]FM_MakeSignedData done [00:05:25]CreateOFDProtocolMessage [00:05:25]wFMCommunicate request_size=4 [00:05:25]MH_SAM_APDU [00:05:25]CAPDU: 80 11 00 00 [00:05:25]Write to MH i2c: E2 08 00 93 15 80 11 00 00 00 00 00 00 22 [00:05:25]Write i2c OK [00:05:25]MH_I2C_Read... [00:05:25]Read from MH i2c: E2 [00:05:25]MH_I2C_Read... [00:05:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:05:25]Read from MH i2c: E2 17 00 [00:05:25]MH_I2C_Read... [00:05:25]Read from MH i2c: E2 17 00 93 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 71 [00:05:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [00:05:25]wFMCommunicate OK [00:05:25]CreateOFDProtocolMessage done [00:05:25]OFDSenderStorePacket 28792 [00:05:25]StoreOFDPacket docnum=28792 [00:05:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 7E 05 00 00 9F E0 76 05 C0 B6 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 15 00 D0 A1 D0 B0 D1 80 D1 8B D0 B1 D0 B0 D0 B5 D0 B2 20 D0 AD 2E 20 F4 03 04 00 39 CC 19 66 0E 04 04 00 72 00 00 00 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 5E 04 04 00 41 00 00 00 57 04 04 00 43 00 00 00 AA 04 DC 04 6E 04 04 00 41 00 00 00 69 04 A3 00 6F 04 04 00 40 00 00 00 B1 04 03 00 87 AD 9A 70 04 03 00 D0 50 2A 72 04 03 00 B7 5C 70 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 6D 6D 10 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 72 5E 01 6A 04 9F 00 6F 04 04 00 01 00 00 00 B1 04 03 00 80 1A 06 70 04 03 00 80 1A 06 72 04 01 00 00 00 04 80 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 EF A5 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 D4 0D 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 78 70 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 35 04 06 00 35 F8 6C 80 39 5E 21 45 B5 F3 C5 9B C5 E9 [00:05:25]CheckFolder [00:05:25]dirname=/storage/ofd_packets [00:05:25]CheckFolder done [00:05:25]ProducePacketName [00:05:25]name=ofd_packets/00028792 [00:05:25]NVStorageSaveData ofd_packets/00028792 [00:05:25]File name is /storage/ofd_packets/00028792 [00:05:25]Write 1436 bytes [00:05:25]NVStorageSaveData done [00:05:25]OFDSenderStorePacket done [00:05:25]KKMCreateOFDPacket done [00:05:25]NVStorageSaveData kkm_last_timestamp [00:05:25]File name is /storage/kkm_last_timestamp [00:05:25]Write 4 bytes [00:05:25]NVStorageSaveData done [00:05:25]ExternCall_PrintAddStr [00:05:25]wPrintStart [00:05:25]Write to MH i2c: 01 00 00 94 15 A9 [00:05:25]Write i2c OK [00:05:25]MH_I2C_Read... [00:05:25]Read from MH i2c: 01 [00:05:25]MH_I2C_Read... [00:05:25]Read from MH i2c: 01 07 00 [00:05:25]MH_I2C_Read... [00:05:25]Read from MH i2c: 01 07 00 94 15 00 00 00 00 00 FF 0F BE [00:05:25]RasterBufferAndPrint [00:05:25]line Отчет о закрытии смены [00:05:25]line ФФД: 1.0 [00:05:25]line ИНН: 02508201610067 [00:05:25]line Кассир: Сарыбаев Э. [00:05:25]line 13.04.2024 00:05 [00:05:25]line Смена: 114 [00:05:25]line РНМ: 0000138879044617 [00:05:25]line ЗНМ: 0300000027 [00:05:25]line СНО: Общий режим [00:05:25]line Чеков за смену: 65 [00:05:25]line ФД за смену: 67 [00:05:25]line Всего чеков: 65 [00:05:25]line ИТОГИ ПРИХОД [00:05:25]line Чеков: 64 [00:05:25]line Общий итог: 101369.67 [00:05:25]line Итого наличными: 27732.00 [00:05:25]line Итого безнал.: 73637.67 [00:05:25]line НДС 0% : 0.00 [00:05:25]line НДС 12% : 10765.89 [00:05:25]line НСП 0% : 0.00 [00:05:25]line НСП 1,50% : 0.00 [00:05:25]line НСП 0,50% : 0.00 [00:05:25]line НСП 5% : 0.00 [00:05:25]line НСП 3% : 0.00 [00:05:25]line НСП 2% : 0.00 [00:05:25]line НСП 1% : 897.14 [00:05:25]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:05:25]line Чеков: 1 [00:05:25]line Общий итог: 4000.00 [00:05:25]line Итого наличными: 4000.00 [00:05:25]line Итого безнал.: 0.00 [00:05:25]line НДС 0% : 0.00 [00:05:25]line НДС 12% : 424.79 [00:05:25]line НСП 0% : 0.00 [00:05:25]line НСП 1,50% : 0.00 [00:05:25]line НСП 0,50% : 0.00 [00:05:25]line НСП 5% : 0.00 [00:05:25]line НСП 3% : 0.00 [00:05:25]line НСП 2% : 0.00 [00:05:25]line НСП 1% : 35.40 [00:05:25]line ИТОГИ РАСХОД [00:05:25]line Чеков: 0 [00:05:25]line Общий итог: 0.00 [00:05:25]line Итого наличными: 0.00 [00:05:25]line Итого безнал.: 0.00 [00:05:25]line НДС 0% : 0.00 [00:05:25]line НДС 12% : 0.00 [00:05:25]line НСП 0% : 0.00 [00:05:25]line НСП 1,50% : 0.00 [00:05:25]line НСП 0,50% : 0.00 [00:05:25]line НСП 5% : 0.00 [00:05:25]line НСП 3% : 0.00 [00:05:25]line НСП 2% : 0.00 [00:05:25]line НСП 1% : 0.00 [00:05:25]line ИТОГИ ВОЗВРАТ РАСХОДА [00:05:25]line Чеков: 0 [00:05:25]line Общий итог: 0.00 [00:05:25]line Итого наличными: 0.00 [00:05:25]line Итого безнал.: 0.00 [00:05:25]line НДС 0% : 0.00 [00:05:25]line НДС 12% : 0.00 [00:05:25]line НСП 0% : 0.00 [00:05:25]line НСП 1,50% : 0.00 [00:05:25]line НСП 0,50% : 0.00 [00:05:25]line НСП 5% : 0.00 [00:05:25]line НСП 3% : 0.00 [00:05:25]line НСП 2% : 0.00 [00:05:25]line НСП 1% : 0.00 [00:05:25]line Сумма внесений: 0.00 [00:05:25]line Сумма выплат: 0.00 [00:05:25]line Нал. в кассе: 23732.00 [00:05:25]line НС Приход: 29542751.68 [00:05:25]line НС Возвр.Прихода: 2112538.00 [00:05:25]line НС Расход: 0.00 [00:05:25]line НС Возвр.Расхода: 0.00 [00:05:25]line ФД: 28792 [00:05:25]line ФМ: 0000000000963154 [00:05:25]line ФПД: 59341088504158 [00:05:25]OFD Sender: Processing packet 28792 [packets to send 8, broken 7] [00:05:25]ProducePacketName [00:05:25]name=ofd_packets/00028792 [00:05:25]OFD Sender: To server: pG, [00:05:25]CommunicateWithHost lk.salyk.kg:30040 [00:05:25]ConnectInit lk.salyk.kg [00:05:25]written 0, free lines is 4095 [00:05:25]Connected sock=10 [00:05:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 7E 05 00 00 9F E0 76 05 C0 B6 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 15 00 D0 A1 D0 B0 D1 80 D1 8B D0 B1 D0 B0 D0 B5 D0 B2 20 D0 AD 2E 20 F4 03 04 00 39 CC 19 66 0E 04 04 00 72 00 00 00 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 5E 04 04 00 41 00 00 00 57 04 04 00 43 00 00 00 AA 04 DC 04 6E 04 04 00 41 00 00 00 69 04 A3 00 6F 04 04 00 40 00 00 00 B1 04 03 00 87 AD 9A 70 04 03 00 D0 50 2A 72 04 03 00 B7 5C 70 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 6D 6D 10 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 72 5E 01 6A 04 9F 00 6F 04 04 00 01 00 00 00 B1 04 03 00 80 1A 06 70 04 03 00 80 1A 06 72 04 01 00 00 00 04 80 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 EF A5 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 D4 0D 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 Write to MH i2c: 02 01 F7 00 03 00 01 E4 00 15 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 F9 00 [00:05:26]00 Write i2c OK [00:05:26]6D MH_I2C_Read... [00:05:26]04 Read from MH i2c: 4C 01 02 [00:05:26]78 MH_I2C_Read... [00:05:26]04 04 00 00 00 00 00 79 Read from MH i2c: 04 01 8D 07 00 00 6F [00:05:26]04 MH_I2C_Read... [00:05:26]04 00 00 00 00 00 B1 04 00 00 70 04 Read from MH i2c: 00 01 07 00 00 72 E4 15 04 00 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 00 00 00 F3 00 03 38 00 0C 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 44 00 [00:05:26]EF RasterBufferAndPrint [00:05:26]03 line [00:05:26]09 line [00:05:26]00 line [00:05:26]F6 line [00:05:26]03 line [00:05:26]01 00 00 F7 03 00 00 EF 03 written 0, free lines is 3294 [00:05:26]09 00 F6 03 01 00 01 F7 03 00 00 EF MH_Cut [00:05:26]03 Write to MH i2c: 09 D1 00 01 F6 00 03 EB 15 01 D2 [00:05:26]01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 Write i2c OK [00:05:27]00 MH_I2C_Read... [00:05:27]00 Read from MH i2c: EF D1 03 [00:05:27]09 MH_I2C_Read... [00:05:27]00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 Read from MH i2c: F6 D1 03 01 01 00 00 [00:05:27]02 MH_I2C_Read... [00:05:27]F7 03 00 00 EF 03 09 00 F6 03 01 00 Read from MH i2c: 03 D1 F7 01 03 00 00 EB 00 15 EF 00 03 D1 09 [00:05:27]00 Write to MH i2c: F6 01 03 00 01 00 00 EC 04 15 F7 01 03 [00:05:27]00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 Write i2c OK [00:05:27]EF MH_I2C_Read... [00:05:27]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 78 70 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 35 *** Cut start [00:05:27]04 *** Partial cut [00:05:27]06 *** CUTSNS_PIN = 1 [00:05:27]00 35 F8 6C 80 39 5E 21 45 B5 F3 C5 9B C5 *** CUTSNS_PIN = 0 [00:05:27]E9 [00:05:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 48 0C 47 00 4B DC A5 07 01 00 07 00 3B 00 *** Brake cut motor [00:05:27]F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 78 70 00 00 F4 03 04 00 F0 76 19 66 B6 04 01 00 00 C7 98 33 A7 BE B2 02 24 [00:05:28]CommunicateWithHost err = 0 [00:05:28]CheckOFDResponse [00:05:28]1017 (14) - 77093643461234 [00:05:28]1041 (16) - 0000000000963154 [00:05:28]1040 (4) - 28792 [00:05:28]1012 (4) - 12.04.2024 18:01 [00:05:28]1206 (1) - 0 [00:05:28]OFD Sender: Remove packet 28792 [00:05:28]ProducePacketName [00:05:28]name=ofd_packets/00028792 [00:05:28]NVStorageDeleteData [00:05:28]Read from MH i2c: *** Stop cut motor [00:05:28]01 *** Cut end [00:05:28] [00:05:28]MH_I2C_Read... [00:05:28]Read from MH i2c: 01 07 00 [00:05:28]MH_I2C_Read... [00:05:28]Read from MH i2c: 01 07 00 EC 15 00 00 00 00 00 FF 0F 16 [00:05:28]process_action close_shift done [00:05:28]requested_data is exist [00:05:28]produce_requested_data [00:05:28]requested_item fd.num is exist - process it [00:05:28]SAM_PROTO_GetFieldsCounters [00:05:28]wFMCommunicate request_size=4 [00:05:28]MH_SAM_APDU [00:05:28]CAPDU: 80 13 00 00 [00:05:28]Write to MH i2c: E2 08 00 ED 15 80 13 00 00 00 00 00 00 7E [00:05:28]Write i2c OK [00:05:28]MH_I2C_Read... [00:05:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:05:28]Read from MH i2c: E2 [00:05:28]MH_I2C_Read... [00:05:28]Read from MH i2c: E2 62 00 [00:05:28]MH_I2C_Read... [00:05:28]Read from MH i2c: E2 62 00 ED 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 78 70 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 43 00 00 00 19 04 04 00 00 00 00 00 90 00 DA [00:05:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 78 70 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 43 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:05:28]wFMCommunicate OK [00:05:28]SAM_PROTO_GetFieldsCounters done [00:05:28]requested_item shift.num is exist - process it [00:05:28]requested_item shift.opened is exist - process it [00:05:28]req_shift_opened [00:05:28]FM_GetShiftState [00:05:28]SAM_PROTO_GetShiftState [00:05:28]wFMCommunicate request_size=4 [00:05:28]MH_SAM_APDU [00:05:28]OFD Sender: No OFD packet to send [00:05:28]CAPDU: 80 13 01 00 [00:05:28]Write to MH i2c: E2 08 00 EE 15 80 13 01 00 00 00 00 00 80 [00:05:28]Write i2c OK [00:05:28]MH_I2C_Read... [00:05:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:05:28]Read from MH i2c: E2 [00:05:28]MH_I2C_Read... [00:05:28]Read from MH i2c: E2 0E 00 [00:05:28]MH_I2C_Read... [00:05:28]Read from MH i2c: E2 0E 00 EE 15 00 09 00 00 00 00 00 00 00 00 00 00 90 00 8B [00:05:28]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:05:28]wFMCommunicate OK [00:05:28]SAM_PROTO_GetShiftState done [00:05:28]FM_GetShiftState done [00:05:28]req_shift_opened done [00:05:28]requested_item shift.open_date is exist - process it [00:05:28]req_shift_open_date [00:05:28]FM_GetShiftState [00:05:28]SAM_PROTO_GetShiftState [00:05:28]wFMCommunicate request_size=4 [00:05:28]MH_SAM_APDU [00:05:28]CAPDU: 80 13 01 00 [00:05:28]Write to MH i2c: E2 08 00 EF 15 80 13 01 00 00 00 00 00 81 [00:05:28]Write i2c OK [00:05:28]MH_I2C_Read... [00:05:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:05:28]Read from MH i2c: E2 [00:05:28]MH_I2C_Read... [00:05:28]Read from MH i2c: E2 0E 00 [00:05:28]MH_I2C_Read... [00:05:28]Read from MH i2c: E2 0E 00 EF 15 00 09 00 00 00 00 00 00 00 00 00 00 90 00 8C [00:05:28]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:05:28]wFMCommunicate OK [00:05:28]SAM_PROTO_GetShiftState done [00:05:28]FM_GetShiftState done [00:05:28]req_shift_open_date done [00:05:28]produce_requested_data done [00:05:28]produce_requested_data return {"fd.num":28792,"shift.num":114,"shift.opened":0,"shift.open_date":0} [00:05:28]process_action_free close_shift [00:05:28]json_value_free [00:05:28]json_value_free done [00:05:28]process_json_proto returns [00:05:28]Send response to host [00:05:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":28792,"shift.num":114,"shift.opened":0,"shift.open_date":0}}} [00:05:28]free response buf [00:05:28]execute_script done [00:05:28]execute_script returns [00:05:28]free content buf [00:05:28]Sock 9.Close socket [00:05:28]Sock 9.Thread stoped [00:05:33]OFD Sender: No OFD packet to send [00:05:38]OFD Sender: No OFD packet to send [00:05:43]OFD Sender: No OFD packet to send [00:05:48]OFD Sender: No OFD packet to send [00:05:53]OFD Sender: No OFD packet to send [00:05:58]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:29]OFD Sender: No OFD packet to send [00:11:34]OFD Sender: No OFD packet to send [00:11:39]OFD Sender: No OFD packet to send [00:11:44]OFD Sender: No OFD packet to send [00:11:49]OFD Sender: No OFD packet to send [00:11:54]OFD Sender: No OFD packet to send [00:11:59]OFD Sender: No OFD packet to send [00:12:04]OFD Sender: No OFD packet to send [00:12:09]OFD Sender: No OFD packet to send [00:12:14]OFD Sender: No OFD packet to send [00:12:19]OFD Sender: No OFD packet to send [00:12:24]OFD Sender: No OFD packet to send [00:12:29]OFD Sender: No OFD packet to send [00:12:34]OFD Sender: No OFD packet to send [00:12:39]OFD Sender: No OFD packet to send [00:12:44]OFD Sender: No OFD packet to send [00:12:49]OFD Sender: No OFD packet to send [00:12:54]OFD Sender: No OFD packet to send [00:12:59]OFD Sender: No OFD packet to send [00:13:04]OFD Sender: No OFD packet to send [00:13:09]OFD Sender: No OFD packet to send [00:13:14]OFD Sender: No OFD packet to send [00:13:19]OFD Sender: No OFD packet to send [00:13:24]OFD Sender: No OFD packet to send [00:13:29]OFD Sender: No OFD packet to send [00:13:34]OFD Sender: No OFD packet to send [00:13:39]OFD Sender: No OFD packet to send [00:13:44]OFD Sender: No OFD packet to send [00:13:49]OFD Sender: No OFD packet to send [00:13:54]OFD Sender: No OFD packet to send [00:13:59]OFD Sender: No OFD packet to send [00:14:04]OFD Sender: No OFD packet to send [00:14:09]OFD Sender: No OFD packet to send [00:14:14]OFD Sender: No OFD packet to send [00:14:19]OFD Sender: No OFD packet to send [00:14:24]OFD Sender: No OFD packet to send [00:14:29]OFD Sender: No OFD packet to send [00:14:34]OFD Sender: No OFD packet to send [00:14:39]OFD Sender: No OFD packet to send [00:14:44]OFD Sender: No OFD packet to send [00:14:49]OFD Sender: No OFD packet to send [00:14:54]OFD Sender: No OFD packet to send [00:14:59]OFD Sender: No OFD packet to send [00:15:04]OFD Sender: No OFD packet to send [00:15:09]OFD Sender: No OFD packet to send [00:15:14]OFD Sender: No OFD packet to send [00:15:19]OFD Sender: No OFD packet to send [00:15:24]OFD Sender: No OFD packet to send [00:15:29]OFD Sender: No OFD packet to send [00:15:34]OFD Sender: No OFD packet to send [00:15:39]OFD Sender: No OFD packet to send [00:15:44]OFD Sender: No OFD packet to send [00:15:49]OFD Sender: No OFD packet to send [00:15:54]OFD Sender: No OFD packet to send [00:15:59]OFD Sender: No OFD packet to send [00:16:04]OFD Sender: No OFD packet to send [00:16:09]OFD Sender: No OFD packet to send [00:16:14]OFD Sender: No OFD packet to send [00:16:19]OFD Sender: No OFD packet to send [00:16:24]OFD Sender: No OFD packet to send [00:16:29]OFD Sender: No OFD packet to send [00:16:34]OFD Sender: No OFD packet to send [00:16:39]OFD Sender: No OFD packet to send [00:16:44]OFD Sender: No OFD packet to send [00:16:49]OFD Sender: No OFD packet to send [00:16:54]OFD Sender: No OFD packet to send [00:16:59]OFD Sender: No OFD packet to send [00:17:04]OFD Sender: No OFD packet to send [00:17:09]OFD Sender: No OFD packet to send [00:17:14]OFD Sender: No OFD packet to send [00:17:19]OFD Sender: No OFD packet to send [00:17:24]OFD Sender: No OFD packet to send [00:17:29]OFD Sender: No OFD packet to send [00:17:34]OFD Sender: No OFD packet to send [00:17:39]OFD Sender: No OFD packet to send [00:17:44]OFD Sender: No OFD packet to send [00:17:49]OFD Sender: No OFD packet to send [00:17:54]OFD Sender: No OFD packet to send [00:17:59]OFD Sender: No OFD packet to send [00:18:04]OFD Sender: No OFD packet to send [00:18:09]OFD Sender: No OFD packet to send [00:18:14]OFD Sender: No OFD packet to send [00:18:19]OFD Sender: No OFD packet to send [00:18:24]OFD Sender: No OFD packet to send [00:18:29]OFD Sender: No OFD packet to send [00:18:34]OFD Sender: No OFD packet to send [00:18:39]OFD Sender: No OFD packet to send [00:18:44]OFD Sender: No OFD packet to send [00:18:49]OFD Sender: No OFD packet to send [00:18:54]OFD Sender: No OFD packet to send [00:18:59]OFD Sender: No OFD packet to send [00:19:04]OFD Sender: No OFD packet to send [00:19:09]OFD Sender: No OFD packet to send [00:19:14]OFD Sender: No OFD packet to send [00:19:19]OFD Sender: No OFD packet to send [00:19:24]OFD Sender: No OFD packet to send [00:19:29]OFD Sender: No OFD packet to send [00:19:34]OFD Sender: No OFD packet to send [00:19:39]OFD Sender: No OFD packet to send [00:19:44]OFD Sender: No OFD packet to send [00:19:49]OFD Sender: No OFD packet to send [00:19:54]OFD Sender: No OFD packet to send [00:19:59]OFD Sender: No OFD packet to send [00:20:04]OFD Sender: No OFD packet to send [00:20:09]OFD Sender: No OFD packet to send [00:20:09]accept exits with 7 [00:20:09]New connection [00:20:09]New thread 3066928484 created [00:20:09]Thread 3066785124 joined [00:20:09]Waiting for new connection... [00:20:09] Sock 7.Parse request [00:20:09]Sock 7.Check first char [00:20:09]Sock 7.First char is OK [00:20:09]request: POST /json_proto HTTP/1.0 [00:20:09]Method: POST [00:20:09]URL: /json_proto [00:20:09]Method is POST - this is cgi request [00:20:09]url: /json_proto [00:20:09]query_string will be loaded in cgi processing [00:20:09]execute_cgi json_proto POST (null) [00:20:09]execute_cgi path=json_proto method=POST [00:20:09]POST find Content-Length [00:20:09]Host: 172.17.33.3:8080 [00:20:09]Content-Length: 215 [00:20:09]Content-Type: application/json [00:20:09] [00:20:09]POST finish read [00:20:09]Found Content-Length = 215 [00:20:09]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:20:09]execute_script... [00:20:09]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:20:09]POST & json_proto [00:20:09]process_json_proto [00:20:09]json parsed OK: [00:20:09]protocol is kg_v1.0 [00:20:09]action value=get_value [00:20:09]process_action get_value [00:20:09]cmd_get_value [00:20:09]process_action get_value done [00:20:09]requested_data is exist [00:20:09]produce_requested_data [00:20:09]requested_item kkm.sn is exist - process it [00:20:09]requested_item kkm.ver is exist - process it [00:20:09]requested_item fm.sn is exist - process it [00:20:09]wFMCommunicate request_size=4 [00:20:09]MH_SAM_APDU [00:20:09]CAPDU: 80 11 00 00 [00:20:09]Write to MH i2c: E2 08 00 F0 15 80 11 00 00 00 00 00 00 7F [00:20:09]Write i2c OK [00:20:09]MH_I2C_Read... [00:20:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:20:10]Read from MH i2c: E2 [00:20:10]MH_I2C_Read... [00:20:10]Read from MH i2c: E2 17 00 [00:20:10]MH_I2C_Read... [00:20:10]Read from MH i2c: E2 17 00 F0 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 CE [00:20:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [00:20:10]wFMCommunicate OK [00:20:10]requested_item fd.num is exist - process it [00:20:10]SAM_PROTO_GetFieldsCounters [00:20:10]wFMCommunicate request_size=4 [00:20:10]MH_SAM_APDU [00:20:10]CAPDU: 80 13 00 00 [00:20:10]Write to MH i2c: E2 08 00 F1 15 80 13 00 00 00 00 00 00 82 [00:20:10]Write i2c OK [00:20:10]MH_I2C_Read... [00:20:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:20:10]Read from MH i2c: E2 [00:20:10]MH_I2C_Read... [00:20:10]Read from MH i2c: E2 62 00 [00:20:10]MH_I2C_Read... [00:20:10]Read from MH i2c: E2 62 00 F1 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 78 70 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 43 00 00 00 19 04 04 00 00 00 00 00 90 00 DE [00:20:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 78 70 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 43 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:20:10]wFMCommunicate OK [00:20:10]SAM_PROTO_GetFieldsCounters done [00:20:10]requested_item shift.num is exist - process it [00:20:10]requested_item shift.opened is exist - process it [00:20:10]req_shift_opened [00:20:10]FM_GetShiftState [00:20:10]SAM_PROTO_GetShiftState [00:20:10]wFMCommunicate request_size=4 [00:20:10]MH_SAM_APDU [00:20:10]CAPDU: 80 13 01 00 [00:20:10]Write to MH i2c: E2 08 00 F2 15 80 13 01 00 00 00 00 00 84 [00:20:10]Write i2c OK [00:20:10]MH_I2C_Read... [00:20:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:20:10]Read from MH i2c: E2 [00:20:10]MH_I2C_Read... [00:20:10]Read from MH i2c: E2 0E 00 [00:20:10]MH_I2C_Read... [00:20:10]Read from MH i2c: E2 0E 00 F2 15 00 09 00 00 00 00 00 00 00 00 00 00 90 00 8F [00:20:10]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:20:10]wFMCommunicate OK [00:20:10]SAM_PROTO_GetShiftState done [00:20:10]FM_GetShiftState done [00:20:10]req_shift_opened done [00:20:10]requested_item shift.open_date is exist - process it [00:20:10]req_shift_open_date [00:20:10]FM_GetShiftState [00:20:10]SAM_PROTO_GetShiftState [00:20:10]wFMCommunicate request_size=4 [00:20:10]MH_SAM_APDU [00:20:10]CAPDU: 80 13 01 00 [00:20:10]Write to MH i2c: E2 08 00 F3 15 80 13 01 00 00 00 00 00 85 [00:20:10]Write i2c OK [00:20:10]MH_I2C_Read... [00:20:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:20:10]Read from MH i2c: E2 [00:20:10]MH_I2C_Read... [00:20:10]Read from MH i2c: E2 0E 00 [00:20:10]MH_I2C_Read... [00:20:10]Read from MH i2c: E2 0E 00 F3 15 00 09 00 00 00 00 00 00 00 00 00 00 90 00 90 [00:20:10]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:20:10]wFMCommunicate OK [00:20:10]SAM_PROTO_GetShiftState done [00:20:10]FM_GetShiftState done [00:20:10]req_shift_open_date done [00:20:10]produce_requested_data done [00:20:10]produce_requested_data return {"kkm.sn":"0300000027","kkm.ver":"001","fm.sn":"0000000000963154","fd.num":28792,"shift.num":114,"shift.opened":0,"shift.open_date":0} [00:20:10]process_action_free get_value [00:20:10]json_value_free [00:20:10]json_value_free done [00:20:10]process_json_proto returns [00:20:10]Send response to host [00:20:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000027","kkm.ver":"001","fm.sn":"0000000000963154","fd.num":28792,"shift.num":114,"shift.opened":0,"shift.open_date":0}}} [00:20:10]free response buf [00:20:10]execute_script done [00:20:10]execute_script returns [00:20:10]free content buf [00:20:10]Sock 7.Close socket [00:20:10]Sock 7.Thread stoped [00:20:10]accept exits with 9 [00:20:10]New connection [00:20:10]New thread 3066785124 created [00:20:10]Thread 3066928484 joined [00:20:10]Waiting for new connection... [00:20:10] Sock 9.Parse request [00:20:10]Sock 9.Check first char [00:20:10]Sock 9.First char is OK [00:20:10]request: POST /json_proto HTTP/1.0 [00:20:10]Method: POST [00:20:10]URL: /json_proto [00:20:10]Method is POST - this is cgi request [00:20:10]url: /json_proto [00:20:10]query_string will be loaded in cgi processing [00:20:10]execute_cgi json_proto POST (null) [00:20:10]execute_cgi path=json_proto method=POST [00:20:10]POST find Content-Length [00:20:10]Host: 172.17.33.3:8080 [00:20:10]Content-Length: 331 [00:20:10]Content-Type: application/json [00:20:10] [00:20:10]POST finish read [00:20:10]Found Content-Length = 331 [00:20:10]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:20:10]execute_script... [00:20:10]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:20:10]POST & json_proto [00:20:10]process_json_proto [00:20:10]json parsed OK: [00:20:10]protocol is kg_v1.0 [00:20:10]action value=get_value [00:20:10]process_action get_value [00:20:10]cmd_get_value [00:20:10]process_action get_value done [00:20:10]requested_data is exist [00:20:10]produce_requested_data [00:20:10]requested_item fm.sale.total is exist - process it [00:20:10]SAM_PROTO_GetFMData [00:20:10]wFMCommunicate request_size=4 [00:20:10]MH_SAM_APDU [00:20:10]CAPDU: 80 13 03 00 [00:20:10]Write to MH i2c: E2 08 00 F4 15 80 13 03 00 00 00 00 00 88 [00:20:10]Write i2c OK [00:20:10]MH_I2C_Read... [00:20:10]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:20:11]Read from MH i2c: E2 [00:20:11]MH_I2C_Read... [00:20:11]Read from MH i2c: E2 FD 00 [00:20:11]MH_I2C_Read... [00:20:11]Read from MH i2c: E2 FD 00 F4 15 00 C3 04 85 04 BF 04 6E 04 04 00 93 6F 00 00 69 04 A1 00 6F 04 04 00 38 6C 00 00 B1 04 04 00 60 A9 16 B0 70 04 04 00 48 3A 6C 70 72 04 04 00 18 6F AA 3F 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 54 0E B4 12 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 49 F8 8E 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 9C 00 6F 04 04 00 5B 03 00 00 B1 04 04 00 28 7A 97 0C 70 04 04 00 28 7A 97 0C 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 B0 5A 56 01 EF 03 09 00 F6 90 00 1E [00:20:11]RAPDU: C3 04 85 04 BF 04 6E 04 04 00 93 6F 00 00 69 04 A1 00 6F 04 04 00 38 6C 00 00 B1 04 04 00 60 A9 16 B0 70 04 04 00 48 3A 6C 70 72 04 04 00 18 6F AA 3F 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 54 0E B4 12 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 49 F8 8E 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 9C 00 6F 04 04 00 5B 03 00 00 B1 04 04 00 28 7A 97 0C 70 04 04 00 28 7A 97 0C 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 B0 5A 56 01 EF 03 09 00 F6 90 00 [00:20:11]wFMCommunicate OK [00:20:11]wFMCommunicate request_size=4 [00:20:11]MH_SAM_APDU [00:20:11]CAPDU: 80 17 00 00 [00:20:11]Write to MH i2c: E2 08 00 F5 15 80 17 00 00 00 00 00 00 8A [00:20:11]Write i2c OK [00:20:11]MH_I2C_Read... [00:20:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:11]Read from MH i2c: E2 [00:20:11]MH_I2C_Read... [00:20:11]Read from MH i2c: E2 FD 00 [00:20:11]MH_I2C_Read... [00:20:11]Read from MH i2c: E2 FD 00 F5 15 00 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 1F 87 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 0C [00:20:11]RAPDU: 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 1F 87 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:20:11]wFMCommunicate OK [00:20:11]wFMCommunicate request_size=4 [00:20:11]MH_SAM_APDU [00:20:11]CAPDU: 80 17 00 00 [00:20:11]Write to MH i2c: E2 08 00 F6 15 80 17 00 00 00 00 00 00 8B [00:20:11]Write i2c OK [00:20:11]MH_I2C_Read... [00:20:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:11]Read from MH i2c: E2 [00:20:11]MH_I2C_Read... [00:20:11]Read from MH i2c: E2 FD 00 [00:20:11]MH_I2C_Read... [00:20:11]Read from MH i2c: E2 FD 00 F6 15 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 A9 [00:20:11]RAPDU: 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:20:11]wFMCommunicate OK [00:20:11]wFMCommunicate request_size=4 [00:20:11]MH_SAM_APDU [00:20:11]CAPDU: 80 17 00 00 [00:20:11]Write to MH i2c: E2 08 00 F7 15 80 17 00 00 00 00 00 00 8C [00:20:11]Write i2c OK [00:20:11]MH_I2C_Read... [00:20:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:11]Read from MH i2c: E2 [00:20:11]MH_I2C_Read... [00:20:11]Read from MH i2c: E2 FD 00 [00:20:11]MH_I2C_Read... [00:20:11]Read from MH i2c: E2 FD 00 F7 15 00 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 FE [00:20:11]RAPDU: 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:20:11]wFMCommunicate OK [00:20:11]wFMCommunicate request_size=4 [00:20:11]MH_SAM_APDU [00:20:11]CAPDU: 80 17 00 00 [00:20:11]Write to MH i2c: E2 08 00 F8 15 80 17 00 00 00 00 00 00 8D [00:20:11]Write i2c OK [00:20:11]MH_I2C_Read... [00:20:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 221! [00:20:12]Read from MH i2c: E2 [00:20:12]MH_I2C_Read... [00:20:12]Read from MH i2c: E2 E0 00 [00:20:12]MH_I2C_Read... [00:20:12]Read from MH i2c: E2 E0 00 F8 15 00 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 77 [00:20:12]RAPDU: 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:20:12]wFMCommunicate OK [00:20:12]SAM_PROTO_GetFMData done [00:20:12]requested_item fm.sale_refund.total is exist - process it [00:20:12]requested_item fm.buy.total is exist - process it [00:20:12]requested_item shift.sale.total is exist - process it [00:20:12]SAM_PROTO_GetShiftData [00:20:12]wFMCommunicate request_size=4 [00:20:12]MH_SAM_APDU [00:20:12]CAPDU: 80 13 02 00 [00:20:12]Write to MH i2c: E2 08 00 F9 15 80 13 02 00 00 00 00 00 8C [00:20:12]Write i2c OK [00:20:12]MH_I2C_Read... [00:20:12]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:20:12]Read from MH i2c: E2 [00:20:12]MH_I2C_Read... [00:20:12]Read from MH i2c: E2 FD 00 [00:20:12]MH_I2C_Read... [00:20:12]Read from MH i2c: E2 FD 00 F9 15 00 B9 04 AA 04 B5 04 6E 04 04 00 41 00 00 00 69 04 9C 00 6F 04 04 00 40 00 00 00 B1 04 03 00 87 AD 9A 70 04 03 00 D0 50 2A 72 04 03 00 B7 5C 70 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 6D 6D 10 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 72 5E 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 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 80 1A 06 70 04 03 00 80 1A 06 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 EF A5 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 2D [00:20:12]RAPDU: B9 04 AA 04 B5 04 6E 04 04 00 41 00 00 00 69 04 9C 00 6F 04 04 00 40 00 00 00 B1 04 03 00 87 AD 9A 70 04 03 00 D0 50 2A 72 04 03 00 B7 5C 70 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 6D 6D 10 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 72 5E 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 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 80 1A 06 70 04 03 00 80 1A 06 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 EF A5 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [00:20:12]wFMCommunicate OK [00:20:12]wFMCommunicate request_size=4 [00:20:12]MH_SAM_APDU [00:20:12]CAPDU: 80 17 00 00 [00:20:12]Write to MH i2c: E2 08 00 FA 15 80 17 00 00 00 00 00 00 8F [00:20:12]Write i2c OK [00:20:12]MH_I2C_Read... [00:20:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:12]Read from MH i2c: E2 [00:20:12]MH_I2C_Read... [00:20:12]Read from MH i2c: E2 FD 00 [00:20:12]MH_I2C_Read... [00:20:12]Read from MH i2c: E2 FD 00 FA 15 00 03 0B 00 F6 03 01 00 01 F7 03 02 00 D4 0D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 2F [00:20:12]RAPDU: 03 0B 00 F6 03 01 00 01 F7 03 02 00 D4 0D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:20:12]wFMCommunicate OK [00:20:12]wFMCommunicate request_size=4 [00:20:12]MH_SAM_APDU [00:20:12]CAPDU: 80 17 00 00 [00:20:12]Write to MH i2c: E2 08 00 FB 15 80 17 00 00 00 00 00 00 90 [00:20:12]Write i2c OK [00:20:12]MH_I2C_Read... [00:20:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:13]Read from MH i2c: E2 [00:20:13]MH_I2C_Read... [00:20:13]Read from MH i2c: E2 FD 00 [00:20:13]MH_I2C_Read... [00:20:13]Read from MH i2c: E2 FD 00 FB 15 00 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 B8 [00:20:13]RAPDU: 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:20:13]wFMCommunicate OK [00:20:13]wFMCommunicate request_size=4 [00:20:13]MH_SAM_APDU [00:20:13]CAPDU: 80 17 00 00 [00:20:13]Write to MH i2c: E2 08 00 FC 15 80 17 00 00 00 00 00 00 91 [00:20:13]Write i2c OK [00:20:13]MH_I2C_Read... [00:20:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:13]Read from MH i2c: E2 [00:20:13]MH_I2C_Read... [00:20:13]Read from MH i2c: E2 FD 00 [00:20:13]MH_I2C_Read... [00:20:13]Read from MH i2c: E2 FD 00 FC 15 00 EF 03 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 90 00 09 [00:20:13]RAPDU: EF 03 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 90 00 [00:20:13]wFMCommunicate OK [00:20:13]wFMCommunicate request_size=4 [00:20:13]MH_SAM_APDU [00:20:13]CAPDU: 80 17 00 00 [00:20:13]Write to MH i2c: E2 08 00 FD 15 80 17 00 00 00 00 00 00 92 [00:20:13]Write i2c OK [00:20:13]MH_I2C_Read... [00:20:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 211! [00:20:13]Read from MH i2c: E2 [00:20:13]MH_I2C_Read... [00:20:13]Read from MH i2c: E2 D6 00 [00:20:13]MH_I2C_Read... [00:20:13]Read from MH i2c: E2 D6 00 FD 15 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 74 [00:20:13]RAPDU: 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:20:13]wFMCommunicate OK [00:20:13]SAM_PROTO_GetShiftData done [00:20:13]requested_item shift.sale.total_cash is exist - process it [00:20:13]requested_item shift.sale_refund.total is exist - process it [00:20:13]requested_item shift.sale_refund.total_cash is exist - process it [00:20:13]requested_item shift.buy.total is exist - process it [00:20:13]requested_item shift.buy.total_cash is exist - process it [00:20:13]produce_requested_data done [00:20:13]produce_requested_data return {"fm.sale.total":29542751.68,"fm.sale_refund.total":2112538.00,"fm.buy.total":0.00,"shift.sale.total":101369.67,"shift.sale.total_cash":27732.00,"shift.sale_refund.total":4000.00,"shift.sale_refund.total_cash":4000.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:20:13]process_action_free get_value [00:20:13]json_value_free [00:20:13]json_value_free done [00:20:13]process_json_proto returns [00:20:13]Send response to host [00:20:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":29542751.68,"fm.sale_refund.total":2112538.00,"fm.buy.total":0.00,"shift.sale.total":101369.67,"shift.sale.total_cash":27732.00,"shift.sale_refund.total":4000.00,"shift.sale_refund.total_cash":4000.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:20:13]free response buf [00:20:13]execute_script done [00:20:13]execute_script returns [00:20:13]free content buf [00:20:13]Sock 9.Close socket [00:20:13]Sock 9.Thread stoped [00:20:13]accept exits with 7 [00:20:13]New connection [00:20:13]New thread 3066928484 created [00:20:13]Thread 3066785124 joined [00:20:13]Waiting for new connection... [00:20:13] Sock 7.Parse request [00:20:13]Sock 7.Check first char [00:20:13]Sock 7.First char is OK [00:20:13]request: POST /json_proto HTTP/1.0 [00:20:13]Method: POST [00:20:13]URL: /json_proto [00:20:13]Method is POST - this is cgi request [00:20:13]url: /json_proto [00:20:13]query_string will be loaded in cgi processing [00:20:13]execute_cgi json_proto POST (null) [00:20:13]execute_cgi path=json_proto method=POST [00:20:13]POST find Content-Length [00:20:13]Host: 172.17.33.3:8080 [00:20:13]Content-Length: 271 [00:20:13]Content-Type: application/json [00:20:13] [00:20:13]POST finish read [00:20:13]Found Content-Length = 271 [00:20:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:20:13]execute_script... [00:20:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:20:13]POST & json_proto [00:20:13]process_json_proto [00:20:13]json parsed OK: [00:20:13]protocol is kg_v1.0 [00:20:13]action value=open_shift [00:20:13]process_action open_shift [00:20:13]cmd_open_shift [00:20:13]MH_GetDate [00:20:13]Write to MH i2c: F0 00 00 FE 15 02 [00:20:13]Write i2c OK [00:20:13]MH_I2C_Read... [00:20:13]Read from MH i2c: F0 [00:20:13]MH_I2C_Read... [00:20:13]Read from MH i2c: F0 09 00 [00:20:13]MH_I2C_Read... [00:20:13]Read from MH i2c: F0 09 00 FE 15 00 BF CF 19 66 23 5B 8F 65 8A [00:20:13]GetLastDocTimeStamp 1712966713 [00:20:13]current date 1712967615 [00:20:13]FM_GetShiftState [00:20:13]SAM_PROTO_GetShiftState [00:20:13]wFMCommunicate request_size=4 [00:20:13]MH_SAM_APDU [00:20:13]CAPDU: 80 13 01 00 [00:20:13]Write to MH i2c: E2 08 00 FF 15 80 13 01 00 00 00 00 00 91 [00:20:13]Write i2c OK [00:20:13]MH_I2C_Read... [00:20:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:20:13]Read from MH i2c: E2 [00:20:13]MH_I2C_Read... [00:20:13]Read from MH i2c: E2 0E 00 [00:20:13]MH_I2C_Read... [00:20:13]Read from MH i2c: E2 0E 00 FF 15 00 09 00 00 00 00 00 00 00 00 00 00 90 00 9C [00:20:13]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:20:13]wFMCommunicate OK [00:20:13]SAM_PROTO_GetShiftState done [00:20:13]FM_GetShiftState done [00:20:13]KKMCreateOpenShiftDocument [00:20:13]Load OK [00:20:13]Malloc new data [00:20:13]MH_GetDate [00:20:13]Write to MH i2c: F0 00 00 00 16 05 [00:20:13]Write i2c OK [00:20:13]MH_I2C_Read... [00:20:13]Read from MH i2c: F0 [00:20:13]MH_I2C_Read... [00:20:13]Read from MH i2c: F0 09 00 [00:20:13]MH_I2C_Read... [00:20:13]Read from MH i2c: F0 09 00 00 16 00 BF CF 19 66 23 5B 8F 65 8D [00:20:13]Malloc new data [00:20:13]KKMCreateOpenShiftDocument OK [00:20:13]KKMSetOpenShiftData OK [00:20:13]ProcessDocumentItem done err = 0, tmpTLVsize=203 [00:20:13]tlvbuf is 011E8230 [00:20:13]KKMLoadAndSignOpenShiftData [00:20:13]SAM_PROTO_ProcessDocument [00:20:13]wFMCommunicate request_size=9 [00:20:13]MH_SAM_APDU [00:20:13]CAPDU: 80 15 01 00 04 02 00 CB 00 [00:20:13]Write to MH i2c: E2 0C 00 01 16 80 15 01 00 04 00 02 00 CB 00 00 00 6B [00:20:13]Write i2c OK [00:20:13]MH_I2C_Read... [00:20:13]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:20:13]Read from MH i2c: E2 [00:20:13]MH_I2C_Read... [00:20:13]Read from MH i2c: E2 03 00 [00:20:13]MH_I2C_Read... [00:20:13]Read from MH i2c: E2 03 00 01 16 00 90 00 8B [00:20:13]RAPDU: 90 00 [00:20:13]wFMCommunicate OK [00:20:13]wFMCommunicate request_size=23 [00:20:13]MH_SAM_APDU [00:20:13]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:20:13]Write to MH i2c: E2 1A 00 02 16 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 8D [00:20:13]Write i2c OK [00:20:13]MH_I2C_Read... [00:20:13]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:20:14]Read from MH i2c: E2 [00:20:14]MH_I2C_Read... [00:20:14]Read from MH i2c: E2 03 00 [00:20:14]MH_I2C_Read... [00:20:14]Read from MH i2c: E2 03 00 02 16 00 90 00 8C [00:20:14]RAPDU: 90 00 [00:20:14]wFMCommunicate OK [00:20:14]wFMCommunicate request_size=34 [00:20:14]MH_SAM_APDU [00:20:14]CAPDU: 80 15 02 00 1D FD 03 19 00 D0 A8 D0 B0 D0 B4 D1 8B D0 BA D0 B0 D0 BD D0 BE D0 B2 D0 B0 20 D0 96 2E 20 [00:20:14]Write to MH i2c: E2 25 00 03 16 80 15 02 00 1D 00 FD 03 19 00 D0 A8 D0 B0 D0 B4 D1 8B D0 BA D0 B0 D0 BD D0 BE D0 B2 D0 B0 20 D0 96 2E 20 00 00 BF [00:20:14]Write i2c OK [00:20:14]MH_I2C_Read... [00:20:14]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:20:14]Read from MH i2c: E2 [00:20:14]MH_I2C_Read... [00:20:14]Read from MH i2c: E2 03 00 [00:20:14]MH_I2C_Read... [00:20:14]Read from MH i2c: E2 03 00 03 16 00 90 00 8D [00:20:14]RAPDU: 90 00 [00:20:14]wFMCommunicate OK [00:20:14]wFMCommunicate request_size=87 [00:20:14]MH_SAM_APDU [00:20:14]CAPDU: 80 15 02 00 52 F1 03 4E 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A0 D0 BE D0 BC D0 B0 D0 BD D0 BE D0 B2 D0 BA D0 B0 2C 20 D1 83 D0 BB 2E 20 D0 A4 D1 80 D1 83 D0 BD D0 B7 D0 B5 20 38 31 20 D0 90 2C 20 34 32 2E 38 36 33 30 37 39 2C 20 37 34 2E 33 31 38 38 35 34 [00:20:14]Write to MH i2c: E2 5A 00 04 16 80 15 02 00 52 00 F1 03 4E 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A0 D0 BE D0 BC D0 B0 D0 BD D0 BE D0 B2 D0 BA D0 B0 2C 20 D1 83 D0 BB 2E 20 D0 A4 D1 80 D1 83 D0 BD D0 B7 D0 B5 20 38 31 20 D0 90 2C 20 34 32 2E 38 36 33 30 37 39 2C 20 37 34 2E 33 31 38 38 35 34 00 00 BE [00:20:14]Write i2c OK [00:20:14]MH_I2C_Read... [00:20:14]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:20:14]Read from MH i2c: E2 [00:20:14]MH_I2C_Read... [00:20:14]Read from MH i2c: E2 03 00 [00:20:14]MH_I2C_Read... [00:20:14]Read from MH i2c: E2 03 00 04 16 00 90 00 8E [00:20:14]RAPDU: 90 00 [00:20:14]wFMCommunicate OK [00:20:14]wFMCommunicate request_size=51 [00:20:14]MH_SAM_APDU [00:20:14]CAPDU: 80 15 02 00 2E A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 30 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:20:14]Write to MH i2c: E2 36 00 05 16 80 15 02 00 2E 00 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 30 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 46 [00:20:14]Write i2c OK [00:20:14]MH_I2C_Read... [00:20:14]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:20:14]Read from MH i2c: E2 [00:20:14]MH_I2C_Read... [00:20:14]Read from MH i2c: E2 03 00 [00:20:14]MH_I2C_Read... [00:20:14]Read from MH i2c: E2 03 00 05 16 00 90 00 8F [00:20:14]RAPDU: 90 00 [00:20:14]wFMCommunicate OK [00:20:14]wFMCommunicate request_size=13 [00:20:14]MH_SAM_APDU [00:20:14]CAPDU: 80 15 02 00 08 F4 03 04 00 BF CF 19 66 [00:20:14]Write to MH i2c: E2 10 00 06 16 80 15 02 00 08 00 F4 03 04 00 BF CF 19 66 00 00 B4 [00:20:14]Write i2c OK [00:20:14]MH_I2C_Read... [00:20:14]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:20:14]Read from MH i2c: E2 [00:20:14]MH_I2C_Read... [00:20:14]Read from MH i2c: E2 03 00 [00:20:14]MH_I2C_Read... [00:20:14]Read from MH i2c: E2 03 00 06 16 00 90 00 90 [00:20:14]RAPDU: 90 00 [00:20:14]wFMCommunicate OK [00:20:14]wFMCommunicate request_size=25 [00:20:14]MH_SAM_APDU [00:20:14]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 [00:20:14]Write to MH i2c: E2 1C 00 07 16 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 00 00 20 [00:20:14]Write i2c OK [00:20:14]MH_I2C_Read... [00:20:14]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:20:14]Read from MH i2c: E2 [00:20:14]MH_I2C_Read... [00:20:14]Read from MH i2c: E2 03 00 [00:20:14]MH_I2C_Read... [00:20:14]Read from MH i2c: E2 03 00 07 16 00 90 00 91 [00:20:14]RAPDU: 90 00 [00:20:14]wFMCommunicate OK [00:20:14]wFMCommunicate request_size=4 [00:20:14]MH_SAM_APDU [00:20:14]CAPDU: 80 15 03 00 [00:20:14]Write to MH i2c: E2 08 00 08 16 80 15 03 00 00 00 00 00 9F [00:20:14]Write i2c OK [00:20:14]MH_I2C_Read... [00:20:14]OFD Sender: No OFD packet to send [00:20:14]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [00:20:14]Read from MH i2c: E2 [00:20:14]MH_I2C_Read... [00:20:14]Read from MH i2c: E2 38 00 [00:20:14]MH_I2C_Read... [00:20:14]Read from MH i2c: E2 38 00 08 16 00 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 79 70 00 00 0E 04 04 00 73 00 00 00 35 04 06 00 67 0B 8A 78 FC 2F 90 00 62 [00:20:14]RAPDU: 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 79 70 00 00 0E 04 04 00 73 00 00 00 35 04 06 00 67 0B 8A 78 FC 2F 90 00 [00:20:14]wFMCommunicate OK [00:20:14]SAM_PROTO_ProcessDocument answer len = 51 [00:20:14]SAM_PROTO_ProcessDocument done [00:20:14]SetTLVBufToDocument [00:20:14]Processing tag 1209 (04B9) [00:20:14]Malloc new data [00:20:14]Processing tag 1041 (0411) [00:20:14]Processing tag 1040 (0410) [00:20:14]Malloc new data [00:20:14]Processing tag 1038 (040E) [00:20:14]Malloc new data [00:20:14]Processing tag 1077 (0435) [00:20:14]Malloc new data [00:20:14]SetTLVBufToDocument err=0 [00:20:14]KKMLoadAndSignOpenShiftData store KKM data [00:20:14]KKMLoadAndSignOpenShiftData err=0 [00:20:14]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Шадыканова Ж. Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 Место: АЗС № 108 "Партнер Нефть" 13.04.2024 00:20 Смена: 115 РНМ: 0000138879044617 ЗНМ: 0300000027 ФД: 28793 ФМ: 0000000000963154 ФПД: 113299265485871 [00:20:14]StoreToDocumentArchive [00:20:14]shift 115 fd 28793 [00:20:14]Create dir for shift 0115 [00:20:14]save to /storage/0115/doc_00028793 [00:20:14]save last doc name /storage/0115/doc_00028793 to /storage/kkm_last_doc_name [00:20:14]save OK [00:20:14]Clear old archive folders... [00:20:14]Remove dir /storage/0114 [00:20:14]opendir ok [00:20:14]file . [00:20:14]file .. [00:20:14]file doc_00028726 [00:20:14]remove file /storage/0114/doc_00028726 [00:20:14]file doc_00028727 [00:20:14]remove file /storage/0114/doc_00028727 [00:20:14]file doc_00028728 [00:20:14]remove file /storage/0114/doc_00028728 [00:20:14]file doc_00028729 [00:20:14]remove file /storage/0114/doc_00028729 [00:20:14]file doc_00028730 [00:20:14]remove file /storage/0114/doc_00028730 [00:20:14]file doc_00028731 [00:20:14]remove file /storage/0114/doc_00028731 [00:20:14]file doc_00028732 [00:20:14]remove file /storage/0114/doc_00028732 [00:20:14]file doc_00028733 [00:20:14]remove file /storage/0114/doc_00028733 [00:20:14]file doc_00028734 [00:20:14]remove file /storage/0114/doc_00028734 [00:20:14]file doc_00028735 [00:20:14]remove file /storage/0114/doc_00028735 [00:20:14]file doc_00028736 [00:20:14]remove file /storage/0114/doc_00028736 [00:20:14]file doc_00028737 [00:20:14]remove file /storage/0114/doc_00028737 [00:20:14]file doc_00028738 [00:20:14]remove file /storage/0114/doc_00028738 [00:20:14]file doc_00028739 [00:20:14]remove file /storage/0114/doc_00028739 [00:20:14]file doc_00028740 [00:20:14]remove file /storage/0114/doc_00028740 [00:20:14]file doc_00028741 [00:20:14]remove file /storage/0114/doc_00028741 [00:20:14]file doc_00028742 [00:20:14]remove file /storage/0114/doc_00028742 [00:20:14]file doc_00028743 [00:20:14]remove file /storage/0114/doc_00028743 [00:20:14]file doc_00028744 [00:20:14]remove file /storage/0114/doc_00028744 [00:20:14]file doc_00028745 [00:20:14]remove file /storage/0114/doc_00028745 [00:20:14]file doc_00028746 [00:20:14]remove file /storage/0114/doc_00028746 [00:20:14]file doc_00028747 [00:20:14]remove file /storage/0114/doc_00028747 [00:20:14]file doc_00028748 [00:20:14]remove file /storage/0114/doc_00028748 [00:20:14]file doc_00028749 [00:20:14]remove file /storage/0114/doc_00028749 [00:20:14]file doc_00028750 [00:20:14]remove file /storage/0114/doc_00028750 [00:20:14]file doc_00028751 [00:20:14]remove file /storage/0114/doc_00028751 [00:20:14]file doc_00028752 [00:20:14]remove file /storage/0114/doc_00028752 [00:20:14]file doc_00028753 [00:20:14]remove file /storage/0114/doc_00028753 [00:20:14]file doc_00028754 [00:20:14]remove file /storage/0114/doc_00028754 [00:20:14]file doc_00028755 [00:20:14]remove file /storage/0114/doc_00028755 [00:20:14]file doc_00028756 [00:20:14]remove file /storage/0114/doc_00028756 [00:20:14]file doc_00028757 [00:20:14]remove file /storage/0114/doc_00028757 [00:20:14]file doc_00028758 [00:20:14]remove file /storage/0114/doc_00028758 [00:20:14]file doc_00028759 [00:20:14]remove file /storage/0114/doc_00028759 [00:20:14]file doc_00028760 [00:20:14]remove file /storage/0114/doc_00028760 [00:20:14]file doc_00028761 [00:20:14]remove file /storage/0114/doc_00028761 [00:20:14]file doc_00028762 [00:20:14]remove file /storage/0114/doc_00028762 [00:20:14]file doc_00028763 [00:20:14]remove file /storage/0114/doc_00028763 [00:20:14]file doc_00028764 [00:20:14]remove file /storage/0114/doc_00028764 [00:20:14]file doc_00028765 [00:20:14]remove file /storage/0114/doc_00028765 [00:20:14]file doc_00028766 [00:20:14]remove file /storage/0114/doc_00028766 [00:20:14]file doc_00028767 [00:20:14]remove file /storage/0114/doc_00028767 [00:20:14]file doc_00028768 [00:20:14]remove file /storage/0114/doc_00028768 [00:20:14]file doc_00028769 [00:20:14]remove file /storage/0114/doc_00028769 [00:20:14]file doc_00028770 [00:20:14]remove file /storage/0114/doc_00028770 [00:20:14]file doc_00028771 [00:20:14]remove file /storage/0114/doc_00028771 [00:20:14]file doc_00028772 [00:20:14]remove file /storage/0114/doc_00028772 [00:20:14]file doc_00028773 [00:20:14]remove file /storage/0114/doc_00028773 [00:20:14]file doc_00028774 [00:20:14]remove file /storage/0114/doc_00028774 [00:20:14]file doc_00028775 [00:20:14]remove file /storage/0114/doc_00028775 [00:20:14]file doc_00028776 [00:20:14]remove file /storage/0114/doc_00028776 [00:20:14]file doc_00028777 [00:20:14]remove file /storage/0114/doc_00028777 [00:20:14]file doc_00028778 [00:20:14]remove file /storage/0114/doc_00028778 [00:20:14]file doc_00028779 [00:20:14]remove file /storage/0114/doc_00028779 [00:20:14]file doc_00028780 [00:20:14]remove file /storage/0114/doc_00028780 [00:20:14]file doc_00028781 [00:20:14]remove file /storage/0114/doc_00028781 [00:20:14]file doc_00028782 [00:20:14]remove file /storage/0114/doc_00028782 [00:20:14]file doc_00028783 [00:20:14]remove file /storage/0114/doc_00028783 [00:20:14]file doc_00028784 [00:20:14]remove file /storage/0114/doc_00028784 [00:20:14]file doc_00028785 [00:20:14]remove file /storage/0114/doc_00028785 [00:20:14]file doc_00028786 [00:20:14]remove file /storage/0114/doc_00028786 [00:20:15]file doc_00028787 [00:20:15]remove file /storage/0114/doc_00028787 [00:20:15]file doc_00028788 [00:20:15]remove file /storage/0114/doc_00028788 [00:20:15]file doc_00028789 [00:20:15]remove file /storage/0114/doc_00028789 [00:20:15]file doc_00028790 [00:20:15]remove file /storage/0114/doc_00028790 [00:20:15]file doc_00028791 [00:20:15]remove file /storage/0114/doc_00028791 [00:20:15]file doc_00028792 [00:20:15]remove file /storage/0114/doc_00028792 [00:20:15]remove dir /storage/0114 [00:20:15]ProcessDocumentItem done err = 0, tmpTLVsize=254 [00:20:15]tlvbuf is 01331450 [00:20:15]SAM_PROTO_ClearQueue [00:20:15]wFMCommunicate request_size=4 [00:20:15]MH_SAM_APDU [00:20:15]CAPDU: 80 09 00 00 [00:20:15]Write to MH i2c: E2 08 00 09 16 80 09 00 00 00 00 00 00 91 [00:20:15]Write i2c OK [00:20:15]MH_I2C_Read... [00:20:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:20:15]Read from MH i2c: E2 [00:20:15]MH_I2C_Read... [00:20:15]Read from MH i2c: E2 03 00 [00:20:15]MH_I2C_Read... [00:20:15]Read from MH i2c: E2 03 00 09 16 00 90 00 93 [00:20:15]RAPDU: 90 00 [00:20:15]wFMCommunicate OK [00:20:15]SAM_PROTO_ClearQueue done [00:20:15]KKMCreateOFDPacket [00:20:15]OFDProtocolAddRootSTLVToBuf [00:20:15]FM_MakeSignedData [00:20:15]FM_MakeSignedData [00:20:15]SAM_PROTO_SignData [00:20:15]wFMCommunicate request_size=4 [00:20:15]MH_SAM_APDU [00:20:15]CAPDU: 80 0D 01 02 [00:20:15]Write to MH i2c: E2 08 00 0A 16 80 0D 01 02 00 00 00 00 99 [00:20:15]Write i2c OK [00:20:15]MH_I2C_Read... [00:20:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:20:15]Read from MH i2c: E2 [00:20:15]MH_I2C_Read... [00:20:15]Read from MH i2c: E2 03 00 [00:20:15]MH_I2C_Read... [00:20:15]Read from MH i2c: E2 03 00 0A 16 00 90 00 94 [00:20:15]RAPDU: 90 00 [00:20:15]wFMCommunicate OK [00:20:15]wFMCommunicate request_size=255 [00:20:15]MH_SAM_APDU [00:20:15]CAPDU: 80 0D 02 02 FA 02 00 FE 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 A8 D0 B0 D0 B4 D1 8B D0 BA D0 B0 D0 BD D0 BE D0 B2 D0 B0 20 D0 96 2E 20 F1 03 4E 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A0 D0 BE D0 BC D0 B0 D0 BD D0 BE D0 B2 D0 BA D0 B0 2C 20 D1 83 D0 BB 2E 20 D0 A4 D1 80 D1 83 D0 BD D0 B7 D0 B5 20 38 31 20 D0 90 2C 20 34 32 2E 38 36 33 30 37 39 2C 20 37 34 2E 33 31 38 38 35 34 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 30 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 BF CF 19 66 0E 04 04 00 73 00 00 00 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 79 70 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 35 04 [00:20:15]Write to MH i2c: E2 02 01 0B 16 80 0D 02 02 FA 00 02 00 FE 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 A8 D0 B0 D0 B4 D1 8B D0 BA D0 B0 D0 BD D0 BE D0 B2 D0 B0 20 D0 96 2E 20 F1 03 4E 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A0 D0 BE D0 BC D0 B0 D0 BD D0 BE D0 B2 D0 BA D0 B0 2C 20 D1 83 D0 BB 2E 20 D0 A4 D1 80 D1 83 D0 BD D0 B7 D0 B5 20 38 31 20 D0 90 2C 20 34 32 2E 38 36 33 30 37 39 2C 20 37 34 2E 33 31 38 38 35 34 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 30 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 BF CF 19 66 0E 04 04 00 73 00 00 00 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 79 70 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 35 04 00 00 42 [00:20:15]Write i2c OK [00:20:15]MH_I2C_Read... [00:20:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:20:15]Read from MH i2c: E2 [00:20:15]MH_I2C_Read... [00:20:15]Read from MH i2c: E2 03 00 [00:20:15]MH_I2C_Read... [00:20:15]Read from MH i2c: E2 03 00 0B 16 00 90 00 95 [00:20:15]RAPDU: 90 00 [00:20:15]wFMCommunicate OK [00:20:15]wFMCommunicate request_size=13 [00:20:15]MH_SAM_APDU [00:20:15]CAPDU: 80 0D 02 02 08 06 00 67 0B 8A 78 FC 2F [00:20:15]Write to MH i2c: E2 10 00 0C 16 80 0D 02 02 08 00 06 00 67 0B 8A 78 FC 2F 00 00 51 [00:20:15]Write i2c OK [00:20:15]MH_I2C_Read... [00:20:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:20:15]Read from MH i2c: E2 [00:20:15]MH_I2C_Read... [00:20:15]Read from MH i2c: E2 03 00 [00:20:15]MH_I2C_Read... [00:20:15]Read from MH i2c: E2 03 00 0C 16 00 90 00 96 [00:20:15]RAPDU: 90 00 [00:20:15]wFMCommunicate OK [00:20:15]wFMCommunicate request_size=4 [00:20:15]MH_SAM_APDU [00:20:15]CAPDU: 80 0D 03 02 [00:20:15]Write to MH i2c: E2 08 00 0D 16 80 0D 03 02 00 00 00 00 9E [00:20:15]Write i2c OK [00:20:15]MH_I2C_Read... [00:20:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:20:15]Read from MH i2c: E2 [00:20:15]MH_I2C_Read... [00:20:15]Read from MH i2c: E2 0B 00 [00:20:15]MH_I2C_Read... [00:20:15]Read from MH i2c: E2 0B 00 0D 16 00 53 A8 CB 63 F0 0A 2C 96 90 00 84 [00:20:15]RAPDU: 53 A8 CB 63 F0 0A 2C 96 90 00 [00:20:15]wFMCommunicate OK [00:20:15]SAM_PROTO_SignData done [00:20:15]FM_MakeSignedData done [00:20:15]CreateOFDProtocolMessage [00:20:15]wFMCommunicate request_size=4 [00:20:15]MH_SAM_APDU [00:20:15]CAPDU: 80 11 00 00 [00:20:15]Write to MH i2c: E2 08 00 0E 16 80 11 00 00 00 00 00 00 9E [00:20:15]Write i2c OK [00:20:15]MH_I2C_Read... [00:20:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:20:15]Read from MH i2c: E2 [00:20:15]MH_I2C_Read... [00:20:15]Read from MH i2c: E2 17 00 [00:20:15]MH_I2C_Read... [00:20:15]Read from MH i2c: E2 17 00 0E 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 ED [00:20:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [00:20:15]wFMCommunicate OK [00:20:15]CreateOFDProtocolMessage done [00:20:15]OFDSenderStorePacket 28793 [00:20:15]StoreOFDPacket docnum=28793 [00:20:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 12 01 00 00 47 1D 0A 01 CE 24 5A 02 01 00 02 00 FE 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 A8 D0 B0 D0 B4 D1 8B D0 BA D0 B0 D0 BD D0 BE D0 B2 D0 B0 20 D0 96 2E 20 F1 03 4E 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A0 D0 BE D0 BC D0 B0 D0 BD D0 BE D0 B2 D0 BA D0 B0 2C 20 D1 83 D0 BB 2E 20 D0 A4 D1 80 D1 83 D0 BD D0 B7 D0 B5 20 38 31 20 D0 90 2C 20 34 32 2E 38 36 33 30 37 39 2C 20 37 34 2E 33 31 38 38 35 34 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 30 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 BF CF 19 66 0E 04 04 00 73 00 00 00 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 79 70 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 35 04 06 00 67 0B 8A 78 FC 2F 53 A8 CB 63 F0 0A 2C 96 [00:20:15]CheckFolder [00:20:15]dirname=/storage/ofd_packets [00:20:15]CheckFolder done [00:20:15]ProducePacketName [00:20:15]name=ofd_packets/00028793 [00:20:15]NVStorageSaveData ofd_packets/00028793 [00:20:15]File name is /storage/ofd_packets/00028793 [00:20:15]Write 304 bytes [00:20:15]NVStorageSaveData done [00:20:15]OFDSenderStorePacket done [00:20:15]KKMCreateOFDPacket done [00:20:15]NVStorageSaveData kkm_last_timestamp [00:20:15]File name is /storage/kkm_last_timestamp [00:20:15]Write 4 bytes [00:20:15]NVStorageSaveData done [00:20:15]ExternCall_PrintAddStr [00:20:15]wPrintStart [00:20:15]Write to MH i2c: 01 00 00 0F 16 25 [00:20:15]Write i2c OK [00:20:15]MH_I2C_Read... [00:20:15]Read from MH i2c: 01 [00:20:15]MH_I2C_Read... [00:20:15]Read from MH i2c: 01 07 00 [00:20:15]MH_I2C_Read... [00:20:15]Read from MH i2c: 01 07 00 0F 16 00 00 00 00 00 FF 0F 3A [00:20:15]RasterBufferAndPrint [00:20:15]line Отчет об открытии смены [00:20:15]line ФФД: 1.0 [00:20:15]line ИНН: 02508201610067 [00:20:15]line Кассир: Шадыканова Ж. [00:20:15]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [00:20:15]line Место: АЗС № 108 "Партнер Нефть" [00:20:15]line 13.04.2024 00:20 [00:20:15]line Смена: 115 [00:20:15]line РНМ: 0000138879044617 [00:20:15]line ЗНМ: 0300000027 [00:20:15]line ФД: 28793 [00:20:15]line ФМ: 0000000000963154 [00:20:15]line ФПД: 113299265485871 [00:20:15]written 0, free lines is 4095 [00:20:15]OFD Sender: Processing packet 28793 [packets to send 8, broken 7] [00:20:15]ProducePacketName [00:20:15]name=ofd_packets/00028793 [00:20:15]OFD Sender: To server: pG, [00:20:15]CommunicateWithHost lk.salyk.kg:30040 [00:20:15]ConnectInit lk.salyk.kg [00:20:15]Connected sock=10 [00:20:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 12 01 00 00 47 1D 0A 01 CE 24 5A 02 01 00 02 00 FE 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 A8 D0 B0 D0 B4 D1 8B D0 BA D0 B0 D0 BD D0 BE D0 B2 D0 B0 20 D0 96 2E 20 F1 03 4E 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A0 D0 BE D0 BC D0 B0 D0 BD D0 BE D0 B2 D0 BA D0 B0 2C 20 D1 83 D0 BB 2E 20 D0 A4 D1 80 D1 83 D0 BD D0 B7 D0 B5 20 38 31 20 D0 90 2C 20 34 32 2E 38 36 33 30 37 39 2C 20 37 34 2E 33 31 38 38 35 34 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 30 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 BF CF 19 66 0E 04 04 00 73 00 00 00 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 79 70 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 35 04 06 00 67 0B 8A 78 FC 2F 53 A8 CB 63 F0 0A 2C 96 [00:20:16]Write to MH i2c: 01 00 00 21 16 37 [00:20:16]Write i2c OK [00:20:16]MH_I2C_Read... [00:20:16]Read from MH i2c: 01 [00:20:16]MH_I2C_Read... [00:20:16]Read from MH i2c: 01 07 00 [00:20:16]MH_I2C_Read... [00:20:16]Read from MH i2c: 01 07 00 21 16 00 00 00 00 00 57 0E A3 [00:20:16]RasterBufferAndPrint [00:20:16]line [00:20:16]line [00:20:16]line [00:20:16]line [00:20:16]line [00:20:16]written 0, free lines is 3683 [00:20:16]MH_Cut [00:20:16]Write to MH i2c: D1 01 00 28 16 01 10 [00:20:16]Write i2c OK [00:20:16]MH_I2C_Read... [00:20:16]Read from MH i2c: D1 [00:20:16]MH_I2C_Read... [00:20:16]Read from MH i2c: D1 01 00 [00:20:16]MH_I2C_Read... [00:20:16]Read from MH i2c: D1 01 00 28 16 00 0F [00:20:16]Write to MH i2c: 01 00 00 29 16 3F [00:20:16]Write i2c OK [00:20:16]MH_I2C_Read... [00:20:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 F3 90 47 00 FC CA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 79 70 00 00 F4 03 04 00 68 7A 19 66 B6 04 01 00 00 A7 DF 7D 9C 3A 72 70 95 [00:20:16]CommunicateWithHost err = 0 [00:20:16]CheckOFDResponse [00:20:16]1017 (14) - 77093643461234 [00:20:16]1041 (16) - 0000000000963154 [00:20:16]1040 (4) - 28793 [00:20:16]1012 (4) - 12.04.2024 18:16 [00:20:16]1206 (1) - 0 [00:20:16]OFD Sender: Remove packet 28793 [00:20:16]ProducePacketName [00:20:16]name=ofd_packets/00028793 [00:20:16]NVStorageDeleteData [00:20:16]*** Cut start [00:20:16]*** Partial cut [00:20:16]*** CUTSNS_PIN = 1 [00:20:16]*** CUTSNS_PIN = 0 [00:20:16]OFD Sender: No OFD packet to send [00:20:16]*** Brake cut motor [00:20:17]Read from MH i2c: 01 [00:20:17]MH_I2C_Read... [00:20:17]*** Stop cut motor [00:20:17]*** Cut end [00:20:17]Read from MH i2c: 01 07 00 [00:20:17]MH_I2C_Read... [00:20:17]Read from MH i2c: 01 07 00 29 16 00 00 00 00 00 FF 0F 54 [00:20:17]process_action open_shift done [00:20:17]requested_data is exist [00:20:17]produce_requested_data [00:20:17]requested_item fd.num is exist - process it [00:20:17]SAM_PROTO_GetFieldsCounters [00:20:17]wFMCommunicate request_size=4 [00:20:17]MH_SAM_APDU [00:20:17]CAPDU: 80 13 00 00 [00:20:17]Write to MH i2c: E2 08 00 2A 16 80 13 00 00 00 00 00 00 BC [00:20:17]Write i2c OK [00:20:17]MH_I2C_Read... [00:20:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:20:17]Read from MH i2c: E2 [00:20:17]MH_I2C_Read... [00:20:17]Read from MH i2c: E2 62 00 [00:20:17]MH_I2C_Read... [00:20:17]Read from MH i2c: E2 62 00 2A 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 79 70 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 56 [00:20:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 79 70 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:20:17]wFMCommunicate OK [00:20:17]SAM_PROTO_GetFieldsCounters done [00:20:17]requested_item shift.num is exist - process it [00:20:17]requested_item shift.opened is exist - process it [00:20:17]req_shift_opened [00:20:17]FM_GetShiftState [00:20:17]SAM_PROTO_GetShiftState [00:20:17]wFMCommunicate request_size=4 [00:20:17]MH_SAM_APDU [00:20:17]CAPDU: 80 13 01 00 [00:20:17]Write to MH i2c: E2 08 00 2B 16 80 13 01 00 00 00 00 00 BE [00:20:17]Write i2c OK [00:20:17]MH_I2C_Read... [00:20:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:20:17]Read from MH i2c: E2 [00:20:17]MH_I2C_Read... [00:20:17]Read from MH i2c: E2 0E 00 [00:20:17]MH_I2C_Read... [00:20:17]Read from MH i2c: E2 0E 00 2B 16 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 D7 [00:20:17]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [00:20:17]wFMCommunicate OK [00:20:17]SAM_PROTO_GetShiftState done [00:20:17]FM_GetShiftState done [00:20:17]req_shift_opened done [00:20:17]requested_item shift.open_date is exist - process it [00:20:17]req_shift_open_date [00:20:17]req_shift_open_date done [00:20:17]produce_requested_data done [00:20:17]produce_requested_data return {"fd.num":28793,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [00:20:17]process_action_free open_shift [00:20:17]json_value_free [00:20:17]json_value_free done [00:20:17]process_json_proto returns [00:20:17]Send response to host [00:20:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":28793,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [00:20:17]free response buf [00:20:17]execute_script done [00:20:17]execute_script returns [00:20:17]free content buf [00:20:17]Sock 7.Close socket [00:20:17]Sock 7.Thread stoped [00:20:17]accept exits with 9 [00:20:17]New connection [00:20:17]New thread 3066785124 created [00:20:17]Thread 3066928484 joined [00:20:17]Waiting for new connection... [00:20:17] Sock 9.Parse request [00:20:17]Sock 9.Check first char [00:20:17]Sock 9.First char is OK [00:20:17]request: POST /json_proto HTTP/1.0 [00:20:17]Method: POST [00:20:17]URL: /json_proto [00:20:17]Method is POST - this is cgi request [00:20:17]url: /json_proto [00:20:17]query_string will be loaded in cgi processing [00:20:17]execute_cgi json_proto POST (null) [00:20:17]execute_cgi path=json_proto method=POST [00:20:17]POST find Content-Length [00:20:17]Host: 172.17.33.3:8080 [00:20:17]Content-Length: 331 [00:20:17]Content-Type: application/json [00:20:17] [00:20:17]POST finish read [00:20:17]Found Content-Length = 331 [00:20:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:20:17]execute_script... [00:20:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:20:17]POST & json_proto [00:20:17]process_json_proto [00:20:17]json parsed OK: [00:20:17]protocol is kg_v1.0 [00:20:17]action value=get_value [00:20:17]process_action get_value [00:20:17]cmd_get_value [00:20:17]process_action get_value done [00:20:17]requested_data is exist [00:20:17]produce_requested_data [00:20:17]requested_item fm.sale.total is exist - process it [00:20:17]SAM_PROTO_GetFMData [00:20:17]wFMCommunicate request_size=4 [00:20:17]MH_SAM_APDU [00:20:17]CAPDU: 80 13 03 00 [00:20:17]Write to MH i2c: E2 08 00 2C 16 80 13 03 00 00 00 00 00 C1 [00:20:17]Write i2c OK [00:20:17]MH_I2C_Read... [00:20:17]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:20:17]Read from MH i2c: E2 [00:20:17]MH_I2C_Read... [00:20:17]Read from MH i2c: E2 FD 00 [00:20:17]MH_I2C_Read... [00:20:17]Read from MH i2c: E2 FD 00 2C 16 00 C3 04 85 04 BF 04 6E 04 04 00 93 6F 00 00 69 04 A1 00 6F 04 04 00 38 6C 00 00 B1 04 04 00 60 A9 16 B0 70 04 04 00 48 3A 6C 70 72 04 04 00 18 6F AA 3F 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 54 0E B4 12 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 49 F8 8E 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 9C 00 6F 04 04 00 5B 03 00 00 B1 04 04 00 28 7A 97 0C 70 04 04 00 28 7A 97 0C 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 B0 5A 56 01 EF 03 09 00 F6 90 00 57 [00:20:17]RAPDU: C3 04 85 04 BF 04 6E 04 04 00 93 6F 00 00 69 04 A1 00 6F 04 04 00 38 6C 00 00 B1 04 04 00 60 A9 16 B0 70 04 04 00 48 3A 6C 70 72 04 04 00 18 6F AA 3F 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 54 0E B4 12 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 49 F8 8E 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 9C 00 6F 04 04 00 5B 03 00 00 B1 04 04 00 28 7A 97 0C 70 04 04 00 28 7A 97 0C 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 B0 5A 56 01 EF 03 09 00 F6 90 00 [00:20:18]wFMCommunicate OK [00:20:18]wFMCommunicate request_size=4 [00:20:18]MH_SAM_APDU [00:20:18]CAPDU: 80 17 00 00 [00:20:18]Write to MH i2c: E2 08 00 2D 16 80 17 00 00 00 00 00 00 C3 [00:20:18]Write i2c OK [00:20:18]MH_I2C_Read... [00:20:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:18]Read from MH i2c: E2 [00:20:18]MH_I2C_Read... [00:20:18]Read from MH i2c: E2 FD 00 [00:20:18]MH_I2C_Read... [00:20:18]Read from MH i2c: E2 FD 00 2D 16 00 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 1F 87 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 45 [00:20:18]RAPDU: 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 1F 87 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:20:18]wFMCommunicate OK [00:20:18]wFMCommunicate request_size=4 [00:20:18]MH_SAM_APDU [00:20:18]CAPDU: 80 17 00 00 [00:20:18]Write to MH i2c: E2 08 00 2E 16 80 17 00 00 00 00 00 00 C4 [00:20:18]Write i2c OK [00:20:18]MH_I2C_Read... [00:20:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:18]Read from MH i2c: E2 [00:20:18]MH_I2C_Read... [00:20:18]Read from MH i2c: E2 FD 00 [00:20:18]MH_I2C_Read... [00:20:18]Read from MH i2c: E2 FD 00 2E 16 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 E2 [00:20:18]RAPDU: 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:20:18]wFMCommunicate OK [00:20:18]wFMCommunicate request_size=4 [00:20:18]MH_SAM_APDU [00:20:18]CAPDU: 80 17 00 00 [00:20:18]Write to MH i2c: E2 08 00 2F 16 80 17 00 00 00 00 00 00 C5 [00:20:18]Write i2c OK [00:20:18]MH_I2C_Read... [00:20:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:19]Read from MH i2c: E2 [00:20:19]MH_I2C_Read... [00:20:19]Read from MH i2c: E2 FD 00 [00:20:19]MH_I2C_Read... [00:20:19]Read from MH i2c: E2 FD 00 2F 16 00 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 37 [00:20:19]RAPDU: 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:20:19]wFMCommunicate OK [00:20:19]wFMCommunicate request_size=4 [00:20:19]MH_SAM_APDU [00:20:19]CAPDU: 80 17 00 00 [00:20:19]Write to MH i2c: E2 08 00 30 16 80 17 00 00 00 00 00 00 C6 [00:20:19]Write i2c OK [00:20:19]MH_I2C_Read... [00:20:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 221! [00:20:19]Read from MH i2c: E2 [00:20:19]MH_I2C_Read... [00:20:19]Read from MH i2c: E2 E0 00 [00:20:19]MH_I2C_Read... [00:20:19]Read from MH i2c: E2 E0 00 30 16 00 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 B0 [00:20:19]RAPDU: 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:20:19]wFMCommunicate OK [00:20:19]SAM_PROTO_GetFMData done [00:20:19]requested_item fm.sale_refund.total is exist - process it [00:20:19]requested_item fm.buy.total is exist - process it [00:20:19]requested_item shift.sale.total is exist - process it [00:20:19]SAM_PROTO_GetShiftData [00:20:19]wFMCommunicate request_size=4 [00:20:19]MH_SAM_APDU [00:20:19]CAPDU: 80 13 02 00 [00:20:19]Write to MH i2c: E2 08 00 31 16 80 13 02 00 00 00 00 00 C5 [00:20:19]Write i2c OK [00:20:19]MH_I2C_Read... [00:20:20]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:20:20]Read from MH i2c: E2 [00:20:20]MH_I2C_Read... [00:20:20]Read from MH i2c: E2 FD 00 [00:20:20]MH_I2C_Read... [00:20:20]Read from MH i2c: E2 FD 00 31 16 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 38 [00:20:20]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:20:20]wFMCommunicate OK [00:20:20]wFMCommunicate request_size=4 [00:20:20]MH_SAM_APDU [00:20:20]CAPDU: 80 17 00 00 [00:20:20]Write to MH i2c: E2 08 00 32 16 80 17 00 00 00 00 00 00 C8 [00:20:20]Write i2c OK [00:20:20]MH_I2C_Read... [00:20:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:20]Read from MH i2c: E2 [00:20:20]MH_I2C_Read... [00:20:20]Read from MH i2c: E2 FD 00 [00:20:20]MH_I2C_Read... [00:20:20]Read from MH i2c: E2 FD 00 32 16 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 D0 [00:20:20]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:20:20]wFMCommunicate OK [00:20:20]wFMCommunicate request_size=4 [00:20:20]MH_SAM_APDU [00:20:20]CAPDU: 80 17 00 00 [00:20:20]Write to MH i2c: E2 08 00 33 16 80 17 00 00 00 00 00 00 C9 [00:20:20]Write i2c OK [00:20:20]MH_I2C_Read... [00:20:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:20]Read from MH i2c: E2 [00:20:20]MH_I2C_Read... [00:20:20]Read from MH i2c: E2 FD 00 [00:20:20]MH_I2C_Read... [00:20:20]Read from MH i2c: E2 FD 00 33 16 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 9B [00:20:21]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:20:21]wFMCommunicate OK [00:20:21]wFMCommunicate request_size=4 [00:20:21]MH_SAM_APDU [00:20:21]CAPDU: 80 17 00 00 [00:20:21]Write to MH i2c: E2 08 00 34 16 80 17 00 00 00 00 00 00 CA [00:20:21]Write i2c OK [00:20:21]MH_I2C_Read... [00:20:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:21]Read from MH i2c: E2 [00:20:21]MH_I2C_Read... [00:20:21]Read from MH i2c: E2 FD 00 [00:20:21]MH_I2C_Read... [00:20:21]Read from MH i2c: E2 FD 00 34 16 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 3C [00:20:21]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:20:21]wFMCommunicate OK [00:20:21]wFMCommunicate request_size=4 [00:20:21]MH_SAM_APDU [00:20:21]CAPDU: 80 17 00 00 [00:20:21]Write to MH i2c: E2 08 00 35 16 80 17 00 00 00 00 00 00 CB [00:20:21]Write i2c OK [00:20:21]MH_I2C_Read... [00:20:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:20:21]Read from MH i2c: E2 [00:20:21]MH_I2C_Read... [00:20:21]Read from MH i2c: E2 BD 00 [00:20:21]MH_I2C_Read... [00:20:21]Read from MH i2c: E2 BD 00 35 16 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 OFD Sender: No OFD packet to send [00:20:21]00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 B1 [00:20:21]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:20:22]wFMCommunicate OK [00:20:22]SAM_PROTO_GetShiftData done [00:20:22]requested_item shift.sale.total_cash is exist - process it [00:20:22]requested_item shift.sale_refund.total is exist - process it [00:20:22]requested_item shift.sale_refund.total_cash is exist - process it [00:20:22]requested_item shift.buy.total is exist - process it [00:20:22]requested_item shift.buy.total_cash is exist - process it [00:20:22]produce_requested_data done [00:20:22]produce_requested_data return {"fm.sale.total":29542751.68,"fm.sale_refund.total":2112538.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:20:22]process_action_free get_value [00:20:22]json_value_free [00:20:22]json_value_free done [00:20:22]process_json_proto returns [00:20:22]Send response to host [00:20:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":29542751.68,"fm.sale_refund.total":2112538.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:20:22]free response buf [00:20:22]execute_script done [00:20:22]execute_script returns [00:20:22]free content buf [00:20:22]Sock 9.Close socket [00:20:22]Sock 9.Thread stoped [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:42]OFD Sender: No OFD packet to send [00:21:47]OFD Sender: No OFD packet to send [00:21:52]OFD Sender: No OFD packet to send [00:21:57]OFD Sender: No OFD packet to send [00:22:02]OFD Sender: No OFD packet to send [00:22:07]OFD Sender: No OFD packet to send [00:22:12]OFD Sender: No OFD packet to send [00:22:17]OFD Sender: No OFD packet to send [00:22:22]OFD Sender: No OFD packet to send [00:22:27]OFD Sender: No OFD packet to send [00:22:27]accept exits with 7 [00:22:27]New connection [00:22:27]New thread 3066928484 created [00:22:27]Thread 3066785124 joined [00:22:27]Waiting for new connection... [00:22:27] Sock 7.Parse request [00:22:27]Sock 7.Check first char [00:22:27]Sock 7.First char is OK [00:22:27]request: POST /json_proto HTTP/1.0 [00:22:27]Method: POST [00:22:27]URL: /json_proto [00:22:27]Method is POST - this is cgi request [00:22:27]url: /json_proto [00:22:27]query_string will be loaded in cgi processing [00:22:27]execute_cgi json_proto POST (null) [00:22:27]execute_cgi path=json_proto method=POST [00:22:27]POST find Content-Length [00:22:27]Host: 172.17.33.3:8080 [00:22:27]Content-Length: 682 [00:22:27]Content-Type: application/json [00:22:27] [00:22:27]POST finish read [00:22:27]Found Content-Length = 682 [00:22:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347140", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 15.560, "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" ] } } [00:22:27]execute_script... [00:22:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347140", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 15.560, "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" ] } } [00:22:27]POST & json_proto [00:22:27]process_json_proto [00:22:27]json parsed OK: [00:22:27]protocol is kg_v1.0 [00:22:27]action value=close_receipt [00:22:27]process_action close_receipt [00:22:27]cmd_close_receipt [00:22:27]MH_GetDate [00:22:27]Write to MH i2c: F0 00 00 36 16 3B [00:22:27]Write i2c OK [00:22:27]MH_I2C_Read... [00:22:27]Read from MH i2c: F0 [00:22:27]MH_I2C_Read... [00:22:27]Read from MH i2c: F0 09 00 [00:22:27]MH_I2C_Read... [00:22:27]Read from MH i2c: F0 09 00 36 16 00 45 D0 19 66 23 5B 8F 65 4A [00:22:27]GetLastDocTimeStamp 1712967615 [00:22:27]current date 1712967749 [00:22:27]FM_GetShiftState [00:22:27]SAM_PROTO_GetShiftState [00:22:27]wFMCommunicate request_size=4 [00:22:27]MH_SAM_APDU [00:22:27]CAPDU: 80 13 01 00 [00:22:27]Write to MH i2c: E2 08 00 37 16 80 13 01 00 00 00 00 00 CA [00:22:27]Write i2c OK [00:22:27]MH_I2C_Read... [00:22:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:22:27]Read from MH i2c: E2 [00:22:27]MH_I2C_Read... [00:22:27]Read from MH i2c: E2 0E 00 [00:22:27]MH_I2C_Read... [00:22:27]Read from MH i2c: E2 0E 00 37 16 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 E3 [00:22:27]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [00:22:27]wFMCommunicate OK [00:22:27]SAM_PROTO_GetShiftState done [00:22:27]FM_GetShiftState done [00:22:27]opened in 1712967615 [00:22:27]opened+sec_in_day 1713054015 [00:22:27]quantity*price = 100050 [00:22:27]sum+1 = 100052 [00:22:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 1 13.04.2024 00:22 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28794 ФПД: 87292500607140 1/tax-web-control/client/api/v1/ticket?date=20240413T002229&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28794&fm=87292500607140&tin=02508201610067®Number=0000138879044617&sum=100000 [00:22:28]StoreToDocumentArchive [00:22:28]shift 115 fd 28794 [00:22:28]save to /storage/0115/doc_00028794 [00:22:28]save last doc name /storage/0115/doc_00028794 to /storage/kkm_last_doc_name [00:22:28]save OK [00:22:28]Clear old archive folders... [00:22:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:22:28]tlvbuf is 011BCFA0 [00:22:28]SAM_PROTO_ClearQueue [00:22:28]wFMCommunicate request_size=4 [00:22:28]MH_SAM_APDU [00:22:28]CAPDU: 80 09 00 00 [00:22:28]Write to MH i2c: E2 08 00 44 16 80 09 00 00 00 00 00 00 CC [00:22:28]Write i2c OK [00:22:28]MH_I2C_Read... [00:22:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:22:28]Read from MH i2c: E2 [00:22:28]MH_I2C_Read... [00:22:28]Read from MH i2c: E2 03 00 [00:22:28]MH_I2C_Read... [00:22:28]Read from MH i2c: E2 03 00 44 16 00 90 00 CE [00:22:28]RAPDU: 90 00 [00:22:28]wFMCommunicate OK [00:22:28]SAM_PROTO_ClearQueue done [00:22:28]KKMCreateOFDPacket [00:22:28]OFDProtocolAddRootSTLVToBuf [00:22:28]FM_MakeSignedData [00:22:28]FM_MakeSignedData [00:22:28]SAM_PROTO_SignData [00:22:28]wFMCommunicate request_size=4 [00:22:28]MH_SAM_APDU [00:22:28]CAPDU: 80 0D 01 02 [00:22:28]Write to MH i2c: E2 08 00 45 16 80 0D 01 02 00 00 00 00 D4 [00:22:28]Write i2c OK [00:22:28]MH_I2C_Read... [00:22:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:22:28]Read from MH i2c: E2 [00:22:28]MH_I2C_Read... [00:22:28]Read from MH i2c: E2 03 00 [00:22:28]MH_I2C_Read... [00:22:28]Read from MH i2c: E2 03 00 45 16 00 90 00 CF [00:22:28]RAPDU: 90 00 [00:22:28]wFMCommunicate OK [00:22:28]wFMCommunicate request_size=255 [00:22:28]MH_SAM_APDU [00:22:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 01 00 00 00 F4 03 04 00 45 D0 19 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7A 70 00 00 35 04 06 00 4F [00:22:28]Write to MH i2c: E2 02 01 46 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 01 00 00 00 F4 03 04 00 45 D0 19 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7A 70 00 00 35 04 06 00 4F 00 00 41 [00:22:28]Write i2c OK [00:22:28]MH_I2C_Read... [00:22:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:22:28]Read from MH i2c: E2 [00:22:28]MH_I2C_Read... [00:22:28]Read from MH i2c: E2 03 00 [00:22:28]MH_I2C_Read... [00:22:28]Read from MH i2c: E2 03 00 46 16 00 90 00 D0 [00:22:28]RAPDU: 90 00 [00:22:28]wFMCommunicate OK [00:22:28]wFMCommunicate request_size=10 [00:22:28]MH_SAM_APDU [00:22:28]CAPDU: 80 0D 02 02 05 64 5E 7D 80 A4 [00:22:28]Write to MH i2c: E2 0D 00 47 16 80 0D 02 02 05 00 64 5E 7D 80 A4 00 00 44 [00:22:28]Write i2c OK [00:22:28]MH_I2C_Read... [00:22:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:22:28]Read from MH i2c: E2 [00:22:28]MH_I2C_Read... [00:22:28]Read from MH i2c: E2 03 00 [00:22:28]MH_I2C_Read... [00:22:28]Read from MH i2c: E2 03 00 47 16 00 90 00 D1 [00:22:28]RAPDU: 90 00 [00:22:28]wFMCommunicate OK [00:22:28]wFMCommunicate request_size=4 [00:22:28]MH_SAM_APDU [00:22:28]CAPDU: 80 0D 03 02 [00:22:28]Write to MH i2c: E2 08 00 48 16 80 0D 03 02 00 00 00 00 D9 [00:22:28]Write i2c OK [00:22:28]MH_I2C_Read... [00:22:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:22:28]Read from MH i2c: E2 [00:22:28]MH_I2C_Read... [00:22:28]Read from MH i2c: E2 0B 00 [00:22:28]MH_I2C_Read... [00:22:28]Read from MH i2c: E2 0B 00 48 16 00 63 C4 90 57 56 8E 03 FB 90 00 CA [00:22:28]RAPDU: 63 C4 90 57 56 8E 03 FB 90 00 [00:22:28]wFMCommunicate OK [00:22:28]SAM_PROTO_SignData done [00:22:28]FM_MakeSignedData done [00:22:28]CreateOFDProtocolMessage [00:22:28]wFMCommunicate request_size=4 [00:22:28]MH_SAM_APDU [00:22:28]CAPDU: 80 11 00 00 [00:22:28]Write to MH i2c: E2 08 00 49 16 80 11 00 00 00 00 00 00 D9 [00:22:28]Write i2c OK [00:22:28]MH_I2C_Read... [00:22:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:22:28]Read from MH i2c: E2 [00:22:28]MH_I2C_Read... [00:22:28]Read from MH i2c: E2 17 00 [00:22:28]MH_I2C_Read... [00:22:28]Read from MH i2c: E2 17 00 49 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 28 [00:22:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [00:22:28]wFMCommunicate OK [00:22:28]CreateOFDProtocolMessage done [00:22:28]OFDSenderStorePacket 28794 [00:22:28]StoreOFDPacket docnum=28794 [00:22:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 70 9D 07 01 F7 57 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 01 00 00 00 F4 03 04 00 45 D0 19 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7A 70 00 00 35 04 06 00 4F 64 5E 7D 80 A4 63 C4 90 57 56 8E 03 FB [00:22:28]CheckFolder [00:22:28]dirname=/storage/ofd_packets [00:22:28]CheckFolder done [00:22:28]ProducePacketName [00:22:28]name=ofd_packets/00028794 [00:22:28]NVStorageSaveData ofd_packets/00028794 [00:22:28]File name is /storage/ofd_packets/00028794 [00:22:28]Write 301 bytes [00:22:28]NVStorageSaveData done [00:22:28]OFDSenderStorePacket done [00:22:28]KKMCreateOFDPacket done [00:22:28]NVStorageSaveData kkm_last_timestamp [00:22:28]File name is /storage/kkm_last_timestamp [00:22:28]Write 4 bytes [00:22:28]NVStorageSaveData done [00:22:28]ExternCall_PrintAddStr [00:22:28]wPrintStart [00:22:28]Write to MH i2c: 01 00 00 4A 16 60 [00:22:28]Write i2c OK [00:22:28]MH_I2C_Read... [00:22:28]Read from MH i2c: 01 [00:22:28]MH_I2C_Read... [00:22:28]Read from MH i2c: 01 07 00 [00:22:28]MH_I2C_Read... [00:22:28]Read from MH i2c: 01 07 00 4A 16 00 00 00 00 00 FF 0F 75 [00:22:28]RasterBufferAndPrint [00:22:28]line Счет N : (1)347140 [00:22:28]line ИНН: 02508201610067 [00:22:28]line Контрольно-Кассовый Чек [00:22:28]line ПРОДАЖА [00:22:28]line ТРК (МРК, ГНК) : 23 [00:22:28]line Товар: 2710124130 [00:22:28]line Аи-92-К-5 [00:22:28]line 15.560 * 64.30 [00:22:28]line = 1000.51 [00:22:28]line НДС 12% НСП 1% [00:22:28]line > о реализуемом товаре [00:22:28]line ОКРУГЛЕНИЕ: -0.51 [00:22:28]line ИТОГО: 1000.00 [00:22:28]line Внесено: 1000.00 [00:22:28]line СДАЧА: 0.00 [00:22:28]line НСП 1% : 8.85 [00:22:28]line НДС 12% : 106.25 [00:22:28]line Наличными: 1000.00 [00:22:28]line Безнал.: 0.00 [00:22:28]line Место: АЗС № 108 "Партнер Нефть" [00:22:28]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [00:22:28]line СНО: Общий режим [00:22:28]line Чек 1 13.04.2024 00:22 [00:22:28]line Смена: 115 ФФД: 1.0 [00:22:28]line ЗНМ: 0300000027 [00:22:29]line РНМ: 0000138879044617 [00:22:29]line Версия ККМ: 001 [00:22:29]line ФМ: 0000000000963154 [00:22:29]line ФД: 28794 [00:22:29]line ФПД: 87292500607140 [00:22:29]line 1/tax-web-control/client/api/v1/ticket?date=20240413T002229&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28794&fm=87292500607140&tin=02508201610067®Number=0000138879044617&sum=100000 [00:22:29]OFD Sender: Processing packet 28794 [packets to send 8, broken 7] [00:22:29]ProducePacketName [00:22:29]name=ofd_packets/00028794 [00:22:29]OFD Sender: To server: pG, [00:22:29]CommunicateWithHost lk.salyk.kg:30040 [00:22:29]ConnectInit lk.salyk.kg [00:22:29]written 0, free lines is 4095 [00:22:29]Connected sock=10 [00:22:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 70 9D 07 01 F7 57 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 01 00 00 00 F4 03 04 00 45 D0 19 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7A 70 00 00 35 04 06 00 4F 64 5E 7D 80 A4 63 C4 90 57 56 8E 03 FB [00:22:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 BD 27 47 00 49 98 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7A 70 00 00 F4 03 04 00 ED 7A 19 66 B6 04 01 00 00 CF 97 CF B6 9A 91 72 52 [00:22:29]CommunicateWithHost err = 0 [00:22:29]CheckOFDResponse [00:22:29]1017 (14) - 77093643461234 [00:22:29]1041 (16) - 0000000000963154 [00:22:29]1040 (4) - 28794 [00:22:29]1012 (4) - 12.04.2024 18:18 [00:22:29]1206 (1) - 0 [00:22:29]OFD Sender: Remove packet 28794 [00:22:29]ProducePacketName [00:22:29]name=ofd_packets/00028794 [00:22:29]NVStorageDeleteData [00:22:29]Write to MH i2c: 01 00 00 74 16 8A [00:22:29]Write i2c OK [00:22:29]MH_I2C_Read... [00:22:29]Read from MH i2c: 01 [00:22:29]MH_I2C_Read... [00:22:29]Read from MH i2c: 01 07 00 [00:22:29]MH_I2C_Read... [00:22:29]Read from MH i2c: 01 07 00 74 16 00 00 00 00 00 C6 0C 63 [00:22:29]RasterBufferAndPrint [00:22:29]line [00:22:29]line [00:22:29]line [00:22:29]line [00:22:29]line [00:22:29]written 0, free lines is 3274 [00:22:29]MH_Cut [00:22:29]Write to MH i2c: D1 01 00 7B 16 01 63 [00:22:29]Write i2c OK [00:22:29]MH_I2C_Read... [00:22:29]Read from MH i2c: D1 [00:22:29]MH_I2C_Read... [00:22:29]Read from MH i2c: D1 01 00 [00:22:29]MH_I2C_Read... [00:22:29]Read from MH i2c: D1 01 00 7B 16 00 62 [00:22:29]Write to MH i2c: 01 00 00 7C 16 92 [00:22:29]Write i2c OK [00:22:29]MH_I2C_Read... [00:22:30]OFD Sender: No OFD packet to send [00:22:30]*** Cut start [00:22:30]*** Partial cut [00:22:30]*** CUTSNS_PIN = 1 [00:22:30]*** CUTSNS_PIN = 0 [00:22:30]*** Brake cut motor [00:22:31]Read from MH i2c: 01 [00:22:31]MH_I2C_Read... [00:22:31]*** Stop cut motor [00:22:31]*** Cut end [00:22:31]Read from MH i2c: 01 07 00 [00:22:31]MH_I2C_Read... [00:22:31]Read from MH i2c: 01 07 00 7C 16 00 00 00 00 00 FF 0F A7 [00:22:31]process_action close_receipt done [00:22:31]requested_data is exist [00:22:31]produce_requested_data [00:22:31]requested_item fm.sn is exist - process it [00:22:31]wFMCommunicate request_size=4 [00:22:31]MH_SAM_APDU [00:22:31]CAPDU: 80 11 00 00 [00:22:31]Write to MH i2c: E2 08 00 7D 16 80 11 00 00 00 00 00 00 0D [00:22:31]Write i2c OK [00:22:31]MH_I2C_Read... [00:22:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:22:31]Read from MH i2c: E2 [00:22:31]MH_I2C_Read... [00:22:31]Read from MH i2c: E2 17 00 [00:22:31]MH_I2C_Read... [00:22:31]Read from MH i2c: E2 17 00 7D 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 5C [00:22:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [00:22:31]wFMCommunicate OK [00:22:31]requested_item fd.num is exist - process it [00:22:31]SAM_PROTO_GetFieldsCounters [00:22:31]wFMCommunicate request_size=4 [00:22:31]MH_SAM_APDU [00:22:31]CAPDU: 80 13 00 00 [00:22:31]Write to MH i2c: E2 08 00 7E 16 80 13 00 00 00 00 00 00 10 [00:22:31]Write i2c OK [00:22:31]MH_I2C_Read... [00:22:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:22:31]Read from MH i2c: E2 [00:22:31]MH_I2C_Read... [00:22:31]Read from MH i2c: E2 62 00 [00:22:31]MH_I2C_Read... [00:22:31]Read from MH i2c: E2 62 00 7E 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 7A 70 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 AE [00:22:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 7A 70 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:22:31]wFMCommunicate OK [00:22:31]SAM_PROTO_GetFieldsCounters done [00:22:31]requested_item shift.num is exist - process it [00:22:31]requested_item shift.opened is exist - process it [00:22:31]req_shift_opened [00:22:31]FM_GetShiftState [00:22:31]SAM_PROTO_GetShiftState [00:22:31]wFMCommunicate request_size=4 [00:22:31]MH_SAM_APDU [00:22:31]CAPDU: 80 13 01 00 [00:22:31]Write to MH i2c: E2 08 00 7F 16 80 13 01 00 00 00 00 00 12 [00:22:31]Write i2c OK [00:22:31]MH_I2C_Read... [00:22:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:22:31]Read from MH i2c: E2 [00:22:31]MH_I2C_Read... [00:22:31]Read from MH i2c: E2 0E 00 [00:22:31]MH_I2C_Read... [00:22:31]Read from MH i2c: E2 0E 00 7F 16 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 2B [00:22:31]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [00:22:31]wFMCommunicate OK [00:22:31]SAM_PROTO_GetShiftState done [00:22:31]FM_GetShiftState done [00:22:31]req_shift_opened done [00:22:31]requested_item shift.open_date is exist - process it [00:22:31]req_shift_open_date [00:22:31]req_shift_open_date done [00:22:31]produce_requested_data done [00:22:31]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28794,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [00:22:31]process_action_free close_receipt [00:22:31]json_value_free [00:22:31]json_value_free done [00:22:31]process_json_proto returns [00:22:31]Send response to host [00:22:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28794,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [00:22:31]free response buf [00:22:31]execute_script done [00:22:31]execute_script returns [00:22:31]free content buf [00:22:31]Sock 7.Close socket [00:22:31]Sock 7.Thread stoped [00:22:35]OFD Sender: No OFD packet to send [00:22:40]OFD Sender: No OFD packet to send [00:22:45]OFD Sender: No OFD packet to send [00:22:48]accept exits with 9 [00:22:48]New connection [00:22:48]New thread 3066785124 created [00:22:48]Thread 3066928484 joined [00:22:48]Waiting for new connection... [00:22:48] Sock 9.Parse request [00:22:48]Sock 9.Check first char [00:22:48]Sock 9.First char is OK [00:22:48]request: POST /json_proto HTTP/1.0 [00:22:48]Method: POST [00:22:48]URL: /json_proto [00:22:48]Method is POST - this is cgi request [00:22:48]url: /json_proto [00:22:48]query_string will be loaded in cgi processing [00:22:48]execute_cgi json_proto POST (null) [00:22:48]execute_cgi path=json_proto method=POST [00:22:48]POST find Content-Length [00:22:48]Host: 172.17.33.3:8080 [00:22:48]Content-Length: 1221 [00:22:48]Content-Type: application/json [00:22:48] [00:22:48]POST finish read [00:22:48]Found Content-Length = 1221 [00:22:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)347139\u000A13.04.2024 00:04\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 13\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 40.000 x 64.30\u000A\u0418\u0422\u041E\u0413: 2572.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3859200;3859199;3859202;3859201\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:22:48]execute_script... [00:22:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)347139\u000A13.04.2024 00:04\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 13\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 40.000 x 64.30\u000A\u0418\u0422\u041E\u0413: 2572.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3859200;3859199;3859202;3859201\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:22:48]POST & json_proto [00:22:48]process_json_proto [00:22:48]json parsed OK: [00:22:48]protocol is kg_v1.0 [00:22:48]action value=print_text [00:22:48]process_action print_text [00:22:48]cmd_print_text [00:22:48]ExternCall_PrintAddStr [00:22:48]wPrintStart [00:22:48]Write to MH i2c: 01 00 00 80 16 96 [00:22:48]Write i2c OK [00:22:48]MH_I2C_Read... [00:22:48]Read from MH i2c: 01 [00:22:48]MH_I2C_Read... [00:22:48]Read from MH i2c: 01 07 00 [00:22:48]MH_I2C_Read... [00:22:48]Read from MH i2c: 01 07 00 80 16 00 00 00 00 00 FF 0F AB [00:22:48]RasterBufferAndPrint [00:22:48]line *****ТОВАРНЫЙ ЧЕК***** [00:22:48]line АЗС 108 [00:22:48]line Партнер нефть [00:22:48]line 02508201610067 [00:22:48]line Кассир : Шадыканова Ж. [00:22:48]line Счет N : (1)347139 [00:22:48]line 13.04.2024 00:04 [00:22:48]line ПРОДАЖА [00:22:48]line ТРК (МРК, ГНК): 13 [00:22:48]line Вид ГСМ : 2710124130 [00:22:48]line Аи-92-К-5 [00:22:48]line 40.000 x 64.30 [00:22:48]line ИТОГ: 2572.00 [00:22:48]line Тип оплаты: Талоны: Партнер нефть [00:22:48]line 3859200;3859199;3859202;3859201 [00:22:48]line ______________________ [00:22:48]line (подпись) [00:22:48]written 0, free lines is 4095 [00:22:48]Write to MH i2c: 01 00 00 96 16 AC [00:22:48]Write i2c OK [00:22:48]MH_I2C_Read... [00:22:48]Read from MH i2c: 01 [00:22:48]MH_I2C_Read... [00:22:48]Read from MH i2c: 01 07 00 [00:22:48]MH_I2C_Read... [00:22:48]Read from MH i2c: 01 07 00 96 16 00 00 00 00 00 EC 0D AC [00:22:48]RasterBufferAndPrint [00:22:48]line [00:22:48]line [00:22:48]line [00:22:48]line [00:22:48]line [00:22:48]written 0, free lines is 3566 [00:22:48]MH_Cut [00:22:48]Write to MH i2c: D1 01 00 9D 16 01 85 [00:22:48]Write i2c OK [00:22:48]MH_I2C_Read... [00:22:48]Read from MH i2c: D1 [00:22:48]MH_I2C_Read... [00:22:48]Read from MH i2c: D1 01 00 [00:22:48]MH_I2C_Read... [00:22:48]Read from MH i2c: D1 01 00 9D 16 00 84 [00:22:48]Write to MH i2c: 01 00 00 9E 16 B4 [00:22:48]Write i2c OK [00:22:48]MH_I2C_Read... [00:22:49]*** Cut start [00:22:49]*** Partial cut [00:22:49]*** CUTSNS_PIN = 1 [00:22:49]*** CUTSNS_PIN = 0 [00:22:49]*** Brake cut motor [00:22:49]Read from MH i2c: 01 [00:22:49]MH_I2C_Read... [00:22:49]*** Stop cut motor [00:22:49]*** Cut end [00:22:49]Read from MH i2c: 01 07 00 [00:22:49]MH_I2C_Read... [00:22:49]Read from MH i2c: 01 07 00 9E 16 00 00 00 00 00 FF 0F C9 [00:22:49]process_action print_text done [00:22:49]requested_data is exist [00:22:49]produce_requested_data [00:22:49]requested_item fm.sn is exist - process it [00:22:49]wFMCommunicate request_size=4 [00:22:49]MH_SAM_APDU [00:22:49]CAPDU: 80 11 00 00 [00:22:49]Write to MH i2c: E2 08 00 9F 16 80 11 00 00 00 00 00 00 2F [00:22:49]Write i2c OK [00:22:49]MH_I2C_Read... [00:22:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:22:49]Read from MH i2c: E2 [00:22:49]MH_I2C_Read... [00:22:49]Read from MH i2c: E2 17 00 [00:22:49]MH_I2C_Read... [00:22:49]Read from MH i2c: E2 17 00 9F 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 7E [00:22:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [00:22:49]wFMCommunicate OK [00:22:49]requested_item fd.num is exist - process it [00:22:49]SAM_PROTO_GetFieldsCounters [00:22:49]wFMCommunicate request_size=4 [00:22:49]MH_SAM_APDU [00:22:49]CAPDU: 80 13 00 00 [00:22:49]Write to MH i2c: E2 08 00 A0 16 80 13 00 00 00 00 00 00 32 [00:22:49]Write i2c OK [00:22:49]MH_I2C_Read... [00:22:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:22:49]Read from MH i2c: E2 [00:22:49]MH_I2C_Read... [00:22:49]Read from MH i2c: E2 62 00 [00:22:49]MH_I2C_Read... [00:22:49]Read from MH i2c: E2 62 00 A0 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 7A 70 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 D0 [00:22:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 7A 70 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:22:49]wFMCommunicate OK [00:22:49]SAM_PROTO_GetFieldsCounters done [00:22:49]requested_item shift.num is exist - process it [00:22:49]requested_item shift.opened is exist - process it [00:22:49]req_shift_opened [00:22:49]FM_GetShiftState [00:22:49]SAM_PROTO_GetShiftState [00:22:49]wFMCommunicate request_size=4 [00:22:49]MH_SAM_APDU [00:22:49]CAPDU: 80 13 01 00 [00:22:49]Write to MH i2c: E2 08 00 A1 16 80 13 01 00 00 00 00 00 34 [00:22:49]Write i2c OK [00:22:49]MH_I2C_Read... [00:22:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:22:49]Read from MH i2c: E2 [00:22:49]MH_I2C_Read... [00:22:49]Read from MH i2c: E2 0E 00 [00:22:49]MH_I2C_Read... [00:22:49]Read from MH i2c: E2 0E 00 A1 16 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 4D [00:22:49]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [00:22:49]wFMCommunicate OK [00:22:49]SAM_PROTO_GetShiftState done [00:22:49]FM_GetShiftState done [00:22:49]req_shift_opened done [00:22:49]requested_item shift.open_date is exist - process it [00:22:49]req_shift_open_date [00:22:49]req_shift_open_date done [00:22:49]produce_requested_data done [00:22:49]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28794,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [00:22:49]process_action_free print_text [00:22:49]json_value_free [00:22:49]json_value_free done [00:22:49]process_json_proto returns [00:22:49]Send response to host [00:22:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28794,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [00:22:49]free response buf [00:22:49]execute_script done [00:22:49]execute_script returns [00:22:49]free content buf [00:22:49]Sock 9.Close socket [00:22:49]Sock 9.Thread stoped [00:22:50]OFD Sender: No OFD packet to send [00:22:55]OFD Sender: No OFD packet to send [00:23:00]OFD Sender: No OFD packet to send [00:23:05]OFD Sender: No OFD packet to send [00:23:10]OFD Sender: No OFD packet to send [00:23:15]OFD Sender: No OFD packet to send [00:23:20]OFD Sender: No OFD packet to send [00:23:25]OFD Sender: No OFD packet to send [00:23:30]OFD Sender: No OFD packet to send [00:23:35]OFD Sender: No OFD packet to send [00:23:40]OFD Sender: No OFD packet to send [00:23:45]OFD Sender: No OFD packet to send [00:23:50]OFD Sender: No OFD packet to send [00:23:55]OFD Sender: No OFD packet to send [00:24:00]OFD Sender: No OFD packet to send [00:24:05]OFD Sender: No OFD packet to send [00:24:10]OFD Sender: No OFD packet to send [00:24:15]OFD Sender: No OFD packet to send [00:24:20]OFD Sender: No OFD packet to send [00:24:25]OFD Sender: No OFD packet to send [00:24:30]OFD Sender: No OFD packet to send [00:24:35]OFD Sender: No OFD packet to send [00:24:40]OFD Sender: No OFD packet to send [00:24:45]OFD Sender: No OFD packet to send [00:24:50]OFD Sender: No OFD packet to send [00:24:55]OFD Sender: No OFD packet to send [00:25:00]OFD Sender: No OFD packet to send [00:25:03]accept exits with 7 [00:25:03]New connection [00:25:03]New thread 3066928484 created [00:25:03]Thread 3066785124 joined [00:25:03]Waiting for new connection... [00:25:03] Sock 7.Parse request [00:25:03]Sock 7.Check first char [00:25:03]Sock 7.First char is OK [00:25:03]request: POST /json_proto HTTP/1.0 [00:25:03]Method: POST [00:25:03]URL: /json_proto [00:25:03]Method is POST - this is cgi request [00:25:03]url: /json_proto [00:25:03]query_string will be loaded in cgi processing [00:25:03]execute_cgi json_proto POST (null) [00:25:03]execute_cgi path=json_proto method=POST [00:25:03]POST find Content-Length [00:25:03]Host: 172.17.33.3:8080 [00:25:03]Content-Length: 820 [00:25:03]Content-Type: application/json [00:25:03] [00:25:03]POST finish read [00:25:03]Found Content-Length = 820 [00:25:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347141", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 15.200, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.08 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:25:03]execute_script... [00:25:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347141", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 15.200, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.08 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:25:03]POST & json_proto [00:25:03]process_json_proto [00:25:03]json parsed OK: [00:25:03]protocol is kg_v1.0 [00:25:03]action value=close_receipt [00:25:03]process_action close_receipt [00:25:03]cmd_close_receipt [00:25:03]MH_GetDate [00:25:03]Write to MH i2c: F0 00 00 A2 16 A7 [00:25:03]Write i2c OK [00:25:03]MH_I2C_Read... [00:25:03]Read from MH i2c: F0 [00:25:03]MH_I2C_Read... [00:25:03]Read from MH i2c: F0 09 00 [00:25:03]MH_I2C_Read... [00:25:03]Read from MH i2c: F0 09 00 A2 16 00 E1 D0 19 66 23 5B 8F 65 52 [00:25:03]GetLastDocTimeStamp 1712967749 [00:25:03]current date 1712967905 [00:25:03]FM_GetShiftState [00:25:03]SAM_PROTO_GetShiftState [00:25:03]wFMCommunicate request_size=4 [00:25:03]MH_SAM_APDU [00:25:03]CAPDU: 80 13 01 00 [00:25:03]Write to MH i2c: E2 08 00 A3 16 80 13 01 00 00 00 00 00 36 [00:25:03]Write i2c OK [00:25:03]MH_I2C_Read... [00:25:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:25:03]Read from MH i2c: E2 [00:25:03]MH_I2C_Read... [00:25:03]Read from MH i2c: E2 0E 00 [00:25:03]MH_I2C_Read... [00:25:03]Read from MH i2c: E2 0E 00 A3 16 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 4F [00:25:03]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [00:25:03]wFMCommunicate OK [00:25:03]SAM_PROTO_GetShiftState done [00:25:03]FM_GetShiftState done [00:25:03]opened in 1712967615 [00:25:03]opened+sec_in_day 1713054015 [00:25:03]quantity*price = 50008 [00:25:03]sum+1 = 50009 [00:25:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.08 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 0.00 Безнал.: 500.08 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 2 13.04.2024 00:25 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000963154 ФД: 28795 ФПД: 170861447704886 1/tax-web-control/client/api/v1/ticket?date=20240413T002505&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28795&fm=170861447704886&tin=02508201610067®Number=0000138879044617&sum=50008 [00:25:04]StoreToDocumentArchive [00:25:04]shift 115 fd 28795 [00:25:04]save to /storage/0115/doc_00028795 [00:25:04]save last doc name /storage/0115/doc_00028795 to /storage/kkm_last_doc_name [00:25:04]save OK [00:25:04]Clear old archive folders... [00:25:04]ProcessDocumentItem done err = 0, tmpTLVsize=250 [00:25:04]tlvbuf is 011DCA90 [00:25:04]SAM_PROTO_ClearQueue [00:25:04]wFMCommunicate request_size=4 [00:25:04]MH_SAM_APDU [00:25:04]CAPDU: 80 09 00 00 [00:25:04]Write to MH i2c: E2 08 00 B0 16 80 09 00 00 00 00 00 00 38 [00:25:04]Write i2c OK [00:25:04]MH_I2C_Read... [00:25:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:25:04]Read from MH i2c: E2 [00:25:04]MH_I2C_Read... [00:25:04]Read from MH i2c: E2 03 00 [00:25:04]MH_I2C_Read... [00:25:04]Read from MH i2c: E2 03 00 B0 16 00 90 00 3A [00:25:04]RAPDU: 90 00 [00:25:04]wFMCommunicate OK [00:25:04]SAM_PROTO_ClearQueue done [00:25:04]KKMCreateOFDPacket [00:25:04]OFDProtocolAddRootSTLVToBuf [00:25:04]FM_MakeSignedData [00:25:04]FM_MakeSignedData [00:25:04]SAM_PROTO_SignData [00:25:04]wFMCommunicate request_size=4 [00:25:04]MH_SAM_APDU [00:25:04]CAPDU: 80 0D 01 02 [00:25:04]Write to MH i2c: E2 08 00 B1 16 80 0D 01 02 00 00 00 00 40 [00:25:04]Write i2c OK [00:25:04]MH_I2C_Read... [00:25:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:25:04]Read from MH i2c: E2 [00:25:04]MH_I2C_Read... [00:25:04]Read from MH i2c: E2 03 00 [00:25:04]MH_I2C_Read... [00:25:04]Read from MH i2c: E2 03 00 B1 16 00 90 00 3B [00:25:04]RAPDU: 90 00 [00:25:04]wFMCommunicate OK [00:25:04]wFMCommunicate request_size=255 [00:25:04]MH_SAM_APDU [00:25:04]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 E1 D0 19 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7B 70 00 00 35 04 06 00 9B 65 [00:25:04]Write to MH i2c: E2 02 01 B2 16 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 E1 D0 19 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7B 70 00 00 35 04 06 00 9B 65 00 00 07 [00:25:04]Write i2c OK [00:25:04]MH_I2C_Read... [00:25:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:25:05]Read from MH i2c: E2 [00:25:05]MH_I2C_Read... [00:25:05]Read from MH i2c: E2 03 00 [00:25:05]MH_I2C_Read... [00:25:05]Read from MH i2c: E2 03 00 B2 16 00 90 00 3C [00:25:05]RAPDU: 90 00 [00:25:05]wFMCommunicate OK [00:25:05]wFMCommunicate request_size=9 [00:25:05]MH_SAM_APDU [00:25:05]CAPDU: 80 0D 02 02 04 C7 E5 71 36 [00:25:05]Write to MH i2c: E2 0C 00 B3 16 80 0D 02 02 04 00 C7 E5 71 36 00 00 9E [00:25:05]Write i2c OK [00:25:05]MH_I2C_Read... [00:25:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:25:05]Read from MH i2c: E2 [00:25:05]MH_I2C_Read... [00:25:05]Read from MH i2c: E2 03 00 [00:25:05]MH_I2C_Read... [00:25:05]Read from MH i2c: E2 03 00 B3 16 00 90 00 3D [00:25:05]RAPDU: 90 00 [00:25:05]wFMCommunicate OK [00:25:05]wFMCommunicate request_size=4 [00:25:05]MH_SAM_APDU [00:25:05]CAPDU: 80 0D 03 02 [00:25:05]Write to MH i2c: E2 08 00 B4 16 80 0D 03 02 00 00 00 00 45 [00:25:05]Write i2c OK [00:25:05]MH_I2C_Read... [00:25:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:25:05]Read from MH i2c: E2 [00:25:05]MH_I2C_Read... [00:25:05]Read from MH i2c: E2 0B 00 [00:25:05]MH_I2C_Read... [00:25:05]Read from MH i2c: E2 0B 00 B4 16 00 2D ED 81 FB 55 6F D4 23 90 00 97 [00:25:05]RAPDU: 2D ED 81 FB 55 6F D4 23 90 00 [00:25:05]wFMCommunicate OK [00:25:05]SAM_PROTO_SignData done [00:25:05]FM_MakeSignedData done [00:25:05]CreateOFDProtocolMessage [00:25:05]wFMCommunicate request_size=4 [00:25:05]MH_SAM_APDU [00:25:05]CAPDU: 80 11 00 00 [00:25:05]Write to MH i2c: E2 08 00 B5 16 80 11 00 00 00 00 00 00 45 [00:25:05]Write i2c OK [00:25:05]MH_I2C_Read... [00:25:05]OFD Sender: No OFD packet to send [00:25:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:25:05]Read from MH i2c: E2 [00:25:05]MH_I2C_Read... [00:25:05]Read from MH i2c: E2 17 00 [00:25:05]MH_I2C_Read... [00:25:05]Read from MH i2c: E2 17 00 B5 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 94 [00:25:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [00:25:05]wFMCommunicate OK [00:25:05]CreateOFDProtocolMessage done [00:25:05]OFDSenderStorePacket 28795 [00:25:05]StoreOFDPacket docnum=28795 [00:25:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 0F DF 06 01 08 27 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 E1 D0 19 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7B 70 00 00 35 04 06 00 9B 65 C7 E5 71 36 2D ED 81 FB 55 6F D4 23 [00:25:05]CheckFolder [00:25:05]dirname=/storage/ofd_packets [00:25:05]CheckFolder done [00:25:05]ProducePacketName [00:25:05]name=ofd_packets/00028795 [00:25:05]NVStorageSaveData ofd_packets/00028795 [00:25:05]File name is /storage/ofd_packets/00028795 [00:25:05]Write 300 bytes [00:25:05]NVStorageSaveData done [00:25:05]OFDSenderStorePacket done [00:25:05]KKMCreateOFDPacket done [00:25:05]NVStorageSaveData kkm_last_timestamp [00:25:05]File name is /storage/kkm_last_timestamp [00:25:05]Write 4 bytes [00:25:05]NVStorageSaveData done [00:25:05]ExternCall_PrintAddStr [00:25:05]wPrintStart [00:25:05]Write to MH i2c: 01 00 00 B6 16 CC [00:25:05]Write i2c OK [00:25:05]MH_I2C_Read... [00:25:05]Read from MH i2c: 01 [00:25:05]MH_I2C_Read... [00:25:05]Read from MH i2c: 01 07 00 [00:25:05]MH_I2C_Read... [00:25:05]Read from MH i2c: 01 07 00 B6 16 00 00 00 00 00 FF 0F E1 [00:25:05]RasterBufferAndPrint [00:25:05]line Счет N : (1)347141 [00:25:05]line ИНН: 02508201610067 [00:25:05]line Контрольно-Кассовый Чек [00:25:05]line ПРОДАЖА [00:25:05]line ТРК (МРК, ГНК) : 71 [00:25:05]line Товар: 2711129700 [00:25:05]line ГАЗ-К-5 [00:25:05]line 15.200 * 32.90 [00:25:05]line = 500.08 [00:25:05]line НДС 12% НСП 1% [00:25:05]line > о реализуемом товаре [00:25:05]line ИТОГО: 500.08 [00:25:05]line НСП 1% : 4.42 [00:25:05]line НДС 12% : 53.11 [00:25:05]line Наличными: 0.00 [00:25:05]line Безнал.: 500.08 [00:25:05]line Место: АЗС № 108 "Партнер Нефть" [00:25:05]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [00:25:05]line СНО: Общий режим [00:25:05]line Чек 2 13.04.2024 00:25 [00:25:05]line Смена: 115 ФФД: 1.0 [00:25:05]line ЗНМ: 0300000027 [00:25:05]line РНМ: 0000138879044617 [00:25:05]line Версия ККМ: 001 [00:25:05]line Платежная система: Бакай Банк [00:25:05]line ФМ: 0000000000963154 [00:25:05]line ФД: 28795 [00:25:05]line ФПД: 170861447704886 [00:25:05]line 1/tax-web-control/client/api/v1/ticket?date=20240413T002505&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28795&fm=170861447704886&tin=02508201610067®Number=0000138879044617&sum=50008 [00:25:05]OFD Sender: Processing packet 28795 [packets to send 8, broken 7] [00:25:05]ProducePacketName [00:25:05]name=ofd_packets/00028795 [00:25:05]OFD Sender: To server: pG, [00:25:05]CommunicateWithHost lk.salyk.kg:30040 [00:25:05]ConnectInit lk.salyk.kg [00:25:05]written 0, free lines is 4095 [00:25:06]Write to MH i2c: 01 00 00 DF 16 F5 [00:25:06]Write i2c OK [00:25:06]MH_I2C_Read... [00:25:06]Read from MH i2c: 01 [00:25:06]MH_I2C_Read... [00:25:06]Read from MH i2c: 01 07 00 [00:25:06]MH_I2C_Read... [00:25:06]Read from MH i2c: 01 07 00 DF 16 00 00 00 00 00 D1 0C D9 [00:25:06]RasterBufferAndPrint [00:25:06]line [00:25:06]line [00:25:06]line [00:25:06]line [00:25:06]line [00:25:06]written 0, free lines is 3286 [00:25:06]MH_Cut [00:25:06]Write to MH i2c: D1 01 00 E6 16 01 CE [00:25:06]Write i2c OK [00:25:06]MH_I2C_Read... [00:25:06]Read from MH i2c: D1 [00:25:06]MH_I2C_Read... [00:25:06]Read from MH i2c: D1 01 00 [00:25:06]MH_I2C_Read... [00:25:06]Read from MH i2c: D1 01 00 E6 16 00 CD [00:25:06]Write to MH i2c: 01 00 00 E7 16 FD [00:25:06]Write i2c OK [00:25:06]MH_I2C_Read... [00:25:06]*** Cut start [00:25:06]*** Partial cut [00:25:06]*** CUTSNS_PIN = 1 [00:25:06]*** CUTSNS_PIN = 0 [00:25:07]*** Brake cut motor [00:25:07]Read from MH i2c: 01 [00:25:07]MH_I2C_Read... [00:25:07]*** Stop cut motor [00:25:07]*** Cut end [00:25:07]Read from MH i2c: 01 07 00 [00:25:07]MH_I2C_Read... [00:25:07]Read from MH i2c: 01 07 00 E7 16 00 00 00 00 00 FF 0F 12 [00:25:07]process_action close_receipt done [00:25:07]requested_data is exist [00:25:07]produce_requested_data [00:25:07]requested_item fm.sn is exist - process it [00:25:07]wFMCommunicate request_size=4 [00:25:07]MH_SAM_APDU [00:25:07]CAPDU: 80 11 00 00 [00:25:07]Write to MH i2c: E2 08 00 E8 16 80 11 00 00 00 00 00 00 78 [00:25:07]Write i2c OK [00:25:07]MH_I2C_Read... [00:25:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:25:07]Read from MH i2c: E2 [00:25:07]MH_I2C_Read... [00:25:07]Read from MH i2c: E2 17 00 [00:25:07]MH_I2C_Read... [00:25:07]Read from MH i2c: E2 17 00 E8 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 C7 [00:25:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [00:25:07]wFMCommunicate OK [00:25:07]requested_item fd.num is exist - process it [00:25:07]SAM_PROTO_GetFieldsCounters [00:25:07]wFMCommunicate request_size=4 [00:25:07]MH_SAM_APDU [00:25:07]CAPDU: 80 13 00 00 [00:25:07]Write to MH i2c: E2 08 00 E9 16 80 13 00 00 00 00 00 00 7B [00:25:07]Write i2c OK [00:25:07]MH_I2C_Read... [00:25:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:25:07]Read from MH i2c: E2 [00:25:07]MH_I2C_Read... [00:25:07]Read from MH i2c: E2 62 00 [00:25:07]MH_I2C_Read... [00:25:07]Read from MH i2c: E2 62 00 E9 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 7B 70 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 1D [00:25:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 7B 70 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:25:07]wFMCommunicate OK [00:25:07]SAM_PROTO_GetFieldsCounters done [00:25:07]requested_item shift.num is exist - process it [00:25:07]requested_item shift.opened is exist - process it [00:25:07]req_shift_opened [00:25:07]FM_GetShiftState [00:25:07]SAM_PROTO_GetShiftState [00:25:07]wFMCommunicate request_size=4 [00:25:07]MH_SAM_APDU [00:25:07]CAPDU: 80 13 01 00 [00:25:07]Write to MH i2c: E2 08 00 EA 16 80 13 01 00 00 00 00 00 7D [00:25:07]Write i2c OK [00:25:07]MH_I2C_Read... [00:25:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:25:07]Read from MH i2c: E2 [00:25:07]MH_I2C_Read... [00:25:07]Read from MH i2c: E2 0E 00 [00:25:07]MH_I2C_Read... [00:25:07]Read from MH i2c: E2 0E 00 EA 16 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 96 [00:25:07]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [00:25:07]wFMCommunicate OK [00:25:07]SAM_PROTO_GetShiftState done [00:25:07]FM_GetShiftState done [00:25:07]req_shift_opened done [00:25:07]requested_item shift.open_date is exist - process it [00:25:07]req_shift_open_date [00:25:07]req_shift_open_date done [00:25:07]produce_requested_data done [00:25:07]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28795,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [00:25:07]process_action_free close_receipt [00:25:07]json_value_free [00:25:07]json_value_free done [00:25:07]process_json_proto returns [00:25:07]Send response to host [00:25:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28795,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [00:25:07]free response buf [00:25:07]execute_script done [00:25:07]execute_script returns [00:25:07]free content buf [00:25:07]Sock 7.Close socket [00:25:07]Sock 7.Thread stoped [00:27:16]ConnectInit Can't connect to host [00:27:16]CommunicateWithHost connect error [00:27:16]CommunicateWithHost err = -1 [00:27:16]OFD Sender: Server communicate error [00:27:21]OFD Sender: Processing packet 28795 [packets to send 8, broken 7] [00:27:21]ProducePacketName [00:27:21]name=ofd_packets/00028795 [00:27:21]OFD Sender: To server: pG, [00:27:21]CommunicateWithHost lk.salyk.kg:30040 [00:27:21]ConnectInit lk.salyk.kg [00:27:21]Connected sock=7 [00:27:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 0F DF 06 01 08 27 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 E1 D0 19 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7B 70 00 00 35 04 06 00 9B 65 C7 E5 71 36 2D ED 81 FB 55 6F D4 23 [00:27:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 0E 04 47 00 05 D8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7B 70 00 00 F4 03 04 00 12 7C 19 66 B6 04 01 00 00 5B EF 4B AF 1E 5F AE 65 [00:27:22]CommunicateWithHost err = 0 [00:27:22]CheckOFDResponse [00:27:22]1017 (14) - 77093643461234 [00:27:22]1041 (16) - 0000000000963154 [00:27:22]1040 (4) - 28795 [00:27:22]1012 (4) - 12.04.2024 18:23 [00:27:22]1206 (1) - 0 [00:27:22]OFD Sender: Remove packet 28795 [00:27:22]ProducePacketName [00:27:22]name=ofd_packets/00028795 [00:27:22]NVStorageDeleteData [00:27:22]OFD Sender: No OFD packet to send [00:27:27]OFD Sender: No OFD packet to send [00:27:32]OFD Sender: No OFD packet to send [00:27:37]OFD Sender: No OFD packet to send [00:27:42]OFD Sender: No OFD packet to send [00:27:47]OFD Sender: No OFD packet to send [00:27:52]OFD Sender: No OFD packet to send [00:27:57]OFD Sender: No OFD packet to send [00:28:02]OFD Sender: No OFD packet to send [00:28:07]OFD Sender: No OFD packet to send [00:28:12]OFD Sender: No OFD packet to send [00:28:17]OFD Sender: No OFD packet to send [00:28:22]OFD Sender: No OFD packet to send [00:28:27]OFD Sender: No OFD packet to send [00:28:32]OFD Sender: No OFD packet to send [00:28:37]OFD Sender: No OFD packet to send [00:28:42]OFD Sender: No OFD packet to send [00:28:47]OFD Sender: No OFD packet to send [00:28:52]OFD Sender: No OFD packet to send [00:28:57]OFD Sender: No OFD packet to send [00:29:02]OFD Sender: No OFD packet to send [00:29:07]OFD Sender: No OFD packet to send [00:29:12]OFD Sender: No OFD packet to send [00:29:17]OFD Sender: No OFD packet to send [00:29:22]OFD Sender: No OFD packet to send [00:29:27]OFD Sender: No OFD packet to send [00:29:32]OFD Sender: No OFD packet to send [00:29:37]OFD Sender: No OFD packet to send [00:29:42]OFD Sender: No OFD packet to send [00:29:47]OFD Sender: No OFD packet to send [00:29:52]OFD Sender: No OFD packet to send [00:29:57]OFD Sender: No OFD packet to send [00:30:02]OFD Sender: No OFD packet to send [00:30:07]OFD Sender: No OFD packet to send [00:30:12]OFD Sender: No OFD packet to send [00:30:17]OFD Sender: No OFD packet to send [00:30:22]OFD Sender: No OFD packet to send [00:30:27]OFD Sender: No OFD packet to send [00:30:32]OFD Sender: No OFD packet to send [00:30:37]OFD Sender: No OFD packet to send [00:30:42]OFD Sender: No OFD packet to send [00:30:47]OFD Sender: No OFD packet to send [00:30:52]OFD Sender: No OFD packet to send [00:30:57]OFD Sender: No OFD packet to send [00:31:02]OFD Sender: No OFD packet to send [00:31:07]OFD Sender: No OFD packet to send [00:31:12]OFD Sender: No OFD packet to send [00:31:17]OFD Sender: No OFD packet to send [00:31:22]OFD Sender: No OFD packet to send [00:31:27]OFD Sender: No OFD packet to send [00:31:32]OFD Sender: No OFD packet to send [00:31:37]OFD Sender: No OFD packet to send [00:31:42]OFD Sender: No OFD packet to send [00:31:47]OFD Sender: No OFD packet to send [00:31:52]OFD Sender: No OFD packet to send [00:31:57]OFD Sender: No OFD packet to send [00:32:02]OFD Sender: No OFD packet to send [00:32:07]OFD Sender: No OFD packet to send [00:32:12]OFD Sender: No OFD packet to send [00:32:17]OFD Sender: No OFD packet to send [00:32:22]OFD Sender: No OFD packet to send [00:32:27]OFD Sender: No OFD packet to send [00:32:32]OFD Sender: No OFD packet to send [00:32:37]OFD Sender: No OFD packet to send [00:32:42]OFD Sender: No OFD packet to send [00:32:47]OFD Sender: No OFD packet to send [00:32:52]OFD Sender: No OFD packet to send [00:32:57]OFD Sender: No OFD packet to send [00:33:02]OFD Sender: No OFD packet to send [00:33:07]OFD Sender: No OFD packet to send [00:33:12]OFD Sender: No OFD packet to send [00:33:17]OFD Sender: No OFD packet to send [00:33:22]OFD Sender: No OFD packet to send [00:33:27]OFD Sender: No OFD packet to send [00:33:32]OFD Sender: No OFD packet to send [00:33:37]OFD Sender: No OFD packet to send [00:33:42]OFD Sender: No OFD packet to send [00:33:47]OFD Sender: No OFD packet to send [00:33:52]OFD Sender: No OFD packet to send [00:33:57]OFD Sender: No OFD packet to send [00:34:02]OFD Sender: No OFD packet to send [00:34:07]OFD Sender: No OFD packet to send [00:34:12]OFD Sender: No OFD packet to send [00:34:17]OFD Sender: No OFD packet to send [00:34:22]OFD Sender: No OFD packet to send [00:34:27]OFD Sender: No OFD packet to send [00:34:32]OFD Sender: No OFD packet to send [00:34:37]OFD Sender: No OFD packet to send [00:34:42]OFD Sender: No OFD packet to send [00:34:47]OFD Sender: No OFD packet to send [00:34:52]OFD Sender: No OFD packet to send [00:34:57]OFD Sender: No OFD packet to send [00:35:02]OFD Sender: No OFD packet to send [00:35:07]OFD Sender: No OFD packet to send [00:35:12]OFD Sender: No OFD packet to send [00:35:17]OFD Sender: No OFD packet to send [00:35:22]OFD Sender: No OFD packet to send [00:35:27]OFD Sender: No OFD packet to send [00:35:32]OFD Sender: No OFD packet to send [00:35:37]OFD Sender: No OFD packet to send [00:35:42]OFD Sender: No OFD packet to send [00:35:47]OFD Sender: No OFD packet to send [00:35:52]OFD Sender: No OFD packet to send [00:35:57]OFD Sender: No OFD packet to send [00:36:02]OFD Sender: No OFD packet to send [00:36:07]OFD Sender: No OFD packet to send [00:36:12]OFD Sender: No OFD packet to send [00:36:17]OFD Sender: No OFD packet to send [00:36:22]OFD Sender: No OFD packet to send [00:36:27]OFD Sender: No OFD packet to send [00:36:32]OFD Sender: No OFD packet to send [00:36:37]OFD Sender: No OFD packet to send [00:36:42]OFD Sender: No OFD packet to send [00:36:47]OFD Sender: No OFD packet to send [00:36:52]OFD Sender: No OFD packet to send [00:36:57]OFD Sender: No OFD packet to send [00:37:02]OFD Sender: No OFD packet to send [00:37:08]OFD Sender: No OFD packet to send [00:37:13]OFD Sender: No OFD packet to send [00:37:18]OFD Sender: No OFD packet to send [00:37:23]OFD Sender: No OFD packet to send [00:37:28]OFD Sender: No OFD packet to send [00:37:33]OFD Sender: No OFD packet to send [00:37:38]OFD Sender: No OFD packet to send [00:37:43]OFD Sender: No OFD packet to send [00:37:48]OFD Sender: No OFD packet to send [00:37:53]OFD Sender: No OFD packet to send [00:37:58]OFD Sender: No OFD packet to send [00:38:03]OFD Sender: No OFD packet to send [00:38:08]OFD Sender: No OFD packet to send [00:38:13]OFD Sender: No OFD packet to send [00:38:18]OFD Sender: No OFD packet to send [00:38:23]OFD Sender: No OFD packet to send [00:38:28]OFD Sender: No OFD packet to send [00:38:33]OFD Sender: No OFD packet to send [00:38:38]OFD Sender: No OFD packet to send [00:38:43]OFD Sender: No OFD packet to send [00:38:48]OFD Sender: No OFD packet to send [00:38:53]OFD Sender: No OFD packet to send [00:38:58]OFD Sender: No OFD packet to send [00:39:03]OFD Sender: No OFD packet to send [00:39:08]OFD Sender: No OFD packet to send [00:39:13]OFD Sender: No OFD packet to send [00:39:18]OFD Sender: No OFD packet to send [00:39:23]OFD Sender: No OFD packet to send [00:39:28]OFD Sender: No OFD packet to send [00:39:33]OFD Sender: No OFD packet to send [00:39:38]OFD Sender: No OFD packet to send [00:39:43]OFD Sender: No OFD packet to send [00:39:48]OFD Sender: No OFD packet to send [00:39:53]OFD Sender: No OFD packet to send [00:39:58]OFD Sender: No OFD packet to send [00:40:03]OFD Sender: No OFD packet to send [00:40:08]OFD Sender: No OFD packet to send [00:40:13]OFD Sender: No OFD packet to send [00:40:18]OFD Sender: No OFD packet to send [00:40:23]OFD Sender: No OFD packet to send [00:40:28]OFD Sender: No OFD packet to send [00:40:33]OFD Sender: No OFD packet to send [00:40:38]OFD Sender: No OFD packet to send [00:40:43]OFD Sender: No OFD packet to send [00:40:48]OFD Sender: No OFD packet to send [00:40:53]OFD Sender: No OFD packet to send [00:40:58]OFD Sender: No OFD packet to send [00:41:03]OFD Sender: No OFD packet to send [00:41:08]OFD Sender: No OFD packet to send [00:41:13]OFD Sender: No OFD packet to send [00:41:18]OFD Sender: No OFD packet to send [00:41:23]OFD Sender: No OFD packet to send [00:41:28]OFD Sender: No OFD packet to send [00:41:33]OFD Sender: No OFD packet to send [00:41:38]OFD Sender: No OFD packet to send [00:41:43]OFD Sender: No OFD packet to send [00:41:48]OFD Sender: No OFD packet to send [00:41:53]OFD Sender: No OFD packet to send [00:41:58]OFD Sender: No OFD packet to send [00:42:03]OFD Sender: No OFD packet to send [00:42:08]OFD Sender: No OFD packet to send [00:42:13]OFD Sender: No OFD packet to send [00:42:18]OFD Sender: No OFD packet to send [00:42:23]OFD Sender: No OFD packet to send [00:42:28]OFD Sender: No OFD packet to send [00:42:33]OFD Sender: No OFD packet to send [00:42:35]accept exits with 9 [00:42:35]New connection [00:42:35]New thread 3066785124 created [00:42:35]Thread 3066928484 joined [00:42:35]Waiting for new connection... [00:42:35] Sock 9.Parse request [00:42:35]Sock 9.Check first char [00:42:35]Sock 9.First char is OK [00:42:35]request: POST /json_proto HTTP/1.0 [00:42:35]Method: POST [00:42:35]URL: /json_proto [00:42:35]Method is POST - this is cgi request [00:42:35]url: /json_proto [00:42:35]query_string will be loaded in cgi processing [00:42:35]execute_cgi json_proto POST (null) [00:42:35]execute_cgi path=json_proto method=POST [00:42:35]POST find Content-Length [00:42:35]Host: 172.17.33.3:8080 [00:42:35]Content-Length: 677 [00:42:35]Content-Type: application/json [00:42:35] [00:42:35]POST finish read [00:42:35]Found Content-Length = 677 [00:42:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347142", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 9.490, "sum" : 610.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 610.00, "total" : 610.00, "payments": [ { "type": 0, "sum" : 610.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:42:35]execute_script... [00:42: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)347142", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 9.490, "sum" : 610.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 610.00, "total" : 610.00, "payments": [ { "type": 0, "sum" : 610.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:42:35]POST & json_proto [00:42:35]process_json_proto [00:42:35]json parsed OK: [00:42:35]protocol is kg_v1.0 [00:42:35]action value=close_receipt [00:42:35]process_action close_receipt [00:42:35]cmd_close_receipt [00:42:35]MH_GetDate [00:42:35]Write to MH i2c: F0 00 00 EB 16 F0 [00:42:35]Write i2c OK [00:42:35]MH_I2C_Read... [00:42:35]Read from MH i2c: F0 [00:42:35]MH_I2C_Read... [00:42:35]Read from MH i2c: F0 09 00 [00:42:35]MH_I2C_Read... [00:42:35]Read from MH i2c: F0 09 00 EB 16 00 FD D4 19 66 23 5B 8F 65 BB [00:42:35]GetLastDocTimeStamp 1712967905 [00:42:35]current date 1712968957 [00:42:35]FM_GetShiftState [00:42:35]SAM_PROTO_GetShiftState [00:42:35]wFMCommunicate request_size=4 [00:42:35]MH_SAM_APDU [00:42:35]CAPDU: 80 13 01 00 [00:42:35]Write to MH i2c: E2 08 00 EC 16 80 13 01 00 00 00 00 00 7F [00:42:35]Write i2c OK [00:42:35]MH_I2C_Read... [00:42:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:42:36]Read from MH i2c: E2 [00:42:36]MH_I2C_Read... [00:42:36]Read from MH i2c: E2 0E 00 [00:42:36]MH_I2C_Read... [00:42:36]Read from MH i2c: E2 0E 00 EC 16 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 98 [00:42:36]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [00:42:36]wFMCommunicate OK [00:42:36]SAM_PROTO_GetShiftState done [00:42:36]FM_GetShiftState done [00:42:36]opened in 1712967615 [00:42:36]opened+sec_in_day 1713054015 [00:42:36]quantity*price = 61020 [00:42:36]sum+1 = 61022 [00:42:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 610.00 Внесено: 610.00 СДАЧА: 0.00 НСП 1% : 5.40 НДС 12% : 64.80 Наличными: 610.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 3 13.04.2024 00:42 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28796 ФПД: 174515925848776 1/tax-web-control/client/api/v1/ticket?date=20240413T004238&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28796&fm=174515925848776&tin=02508201610067®Number=0000138879044617&sum=61000 [00:42:37]StoreToDocumentArchive [00:42:37]shift 115 fd 28796 [00:42:37]save to /storage/0115/doc_00028796 [00:42:37]save last doc name /storage/0115/doc_00028796 to /storage/kkm_last_doc_name [00:42:37]save OK [00:42:37]Clear old archive folders... [00:42:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:42:37]tlvbuf is 01200060 [00:42:37]SAM_PROTO_ClearQueue [00:42:37]wFMCommunicate request_size=4 [00:42:37]MH_SAM_APDU [00:42:37]CAPDU: 80 09 00 00 [00:42:37]Write to MH i2c: E2 08 00 F9 16 80 09 00 00 00 00 00 00 81 [00:42:37]Write i2c OK [00:42:37]MH_I2C_Read... [00:42:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:42:37]Read from MH i2c: E2 [00:42:37]MH_I2C_Read... [00:42:37]Read from MH i2c: E2 03 00 [00:42:37]MH_I2C_Read... [00:42:37]Read from MH i2c: E2 03 00 F9 16 00 90 00 83 [00:42:37]RAPDU: 90 00 [00:42:37]wFMCommunicate OK [00:42:37]SAM_PROTO_ClearQueue done [00:42:37]KKMCreateOFDPacket [00:42:37]OFDProtocolAddRootSTLVToBuf [00:42:37]FM_MakeSignedData [00:42:37]FM_MakeSignedData [00:42:37]SAM_PROTO_SignData [00:42:37]wFMCommunicate request_size=4 [00:42:37]MH_SAM_APDU [00:42:37]CAPDU: 80 0D 01 02 [00:42:37]Write to MH i2c: E2 08 00 FA 16 80 0D 01 02 00 00 00 00 89 [00:42:37]Write i2c OK [00:42:37]MH_I2C_Read... [00:42:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:42:37]Read from MH i2c: E2 [00:42:37]MH_I2C_Read... [00:42:37]Read from MH i2c: E2 03 00 [00:42:37]MH_I2C_Read... [00:42:37]Read from MH i2c: E2 03 00 FA 16 00 90 00 84 [00:42:37]RAPDU: 90 00 [00:42:37]wFMCommunicate OK [00:42:37]wFMCommunicate request_size=255 [00:42:37]MH_SAM_APDU [00:42:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 25 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 5D EE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 EE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 19 00 00 00 00 07 04 06 00 48 EE 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 FE D4 19 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7C 70 00 00 35 04 06 00 9E [00:42:37]Write to MH i2c: E2 02 01 FB 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 25 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 5D EE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 EE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 19 00 00 00 00 07 04 06 00 48 EE 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 FE D4 19 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7C 70 00 00 35 04 06 00 9E 00 00 AD [00:42:37]Write i2c OK [00:42:37]MH_I2C_Read... [00:42:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:42:37]Read from MH i2c: E2 [00:42:37]MH_I2C_Read... [00:42:37]Read from MH i2c: E2 03 00 [00:42:37]MH_I2C_Read... [00:42:37]Read from MH i2c: E2 03 00 FB 16 00 90 00 85 [00:42:37]RAPDU: 90 00 [00:42:37]wFMCommunicate OK [00:42:37]wFMCommunicate request_size=10 [00:42:37]MH_SAM_APDU [00:42:37]CAPDU: 80 0D 02 02 05 B8 A7 C4 92 C8 [00:42:37]Write to MH i2c: E2 0D 00 FC 16 80 0D 02 02 05 00 B8 A7 C4 92 C8 00 00 13 [00:42:37]Write i2c OK [00:42:37]MH_I2C_Read... [00:42:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:42:37]Read from MH i2c: E2 [00:42:37]MH_I2C_Read... [00:42:37]Read from MH i2c: E2 03 00 [00:42:37]MH_I2C_Read... [00:42:37]Read from MH i2c: E2 03 00 FC 16 00 90 00 86 [00:42:37]RAPDU: 90 00 [00:42:37]wFMCommunicate OK [00:42:37]wFMCommunicate request_size=4 [00:42:37]MH_SAM_APDU [00:42:37]CAPDU: 80 0D 03 02 [00:42:37]Write to MH i2c: E2 08 00 FD 16 80 0D 03 02 00 00 00 00 8E [00:42:37]Write i2c OK [00:42:37]MH_I2C_Read... [00:42:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:42:37]Read from MH i2c: E2 [00:42:37]MH_I2C_Read... [00:42:37]Read from MH i2c: E2 0B 00 [00:42:37]MH_I2C_Read... [00:42:37]Read from MH i2c: E2 0B 00 FD 16 00 20 A7 58 3A 3D BF 7B CC 90 00 2B [00:42:37]RAPDU: 20 A7 58 3A 3D BF 7B CC 90 00 [00:42:37]wFMCommunicate OK [00:42:37]SAM_PROTO_SignData done [00:42:37]FM_MakeSignedData done [00:42:37]CreateOFDProtocolMessage [00:42:37]wFMCommunicate request_size=4 [00:42:37]MH_SAM_APDU [00:42:37]CAPDU: 80 11 00 00 [00:42:37]Write to MH i2c: E2 08 00 FE 16 80 11 00 00 00 00 00 00 8E [00:42:37]Write i2c OK [00:42:37]MH_I2C_Read... [00:42:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:42:37]Read from MH i2c: E2 [00:42:37]MH_I2C_Read... [00:42:37]Read from MH i2c: E2 17 00 [00:42:37]MH_I2C_Read... [00:42:37]Read from MH i2c: E2 17 00 FE 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 DD [00:42:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [00:42:37]wFMCommunicate OK [00:42:37]CreateOFDProtocolMessage done [00:42:37]OFDSenderStorePacket 28796 [00:42:37]StoreOFDPacket docnum=28796 [00:42:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 33 47 07 01 D2 FE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 25 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 5D EE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 EE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 19 00 00 00 00 07 04 06 00 48 EE 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 FE D4 19 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7C 70 00 00 35 04 06 00 9E B8 A7 C4 92 C8 20 A7 58 3A 3D BF 7B CC [00:42:37]CheckFolder [00:42:37]dirname=/storage/ofd_packets [00:42:37]CheckFolder done [00:42:37]ProducePacketName [00:42:37]name=ofd_packets/00028796 [00:42:37]NVStorageSaveData ofd_packets/00028796 [00:42:37]File name is /storage/ofd_packets/00028796 [00:42:37]Write 301 bytes [00:42:37]NVStorageSaveData done [00:42:37]OFDSenderStorePacket done [00:42:37]KKMCreateOFDPacket done [00:42:37]NVStorageSaveData kkm_last_timestamp [00:42:37]File name is /storage/kkm_last_timestamp [00:42:37]Write 4 bytes [00:42:37]NVStorageSaveData done [00:42:37]ExternCall_PrintAddStr [00:42:37]wPrintStart [00:42:37]Write to MH i2c: 01 00 00 FF 16 15 [00:42:37]Write i2c OK [00:42:37]MH_I2C_Read... [00:42:37]Read from MH i2c: 01 [00:42:37]MH_I2C_Read... [00:42:37]Read from MH i2c: 01 07 00 [00:42:37]MH_I2C_Read... [00:42:37]Read from MH i2c: 01 07 00 FF 16 00 00 00 00 00 FF 0F 2A [00:42:37]RasterBufferAndPrint [00:42:37]line Счет N : (1)347142 [00:42:37]line ИНН: 02508201610067 [00:42:37]line Контрольно-Кассовый Чек [00:42:37]line ПРОДАЖА [00:42:37]line ТРК (МРК, ГНК) : 32 [00:42:37]line Товар: 2710124130 [00:42:37]line Аи-92-К-5 [00:42:37]line 9.490 * 64.30 [00:42:37]line = 610.21 [00:42:37]line НДС 12% НСП 1% [00:42:37]line > о реализуемом товаре [00:42:37]line ОКРУГЛЕНИЕ: -0.21 [00:42:37]line ИТОГО: 610.00 [00:42:37]line Внесено: 610.00 [00:42:37]line СДАЧА: 0.00 [00:42:37]line НСП 1% : 5.40 [00:42:37]line НДС 12% : 64.80 [00:42:37]line Наличными: 610.00 [00:42:37]line Безнал.: 0.00 [00:42:37]line Место: АЗС № 108 "Партнер Нефть" [00:42:37]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [00:42:37]line СНО: Общий режим [00:42:37]line Чек 3 13.04.2024 00:42 [00:42:37]line Смена: 115 ФФД: 1.0 [00:42:37]line ЗНМ: 0300000027 [00:42:37]line РНМ: 0000138879044617 [00:42:37]line Версия ККМ: 001 [00:42:37]line ФМ: 0000000000963154 [00:42:37]line ФД: 28796 [00:42:37]line ФПД: 174515925848776 [00:42:37]line 1/tax-web-control/client/api/v1/ticket?date=20240413T004238&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28796&fm=174515925848776&tin=02508201610067®Number=0000138879044617&sum=61000 [00:42:37]OFD Sender: Processing packet 28796 [packets to send 8, broken 7] [00:42:37]ProducePacketName [00:42:37]name=ofd_packets/00028796 [00:42:37]OFD Sender: To server: pG, [00:42:37]CommunicateWithHost lk.salyk.kg:30040 [00:42:37]ConnectInit lk.salyk.kg [00:42:38]written 0, free lines is 4095 [00:42:38]Connected sock=10 [00:42:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 33 47 07 01 D2 FE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 25 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 5D EE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 EE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 19 00 00 00 00 07 04 06 00 48 EE 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 FE D4 19 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7C 70 00 00 35 04 06 00 9E B8 A7 C4 92 C8 20 A7 58 3A 3D BF 7B CC [00:42:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 9D F1 47 00 DA D6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7C 70 00 00 F4 03 04 00 A6 7F 19 66 B6 04 01 00 00 9E CA 50 C9 3D 60 AE F7 [00:42:38]CommunicateWithHost err = 0 [00:42:38]CheckOFDResponse [00:42:38]1017 (14) - 77093643461234 [00:42:38]1041 (16) - 0000000000963154 [00:42:38]1040 (4) - 28796 [00:42:38]1012 (4) - 12.04.2024 18:38 [00:42:38]1206 (1) - 0 [00:42:38]OFD Sender: Remove packet 28796 [00:42:38]ProducePacketName [00:42:38]name=ofd_packets/00028796 [00:42:38]NVStorageDeleteData [00:42:38]Write to MH i2c: 01 00 00 29 17 40 [00:42:38]Write i2c OK [00:42:38]MH_I2C_Read... [00:42:38]Read from MH i2c: 01 [00:42:38]MH_I2C_Read... [00:42:38]Read from MH i2c: 01 07 00 [00:42:38]MH_I2C_Read... [00:42:38]Read from MH i2c: 01 07 00 29 17 00 00 00 00 00 D0 0C 23 [00:42:38]RasterBufferAndPrint [00:42:38]line [00:42:38]line [00:42:38]line [00:42:38]line [00:42:38]line [00:42:38]written 0, free lines is 3286 [00:42:38]MH_Cut [00:42:38]Write to MH i2c: D1 01 00 30 17 01 19 [00:42:38]Write i2c OK [00:42:38]MH_I2C_Read... [00:42:38]Read from MH i2c: D1 [00:42:38]MH_I2C_Read... [00:42:38]Read from MH i2c: D1 01 00 [00:42:38]MH_I2C_Read... [00:42:38]Read from MH i2c: D1 01 00 30 17 00 18 [00:42:38]Write to MH i2c: 01 00 00 31 17 48 [00:42:38]Write i2c OK [00:42:38]MH_I2C_Read... [00:42:38]OFD Sender: No OFD packet to send [00:42:39]*** Cut start [00:42:39]*** Partial cut [00:42:39]*** CUTSNS_PIN = 1 [00:42:39]*** CUTSNS_PIN = 0 [00:42:39]*** Brake cut motor [00:42:39]Read from MH i2c: 01 [00:42:39]MH_I2C_Read... [00:42:39]*** Stop cut motor [00:42:39]*** Cut end [00:42:39]Read from MH i2c: 01 07 00 [00:42:39]MH_I2C_Read... [00:42:39]Read from MH i2c: 01 07 00 31 17 00 00 00 00 00 FF 0F 5D [00:42:39]process_action close_receipt done [00:42:39]requested_data is exist [00:42:39]produce_requested_data [00:42:39]requested_item fm.sn is exist - process it [00:42:39]wFMCommunicate request_size=4 [00:42:39]MH_SAM_APDU [00:42:39]CAPDU: 80 11 00 00 [00:42:39]Write to MH i2c: E2 08 00 32 17 80 11 00 00 00 00 00 00 C3 [00:42:39]Write i2c OK [00:42:39]MH_I2C_Read... [00:42:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:42:39]Read from MH i2c: E2 [00:42:39]MH_I2C_Read... [00:42:39]Read from MH i2c: E2 17 00 [00:42:39]MH_I2C_Read... [00:42:39]Read from MH i2c: E2 17 00 32 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 12 [00:42:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [00:42:39]wFMCommunicate OK [00:42:39]requested_item fd.num is exist - process it [00:42:39]SAM_PROTO_GetFieldsCounters [00:42:39]wFMCommunicate request_size=4 [00:42:39]MH_SAM_APDU [00:42:39]CAPDU: 80 13 00 00 [00:42:39]Write to MH i2c: E2 08 00 33 17 80 13 00 00 00 00 00 00 C6 [00:42:39]Write i2c OK [00:42:39]MH_I2C_Read... [00:42:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:42:40]Read from MH i2c: E2 [00:42:40]MH_I2C_Read... [00:42:40]Read from MH i2c: E2 62 00 [00:42:40]MH_I2C_Read... [00:42:40]Read from MH i2c: E2 62 00 33 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 7C 70 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 6C [00:42:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 7C 70 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 [00:42:40]wFMCommunicate OK [00:42:40]SAM_PROTO_GetFieldsCounters done [00:42:40]requested_item shift.num is exist - process it [00:42:40]requested_item shift.opened is exist - process it [00:42:40]req_shift_opened [00:42:40]FM_GetShiftState [00:42:40]SAM_PROTO_GetShiftState [00:42:40]wFMCommunicate request_size=4 [00:42:40]MH_SAM_APDU [00:42:40]CAPDU: 80 13 01 00 [00:42:40]Write to MH i2c: E2 08 00 34 17 80 13 01 00 00 00 00 00 C8 [00:42:40]Write i2c OK [00:42:40]MH_I2C_Read... [00:42:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:42:40]Read from MH i2c: E2 [00:42:40]MH_I2C_Read... [00:42:40]Read from MH i2c: E2 0E 00 [00:42:40]MH_I2C_Read... [00:42:40]Read from MH i2c: E2 0E 00 34 17 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 E1 [00:42:40]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [00:42:40]wFMCommunicate OK [00:42:40]SAM_PROTO_GetShiftState done [00:42:40]FM_GetShiftState done [00:42:40]req_shift_opened done [00:42:40]requested_item shift.open_date is exist - process it [00:42:40]req_shift_open_date [00:42:40]req_shift_open_date done [00:42:40]produce_requested_data done [00:42:40]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28796,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [00:42:40]process_action_free close_receipt [00:42:40]json_value_free [00:42:40]json_value_free done [00:42:40]process_json_proto returns [00:42:40]Send response to host [00:42:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28796,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [00:42:40]free response buf [00:42:40]execute_script done [00:42:40]execute_script returns [00:42:40]free content buf [00:42:40]Sock 9.Close socket [00:42:40]Sock 9.Thread stoped [00:42:43]OFD Sender: No OFD packet to send [00:42:48]OFD Sender: No OFD packet to send [00:42:53]OFD Sender: No OFD packet to send [00:42:58]OFD Sender: No OFD packet to send [00:43:03]OFD Sender: No OFD packet to send [00:43:08]OFD Sender: No OFD packet to send [00:43:13]OFD Sender: No OFD packet to send [00:43:18]OFD Sender: No OFD packet to send [00:43:23]OFD Sender: No OFD packet to send [00:43:28]OFD Sender: No OFD packet to send [00:43:33]OFD Sender: No OFD packet to send [00:43:38]OFD Sender: No OFD packet to send [00:43:43]OFD Sender: No OFD packet to send [00:43:48]OFD Sender: No OFD packet to send [00:43:53]OFD Sender: No OFD packet to send [00:43:58]OFD Sender: No OFD packet to send [00:44:03]OFD Sender: No OFD packet to send [00:44:08]OFD Sender: No OFD packet to send [00:44:13]OFD Sender: No OFD packet to send [00:44:18]OFD Sender: No OFD packet to send [00:44:23]OFD Sender: No OFD packet to send [00:44:28]OFD Sender: No OFD packet to send [00:44:33]OFD Sender: No OFD packet to send [00:44:38]OFD Sender: No OFD packet to send [00:44:43]OFD Sender: No OFD packet to send [00:44:48]OFD Sender: No OFD packet to send [00:44:53]OFD Sender: No OFD packet to send [00:44:58]OFD Sender: No OFD packet to send [00:45:03]OFD Sender: No OFD packet to send [00:45:08]OFD Sender: No OFD packet to send [00:45:13]OFD Sender: No OFD packet to send [00:45:18]OFD Sender: No OFD packet to send [00:45:23]OFD Sender: No OFD packet to send [00:45:28]OFD Sender: No OFD packet to send [00:45:33]OFD Sender: No OFD packet to send [00:45:38]OFD Sender: No OFD packet to send [00:45:43]OFD Sender: No OFD packet to send [00:45:48]OFD Sender: No OFD packet to send [00:45:53]OFD Sender: No OFD packet to send [00:45:58]OFD Sender: No OFD packet to send [00:46:03]OFD Sender: No OFD packet to send [00:46:08]OFD Sender: No OFD packet to send [00:46:13]OFD Sender: No OFD packet to send [00:46:18]OFD Sender: No OFD packet to send [00:46:23]OFD Sender: No OFD packet to send [00:46:28]OFD Sender: No OFD packet to send [00:46:33]OFD Sender: No OFD packet to send [00:46:38]OFD Sender: No OFD packet to send [00:46:43]OFD Sender: No OFD packet to send [00:46:48]OFD Sender: No OFD packet to send [00:46:53]OFD Sender: No OFD packet to send [00:46:58]OFD Sender: No OFD packet to send [00:47:03]OFD Sender: No OFD packet to send [00:47:08]OFD Sender: No OFD packet to send [00:47:13]OFD Sender: No OFD packet to send [00:47:18]OFD Sender: No OFD packet to send [00:47: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:28]int [00:55:28]Write to MH i2c: 01 00 00 35 17 4C [00:55:28]*** FLAG_PRN_KEY set [00:55:28]Write i2c OK [00:55:28]MH_I2C_Read... [00:55:28]Read from MH i2c: 01 [00:55:28]MH_I2C_Read... [00:55:28]Read from MH i2c: 01 07 00 [00:55:28]MH_I2C_Read... [00:55:28]Read from MH i2c: 01 07 00 35 17 00 08 00 00 00 FF 0F 69 [00:55:28]state=0 [00:55:28]Key pressed [00:55:28]Feed [00:55:28]Write to MH i2c: D8 00 00 36 17 24 [00:55:28]Write i2c OK [00:55:28]MH_I2C_Read... [00:55:28]Read from MH i2c: D8 [00:55:28]MH_I2C_Read... [00:55:28]Read from MH i2c: D8 01 00 [00:55:28]MH_I2C_Read... [00:55:28]Read from MH i2c: D8 01 00 36 17 00 25 [00:55:28]int [00:55:28]Write to MH i2c: 01 00 00 37 17 4E [00:55:28]Write i2c OK [00:55:28]MH_I2C_Read... [00:55:28]Read from MH i2c: 01 [00:55:28]MH_I2C_Read... [00:55:28]Read from MH i2c: 01 07 00 [00:55:28]MH_I2C_Read... [00:55:28]Read from MH i2c: 01 07 00 37 17 00 48 00 00 00 3C 00 D9 [00:55:28]state=2 [00:55:28]Key pressed [00:55:28]int [00:55:28]Write to MH i2c: 01 00 00 38 17 4F [00:55:28]*** FLAG_PRN_KEY reset [00:55:28]Write i2c OK [00:55:28]MH_I2C_Read... [00:55:28]Read from MH i2c: 01 [00:55:28]MH_I2C_Read... [00:55:28]Read from MH i2c: 01 07 00 [00:55:28]MH_I2C_Read... [00:55:28]Read from MH i2c: 01 07 00 38 17 00 00 00 00 00 F5 0F 5A [00:55:28]state=2 [00:55:28]Stop feed [00:55:28]int [00:55:28]Write to MH i2c: 01 00 00 39 17 50 [00:55:28]*** FLAG_PRN_KEY set [00:55:28]Write i2c OK [00:55:28]MH_I2C_Read... [00:55:28]Read from MH i2c: 01 [00:55:28]MH_I2C_Read... [00:55:28]Read from MH i2c: 01 07 00 [00:55:28]MH_I2C_Read... [00:55:28]Read from MH i2c: 01 07 00 39 17 00 08 00 00 00 FF 0F 6D [00:55:28]state=0 [00:55:28]Key pressed [00:55:28]Feed [00:55:28]Write to MH i2c: D8 00 00 3A 17 28 [00:55:28]Write i2c OK [00:55:28]MH_I2C_Read... [00:55:28]Read from MH i2c: D8 [00:55:28]MH_I2C_Read... [00:55:28]Read from MH i2c: D8 01 00 [00:55:28]MH_I2C_Read... [00:55:28]Read from MH i2c: D8 01 00 3A 17 00 29 [00:55:28]int [00:55:28]Write to MH i2c: 01 00 00 3B 17 52 [00:55:28]Write i2c OK [00:55:28]MH_I2C_Read... [00:55:28]Read from MH i2c: 01 [00:55:28]MH_I2C_Read... [00:55:28]Read from MH i2c: 01 07 00 [00:55:28]MH_I2C_Read... [00:55:28]Read from MH i2c: 01 07 00 3B 17 00 48 00 00 00 3C 00 DD [00:55:28]state=2 [00:55:28]Key pressed [00:55:29]OFD Sender: No OFD packet to send [00:55:29]int [00:55:29]Write to MH i2c: 01 00 00 3C 17 53 [00:55:29]*** FLAG_PRN_KEY reset [00:55:29]Write i2c OK [00:55:29]MH_I2C_Read... [00:55:29]Read from MH i2c: 01 [00:55:29]MH_I2C_Read... [00:55:29]Read from MH i2c: 01 07 00 [00:55:29]MH_I2C_Read... [00:55:29]Read from MH i2c: 01 07 00 3C 17 00 00 00 00 00 F6 0F 5F [00:55:29]state=2 [00:55:29]Stop feed [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:09]OFD Sender: No OFD packet to send [00:59:14]OFD Sender: No OFD packet to send [00:59:19]OFD Sender: No OFD packet to send [00:59:24]OFD Sender: No OFD packet to send [00:59:29]OFD Sender: No OFD packet to send [00:59:34]OFD Sender: No OFD packet to send [00:59:39]OFD Sender: No OFD packet to send [00:59:44]OFD Sender: No OFD packet to send [00:59:49]OFD Sender: No OFD packet to send [00:59:54]OFD Sender: No OFD packet to send [00:59:59]OFD Sender: No OFD packet to send [01:00:04]OFD Sender: No OFD packet to send [01:00:09]OFD Sender: No OFD packet to send [01:00:14]OFD Sender: No OFD packet to send [01:00:19]OFD Sender: No OFD packet to send [01:00:24]OFD Sender: No OFD packet to send [01:00:29]OFD Sender: No OFD packet to send [01:00:34]OFD Sender: No OFD packet to send [01:00:39]OFD Sender: No OFD packet to send [01:00:44]OFD Sender: No OFD packet to send [01:00:49]OFD Sender: No OFD packet to send [01:00:54]OFD Sender: No OFD packet to send [01:00:59]OFD Sender: No OFD packet to send [01:01:04]OFD Sender: No OFD packet to send [01:01:09]OFD Sender: No OFD packet to send [01:01:14]OFD Sender: No OFD packet to send [01:01:19]OFD Sender: No OFD packet to send [01:01:24]OFD Sender: No OFD packet to send [01:01:29]OFD Sender: No OFD packet to send [01:01:34]OFD Sender: No OFD packet to send [01:01:39]OFD Sender: No OFD packet to send [01:01:44]OFD Sender: No OFD packet to send [01:01:49]OFD Sender: No OFD packet to send [01:01:54]OFD Sender: No OFD packet to send [01:01:59]OFD Sender: No OFD packet to send [01:02:04]OFD Sender: No OFD packet to send [01:02:09]OFD Sender: No OFD packet to send [01:02:14]OFD Sender: No OFD packet to send [01:02:19]OFD Sender: No OFD packet to send [01:02:24]OFD Sender: No OFD packet to send [01:02:29]OFD Sender: No OFD packet to send [01:02:34]OFD Sender: No OFD packet to send [01:02:39]OFD Sender: No OFD packet to send [01:02:44]OFD Sender: No OFD packet to send [01:02:49]OFD Sender: No OFD packet to send [01:02:54]OFD Sender: No OFD packet to send [01:02:59]OFD Sender: No OFD packet to send [01:03:04]OFD Sender: No OFD packet to send [01:03:09]OFD Sender: No OFD packet to send [01:03:14]OFD Sender: No OFD packet to send [01:03:19]OFD Sender: No OFD packet to send [01:03:24]OFD Sender: No OFD packet to send [01:03:29]OFD Sender: No OFD packet to send [01:03:34]OFD Sender: No OFD packet to send [01:03:39]OFD Sender: No OFD packet to send [01:03:44]OFD Sender: No OFD packet to send [01:03:49]OFD Sender: No OFD packet to send [01:03:54]OFD Sender: No OFD packet to send [01:03:59]OFD Sender: No OFD packet to send [01:04:04]OFD Sender: No OFD packet to send [01:04:09]OFD Sender: No OFD packet to send [01:04:14]OFD Sender: No OFD packet to send [01:04:19]OFD Sender: No OFD packet to send [01:04:24]OFD Sender: No OFD packet to send [01:04:29]OFD Sender: No OFD packet to send [01:04:34]OFD Sender: No OFD packet to send [01:04:39]OFD Sender: No OFD packet to send [01:04:44]OFD Sender: No OFD packet to send [01:04:49]OFD Sender: No OFD packet to send [01:04:54]OFD Sender: No OFD packet to send [01:04:59]OFD Sender: No OFD packet to send [01:05:04]OFD Sender: No OFD packet to send [01:05:09]OFD Sender: No OFD packet to send [01:05:14]OFD Sender: No OFD packet to send [01:05:19]OFD Sender: No OFD packet to send [01:05:24]OFD Sender: No OFD packet to send [01:05:29]OFD Sender: No OFD packet to send [01:05:34]OFD Sender: No OFD packet to send [01:05:39]OFD Sender: No OFD packet to send [01:05:44]OFD Sender: No OFD packet to send [01:05:49]OFD Sender: No OFD packet to send [01:05:54]OFD Sender: No OFD packet to send [01:05:59]OFD Sender: No OFD packet to send [01:06:04]OFD Sender: No OFD packet to send [01:06:09]OFD Sender: No OFD packet to send [01:06:14]OFD Sender: No OFD packet to send [01:06:19]OFD Sender: No OFD packet to send [01:06:24]OFD Sender: No OFD packet to send [01:06:29]OFD Sender: No OFD packet to send [01:06:34]OFD Sender: No OFD packet to send [01:06:39]OFD Sender: No OFD packet to send [01:06:44]OFD Sender: No OFD packet to send [01:06:49]OFD Sender: No OFD packet to send [01:06:54]OFD Sender: No OFD packet to send [01:06:59]OFD Sender: No OFD packet to send [01:07:04]OFD Sender: No OFD packet to send [01:07:09]OFD Sender: No OFD packet to send [01:07:14]OFD Sender: No OFD packet to send [01:07:19]OFD Sender: No OFD packet to send [01:07:24]OFD Sender: No OFD packet to send [01:07:29]OFD Sender: No OFD packet to send [01:07:34]OFD Sender: No OFD packet to send [01:07:39]OFD Sender: No OFD packet to send [01:07:44]OFD Sender: No OFD packet to send [01:07:49]OFD Sender: No OFD packet to send [01:07:54]OFD Sender: No OFD packet to send [01:07:59]OFD Sender: No OFD packet to send [01:08:04]OFD Sender: No OFD packet to send [01:08:09]OFD Sender: No OFD packet to send [01:08:14]OFD Sender: No OFD packet to send [01:08:20]OFD Sender: No OFD packet to send [01:08:25]OFD Sender: No OFD packet to send [01:08:30]OFD Sender: No OFD packet to send [01:08:35]OFD Sender: No OFD packet to send [01:08:40]OFD Sender: No OFD packet to send [01:08:45]OFD Sender: No OFD packet to send [01:08:50]OFD Sender: No OFD packet to send [01:08:55]OFD Sender: No OFD packet to send [01:09:00]OFD Sender: No OFD packet to send [01:09:05]OFD Sender: No OFD packet to send [01:09:10]OFD Sender: No OFD packet to send [01:09:15]OFD Sender: No OFD packet to send [01:09:20]OFD Sender: No OFD packet to send [01:09:25]OFD Sender: No OFD packet to send [01:09:30]OFD Sender: No OFD packet to send [01:09:35]OFD Sender: No OFD packet to send [01:09:40]OFD Sender: No OFD packet to send [01:09:45]OFD Sender: No OFD packet to send [01:09:50]OFD Sender: No OFD packet to send [01:09:55]OFD Sender: No OFD packet to send [01:10:00]OFD Sender: No OFD packet to send [01:10:05]OFD Sender: No OFD packet to send [01:10:10]OFD Sender: No OFD packet to send [01:10:15]OFD Sender: No OFD packet to send [01:10:20]OFD Sender: No OFD packet to send [01:10:25]OFD Sender: No OFD packet to send [01:10:30]OFD Sender: No OFD packet to send [01:10:35]OFD Sender: No OFD packet to send [01:10:40]OFD Sender: No OFD packet to send [01:10:45]OFD Sender: No OFD packet to send [01:10:50]OFD Sender: No OFD packet to send [01:10:55]OFD Sender: No OFD packet to send [01:11:00]OFD Sender: No OFD packet to send [01:11:05]OFD Sender: No OFD packet to send [01:11:10]OFD Sender: No OFD packet to send [01:11:15]OFD Sender: No OFD packet to send [01:11:20]OFD Sender: No OFD packet to send [01:11:25]OFD Sender: No OFD packet to send [01:11:30]OFD Sender: No OFD packet to send [01:11:35]OFD Sender: No OFD packet to send [01:11:40]OFD Sender: No OFD packet to send [01:11:45]OFD Sender: No OFD packet to send [01:11:50]OFD Sender: No OFD packet to send [01:11:55]OFD Sender: No OFD packet to send [01:12:00]OFD Sender: No OFD packet to send [01:12:05]OFD Sender: No OFD packet to send [01:12:10]OFD Sender: No OFD packet to send [01:12:15]OFD Sender: No OFD packet to send [01:12:20]OFD Sender: No OFD packet to send [01:12:25]OFD Sender: No OFD packet to send [01:12:30]OFD Sender: No OFD packet to send [01:12:35]OFD Sender: No OFD packet to send [01:12:40]OFD Sender: No OFD packet to send [01:12:45]OFD Sender: No OFD packet to send [01:12:50]OFD Sender: No OFD packet to send [01:12:55]OFD Sender: No OFD packet to send [01:13:00]OFD Sender: No OFD packet to send [01:13:05]OFD Sender: No OFD packet to send [01:13:10]OFD Sender: No OFD packet to send [01:13:15]OFD Sender: No OFD packet to send [01:13:20]OFD Sender: No OFD packet to send [01:13:25]OFD Sender: No OFD packet to send [01:13:30]OFD Sender: No OFD packet to send [01:13:35]OFD Sender: No OFD packet to send [01:13:40]OFD Sender: No OFD packet to send [01:13:45]OFD Sender: No OFD packet to send [01:13:50]OFD Sender: No OFD packet to send [01:13:55]OFD Sender: No OFD packet to send [01:14:00]OFD Sender: No OFD packet to send [01:14:05]OFD Sender: No OFD packet to send [01:14:10]OFD Sender: No OFD packet to send [01:14:15]OFD Sender: No OFD packet to send [01:14:20]OFD Sender: No OFD packet to send [01:14:25]OFD Sender: No OFD packet to send [01:14:30]OFD Sender: No OFD packet to send [01:14:35]OFD Sender: No OFD packet to send [01:14:40]OFD Sender: No OFD packet to send [01:14:45]OFD Sender: No OFD packet to send [01:14:50]OFD Sender: No OFD packet to send [01:14:55]OFD Sender: No OFD packet to send [01:15:00]OFD Sender: No OFD packet to send [01:15:05]OFD Sender: No OFD packet to send [01:15:10]OFD Sender: No OFD packet to send [01:15:15]OFD Sender: No OFD packet to send [01:15:20]OFD Sender: No OFD packet to send [01:15:20]accept exits with 7 [01:15:20]New connection [01:15:20]New thread 3066928484 created [01:15:20]Thread 3066785124 joined [01:15:20]Waiting for new connection... [01:15:20] Sock 7.Parse request [01:15:20]Sock 7.Check first char [01:15:20]Sock 7.First char is OK [01:15:20]request: POST /json_proto HTTP/1.0 [01:15:20]Method: POST [01:15:20]URL: /json_proto [01:15:20]Method is POST - this is cgi request [01:15:20]url: /json_proto [01:15:20]query_string will be loaded in cgi processing [01:15:20]execute_cgi json_proto POST (null) [01:15:20]execute_cgi path=json_proto method=POST [01:15:20]POST find Content-Length [01:15:20]Host: 172.17.33.3:8080 [01:15:20]Content-Length: 840 [01:15:20]Content-Type: application/json [01:15:20] [01:15:20]POST finish read [01:15:20]Found Content-Length = 840 [01:15:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347143", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 7.780, "sum" : 500.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:15:20]execute_script... [01:15: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)347143", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 7.780, "sum" : 500.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:15:20]POST & json_proto [01:15:20]process_json_proto [01:15:20]json parsed OK: [01:15:20]protocol is kg_v1.0 [01:15:20]action value=close_receipt [01:15:20]process_action close_receipt [01:15:20]cmd_close_receipt [01:15:20]MH_GetDate [01:15:20]Write to MH i2c: F0 00 00 3D 17 43 [01:15:20]Write i2c OK [01:15:20]MH_I2C_Read... [01:15:20]Read from MH i2c: F0 [01:15:20]MH_I2C_Read... [01:15:20]Read from MH i2c: F0 09 00 [01:15:20]MH_I2C_Read... [01:15:20]Read from MH i2c: F0 09 00 3D 17 00 AA DC 19 66 23 5B 8F 65 C3 [01:15:20]GetLastDocTimeStamp 1712968958 [01:15:20]current date 1712970922 [01:15:20]FM_GetShiftState [01:15:20]SAM_PROTO_GetShiftState [01:15:20]wFMCommunicate request_size=4 [01:15:20]MH_SAM_APDU [01:15:20]CAPDU: 80 13 01 00 [01:15:20]Write to MH i2c: E2 08 00 3E 17 80 13 01 00 00 00 00 00 D2 [01:15:20]Write i2c OK [01:15:20]MH_I2C_Read... [01:15:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:15:20]Read from MH i2c: E2 [01:15:20]MH_I2C_Read... [01:15:20]Read from MH i2c: E2 0E 00 [01:15:20]MH_I2C_Read... [01:15:20]Read from MH i2c: E2 0E 00 3E 17 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 EB [01:15:20]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [01:15:20]wFMCommunicate OK [01:15:20]SAM_PROTO_GetShiftState done [01:15:20]FM_GetShiftState done [01:15:20]opened in 1712967615 [01:15:20]opened+sec_in_day 1713054015 [01:15:20]quantity*price = 50025 [01:15:20]sum+1 = 50026 [01:15:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.25 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 0.00 Безнал.: 500.25 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 4 13.04.2024 01:15 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 28797 ФПД: 12227110991673 1/tax-web-control/client/api/v1/ticket?date=20240413T011522&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28797&fm=12227110991673&tin=02508201610067®Number=0000138879044617&sum=50025 [01:15:21]StoreToDocumentArchive [01:15:21]shift 115 fd 28797 [01:15:21]save to /storage/0115/doc_00028797 [01:15:21]save last doc name /storage/0115/doc_00028797 to /storage/kkm_last_doc_name [01:15:21]save OK [01:15:21]Clear old archive folders... [01:15:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:15:21]tlvbuf is 012000B0 [01:15:21]SAM_PROTO_ClearQueue [01:15:21]wFMCommunicate request_size=4 [01:15:21]MH_SAM_APDU [01:15:21]CAPDU: 80 09 00 00 [01:15:21]Write to MH i2c: E2 08 00 4B 17 80 09 00 00 00 00 00 00 D4 [01:15:21]Write i2c OK [01:15:21]MH_I2C_Read... [01:15:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:15:21]Read from MH i2c: E2 [01:15:21]MH_I2C_Read... [01:15:21]Read from MH i2c: E2 03 00 [01:15:21]MH_I2C_Read... [01:15:21]Read from MH i2c: E2 03 00 4B 17 00 90 00 D6 [01:15:21]RAPDU: 90 00 [01:15:21]wFMCommunicate OK [01:15:21]SAM_PROTO_ClearQueue done [01:15:21]KKMCreateOFDPacket [01:15:21]OFDProtocolAddRootSTLVToBuf [01:15:21]FM_MakeSignedData [01:15:21]FM_MakeSignedData [01:15:21]SAM_PROTO_SignData [01:15:21]wFMCommunicate request_size=4 [01:15:21]MH_SAM_APDU [01:15:21]CAPDU: 80 0D 01 02 [01:15:21]Write to MH i2c: E2 08 00 4C 17 80 0D 01 02 00 00 00 00 DC [01:15:21]Write i2c OK [01:15:21]MH_I2C_Read... [01:15:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:15:21]Read from MH i2c: E2 [01:15:21]MH_I2C_Read... [01:15:21]Read from MH i2c: E2 03 00 [01:15:21]MH_I2C_Read... [01:15:21]Read from MH i2c: E2 03 00 4C 17 00 90 00 D7 [01:15:21]RAPDU: 90 00 [01:15:21]wFMCommunicate OK [01:15:21]wFMCommunicate request_size=255 [01:15:21]MH_SAM_APDU [01:15:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 69 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 AA DC 19 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7D 70 00 00 35 04 06 00 0B [01:15:22]Write to MH i2c: E2 02 01 4D 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 69 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 AA DC 19 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7D 70 00 00 35 04 06 00 0B 00 00 44 [01:15:22]Write i2c OK [01:15:22]MH_I2C_Read... [01:15:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:15:22]Read from MH i2c: E2 [01:15:22]MH_I2C_Read... [01:15:22]Read from MH i2c: E2 03 00 [01:15:22]MH_I2C_Read... [01:15:22]Read from MH i2c: E2 03 00 4D 17 00 90 00 D8 [01:15:22]RAPDU: 90 00 [01:15:22]wFMCommunicate OK [01:15:22]wFMCommunicate request_size=10 [01:15:22]MH_SAM_APDU [01:15:22]CAPDU: 80 0D 02 02 05 1E D8 9B 77 39 [01:15:22]Write to MH i2c: E2 0D 00 4E 17 80 0D 02 02 05 00 1E D8 9B 77 39 00 00 2A [01:15:22]Write i2c OK [01:15:22]MH_I2C_Read... [01:15:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:15:22]Read from MH i2c: E2 [01:15:22]MH_I2C_Read... [01:15:22]Read from MH i2c: E2 03 00 [01:15:22]MH_I2C_Read... [01:15:22]Read from MH i2c: E2 03 00 4E 17 00 90 00 D9 [01:15:22]RAPDU: 90 00 [01:15:22]wFMCommunicate OK [01:15:22]wFMCommunicate request_size=4 [01:15:22]MH_SAM_APDU [01:15:22]CAPDU: 80 0D 03 02 [01:15:22]Write to MH i2c: E2 08 00 4F 17 80 0D 03 02 00 00 00 00 E1 [01:15:22]Write i2c OK [01:15:22]MH_I2C_Read... [01:15:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:15:22]Read from MH i2c: E2 [01:15:22]MH_I2C_Read... [01:15:22]Read from MH i2c: E2 0B 00 [01:15:22]MH_I2C_Read... [01:15:22]Read from MH i2c: E2 0B 00 4F 17 00 9C 6D F5 DD 20 AD EB 53 90 00 C8 [01:15:22]RAPDU: 9C 6D F5 DD 20 AD EB 53 90 00 [01:15:22]wFMCommunicate OK [01:15:22]SAM_PROTO_SignData done [01:15:22]FM_MakeSignedData done [01:15:22]CreateOFDProtocolMessage [01:15:22]wFMCommunicate request_size=4 [01:15:22]MH_SAM_APDU [01:15:22]CAPDU: 80 11 00 00 [01:15:22]Write to MH i2c: E2 08 00 50 17 80 11 00 00 00 00 00 00 E1 [01:15:22]Write i2c OK [01:15:22]MH_I2C_Read... [01:15:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:15:22]Read from MH i2c: E2 [01:15:22]MH_I2C_Read... [01:15:22]Read from MH i2c: E2 17 00 [01:15:22]MH_I2C_Read... [01:15:22]Read from MH i2c: E2 17 00 50 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 30 [01:15:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [01:15:22]wFMCommunicate OK [01:15:22]CreateOFDProtocolMessage done [01:15:22]OFDSenderStorePacket 28797 [01:15:22]StoreOFDPacket docnum=28797 [01:15:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 12 59 07 01 8F 82 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 69 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 AA DC 19 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7D 70 00 00 35 04 06 00 0B 1E D8 9B 77 39 9C 6D F5 DD 20 AD EB 53 [01:15:22]CheckFolder [01:15:22]dirname=/storage/ofd_packets [01:15:22]CheckFolder done [01:15:22]ProducePacketName [01:15:22]name=ofd_packets/00028797 [01:15:22]NVStorageSaveData ofd_packets/00028797 [01:15:22]File name is /storage/ofd_packets/00028797 [01:15:22]Write 301 bytes [01:15:22]NVStorageSaveData done [01:15:22]OFDSenderStorePacket done [01:15:22]KKMCreateOFDPacket done [01:15:22]NVStorageSaveData kkm_last_timestamp [01:15:22]File name is /storage/kkm_last_timestamp [01:15:22]Write 4 bytes [01:15:22]NVStorageSaveData done [01:15:22]ExternCall_PrintAddStr [01:15:22]wPrintStart [01:15:22]Write to MH i2c: 01 00 00 51 17 68 [01:15:22]Write i2c OK [01:15:22]MH_I2C_Read... [01:15:22]Read from MH i2c: 01 [01:15:22]MH_I2C_Read... [01:15:22]Read from MH i2c: 01 07 00 [01:15:22]MH_I2C_Read... [01:15:22]Read from MH i2c: 01 07 00 51 17 00 00 00 00 00 FF 0F 7D [01:15:22]RasterBufferAndPrint [01:15:22]line Счет N : (1)347143 [01:15:22]line ИНН: 02508201610067 [01:15:22]line Контрольно-Кассовый Чек [01:15:22]line ПРОДАЖА [01:15:22]line ТРК (МРК, ГНК) : 23 [01:15:22]line Товар: 2710124130 [01:15:22]line Аи-92-К-5 [01:15:22]line 7.780 * 64.30 [01:15:22]line = 500.25 [01:15:22]line НДС 12% НСП 1% [01:15:22]line > о реализуемом товаре [01:15:22]line ИТОГО: 500.25 [01:15:22]line НСП 1% : 4.43 [01:15:22]line НДС 12% : 53.12 [01:15:22]line Наличными: 0.00 [01:15:22]line Безнал.: 500.25 [01:15:22]line Место: АЗС № 108 "Партнер Нефть" [01:15:22]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [01:15:22]line СНО: Общий режим [01:15:22]line Чек 4 13.04.2024 01:15 [01:15:22]line Смена: 115 ФФД: 1.0 [01:15:22]line ЗНМ: 0300000027 [01:15:22]line РНМ: 0000138879044617 [01:15:22]line Версия ККМ: 001 [01:15:22]line Платежная система: АКБ Кыргызстан [01:15:22]line ФМ: 0000000000963154 [01:15:22]line ФД: 28797 [01:15:22]line ФПД: 12227110991673 [01:15:22]line 1/tax-web-control/client/api/v1/ticket?date=20240413T011522&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28797&fm=12227110991673&tin=02508201610067®Number=0000138879044617&sum=50025 [01:15:22]OFD Sender: Processing packet 28797 [packets to send 8, broken 7] [01:15:22]ProducePacketName [01:15:22]name=ofd_packets/00028797 [01:15:22]OFD Sender: To server: pG, [01:15:22]CommunicateWithHost lk.salyk.kg:30040 [01:15:22]ConnectInit lk.salyk.kg [01:15:22]written 0, free lines is 4095 [01:15:22]Connected sock=10 [01:15:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 12 59 07 01 8F 82 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 69 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 AA DC 19 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7D 70 00 00 35 04 06 00 0B 1E D8 9B 77 39 9C 6D F5 DD 20 AD EB 53 [01:15:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 57 3B 47 00 18 2D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7D 70 00 00 F4 03 04 00 53 87 19 66 B6 04 01 00 00 26 A4 04 55 D2 54 DA D9 [01:15:23]CommunicateWithHost err = 0 [01:15:23]CheckOFDResponse [01:15:23]1017 (14) - 77093643461234 [01:15:23]1041 (16) - 0000000000963154 [01:15:23]1040 (4) - 28797 [01:15:23]1012 (4) - 12.04.2024 19:11 [01:15:23]1206 (1) - 0 [01:15:23]OFD Sender: Remove packet 28797 [01:15:23]ProducePacketName [01:15:23]name=ofd_packets/00028797 [01:15:23]NVStorageDeleteData [01:15:23]Write to MH i2c: 01 00 00 7A 17 91 [01:15:23]Write i2c OK [01:15:23]MH_I2C_Read... [01:15:23]Read from MH i2c: 01 [01:15:23]MH_I2C_Read... [01:15:23]Read from MH i2c: 01 07 00 [01:15:23]MH_I2C_Read... [01:15:23]Read from MH i2c: 01 07 00 7A 17 00 00 00 00 00 E9 0C 8D [01:15:23]RasterBufferAndPrint [01:15:23]line [01:15:23]line [01:15:23]line [01:15:23]line [01:15:23]line [01:15:23]written 0, free lines is 3311 [01:15:23]MH_Cut [01:15:23]Write to MH i2c: D1 01 00 81 17 01 6A [01:15:23]Write i2c OK [01:15:23]MH_I2C_Read... [01:15:23]Read from MH i2c: D1 [01:15:23]MH_I2C_Read... [01:15:23]Read from MH i2c: D1 01 00 [01:15:23]MH_I2C_Read... [01:15:23]Read from MH i2c: D1 01 00 81 17 00 69 [01:15:23]Write to MH i2c: 01 00 00 82 17 99 [01:15:23]Write i2c OK [01:15:23]MH_I2C_Read... [01:15:23]OFD Sender: No OFD packet to send [01:15:24]*** Cut start [01:15:24]*** Partial cut [01:15:24]*** CUTSNS_PIN = 1 [01:15:24]*** CUTSNS_PIN = 0 [01:15:24]*** Brake cut motor [01:15:24]Read from MH i2c: 01 [01:15:24]MH_I2C_Read... [01:15:24]*** Stop cut motor [01:15:24]*** Cut end [01:15:24]Read from MH i2c: 01 07 00 [01:15:24]MH_I2C_Read... [01:15:24]Read from MH i2c: 01 07 00 82 17 00 00 00 00 00 FF 0F AE [01:15:24]process_action close_receipt done [01:15:24]requested_data is exist [01:15:24]produce_requested_data [01:15:24]requested_item fm.sn is exist - process it [01:15:24]wFMCommunicate request_size=4 [01:15:24]MH_SAM_APDU [01:15:24]CAPDU: 80 11 00 00 [01:15:24]Write to MH i2c: E2 08 00 83 17 80 11 00 00 00 00 00 00 14 [01:15:24]Write i2c OK [01:15:24]MH_I2C_Read... [01:15:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:15:24]Read from MH i2c: E2 [01:15:24]MH_I2C_Read... [01:15:24]Read from MH i2c: E2 17 00 [01:15:24]MH_I2C_Read... [01:15:24]Read from MH i2c: E2 17 00 83 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 63 [01:15:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [01:15:24]wFMCommunicate OK [01:15:24]requested_item fd.num is exist - process it [01:15:24]SAM_PROTO_GetFieldsCounters [01:15:24]wFMCommunicate request_size=4 [01:15:24]MH_SAM_APDU [01:15:24]CAPDU: 80 13 00 00 [01:15:24]Write to MH i2c: E2 08 00 84 17 80 13 00 00 00 00 00 00 17 [01:15:24]Write i2c OK [01:15:24]MH_I2C_Read... [01:15:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:15:24]Read from MH i2c: E2 [01:15:24]MH_I2C_Read... [01:15:24]Read from MH i2c: E2 62 00 [01:15:24]MH_I2C_Read... [01:15:24]Read from MH i2c: E2 62 00 84 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 7D 70 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 C1 [01:15:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 7D 70 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:24]wFMCommunicate OK [01:15:24]SAM_PROTO_GetFieldsCounters done [01:15:24]requested_item shift.num is exist - process it [01:15:24]requested_item shift.opened is exist - process it [01:15:24]req_shift_opened [01:15:24]FM_GetShiftState [01:15:24]SAM_PROTO_GetShiftState [01:15:24]wFMCommunicate request_size=4 [01:15:24]MH_SAM_APDU [01:15:24]CAPDU: 80 13 01 00 [01:15:24]Write to MH i2c: E2 08 00 85 17 80 13 01 00 00 00 00 00 19 [01:15:24]Write i2c OK [01:15:24]MH_I2C_Read... [01:15:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:15:24]Read from MH i2c: E2 [01:15:24]MH_I2C_Read... [01:15:24]Read from MH i2c: E2 0E 00 [01:15:24]MH_I2C_Read... [01:15:24]Read from MH i2c: E2 0E 00 85 17 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 32 [01:15:24]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [01:15:24]wFMCommunicate OK [01:15:24]SAM_PROTO_GetShiftState done [01:15:24]FM_GetShiftState done [01:15:24]req_shift_opened done [01:15:24]requested_item shift.open_date is exist - process it [01:15:24]req_shift_open_date [01:15:24]req_shift_open_date done [01:15:24]produce_requested_data done [01:15:24]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28797,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [01:15:24]process_action_free close_receipt [01:15:24]json_value_free [01:15:24]json_value_free done [01:15:24]process_json_proto returns [01:15:24]Send response to host [01:15:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28797,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [01:15:24]free response buf [01:15:24]execute_script done [01:15:24]execute_script returns [01:15:24]free content buf [01:15:24]Sock 7.Close socket [01:15:24]Sock 7.Thread stoped [01:15:28]OFD Sender: No OFD packet to send [01:15:33]OFD Sender: No OFD packet to send [01:15:38]OFD Sender: No OFD packet to send [01:15:43]OFD Sender: No OFD packet to send [01:15:48]OFD Sender: No OFD packet to send [01:15:53]OFD Sender: No OFD packet to send [01:15:58]OFD Sender: No OFD packet to send [01:16:03]OFD Sender: No OFD packet to send [01:16:08]OFD Sender: No OFD packet to send [01:16:13]OFD Sender: No OFD packet to send [01:16:18]OFD Sender: No OFD packet to send [01:16:23]OFD Sender: No OFD packet to send [01:16:28]OFD Sender: No OFD packet to send [01:16:33]OFD Sender: No OFD packet to send [01:16:38]OFD Sender: No OFD packet to send [01:16:43]OFD Sender: No OFD packet to send [01:16:48]OFD Sender: No OFD packet to send [01:16:53]OFD Sender: No OFD packet to send [01:16:58]OFD Sender: No OFD packet to send [01:17:03]OFD Sender: No OFD packet to send [01:17:08]OFD Sender: No OFD packet to send [01:17:13]OFD Sender: No OFD packet to send [01:17:18]OFD Sender: No OFD packet to send [01:17:23]OFD Sender: No OFD packet to send [01:17:28]OFD Sender: No OFD packet to send [01:17:33]OFD Sender: No OFD packet to send [01:17:38]accept exits with 9 [01:17:38]New connection [01:17:38]New thread 3066785124 created [01:17:38]Thread 3066928484 joined [01:17:38]Waiting for new connection... [01:17:38] Sock 9.Parse request [01:17:38]Sock 9.Check first char [01:17:38]Sock 9.First char is OK [01:17:38]request: POST /json_proto HTTP/1.0 [01:17:38]Method: POST [01:17:38]URL: /json_proto [01:17:38]Method is POST - this is cgi request [01:17:38]url: /json_proto [01:17:38]query_string will be loaded in cgi processing [01:17:38]execute_cgi json_proto POST (null) [01:17:38]execute_cgi path=json_proto method=POST [01:17:38]POST find Content-Length [01:17:38]Host: 172.17.33.3:8080 [01:17:38]Content-Length: 671 [01:17:38]Content-Type: application/json [01:17:38] [01:17:38]POST finish read [01:17:38]Found Content-Length = 671 [01:17:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347144", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 12.260, "sum" : 800.58, "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" ] } } [01:17:38]execute_script... [01:17:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347144", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 12.260, "sum" : 800.58, "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" ] } } [01:17:38]POST & json_proto [01:17:38]process_json_proto [01:17:38]json parsed OK: [01:17:38]protocol is kg_v1.0 [01:17:38]action value=close_receipt [01:17:38]process_action close_receipt [01:17:38]cmd_close_receipt [01:17:38]MH_GetDate [01:17:38]Write to MH i2c: F0 00 00 86 17 8C [01:17:38]Write i2c OK [01:17:38]MH_I2C_Read... [01:17:38]Read from MH i2c: F0 [01:17:38]MH_I2C_Read... [01:17:38]Read from MH i2c: F0 09 00 [01:17:38]MH_I2C_Read... [01:17:38]Read from MH i2c: F0 09 00 86 17 00 34 DD 19 66 23 5B 8F 65 97 [01:17:38]GetLastDocTimeStamp 1712970922 [01:17:38]current date 1712971060 [01:17:38]FM_GetShiftState [01:17:38]SAM_PROTO_GetShiftState [01:17:38]wFMCommunicate request_size=4 [01:17:38]MH_SAM_APDU [01:17:38]CAPDU: 80 13 01 00 [01:17:38]Write to MH i2c: E2 08 00 87 17 80 13 01 00 00 00 00 00 1B [01:17:38]Write i2c OK [01:17:38]MH_I2C_Read... [01:17:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:17:38]Read from MH i2c: E2 [01:17:38]MH_I2C_Read... [01:17:38]Read from MH i2c: E2 0E 00 [01:17:38]MH_I2C_Read... [01:17:38]Read from MH i2c: E2 0E 00 87 17 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 34 [01:17:38]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [01:17:38]wFMCommunicate OK [01:17:38]SAM_PROTO_GetShiftState done [01:17:38]FM_GetShiftState done [01:17:38]opened in 1712967615 [01:17:38]opened+sec_in_day 1713054015 [01:17:38]quantity*price = 80057 [01:17:38]sum+1 = 80059 [01:17:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.58 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 85.02 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 5 13.04.2024 01:17 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28798 ФПД: 185717362561058 1/tax-web-control/client/api/v1/ticket?date=20240413T011740&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28798&fm=185717362561058&tin=02508201610067®Number=0000138879044617&sum=80000 [01:17:39]StoreToDocumentArchive [01:17:39]shift 115 fd 28798 [01:17:39]save to /storage/0115/doc_00028798 [01:17:39]save last doc name /storage/0115/doc_00028798 to /storage/kkm_last_doc_name [01:17:39]save OK [01:17:39]Clear old archive folders... [01:17:39]ProcessDocumentItem done err = 0, tmpTLVsize=252 [01:17:39]tlvbuf is 011A9BA0 [01:17:39]SAM_PROTO_ClearQueue [01:17:39]wFMCommunicate request_size=4 [01:17:39]MH_SAM_APDU [01:17:39]CAPDU: 80 09 00 00 [01:17:39]Write to MH i2c: E2 08 00 94 17 80 09 00 00 00 00 00 00 1D [01:17:39]Write i2c OK [01:17:39]MH_I2C_Read... [01:17:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:17:39]Read from MH i2c: E2 [01:17:39]MH_I2C_Read... [01:17:39]Read from MH i2c: E2 03 00 [01:17:39]MH_I2C_Read... [01:17:39]Read from MH i2c: E2 03 00 94 17 00 90 00 1F [01:17:39]RAPDU: 90 00 [01:17:39]wFMCommunicate OK [01:17:39]SAM_PROTO_ClearQueue done [01:17:39]KKMCreateOFDPacket [01:17:39]OFDProtocolAddRootSTLVToBuf [01:17:39]FM_MakeSignedData [01:17:39]FM_MakeSignedData [01:17:39]SAM_PROTO_SignData [01:17:39]wFMCommunicate request_size=4 [01:17:39]MH_SAM_APDU [01:17:39]CAPDU: 80 0D 01 02 [01:17:39]Write to MH i2c: E2 08 00 95 17 80 0D 01 02 00 00 00 00 25 [01:17:39]Write i2c OK [01:17:39]MH_I2C_Read... [01:17:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:17:39]Read from MH i2c: E2 [01:17:39]MH_I2C_Read... [01:17:39]Read from MH i2c: E2 03 00 [01:17:39]MH_I2C_Read... [01:17:39]Read from MH i2c: E2 03 00 95 17 00 90 00 20 [01:17:39]RAPDU: 90 00 [01:17:39]wFMCommunicate OK [01:17:39]wFMCommunicate request_size=255 [01:17:39]MH_SAM_APDU [01:17:39]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E4 2F 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 BA 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 36 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 05 00 00 00 F4 03 04 00 34 DD 19 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7E 70 00 00 35 04 06 00 [01:17:39]Write to MH i2c: E2 02 01 96 17 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E4 2F 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 BA 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 36 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 05 00 00 00 F4 03 04 00 34 DD 19 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7E 70 00 00 35 04 06 00 00 00 1C [01:17:39]Write i2c OK [01:17:39]MH_I2C_Read... [01:17:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:17:40]Read from MH i2c: E2 [01:17:40]MH_I2C_Read... [01:17:40]Read from MH i2c: E2 03 00 [01:17:40]MH_I2C_Read... [01:17:40]Read from MH i2c: E2 03 00 96 17 00 90 00 21 [01:17:40]RAPDU: 90 00 [01:17:40]wFMCommunicate OK [01:17:40]wFMCommunicate request_size=11 [01:17:40]MH_SAM_APDU [01:17:40]CAPDU: 80 0D 02 02 06 A8 E8 B1 6C 90 22 [01:17:40]Write to MH i2c: E2 0E 00 97 17 80 0D 02 02 06 00 A8 E8 B1 6C 90 22 00 00 93 [01:17:40]Write i2c OK [01:17:40]MH_I2C_Read... [01:17:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:17:40]Read from MH i2c: E2 [01:17:40]MH_I2C_Read... [01:17:40]Read from MH i2c: E2 03 00 [01:17:40]MH_I2C_Read... [01:17:40]Read from MH i2c: E2 03 00 97 17 00 90 00 22 [01:17:40]RAPDU: 90 00 [01:17:40]wFMCommunicate OK [01:17:40]wFMCommunicate request_size=4 [01:17:40]MH_SAM_APDU [01:17:40]CAPDU: 80 0D 03 02 [01:17:40]Write to MH i2c: E2 08 00 98 17 80 0D 03 02 00 00 00 00 2A [01:17:40]Write i2c OK [01:17:40]MH_I2C_Read... [01:17:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:17:40]Read from MH i2c: E2 [01:17:40]MH_I2C_Read... [01:17:40]Read from MH i2c: E2 0B 00 [01:17:40]MH_I2C_Read... [01:17:40]Read from MH i2c: E2 0B 00 98 17 00 81 45 9D 1F 08 6B E8 BA 90 00 C2 [01:17:40]RAPDU: 81 45 9D 1F 08 6B E8 BA 90 00 [01:17:40]wFMCommunicate OK [01:17:40]SAM_PROTO_SignData done [01:17:40]FM_MakeSignedData done [01:17:40]CreateOFDProtocolMessage [01:17:40]wFMCommunicate request_size=4 [01:17:40]MH_SAM_APDU [01:17:40]CAPDU: 80 11 00 00 [01:17:40]Write to MH i2c: E2 08 00 99 17 80 11 00 00 00 00 00 00 2A [01:17:40]Write i2c OK [01:17:40]MH_I2C_Read... [01:17:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:17:40]Read from MH i2c: E2 [01:17:40]MH_I2C_Read... [01:17:40]Read from MH i2c: E2 17 00 [01:17:40]MH_I2C_Read... [01:17:40]Read from MH i2c: E2 17 00 99 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 79 [01:17:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [01:17:40]wFMCommunicate OK [01:17:40]CreateOFDProtocolMessage done [01:17:40]OFDSenderStorePacket 28798 [01:17:40]StoreOFDPacket docnum=28798 [01:17:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 37 EE 08 01 B3 2F 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E4 2F 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 BA 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 36 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 05 00 00 00 F4 03 04 00 34 DD 19 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7E 70 00 00 35 04 06 00 A8 E8 B1 6C 90 22 81 45 9D 1F 08 6B E8 BA [01:17:40]CheckFolder [01:17:40]dirname=/storage/ofd_packets [01:17:40]CheckFolder done [01:17:40]ProducePacketName [01:17:40]name=ofd_packets/00028798 [01:17:40]NVStorageSaveData ofd_packets/00028798 [01:17:40]File name is /storage/ofd_packets/00028798 [01:17:40]Write 302 bytes [01:17:40]NVStorageSaveData done [01:17:40]OFDSenderStorePacket done [01:17:40]KKMCreateOFDPacket done [01:17:40]NVStorageSaveData kkm_last_timestamp [01:17:40]File name is /storage/kkm_last_timestamp [01:17:40]Write 4 bytes [01:17:40]NVStorageSaveData done [01:17:40]ExternCall_PrintAddStr [01:17:40]wPrintStart [01:17:40]Write to MH i2c: 01 00 00 9A 17 B1 [01:17:40]Write i2c OK [01:17:40]MH_I2C_Read... [01:17:40]Read from MH i2c: 01 [01:17:40]MH_I2C_Read... [01:17:40]Read from MH i2c: 01 07 00 [01:17:40]MH_I2C_Read... [01:17:40]Read from MH i2c: 01 07 00 9A 17 00 00 00 00 00 FF 0F C6 [01:17:40]RasterBufferAndPrint [01:17:40]line Счет N : (1)347144 [01:17:40]line ИНН: 02508201610067 [01:17:40]line Контрольно-Кассовый Чек [01:17:40]line ПРОДАЖА [01:17:40]line ТРК (МРК, ГНК) : 12 [01:17:40]line Товар: 2710124130 [01:17:40]line SUPER-92-К-5 [01:17:40]line 12.260 * 65.30 [01:17:40]line = 800.58 [01:17:40]line НДС 12% НСП 1% [01:17:40]line > о реализуемом товаре [01:17:40]line ОКРУГЛЕНИЕ: -0.58 [01:17:40]line ИТОГО: 800.00 [01:17:40]line Внесено: 800.00 [01:17:40]line СДАЧА: 0.00 [01:17:40]line НСП 1% : 7.08 [01:17:40]line НДС 12% : 85.02 [01:17:40]line Наличными: 800.00 [01:17:40]line Безнал.: 0.00 [01:17:40]line Место: АЗС № 108 "Партнер Нефть" [01:17:40]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [01:17:40]line СНО: Общий режим [01:17:40]line Чек 5 13.04.2024 01:17 [01:17:40]line Смена: 115 ФФД: 1.0 [01:17:40]line ЗНМ: 0300000027 [01:17:40]line РНМ: 0000138879044617 [01:17:40]line Версия ККМ: 001 [01:17:40]line ФМ: 0000000000963154 [01:17:40]line ФД: 28798 [01:17:40]line ФПД: 185717362561058 [01:17:40]line 1/tax-web-control/client/api/v1/ticket?date=20240413T011740&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28798&fm=185717362561058&tin=02508201610067®Number=0000138879044617&sum=80000 [01:17:40]OFD Sender: Processing packet 28798 [packets to send 8, broken 7] [01:17:40]ProducePacketName [01:17:40]name=ofd_packets/00028798 [01:17:40]OFD Sender: To server: pG, [01:17:40]CommunicateWithHost lk.salyk.kg:30040 [01:17:40]ConnectInit lk.salyk.kg [01:17:40]written 0, free lines is 4095 [01:17:40]Connected sock=10 [01:17:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 37 EE 08 01 B3 2F 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E4 2F 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 BA 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 36 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 05 00 00 00 F4 03 04 00 34 DD 19 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7E 70 00 00 35 04 06 00 A8 E8 B1 6C 90 22 81 45 9D 1F 08 6B E8 BA [01:17:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 55 8B 47 00 F6 B2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7E 70 00 00 F4 03 04 00 DD 87 19 66 B6 04 01 00 00 48 9C A1 4D 10 3E 39 20 [01:17:40]CommunicateWithHost err = 0 [01:17:40]CheckOFDResponse [01:17:40]1017 (14) - 77093643461234 [01:17:40]1041 (16) - 0000000000963154 [01:17:40]1040 (4) - 28798 [01:17:40]1012 (4) - 12.04.2024 19:13 [01:17:40]1206 (1) - 0 [01:17:40]OFD Sender: Remove packet 28798 [01:17:40]ProducePacketName [01:17:40]name=ofd_packets/00028798 [01:17:40]NVStorageDeleteData [01:17:40]Write to MH i2c: 01 00 00 C4 17 DB [01:17:40]Write i2c OK [01:17:40]MH_I2C_Read... [01:17:40]Read from MH i2c: 01 [01:17:40]MH_I2C_Read... [01:17:40]Read from MH i2c: 01 07 00 [01:17:40]MH_I2C_Read... [01:17:40]Read from MH i2c: 01 07 00 C4 17 00 00 00 00 00 CE 0C BC [01:17:40]RasterBufferAndPrint [01:17:40]line [01:17:40]line [01:17:40]line [01:17:40]line [01:17:40]line [01:17:40]written 0, free lines is 3284 [01:17:40]MH_Cut [01:17:40]Write to MH i2c: D1 01 00 CB 17 01 B4 [01:17:40]Write i2c OK [01:17:40]MH_I2C_Read... [01:17:40]Read from MH i2c: D1 [01:17:40]MH_I2C_Read... [01:17:40]Read from MH i2c: D1 01 00 [01:17:40]MH_I2C_Read... [01:17:40]Read from MH i2c: D1 01 00 CB 17 00 B3 [01:17:40]Write to MH i2c: 01 00 00 CC 17 E3 [01:17:40]Write i2c OK [01:17:40]MH_I2C_Read... [01:17:41]OFD Sender: No OFD packet to send [01:17:41]*** Cut start [01:17:41]*** Partial cut [01:17:41]*** CUTSNS_PIN = 1 [01:17:41]*** CUTSNS_PIN = 0 [01:17:42]*** Brake cut motor [01:17:42]Read from MH i2c: 01 [01:17:42]MH_I2C_Read... [01:17:42]*** Stop cut motor [01:17:42]*** Cut end [01:17:42]Read from MH i2c: 01 07 00 [01:17:42]MH_I2C_Read... [01:17:42]Read from MH i2c: 01 07 00 CC 17 00 00 00 00 00 FF 0F F8 [01:17:42]process_action close_receipt done [01:17:42]requested_data is exist [01:17:42]produce_requested_data [01:17:42]requested_item fm.sn is exist - process it [01:17:42]wFMCommunicate request_size=4 [01:17:42]MH_SAM_APDU [01:17:42]CAPDU: 80 11 00 00 [01:17:42]Write to MH i2c: E2 08 00 CD 17 80 11 00 00 00 00 00 00 5E [01:17:42]Write i2c OK [01:17:42]MH_I2C_Read... [01:17:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:17:42]Read from MH i2c: E2 [01:17:42]MH_I2C_Read... [01:17:42]Read from MH i2c: E2 17 00 [01:17:42]MH_I2C_Read... [01:17:42]Read from MH i2c: E2 17 00 CD 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 AD [01:17:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [01:17:42]wFMCommunicate OK [01:17:42]requested_item fd.num is exist - process it [01:17:42]SAM_PROTO_GetFieldsCounters [01:17:42]wFMCommunicate request_size=4 [01:17:42]MH_SAM_APDU [01:17:42]CAPDU: 80 13 00 00 [01:17:42]Write to MH i2c: E2 08 00 CE 17 80 13 00 00 00 00 00 00 61 [01:17:42]Write i2c OK [01:17:42]MH_I2C_Read... [01:17:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:17:42]Read from MH i2c: E2 [01:17:42]MH_I2C_Read... [01:17:42]Read from MH i2c: E2 62 00 [01:17:42]MH_I2C_Read... [01:17:42]Read from MH i2c: E2 62 00 CE 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 7E 70 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 0F [01:17:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 7E 70 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:17:42]wFMCommunicate OK [01:17:42]SAM_PROTO_GetFieldsCounters done [01:17:42]requested_item shift.num is exist - process it [01:17:42]requested_item shift.opened is exist - process it [01:17:42]req_shift_opened [01:17:42]FM_GetShiftState [01:17:42]SAM_PROTO_GetShiftState [01:17:42]wFMCommunicate request_size=4 [01:17:42]MH_SAM_APDU [01:17:42]CAPDU: 80 13 01 00 [01:17:42]Write to MH i2c: E2 08 00 CF 17 80 13 01 00 00 00 00 00 63 [01:17:42]Write i2c OK [01:17:42]MH_I2C_Read... [01:17:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:17:42]Read from MH i2c: E2 [01:17:42]MH_I2C_Read... [01:17:42]Read from MH i2c: E2 0E 00 [01:17:42]MH_I2C_Read... [01:17:42]Read from MH i2c: E2 0E 00 CF 17 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 7C [01:17:42]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [01:17:42]wFMCommunicate OK [01:17:42]SAM_PROTO_GetShiftState done [01:17:42]FM_GetShiftState done [01:17:42]req_shift_opened done [01:17:42]requested_item shift.open_date is exist - process it [01:17:42]req_shift_open_date [01:17:42]req_shift_open_date done [01:17:42]produce_requested_data done [01:17:42]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28798,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [01:17:42]process_action_free close_receipt [01:17:42]json_value_free [01:17:42]json_value_free done [01:17:42]process_json_proto returns [01:17:42]Send response to host [01:17:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28798,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [01:17:42]free response buf [01:17:42]execute_script done [01:17:42]execute_script returns [01:17:42]free content buf [01:17:42]Sock 9.Close socket [01:17:42]Sock 9.Thread stoped [01:17:46]OFD Sender: No OFD packet to send [01:17:51]OFD Sender: No OFD packet to send [01:17:56]OFD Sender: No OFD packet to send [01:18:01]OFD Sender: No OFD packet to send [01:18:06]OFD Sender: No OFD packet to send [01:18:11]OFD Sender: No OFD packet to send [01:18:16]OFD Sender: No OFD packet to send [01:18:21]OFD Sender: No OFD packet to send [01:18:26]OFD Sender: No OFD packet to send [01:18:31]OFD Sender: No OFD packet to send [01:18:36]OFD Sender: No OFD packet to send [01:18:41]OFD Sender: No OFD packet to send [01:18:46]OFD Sender: No OFD packet to send [01:18:51]OFD Sender: No OFD packet to send [01:18:56]OFD Sender: No OFD packet to send [01:19:01]OFD Sender: No OFD packet to send [01:19:06]OFD Sender: No OFD packet to send [01:19:11]OFD Sender: No OFD packet to send [01:19:16]OFD Sender: No OFD packet to send [01:19:21]OFD Sender: No OFD packet to send [01:19:26]OFD Sender: No OFD packet to send [01:19:31]OFD Sender: No OFD packet to send [01:19:36]OFD Sender: No OFD packet to send [01:19:41]OFD Sender: No OFD packet to send [01:19:46]OFD Sender: No OFD packet to send [01:19:51]OFD Sender: No OFD packet to send [01:19:56]OFD Sender: No OFD packet to send [01:20:01]OFD Sender: No OFD packet to send [01:20:06]OFD Sender: No OFD packet to send [01:20:11]OFD Sender: No OFD packet to send [01:20:16]OFD Sender: No OFD packet to send [01:20:21]OFD Sender: No OFD packet to send [01:20:26]OFD Sender: No OFD packet to send [01:20:31]OFD Sender: No OFD packet to send [01:20:36]OFD Sender: No OFD packet to send [01:20:41]OFD Sender: No OFD packet to send [01:20:46]OFD Sender: No OFD packet to send [01:20:51]OFD Sender: No OFD packet to send [01:20:56]OFD Sender: No OFD packet to send [01:21:01]OFD Sender: No OFD packet to send [01:21:06]OFD Sender: No OFD packet to send [01:21:11]OFD Sender: No OFD packet to send [01:21:16]OFD Sender: No OFD packet to send [01:21:21]OFD Sender: No OFD packet to send [01:21:26]OFD Sender: No OFD packet to send [01:21:31]OFD Sender: No OFD packet to send [01:21:36]OFD Sender: No OFD packet to send [01:21:41]OFD Sender: No OFD packet to send [01:21:46]OFD Sender: No OFD packet to send [01:21:51]OFD Sender: No OFD packet to send [01:21:56]OFD Sender: No OFD packet to send [01:22:01]OFD Sender: No OFD packet to send [01:22:06]OFD Sender: No OFD packet to send [01:22:11]OFD Sender: No OFD packet to send [01:22:16]OFD Sender: No OFD packet to send [01:22:21]OFD Sender: No OFD packet to send [01:22:26]OFD Sender: No OFD packet to send [01:22:31]OFD Sender: No OFD packet to send [01:22:36]OFD Sender: No OFD packet to send [01:22:41]OFD Sender: No OFD packet to send [01:22:46]OFD Sender: No OFD packet to send [01:22:51]OFD Sender: No OFD packet to send [01:22:56]OFD Sender: No OFD packet to send [01:23:01]OFD Sender: No OFD packet to send [01:23:06]OFD Sender: No OFD packet to send [01:23:11]OFD Sender: No OFD packet to send [01:23:16]OFD Sender: No OFD packet to send [01:23:21]OFD Sender: No OFD packet to send [01:23:26]OFD Sender: No OFD packet to send [01:23:31]OFD Sender: No OFD packet to send [01:23:36]OFD Sender: No OFD packet to send [01:23:41]OFD Sender: No OFD packet to send [01:23:46]OFD Sender: No OFD packet to send [01:23:51]OFD Sender: No OFD packet to send [01:23:56]OFD Sender: No OFD packet to send [01:24:01]OFD Sender: No OFD packet to send [01:24:06]OFD Sender: No OFD packet to send [01:24:11]OFD Sender: No OFD packet to send [01:24:16]OFD Sender: No OFD packet to send [01:24:21]OFD Sender: No OFD packet to send [01:24:26]OFD Sender: No OFD packet to send [01:24:31]OFD Sender: No OFD packet to send [01:24:36]OFD Sender: No OFD packet to send [01:24:41]OFD Sender: No OFD packet to send [01:24:46]OFD Sender: No OFD packet to send [01:24:51]OFD Sender: No OFD packet to send [01:24:56]OFD Sender: No OFD packet to send [01:25:01]OFD Sender: No OFD packet to send [01:25:06]OFD Sender: No OFD packet to send [01:25:11]OFD Sender: No OFD packet to send [01:25:16]OFD Sender: No OFD packet to send [01:25:21]OFD Sender: No OFD packet to send [01:25:26]OFD Sender: No OFD packet to send [01:25:31]OFD Sender: No OFD packet to send [01:25:36]OFD Sender: No OFD packet to send [01:25:41]OFD Sender: No OFD packet to send [01:25:46]OFD Sender: No OFD packet to send [01:25:51]OFD Sender: No OFD packet to send [01:25:56]OFD Sender: No OFD packet to send [01:26:01]OFD Sender: No OFD packet to send [01:26:06]OFD Sender: No OFD packet to send [01:26:11]OFD Sender: No OFD packet to send [01:26:16]OFD Sender: No OFD packet to send [01:26:21]OFD Sender: No OFD packet to send [01:26:26]OFD Sender: No OFD packet to send [01:26:31]OFD Sender: No OFD packet to send [01:26:36]OFD Sender: No OFD packet to send [01:26:41]OFD Sender: No OFD packet to send [01:26:46]OFD Sender: No OFD packet to send [01:26:51]OFD Sender: No OFD packet to send [01:26:56]OFD Sender: No OFD packet to send [01:27:01]OFD Sender: No OFD packet to send [01:27:06]OFD Sender: No OFD packet to send [01:27:11]OFD Sender: No OFD packet to send [01:27:16]OFD Sender: No OFD packet to send [01:27:21]OFD Sender: No OFD packet to send [01:27:26]OFD Sender: No OFD packet to send [01:27:31]OFD Sender: No OFD packet to send [01:27:36]OFD Sender: No OFD packet to send [01:27:41]OFD Sender: No OFD packet to send [01:27:46]OFD Sender: No OFD packet to send [01:27:51]OFD Sender: No OFD packet to send [01:27:56]OFD Sender: No OFD packet to send [01:28:01]OFD Sender: No OFD packet to send [01:28:06]OFD Sender: No OFD packet to send [01:28:11]OFD Sender: No OFD packet to send [01:28:16]OFD Sender: No OFD packet to send [01:28:21]OFD Sender: No OFD packet to send [01:28:26]OFD Sender: No OFD packet to send [01:28:31]OFD Sender: No OFD packet to send [01:28:36]OFD Sender: No OFD packet to send [01:28:41]OFD Sender: No OFD packet to send [01:28:46]OFD Sender: No OFD packet to send [01:28:51]OFD Sender: No OFD packet to send [01:28:56]OFD Sender: No OFD packet to send [01:29:01]OFD Sender: No OFD packet to send [01:29:06]OFD Sender: No OFD packet to send [01:29:11]OFD Sender: No OFD packet to send [01:29:16]OFD Sender: No OFD packet to send [01:29:21]OFD Sender: No OFD packet to send [01:29:26]OFD Sender: No OFD packet to send [01:29:31]OFD Sender: No OFD packet to send [01:29:36]OFD Sender: No OFD packet to send [01:29:41]OFD Sender: No OFD packet to send [01:29:46]OFD Sender: No OFD packet to send [01:29:51]OFD Sender: No OFD packet to send [01:29:56]OFD Sender: No OFD packet to send [01:30:01]OFD Sender: No OFD packet to send [01:30:06]OFD Sender: No OFD packet to send [01:30:11]OFD Sender: No OFD packet to send [01:30:16]OFD Sender: No OFD packet to send [01:30:21]OFD Sender: No OFD packet to send [01:30:26]OFD Sender: No OFD packet to send [01:30:31]OFD Sender: No OFD packet to send [01:30:36]OFD Sender: No OFD packet to send [01:30:41]OFD Sender: No OFD packet to send [01:30:46]OFD Sender: No OFD packet to send [01:30:51]OFD Sender: No OFD packet to send [01:30:56]OFD Sender: No OFD packet to send [01:31:01]OFD Sender: No OFD packet to send [01:31:06]OFD Sender: No OFD packet to send [01:31:11]OFD Sender: No OFD packet to send [01:31:16]OFD Sender: No OFD packet to send [01:31:21]OFD Sender: No OFD packet to send [01:31:26]OFD Sender: No OFD packet to send [01:31:31]OFD Sender: No OFD packet to send [01:31:36]OFD Sender: No OFD packet to send [01:31:41]OFD Sender: No OFD packet to send [01:31:46]OFD Sender: No OFD packet to send [01:31:51]OFD Sender: No OFD packet to send [01:31:56]OFD Sender: No OFD packet to send [01:32:01]OFD Sender: No OFD packet to send [01:32:06]OFD Sender: No OFD packet to send [01:32:11]OFD Sender: No OFD packet to send [01:32:16]OFD Sender: No OFD packet to send [01:32:21]OFD Sender: No OFD packet to send [01:32:26]OFD Sender: No OFD packet to send [01:32:32]OFD Sender: No OFD packet to send [01:32:37]OFD Sender: No OFD packet to send [01:32:42]OFD Sender: No OFD packet to send [01:32:47]OFD Sender: No OFD packet to send [01:32:52]OFD Sender: No OFD packet to send [01:32:57]OFD Sender: No OFD packet to send [01:33:02]OFD Sender: No OFD packet to send [01:33:07]OFD Sender: No OFD packet to send [01:33:12]OFD Sender: No OFD packet to send [01:33:17]OFD Sender: No OFD packet to send [01:33:22]OFD Sender: No OFD packet to send [01:33:27]OFD Sender: No OFD packet to send [01:33:32]OFD Sender: No OFD packet to send [01:33:37]OFD Sender: No OFD packet to send [01:33:42]OFD Sender: No OFD packet to send [01:33:47]OFD Sender: No OFD packet to send [01:33:52]OFD Sender: No OFD packet to send [01:33:57]OFD Sender: No OFD packet to send [01:34:02]OFD Sender: No OFD packet to send [01:34:07]OFD Sender: No OFD packet to send [01:34:12]OFD Sender: No OFD packet to send [01:34:17]OFD Sender: No OFD packet to send [01:34:22]OFD Sender: No OFD packet to send [01:34:27]OFD Sender: No OFD packet to send [01:34:32]OFD Sender: No OFD packet to send [01:34:37]OFD Sender: No OFD packet to send [01:34:42]OFD Sender: No OFD packet to send [01:34:47]OFD Sender: No OFD packet to send [01:34:52]OFD Sender: No OFD packet to send [01:34:57]OFD Sender: No OFD packet to send [01:35:02]OFD Sender: No OFD packet to send [01:35:07]OFD Sender: No OFD packet to send [01:35:12]OFD Sender: No OFD packet to send [01:35:17]OFD Sender: No OFD packet to send [01:35:22]OFD Sender: No OFD packet to send [01:35:27]OFD Sender: No OFD packet to send [01:35:32]OFD Sender: No OFD packet to send [01:35:37]OFD Sender: No OFD packet to send [01:35:42]OFD Sender: No OFD packet to send [01:35:47]OFD Sender: No OFD packet to send [01:35:52]OFD Sender: No OFD packet to send [01:35:57]OFD Sender: No OFD packet to send [01:36:02]OFD Sender: No OFD packet to send [01:36:07]OFD Sender: No OFD packet to send [01:36:12]OFD Sender: No OFD packet to send [01:36:17]OFD Sender: No OFD packet to send [01:36:22]OFD Sender: No OFD packet to send [01:36:27]OFD Sender: No OFD packet to send [01:36:32]OFD Sender: No OFD packet to send [01:36:37]OFD Sender: No OFD packet to send [01:36:42]OFD Sender: No OFD packet to send [01:36:47]OFD Sender: No OFD packet to send [01:36:52]OFD Sender: No OFD packet to send [01:36:57]OFD Sender: No OFD packet to send [01:37:02]OFD Sender: No OFD packet to send [01:37:07]OFD Sender: No OFD packet to send [01:37:12]OFD Sender: No OFD packet to send [01:37:17]OFD Sender: No OFD packet to send [01:37:22]OFD Sender: No OFD packet to send [01:37:27]OFD Sender: No OFD packet to send [01:37:32]OFD Sender: No OFD packet to send [01:37:37]OFD Sender: No OFD packet to send [01:37:42]OFD Sender: No OFD packet to send [01:37:47]OFD Sender: No OFD packet to send [01:37:52]OFD Sender: No OFD packet to send [01:37:57]OFD Sender: No OFD packet to send [01:38:02]OFD Sender: No OFD packet to send [01:38:07]OFD Sender: No OFD packet to send [01:38:12]OFD Sender: No OFD packet to send [01:38:17]OFD Sender: No OFD packet to send [01:38:22]OFD Sender: No OFD packet to send [01:38:27]OFD Sender: No OFD packet to send [01:38:32]OFD Sender: No OFD packet to send [01:38:37]OFD Sender: No OFD packet to send [01:38:42]OFD Sender: No OFD packet to send [01:38:47]OFD Sender: No OFD packet to send [01:38:52]OFD Sender: No OFD packet to send [01:38:57]OFD Sender: No OFD packet to send [01:39:02]OFD Sender: No OFD packet to send [01:39:07]OFD Sender: No OFD packet to send [01:39:12]OFD Sender: No OFD packet to send [01:39:17]OFD Sender: No OFD packet to send [01:39:22]OFD Sender: No OFD packet to send [01:39:27]OFD Sender: No OFD packet to send [01:39:32]OFD Sender: No OFD packet to send [01:39:37]OFD Sender: No OFD packet to send [01:39:42]OFD Sender: No OFD packet to send [01:39:47]OFD Sender: No OFD packet to send [01:39:52]OFD Sender: No OFD packet to send [01:39:57]OFD Sender: No OFD packet to send [01:40:02]OFD Sender: No OFD packet to send [01:40:07]OFD Sender: No OFD packet to send [01:40:12]OFD Sender: No OFD packet to send [01:40:17]OFD Sender: No OFD packet to send [01:40:22]OFD Sender: No OFD packet to send [01:40:27]OFD Sender: No OFD packet to send [01:40:32]OFD Sender: No OFD packet to send [01:40:37]OFD Sender: No OFD packet to send [01:40:42]OFD Sender: No OFD packet to send [01:40:47]OFD Sender: No OFD packet to send [01:40:52]OFD Sender: No OFD packet to send [01:40:57]OFD Sender: No OFD packet to send [01:41:02]OFD Sender: No OFD packet to send [01:41:07]OFD Sender: No OFD packet to send [01:41:12]OFD Sender: No OFD packet to send [01:41:17]OFD Sender: No OFD packet to send [01:41:22]OFD Sender: No OFD packet to send [01:41:27]OFD Sender: No OFD packet to send [01:41:32]OFD Sender: No OFD packet to send [01:41:37]OFD Sender: No OFD packet to send [01:41:42]OFD Sender: No OFD packet to send [01:41:47]OFD Sender: No OFD packet to send [01:41:52]OFD Sender: No OFD packet to send [01:41:57]OFD Sender: No OFD packet to send [01:42:02]OFD Sender: No OFD packet to send [01:42:07]OFD Sender: No OFD packet to send [01:42:12]OFD Sender: No OFD packet to send [01:42:17]OFD Sender: No OFD packet to send [01:42:22]OFD Sender: No OFD packet to send [01:42:27]OFD Sender: No OFD packet to send [01:42:32]OFD Sender: No OFD packet to send [01:42:37]OFD Sender: No OFD packet to send [01:42:42]OFD Sender: No OFD packet to send [01:42:47]OFD Sender: No OFD packet to send [01:42:52]OFD Sender: No OFD packet to send [01:42:57]OFD Sender: No OFD packet to send [01:43:02]OFD Sender: No OFD packet to send [01:43:07]OFD Sender: No OFD packet to send [01:43:12]OFD Sender: No OFD packet to send [01:43:17]OFD Sender: No OFD packet to send [01:43:22]OFD Sender: No OFD packet to send [01:43:27]OFD Sender: No OFD packet to send [01:43:32]OFD Sender: No OFD packet to send [01:43:37]OFD Sender: No OFD packet to send [01:43:42]OFD Sender: No OFD packet to send [01:43:47]OFD Sender: No OFD packet to send [01:43:52]OFD Sender: No OFD packet to send [01:43:57]OFD Sender: No OFD packet to send [01:44:02]OFD Sender: No OFD packet to send [01:44:07]OFD Sender: No OFD packet to send [01:44:12]OFD Sender: No OFD packet to send [01:44:17]OFD Sender: No OFD packet to send [01:44:22]OFD Sender: No OFD packet to send [01:44:27]OFD Sender: No OFD packet to send [01:44:32]OFD Sender: No OFD packet to send [01:44:37]OFD Sender: No OFD packet to send [01:44:42]OFD Sender: No OFD packet to send [01:44:47]OFD Sender: No OFD packet to send [01:44:52]OFD Sender: No OFD packet to send [01:44:57]OFD Sender: No OFD packet to send [01:45:02]OFD Sender: No OFD packet to send [01:45:07]OFD Sender: No OFD packet to send [01:45:12]OFD Sender: No OFD packet to send [01:45:17]OFD Sender: No OFD packet to send [01:45:22]OFD Sender: No OFD packet to send [01:45:27]OFD Sender: No OFD packet to send [01:45:32]OFD Sender: No OFD packet to send [01:45:37]OFD Sender: No OFD packet to send [01:45:42]OFD Sender: No OFD packet to send [01:45:47]OFD Sender: No OFD packet to send [01:45:52]OFD Sender: No OFD packet to send [01:45:57]OFD Sender: No OFD packet to send [01:46:02]OFD Sender: No OFD packet to send [01:46:07]OFD Sender: No OFD packet to send [01:46:12]OFD Sender: No OFD packet to send [01:46:17]OFD Sender: No OFD packet to send [01:46:22]OFD Sender: No OFD packet to send [01:46:27]OFD Sender: No OFD packet to send [01:46:32]OFD Sender: No OFD packet to send [01:46:37]OFD Sender: No OFD packet to send [01:46:42]OFD Sender: No OFD packet to send [01:46:47]OFD Sender: No OFD packet to send [01:46:52]OFD Sender: No OFD packet to send [01:46:57]OFD Sender: No OFD packet to send [01:47:02]OFD Sender: No OFD packet to send [01:47:07]OFD Sender: No OFD packet to send [01:47:12]OFD Sender: No OFD packet to send [01:47:17]OFD Sender: No OFD packet to send [01:47:22]OFD Sender: No OFD packet to send [01:47:27]OFD Sender: No OFD packet to send [01:47:32]OFD Sender: No OFD packet to send [01:47:37]OFD Sender: No OFD packet to send [01:47:42]OFD Sender: No OFD packet to send [01:47:47]OFD Sender: No OFD packet to send [01:47:52]OFD Sender: No OFD packet to send [01:47:57]OFD Sender: No OFD packet to send [01:48:02]OFD Sender: No OFD packet to send [01:48:07]OFD Sender: No OFD packet to send [01:48:12]OFD Sender: No OFD packet to send [01:48:17]OFD Sender: No OFD packet to send [01:48:22]OFD Sender: No OFD packet to send [01:48:27]OFD Sender: No OFD packet to send [01:48:32]OFD Sender: No OFD packet to send [01:48:37]OFD Sender: No OFD packet to send [01:48:42]OFD Sender: No OFD packet to send [01:48:47]OFD Sender: No OFD packet to send [01:48:52]OFD Sender: No OFD packet to send [01:48:57]OFD Sender: No OFD packet to send [01:49:02]OFD Sender: No OFD packet to send [01:49:07]OFD Sender: No OFD packet to send [01:49:12]OFD Sender: No OFD packet to send [01:49:17]OFD Sender: No OFD packet to send [01:49:22]OFD Sender: No OFD packet to send [01:49:27]OFD Sender: No OFD packet to send [01:49:32]OFD Sender: No OFD packet to send [01:49:37]OFD Sender: No OFD packet to send [01:49:42]OFD Sender: No OFD packet to send [01:49:47]OFD Sender: No OFD packet to send [01:49:52]OFD Sender: No OFD packet to send [01:49:57]OFD Sender: No OFD packet to send [01:50:02]OFD Sender: No OFD packet to send [01:50:07]OFD Sender: No OFD packet to send [01:50:12]OFD Sender: No OFD packet to send [01:50:17]OFD Sender: No OFD packet to send [01:50:22]OFD Sender: No OFD packet to send [01:50:27]OFD Sender: No OFD packet to send [01:50:32]OFD Sender: No OFD packet to send [01:50:37]OFD Sender: No OFD packet to send [01:50:42]OFD Sender: No OFD packet to send [01:50:47]OFD Sender: No OFD packet to send [01:50:52]OFD Sender: No OFD packet to send [01:50:57]OFD Sender: No OFD packet to send [01:51:02]OFD Sender: No OFD packet to send [01:51:07]OFD Sender: No OFD packet to send [01:51:12]OFD Sender: No OFD packet to send [01:51:17]OFD Sender: No OFD packet to send [01:51:22]OFD Sender: No OFD packet to send [01:51:27]OFD Sender: No OFD packet to send [01:51:32]OFD Sender: No OFD packet to send [01:51:37]OFD Sender: No OFD packet to send [01:51:42]OFD Sender: No OFD packet to send [01:51:47]OFD Sender: No OFD packet to send [01:51:52]OFD Sender: No OFD packet to send [01:51:57]OFD Sender: No OFD packet to send [01:52:02]OFD Sender: No OFD packet to send [01:52:07]OFD Sender: No OFD packet to send [01:52:12]OFD Sender: No OFD packet to send [01:52:17]OFD Sender: No OFD packet to send [01:52:22]OFD Sender: No OFD packet to send [01:52:27]OFD Sender: No OFD packet to send [01:52:32]OFD Sender: No OFD packet to send [01:52:37]OFD Sender: No OFD packet to send [01:52:42]OFD Sender: No OFD packet to send [01:52:47]OFD Sender: No OFD packet to send [01:52:52]OFD Sender: No OFD packet to send [01:52:57]OFD Sender: No OFD packet to send [01:53:02]OFD Sender: No OFD packet to send [01:53:07]OFD Sender: No OFD packet to send [01:53:12]OFD Sender: No OFD packet to send [01:53:17]OFD Sender: No OFD packet to send [01:53:22]OFD Sender: No OFD packet to send [01:53:27]OFD Sender: No OFD packet to send [01:53:32]OFD Sender: No OFD packet to send [01:53:38]OFD Sender: No OFD packet to send [01:53:43]OFD Sender: No OFD packet to send [01:53:48]OFD Sender: No OFD packet to send [01:53:53]OFD Sender: No OFD packet to send [01:53:58]OFD Sender: No OFD packet to send [01:54:03]OFD Sender: No OFD packet to send [01:54:08]OFD Sender: No OFD packet to send [01:54:13]OFD Sender: No OFD packet to send [01:54:18]OFD Sender: No OFD packet to send [01:54:23]OFD Sender: No OFD packet to send [01:54:28]OFD Sender: No OFD packet to send [01:54:33]OFD Sender: No OFD packet to send [01:54:38]OFD Sender: No OFD packet to send [01:54:43]OFD Sender: No OFD packet to send [01:54:48]OFD Sender: No OFD packet to send [01:54:53]OFD Sender: No OFD packet to send [01:54:58]OFD Sender: No OFD packet to send [01:55:03]OFD Sender: No OFD packet to send [01:55:08]OFD Sender: No OFD packet to send [01:55:13]OFD Sender: No OFD packet to send [01:55:18]OFD Sender: No OFD packet to send [01:55:23]OFD Sender: No OFD packet to send [01:55:28]OFD Sender: No OFD packet to send [01:55:33]OFD Sender: No OFD packet to send [01:55:38]OFD Sender: No OFD packet to send [01:55:43]OFD Sender: No OFD packet to send [01:55:48]OFD Sender: No OFD packet to send [01:55:53]OFD Sender: No OFD packet to send [01:55:58]OFD Sender: No OFD packet to send [01:56:03]OFD Sender: No OFD packet to send [01:56:08]OFD Sender: No OFD packet to send [01:56:13]OFD Sender: No OFD packet to send [01:56:18]OFD Sender: No OFD packet to send [01:56:23]OFD Sender: No OFD packet to send [01:56:28]OFD Sender: No OFD packet to send [01:56:33]OFD Sender: No OFD packet to send [01:56:38]OFD Sender: No OFD packet to send [01:56:43]OFD Sender: No OFD packet to send [01:56:48]OFD Sender: No OFD packet to send [01:56:53]OFD Sender: No OFD packet to send [01:56:58]OFD Sender: No OFD packet to send [01:57:03]OFD Sender: No OFD packet to send [01:57:08]OFD Sender: No OFD packet to send [01:57:13]OFD Sender: No OFD packet to send [01:57:18]OFD Sender: No OFD packet to send [01:57:23]OFD Sender: No OFD packet to send [01:57:28]OFD Sender: No OFD packet to send [01:57:33]OFD Sender: No OFD packet to send [01:57:38]OFD Sender: No OFD packet to send [01:57:43]OFD Sender: No OFD packet to send [01:57:48]OFD Sender: No OFD packet to send [01:57:53]OFD Sender: No OFD packet to send [01:57:58]OFD Sender: No OFD packet to send [01:58:03]OFD Sender: No OFD packet to send [01:58:08]OFD Sender: No OFD packet to send [01:58:13]OFD Sender: No OFD packet to send [01:58:18]OFD Sender: No OFD packet to send [01:58:23]OFD Sender: No OFD packet to send [01:58:28]OFD Sender: No OFD packet to send [01:58:33]OFD Sender: No OFD packet to send [01:58:38]OFD Sender: No OFD packet to send [01:58:43]OFD Sender: No OFD packet to send [01:58:48]OFD Sender: No OFD packet to send [01:58:53]OFD Sender: No OFD packet to send [01:58:58]OFD Sender: No OFD packet to send [01:59:03]OFD Sender: No OFD packet to send [01:59:08]OFD Sender: No OFD packet to send [01:59:13]OFD Sender: No OFD packet to send [01:59:18]OFD Sender: No OFD packet to send [01:59:23]OFD Sender: No OFD packet to send [01:59:28]OFD Sender: No OFD packet to send [01:59:33]OFD Sender: No OFD packet to send [01:59:38]OFD Sender: No OFD packet to send [01:59:43]OFD Sender: No OFD packet to send [01:59:48]OFD Sender: No OFD packet to send [01:59:53]OFD Sender: No OFD packet to send [01:59:58]OFD Sender: No OFD packet to send [02:00:03]OFD Sender: No OFD packet to send [02:00:08]OFD Sender: No OFD packet to send [02:00:13]OFD Sender: No OFD packet to send [02:00:18]OFD Sender: No OFD packet to send [02:00:23]OFD Sender: No OFD packet to send [02:00:28]OFD Sender: No OFD packet to send [02:00:33]OFD Sender: No OFD packet to send [02:00:38]OFD Sender: No OFD packet to send [02:00:43]OFD Sender: No OFD packet to send [02:00:48]OFD Sender: No OFD packet to send [02:00:53]OFD Sender: No OFD packet to send [02:00:58]OFD Sender: No OFD packet to send [02:01:03]OFD Sender: No OFD packet to send [02:01:08]OFD Sender: No OFD packet to send [02:01:13]OFD Sender: No OFD packet to send [02:01:18]OFD Sender: No OFD packet to send [02:01:23]OFD Sender: No OFD packet to send [02:01:28]OFD Sender: No OFD packet to send [02:01:33]OFD Sender: No OFD packet to send [02:01:38]OFD Sender: No OFD packet to send [02:01:43]OFD Sender: No OFD packet to send [02:01:48]OFD Sender: No OFD packet to send [02:01:53]OFD Sender: No OFD packet to send [02:01:58]OFD Sender: No OFD packet to send [02:02:03]OFD Sender: No OFD packet to send [02:02:08]OFD Sender: No OFD packet to send [02:02:13]OFD Sender: No OFD packet to send [02:02:18]OFD Sender: No OFD packet to send [02:02:23]OFD Sender: No OFD packet to send [02:02:28]OFD Sender: No OFD packet to send [02:02:33]OFD Sender: No OFD packet to send [02:02:38]OFD Sender: No OFD packet to send [02:02:43]OFD Sender: No OFD packet to send [02:02:48]OFD Sender: No OFD packet to send [02:02:53]OFD Sender: No OFD packet to send [02:02:58]OFD Sender: No OFD packet to send [02:03:03]OFD Sender: No OFD packet to send [02:03:08]OFD Sender: No OFD packet to send [02:03:13]OFD Sender: No OFD packet to send [02:03:18]OFD Sender: No OFD packet to send [02:03:23]OFD Sender: No OFD packet to send [02:03:28]OFD Sender: No OFD packet to send [02:03:33]OFD Sender: No OFD packet to send [02:03:38]OFD Sender: No OFD packet to send [02:03:43]OFD Sender: No OFD packet to send [02:03:48]OFD Sender: No OFD packet to send [02:03:53]OFD Sender: No OFD packet to send [02:03:58]OFD Sender: No OFD packet to send [02:04:03]OFD Sender: No OFD packet to send [02:04:08]OFD Sender: No OFD packet to send [02:04:13]OFD Sender: No OFD packet to send [02:04:18]OFD Sender: No OFD packet to send [02:04:23]OFD Sender: No OFD packet to send [02:04:28]OFD Sender: No OFD packet to send [02:04:33]OFD Sender: No OFD packet to send [02:04:38]OFD Sender: No OFD packet to send [02:04:43]OFD Sender: No OFD packet to send [02:04:48]OFD Sender: No OFD packet to send [02:04:53]OFD Sender: No OFD packet to send [02:04:58]OFD Sender: No OFD packet to send [02:05:03]OFD Sender: No OFD packet to send [02:05:08]OFD Sender: No OFD packet to send [02:05:13]OFD Sender: No OFD packet to send [02:05:18]OFD Sender: No OFD packet to send [02:05:23]OFD Sender: No OFD packet to send [02:05:28]OFD Sender: No OFD packet to send [02:05:33]OFD Sender: No OFD packet to send [02:05:38]OFD Sender: No OFD packet to send [02:05:43]OFD Sender: No OFD packet to send [02:05:48]OFD Sender: No OFD packet to send [02:05:53]OFD Sender: No OFD packet to send [02:05:58]OFD Sender: No OFD packet to send [02:06:03]OFD Sender: No OFD packet to send [02:06:08]OFD Sender: No OFD packet to send [02:06:13]OFD Sender: No OFD packet to send [02:06:18]OFD Sender: No OFD packet to send [02:06:23]OFD Sender: No OFD packet to send [02:06:28]OFD Sender: No OFD packet to send [02:06:33]OFD Sender: No OFD packet to send [02:06:38]OFD Sender: No OFD packet to send [02:06:43]OFD Sender: No OFD packet to send [02:06:48]OFD Sender: No OFD packet to send [02:06:53]OFD Sender: No OFD packet to send [02:06:58]OFD Sender: No OFD packet to send [02:07:03]OFD Sender: No OFD packet to send [02:07:08]OFD Sender: No OFD packet to send [02:07:13]OFD Sender: No OFD packet to send [02:07:18]OFD Sender: No OFD packet to send [02:07:23]OFD Sender: No OFD packet to send [02:07:28]OFD Sender: No OFD packet to send [02:07:33]OFD Sender: No OFD packet to send [02:07:38]OFD Sender: No OFD packet to send [02:07:43]OFD Sender: No OFD packet to send [02:07:48]OFD Sender: No OFD packet to send [02:07:53]OFD Sender: No OFD packet to send [02:07:58]OFD Sender: No OFD packet to send [02:08:03]OFD Sender: No OFD packet to send [02:08:08]OFD Sender: No OFD packet to send [02:08:13]OFD Sender: No OFD packet to send [02:08:18]OFD Sender: No OFD packet to send [02:08:23]OFD Sender: No OFD packet to send [02:08:28]OFD Sender: No OFD packet to send [02:08:33]OFD Sender: No OFD packet to send [02:08:38]OFD Sender: No OFD packet to send [02:08:43]OFD Sender: No OFD packet to send [02:08:48]OFD Sender: No OFD packet to send [02:08:53]OFD Sender: No OFD packet to send [02:08:58]OFD Sender: No OFD packet to send [02:09:03]OFD Sender: No OFD packet to send [02:09:08]OFD Sender: No OFD packet to send [02:09:13]OFD Sender: No OFD packet to send [02:09:18]OFD Sender: No OFD packet to send [02:09:23]OFD Sender: No OFD packet to send [02:09:28]OFD Sender: No OFD packet to send [02:09:33]OFD Sender: No OFD packet to send [02:09:38]OFD Sender: No OFD packet to send [02:09:43]OFD Sender: No OFD packet to send [02:09:48]OFD Sender: No OFD packet to send [02:09:49]accept exits with 7 [02:09:49]New connection [02:09:49]New thread 3066928484 created [02:09:49]Thread 3066785124 joined [02:09:49]Waiting for new connection... [02:09:49] Sock 7.Parse request [02:09:49]Sock 7.Check first char [02:09:49]Sock 7.First char is OK [02:09:49]request: POST /json_proto HTTP/1.0 [02:09:49]Method: POST [02:09:49]URL: /json_proto [02:09:49]Method is POST - this is cgi request [02:09:49]url: /json_proto [02:09:49]query_string will be loaded in cgi processing [02:09:49]execute_cgi json_proto POST (null) [02:09:49]execute_cgi path=json_proto method=POST [02:09:49]POST find Content-Length [02:09:49]Host: 172.17.33.3:8080 [02:09:49]Content-Length: 685 [02:09:49]Content-Type: application/json [02:09:49] [02:09:49]POST finish read [02:09:49]Found Content-Length = 685 [02:09:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347145", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 60.800, "sum" : 2000.32, "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" ] } } [02:09:49]execute_script... [02:09: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)347145", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 60.800, "sum" : 2000.32, "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" ] } } [02:09:49]POST & json_proto [02:09:49]process_json_proto [02:09:49]json parsed OK: [02:09:49]protocol is kg_v1.0 [02:09:49]action value=close_receipt [02:09:49]process_action close_receipt [02:09:49]cmd_close_receipt [02:09:49]MH_GetDate [02:09:49]Write to MH i2c: F0 00 00 D0 17 D6 [02:09:49]Write i2c OK [02:09:49]MH_I2C_Read... [02:09:49]Read from MH i2c: F0 [02:09:49]MH_I2C_Read... [02:09:49]Read from MH i2c: F0 09 00 [02:09:49]MH_I2C_Read... [02:09:49]Read from MH i2c: F0 09 00 D0 17 00 6F E9 19 66 23 5B 8F 65 28 [02:09:49]GetLastDocTimeStamp 1712971060 [02:09:49]current date 1712974191 [02:09:49]FM_GetShiftState [02:09:49]SAM_PROTO_GetShiftState [02:09:49]wFMCommunicate request_size=4 [02:09:49]MH_SAM_APDU [02:09:49]CAPDU: 80 13 01 00 [02:09:49]Write to MH i2c: E2 08 00 D1 17 80 13 01 00 00 00 00 00 65 [02:09:49]Write i2c OK [02:09:49]MH_I2C_Read... [02:09:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:09:49]Read from MH i2c: E2 [02:09:49]MH_I2C_Read... [02:09:49]Read from MH i2c: E2 0E 00 [02:09:49]MH_I2C_Read... [02:09:49]Read from MH i2c: E2 0E 00 D1 17 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 7E [02:09:49]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [02:09:49]wFMCommunicate OK [02:09:49]SAM_PROTO_GetShiftState done [02:09:49]FM_GetShiftState done [02:09:49]opened in 1712967615 [02:09:49]opened+sec_in_day 1713054015 [02:09:49]quantity*price = 200032 [02:09:49]sum+1 = 200033 [02:09:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 6 13.04.2024 02:09 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28799 ФПД: 37239145839470 1/tax-web-control/client/api/v1/ticket?date=20240413T020951&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28799&fm=37239145839470&tin=02508201610067®Number=0000138879044617&sum=200000 [02:09:50]StoreToDocumentArchive [02:09:50]shift 115 fd 28799 [02:09:50]save to /storage/0115/doc_00028799 [02:09:50]save last doc name /storage/0115/doc_00028799 to /storage/kkm_last_doc_name [02:09:50]save OK [02:09:50]Clear old archive folders... [02:09:50]ProcessDocumentItem done err = 0, tmpTLVsize=250 [02:09:50]tlvbuf is 011A97A0 [02:09:50]SAM_PROTO_ClearQueue [02:09:50]wFMCommunicate request_size=4 [02:09:50]MH_SAM_APDU [02:09:50]CAPDU: 80 09 00 00 [02:09:50]Write to MH i2c: E2 08 00 DE 17 80 09 00 00 00 00 00 00 67 [02:09:50]Write i2c OK [02:09:50]MH_I2C_Read... [02:09:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:09:50]Read from MH i2c: E2 [02:09:50]MH_I2C_Read... [02:09:50]Read from MH i2c: E2 03 00 [02:09:50]MH_I2C_Read... [02:09:50]Read from MH i2c: E2 03 00 DE 17 00 90 00 69 [02:09:50]RAPDU: 90 00 [02:09:50]wFMCommunicate OK [02:09:50]SAM_PROTO_ClearQueue done [02:09:50]KKMCreateOFDPacket [02:09:50]OFDProtocolAddRootSTLVToBuf [02:09:50]FM_MakeSignedData [02:09:50]FM_MakeSignedData [02:09:50]SAM_PROTO_SignData [02:09:50]wFMCommunicate request_size=4 [02:09:50]MH_SAM_APDU [02:09:50]CAPDU: 80 0D 01 02 [02:09:50]Write to MH i2c: E2 08 00 DF 17 80 0D 01 02 00 00 00 00 6F [02:09:50]Write i2c OK [02:09:50]MH_I2C_Read... [02:09:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:09:50]Read from MH i2c: E2 [02:09:50]MH_I2C_Read... [02:09:50]Read from MH i2c: E2 03 00 [02:09:50]MH_I2C_Read... [02:09:50]Read from MH i2c: E2 03 00 DF 17 00 90 00 6A [02:09:50]RAPDU: 90 00 [02:09:50]wFMCommunicate OK [02:09:50]wFMCommunicate request_size=255 [02:09:50]MH_SAM_APDU [02:09:50]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 80 ED 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 60 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 06 00 00 00 F4 03 04 00 6F E9 19 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7F 70 00 00 35 04 06 00 21 DE [02:09:50]Write to MH i2c: E2 02 01 E0 17 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 80 ED 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 60 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 06 00 00 00 F4 03 04 00 6F E9 19 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7F 70 00 00 35 04 06 00 21 DE 00 00 23 [02:09:50]Write i2c OK [02:09:50]MH_I2C_Read... [02:09:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:09:50]Read from MH i2c: E2 [02:09:50]MH_I2C_Read... [02:09:50]Read from MH i2c: E2 03 00 [02:09:50]MH_I2C_Read... [02:09:50]Read from MH i2c: E2 03 00 E0 17 00 90 00 6B [02:09:50]RAPDU: 90 00 [02:09:50]wFMCommunicate OK [02:09:50]wFMCommunicate request_size=9 [02:09:50]MH_SAM_APDU [02:09:50]CAPDU: 80 0D 02 02 04 6A 0F 3B 6E [02:09:50]Write to MH i2c: E2 0C 00 E1 17 80 0D 02 02 04 00 6A 0F 3B 6E 00 00 9C [02:09:50]Write i2c OK [02:09:50]MH_I2C_Read... [02:09:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:09:50]Read from MH i2c: E2 [02:09:50]MH_I2C_Read... [02:09:50]Read from MH i2c: E2 03 00 [02:09:50]MH_I2C_Read... [02:09:50]Read from MH i2c: E2 03 00 E1 17 00 90 00 6C [02:09:50]RAPDU: 90 00 [02:09:50]wFMCommunicate OK [02:09:50]wFMCommunicate request_size=4 [02:09:50]MH_SAM_APDU [02:09:50]CAPDU: 80 0D 03 02 [02:09:50]Write to MH i2c: E2 08 00 E2 17 80 0D 03 02 00 00 00 00 74 [02:09:50]Write i2c OK [02:09:50]MH_I2C_Read... [02:09:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:09:50]Read from MH i2c: E2 [02:09:50]MH_I2C_Read... [02:09:50]Read from MH i2c: E2 0B 00 [02:09:50]MH_I2C_Read... [02:09:50]Read from MH i2c: E2 0B 00 E2 17 00 E6 E0 C2 F2 FC 8A 4A 75 90 00 34 [02:09:50]RAPDU: E6 E0 C2 F2 FC 8A 4A 75 90 00 [02:09:50]wFMCommunicate OK [02:09:50]SAM_PROTO_SignData done [02:09:50]FM_MakeSignedData done [02:09:50]CreateOFDProtocolMessage [02:09:50]wFMCommunicate request_size=4 [02:09:50]MH_SAM_APDU [02:09:50]CAPDU: 80 11 00 00 [02:09:50]Write to MH i2c: E2 08 00 E3 17 80 11 00 00 00 00 00 00 74 [02:09:50]Write i2c OK [02:09:50]MH_I2C_Read... [02:09:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:09:50]Read from MH i2c: E2 [02:09:50]MH_I2C_Read... [02:09:50]Read from MH i2c: E2 17 00 [02:09:50]MH_I2C_Read... [02:09:50]Read from MH i2c: E2 17 00 E3 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 C3 [02:09:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [02:09:50]wFMCommunicate OK [02:09:50]CreateOFDProtocolMessage done [02:09:50]OFDSenderStorePacket 28799 [02:09:50]StoreOFDPacket docnum=28799 [02:09:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 1B 8F 06 01 0D D9 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 80 ED 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 60 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 06 00 00 00 F4 03 04 00 6F E9 19 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7F 70 00 00 35 04 06 00 21 DE 6A 0F 3B 6E E6 E0 C2 F2 FC 8A 4A 75 [02:09:50]CheckFolder [02:09:50]dirname=/storage/ofd_packets [02:09:50]CheckFolder done [02:09:50]ProducePacketName [02:09:50]name=ofd_packets/00028799 [02:09:50]NVStorageSaveData ofd_packets/00028799 [02:09:50]File name is /storage/ofd_packets/00028799 [02:09:50]Write 300 bytes [02:09:50]NVStorageSaveData done [02:09:50]OFDSenderStorePacket done [02:09:50]KKMCreateOFDPacket done [02:09:50]NVStorageSaveData kkm_last_timestamp [02:09:50]File name is /storage/kkm_last_timestamp [02:09:50]Write 4 bytes [02:09:50]NVStorageSaveData done [02:09:50]ExternCall_PrintAddStr [02:09:50]wPrintStart [02:09:50]Write to MH i2c: 01 00 00 E4 17 FB [02:09:50]Write i2c OK [02:09:50]MH_I2C_Read... [02:09:50]Read from MH i2c: 01 [02:09:50]MH_I2C_Read... [02:09:50]Read from MH i2c: 01 07 00 [02:09:50]MH_I2C_Read... [02:09:50]Read from MH i2c: 01 07 00 E4 17 00 00 00 00 00 FF 0F 10 [02:09:50]RasterBufferAndPrint [02:09:50]line Счет N : (1)347145 [02:09:50]line ИНН: 02508201610067 [02:09:50]line Контрольно-Кассовый Чек [02:09:50]line ПРОДАЖА [02:09:50]line ТРК (МРК, ГНК) : 71 [02:09:50]line Товар: 2711129700 [02:09:50]line ГАЗ-К-5 [02:09:50]line 60.800 * 32.90 [02:09:50]line = 2000.32 [02:09:50]line НДС 12% НСП 1% [02:09:50]line > о реализуемом товаре [02:09:50]line ОКРУГЛЕНИЕ: -0.32 [02:09:50]line ИТОГО: 2000.00 [02:09:50]line Внесено: 2000.00 [02:09:50]line СДАЧА: 0.00 [02:09:50]line НСП 1% : 17.70 [02:09:50]line НДС 12% : 212.42 [02:09:50]line Наличными: 2000.00 [02:09:50]line Безнал.: 0.00 [02:09:50]line Место: АЗС № 108 "Партнер Нефть" [02:09:50]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [02:09:50]line СНО: Общий режим [02:09:50]line Чек 6 13.04.2024 02:09 [02:09:50]line Смена: 115 ФФД: 1.0 [02:09:50]line ЗНМ: 0300000027 [02:09:50]line РНМ: 0000138879044617 [02:09:50]line Версия ККМ: 001 [02:09:50]line ФМ: 0000000000963154 [02:09:50]line ФД: 28799 [02:09:50]line ФПД: 37239145839470 [02:09:50]line 1/tax-web-control/client/api/v1/ticket?date=20240413T020951&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28799&fm=37239145839470&tin=02508201610067®Number=0000138879044617&sum=200000 [02:09:51]OFD Sender: Processing packet 28799 [packets to send 8, broken 7] [02:09:51]ProducePacketName [02:09:51]name=ofd_packets/00028799 [02:09:51]OFD Sender: To server: pG, [02:09:51]CommunicateWithHost lk.salyk.kg:30040 [02:09:51]ConnectInit lk.salyk.kg [02:09:51]written 0, free lines is 4095 [02:09:51]Connected sock=10 [02:09:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 1B 8F 06 01 0D D9 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 80 ED 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 60 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 06 00 00 00 F4 03 04 00 6F E9 19 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7F 70 00 00 35 04 06 00 21 DE 6A 0F 3B 6E E6 E0 C2 F2 FC 8A 4A 75 [02:09:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 63 EB 47 00 1B 25 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7F 70 00 00 F4 03 04 00 17 94 19 66 B6 04 01 00 00 50 5D 22 25 C3 5E 53 93 [02:09:51]CommunicateWithHost err = 0 [02:09:51]CheckOFDResponse [02:09:51]1017 (14) - 77093643461234 [02:09:51]1041 (16) - 0000000000963154 [02:09:51]1040 (4) - 28799 [02:09:51]1012 (4) - 12.04.2024 20:05 [02:09:51]1206 (1) - 0 [02:09:51]OFD Sender: Remove packet 28799 [02:09:51]ProducePacketName [02:09:51]name=ofd_packets/00028799 [02:09:51]NVStorageDeleteData [02:09:51]Write to MH i2c: 01 00 00 0E 18 26 [02:09:51]Write i2c OK [02:09:51]MH_I2C_Read... [02:09:51]Read from MH i2c: 01 [02:09:51]MH_I2C_Read... [02:09:51]Read from MH i2c: 01 07 00 [02:09:51]MH_I2C_Read... [02:09:51]Read from MH i2c: 01 07 00 0E 18 00 00 00 00 00 C6 0C FF [02:09:51]RasterBufferAndPrint [02:09:51]line [02:09:51]line [02:09:51]line [02:09:51]line [02:09:51]line [02:09:51]written 0, free lines is 3274 [02:09:51]MH_Cut [02:09:51]Write to MH i2c: D1 01 00 15 18 01 FF [02:09:51]Write i2c OK [02:09:51]MH_I2C_Read... [02:09:51]Read from MH i2c: D1 [02:09:51]MH_I2C_Read... [02:09:51]Read from MH i2c: D1 01 00 [02:09:51]MH_I2C_Read... [02:09:51]Read from MH i2c: D1 01 00 15 18 00 FE [02:09:51]Write to MH i2c: 01 00 00 16 18 2E [02:09:51]Write i2c OK [02:09:51]MH_I2C_Read... [02:09:51]OFD Sender: No OFD packet to send [02:09:52]*** Cut start [02:09:52]*** Partial cut [02:09:52]*** CUTSNS_PIN = 1 [02:09:52]*** CUTSNS_PIN = 0 [02:09:52]*** Brake cut motor [02:09:52]Read from MH i2c: 01 [02:09:52]MH_I2C_Read... [02:09:52]*** Stop cut motor [02:09:53]*** Cut end [02:09:53]Read from MH i2c: 01 07 00 [02:09:53]MH_I2C_Read... [02:09:53]Read from MH i2c: 01 07 00 16 18 00 00 00 00 00 FF 0F 43 [02:09:53]process_action close_receipt done [02:09:53]requested_data is exist [02:09:53]produce_requested_data [02:09:53]requested_item fm.sn is exist - process it [02:09:53]wFMCommunicate request_size=4 [02:09:53]MH_SAM_APDU [02:09:53]CAPDU: 80 11 00 00 [02:09:53]Write to MH i2c: E2 08 00 17 18 80 11 00 00 00 00 00 00 A9 [02:09:53]Write i2c OK [02:09:53]MH_I2C_Read... [02:09:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:09:53]Read from MH i2c: E2 [02:09:53]MH_I2C_Read... [02:09:53]Read from MH i2c: E2 17 00 [02:09:53]MH_I2C_Read... [02:09:53]Read from MH i2c: E2 17 00 17 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 F8 [02:09:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [02:09:53]wFMCommunicate OK [02:09:53]requested_item fd.num is exist - process it [02:09:53]SAM_PROTO_GetFieldsCounters [02:09:53]wFMCommunicate request_size=4 [02:09:53]MH_SAM_APDU [02:09:53]CAPDU: 80 13 00 00 [02:09:53]Write to MH i2c: E2 08 00 18 18 80 13 00 00 00 00 00 00 AC [02:09:53]Write i2c OK [02:09:53]MH_I2C_Read... [02:09:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:09:53]Read from MH i2c: E2 [02:09:53]MH_I2C_Read... [02:09:53]Read from MH i2c: E2 62 00 [02:09:53]MH_I2C_Read... [02:09:53]Read from MH i2c: E2 62 00 18 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 7F 70 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 5E [02:09:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 7F 70 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:09:53]wFMCommunicate OK [02:09:53]SAM_PROTO_GetFieldsCounters done [02:09:53]requested_item shift.num is exist - process it [02:09:53]requested_item shift.opened is exist - process it [02:09:53]req_shift_opened [02:09:53]FM_GetShiftState [02:09:53]SAM_PROTO_GetShiftState [02:09:53]wFMCommunicate request_size=4 [02:09:53]MH_SAM_APDU [02:09:53]CAPDU: 80 13 01 00 [02:09:53]Write to MH i2c: E2 08 00 19 18 80 13 01 00 00 00 00 00 AE [02:09:53]Write i2c OK [02:09:53]MH_I2C_Read... [02:09:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:09:53]Read from MH i2c: E2 [02:09:53]MH_I2C_Read... [02:09:53]Read from MH i2c: E2 0E 00 [02:09:53]MH_I2C_Read... [02:09:53]Read from MH i2c: E2 0E 00 19 18 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 C7 [02:09:53]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [02:09:53]wFMCommunicate OK [02:09:53]SAM_PROTO_GetShiftState done [02:09:53]FM_GetShiftState done [02:09:53]req_shift_opened done [02:09:53]requested_item shift.open_date is exist - process it [02:09:53]req_shift_open_date [02:09:53]req_shift_open_date done [02:09:53]produce_requested_data done [02:09:53]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28799,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [02:09:53]process_action_free close_receipt [02:09:53]json_value_free [02:09:53]json_value_free done [02:09:53]process_json_proto returns [02:09:53]Send response to host [02:09:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28799,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [02:09:53]free response buf [02:09:53]execute_script done [02:09:53]execute_script returns [02:09:53]free content buf [02:09:53]Sock 7.Close socket [02:09:53]Sock 7.Thread stoped [02:09:56]OFD Sender: No OFD packet to send [02:10:01]OFD Sender: No OFD packet to send [02:10:06]OFD Sender: No OFD packet to send [02:10:11]OFD Sender: No OFD packet to send [02:10:16]OFD Sender: No OFD packet to send [02:10:21]OFD Sender: No OFD packet to send [02:10:26]OFD Sender: No OFD packet to send [02:10:31]OFD Sender: No OFD packet to send [02:10:36]OFD Sender: No OFD packet to send [02:10:41]OFD Sender: No OFD packet to send [02:10:46]OFD Sender: No OFD packet to send [02:10:51]OFD Sender: No OFD packet to send [02:10:56]OFD Sender: No OFD packet to send [02:11:01]OFD Sender: No OFD packet to send [02:11:06]OFD Sender: No OFD packet to send [02:11:11]OFD Sender: No OFD packet to send [02:11:16]OFD Sender: No OFD packet to send [02:11:21]OFD Sender: No OFD packet to send [02:11:26]OFD Sender: No OFD packet to send [02:11:31]OFD Sender: No OFD packet to send [02:11:36]OFD Sender: No OFD packet to send [02:11:41]OFD Sender: No OFD packet to send [02:11:46]OFD Sender: No OFD packet to send [02:11:51]OFD Sender: No OFD packet to send [02:11:56]OFD Sender: No OFD packet to send [02:12:01]OFD Sender: No OFD packet to send [02:12:06]OFD Sender: No OFD packet to send [02:12:11]OFD Sender: No OFD packet to send [02:12:16]OFD Sender: No OFD packet to send [02:12:21]OFD Sender: No OFD packet to send [02:12:26]OFD Sender: No OFD packet to send [02:12:31]OFD Sender: No OFD packet to send [02:12:36]OFD Sender: No OFD packet to send [02:12:41]OFD Sender: No OFD packet to send [02:12:46]OFD Sender: No OFD packet to send [02:12:51]OFD Sender: No OFD packet to send [02:12:56]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:40]accept exits with 9 [02:16:40]New connection [02:16:40]New thread 3066785124 created [02:16:40]Thread 3066928484 joined [02:16:40]Waiting for new connection... [02:16:40] Sock 9.Parse request [02:16:40]Sock 9.Check first char [02:16:40]Sock 9.First char is OK [02:16:40]request: POST /json_proto HTTP/1.0 [02:16:40]Method: POST [02:16:40]URL: /json_proto [02:16:40]Method is POST - this is cgi request [02:16:40]url: /json_proto [02:16:40]query_string will be loaded in cgi processing [02:16:40]execute_cgi json_proto POST (null) [02:16:40]execute_cgi path=json_proto method=POST [02:16:40]POST find Content-Length [02:16:40]Host: 172.17.33.3:8080 [02:16:40]Content-Length: 843 [02:16:40]Content-Type: application/json [02:16:40] [02:16:40]POST finish read [02:16:40]Found Content-Length = 843 [02:16:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347146", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 6.080, "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" ] } } [02:16:40]execute_script... [02:16: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)347146", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 6.080, "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" ] } } [02:16:40]POST & json_proto [02:16:40]process_json_proto [02:16:40]json parsed OK: [02:16:40]protocol is kg_v1.0 [02:16:40]action value=close_receipt [02:16:40]process_action close_receipt [02:16:40]cmd_close_receipt [02:16:40]MH_GetDate [02:16:40]Write to MH i2c: F0 00 00 1A 18 21 [02:16:40]Write i2c OK [02:16:40]MH_I2C_Read... [02:16:40]Read from MH i2c: F0 [02:16:40]MH_I2C_Read... [02:16:40]Read from MH i2c: F0 09 00 [02:16:40]MH_I2C_Read... [02:16:40]Read from MH i2c: F0 09 00 1A 18 00 0A EB 19 66 23 5B 8F 65 10 [02:16:40]GetLastDocTimeStamp 1712974191 [02:16:40]current date 1712974602 [02:16:40]FM_GetShiftState [02:16:40]SAM_PROTO_GetShiftState [02:16:40]wFMCommunicate request_size=4 [02:16:40]MH_SAM_APDU [02:16:40]CAPDU: 80 13 01 00 [02:16:40]Write to MH i2c: E2 08 00 1B 18 80 13 01 00 00 00 00 00 B0 [02:16:40]Write i2c OK [02:16:40]MH_I2C_Read... [02:16:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:16:40]Read from MH i2c: E2 [02:16:40]MH_I2C_Read... [02:16:40]Read from MH i2c: E2 0E 00 [02:16:40]MH_I2C_Read... [02:16:40]Read from MH i2c: E2 0E 00 1B 18 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 C9 [02:16:40]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [02:16:40]wFMCommunicate OK [02:16:40]SAM_PROTO_GetShiftState done [02:16:40]FM_GetShiftState done [02:16:40]opened in 1712967615 [02:16:40]opened+sec_in_day 1713054015 [02:16:40]quantity*price = 20003 [02:16:40]sum+1 = 20004 [02:16:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.03 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 0.00 Безнал.: 200.03 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 7 13.04.2024 02:16 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 28800 ФПД: 79316079914113 1/tax-web-control/client/api/v1/ticket?date=20240413T021642&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28800&fm=79316079914113&tin=02508201610067®Number=0000138879044617&sum=20003 [02:16:41]StoreToDocumentArchive [02:16:41]shift 115 fd 28800 [02:16:41]save to /storage/0115/doc_00028800 [02:16:41]save last doc name /storage/0115/doc_00028800 to /storage/kkm_last_doc_name [02:16:41]save OK [02:16:41]Clear old archive folders... [02:16:41]ProcessDocumentItem done err = 0, tmpTLVsize=250 [02:16:41]tlvbuf is B6EA2CD0 [02:16:41]SAM_PROTO_ClearQueue [02:16:41]wFMCommunicate request_size=4 [02:16:41]MH_SAM_APDU [02:16:41]CAPDU: 80 09 00 00 [02:16:41]Write to MH i2c: E2 08 00 28 18 80 09 00 00 00 00 00 00 B2 [02:16:41]Write i2c OK [02:16:41]MH_I2C_Read... [02:16:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:16:41]Read from MH i2c: E2 [02:16:41]MH_I2C_Read... [02:16:41]Read from MH i2c: E2 03 00 [02:16:41]MH_I2C_Read... [02:16:41]Read from MH i2c: E2 03 00 28 18 00 90 00 B4 [02:16:41]RAPDU: 90 00 [02:16:41]wFMCommunicate OK [02:16:41]SAM_PROTO_ClearQueue done [02:16:41]KKMCreateOFDPacket [02:16:41]OFDProtocolAddRootSTLVToBuf [02:16:41]FM_MakeSignedData [02:16:41]FM_MakeSignedData [02:16:41]SAM_PROTO_SignData [02:16:41]wFMCommunicate request_size=4 [02:16:41]MH_SAM_APDU [02:16:41]CAPDU: 80 0D 01 02 [02:16:41]Write to MH i2c: E2 08 00 29 18 80 0D 01 02 00 00 00 00 BA [02:16:41]Write i2c OK [02:16:41]MH_I2C_Read... [02:16:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:16:41]Read from MH i2c: E2 [02:16:41]MH_I2C_Read... [02:16:41]Read from MH i2c: E2 03 00 [02:16:41]MH_I2C_Read... [02:16:41]Read from MH i2c: E2 03 00 29 18 00 90 00 B5 [02:16:41]RAPDU: 90 00 [02:16:41]wFMCommunicate OK [02:16:41]wFMCommunicate request_size=255 [02:16:41]MH_SAM_APDU [02:16:41]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 DA 0C 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 07 00 00 00 F4 03 04 00 0A EB 19 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 80 70 00 00 35 04 06 00 48 23 [02:16:41]Write to MH i2c: E2 02 01 2A 18 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 DA 0C 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 07 00 00 00 F4 03 04 00 0A EB 19 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 80 70 00 00 35 04 06 00 48 23 00 00 EF [02:16:41]Write i2c OK [02:16:41]MH_I2C_Read... [02:16:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:16:41]Read from MH i2c: E2 [02:16:41]MH_I2C_Read... [02:16:41]Read from MH i2c: E2 03 00 [02:16:41]MH_I2C_Read... [02:16:41]Read from MH i2c: E2 03 00 2A 18 00 90 00 B6 [02:16:41]RAPDU: 90 00 [02:16:41]wFMCommunicate OK [02:16:41]wFMCommunicate request_size=9 [02:16:41]MH_SAM_APDU [02:16:41]CAPDU: 80 0D 02 02 04 36 C4 AC 81 [02:16:41]Write to MH i2c: E2 0C 00 2B 18 80 0D 02 02 04 00 36 C4 AC 81 00 00 EC [02:16:41]Write i2c OK [02:16:41]MH_I2C_Read... [02:16:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:16:42]Read from MH i2c: E2 [02:16:42]MH_I2C_Read... [02:16:42]Read from MH i2c: E2 03 00 [02:16:42]MH_I2C_Read... [02:16:42]Read from MH i2c: E2 03 00 2B 18 00 90 00 B7 [02:16:42]RAPDU: 90 00 [02:16:42]wFMCommunicate OK [02:16:42]wFMCommunicate request_size=4 [02:16:42]MH_SAM_APDU [02:16:42]CAPDU: 80 0D 03 02 [02:16:42]Write to MH i2c: E2 08 00 2C 18 80 0D 03 02 00 00 00 00 BF [02:16:42]Write i2c OK [02:16:42]MH_I2C_Read... [02:16:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:16:42]Read from MH i2c: E2 [02:16:42]MH_I2C_Read... [02:16:42]Read from MH i2c: E2 0B 00 [02:16:42]MH_I2C_Read... [02:16:42]Read from MH i2c: E2 0B 00 2C 18 00 0B 62 CD B5 EC B3 25 DB 90 00 4E [02:16:42]RAPDU: 0B 62 CD B5 EC B3 25 DB 90 00 [02:16:42]wFMCommunicate OK [02:16:42]SAM_PROTO_SignData done [02:16:42]FM_MakeSignedData done [02:16:42]CreateOFDProtocolMessage [02:16:42]wFMCommunicate request_size=4 [02:16:42]MH_SAM_APDU [02:16:42]CAPDU: 80 11 00 00 [02:16:42]Write to MH i2c: E2 08 00 2D 18 80 11 00 00 00 00 00 00 BF [02:16:42]Write i2c OK [02:16:42]MH_I2C_Read... [02:16:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:16:42]Read from MH i2c: E2 [02:16:42]MH_I2C_Read... [02:16:42]Read from MH i2c: E2 17 00 [02:16:42]MH_I2C_Read... [02:16:42]Read from MH i2c: E2 17 00 2D 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 0E [02:16:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [02:16:42]wFMCommunicate OK [02:16:42]CreateOFDProtocolMessage done [02:16:42]OFDSenderStorePacket 28800 [02:16:42]StoreOFDPacket docnum=28800 [02:16:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 39 4C 06 01 66 76 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 DA 0C 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 07 00 00 00 F4 03 04 00 0A EB 19 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 80 70 00 00 35 04 06 00 48 23 36 C4 AC 81 0B 62 CD B5 EC B3 25 DB [02:16:42]CheckFolder [02:16:42]dirname=/storage/ofd_packets [02:16:42]CheckFolder done [02:16:42]ProducePacketName [02:16:42]name=ofd_packets/00028800 [02:16:42]NVStorageSaveData ofd_packets/00028800 [02:16:42]File name is /storage/ofd_packets/00028800 [02:16:42]Write 300 bytes [02:16:42]NVStorageSaveData done [02:16:42]OFDSenderStorePacket done [02:16:42]KKMCreateOFDPacket done [02:16:42]NVStorageSaveData kkm_last_timestamp [02:16:42]File name is /storage/kkm_last_timestamp [02:16:42]Write 4 bytes [02:16:42]NVStorageSaveData done [02:16:42]ExternCall_PrintAddStr [02:16:42]wPrintStart [02:16:42]Write to MH i2c: 01 00 00 2E 18 46 [02:16:42]Write i2c OK [02:16:42]MH_I2C_Read... [02:16:42]Read from MH i2c: 01 [02:16:42]MH_I2C_Read... [02:16:42]Read from MH i2c: 01 07 00 [02:16:42]MH_I2C_Read... [02:16:42]Read from MH i2c: 01 07 00 2E 18 00 00 00 00 00 FF 0F 5B [02:16:42]RasterBufferAndPrint [02:16:42]line Счет N : (1)347146 [02:16:42]line ИНН: 02508201610067 [02:16:42]line Контрольно-Кассовый Чек [02:16:42]line ПРОДАЖА [02:16:42]line ТРК (МРК, ГНК) : 71 [02:16:42]line Товар: 2711129700 [02:16:42]line ГАЗ-К-5 [02:16:42]line 6.080 * 32.90 [02:16:42]line = 200.03 [02:16:42]line НДС 12% НСП 1% [02:16:42]line > о реализуемом товаре [02:16:42]line ИТОГО: 200.03 [02:16:42]line НСП 1% : 1.77 [02:16:42]line НДС 12% : 21.24 [02:16:42]line Наличными: 0.00 [02:16:42]line Безнал.: 200.03 [02:16:42]line Место: АЗС № 108 "Партнер Нефть" [02:16:42]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [02:16:42]line СНО: Общий режим [02:16:42]line Чек 7 13.04.2024 02:16 [02:16:42]line Смена: 115 ФФД: 1.0 [02:16:42]line ЗНМ: 0300000027 [02:16:42]line РНМ: 0000138879044617 [02:16:42]line Версия ККМ: 001 [02:16:42]line Платежная система: АКБ Кыргызстан [02:16:42]line ФМ: 0000000000963154 [02:16:42]line ФД: 28800 [02:16:42]line ФПД: 79316079914113 [02:16:42]line 1/tax-web-control/client/api/v1/ticket?date=20240413T021642&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28800&fm=79316079914113&tin=02508201610067®Number=0000138879044617&sum=20003 [02:16:42]written 0, free lines is 4095 [02:16:42]OFD Sender: Processing packet 28800 [packets to send 8, broken 7] [02:16:42]ProducePacketName [02:16:42]name=ofd_packets/00028800 [02:16:42]OFD Sender: To server: pG, [02:16:42]CommunicateWithHost lk.salyk.kg:30040 [02:16:42]ConnectInit lk.salyk.kg [02:16:42]Connected sock=7 [02:16:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 39 4C 06 01 66 76 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 DA 0C 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 07 00 00 00 F4 03 04 00 0A EB 19 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 80 70 00 00 35 04 06 00 48 23 36 C4 AC 81 0B 62 CD B5 EC B3 25 DB [02:16:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 D2 5C 47 00 F8 8A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 80 70 00 00 F4 03 04 00 B2 95 19 66 B6 04 01 00 00 C1 2B AF 46 34 95 13 C7 [02:16:42]CommunicateWithHost err = 0 [02:16:42]CheckOFDResponse [02:16:42]1017 (14) - 77093643461234 [02:16:42]1041 (16) - 0000000000963154 [02:16:42]1040 (4) - 28800 [02:16:42]1012 (4) - 12.04.2024 20:12 [02:16:42]1206 (1) - 0 [02:16:42]OFD Sender: Remove packet 28800 [02:16:42]ProducePacketName [02:16:42]name=ofd_packets/00028800 [02:16:42]NVStorageDeleteData [02:16:42]Write to MH i2c: 01 00 00 57 18 6F [02:16:42]Write i2c OK [02:16:42]MH_I2C_Read... [02:16:42]Read from MH i2c: 01 [02:16:42]MH_I2C_Read... [02:16:42]Read from MH i2c: 01 07 00 [02:16:42]MH_I2C_Read... [02:16:42]Read from MH i2c: 01 07 00 57 18 00 00 00 00 00 DB 0C 5D [02:16:42]RasterBufferAndPrint [02:16:42]line [02:16:42]line [02:16:42]line [02:16:42]line [02:16:42]line [02:16:42]written 0, free lines is 3298 [02:16:42]MH_Cut [02:16:42]Write to MH i2c: D1 01 00 5E 18 01 48 [02:16:42]Write i2c OK [02:16:42]MH_I2C_Read... [02:16:42]Read from MH i2c: D1 [02:16:42]MH_I2C_Read... [02:16:42]Read from MH i2c: D1 01 00 [02:16:42]MH_I2C_Read... [02:16:42]Read from MH i2c: D1 01 00 5E 18 00 47 [02:16:42]Write to MH i2c: 01 00 00 5F 18 77 [02:16:42]Write i2c OK [02:16:42]MH_I2C_Read... [02:16:42]OFD Sender: No OFD packet to send [02:16:43]*** Cut start [02:16:43]*** Partial cut [02:16:43]*** CUTSNS_PIN = 1 [02:16:43]*** CUTSNS_PIN = 0 [02:16:43]*** Brake cut motor [02:16:43]Read from MH i2c: 01 [02:16:44]MH_I2C_Read... [02:16:44]*** Stop cut motor [02:16:44]*** Cut end [02:16:44]Read from MH i2c: 01 07 00 [02:16:44]MH_I2C_Read... [02:16:44]Read from MH i2c: 01 07 00 5F 18 00 00 00 00 00 FF 0F 8C [02:16:44]process_action close_receipt done [02:16:44]requested_data is exist [02:16:44]produce_requested_data [02:16:44]requested_item fm.sn is exist - process it [02:16:44]wFMCommunicate request_size=4 [02:16:44]MH_SAM_APDU [02:16:44]CAPDU: 80 11 00 00 [02:16:44]Write to MH i2c: E2 08 00 60 18 80 11 00 00 00 00 00 00 F2 [02:16:44]Write i2c OK [02:16:44]MH_I2C_Read... [02:16:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:16:44]Read from MH i2c: E2 [02:16:44]MH_I2C_Read... [02:16:44]Read from MH i2c: E2 17 00 [02:16:44]MH_I2C_Read... [02:16:44]Read from MH i2c: E2 17 00 60 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 41 [02:16:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [02:16:44]wFMCommunicate OK [02:16:44]requested_item fd.num is exist - process it [02:16:44]SAM_PROTO_GetFieldsCounters [02:16:44]wFMCommunicate request_size=4 [02:16:44]MH_SAM_APDU [02:16:44]CAPDU: 80 13 00 00 [02:16:44]Write to MH i2c: E2 08 00 61 18 80 13 00 00 00 00 00 00 F5 [02:16:44]Write i2c OK [02:16:44]MH_I2C_Read... [02:16:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:16:44]Read from MH i2c: E2 [02:16:44]MH_I2C_Read... [02:16:44]Read from MH i2c: E2 62 00 [02:16:44]MH_I2C_Read... [02:16:44]Read from MH i2c: E2 62 00 61 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 80 70 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 AB [02:16:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 80 70 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 [02:16:44]wFMCommunicate OK [02:16:44]SAM_PROTO_GetFieldsCounters done [02:16:44]requested_item shift.num is exist - process it [02:16:44]requested_item shift.opened is exist - process it [02:16:44]req_shift_opened [02:16:44]FM_GetShiftState [02:16:44]SAM_PROTO_GetShiftState [02:16:44]wFMCommunicate request_size=4 [02:16:44]MH_SAM_APDU [02:16:44]CAPDU: 80 13 01 00 [02:16:44]Write to MH i2c: E2 08 00 62 18 80 13 01 00 00 00 00 00 F7 [02:16:44]Write i2c OK [02:16:44]MH_I2C_Read... [02:16:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:16:44]Read from MH i2c: E2 [02:16:44]MH_I2C_Read... [02:16:44]Read from MH i2c: E2 0E 00 [02:16:44]MH_I2C_Read... [02:16:44]Read from MH i2c: E2 0E 00 62 18 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 10 [02:16:44]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [02:16:44]wFMCommunicate OK [02:16:44]SAM_PROTO_GetShiftState done [02:16:44]FM_GetShiftState done [02:16:44]req_shift_opened done [02:16:44]requested_item shift.open_date is exist - process it [02:16:44]req_shift_open_date [02:16:44]req_shift_open_date done [02:16:44]produce_requested_data done [02:16:44]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28800,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [02:16:44]process_action_free close_receipt [02:16:44]json_value_free [02:16:44]json_value_free done [02:16:44]process_json_proto returns [02:16:44]Send response to host [02:16:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28800,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [02:16:44]free response buf [02:16:44]execute_script done [02:16:44]execute_script returns [02:16:44]free content buf [02:16:44]Sock 9.Close socket [02:16:44]Sock 9.Thread stoped [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:13]OFD Sender: No OFD packet to send [02:17:18]OFD Sender: No OFD packet to send [02:17:23]OFD Sender: No OFD packet to send [02:17:25]accept exits with 10 [02:17:25]New connection [02:17:25]New thread 3066928484 created [02:17:25]Thread 3066785124 joined [02:17:25]Waiting for new connection... [02:17:25] Sock 10.Parse request [02:17:25]Sock 10.Check first char [02:17:25]Sock 10.First char is OK [02:17:25]request: POST /json_proto HTTP/1.0 [02:17:25]Method: POST [02:17:25]URL: /json_proto [02:17:25]Method is POST - this is cgi request [02:17:25]url: /json_proto [02:17:25]query_string will be loaded in cgi processing [02:17:25]execute_cgi json_proto POST (null) [02:17:25]execute_cgi path=json_proto method=POST [02:17:25]POST find Content-Length [02:17:25]Host: 172.17.33.3:8080 [02:17:25]Content-Length: 681 [02:17:25]Content-Type: application/json [02:17:25] [02:17:25]POST finish read [02:17:25]Found Content-Length = 681 [02:17:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347147", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 12.160, "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" ] } } [02:17:25]execute_script... [02:17: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)347147", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 12.160, "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" ] } } [02:17:25]POST & json_proto [02:17:25]process_json_proto [02:17:25]json parsed OK: [02:17:25]protocol is kg_v1.0 [02:17:25]action value=close_receipt [02:17:25]process_action close_receipt [02:17:25]cmd_close_receipt [02:17:25]MH_GetDate [02:17:25]Write to MH i2c: F0 00 00 63 18 6A [02:17:25]Write i2c OK [02:17:25]MH_I2C_Read... [02:17:25]Read from MH i2c: F0 [02:17:25]MH_I2C_Read... [02:17:25]Read from MH i2c: F0 09 00 [02:17:25]MH_I2C_Read... [02:17:25]Read from MH i2c: F0 09 00 63 18 00 37 EB 19 66 23 5B 8F 65 86 [02:17:25]GetLastDocTimeStamp 1712974602 [02:17:25]current date 1712974647 [02:17:25]FM_GetShiftState [02:17:25]SAM_PROTO_GetShiftState [02:17:25]wFMCommunicate request_size=4 [02:17:25]MH_SAM_APDU [02:17:25]CAPDU: 80 13 01 00 [02:17:25]Write to MH i2c: E2 08 00 64 18 80 13 01 00 00 00 00 00 F9 [02:17:25]Write i2c OK [02:17:25]MH_I2C_Read... [02:17:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:17:25]Read from MH i2c: E2 [02:17:25]MH_I2C_Read... [02:17:25]Read from MH i2c: E2 0E 00 [02:17:25]MH_I2C_Read... [02:17:25]Read from MH i2c: E2 0E 00 64 18 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 12 [02:17:25]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [02:17:25]wFMCommunicate OK [02:17:25]SAM_PROTO_GetShiftState done [02:17:25]FM_GetShiftState done [02:17:25]opened in 1712967615 [02:17:25]opened+sec_in_day 1713054015 [02:17:25]quantity*price = 40006 [02:17:25]sum+1 = 40007 [02:17:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 8 13.04.2024 02:17 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28801 ФПД: 182984730100643 1/tax-web-control/client/api/v1/ticket?date=20240413T021727&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28801&fm=182984730100643&tin=02508201610067®Number=0000138879044617&sum=40000 [02:17:26]StoreToDocumentArchive [02:17:26]shift 115 fd 28801 [02:17:26]save to /storage/0115/doc_00028801 [02:17:26]save last doc name /storage/0115/doc_00028801 to /storage/kkm_last_doc_name [02:17:26]save OK [02:17:26]Clear old archive folders... [02:17:26]ProcessDocumentItem done err = 0, tmpTLVsize=250 [02:17:26]tlvbuf is 011A7450 [02:17:26]SAM_PROTO_ClearQueue [02:17:26]wFMCommunicate request_size=4 [02:17:26]MH_SAM_APDU [02:17:26]CAPDU: 80 09 00 00 [02:17:26]Write to MH i2c: E2 08 00 71 18 80 09 00 00 00 00 00 00 FB [02:17:26]Write i2c OK [02:17:26]MH_I2C_Read... [02:17:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:17:26]Read from MH i2c: E2 [02:17:26]MH_I2C_Read... [02:17:26]Read from MH i2c: E2 03 00 [02:17:26]MH_I2C_Read... [02:17:26]Read from MH i2c: E2 03 00 71 18 00 90 00 FD [02:17:26]RAPDU: 90 00 [02:17:26]wFMCommunicate OK [02:17:26]SAM_PROTO_ClearQueue done [02:17:26]KKMCreateOFDPacket [02:17:26]OFDProtocolAddRootSTLVToBuf [02:17:26]FM_MakeSignedData [02:17:26]FM_MakeSignedData [02:17:26]SAM_PROTO_SignData [02:17:26]wFMCommunicate request_size=4 [02:17:26]MH_SAM_APDU [02:17:26]CAPDU: 80 0D 01 02 [02:17:26]Write to MH i2c: E2 08 00 72 18 80 0D 01 02 00 00 00 00 03 [02:17:26]Write i2c OK [02:17:26]MH_I2C_Read... [02:17:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:17:26]Read from MH i2c: E2 [02:17:26]MH_I2C_Read... [02:17:26]Read from MH i2c: E2 03 00 [02:17:26]MH_I2C_Read... [02:17:26]Read from MH i2c: E2 03 00 72 18 00 90 00 FE [02:17:26]RAPDU: 90 00 [02:17:26]wFMCommunicate OK [02:17:26]wFMCommunicate request_size=255 [02:17:26]MH_SAM_APDU [02:17:26]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 80 2F 00 00 00 00 00 37 04 06 00 DA 0C 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 08 00 00 00 F4 03 04 00 37 EB 19 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 81 70 00 00 35 04 06 00 A6 6C [02:17:26]Write to MH i2c: E2 02 01 73 18 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 80 2F 00 00 00 00 00 37 04 06 00 DA 0C 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 08 00 00 00 F4 03 04 00 37 EB 19 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 81 70 00 00 35 04 06 00 A6 6C 00 00 33 [02:17:26]Write i2c OK [02:17:26]MH_I2C_Read... [02:17:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:17:27]Read from MH i2c: E2 [02:17:27]MH_I2C_Read... [02:17:27]Read from MH i2c: E2 03 00 [02:17:27]MH_I2C_Read... [02:17:27]Read from MH i2c: E2 03 00 73 18 00 90 00 FF [02:17:27]RAPDU: 90 00 [02:17:27]wFMCommunicate OK [02:17:27]wFMCommunicate request_size=9 [02:17:27]MH_SAM_APDU [02:17:27]CAPDU: 80 0D 02 02 04 73 D6 43 A3 [02:17:27]Write to MH i2c: E2 0C 00 74 18 80 0D 02 02 04 00 73 D6 43 A3 00 00 3D [02:17:27]Write i2c OK [02:17:27]MH_I2C_Read... [02:17:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:17:27]Read from MH i2c: E2 [02:17:27]MH_I2C_Read... [02:17:27]Read from MH i2c: E2 03 00 [02:17:27]MH_I2C_Read... [02:17:27]Read from MH i2c: E2 03 00 74 18 00 90 00 00 [02:17:27]RAPDU: 90 00 [02:17:27]wFMCommunicate OK [02:17:27]wFMCommunicate request_size=4 [02:17:27]MH_SAM_APDU [02:17:27]CAPDU: 80 0D 03 02 [02:17:27]Write to MH i2c: E2 08 00 75 18 80 0D 03 02 00 00 00 00 08 [02:17:27]Write i2c OK [02:17:27]MH_I2C_Read... [02:17:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:17:27]Read from MH i2c: E2 [02:17:27]MH_I2C_Read... [02:17:27]Read from MH i2c: E2 0B 00 [02:17:27]MH_I2C_Read... [02:17:27]Read from MH i2c: E2 0B 00 75 18 00 CE 01 D4 8B 93 A6 4F A4 90 00 63 [02:17:27]RAPDU: CE 01 D4 8B 93 A6 4F A4 90 00 [02:17:27]wFMCommunicate OK [02:17:27]SAM_PROTO_SignData done [02:17:27]FM_MakeSignedData done [02:17:27]CreateOFDProtocolMessage [02:17:27]wFMCommunicate request_size=4 [02:17:27]MH_SAM_APDU [02:17:27]CAPDU: 80 11 00 00 [02:17:27]Write to MH i2c: E2 08 00 76 18 80 11 00 00 00 00 00 00 08 [02:17:27]Write i2c OK [02:17:27]MH_I2C_Read... [02:17:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:17:27]Read from MH i2c: E2 [02:17:27]MH_I2C_Read... [02:17:27]Read from MH i2c: E2 17 00 [02:17:27]MH_I2C_Read... [02:17:27]Read from MH i2c: E2 17 00 76 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 57 [02:17:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [02:17:27]wFMCommunicate OK [02:17:27]CreateOFDProtocolMessage done [02:17:27]OFDSenderStorePacket 28801 [02:17:27]StoreOFDPacket docnum=28801 [02:17:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 54 90 06 01 BE F4 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 80 2F 00 00 00 00 00 37 04 06 00 DA 0C 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 08 00 00 00 F4 03 04 00 37 EB 19 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 81 70 00 00 35 04 06 00 A6 6C 73 D6 43 A3 CE 01 D4 8B 93 A6 4F A4 [02:17:27]CheckFolder [02:17:27]dirname=/storage/ofd_packets [02:17:27]CheckFolder done [02:17:27]ProducePacketName [02:17:27]name=ofd_packets/00028801 [02:17:27]NVStorageSaveData ofd_packets/00028801 [02:17:27]File name is /storage/ofd_packets/00028801 [02:17:27]Write 300 bytes [02:17:27]NVStorageSaveData done [02:17:27]OFDSenderStorePacket done [02:17:27]KKMCreateOFDPacket done [02:17:27]NVStorageSaveData kkm_last_timestamp [02:17:27]File name is /storage/kkm_last_timestamp [02:17:27]Write 4 bytes [02:17:27]NVStorageSaveData done [02:17:27]ExternCall_PrintAddStr [02:17:27]wPrintStart [02:17:27]Write to MH i2c: 01 00 00 77 18 8F [02:17:27]Write i2c OK [02:17:27]MH_I2C_Read... [02:17:27]Read from MH i2c: 01 [02:17:27]MH_I2C_Read... [02:17:27]Read from MH i2c: 01 07 00 [02:17:27]MH_I2C_Read... [02:17:27]Read from MH i2c: 01 07 00 77 18 00 00 00 00 00 FF 0F A4 [02:17:27]RasterBufferAndPrint [02:17:27]line Счет N : (1)347147 [02:17:27]line ИНН: 02508201610067 [02:17:27]line Контрольно-Кассовый Чек [02:17:27]line ПРОДАЖА [02:17:27]line ТРК (МРК, ГНК) : 71 [02:17:27]line Товар: 2711129700 [02:17:27]line ГАЗ-К-5 [02:17:27]line 12.160 * 32.90 [02:17:27]line = 400.06 [02:17:27]line НДС 12% НСП 1% [02:17:27]line > о реализуемом товаре [02:17:27]line ОКРУГЛЕНИЕ: -0.06 [02:17:27]line ИТОГО: 400.00 [02:17:27]line Внесено: 400.00 [02:17:27]line СДАЧА: 0.00 [02:17:27]line НСП 1% : 3.54 [02:17:27]line НДС 12% : 42.48 [02:17:27]line Наличными: 400.00 [02:17:27]line Безнал.: 0.00 [02:17:27]line Место: АЗС № 108 "Партнер Нефть" [02:17:27]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [02:17:27]line СНО: Общий режим [02:17:27]line Чек 8 13.04.2024 02:17 [02:17:27]line Смена: 115 ФФД: 1.0 [02:17:27]line ЗНМ: 0300000027 [02:17:27]line РНМ: 0000138879044617 [02:17:27]line Версия ККМ: 001 [02:17:27]line ФМ: 0000000000963154 [02:17:27]line ФД: 28801 [02:17:27]line ФПД: 182984730100643 [02:17:27]line 1/tax-web-control/client/api/v1/ticket?date=20240413T021727&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28801&fm=182984730100643&tin=02508201610067®Number=0000138879044617&sum=40000 [02:17:27]OFD Sender: Processing packet 28801 [packets to send 8, broken 7] [02:17:27]ProducePacketName [02:17:27]name=ofd_packets/00028801 [02:17:27]OFD Sender: To server: pG, [02:17:27]CommunicateWithHost lk.salyk.kg:30040 [02:17:27]ConnectInit lk.salyk.kg [02:17:27]written 0, free lines is 4095 [02:17:27]Connected sock=11 [02:17:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 54 90 06 01 BE F4 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 80 2F 00 00 00 00 00 37 04 06 00 DA 0C 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 08 00 00 00 F4 03 04 00 37 EB 19 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 81 70 00 00 35 04 06 00 A6 6C 73 D6 43 A3 CE 01 D4 8B 93 A6 4F A4 [02:17:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 4E 90 47 00 3F 07 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 81 70 00 00 F4 03 04 00 E0 95 19 66 B6 04 01 00 00 E2 23 67 2F 08 64 FE A6 [02:17:27]CommunicateWithHost err = 0 [02:17:27]CheckOFDResponse [02:17:27]1017 (14) - 77093643461234 [02:17:27]1041 (16) - 0000000000963154 [02:17:27]1040 (4) - 28801 [02:17:27]1012 (4) - 12.04.2024 20:13 [02:17:27]1206 (1) - 0 [02:17:27]OFD Sender: Remove packet 28801 [02:17:27]ProducePacketName [02:17:27]name=ofd_packets/00028801 [02:17:27]NVStorageDeleteData [02:17:28]Write to MH i2c: 01 00 00 A1 18 B9 [02:17:28]Write i2c OK [02:17:28]MH_I2C_Read... [02:17:28]Read from MH i2c: 01 [02:17:28]MH_I2C_Read... [02:17:28]Read from MH i2c: 01 07 00 [02:17:28]MH_I2C_Read... [02:17:28]Read from MH i2c: 01 07 00 A1 18 00 00 00 00 00 B6 0C 82 [02:17:28]RasterBufferAndPrint [02:17:28]line [02:17:28]line [02:17:28]line [02:17:28]line [02:17:28]line [02:17:28]written 0, free lines is 3257 [02:17:28]MH_Cut [02:17:28]Write to MH i2c: D1 01 00 A8 18 01 92 [02:17:28]Write i2c OK [02:17:28]MH_I2C_Read... [02:17:28]Read from MH i2c: D1 [02:17:28]MH_I2C_Read... [02:17:28]Read from MH i2c: D1 01 00 [02:17:28]MH_I2C_Read... [02:17:28]Read from MH i2c: D1 01 00 A8 18 00 91 [02:17:28]Write to MH i2c: 01 00 00 A9 18 C1 [02:17:28]Write i2c OK [02:17:28]MH_I2C_Read... [02:17:28]OFD Sender: No OFD packet to send [02:17:28]*** Cut start [02:17:28]*** Partial cut [02:17:28]*** CUTSNS_PIN = 1 [02:17:28]*** CUTSNS_PIN = 0 [02:17:29]*** Brake cut motor [02:17:29]Read from MH i2c: 01 [02:17:29]MH_I2C_Read... [02:17:29]*** Stop cut motor [02:17:29]*** Cut end [02:17:29]Read from MH i2c: 01 07 00 [02:17:29]MH_I2C_Read... [02:17:29]Read from MH i2c: 01 07 00 A9 18 00 00 00 00 00 FF 0F D6 [02:17:29]process_action close_receipt done [02:17:29]requested_data is exist [02:17:29]produce_requested_data [02:17:29]requested_item fm.sn is exist - process it [02:17:29]wFMCommunicate request_size=4 [02:17:29]MH_SAM_APDU [02:17:29]CAPDU: 80 11 00 00 [02:17:29]Write to MH i2c: E2 08 00 AA 18 80 11 00 00 00 00 00 00 3C [02:17:29]Write i2c OK [02:17:29]MH_I2C_Read... [02:17:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:17:29]Read from MH i2c: E2 [02:17:29]MH_I2C_Read... [02:17:29]Read from MH i2c: E2 17 00 [02:17:29]MH_I2C_Read... [02:17:29]Read from MH i2c: E2 17 00 AA 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 8B [02:17:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [02:17:29]wFMCommunicate OK [02:17:29]requested_item fd.num is exist - process it [02:17:29]SAM_PROTO_GetFieldsCounters [02:17:29]wFMCommunicate request_size=4 [02:17:29]MH_SAM_APDU [02:17:29]CAPDU: 80 13 00 00 [02:17:29]Write to MH i2c: E2 08 00 AB 18 80 13 00 00 00 00 00 00 3F [02:17:29]Write i2c OK [02:17:29]MH_I2C_Read... [02:17:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:17:29]Read from MH i2c: E2 [02:17:29]MH_I2C_Read... [02:17:29]Read from MH i2c: E2 62 00 [02:17:29]MH_I2C_Read... [02:17:29]Read from MH i2c: E2 62 00 AB 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 81 70 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 F9 [02:17:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 81 70 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:17:29]wFMCommunicate OK [02:17:29]SAM_PROTO_GetFieldsCounters done [02:17:29]requested_item shift.num is exist - process it [02:17:29]requested_item shift.opened is exist - process it [02:17:29]req_shift_opened [02:17:29]FM_GetShiftState [02:17:29]SAM_PROTO_GetShiftState [02:17:29]wFMCommunicate request_size=4 [02:17:29]MH_SAM_APDU [02:17:29]CAPDU: 80 13 01 00 [02:17:29]Write to MH i2c: E2 08 00 AC 18 80 13 01 00 00 00 00 00 41 [02:17:29]Write i2c OK [02:17:29]MH_I2C_Read... [02:17:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:17:29]Read from MH i2c: E2 [02:17:29]MH_I2C_Read... [02:17:29]Read from MH i2c: E2 0E 00 [02:17:29]MH_I2C_Read... [02:17:29]Read from MH i2c: E2 0E 00 AC 18 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 5A [02:17:29]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [02:17:29]wFMCommunicate OK [02:17:29]SAM_PROTO_GetShiftState done [02:17:29]FM_GetShiftState done [02:17:29]req_shift_opened done [02:17:29]requested_item shift.open_date is exist - process it [02:17:29]req_shift_open_date [02:17:29]req_shift_open_date done [02:17:29]produce_requested_data done [02:17:29]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28801,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [02:17:29]process_action_free close_receipt [02:17:29]json_value_free [02:17:29]json_value_free done [02:17:29]process_json_proto returns [02:17:29]Send response to host [02:17:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28801,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [02:17:29]free response buf [02:17:29]execute_script done [02:17:29]execute_script returns [02:17:29]free content buf [02:17:29]Sock 10.Close socket [02:17:29]Sock 10.Thread stoped [02:17:33]OFD Sender: No OFD packet to send [02:17:38]OFD Sender: No OFD packet to send [02:17:43]OFD Sender: No OFD packet to send [02:17:48]OFD Sender: No OFD packet to send [02:17:53]OFD Sender: No OFD packet to send [02:17:58]OFD Sender: No OFD packet to send [02:18:03]OFD Sender: No OFD packet to send [02:18:08]OFD Sender: No OFD packet to send [02:18:13]OFD Sender: No OFD packet to send [02:18:18]OFD Sender: No OFD packet to send [02:18:23]OFD Sender: No OFD packet to send [02:18:28]OFD Sender: No OFD packet to send [02:18:33]OFD Sender: No OFD packet to send [02:18:38]OFD Sender: No OFD packet to send [02:18:43]OFD Sender: No OFD packet to send [02:18:48]OFD Sender: No OFD packet to send [02:18:53]OFD Sender: No OFD packet to send [02:18:58]OFD Sender: No OFD packet to send [02:19:03]OFD Sender: No OFD packet to send [02:19:08]OFD Sender: No OFD packet to send [02:19:13]OFD Sender: No OFD packet to send [02:19:18]OFD Sender: No OFD packet to send [02:19:23]OFD Sender: No OFD packet to send [02:19:28]OFD Sender: No OFD packet to send [02:19:33]OFD Sender: No OFD packet to send [02:19:38]OFD Sender: No OFD packet to send [02:19:43]OFD Sender: No OFD packet to send [02:19:48]OFD Sender: No OFD packet to send [02:19:53]OFD Sender: No OFD packet to send [02:19:58]OFD Sender: No OFD packet to send [02:20:03]OFD Sender: No OFD packet to send [02:20:08]OFD Sender: No OFD packet to send [02:20:13]OFD Sender: No OFD packet to send [02:20:18]OFD Sender: No OFD packet to send [02:20:23]OFD Sender: No OFD packet to send [02:20:28]OFD Sender: No OFD packet to send [02:20:33]OFD Sender: No OFD packet to send [02:20:38]OFD Sender: No OFD packet to send [02:20:43]OFD Sender: No OFD packet to send [02:20:48]OFD Sender: No OFD packet to send [02:20:53]OFD Sender: No OFD packet to send [02:20:58]OFD Sender: No OFD packet to send [02:21:03]OFD Sender: No OFD packet to send [02:21:08]OFD Sender: No OFD packet to send [02:21:13]OFD Sender: No OFD packet to send [02:21:18]OFD Sender: No OFD packet to send [02:21:23]OFD Sender: No OFD packet to send [02:21:28]OFD Sender: No OFD packet to send [02:21:33]OFD Sender: No OFD packet to send [02:21:38]OFD Sender: No OFD packet to send [02:21:43]OFD Sender: No OFD packet to send [02:21:48]OFD Sender: No OFD packet to send [02:21:53]OFD Sender: No OFD packet to send [02:21:58]OFD Sender: No OFD packet to send [02:22:03]OFD Sender: No OFD packet to send [02:22:08]OFD Sender: No OFD packet to send [02:22:13]OFD Sender: No OFD packet to send [02:22:18]OFD Sender: No OFD packet to send [02:22:23]OFD Sender: No OFD packet to send [02:22:28]OFD Sender: No OFD packet to send [02:22:33]OFD Sender: No OFD packet to send [02:22:38]OFD Sender: No OFD packet to send [02:22:43]OFD Sender: No OFD packet to send [02:22:48]OFD Sender: No OFD packet to send [02:22:53]OFD Sender: No OFD packet to send [02:22:58]OFD Sender: No OFD packet to send [02:23:03]OFD Sender: No OFD packet to send [02:23:08]OFD Sender: No OFD packet to send [02:23:13]OFD Sender: No OFD packet to send [02:23:18]OFD Sender: No OFD packet to send [02:23:23]OFD Sender: No OFD packet to send [02:23:28]OFD Sender: No OFD packet to send [02:23:33]OFD Sender: No OFD packet to send [02:23:38]OFD Sender: No OFD packet to send [02:23:43]OFD Sender: No OFD packet to send [02:23:48]OFD Sender: No OFD packet to send [02:23:53]OFD Sender: No OFD packet to send [02:23:58]OFD Sender: No OFD packet to send [02:24:03]OFD Sender: No OFD packet to send [02:24:08]OFD Sender: No OFD packet to send [02:24:13]OFD Sender: No OFD packet to send [02:24:18]OFD Sender: No OFD packet to send [02:24:23]OFD Sender: No OFD packet to send [02:24:28]OFD Sender: No OFD packet to send [02:24:33]OFD Sender: No OFD packet to send [02:24:38]OFD Sender: No OFD packet to send [02:24:43]OFD Sender: No OFD packet to send [02:24:48]OFD Sender: No OFD packet to send [02:24:53]OFD Sender: No OFD packet to send [02:24:58]OFD Sender: No OFD packet to send [02:25:03]OFD Sender: No OFD packet to send [02:25:08]OFD Sender: No OFD packet to send [02:25:13]OFD Sender: No OFD packet to send [02:25:18]OFD Sender: No OFD packet to send [02:25:23]OFD Sender: No OFD packet to send [02:25:28]OFD Sender: No OFD packet to send [02:25:33]OFD Sender: No OFD packet to send [02:25:38]OFD Sender: No OFD packet to send [02:25:43]OFD Sender: No OFD packet to send [02:25:48]OFD Sender: No OFD packet to send [02:25:53]OFD Sender: No OFD packet to send [02:25:58]OFD Sender: No OFD packet to send [02:26:03]OFD Sender: No OFD packet to send [02:26:08]OFD Sender: No OFD packet to send [02:26:13]OFD Sender: No OFD packet to send [02:26:18]OFD Sender: No OFD packet to send [02:26:23]OFD Sender: No OFD packet to send [02:26:28]OFD Sender: No OFD packet to send [02:26:33]OFD Sender: No OFD packet to send [02:26:38]OFD Sender: No OFD packet to send [02:26:43]OFD Sender: No OFD packet to send [02:26:48]OFD Sender: No OFD packet to send [02:26:53]OFD Sender: No OFD packet to send [02:26:58]OFD Sender: No OFD packet to send [02:27:03]OFD Sender: No OFD packet to send [02:27:08]OFD Sender: No OFD packet to send [02:27:13]OFD Sender: No OFD packet to send [02:27:18]OFD Sender: No OFD packet to send [02:27:23]OFD Sender: No OFD packet to send [02:27:28]OFD Sender: No OFD packet to send [02:27:33]OFD Sender: No OFD packet to send [02:27:38]OFD Sender: No OFD packet to send [02:27:43]OFD Sender: No OFD packet to send [02:27:48]OFD Sender: No OFD packet to send [02:27:53]OFD Sender: No OFD packet to send [02:27:58]OFD Sender: No OFD packet to send [02:28:03]OFD Sender: No OFD packet to send [02:28:08]OFD Sender: No OFD packet to send [02:28:13]OFD Sender: No OFD packet to send [02:28:18]OFD Sender: No OFD packet to send [02:28:23]OFD Sender: No OFD packet to send [02:28:28]OFD Sender: No OFD packet to send [02:28:33]OFD Sender: No OFD packet to send [02:28:38]OFD Sender: No OFD packet to send [02:28:43]OFD Sender: No OFD packet to send [02:28:48]OFD Sender: No OFD packet to send [02:28:53]OFD Sender: No OFD packet to send [02:28:58]OFD Sender: No OFD packet to send [02:29:03]OFD Sender: No OFD packet to send [02:29:08]OFD Sender: No OFD packet to send [02:29:13]OFD Sender: No OFD packet to send [02:29:18]OFD Sender: No OFD packet to send [02:29:23]OFD Sender: No OFD packet to send [02:29:28]OFD Sender: No OFD packet to send [02:29:33]OFD Sender: No OFD packet to send [02:29:38]OFD Sender: No OFD packet to send [02:29:43]OFD Sender: No OFD packet to send [02:29:48]OFD Sender: No OFD packet to send [02:29:53]OFD Sender: No OFD packet to send [02:29:58]OFD Sender: No OFD packet to send [02:30:03]OFD Sender: No OFD packet to send [02:30:08]OFD Sender: No OFD packet to send [02:30:13]OFD Sender: No OFD packet to send [02:30: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:09]OFD Sender: No OFD packet to send [02:31:14]OFD Sender: No OFD packet to send [02:31:19]OFD Sender: No OFD packet to send [02:31:24]OFD Sender: No OFD packet to send [02:31:29]OFD Sender: No OFD packet to send [02:31:34]OFD Sender: No OFD packet to send [02:31:39]OFD Sender: No OFD packet to send [02:31:44]OFD Sender: No OFD packet to send [02:31:49]OFD Sender: No OFD packet to send [02:31:54]OFD Sender: No OFD packet to send [02:31:59]OFD Sender: No OFD packet to send [02:32:04]OFD Sender: No OFD packet to send [02:32:09]OFD Sender: No OFD packet to send [02:32:14]OFD Sender: No OFD packet to send [02:32:19]OFD Sender: No OFD packet to send [02:32:24]OFD Sender: No OFD packet to send [02:32:29]OFD Sender: No OFD packet to send [02:32:34]OFD Sender: No OFD packet to send [02:32:39]OFD Sender: No OFD packet to send [02:32:44]OFD Sender: No OFD packet to send [02:32:49]OFD Sender: No OFD packet to send [02:32:54]OFD Sender: No OFD packet to send [02:32:56]int [02:32:56]Write to MH i2c: 01 00 00 AD 18 C5 [02:32:56]*** FLAG_PRN_KEY set [02:32:56]Write i2c OK [02:32:56]MH_I2C_Read... [02:32:56]Read from MH i2c: 01 [02:32:56]MH_I2C_Read... [02:32:56]Read from MH i2c: 01 07 00 [02:32:56]MH_I2C_Read... [02:32:56]Read from MH i2c: 01 07 00 AD 18 00 08 00 00 00 FF 0F E2 [02:32:56]state=0 [02:32:56]Key pressed [02:32:56]Feed [02:32:56]Write to MH i2c: D8 00 00 AE 18 9D [02:32:56]Write i2c OK [02:32:56]MH_I2C_Read... [02:32:56]Read from MH i2c: D8 [02:32:56]MH_I2C_Read... [02:32:56]Read from MH i2c: D8 01 00 [02:32:56]MH_I2C_Read... [02:32:56]Read from MH i2c: D8 01 00 AE 18 00 9E [02:32:56]int [02:32:56]Write to MH i2c: 01 00 00 AF 18 C7 [02:32:56]Write i2c OK [02:32:56]MH_I2C_Read... [02:32:56]Read from MH i2c: 01 [02:32:56]MH_I2C_Read... [02:32:56]Read from MH i2c: 01 07 00 [02:32:56]MH_I2C_Read... [02:32:56]Read from MH i2c: 01 07 00 AF 18 00 48 00 00 00 3C 00 52 [02:32:56]state=2 [02:32:56]Key pressed [02:32:57]int [02:32:57]Write to MH i2c: 01 00 00 B0 18 C8 [02:32:57]*** FLAG_PRN_KEY reset [02:32:57]Write i2c OK [02:32:57]MH_I2C_Read... [02:32:57]Read from MH i2c: 01 [02:32:57]MH_I2C_Read... [02:32:57]Read from MH i2c: 01 07 00 [02:32:57]MH_I2C_Read... [02:32:57]Read from MH i2c: 01 07 00 B0 18 00 00 00 00 00 F6 0F D4 [02:32:57]state=2 [02:32:57]Stop feed [02:32:59]OFD Sender: No OFD packet to send [02:33:04]OFD Sender: No OFD packet to send [02:33:09]OFD Sender: No OFD packet to send [02:33:14]OFD Sender: No OFD packet to send [02:33:19]OFD Sender: No OFD packet to send [02:33:24]OFD Sender: No OFD packet to send [02:33:26]accept exits with 7 [02:33:26]New connection [02:33:26]New thread 3066785124 created [02:33:26]Thread 3066928484 joined [02:33:26]Waiting for new connection... [02:33:26] Sock 7.Parse request [02:33:26]Sock 7.Check first char [02:33:26]Sock 7.First char is OK [02:33:26]request: POST /json_proto HTTP/1.0 [02:33:26]Method: POST [02:33:26]URL: /json_proto [02:33:26]Method is POST - this is cgi request [02:33:26]url: /json_proto [02:33:26]query_string will be loaded in cgi processing [02:33:26]execute_cgi json_proto POST (null) [02:33:26]execute_cgi path=json_proto method=POST [02:33:26]POST find Content-Length [02:33:26]Host: 172.17.33.3:8080 [02:33:26]Content-Length: 677 [02:33:26]Content-Type: application/json [02:33:26] [02:33:26]POST finish read [02:33:26]Found Content-Length = 677 [02:33:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347148", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 3.120, "sum" : 200.62, "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" ] } } [02:33:26]execute_script... [02:33: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)347148", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 3.120, "sum" : 200.62, "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" ] } } [02:33:26]POST & json_proto [02:33:26]process_json_proto [02:33:26]json parsed OK: [02:33:26]protocol is kg_v1.0 [02:33:26]action value=close_receipt [02:33:26]process_action close_receipt [02:33:26]cmd_close_receipt [02:33:26]MH_GetDate [02:33:26]Write to MH i2c: F0 00 00 B1 18 B8 [02:33:26]Write i2c OK [02:33:26]MH_I2C_Read... [02:33:26]Read from MH i2c: F0 [02:33:26]MH_I2C_Read... [02:33:26]Read from MH i2c: F0 09 00 [02:33:26]MH_I2C_Read... [02:33:26]Read from MH i2c: F0 09 00 B1 18 00 F8 EE 19 66 23 5B 8F 65 98 [02:33:26]GetLastDocTimeStamp 1712974647 [02:33:26]current date 1712975608 [02:33:26]FM_GetShiftState [02:33:26]SAM_PROTO_GetShiftState [02:33:26]wFMCommunicate request_size=4 [02:33:26]MH_SAM_APDU [02:33:26]CAPDU: 80 13 01 00 [02:33:26]Write to MH i2c: E2 08 00 B2 18 80 13 01 00 00 00 00 00 47 [02:33:26]Write i2c OK [02:33:26]MH_I2C_Read... [02:33:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:33:26]Read from MH i2c: E2 [02:33:26]MH_I2C_Read... [02:33:26]Read from MH i2c: E2 0E 00 [02:33:26]MH_I2C_Read... [02:33:26]Read from MH i2c: E2 0E 00 B2 18 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 60 [02:33:26]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [02:33:26]wFMCommunicate OK [02:33:26]SAM_PROTO_GetShiftState done [02:33:26]FM_GetShiftState done [02:33:26]opened in 1712967615 [02:33:26]opened+sec_in_day 1713054015 [02:33:26]quantity*price = 20061 [02:33:26]sum+1 = 20063 [02:33:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.30 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 9 13.04.2024 02:33 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28802 ФПД: 21546747543682 1/tax-web-control/client/api/v1/ticket?date=20240413T023328&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28802&fm=21546747543682&tin=02508201610067®Number=0000138879044617&sum=20000 [02:33:27]StoreToDocumentArchive [02:33:27]shift 115 fd 28802 [02:33:27]save to /storage/0115/doc_00028802 [02:33:27]save last doc name /storage/0115/doc_00028802 to /storage/kkm_last_doc_name [02:33:27]save OK [02:33:27]Clear old archive folders... [02:33:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [02:33:27]tlvbuf is 011A3C00 [02:33:27]SAM_PROTO_ClearQueue [02:33:27]wFMCommunicate request_size=4 [02:33:27]MH_SAM_APDU [02:33:27]CAPDU: 80 09 00 00 [02:33:27]Write to MH i2c: E2 08 00 BF 18 80 09 00 00 00 00 00 00 49 [02:33:27]Write i2c OK [02:33:27]MH_I2C_Read... [02:33:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:33:27]Read from MH i2c: E2 [02:33:27]MH_I2C_Read... [02:33:27]Read from MH i2c: E2 03 00 [02:33:27]MH_I2C_Read... [02:33:27]Read from MH i2c: E2 03 00 BF 18 00 90 00 4B [02:33:27]RAPDU: 90 00 [02:33:27]wFMCommunicate OK [02:33:27]SAM_PROTO_ClearQueue done [02:33:27]KKMCreateOFDPacket [02:33:27]OFDProtocolAddRootSTLVToBuf [02:33:27]FM_MakeSignedData [02:33:27]FM_MakeSignedData [02:33:27]SAM_PROTO_SignData [02:33:27]wFMCommunicate request_size=4 [02:33:27]MH_SAM_APDU [02:33:27]CAPDU: 80 0D 01 02 [02:33:27]Write to MH i2c: E2 08 00 C0 18 80 0D 01 02 00 00 00 00 51 [02:33:27]Write i2c OK [02:33:27]MH_I2C_Read... [02:33:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:33:27]Read from MH i2c: E2 [02:33:27]MH_I2C_Read... [02:33:27]Read from MH i2c: E2 03 00 [02:33:27]MH_I2C_Read... [02:33:27]Read from MH i2c: E2 03 00 C0 18 00 90 00 4C [02:33:27]RAPDU: 90 00 [02:33:27]wFMCommunicate OK [02:33:27]wFMCommunicate request_size=255 [02:33:27]MH_SAM_APDU [02:33:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 0C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 5E 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 52 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 09 00 00 00 F4 03 04 00 F8 EE 19 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 82 70 00 00 35 04 06 00 13 [02:33:27]Write to MH i2c: E2 02 01 C1 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 0C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 5E 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 52 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 09 00 00 00 F4 03 04 00 F8 EE 19 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 82 70 00 00 35 04 06 00 13 00 00 64 [02:33:27]Write i2c OK [02:33:27]MH_I2C_Read... [02:33:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:33:27]Read from MH i2c: E2 [02:33:27]MH_I2C_Read... [02:33:27]Read from MH i2c: E2 03 00 [02:33:27]MH_I2C_Read... [02:33:28]Read from MH i2c: E2 03 00 C1 18 00 90 00 4D [02:33:28]RAPDU: 90 00 [02:33:28]wFMCommunicate OK [02:33:28]wFMCommunicate request_size=10 [02:33:28]MH_SAM_APDU [02:33:28]CAPDU: 80 0D 02 02 05 98 BE 3B C0 82 [02:33:28]Write to MH i2c: E2 0D 00 C2 18 80 0D 02 02 05 00 98 BE 3B C0 82 00 00 31 [02:33:28]Write i2c OK [02:33:28]MH_I2C_Read... [02:33:28]Read from MH i2c: E2 [02:33:28]MH_I2C_Read... [02:33:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:33:28]Read from MH i2c: E2 03 00 [02:33:28]MH_I2C_Read... [02:33:28]Read from MH i2c: E2 03 00 C2 18 00 90 00 4E [02:33:28]RAPDU: 90 00 [02:33:28]wFMCommunicate OK [02:33:28]wFMCommunicate request_size=4 [02:33:28]MH_SAM_APDU [02:33:28]CAPDU: 80 0D 03 02 [02:33:28]Write to MH i2c: E2 08 00 C3 18 80 0D 03 02 00 00 00 00 56 [02:33:28]Write i2c OK [02:33:28]MH_I2C_Read... [02:33:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:33:28]Read from MH i2c: E2 [02:33:28]MH_I2C_Read... [02:33:28]Read from MH i2c: E2 0B 00 [02:33:28]MH_I2C_Read... [02:33:28]Read from MH i2c: E2 0B 00 C3 18 00 1A 03 68 36 2B 69 10 BB 90 00 71 [02:33:28]RAPDU: 1A 03 68 36 2B 69 10 BB 90 00 [02:33:28]wFMCommunicate OK [02:33:28]SAM_PROTO_SignData done [02:33:28]FM_MakeSignedData done [02:33:28]CreateOFDProtocolMessage [02:33:28]wFMCommunicate request_size=4 [02:33:28]MH_SAM_APDU [02:33:28]CAPDU: 80 11 00 00 [02:33:28]Write to MH i2c: E2 08 00 C4 18 80 11 00 00 00 00 00 00 56 [02:33:28]Write i2c OK [02:33:28]MH_I2C_Read... [02:33:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:33:28]Read from MH i2c: E2 [02:33:28]MH_I2C_Read... [02:33:28]Read from MH i2c: E2 17 00 [02:33:28]MH_I2C_Read... [02:33:28]Read from MH i2c: E2 17 00 C4 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 A5 [02:33:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [02:33:28]wFMCommunicate OK [02:33:28]CreateOFDProtocolMessage done [02:33:28]OFDSenderStorePacket 28802 [02:33:28]StoreOFDPacket docnum=28802 [02:33:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 1F C8 07 01 43 89 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 0C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 5E 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 52 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 09 00 00 00 F4 03 04 00 F8 EE 19 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 82 70 00 00 35 04 06 00 13 98 BE 3B C0 82 1A 03 68 36 2B 69 10 BB [02:33:28]CheckFolder [02:33:28]dirname=/storage/ofd_packets [02:33:28]CheckFolder done [02:33:28]ProducePacketName [02:33:28]name=ofd_packets/00028802 [02:33:28]NVStorageSaveData ofd_packets/00028802 [02:33:28]File name is /storage/ofd_packets/00028802 [02:33:28]Write 301 bytes [02:33:28]NVStorageSaveData done [02:33:28]OFDSenderStorePacket done [02:33:28]KKMCreateOFDPacket done [02:33:28]NVStorageSaveData kkm_last_timestamp [02:33:28]File name is /storage/kkm_last_timestamp [02:33:28]Write 4 bytes [02:33:28]NVStorageSaveData done [02:33:28]ExternCall_PrintAddStr [02:33:28]wPrintStart [02:33:28]Write to MH i2c: 01 00 00 C5 18 DD [02:33:28]Write i2c OK [02:33:28]MH_I2C_Read... [02:33:28]Read from MH i2c: 01 [02:33:28]MH_I2C_Read... [02:33:28]Read from MH i2c: 01 07 00 [02:33:28]MH_I2C_Read... [02:33:28]Read from MH i2c: 01 07 00 C5 18 00 00 00 00 00 FF 0F F2 [02:33:28]RasterBufferAndPrint [02:33:28]line Счет N : (1)347148 [02:33:28]line ИНН: 02508201610067 [02:33:28]line Контрольно-Кассовый Чек [02:33:28]line ПРОДАЖА [02:33:28]line ТРК (МРК, ГНК) : 32 [02:33:28]line Товар: 2710124130 [02:33:28]line Аи-92-К-5 [02:33:28]line 3.120 * 64.30 [02:33:28]line = 200.62 [02:33:28]line НДС 12% НСП 1% [02:33:28]line > о реализуемом товаре [02:33:28]line ОКРУГЛЕНИЕ: -0.62 [02:33:28]line ИТОГО: 200.00 [02:33:28]line Внесено: 200.00 [02:33:28]line СДАЧА: 0.00 [02:33:28]line НСП 1% : 1.77 [02:33:28]line НДС 12% : 21.30 [02:33:28]line Наличными: 200.00 [02:33:28]line Безнал.: 0.00 [02:33:28]line Место: АЗС № 108 "Партнер Нефть" [02:33:28]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [02:33:28]line СНО: Общий режим [02:33:28]line Чек 9 13.04.2024 02:33 [02:33:28]line Смена: 115 ФФД: 1.0 [02:33:28]line ЗНМ: 0300000027 [02:33:28]line РНМ: 0000138879044617 [02:33:28]line Версия ККМ: 001 [02:33:28]line ФМ: 0000000000963154 [02:33:28]line ФД: 28802 [02:33:28]line ФПД: 21546747543682 [02:33:28]line 1/tax-web-control/client/api/v1/ticket?date=20240413T023328&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28802&fm=21546747543682&tin=02508201610067®Number=0000138879044617&sum=20000 [02:33:28]OFD Sender: Processing packet 28802 [packets to send 8, broken 7] [02:33:28]ProducePacketName [02:33:28]name=ofd_packets/00028802 [02:33:28]OFD Sender: To server: pG, [02:33:28]CommunicateWithHost lk.salyk.kg:30040 [02:33:28]ConnectInit lk.salyk.kg [02:33:28]written 0, free lines is 4095 [02:33:28]Connected sock=10 [02:33:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 1F C8 07 01 43 89 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 0C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 5E 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 52 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 09 00 00 00 F4 03 04 00 F8 EE 19 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 82 70 00 00 35 04 06 00 13 98 BE 3B C0 82 1A 03 68 36 2B 69 10 BB [02:33:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 4F 08 47 00 0C 3E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 82 70 00 00 F4 03 04 00 A1 99 19 66 B6 04 01 00 00 27 D3 82 08 1F 24 8D 54 [02:33:28]CommunicateWithHost err = 0 [02:33:28]CheckOFDResponse [02:33:28]1017 (14) - 77093643461234 [02:33:28]1041 (16) - 0000000000963154 [02:33:28]1040 (4) - 28802 [02:33:28]1012 (4) - 12.04.2024 20:29 [02:33:28]1206 (1) - 0 [02:33:28]OFD Sender: Remove packet 28802 [02:33:28]ProducePacketName [02:33:28]name=ofd_packets/00028802 [02:33:28]NVStorageDeleteData [02:33:28]Write to MH i2c: 01 00 00 EF 18 07 [02:33:28]Write i2c OK [02:33:28]MH_I2C_Read... [02:33:28]Read from MH i2c: 01 [02:33:28]MH_I2C_Read... [02:33:28]Read from MH i2c: 01 07 00 [02:33:28]MH_I2C_Read... [02:33:28]Read from MH i2c: 01 07 00 EF 18 00 00 00 00 00 C2 0C DC [02:33:28]RasterBufferAndPrint [02:33:28]line [02:33:28]line [02:33:28]line [02:33:28]line [02:33:28]line [02:33:28]written 0, free lines is 3270 [02:33:28]MH_Cut [02:33:28]Write to MH i2c: D1 01 00 F6 18 01 E0 [02:33:28]Write i2c OK [02:33:28]MH_I2C_Read... [02:33:28]Read from MH i2c: D1 [02:33:28]MH_I2C_Read... [02:33:28]Read from MH i2c: D1 01 00 [02:33:28]MH_I2C_Read... [02:33:28]Read from MH i2c: D1 01 00 F6 18 00 DF [02:33:28]Write to MH i2c: 01 00 00 F7 18 0F [02:33:28]Write i2c OK [02:33:28]MH_I2C_Read... [02:33:29]OFD Sender: No OFD packet to send [02:33:29]*** Cut start [02:33:29]*** Partial cut [02:33:29]*** CUTSNS_PIN = 1 [02:33:29]*** CUTSNS_PIN = 0 [02:33:30]*** Brake cut motor [02:33:30]Read from MH i2c: 01 [02:33:30]MH_I2C_Read... [02:33:30]*** Stop cut motor [02:33:30]*** Cut end [02:33:30]Read from MH i2c: 01 07 00 [02:33:30]MH_I2C_Read... [02:33:30]Read from MH i2c: 01 07 00 F7 18 00 00 00 00 00 FF 0F 24 [02:33:30]process_action close_receipt done [02:33:30]requested_data is exist [02:33:30]produce_requested_data [02:33:30]requested_item fm.sn is exist - process it [02:33:30]wFMCommunicate request_size=4 [02:33:30]MH_SAM_APDU [02:33:30]CAPDU: 80 11 00 00 [02:33:30]Write to MH i2c: E2 08 00 F8 18 80 11 00 00 00 00 00 00 8A [02:33:30]Write i2c OK [02:33:30]MH_I2C_Read... [02:33:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:33:30]Read from MH i2c: E2 [02:33:30]MH_I2C_Read... [02:33:30]Read from MH i2c: E2 17 00 [02:33:30]MH_I2C_Read... [02:33:30]Read from MH i2c: E2 17 00 F8 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D9 [02:33:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [02:33:30]wFMCommunicate OK [02:33:30]requested_item fd.num is exist - process it [02:33:30]SAM_PROTO_GetFieldsCounters [02:33:30]wFMCommunicate request_size=4 [02:33:30]MH_SAM_APDU [02:33:30]CAPDU: 80 13 00 00 [02:33:30]Write to MH i2c: E2 08 00 F9 18 80 13 00 00 00 00 00 00 8D [02:33:30]Write i2c OK [02:33:30]MH_I2C_Read... [02:33:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:33:30]Read from MH i2c: E2 [02:33:30]MH_I2C_Read... [02:33:30]Read from MH i2c: E2 62 00 [02:33:30]MH_I2C_Read... [02:33:30]Read from MH i2c: E2 62 00 F9 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 82 70 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 4B [02:33:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 82 70 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:33:30]wFMCommunicate OK [02:33:30]SAM_PROTO_GetFieldsCounters done [02:33:30]requested_item shift.num is exist - process it [02:33:30]requested_item shift.opened is exist - process it [02:33:30]req_shift_opened [02:33:30]FM_GetShiftState [02:33:30]SAM_PROTO_GetShiftState [02:33:30]wFMCommunicate request_size=4 [02:33:30]MH_SAM_APDU [02:33:30]CAPDU: 80 13 01 00 [02:33:30]Write to MH i2c: E2 08 00 FA 18 80 13 01 00 00 00 00 00 8F [02:33:30]Write i2c OK [02:33:30]MH_I2C_Read... [02:33:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:33:30]Read from MH i2c: E2 [02:33:30]MH_I2C_Read... [02:33:30]Read from MH i2c: E2 0E 00 [02:33:30]MH_I2C_Read... [02:33:30]Read from MH i2c: E2 0E 00 FA 18 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 A8 [02:33:30]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [02:33:30]wFMCommunicate OK [02:33:30]SAM_PROTO_GetShiftState done [02:33:30]FM_GetShiftState done [02:33:30]req_shift_opened done [02:33:30]requested_item shift.open_date is exist - process it [02:33:30]req_shift_open_date [02:33:30]req_shift_open_date done [02:33:30]produce_requested_data done [02:33:30]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28802,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [02:33:30]process_action_free close_receipt [02:33:30]json_value_free [02:33:30]json_value_free done [02:33:30]process_json_proto returns [02:33:30]Send response to host [02:33:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28802,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [02:33:30]free response buf [02:33:30]execute_script done [02:33:30]execute_script returns [02:33:30]free content buf [02:33:30]Sock 7.Close socket [02:33:30]Sock 7.Thread stoped [02:33:34]OFD Sender: No OFD packet to send [02:33:39]OFD Sender: No OFD packet to send [02:33:44]OFD Sender: No OFD packet to send [02:33:49]OFD Sender: No OFD packet to send [02:33:54]OFD Sender: No OFD packet to send [02:33:59]OFD Sender: No OFD packet to send [02:34:04]OFD Sender: No OFD packet to send [02:34:09]OFD Sender: No OFD packet to send [02:34:14]OFD Sender: No OFD packet to send [02:34:19]OFD Sender: No OFD packet to send [02:34:24]OFD Sender: No OFD packet to send [02:34:29]OFD Sender: No OFD packet to send [02:34:34]OFD Sender: No OFD packet to send [02:34:39]OFD Sender: No OFD packet to send [02:34:44]OFD Sender: No OFD packet to send [02:34:49]OFD Sender: No OFD packet to send [02:34:54]OFD Sender: No OFD packet to send [02:34:59]OFD Sender: No OFD packet to send [02:35:04]OFD Sender: No OFD packet to send [02:35:09]OFD Sender: No OFD packet to send [02:35:14]OFD Sender: No OFD packet to send [02:35:19]OFD Sender: No OFD packet to send [02:35:24]OFD Sender: No OFD packet to send [02:35:29]OFD Sender: No OFD packet to send [02:35:34]OFD Sender: No OFD packet to send [02:35:39]OFD Sender: No OFD packet to send [02:35:44]OFD Sender: No OFD packet to send [02:35:49]OFD Sender: No OFD packet to send [02:35:54]OFD Sender: No OFD packet to send [02:35:59]OFD Sender: No OFD packet to send [02:36:04]OFD Sender: No OFD packet to send [02:36:09]OFD Sender: No OFD packet to send [02:36:14]OFD Sender: No OFD packet to send [02:36:19]OFD Sender: No OFD packet to send [02:36:24]OFD Sender: No OFD packet to send [02:36:29]OFD Sender: No OFD packet to send [02:36:34]OFD Sender: No OFD packet to send [02:36:39]OFD Sender: No OFD packet to send [02:36:44]OFD Sender: No OFD packet to send [02:36:49]OFD Sender: No OFD packet to send [02:36:54]OFD Sender: No OFD packet to send [02:36:59]OFD Sender: No OFD packet to send [02:37:04]OFD Sender: No OFD packet to send [02:37:09]OFD Sender: No OFD packet to send [02:37:14]OFD Sender: No OFD packet to send [02:37:19]OFD Sender: No OFD packet to send [02:37:24]OFD Sender: No OFD packet to send [02:37:29]OFD Sender: No OFD packet to send [02:37:34]OFD Sender: No OFD packet to send [02:37:39]OFD Sender: No OFD packet to send [02:37:44]OFD Sender: No OFD packet to send [02:37:49]OFD Sender: No OFD packet to send [02:37:54]OFD Sender: No OFD packet to send [02:37:59]OFD Sender: No OFD packet to send [02:38:04]OFD Sender: No OFD packet to send [02:38:09]OFD Sender: No OFD packet to send [02:38:14]OFD Sender: No OFD packet to send [02:38:19]OFD Sender: No OFD packet to send [02:38:24]OFD Sender: No OFD packet to send [02:38:29]OFD Sender: No OFD packet to send [02:38:34]OFD Sender: No OFD packet to send [02:38:39]OFD Sender: No OFD packet to send [02:38:44]OFD Sender: No OFD packet to send [02:38:49]OFD Sender: No OFD packet to send [02:38:54]OFD Sender: No OFD packet to send [02:38:59]OFD Sender: No OFD packet to send [02:39:04]OFD Sender: No OFD packet to send [02:39:09]OFD Sender: No OFD packet to send [02:39:14]OFD Sender: No OFD packet to send [02:39:19]OFD Sender: No OFD packet to send [02:39:24]OFD Sender: No OFD packet to send [02:39:29]OFD Sender: No OFD packet to send [02:39:34]OFD Sender: No OFD packet to send [02:39:39]OFD Sender: No OFD packet to send [02:39:44]OFD Sender: No OFD packet to send [02:39:49]OFD Sender: No OFD packet to send [02:39:54]OFD Sender: No OFD packet to send [02:39:59]OFD Sender: No OFD packet to send [02:40:04]OFD Sender: No OFD packet to send [02:40:09]OFD Sender: No OFD packet to send [02:40:14]OFD Sender: No OFD packet to send [02:40:19]OFD Sender: No OFD packet to send [02:40:24]OFD Sender: No OFD packet to send [02:40:29]OFD Sender: No OFD packet to send [02:40:34]OFD Sender: No OFD packet to send [02:40:39]OFD Sender: No OFD packet to send [02:40:44]OFD Sender: No OFD packet to send [02:40:49]OFD Sender: No OFD packet to send [02:40:54]OFD Sender: No OFD packet to send [02:40:59]OFD Sender: No OFD packet to send [02:41:04]OFD Sender: No OFD packet to send [02:41:09]OFD Sender: No OFD packet to send [02:41:14]OFD Sender: No OFD packet to send [02:41:19]OFD Sender: No OFD packet to send [02:41:24]OFD Sender: No OFD packet to send [02:41:29]OFD Sender: No OFD packet to send [02:41:34]OFD Sender: No OFD packet to send [02:41:39]OFD Sender: No OFD packet to send [02:41:44]OFD Sender: No OFD packet to send [02:41:49]OFD Sender: No OFD packet to send [02:41:54]OFD Sender: No OFD packet to send [02:41:59]OFD Sender: No OFD packet to send [02:42:04]OFD Sender: No OFD packet to send [02:42:09]OFD Sender: No OFD packet to send [02:42:14]OFD Sender: No OFD packet to send [02:42:19]OFD Sender: No OFD packet to send [02:42:24]OFD Sender: No OFD packet to send [02:42:29]OFD Sender: No OFD packet to send [02:42:34]OFD Sender: No OFD packet to send [02:42:39]OFD Sender: No OFD packet to send [02:42:44]OFD Sender: No OFD packet to send [02:42:49]OFD Sender: No OFD packet to send [02:42:54]OFD Sender: No OFD packet to send [02:42:59]OFD Sender: No OFD packet to send [02:43:04]OFD Sender: No OFD packet to send [02:43:09]OFD Sender: No OFD packet to send [02:43:14]OFD Sender: No OFD packet to send [02:43:19]OFD Sender: No OFD packet to send [02:43:24]OFD Sender: No OFD packet to send [02:43:29]OFD Sender: No OFD packet to send [02:43:34]OFD Sender: No OFD packet to send [02:43:39]OFD Sender: No OFD packet to send [02:43:44]OFD Sender: No OFD packet to send [02:43:49]OFD Sender: No OFD packet to send [02:43:54]OFD Sender: No OFD packet to send [02:43:59]OFD Sender: No OFD packet to send [02:44:04]OFD Sender: No OFD packet to send [02:44:09]OFD Sender: No OFD packet to send [02:44:14]OFD Sender: No OFD packet to send [02:44:19]OFD Sender: No OFD packet to send [02:44:24]OFD Sender: No OFD packet to send [02:44:29]OFD Sender: No OFD packet to send [02:44:34]OFD Sender: No OFD packet to send [02:44:39]OFD Sender: No OFD packet to send [02:44:44]OFD Sender: No OFD packet to send [02:44:49]OFD Sender: No OFD packet to send [02:44:54]OFD Sender: No OFD packet to send [02:44:59]OFD Sender: No OFD packet to send [02:45:04]OFD Sender: No OFD packet to send [02:45:09]OFD Sender: No OFD packet to send [02:45:14]OFD Sender: No OFD packet to send [02:45:19]OFD Sender: No OFD packet to send [02:45:24]OFD Sender: No OFD packet to send [02:45:29]OFD Sender: No OFD packet to send [02:45:34]OFD Sender: No OFD packet to send [02:45:39]OFD Sender: No OFD packet to send [02:45:44]OFD Sender: No OFD packet to send [02:45:49]OFD Sender: No OFD packet to send [02:45:54]OFD Sender: No OFD packet to send [02:45:59]OFD Sender: No OFD packet to send [02:46:04]OFD Sender: No OFD packet to send [02:46:09]OFD Sender: No OFD packet to send [02:46:14]OFD Sender: No OFD packet to send [02:46:19]OFD Sender: No OFD packet to send [02:46:24]OFD Sender: No OFD packet to send [02:46:29]OFD Sender: No OFD packet to send [02:46:34]OFD Sender: No OFD packet to send [02:46:39]OFD Sender: No OFD packet to send [02:46:44]OFD Sender: No OFD packet to send [02:46:49]OFD Sender: No OFD packet to send [02:46:54]OFD Sender: No OFD packet to send [02:46:59]OFD Sender: No OFD packet to send [02:47:04]OFD Sender: No OFD packet to send [02:47:09]OFD Sender: No OFD packet to send [02:47:14]OFD Sender: No OFD packet to send [02:47:19]OFD Sender: No OFD packet to send [02:47:24]OFD Sender: No OFD packet to send [02:47:29]OFD Sender: No OFD packet to send [02:47:34]OFD Sender: No OFD packet to send [02:47:39]OFD Sender: No OFD packet to send [02:47:44]OFD Sender: No OFD packet to send [02:47:49]OFD Sender: No OFD packet to send [02:47:54]OFD Sender: No OFD packet to send [02:47:59]OFD Sender: No OFD packet to send [02:48:04]OFD Sender: No OFD packet to send [02:48:09]OFD Sender: No OFD packet to send [02:48:14]OFD Sender: No OFD packet to send [02:48:19]OFD Sender: No OFD packet to send [02:48:24]OFD Sender: No OFD packet to send [02:48:29]OFD Sender: No OFD packet to send [02:48:34]OFD Sender: No OFD packet to send [02:48:39]OFD Sender: No OFD packet to send [02:48:44]OFD Sender: No OFD packet to send [02:48:49]OFD Sender: No OFD packet to send [02:48:54]OFD Sender: No OFD packet to send [02:48:59]OFD Sender: No OFD packet to send [02:49:04]OFD Sender: No OFD packet to send [02:49:09]OFD Sender: No OFD packet to send [02:49:14]OFD Sender: No OFD packet to send [02:49:19]OFD Sender: No OFD packet to send [02:49:24]OFD Sender: No OFD packet to send [02:49:29]OFD Sender: No OFD packet to send [02:49:34]OFD Sender: No OFD packet to send [02:49:39]OFD Sender: No OFD packet to send [02:49:44]OFD Sender: No OFD packet to send [02:49:49]OFD Sender: No OFD packet to send [02:49:54]OFD Sender: No OFD packet to send [02:50:00]OFD Sender: No OFD packet to send [02:50:05]OFD Sender: No OFD packet to send [02:50:10]OFD Sender: No OFD packet to send [02:50:15]OFD Sender: No OFD packet to send [02:50:20]OFD Sender: No OFD packet to send [02:50:25]OFD Sender: No OFD packet to send [02:50:30]OFD Sender: No OFD packet to send [02:50:35]OFD Sender: No OFD packet to send [02:50:40]OFD Sender: No OFD packet to send [02:50:45]OFD Sender: No OFD packet to send [02:50:50]OFD Sender: No OFD packet to send [02:50:55]OFD Sender: No OFD packet to send [02:51:00]OFD Sender: No OFD packet to send [02:51:05]OFD Sender: No OFD packet to send [02:51:10]OFD Sender: No OFD packet to send [02:51:15]OFD Sender: No OFD packet to send [02:51:20]OFD Sender: No OFD packet to send [02:51:25]OFD Sender: No OFD packet to send [02:51:30]OFD Sender: No OFD packet to send [02:51:35]OFD Sender: No OFD packet to send [02:51:40]OFD Sender: No OFD packet to send [02:51:45]OFD Sender: No OFD packet to send [02:51:50]OFD Sender: No OFD packet to send [02:51:55]OFD Sender: No OFD packet to send [02:52:00]OFD Sender: No OFD packet to send [02:52:05]OFD Sender: No OFD packet to send [02:52:10]OFD Sender: No OFD packet to send [02:52:15]OFD Sender: No OFD packet to send [02:52:20]OFD Sender: No OFD packet to send [02:52:25]OFD Sender: No OFD packet to send [02:52:30]OFD Sender: No OFD packet to send [02:52:35]OFD Sender: No OFD packet to send [02:52:40]OFD Sender: No OFD packet to send [02:52:45]OFD Sender: No OFD packet to send [02:52:50]OFD Sender: No OFD packet to send [02:52:55]OFD Sender: No OFD packet to send [02:53:00]OFD Sender: No OFD packet to send [02:53:05]OFD Sender: No OFD packet to send [02:53:10]OFD Sender: No OFD packet to send [02:53:15]OFD Sender: No OFD packet to send [02:53:20]OFD Sender: No OFD packet to send [02:53:22]accept exits with 9 [02:53:22]New connection [02:53:22]New thread 3066928484 created [02:53:22]Thread 3066785124 joined [02:53:22]Waiting for new connection... [02:53:22] Sock 9.Parse request [02:53:22]Sock 9.Check first char [02:53:22]Sock 9.First char is OK [02:53:22]request: POST /json_proto HTTP/1.0 [02:53:22]Method: POST [02:53:22]URL: /json_proto [02:53:22]Method is POST - this is cgi request [02:53:22]url: /json_proto [02:53:22]query_string will be loaded in cgi processing [02:53:22]execute_cgi json_proto POST (null) [02:53:22]execute_cgi path=json_proto method=POST [02:53:22]POST find Content-Length [02:53:22]Host: 172.17.33.3:8080 [02:53:22]Content-Length: 679 [02:53:22]Content-Type: application/json [02:53:22] [02:53:22]POST finish read [02:53:22]Found Content-Length = 679 [02:53:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347149", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 27.630, "sum" : 2000.41, "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" ] } } [02:53:22]execute_script... [02:53: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)347149", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 27.630, "sum" : 2000.41, "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" ] } } [02:53:22]POST & json_proto [02:53:22]process_json_proto [02:53:22]json parsed OK: [02:53:22]protocol is kg_v1.0 [02:53:22]action value=close_receipt [02:53:22]process_action close_receipt [02:53:22]cmd_close_receipt [02:53:22]MH_GetDate [02:53:22]Write to MH i2c: F0 00 00 FB 18 02 [02:53:22]Write i2c OK [02:53:22]MH_I2C_Read... [02:53:22]Read from MH i2c: F0 [02:53:22]MH_I2C_Read... [02:53:22]Read from MH i2c: F0 09 00 [02:53:22]MH_I2C_Read... [02:53:22]Read from MH i2c: F0 09 00 FB 18 00 A4 F3 19 66 23 5B 8F 65 93 [02:53:22]GetLastDocTimeStamp 1712975608 [02:53:22]current date 1712976804 [02:53:22]FM_GetShiftState [02:53:22]SAM_PROTO_GetShiftState [02:53:22]wFMCommunicate request_size=4 [02:53:22]MH_SAM_APDU [02:53:22]CAPDU: 80 13 01 00 [02:53:22]Write to MH i2c: E2 08 00 FC 18 80 13 01 00 00 00 00 00 91 [02:53:22]Write i2c OK [02:53:22]MH_I2C_Read... [02:53:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:53:22]Read from MH i2c: E2 [02:53:22]MH_I2C_Read... [02:53:22]Read from MH i2c: E2 0E 00 [02:53:22]MH_I2C_Read... [02:53:22]Read from MH i2c: E2 0E 00 FC 18 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 AA [02:53:22]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [02:53:22]wFMCommunicate OK [02:53:22]SAM_PROTO_GetShiftState done [02:53:22]FM_GetShiftState done [02:53:22]opened in 1712967615 [02:53:22]opened+sec_in_day 1713054015 [02:53:22]quantity*price = 200041 [02:53:22]sum+1 = 200042 [02:53:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 10 13.04.2024 02:53 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28803 ФПД: 229659422132052 1/tax-web-control/client/api/v1/ticket?date=20240413T025324&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28803&fm=229659422132052&tin=02508201610067®Number=0000138879044617&sum=200000 [02:53:23]StoreToDocumentArchive [02:53:23]shift 115 fd 28803 [02:53:23]save to /storage/0115/doc_00028803 [02:53:23]save last doc name /storage/0115/doc_00028803 to /storage/kkm_last_doc_name [02:53:23]save OK [02:53:23]Clear old archive folders... [02:53:23]ProcessDocumentItem done err = 0, tmpTLVsize=248 [02:53:23]tlvbuf is 011A4700 [02:53:23]SAM_PROTO_ClearQueue [02:53:23]wFMCommunicate request_size=4 [02:53:23]MH_SAM_APDU [02:53:23]CAPDU: 80 09 00 00 [02:53:23]Write to MH i2c: E2 08 00 09 19 80 09 00 00 00 00 00 00 94 [02:53:23]Write i2c OK [02:53:23]MH_I2C_Read... [02:53:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:53:23]Read from MH i2c: E2 [02:53:23]MH_I2C_Read... [02:53:23]Read from MH i2c: E2 03 00 [02:53:23]MH_I2C_Read... [02:53:23]Read from MH i2c: E2 03 00 09 19 00 90 00 96 [02:53:23]RAPDU: 90 00 [02:53:23]wFMCommunicate OK [02:53:23]SAM_PROTO_ClearQueue done [02:53:23]KKMCreateOFDPacket [02:53:23]OFDProtocolAddRootSTLVToBuf [02:53:23]FM_MakeSignedData [02:53:23]FM_MakeSignedData [02:53:23]SAM_PROTO_SignData [02:53:23]wFMCommunicate request_size=4 [02:53:23]MH_SAM_APDU [02:53:23]CAPDU: 80 0D 01 02 [02:53:23]Write to MH i2c: E2 08 00 0A 19 80 0D 01 02 00 00 00 00 9C [02:53:23]Write i2c OK [02:53:23]MH_I2C_Read... [02:53:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:53:23]Read from MH i2c: E2 [02:53:23]MH_I2C_Read... [02:53:23]Read from MH i2c: E2 03 00 [02:53:23]MH_I2C_Read... [02:53:23]Read from MH i2c: E2 03 00 0A 19 00 90 00 97 [02:53:23]RAPDU: 90 00 [02:53:23]wFMCommunicate OK [02:53:23]wFMCommunicate request_size=255 [02:53:23]MH_SAM_APDU [02:53: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 35 FF 03 08 00 03 EE 6B 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 69 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 0A 00 00 00 F4 03 04 00 A4 F3 19 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 83 70 00 00 35 04 06 00 D0 DF C0 46 [02:53:23]Write to MH i2c: E2 02 01 0B 19 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EE 6B 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 69 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 0A 00 00 00 F4 03 04 00 A4 F3 19 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 83 70 00 00 35 04 06 00 D0 DF C0 46 00 00 64 [02:53:23]Write i2c OK [02:53:23]MH_I2C_Read... [02:53:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:53:23]Read from MH i2c: E2 [02:53:23]MH_I2C_Read... [02:53:23]Read from MH i2c: E2 03 00 [02:53:23]MH_I2C_Read... [02:53:23]Read from MH i2c: E2 03 00 0B 19 00 90 00 98 [02:53:23]RAPDU: 90 00 [02:53:23]wFMCommunicate OK [02:53:23]wFMCommunicate request_size=7 [02:53:23]MH_SAM_APDU [02:53:23]CAPDU: 80 0D 02 02 02 87 54 [02:53:23]Write to MH i2c: E2 0A 00 0C 19 80 0D 02 02 02 00 87 54 00 00 7E [02:53:23]Write i2c OK [02:53:23]MH_I2C_Read... [02:53:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:53:23]Read from MH i2c: E2 [02:53:23]MH_I2C_Read... [02:53:23]Read from MH i2c: E2 03 00 [02:53:23]MH_I2C_Read... [02:53:23]Read from MH i2c: E2 03 00 0C 19 00 90 00 99 [02:53:23]RAPDU: 90 00 [02:53:23]wFMCommunicate OK [02:53:23]wFMCommunicate request_size=4 [02:53:23]MH_SAM_APDU [02:53:23]CAPDU: 80 0D 03 02 [02:53:23]Write to MH i2c: E2 08 00 0D 19 80 0D 03 02 00 00 00 00 A1 [02:53:23]Write i2c OK [02:53:23]MH_I2C_Read... [02:53:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:53:23]Read from MH i2c: E2 [02:53:23]MH_I2C_Read... [02:53:23]Read from MH i2c: E2 0B 00 [02:53:23]MH_I2C_Read... [02:53:23]Read from MH i2c: E2 0B 00 0D 19 00 03 5A A4 97 14 C4 DF 55 90 00 46 [02:53:23]RAPDU: 03 5A A4 97 14 C4 DF 55 90 00 [02:53:23]wFMCommunicate OK [02:53:23]SAM_PROTO_SignData done [02:53:23]FM_MakeSignedData done [02:53:23]CreateOFDProtocolMessage [02:53:23]wFMCommunicate request_size=4 [02:53:23]MH_SAM_APDU [02:53:23]CAPDU: 80 11 00 00 [02:53:23]Write to MH i2c: E2 08 00 0E 19 80 11 00 00 00 00 00 00 A1 [02:53:23]Write i2c OK [02:53:23]MH_I2C_Read... [02:53:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:53:23]Read from MH i2c: E2 [02:53:23]MH_I2C_Read... [02:53:23]Read from MH i2c: E2 17 00 [02:53:23]MH_I2C_Read... [02:53:23]Read from MH i2c: E2 17 00 0E 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 F0 [02:53:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [02:53:23]wFMCommunicate OK [02:53:23]CreateOFDProtocolMessage done [02:53:23]OFDSenderStorePacket 28803 [02:53:23]StoreOFDPacket docnum=28803 [02:53:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 DE A0 04 01 51 C5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EE 6B 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 69 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 0A 00 00 00 F4 03 04 00 A4 F3 19 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 83 70 00 00 35 04 06 00 D0 DF C0 46 87 54 03 5A A4 97 14 C4 DF 55 [02:53:23]CheckFolder [02:53:23]dirname=/storage/ofd_packets [02:53:23]CheckFolder done [02:53:23]ProducePacketName [02:53:23]name=ofd_packets/00028803 [02:53:23]NVStorageSaveData ofd_packets/00028803 [02:53:23]File name is /storage/ofd_packets/00028803 [02:53:23]Write 298 bytes [02:53:23]NVStorageSaveData done [02:53:23]OFDSenderStorePacket done [02:53:23]KKMCreateOFDPacket done [02:53:23]NVStorageSaveData kkm_last_timestamp [02:53:23]File name is /storage/kkm_last_timestamp [02:53:23]Write 4 bytes [02:53:23]NVStorageSaveData done [02:53:23]ExternCall_PrintAddStr [02:53:23]wPrintStart [02:53:23]Write to MH i2c: 01 00 00 0F 19 28 [02:53:23]Write i2c OK [02:53:23]MH_I2C_Read... [02:53:23]Read from MH i2c: 01 [02:53:23]MH_I2C_Read... [02:53:23]Read from MH i2c: 01 07 00 [02:53:23]MH_I2C_Read... [02:53:23]Read from MH i2c: 01 07 00 0F 19 00 00 00 00 00 FF 0F 3D [02:53:23]RasterBufferAndPrint [02:53:23]line Счет N : (1)347149 [02:53:23]line ИНН: 02508201610067 [02:53:23]line Контрольно-Кассовый Чек [02:53:23]line ПРОДАЖА [02:53:23]line ТРК (МРК, ГНК) : 21 [02:53:23]line Товар: 2710194210 [02:53:23]line ДТ-К-5 [02:53:23]line 27.630 * 72.40 [02:53:23]line = 2000.41 [02:53:23]line НДС 12% НСП 1% [02:53:23]line > о реализуемом товаре [02:53:23]line ОКРУГЛЕНИЕ: -0.41 [02:53:23]line ИТОГО: 2000.00 [02:53:23]line Внесено: 2000.00 [02:53:23]line СДАЧА: 0.00 [02:53:23]line НСП 1% : 17.70 [02:53:23]line НДС 12% : 212.43 [02:53:23]line Наличными: 2000.00 [02:53:23]line Безнал.: 0.00 [02:53:23]line Место: АЗС № 108 "Партнер Нефть" [02:53:23]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [02:53:23]line СНО: Общий режим [02:53:23]line Чек 10 13.04.2024 02:53 [02:53:23]line Смена: 115 ФФД: 1.0 [02:53:23]line ЗНМ: 0300000027 [02:53:23]line РНМ: 0000138879044617 [02:53:23]line Версия ККМ: 001 [02:53:23]line ФМ: 0000000000963154 [02:53:23]line ФД: 28803 [02:53:23]line ФПД: 229659422132052 [02:53:24]line 1/tax-web-control/client/api/v1/ticket?date=20240413T025324&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28803&fm=229659422132052&tin=02508201610067®Number=0000138879044617&sum=200000 [02:53:24]OFD Sender: Processing packet 28803 [packets to send 8, broken 7] [02:53:24]ProducePacketName [02:53:24]name=ofd_packets/00028803 [02:53:24]OFD Sender: To server: pG, [02:53:24]CommunicateWithHost lk.salyk.kg:30040 [02:53:24]ConnectInit lk.salyk.kg [02:53:24]written 0, free lines is 4095 [02:53:24]Connected sock=11 [02:53:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 DE A0 04 01 51 C5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EE 6B 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 69 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 0A 00 00 00 F4 03 04 00 A4 F3 19 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 83 70 00 00 35 04 06 00 D0 DF C0 46 87 54 03 5A A4 97 14 C4 DF 55 [02:53:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 8C F2 47 00 99 C0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 83 70 00 00 F4 03 04 00 4C 9E 19 66 B6 04 01 00 00 CF E2 12 86 2E 2E 9A 11 [02:53:24]CommunicateWithHost err = 0 [02:53:24]CheckOFDResponse [02:53:24]1017 (14) - 77093643461234 [02:53:24]1041 (16) - 0000000000963154 [02:53:24]1040 (4) - 28803 [02:53:24]1012 (4) - 12.04.2024 20:49 [02:53:24]1206 (1) - 0 [02:53:24]OFD Sender: Remove packet 28803 [02:53:24]ProducePacketName [02:53:24]name=ofd_packets/00028803 [02:53:24]NVStorageDeleteData [02:53:24]Write to MH i2c: 01 00 00 39 19 52 [02:53:24]Write i2c OK [02:53:24]MH_I2C_Read... [02:53:24]Read from MH i2c: 01 [02:53:24]MH_I2C_Read... [02:53:24]Read from MH i2c: 01 07 00 [02:53:24]MH_I2C_Read... [02:53:24]Read from MH i2c: 01 07 00 39 19 00 00 00 00 00 C1 0C 26 [02:53:24]RasterBufferAndPrint [02:53:24]line [02:53:24]line [02:53:24]line [02:53:24]line [02:53:24]line [02:53:24]written 0, free lines is 3269 [02:53:24]MH_Cut [02:53:24]Write to MH i2c: D1 01 00 40 19 01 2B [02:53:24]Write i2c OK [02:53:24]MH_I2C_Read... [02:53:24]Read from MH i2c: D1 [02:53:24]MH_I2C_Read... [02:53:24]Read from MH i2c: D1 01 00 [02:53:24]MH_I2C_Read... [02:53:24]Read from MH i2c: D1 01 00 40 19 00 2A [02:53:24]Write to MH i2c: 01 00 00 41 19 5A [02:53:24]Write i2c OK [02:53:24]MH_I2C_Read... [02:53:24]OFD Sender: No OFD packet to send [02:53:25]*** Cut start [02:53:25]*** Partial cut [02:53:25]*** CUTSNS_PIN = 1 [02:53:25]*** CUTSNS_PIN = 0 [02:53:25]*** Brake cut motor [02:53:25]Read from MH i2c: 01 [02:53:25]MH_I2C_Read... [02:53:25]*** Stop cut motor [02:53:25]*** Cut end [02:53:25]Read from MH i2c: 01 07 00 [02:53:25]MH_I2C_Read... [02:53:25]Read from MH i2c: 01 07 00 41 19 00 00 00 00 00 FF 0F 6F [02:53:25]process_action close_receipt done [02:53:25]requested_data is exist [02:53:25]produce_requested_data [02:53:25]requested_item fm.sn is exist - process it [02:53:25]wFMCommunicate request_size=4 [02:53:25]MH_SAM_APDU [02:53:26]CAPDU: 80 11 00 00 [02:53:26]Write to MH i2c: E2 08 00 42 19 80 11 00 00 00 00 00 00 D5 [02:53:26]Write i2c OK [02:53:26]MH_I2C_Read... [02:53:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:53:26]Read from MH i2c: E2 [02:53:26]MH_I2C_Read... [02:53:26]Read from MH i2c: E2 17 00 [02:53:26]MH_I2C_Read... [02:53:26]Read from MH i2c: E2 17 00 42 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 24 [02:53:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [02:53:26]wFMCommunicate OK [02:53:26]requested_item fd.num is exist - process it [02:53:26]SAM_PROTO_GetFieldsCounters [02:53:26]wFMCommunicate request_size=4 [02:53:26]MH_SAM_APDU [02:53:26]CAPDU: 80 13 00 00 [02:53:26]Write to MH i2c: E2 08 00 43 19 80 13 00 00 00 00 00 00 D8 [02:53:26]Write i2c OK [02:53:26]MH_I2C_Read... [02:53:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:53:26]Read from MH i2c: E2 [02:53:26]MH_I2C_Read... [02:53:26]Read from MH i2c: E2 62 00 [02:53:26]MH_I2C_Read... [02:53:26]Read from MH i2c: E2 62 00 43 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 83 70 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 9A [02:53:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 83 70 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:53:26]wFMCommunicate OK [02:53:26]SAM_PROTO_GetFieldsCounters done [02:53:26]requested_item shift.num is exist - process it [02:53:26]requested_item shift.opened is exist - process it [02:53:26]req_shift_opened [02:53:26]FM_GetShiftState [02:53:26]SAM_PROTO_GetShiftState [02:53:26]wFMCommunicate request_size=4 [02:53:26]MH_SAM_APDU [02:53:26]CAPDU: 80 13 01 00 [02:53:26]Write to MH i2c: E2 08 00 44 19 80 13 01 00 00 00 00 00 DA [02:53:26]Write i2c OK [02:53:26]MH_I2C_Read... [02:53:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:53:26]Read from MH i2c: E2 [02:53:26]MH_I2C_Read... [02:53:26]Read from MH i2c: E2 0E 00 [02:53:26]MH_I2C_Read... [02:53:26]Read from MH i2c: E2 0E 00 44 19 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 F3 [02:53:26]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [02:53:26]wFMCommunicate OK [02:53:26]SAM_PROTO_GetShiftState done [02:53:26]FM_GetShiftState done [02:53:26]req_shift_opened done [02:53:26]requested_item shift.open_date is exist - process it [02:53:26]req_shift_open_date [02:53:26]req_shift_open_date done [02:53:26]produce_requested_data done [02:53:26]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28803,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [02:53:26]process_action_free close_receipt [02:53:26]json_value_free [02:53:26]json_value_free done [02:53:26]process_json_proto returns [02:53:26]Send response to host [02:53:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28803,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [02:53:26]free response buf [02:53:26]execute_script done [02:53:26]execute_script returns [02:53:26]free content buf [02:53:26]Sock 9.Close socket [02:53:26]Sock 9.Thread stoped [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:52]accept exits with 7 [02:53:52]New connection [02:53:52]New thread 3066785124 created [02:53:52]Thread 3066928484 joined [02:53:52]Waiting for new connection... [02:53:52] Sock 7.Parse request [02:53:52]Sock 7.Check first char [02:53:52]Sock 7.First char is OK [02:53:52]request: POST /json_proto HTTP/1.0 [02:53:52]Method: POST [02:53:52]URL: /json_proto [02:53:52]Method is POST - this is cgi request [02:53:52]url: /json_proto [02:53:52]query_string will be loaded in cgi processing [02:53:52]execute_cgi json_proto POST (null) [02:53:52]execute_cgi path=json_proto method=POST [02:53:52]POST find Content-Length [02:53:52]Host: 172.17.33.3:8080 [02:53:52]Content-Length: 677 [02:53:52]Content-Type: application/json [02:53:52] [02:53:52]POST finish read [02:53:52]Found Content-Length = 677 [02:53:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347150", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 7.780, "sum" : 500.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:53:52]execute_script... [02:53:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347150", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 7.780, "sum" : 500.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:53:52]POST & json_proto [02:53:52]process_json_proto [02:53:52]json parsed OK: [02:53:52]protocol is kg_v1.0 [02:53:52]action value=close_receipt [02:53:52]process_action close_receipt [02:53:52]cmd_close_receipt [02:53:52]MH_GetDate [02:53:52]Write to MH i2c: F0 00 00 45 19 4D [02:53:52]Write i2c OK [02:53:52]MH_I2C_Read... [02:53:52]Read from MH i2c: F0 [02:53:52]MH_I2C_Read... [02:53:52]Read from MH i2c: F0 09 00 [02:53:52]MH_I2C_Read... [02:53:52]Read from MH i2c: F0 09 00 45 19 00 C2 F3 19 66 23 5B 8F 65 FC [02:53:52]GetLastDocTimeStamp 1712976804 [02:53:52]current date 1712976834 [02:53:52]FM_GetShiftState [02:53:52]SAM_PROTO_GetShiftState [02:53:52]wFMCommunicate request_size=4 [02:53:52]MH_SAM_APDU [02:53:52]CAPDU: 80 13 01 00 [02:53:52]Write to MH i2c: E2 08 00 46 19 80 13 01 00 00 00 00 00 DC [02:53:52]Write i2c OK [02:53:52]MH_I2C_Read... [02:53:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:53:52]Read from MH i2c: E2 [02:53:52]MH_I2C_Read... [02:53:52]Read from MH i2c: E2 0E 00 [02:53:52]MH_I2C_Read... [02:53:52]Read from MH i2c: E2 0E 00 46 19 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 F5 [02:53:52]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [02:53:52]wFMCommunicate OK [02:53:52]SAM_PROTO_GetShiftState done [02:53:52]FM_GetShiftState done [02:53:52]opened in 1712967615 [02:53:52]opened+sec_in_day 1713054015 [02:53:52]quantity*price = 50025 [02:53:52]sum+1 = 50026 [02:53:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 11 13.04.2024 02:53 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28804 ФПД: 46751121162779 1/tax-web-control/client/api/v1/ticket?date=20240413T025354&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28804&fm=46751121162779&tin=02508201610067®Number=0000138879044617&sum=50000 [02:53:53]StoreToDocumentArchive [02:53:53]shift 115 fd 28804 [02:53:53]save to /storage/0115/doc_00028804 [02:53:53]save last doc name /storage/0115/doc_00028804 to /storage/kkm_last_doc_name [02:53:53]save OK [02:53:53]Clear old archive folders... [02:53:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [02:53:53]tlvbuf is 011A98C0 [02:53:53]SAM_PROTO_ClearQueue [02:53:53]wFMCommunicate request_size=4 [02:53:53]MH_SAM_APDU [02:53:53]CAPDU: 80 09 00 00 [02:53:53]Write to MH i2c: E2 08 00 53 19 80 09 00 00 00 00 00 00 DE [02:53:53]Write i2c OK [02:53:53]MH_I2C_Read... [02:53:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:53:53]Read from MH i2c: E2 [02:53:53]MH_I2C_Read... [02:53:53]Read from MH i2c: E2 03 00 [02:53:53]MH_I2C_Read... [02:53:53]Read from MH i2c: E2 03 00 53 19 00 90 00 E0 [02:53:53]RAPDU: 90 00 [02:53:53]wFMCommunicate OK [02:53:53]SAM_PROTO_ClearQueue done [02:53:53]KKMCreateOFDPacket [02:53:53]OFDProtocolAddRootSTLVToBuf [02:53:53]FM_MakeSignedData [02:53:53]FM_MakeSignedData [02:53:53]SAM_PROTO_SignData [02:53:53]wFMCommunicate request_size=4 [02:53:53]MH_SAM_APDU [02:53:53]CAPDU: 80 0D 01 02 [02:53:53]Write to MH i2c: E2 08 00 54 19 80 0D 01 02 00 00 00 00 E6 [02:53:53]Write i2c OK [02:53:53]MH_I2C_Read... [02:53:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:53:53]Read from MH i2c: E2 [02:53:53]MH_I2C_Read... [02:53:53]Read from MH i2c: E2 03 00 [02:53:53]MH_I2C_Read... [02:53:53]Read from MH i2c: E2 03 00 54 19 00 90 00 E1 [02:53:53]RAPDU: 90 00 [02:53:53]wFMCommunicate OK [02:53:53]wFMCommunicate request_size=255 [02:53:53]MH_SAM_APDU [02:53:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 C2 F3 19 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 84 70 00 00 35 04 06 00 2A [02:53:53]Write to MH i2c: E2 02 01 55 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 C2 F3 19 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 84 70 00 00 35 04 06 00 2A 00 00 78 [02:53:53]Write i2c OK [02:53:53]MH_I2C_Read... [02:53:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:53:53]Read from MH i2c: E2 [02:53:53]MH_I2C_Read... [02:53:53]Read from MH i2c: E2 03 00 [02:53:53]MH_I2C_Read... [02:53:53]Read from MH i2c: E2 03 00 55 19 00 90 00 E2 [02:53:53]RAPDU: 90 00 [02:53:53]wFMCommunicate OK [02:53:53]wFMCommunicate request_size=10 [02:53:53]MH_SAM_APDU [02:53:53]CAPDU: 80 0D 02 02 05 85 17 F8 42 1B [02:53:53]Write to MH i2c: E2 0D 00 56 19 80 0D 02 02 05 00 85 17 F8 42 1B 00 00 E4 [02:53:53]Write i2c OK [02:53:53]MH_I2C_Read... [02:53:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:53:53]Read from MH i2c: E2 [02:53:53]MH_I2C_Read... [02:53:53]Read from MH i2c: E2 03 00 [02:53:53]MH_I2C_Read... [02:53:53]Read from MH i2c: E2 03 00 56 19 00 90 00 E3 [02:53:53]RAPDU: 90 00 [02:53:53]wFMCommunicate OK [02:53:53]wFMCommunicate request_size=4 [02:53:53]MH_SAM_APDU [02:53:53]CAPDU: 80 0D 03 02 [02:53:53]Write to MH i2c: E2 08 00 57 19 80 0D 03 02 00 00 00 00 EB [02:53:53]Write i2c OK [02:53:53]MH_I2C_Read... [02:53:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:53:53]Read from MH i2c: E2 [02:53:53]MH_I2C_Read... [02:53:53]Read from MH i2c: E2 0B 00 [02:53:53]MH_I2C_Read... [02:53:53]Read from MH i2c: E2 0B 00 57 19 00 0C 4F D6 31 4F 74 17 3B 90 00 63 [02:53:53]RAPDU: 0C 4F D6 31 4F 74 17 3B 90 00 [02:53:53]wFMCommunicate OK [02:53:53]SAM_PROTO_SignData done [02:53:53]FM_MakeSignedData done [02:53:53]CreateOFDProtocolMessage [02:53:53]wFMCommunicate request_size=4 [02:53:53]MH_SAM_APDU [02:53:53]CAPDU: 80 11 00 00 [02:53:53]Write to MH i2c: E2 08 00 58 19 80 11 00 00 00 00 00 00 EB [02:53:53]Write i2c OK [02:53:53]MH_I2C_Read... [02:53:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:53:54]Read from MH i2c: E2 [02:53:54]MH_I2C_Read... [02:53:54]Read from MH i2c: E2 17 00 [02:53:54]MH_I2C_Read... [02:53:54]Read from MH i2c: E2 17 00 58 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 3A [02:53:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [02:53:54]wFMCommunicate OK [02:53:54]CreateOFDProtocolMessage done [02:53:54]OFDSenderStorePacket 28804 [02:53:54]StoreOFDPacket docnum=28804 [02:53:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 69 48 07 01 71 55 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 C2 F3 19 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 84 70 00 00 35 04 06 00 2A 85 17 F8 42 1B 0C 4F D6 31 4F 74 17 3B [02:53:54]CheckFolder [02:53:54]dirname=/storage/ofd_packets [02:53:54]CheckFolder done [02:53:54]ProducePacketName [02:53:54]name=ofd_packets/00028804 [02:53:54]NVStorageSaveData ofd_packets/00028804 [02:53:54]File name is /storage/ofd_packets/00028804 [02:53:54]Write 301 bytes [02:53:54]NVStorageSaveData done [02:53:54]OFDSenderStorePacket done [02:53:54]KKMCreateOFDPacket done [02:53:54]NVStorageSaveData kkm_last_timestamp [02:53:54]File name is /storage/kkm_last_timestamp [02:53:54]Write 4 bytes [02:53:54]NVStorageSaveData done [02:53:54]ExternCall_PrintAddStr [02:53:54]wPrintStart [02:53:54]Write to MH i2c: 01 00 00 59 19 72 [02:53:54]Write i2c OK [02:53:54]MH_I2C_Read... [02:53:54]Read from MH i2c: 01 [02:53:54]MH_I2C_Read... [02:53:54]Read from MH i2c: 01 07 00 [02:53:54]MH_I2C_Read... [02:53:54]Read from MH i2c: 01 07 00 59 19 00 00 00 00 00 FF 0F 87 [02:53:54]RasterBufferAndPrint [02:53:54]line Счет N : (1)347150 [02:53:54]line ИНН: 02508201610067 [02:53:54]line Контрольно-Кассовый Чек [02:53:54]line ПРОДАЖА [02:53:54]line ТРК (МРК, ГНК) : 32 [02:53:54]line Товар: 2710124130 [02:53:54]line Аи-92-К-5 [02:53:54]line 7.780 * 64.30 [02:53:54]line = 500.25 [02:53:54]line НДС 12% НСП 1% [02:53:54]line > о реализуемом товаре [02:53:54]line ОКРУГЛЕНИЕ: -0.25 [02:53:54]line ИТОГО: 500.00 [02:53:54]line Внесено: 500.00 [02:53:54]line СДАЧА: 0.00 [02:53:54]line НСП 1% : 4.43 [02:53:54]line НДС 12% : 53.12 [02:53:54]line Наличными: 500.00 [02:53:54]line Безнал.: 0.00 [02:53:54]line Место: АЗС № 108 "Партнер Нефть" [02:53:54]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [02:53:54]line СНО: Общий режим [02:53:54]line Чек 11 13.04.2024 02:53 [02:53:54]line Смена: 115 ФФД: 1.0 [02:53:54]line ЗНМ: 0300000027 [02:53:54]line РНМ: 0000138879044617 [02:53:54]line Версия ККМ: 001 [02:53:54]line ФМ: 0000000000963154 [02:53:54]line ФД: 28804 [02:53:54]line ФПД: 46751121162779 [02:53:54]line 1/tax-web-control/client/api/v1/ticket?date=20240413T025354&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28804&fm=46751121162779&tin=02508201610067®Number=0000138879044617&sum=50000 [02:53:54]OFD Sender: Processing packet 28804 [packets to send 8, broken 7] [02:53:54]ProducePacketName [02:53:54]name=ofd_packets/00028804 [02:53:54]OFD Sender: To server: pG, [02:53:54]CommunicateWithHost lk.salyk.kg:30040 [02:53:54]ConnectInit lk.salyk.kg [02:53:54]written 0, free lines is 4095 [02:53:54]Connected sock=10 [02:53:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 69 48 07 01 71 55 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 C2 F3 19 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 84 70 00 00 35 04 06 00 2A 85 17 F8 42 1B 0C 4F D6 31 4F 74 17 3B [02:53:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 BF 19 47 00 18 20 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 84 70 00 00 F4 03 04 00 6B 9E 19 66 B6 04 01 00 00 55 CD 5A F7 59 5A B8 34 [02:53:54]CommunicateWithHost err = 0 [02:53:54]CheckOFDResponse [02:53:54]1017 (14) - 77093643461234 [02:53:54]1041 (16) - 0000000000963154 [02:53:54]1040 (4) - 28804 [02:53:54]1012 (4) - 12.04.2024 20:49 [02:53:54]1206 (1) - 0 [02:53:54]OFD Sender: Remove packet 28804 [02:53:54]ProducePacketName [02:53:54]name=ofd_packets/00028804 [02:53:54]NVStorageDeleteData [02:53:54]Write to MH i2c: 01 00 00 83 19 9C [02:53:54]Write i2c OK [02:53:54]MH_I2C_Read... [02:53:54]Read from MH i2c: 01 [02:53:54]MH_I2C_Read... [02:53:54]Read from MH i2c: 01 07 00 [02:53:54]MH_I2C_Read... [02:53:54]Read from MH i2c: 01 07 00 83 19 00 00 00 00 00 BC 0C 6B [02:53:54]RasterBufferAndPrint [02:53:54]line [02:53:54]line [02:53:54]line [02:53:54]line [02:53:54]line [02:53:54]written 0, free lines is 3265 [02:53:54]MH_Cut [02:53:54]Write to MH i2c: D1 01 00 8A 19 01 75 [02:53:54]Write i2c OK [02:53:54]MH_I2C_Read... [02:53:54]Read from MH i2c: D1 [02:53:54]MH_I2C_Read... [02:53:54]Read from MH i2c: D1 01 00 [02:53:54]MH_I2C_Read... [02:53:54]Read from MH i2c: D1 01 00 8A 19 00 74 [02:53:54]Write to MH i2c: 01 00 00 8B 19 A4 [02:53:54]Write i2c OK [02:53:54]MH_I2C_Read... [02:53:55]OFD Sender: No OFD packet to send [02:53:55]*** Cut start [02:53:55]*** Partial cut [02:53:55]*** CUTSNS_PIN = 1 [02:53:55]*** CUTSNS_PIN = 0 [02:53:55]*** Brake cut motor [02:53:56]Read from MH i2c: 01 [02:53:56]MH_I2C_Read... [02:53:56]*** Stop cut motor [02:53:56]*** Cut end [02:53:56]Read from MH i2c: 01 07 00 [02:53:56]MH_I2C_Read... [02:53:56]Read from MH i2c: 01 07 00 8B 19 00 00 00 00 00 FF 0F B9 [02:53:56]process_action close_receipt done [02:53:56]requested_data is exist [02:53:56]produce_requested_data [02:53:56]requested_item fm.sn is exist - process it [02:53:56]wFMCommunicate request_size=4 [02:53:56]MH_SAM_APDU [02:53:56]CAPDU: 80 11 00 00 [02:53:56]Write to MH i2c: E2 08 00 8C 19 80 11 00 00 00 00 00 00 1F [02:53:56]Write i2c OK [02:53:56]MH_I2C_Read... [02:53:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:53:56]Read from MH i2c: E2 [02:53:56]MH_I2C_Read... [02:53:56]Read from MH i2c: E2 17 00 [02:53:56]MH_I2C_Read... [02:53:56]Read from MH i2c: E2 17 00 8C 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 6E [02:53:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [02:53:56]wFMCommunicate OK [02:53:56]requested_item fd.num is exist - process it [02:53:56]SAM_PROTO_GetFieldsCounters [02:53:56]wFMCommunicate request_size=4 [02:53:56]MH_SAM_APDU [02:53:56]CAPDU: 80 13 00 00 [02:53:56]Write to MH i2c: E2 08 00 8D 19 80 13 00 00 00 00 00 00 22 [02:53:56]Write i2c OK [02:53:56]MH_I2C_Read... [02:53:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:53:56]Read from MH i2c: E2 [02:53:56]MH_I2C_Read... [02:53:56]Read from MH i2c: E2 62 00 [02:53:56]MH_I2C_Read... [02:53:56]Read from MH i2c: E2 62 00 8D 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 84 70 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 E8 [02:53:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 84 70 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:53:56]wFMCommunicate OK [02:53:56]SAM_PROTO_GetFieldsCounters done [02:53:56]requested_item shift.num is exist - process it [02:53:56]requested_item shift.opened is exist - process it [02:53:56]req_shift_opened [02:53:56]FM_GetShiftState [02:53:56]SAM_PROTO_GetShiftState [02:53:56]wFMCommunicate request_size=4 [02:53:56]MH_SAM_APDU [02:53:56]CAPDU: 80 13 01 00 [02:53:56]Write to MH i2c: E2 08 00 8E 19 80 13 01 00 00 00 00 00 24 [02:53:56]Write i2c OK [02:53:56]MH_I2C_Read... [02:53:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:53:56]Read from MH i2c: E2 [02:53:56]MH_I2C_Read... [02:53:56]Read from MH i2c: E2 0E 00 [02:53:56]MH_I2C_Read... [02:53:56]Read from MH i2c: E2 0E 00 8E 19 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 3D [02:53:56]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [02:53:56]wFMCommunicate OK [02:53:56]SAM_PROTO_GetShiftState done [02:53:56]FM_GetShiftState done [02:53:56]req_shift_opened done [02:53:56]requested_item shift.open_date is exist - process it [02:53:56]req_shift_open_date [02:53:56]req_shift_open_date done [02:53:56]produce_requested_data done [02:53:56]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28804,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [02:53:56]process_action_free close_receipt [02:53:56]json_value_free [02:53:56]json_value_free done [02:53:56]process_json_proto returns [02:53:56]Send response to host [02:53:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28804,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [02:53:56]free response buf [02:53:56]execute_script done [02:53:56]execute_script returns [02:53:56]free content buf [02:53:56]Sock 7.Close socket [02:53:56]Sock 7.Thread stoped [02:54:00]OFD Sender: No OFD packet to send [02:54:05]OFD Sender: No OFD packet to send [02:54:10]OFD Sender: No OFD packet to send [02:54:15]OFD Sender: No OFD packet to send [02:54:20]OFD Sender: No OFD packet to send [02:54:25]OFD Sender: No OFD packet to send [02:54:30]OFD Sender: No OFD packet to send [02:54:35]OFD Sender: No OFD packet to send [02:54:40]OFD Sender: No OFD packet to send [02:54:45]OFD Sender: No OFD packet to send [02:54:50]OFD Sender: No OFD packet to send [02:54:55]OFD Sender: No OFD packet to send [02:55:00]OFD Sender: No OFD packet to send [02:55:05]OFD Sender: No OFD packet to send [02:55:10]OFD Sender: No OFD packet to send [02:55:15]OFD Sender: No OFD packet to send [02:55:20]OFD Sender: No OFD packet to send [02:55:25]OFD Sender: No OFD packet to send [02:55:30]OFD Sender: No OFD packet to send [02:55:35]OFD Sender: No OFD packet to send [02:55:40]OFD Sender: No OFD packet to send [02:55:45]OFD Sender: No OFD packet to send [02:55:50]OFD Sender: No OFD packet to send [02:55:55]OFD Sender: No OFD packet to send [02:56:00]OFD Sender: No OFD packet to send [02:56:05]OFD Sender: No OFD packet to send [02:56:10]OFD Sender: No OFD packet to send [02:56:15]OFD Sender: No OFD packet to send [02:56:20]OFD Sender: No OFD packet to send [02:56:25]OFD Sender: No OFD packet to send [02:56:30]OFD Sender: No OFD packet to send [02:56:35]OFD Sender: No OFD packet to send [02:56:40]OFD Sender: No OFD packet to send [02:56:45]OFD Sender: No OFD packet to send [02:56:50]OFD Sender: No OFD packet to send [02:56:55]OFD Sender: No OFD packet to send [02:57:00]OFD Sender: No OFD packet to send [02:57:05]OFD Sender: No OFD packet to send [02:57:10]OFD Sender: No OFD packet to send [02:57:15]OFD Sender: No OFD packet to send [02:57:20]OFD Sender: No OFD packet to send [02:57:25]OFD Sender: No OFD packet to send [02:57:30]OFD Sender: No OFD packet to send [02:57:35]OFD Sender: No OFD packet to send [02:57:40]OFD Sender: No OFD packet to send [02:57:41]accept exits with 9 [02:57:41]New connection [02:57:41]New thread 3066928484 created [02:57:41]Thread 3066785124 joined [02:57:41]Waiting for new connection... [02:57:41] Sock 9.Parse request [02:57:41]Sock 9.Check first char [02:57:41]Sock 9.First char is OK [02:57:41]request: POST /json_proto HTTP/1.0 [02:57:41]Method: POST [02:57:41]URL: /json_proto [02:57:41]Method is POST - this is cgi request [02:57:41]url: /json_proto [02:57:41]query_string will be loaded in cgi processing [02:57:41]execute_cgi json_proto POST (null) [02:57:41]execute_cgi path=json_proto method=POST [02:57:41]POST find Content-Length [02:57:41]Host: 172.17.33.3:8080 [02:57:41]Content-Length: 679 [02:57:41]Content-Type: application/json [02:57:41] [02:57:41]POST finish read [02:57:41]Found Content-Length = 679 [02:57:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347152", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 55.250, "sum" : 4000.10, "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" ] } } [02:57:41]execute_script... [02:57: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)347152", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 55.250, "sum" : 4000.10, "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" ] } } [02:57:41]POST & json_proto [02:57:41]process_json_proto [02:57:41]json parsed OK: [02:57:41]protocol is kg_v1.0 [02:57:41]action value=close_receipt [02:57:41]process_action close_receipt [02:57:41]cmd_close_receipt [02:57:41]MH_GetDate [02:57:41]Write to MH i2c: F0 00 00 8F 19 97 [02:57:41]Write i2c OK [02:57:41]MH_I2C_Read... [02:57:41]Read from MH i2c: F0 [02:57:41]MH_I2C_Read... [02:57:41]Read from MH i2c: F0 09 00 [02:57:41]MH_I2C_Read... [02:57:41]Read from MH i2c: F0 09 00 8F 19 00 A8 F4 19 66 23 5B 8F 65 2D [02:57:41]GetLastDocTimeStamp 1712976834 [02:57:41]current date 1712977064 [02:57:41]FM_GetShiftState [02:57:41]SAM_PROTO_GetShiftState [02:57:41]wFMCommunicate request_size=4 [02:57:41]MH_SAM_APDU [02:57:41]CAPDU: 80 13 01 00 [02:57:41]Write to MH i2c: E2 08 00 90 19 80 13 01 00 00 00 00 00 26 [02:57:41]Write i2c OK [02:57:41]MH_I2C_Read... [02:57:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:57:41]Read from MH i2c: E2 [02:57:41]MH_I2C_Read... [02:57:41]Read from MH i2c: E2 0E 00 [02:57:41]MH_I2C_Read... [02:57:41]Read from MH i2c: E2 0E 00 90 19 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 3F [02:57:41]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [02:57:41]wFMCommunicate OK [02:57:41]SAM_PROTO_GetShiftState done [02:57:41]FM_GetShiftState done [02:57:41]opened in 1712967615 [02:57:41]opened+sec_in_day 1713054015 [02:57:41]quantity*price = 400010 [02:57:41]sum+1 = 400011 [02:57:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 4000.00 Внесено: 4000.00 СДАЧА: 0.00 НСП 1% : 35.40 НДС 12% : 424.79 Наличными: 4000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 12 13.04.2024 02:57 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28805 ФПД: 84593854379311 1/tax-web-control/client/api/v1/ticket?date=20240413T025744&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28805&fm=84593854379311&tin=02508201610067®Number=0000138879044617&sum=400000 [02:57:42]StoreToDocumentArchive [02:57:42]shift 115 fd 28805 [02:57:42]save to /storage/0115/doc_00028805 [02:57:42]save last doc name /storage/0115/doc_00028805 to /storage/kkm_last_doc_name [02:57:42]save OK [02:57:42]Clear old archive folders... [02:57:42]ProcessDocumentItem done err = 0, tmpTLVsize=248 [02:57:42]tlvbuf is 011A9DB0 [02:57:42]SAM_PROTO_ClearQueue [02:57:42]wFMCommunicate request_size=4 [02:57:42]MH_SAM_APDU [02:57:42]CAPDU: 80 09 00 00 [02:57:42]Write to MH i2c: E2 08 00 9D 19 80 09 00 00 00 00 00 00 28 [02:57:42]Write i2c OK [02:57:42]MH_I2C_Read... [02:57:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:57:42]Read from MH i2c: E2 [02:57:42]MH_I2C_Read... [02:57:42]Read from MH i2c: E2 03 00 [02:57:42]MH_I2C_Read... [02:57:42]Read from MH i2c: E2 03 00 9D 19 00 90 00 2A [02:57:42]RAPDU: 90 00 [02:57:42]wFMCommunicate OK [02:57:42]SAM_PROTO_ClearQueue done [02:57:42]KKMCreateOFDPacket [02:57:42]OFDProtocolAddRootSTLVToBuf [02:57:42]FM_MakeSignedData [02:57:42]FM_MakeSignedData [02:57:42]SAM_PROTO_SignData [02:57:42]wFMCommunicate request_size=4 [02:57:42]MH_SAM_APDU [02:57:42]CAPDU: 80 0D 01 02 [02:57:42]Write to MH i2c: E2 08 00 9E 19 80 0D 01 02 00 00 00 00 30 [02:57:42]Write i2c OK [02:57:42]MH_I2C_Read... [02:57:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:57:42]Read from MH i2c: E2 [02:57:42]MH_I2C_Read... [02:57:42]Read from MH i2c: E2 03 00 [02:57:42]MH_I2C_Read... [02:57:42]Read from MH i2c: E2 03 00 9E 19 00 90 00 2B [02:57:42]RAPDU: 90 00 [02:57:42]wFMCommunicate OK [02:57:42]wFMCommunicate request_size=255 [02:57:42]MH_SAM_APDU [02:57: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 35 FF 03 08 00 03 D2 D7 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 8A 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF A5 00 00 00 00 07 04 06 00 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 0C 00 00 00 F4 03 04 00 A8 F4 19 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 85 70 00 00 35 04 06 00 4C F0 0A A3 [02:57:42]Write to MH i2c: E2 02 01 9F 19 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D2 D7 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 8A 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF A5 00 00 00 00 07 04 06 00 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 0C 00 00 00 F4 03 04 00 A8 F4 19 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 85 70 00 00 35 04 06 00 4C F0 0A A3 00 00 8E [02:57:42]Write i2c OK [02:57:42]MH_I2C_Read... [02:57:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:57:43]Read from MH i2c: E2 [02:57:43]MH_I2C_Read... [02:57:43]Read from MH i2c: E2 03 00 [02:57:43]MH_I2C_Read... [02:57:43]Read from MH i2c: E2 03 00 9F 19 00 90 00 2C [02:57:43]RAPDU: 90 00 [02:57:43]wFMCommunicate OK [02:57:43]wFMCommunicate request_size=7 [02:57:43]MH_SAM_APDU [02:57:43]CAPDU: 80 0D 02 02 02 F5 2F [02:57:43]Write to MH i2c: E2 0A 00 A0 19 80 0D 02 02 02 00 F5 2F 00 00 5B [02:57:43]Write i2c OK [02:57:43]MH_I2C_Read... [02:57:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:57:43]Read from MH i2c: E2 [02:57:43]MH_I2C_Read... [02:57:43]Read from MH i2c: E2 03 00 [02:57:43]MH_I2C_Read... [02:57:43]Read from MH i2c: E2 03 00 A0 19 00 90 00 2D [02:57:43]RAPDU: 90 00 [02:57:43]wFMCommunicate OK [02:57:43]wFMCommunicate request_size=4 [02:57:43]MH_SAM_APDU [02:57:43]CAPDU: 80 0D 03 02 [02:57:43]Write to MH i2c: E2 08 00 A1 19 80 0D 03 02 00 00 00 00 35 [02:57:43]Write i2c OK [02:57:43]MH_I2C_Read... [02:57:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:57:43]Read from MH i2c: E2 [02:57:43]MH_I2C_Read... [02:57:43]Read from MH i2c: E2 0B 00 [02:57:43]MH_I2C_Read... [02:57:43]Read from MH i2c: E2 0B 00 A1 19 00 BA 92 43 DB 11 2C E7 03 90 00 C7 [02:57:43]RAPDU: BA 92 43 DB 11 2C E7 03 90 00 [02:57:43]wFMCommunicate OK [02:57:43]SAM_PROTO_SignData done [02:57:43]FM_MakeSignedData done [02:57:43]CreateOFDProtocolMessage [02:57:43]wFMCommunicate request_size=4 [02:57:43]MH_SAM_APDU [02:57:43]CAPDU: 80 11 00 00 [02:57:43]Write to MH i2c: E2 08 00 A2 19 80 11 00 00 00 00 00 00 35 [02:57:43]Write i2c OK [02:57:43]MH_I2C_Read... [02:57:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:57:43]Read from MH i2c: E2 [02:57:43]MH_I2C_Read... [02:57:43]Read from MH i2c: E2 17 00 [02:57:43]MH_I2C_Read... [02:57:43]Read from MH i2c: E2 17 00 A2 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 84 [02:57:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [02:57:43]wFMCommunicate OK [02:57:43]CreateOFDProtocolMessage done [02:57:43]OFDSenderStorePacket 28805 [02:57:43]StoreOFDPacket docnum=28805 [02:57:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 5A 47 04 01 03 5D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D2 D7 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 8A 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF A5 00 00 00 00 07 04 06 00 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 0C 00 00 00 F4 03 04 00 A8 F4 19 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 85 70 00 00 35 04 06 00 4C F0 0A A3 F5 2F BA 92 43 DB 11 2C E7 03 [02:57:43]CheckFolder [02:57:43]dirname=/storage/ofd_packets [02:57:43]CheckFolder done [02:57:43]ProducePacketName [02:57:43]name=ofd_packets/00028805 [02:57:43]NVStorageSaveData ofd_packets/00028805 [02:57:43]File name is /storage/ofd_packets/00028805 [02:57:43]Write 298 bytes [02:57:43]NVStorageSaveData done [02:57:43]OFDSenderStorePacket done [02:57:43]KKMCreateOFDPacket done [02:57:43]NVStorageSaveData kkm_last_timestamp [02:57:43]File name is /storage/kkm_last_timestamp [02:57:43]Write 4 bytes [02:57:43]NVStorageSaveData done [02:57:43]ExternCall_PrintAddStr [02:57:43]wPrintStart [02:57:43]Write to MH i2c: 01 00 00 A3 19 BC [02:57:43]Write i2c OK [02:57:43]MH_I2C_Read... [02:57:43]Read from MH i2c: 01 [02:57:43]MH_I2C_Read... [02:57:43]Read from MH i2c: 01 07 00 [02:57:43]MH_I2C_Read... [02:57:43]Read from MH i2c: 01 07 00 A3 19 00 00 00 00 00 FF 0F D1 [02:57:43]RasterBufferAndPrint [02:57:43]line Счет N : (1)347152 [02:57:43]line ИНН: 02508201610067 [02:57:43]line Контрольно-Кассовый Чек [02:57:43]line ПРОДАЖА [02:57:43]line ТРК (МРК, ГНК) : 61 [02:57:43]line Товар: 2710194210 [02:57:43]line ДТ-К-5 [02:57:43]line 55.250 * 72.40 [02:57:43]line = 4000.10 [02:57:43]line НДС 12% НСП 1% [02:57:43]line > о реализуемом товаре [02:57:43]line ОКРУГЛЕНИЕ: -0.10 [02:57:43]line ИТОГО: 4000.00 [02:57:43]line Внесено: 4000.00 [02:57:43]line СДАЧА: 0.00 [02:57:43]line НСП 1% : 35.40 [02:57:43]line НДС 12% : 424.79 [02:57:43]line Наличными: 4000.00 [02:57:43]line Безнал.: 0.00 [02:57:43]line Место: АЗС № 108 "Партнер Нефть" [02:57:43]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [02:57:43]line СНО: Общий режим [02:57:43]line Чек 12 13.04.2024 02:57 [02:57:43]line Смена: 115 ФФД: 1.0 [02:57:43]line ЗНМ: 0300000027 [02:57:43]line РНМ: 0000138879044617 [02:57:43]line Версия ККМ: 001 [02:57:43]line ФМ: 0000000000963154 [02:57:43]line ФД: 28805 [02:57:43]line ФПД: 84593854379311 [02:57:43]line 1/tax-web-control/client/api/v1/ticket?date=20240413T025744&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28805&fm=84593854379311&tin=02508201610067®Number=0000138879044617&sum=400000 [02:57:43]OFD Sender: Processing packet 28805 [packets to send 8, broken 7] [02:57:43]ProducePacketName [02:57:43]name=ofd_packets/00028805 [02:57:43]OFD Sender: To server: pG, [02:57:43]CommunicateWithHost lk.salyk.kg:30040 [02:57:43]ConnectInit lk.salyk.kg [02:57:43]written 0, free lines is 4095 [02:57:43]Connected sock=10 [02:57:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 5A 47 04 01 03 5D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D2 D7 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 8A 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF A5 00 00 00 00 07 04 06 00 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 0C 00 00 00 F4 03 04 00 A8 F4 19 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 85 70 00 00 35 04 06 00 4C F0 0A A3 F5 2F BA 92 43 DB 11 2C E7 03 [02:57:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 02 F4 47 00 48 EA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 85 70 00 00 F4 03 04 00 50 9F 19 66 B6 04 01 00 00 28 B9 C4 B7 FD F8 DF C8 [02:57:43]CommunicateWithHost err = 0 [02:57:43]CheckOFDResponse [02:57:43]1017 (14) - 77093643461234 [02:57:43]1041 (16) - 0000000000963154 [02:57:43]1040 (4) - 28805 [02:57:43]1012 (4) - 12.04.2024 20:53 [02:57:43]1206 (1) - 0 [02:57:43]OFD Sender: Remove packet 28805 [02:57:43]ProducePacketName [02:57:43]name=ofd_packets/00028805 [02:57:43]NVStorageDeleteData [02:57:44]Write to MH i2c: 01 00 00 CD 19 E6 [02:57:44]Write i2c OK [02:57:44]MH_I2C_Read... [02:57:44]Read from MH i2c: 01 [02:57:44]MH_I2C_Read... [02:57:44]Read from MH i2c: 01 07 00 [02:57:44]MH_I2C_Read... [02:57:44]Read from MH i2c: 01 07 00 CD 19 00 00 00 00 00 B5 0C AE [02:57:44]RasterBufferAndPrint [02:57:44]line [02:57:44]line [02:57:44]line [02:57:44]line [02:57:44]line [02:57:44]written 0, free lines is 3258 [02:57:44]MH_Cut [02:57:44]Write to MH i2c: D1 01 00 D4 19 01 BF [02:57:44]Write i2c OK [02:57:44]MH_I2C_Read... [02:57:44]Read from MH i2c: D1 [02:57:44]MH_I2C_Read... [02:57:44]Read from MH i2c: D1 01 00 [02:57:44]MH_I2C_Read... [02:57:44]Read from MH i2c: D1 01 00 D4 19 00 BE [02:57:44]Write to MH i2c: 01 00 00 D5 19 EE [02:57:44]Write i2c OK [02:57:44]MH_I2C_Read... [02:57:44]OFD Sender: No OFD packet to send [02:57:44]*** Cut start [02:57:44]*** Partial cut [02:57:44]*** CUTSNS_PIN = 1 [02:57:44]*** CUTSNS_PIN = 0 [02:57:45]*** Brake cut motor [02:57:45]Read from MH i2c: 01 [02:57:45]MH_I2C_Read... [02:57:45]*** Stop cut motor [02:57:45]*** Cut end [02:57:45]Read from MH i2c: 01 07 00 [02:57:45]MH_I2C_Read... [02:57:45]Read from MH i2c: 01 07 00 D5 19 00 00 00 00 00 FF 0F 03 [02:57:45]process_action close_receipt done [02:57:45]requested_data is exist [02:57:45]produce_requested_data [02:57:45]requested_item fm.sn is exist - process it [02:57:45]wFMCommunicate request_size=4 [02:57:45]MH_SAM_APDU [02:57:45]CAPDU: 80 11 00 00 [02:57:45]Write to MH i2c: E2 08 00 D6 19 80 11 00 00 00 00 00 00 69 [02:57:45]Write i2c OK [02:57:45]MH_I2C_Read... [02:57:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:57:45]Read from MH i2c: E2 [02:57:45]MH_I2C_Read... [02:57:45]Read from MH i2c: E2 17 00 [02:57:45]MH_I2C_Read... [02:57:45]Read from MH i2c: E2 17 00 D6 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 B8 [02:57:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [02:57:45]wFMCommunicate OK [02:57:45]requested_item fd.num is exist - process it [02:57:45]SAM_PROTO_GetFieldsCounters [02:57:45]wFMCommunicate request_size=4 [02:57:45]MH_SAM_APDU [02:57:45]CAPDU: 80 13 00 00 [02:57:45]Write to MH i2c: E2 08 00 D7 19 80 13 00 00 00 00 00 00 6C [02:57:45]Write i2c OK [02:57:45]MH_I2C_Read... [02:57:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:57:45]Read from MH i2c: E2 [02:57:45]MH_I2C_Read... [02:57:45]Read from MH i2c: E2 62 00 [02:57:45]MH_I2C_Read... [02:57:45]Read from MH i2c: E2 62 00 D7 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 85 70 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 36 [02:57:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 85 70 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:57:45]wFMCommunicate OK [02:57:45]SAM_PROTO_GetFieldsCounters done [02:57:45]requested_item shift.num is exist - process it [02:57:45]requested_item shift.opened is exist - process it [02:57:45]req_shift_opened [02:57:45]FM_GetShiftState [02:57:45]SAM_PROTO_GetShiftState [02:57:45]wFMCommunicate request_size=4 [02:57:45]MH_SAM_APDU [02:57:45]CAPDU: 80 13 01 00 [02:57:45]Write to MH i2c: E2 08 00 D8 19 80 13 01 00 00 00 00 00 6E [02:57:45]Write i2c OK [02:57:45]MH_I2C_Read... [02:57:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:57:45]Read from MH i2c: E2 [02:57:45]MH_I2C_Read... [02:57:45]Read from MH i2c: E2 0E 00 [02:57:45]MH_I2C_Read... [02:57:45]Read from MH i2c: E2 0E 00 D8 19 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 87 [02:57:45]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [02:57:45]wFMCommunicate OK [02:57:45]SAM_PROTO_GetShiftState done [02:57:45]FM_GetShiftState done [02:57:45]req_shift_opened done [02:57:45]requested_item shift.open_date is exist - process it [02:57:45]req_shift_open_date [02:57:45]req_shift_open_date done [02:57:45]produce_requested_data done [02:57:45]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28805,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [02:57:45]process_action_free close_receipt [02:57:45]json_value_free [02:57:45]json_value_free done [02:57:45]process_json_proto returns [02:57:45]Send response to host [02:57:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28805,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [02:57:45]free response buf [02:57:45]execute_script done [02:57:45]execute_script returns [02:57:45]free content buf [02:57:45]Sock 9.Close socket [02:57:45]Sock 9.Thread stoped [02:57:49]OFD Sender: No OFD packet to send [02:57:53]accept exits with 7 [02:57:53]New connection [02:57:53]New thread 3066785124 created [02:57:53]Thread 3066928484 joined [02:57:53]Waiting for new connection... [02:57:53] Sock 7.Parse request [02:57:53]Sock 7.Check first char [02:57:53]Sock 7.First char is OK [02:57:53]request: POST /json_proto HTTP/1.0 [02:57:53]Method: POST [02:57:53]URL: /json_proto [02:57:53]Method is POST - this is cgi request [02:57:53]url: /json_proto [02:57:53]query_string will be loaded in cgi processing [02:57:53]execute_cgi json_proto POST (null) [02:57:53]execute_cgi path=json_proto method=POST [02:57:53]POST find Content-Length [02:57:53]Host: 172.17.33.3:8080 [02:57:53]Content-Length: 685 [02:57:53]Content-Type: application/json [02:57:53] [02:57:53]POST finish read [02:57:53]Found Content-Length = 685 [02:57:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347151", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 30.400, "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" ] } } [02:57:53]execute_script... [02:57: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)347151", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 30.400, "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" ] } } [02:57:53]POST & json_proto [02:57:53]process_json_proto [02:57:53]json parsed OK: [02:57:53]protocol is kg_v1.0 [02:57:53]action value=close_receipt [02:57:53]process_action close_receipt [02:57:53]cmd_close_receipt [02:57:53]MH_GetDate [02:57:53]Write to MH i2c: F0 00 00 D9 19 E1 [02:57:54]Write i2c OK [02:57:54]MH_I2C_Read... [02:57:54]Read from MH i2c: F0 [02:57:54]MH_I2C_Read... [02:57:54]Read from MH i2c: F0 09 00 [02:57:54]MH_I2C_Read... [02:57:54]Read from MH i2c: F0 09 00 D9 19 00 B4 F4 19 66 23 5B 8F 65 83 [02:57:54]GetLastDocTimeStamp 1712977064 [02:57:54]current date 1712977076 [02:57:54]FM_GetShiftState [02:57:54]SAM_PROTO_GetShiftState [02:57:54]wFMCommunicate request_size=4 [02:57:54]MH_SAM_APDU [02:57:54]CAPDU: 80 13 01 00 [02:57:54]Write to MH i2c: E2 08 00 DA 19 80 13 01 00 00 00 00 00 70 [02:57:54]Write i2c OK [02:57:54]MH_I2C_Read... [02:57:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:57:54]Read from MH i2c: E2 [02:57:54]MH_I2C_Read... [02:57:54]Read from MH i2c: E2 0E 00 [02:57:54]MH_I2C_Read... [02:57:54]Read from MH i2c: E2 0E 00 DA 19 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 89 [02:57:54]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [02:57:54]wFMCommunicate OK [02:57:54]SAM_PROTO_GetShiftState done [02:57:54]FM_GetShiftState done [02:57:54]opened in 1712967615 [02:57:54]opened+sec_in_day 1713054015 [02:57:54]quantity*price = 100016 [02:57:54]sum+1 = 100017 [02:57: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 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 13 13.04.2024 02:57 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28806 ФПД: 136785458082371 1/tax-web-control/client/api/v1/ticket?date=20240413T025756&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28806&fm=136785458082371&tin=02508201610067®Number=0000138879044617&sum=100000 [02:57:55]StoreToDocumentArchive [02:57:55]shift 115 fd 28806 [02:57:55]save to /storage/0115/doc_00028806 [02:57:55]save last doc name /storage/0115/doc_00028806 to /storage/kkm_last_doc_name [02:57:55]save OK [02:57:55]Clear old archive folders... [02:57:55]ProcessDocumentItem done err = 0, tmpTLVsize=250 [02:57:55]tlvbuf is B6EBB270 [02:57:55]SAM_PROTO_ClearQueue [02:57:55]wFMCommunicate request_size=4 [02:57:55]MH_SAM_APDU [02:57:55]CAPDU: 80 09 00 00 [02:57:55]Write to MH i2c: E2 08 00 E7 19 80 09 00 00 00 00 00 00 72 [02:57:55]Write i2c OK [02:57:55]MH_I2C_Read... [02:57:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:57:55]Read from MH i2c: E2 [02:57:55]MH_I2C_Read... [02:57:55]Read from MH i2c: E2 03 00 [02:57:55]MH_I2C_Read... [02:57:55]Read from MH i2c: E2 03 00 E7 19 00 90 00 74 [02:57:55]RAPDU: 90 00 [02:57:55]wFMCommunicate OK [02:57:55]SAM_PROTO_ClearQueue done [02:57:55]KKMCreateOFDPacket [02:57:55]OFDProtocolAddRootSTLVToBuf [02:57:55]FM_MakeSignedData [02:57:55]FM_MakeSignedData [02:57:55]SAM_PROTO_SignData [02:57:55]wFMCommunicate request_size=4 [02:57:55]MH_SAM_APDU [02:57:55]CAPDU: 80 0D 01 02 [02:57:55]Write to MH i2c: E2 08 00 E8 19 80 0D 01 02 00 00 00 00 7A [02:57:55]Write i2c OK [02:57:55]MH_I2C_Read... [02:57:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:57:55]Read from MH i2c: E2 [02:57:55]MH_I2C_Read... [02:57:55]Read from MH i2c: E2 03 00 [02:57:55]MH_I2C_Read... [02:57:55]Read from MH i2c: E2 03 00 E8 19 00 90 00 75 [02:57:55]RAPDU: 90 00 [02:57:55]wFMCommunicate OK [02:57:55]wFMCommunicate request_size=255 [02:57:55]MH_SAM_APDU [02:57:55]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 DA 0C 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 B4 F4 19 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 86 70 00 00 35 04 06 00 7C 67 [02:57:55]Write to MH i2c: E2 02 01 E9 19 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 DA 0C 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 B4 F4 19 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 86 70 00 00 35 04 06 00 7C 67 00 00 90 [02:57:55]Write i2c OK [02:57:55]MH_I2C_Read... [02:57:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:57:55]Read from MH i2c: E2 [02:57:55]MH_I2C_Read... [02:57:55]Read from MH i2c: E2 03 00 [02:57:55]MH_I2C_Read... [02:57:55]Read from MH i2c: E2 03 00 E9 19 00 90 00 76 [02:57:55]RAPDU: 90 00 [02:57:55]wFMCommunicate OK [02:57:55]wFMCommunicate request_size=9 [02:57:55]MH_SAM_APDU [02:57:55]CAPDU: 80 0D 02 02 04 D8 A3 B2 43 [02:57:55]Write to MH i2c: E2 0C 00 EA 19 80 0D 02 02 04 00 D8 A3 B2 43 00 00 F5 [02:57:55]Write i2c OK [02:57:55]MH_I2C_Read... [02:57:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:57:55]Read from MH i2c: E2 [02:57:55]MH_I2C_Read... [02:57:55]Read from MH i2c: E2 03 00 [02:57:55]MH_I2C_Read... [02:57:55]Read from MH i2c: E2 03 00 EA 19 00 90 00 77 [02:57:55]RAPDU: 90 00 [02:57:55]wFMCommunicate OK [02:57:55]wFMCommunicate request_size=4 [02:57:55]MH_SAM_APDU [02:57:55]CAPDU: 80 0D 03 02 [02:57:55]Write to MH i2c: E2 08 00 EB 19 80 0D 03 02 00 00 00 00 7F [02:57:55]Write i2c OK [02:57:55]MH_I2C_Read... [02:57:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:57:55]Read from MH i2c: E2 [02:57:55]MH_I2C_Read... [02:57:55]Read from MH i2c: E2 0B 00 [02:57:55]MH_I2C_Read... [02:57:55]Read from MH i2c: E2 0B 00 EB 19 00 E0 2B 28 7E D2 0A E8 D9 90 00 CE [02:57:55]RAPDU: E0 2B 28 7E D2 0A E8 D9 90 00 [02:57:55]wFMCommunicate OK [02:57:55]SAM_PROTO_SignData done [02:57:55]FM_MakeSignedData done [02:57:55]CreateOFDProtocolMessage [02:57:55]wFMCommunicate request_size=4 [02:57:55]MH_SAM_APDU [02:57:55]CAPDU: 80 11 00 00 [02:57:55]Write to MH i2c: E2 08 00 EC 19 80 11 00 00 00 00 00 00 7F [02:57:55]Write i2c OK [02:57:55]MH_I2C_Read... [02:57:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:57:55]Read from MH i2c: E2 [02:57:55]MH_I2C_Read... [02:57:55]Read from MH i2c: E2 17 00 [02:57:55]MH_I2C_Read... [02:57:55]Read from MH i2c: E2 17 00 EC 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 CE [02:57:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [02:57:55]wFMCommunicate OK [02:57:55]CreateOFDProtocolMessage done [02:57:55]OFDSenderStorePacket 28806 [02:57:55]StoreOFDPacket docnum=28806 [02:57:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 BE A4 06 01 B2 73 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 DA 0C 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 B4 F4 19 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 86 70 00 00 35 04 06 00 7C 67 D8 A3 B2 43 E0 2B 28 7E D2 0A E8 D9 [02:57:55]CheckFolder [02:57:55]dirname=/storage/ofd_packets [02:57:55]CheckFolder done [02:57:55]ProducePacketName [02:57:55]name=ofd_packets/00028806 [02:57:55]NVStorageSaveData ofd_packets/00028806 [02:57:55]File name is /storage/ofd_packets/00028806 [02:57:55]Write 300 bytes [02:57:55]NVStorageSaveData done [02:57:55]OFDSenderStorePacket done [02:57:55]KKMCreateOFDPacket done [02:57:55]NVStorageSaveData kkm_last_timestamp [02:57:55]File name is /storage/kkm_last_timestamp [02:57:55]Write 4 bytes [02:57:55]NVStorageSaveData done [02:57:55]ExternCall_PrintAddStr [02:57:55]wPrintStart [02:57:55]Write to MH i2c: 01 00 00 ED 19 06 [02:57:55]Write i2c OK [02:57:55]MH_I2C_Read... [02:57:55]Read from MH i2c: 01 [02:57:55]MH_I2C_Read... [02:57:55]Read from MH i2c: 01 07 00 [02:57:55]MH_I2C_Read... [02:57:55]Read from MH i2c: 01 07 00 ED 19 00 00 00 00 00 FF 0F 1B [02:57:55]RasterBufferAndPrint [02:57:55]line Счет N : (1)347151 [02:57:55]line ИНН: 02508201610067 [02:57:55]line Контрольно-Кассовый Чек [02:57:55]line ПРОДАЖА [02:57:55]line ТРК (МРК, ГНК) : 71 [02:57:55]line Товар: 2711129700 [02:57:55]line ГАЗ-К-5 [02:57:55]line 30.400 * 32.90 [02:57:55]line = 1000.16 [02:57:55]line НДС 12% НСП 1% [02:57:55]line > о реализуемом товаре [02:57:55]line ОКРУГЛЕНИЕ: -0.16 [02:57:55]line ИТОГО: 1000.00 [02:57:55]line Внесено: 1000.00 [02:57:55]line СДАЧА: 0.00 [02:57:55]line НСП 1% : 8.85 [02:57:55]line НДС 12% : 106.21 [02:57:55]line Наличными: 1000.00 [02:57:55]line Безнал.: 0.00 [02:57:55]line Место: АЗС № 108 "Партнер Нефть" [02:57:55]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [02:57:55]line СНО: Общий режим [02:57:55]line Чек 13 13.04.2024 02:57 [02:57:55]line Смена: 115 ФФД: 1.0 [02:57:55]line ЗНМ: 0300000027 [02:57:55]line РНМ: 0000138879044617 [02:57:55]line Версия ККМ: 001 [02:57:55]line ФМ: 0000000000963154 [02:57:55]line ФД: 28806 [02:57:55]line ФПД: 136785458082371 [02:57:55]line 1/tax-web-control/client/api/v1/ticket?date=20240413T025756&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28806&fm=136785458082371&tin=02508201610067®Number=0000138879044617&sum=100000 [02:57:55]written 0, free lines is 4095 [02:57:55]OFD Sender: Processing packet 28806 [packets to send 8, broken 7] [02:57:55]ProducePacketName [02:57:55]name=ofd_packets/00028806 [02:57:55]OFD Sender: To server: pG, [02:57:55]CommunicateWithHost lk.salyk.kg:30040 [02:57:55]ConnectInit lk.salyk.kg [02:57:55]Connected sock=10 [02:57:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 BE A4 06 01 B2 73 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 DA 0C 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 B4 F4 19 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 86 70 00 00 35 04 06 00 7C 67 D8 A3 B2 43 E0 2B 28 7E D2 0A E8 D9 [02:57:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 07 AE 47 00 E3 B7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 86 70 00 00 F4 03 04 00 5C 9F 19 66 B6 04 01 00 00 87 16 38 19 77 DD 22 6B [02:57:56]CommunicateWithHost err = 0 [02:57:56]CheckOFDResponse [02:57:56]1017 (14) - 77093643461234 [02:57:56]1041 (16) - 0000000000963154 [02:57:56]1040 (4) - 28806 [02:57:56]1012 (4) - 12.04.2024 20:53 [02:57:56]1206 (1) - 0 [02:57:56]OFD Sender: Remove packet 28806 [02:57:56]ProducePacketName [02:57:56]name=ofd_packets/00028806 [02:57:56]NVStorageDeleteData [02:57:56]Write to MH i2c: 01 00 00 17 1A 31 [02:57:56]Write i2c OK [02:57:56]MH_I2C_Read... [02:57:56]Read from MH i2c: 01 [02:57:56]MH_I2C_Read... [02:57:56]Read from MH i2c: 01 07 00 [02:57:56]MH_I2C_Read... [02:57:56]Read from MH i2c: 01 07 00 17 1A 00 00 00 00 00 C1 0C 05 [02:57:56]RasterBufferAndPrint [02:57:56]line [02:57:56]line [02:57:56]line [02:57:56]line [02:57:56]line [02:57:56]written 0, free lines is 3273 [02:57:56]MH_Cut [02:57:56]Write to MH i2c: D1 01 00 1E 1A 01 0A [02:57:56]Write i2c OK [02:57:56]MH_I2C_Read... [02:57:56]Read from MH i2c: D1 [02:57:56]MH_I2C_Read... [02:57:56]Read from MH i2c: D1 01 00 [02:57:56]MH_I2C_Read... [02:57:56]Read from MH i2c: D1 01 00 1E 1A 00 09 [02:57:56]Write to MH i2c: 01 00 00 1F 1A 39 [02:57:56]Write i2c OK [02:57:56]MH_I2C_Read... [02:57:56]OFD Sender: No OFD packet to send [02:57:56]*** Cut start [02:57:56]*** Partial cut [02:57:56]*** CUTSNS_PIN = 1 [02:57:57]*** CUTSNS_PIN = 0 [02:57:57]*** Brake cut motor [02:57:57]Read from MH i2c: 01 [02:57:57]MH_I2C_Read... [02:57:57]*** Stop cut motor [02:57:57]*** Cut end [02:57:57]Read from MH i2c: 01 07 00 [02:57:57]MH_I2C_Read... [02:57:57]Read from MH i2c: 01 07 00 1F 1A 00 00 00 00 00 FF 0F 4E [02:57:57]process_action close_receipt done [02:57:57]requested_data is exist [02:57:57]produce_requested_data [02:57:57]requested_item fm.sn is exist - process it [02:57:57]wFMCommunicate request_size=4 [02:57:57]MH_SAM_APDU [02:57:57]CAPDU: 80 11 00 00 [02:57:57]Write to MH i2c: E2 08 00 20 1A 80 11 00 00 00 00 00 00 B4 [02:57:57]Write i2c OK [02:57:57]MH_I2C_Read... [02:57:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:57:57]Read from MH i2c: E2 [02:57:57]MH_I2C_Read... [02:57:57]Read from MH i2c: E2 17 00 [02:57:57]MH_I2C_Read... [02:57:57]Read from MH i2c: E2 17 00 20 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 03 [02:57:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [02:57:57]wFMCommunicate OK [02:57:57]requested_item fd.num is exist - process it [02:57:57]SAM_PROTO_GetFieldsCounters [02:57:57]wFMCommunicate request_size=4 [02:57:57]MH_SAM_APDU [02:57:57]CAPDU: 80 13 00 00 [02:57:57]Write to MH i2c: E2 08 00 21 1A 80 13 00 00 00 00 00 00 B7 [02:57:57]Write i2c OK [02:57:57]MH_I2C_Read... [02:57:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:57:57]Read from MH i2c: E2 [02:57:57]MH_I2C_Read... [02:57:57]Read from MH i2c: E2 62 00 [02:57:57]MH_I2C_Read... [02:57:57]Read from MH i2c: E2 62 00 21 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 86 70 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 85 [02:57:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 86 70 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:57:57]wFMCommunicate OK [02:57:57]SAM_PROTO_GetFieldsCounters done [02:57:57]requested_item shift.num is exist - process it [02:57:57]requested_item shift.opened is exist - process it [02:57:57]req_shift_opened [02:57:57]FM_GetShiftState [02:57:57]SAM_PROTO_GetShiftState [02:57:57]wFMCommunicate request_size=4 [02:57:57]MH_SAM_APDU [02:57:57]CAPDU: 80 13 01 00 [02:57:57]Write to MH i2c: E2 08 00 22 1A 80 13 01 00 00 00 00 00 B9 [02:57:57]Write i2c OK [02:57:57]MH_I2C_Read... [02:57:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:57:57]Read from MH i2c: E2 [02:57:57]MH_I2C_Read... [02:57:57]Read from MH i2c: E2 0E 00 [02:57:57]MH_I2C_Read... [02:57:57]Read from MH i2c: E2 0E 00 22 1A 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 D2 [02:57:57]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [02:57:57]wFMCommunicate OK [02:57:57]SAM_PROTO_GetShiftState done [02:57:57]FM_GetShiftState done [02:57:57]req_shift_opened done [02:57:57]requested_item shift.open_date is exist - process it [02:57:57]req_shift_open_date [02:57:57]req_shift_open_date done [02:57:57]produce_requested_data done [02:57:57]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28806,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [02:57:57]process_action_free close_receipt [02:57:57]json_value_free [02:57:57]json_value_free done [02:57:57]process_json_proto returns [02:57:57]Send response to host [02:57:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28806,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [02:57:57]free response buf [02:57:57]execute_script done [02:57:57]execute_script returns [02:57:57]free content buf [02:57:57]Sock 7.Close socket [02:57:57]Sock 7.Thread stoped [02:58:01]OFD Sender: No OFD packet to send [02:58:06]OFD Sender: No OFD packet to send [02:58:11]OFD Sender: No OFD packet to send [02:58:16]OFD Sender: No OFD packet to send [02:58:21]OFD Sender: No OFD packet to send [02:58:26]OFD Sender: No OFD packet to send [02:58:31]OFD Sender: No OFD packet to send [02:58:36]OFD Sender: No OFD packet to send [02:58:41]OFD Sender: No OFD packet to send [02:58:46]OFD Sender: No OFD packet to send [02:58:51]OFD Sender: No OFD packet to send [02:58:56]OFD Sender: No OFD packet to send [02:59:01]OFD Sender: No OFD packet to send [02:59:06]OFD Sender: No OFD packet to send [02:59:11]OFD Sender: No OFD packet to send [02:59:16]OFD Sender: No OFD packet to send [02:59:21]OFD Sender: No OFD packet to send [02:59:26]OFD Sender: No OFD packet to send [02:59:31]OFD Sender: No OFD packet to send [02:59:36]OFD Sender: No OFD packet to send [02:59:41]OFD Sender: No OFD packet to send [02:59:46]OFD Sender: No OFD packet to send [02:59:51]OFD Sender: No OFD packet to send [02:59:56]OFD Sender: No OFD packet to send [03:00:01]OFD Sender: No OFD packet to send [03:00:06]OFD Sender: No OFD packet to send [03:00:11]OFD Sender: No OFD packet to send [03:00:16]OFD Sender: No OFD packet to send [03:00:21]OFD Sender: No OFD packet to send [03:00:26]OFD Sender: No OFD packet to send [03:00:31]OFD Sender: No OFD packet to send [03:00:36]OFD Sender: No OFD packet to send [03:00:41]OFD Sender: No OFD packet to send [03:00:46]OFD Sender: No OFD packet to send [03:00:51]OFD Sender: No OFD packet to send [03:00:56]OFD Sender: No OFD packet to send [03:01:01]OFD Sender: No OFD packet to send [03:01:06]OFD Sender: No OFD packet to send [03:01:11]OFD Sender: No OFD packet to send [03:01:16]OFD Sender: No OFD packet to send [03:01:21]OFD Sender: No OFD packet to send [03:01:26]OFD Sender: No OFD packet to send [03:01:31]OFD Sender: No OFD packet to send [03:01:36]OFD Sender: No OFD packet to send [03:01:41]OFD Sender: No OFD packet to send [03:01:46]OFD Sender: No OFD packet to send [03:01:51]OFD Sender: No OFD packet to send [03:01:56]OFD Sender: No OFD packet to send [03:02:01]OFD Sender: No OFD packet to send [03:02:06]OFD Sender: No OFD packet to send [03:02:11]OFD Sender: No OFD packet to send [03:02:16]OFD Sender: No OFD packet to send [03:02:21]OFD Sender: No OFD packet to send [03:02:26]OFD Sender: No OFD packet to send [03:02:31]OFD Sender: No OFD packet to send [03:02:36]OFD Sender: No OFD packet to send [03:02:41]OFD Sender: No OFD packet to send [03:02:46]OFD Sender: No OFD packet to send [03:02:51]OFD Sender: No OFD packet to send [03:02:56]OFD Sender: No OFD packet to send [03:03:01]OFD Sender: No OFD packet to send [03:03:06]OFD Sender: No OFD packet to send [03:03:11]OFD Sender: No OFD packet to send [03:03:16]OFD Sender: No OFD packet to send [03:03:21]OFD Sender: No OFD packet to send [03:03:26]OFD Sender: No OFD packet to send [03:03:31]OFD Sender: No OFD packet to send [03:03:36]OFD Sender: No OFD packet to send [03:03:41]OFD Sender: No OFD packet to send [03:03:46]OFD Sender: No OFD packet to send [03:03:51]OFD Sender: No OFD packet to send [03:03:56]OFD Sender: No OFD packet to send [03:04:01]OFD Sender: No OFD packet to send